GameWindow Class (Microsoft.Xna.Framework)

System.Object
   Microsoft.Xna.Framework.GameWindow

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public abstract class GameWindow

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The GameWindow type exposes the following members.

  Platforms Name Description
GameWindow  
Top
  Platforms Name Description
AllowAltF4 Gets or sets a bool that enables usage of Alt+F4 for window closing on desktop platforms. Value is true by default. 
AllowUserResizing  
ClientBounds  
CurrentOrientation  
Handle  
IsBorderless Determines whether the border of the window is visible. Currently only supported on the WinDX and WinGL/Linux platforms. 
Position The location of this window on the desktop, eg: global coordinate space which stretches across all screens. 
ScreenDeviceName  
Title Gets or sets the title of the game window. 
Top
  Platforms Name Description
ClientSizeChanged  
KeyDown Buffered keyboard KeyDown event. 
KeyUp Buffered keyboard KeyUp event. 
OrientationChanged  
ScreenDeviceNameChanged  
TextInput Use this event to retrieve text for objects like textbox's. This event is not raised by noncharacter keys. This event also supports key repeat. For more information this event is based off: http://msdn.microsoft.com/en-AU/library/system.windows.forms.control.keypress.aspx 
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web