GodotSharpAPI
GodotSharpAPI
Godot
OS Class
OS Methods
Alert Method
CanDraw Method
CanUseThreads Method
CenterWindow Method
CloseMidiInputs Method
DelayMsec Method
DelayUsec Method
DumpMemoryToFile Method
DumpResourcesToFile Method
Execute Method
FindScancodeFromString Method
GetAudioDriverCount Method
GetAudioDriverName Method
GetBorderlessWindow Method
GetClipboard Method
GetCmdlineArgs Method
GetConnectedMidiInputs Method
GetCurrentScreen Method
GetCurrentTabletDriver Method
GetCurrentVideoDriver Method
GetDate Method
GetDatetime Method
GetDatetimeFromUnixTime Method
GetDynamicMemoryUsage Method
GetEnvironment Method
GetExecutablePath Method
GetExitCode Method
GetGrantedPermissions Method
GetImeSelection Method
GetImeText Method
GetLatinKeyboardVariant Method
GetLocale Method
GetLowProcessorUsageModeSleepUsec Method
GetMaxWindowSize Method
GetMinWindowSize Method
GetModelName Method
GetName Method
GetNativeHandle Method
GetPowerPercentLeft Method
GetPowerSecondsLeft Method
GetPowerState Method
GetProcessId Method
GetProcessorCount Method
GetRealWindowSize Method
GetScancodeString Method
GetScreenCount Method
GetScreenDpi Method
GetScreenMaxScale Method
GetScreenOrientation Method
GetScreenPosition Method
GetScreenScale Method
GetScreenSize Method
GetSplashTickMsec Method
GetStaticMemoryPeakUsage Method
GetStaticMemoryUsage Method
GetSystemDir Method
GetSystemTimeMsecs Method
GetSystemTimeSecs Method
GetTabletDriverCount Method
GetTabletDriverName Method
GetThreadCallerId Method
GetTicksMsec Method
GetTicksUsec Method
GetTime Method
GetTimeZoneInfo Method
GetUniqueId Method
GetUnixTime Method
GetUnixTimeFromDatetime Method
GetUserDataDir Method
GetVideoDriverCount Method
GetVideoDriverName Method
GetVirtualKeyboardHeight Method
GetWindowPerPixelTransparencyEnabled Method
GetWindowPosition Method
GetWindowSafeArea Method
GetWindowSize Method
GlobalMenuAddItem Method
GlobalMenuAddSeparator Method
GlobalMenuClear Method
GlobalMenuRemoveItem Method
HasEnvironment Method
HasFeature Method
HasTouchscreenUiHint Method
HasVirtualKeyboard Method
HideVirtualKeyboard Method
IsDebugBuild Method
IsInLowProcessorUsageMode Method
IsKeepScreenOn Method
IsOkLeftAndCancelRight Method
IsScancodeUnicode Method
IsStdoutVerbose Method
IsUserfsPersistent Method
IsVsyncEnabled Method
IsVsyncViaCompositorEnabled Method
IsWindowAlwaysOnTop Method
IsWindowFocused Method
IsWindowFullscreen Method
IsWindowMaximized Method
IsWindowMinimized Method
IsWindowResizable Method
KeyboardGetCurrentLayout Method
KeyboardGetLayoutCount Method
KeyboardGetLayoutLanguage Method
KeyboardGetLayoutName Method
KeyboardSetCurrentLayout Method
Kill Method
MoveWindowToForeground Method
NativeVideoIsPlaying Method
NativeVideoPause Method
NativeVideoPlay Method
NativeVideoStop Method
NativeVideoUnpause Method
OpenMidiInputs Method
PrintAllResources Method
PrintAllTexturesBySize Method
PrintResourcesByType Method
PrintResourcesInUse Method
RequestAttention Method
RequestPermission Method
RequestPermissions Method
SetBorderlessWindow Method
SetClipboard Method
SetCurrentScreen Method
SetCurrentTabletDriver Method
SetEnvironment Method
SetExitCode Method
SetIcon Method
SetImeActive Method
SetImePosition Method
SetKeepScreenOn Method
SetLowProcessorUsageMode Method
SetLowProcessorUsageModeSleepUsec Method
SetMaxWindowSize Method
SetMinWindowSize Method
SetNativeIcon Method
SetScreenOrientation Method
SetThreadName Method
SetUseFileAccessSaveAndSwap Method
SetUseVsync Method
SetVsyncViaCompositor Method
SetWindowAlwaysOnTop Method
SetWindowFullscreen Method
SetWindowMaximized Method
SetWindowMinimized Method
SetWindowMousePassthrough Method
SetWindowPerPixelTransparencyEnabled Method
SetWindowPosition Method
SetWindowResizable Method
SetWindowSize Method
SetWindowTitle Method
ShellOpen Method
ShowVirtualKeyboard Method
OS
CenterWindow Method
Centers the window on the screen if in windowed mode.
Namespace:
Godot
Assembly:
GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
Copy
public
static
void
CenterWindow
()
See Also
Reference
OS Class
Godot Namespace