Skip to content

GameWindow class reference

Alan Stagner edited this page Jun 9, 2020 · 2 revisions

Properties

bool AllowUserResizing { get; set; } - Gets or sets whether the user can resize the window


Rect ClientBounds { get; } - Gets the window's content rectangle


Int2 Position { get; } - Get the window's screen position


DisplayOrientation Orientation { get; } - Get the screen orientation


StringView Title { get; set; } - Get or set the window's title


bool IsBorderless { get; set; } - Gets or sets whether to hide the window border


bool IsFullscreen { get; set; } - Gets or sets whether the window is fullscreen (uses borderless fullscreen mode by default)


bool LockMouse { get; set; } - Gets or sets whether the mouse is hidden & locked to the game window


Event<WindowClosedHandler> OnClosed - Event triggered when the window is closed


Event<WindowResizedHandler> OnWindowResized - Event triggered when the window is resized


Event<WindowOrientationChangedHandler> OnWindowOrientationChanged - Event triggered when the display orientation changes