GameWindow Members

The following tables list the members exposed by the GameWindow type.

Public Properties

Name Description
Public Property AllowUserResizing Specifies whether to allow the user to resize the game window.
Public Property ClientBounds The screen dimensions of the game window's client rectangle.
Public Property CurrentOrientation Gets the current display orientation, which reflects the physical orientation of the phone in the user's hand.
Public Property Handle Gets the handle to the system window.
Public Property ScreenDeviceName Gets the device name of the screen the window is currently in.
Public Property Title Gets and sets the title of the system window.

Public Methods

Name Description
Public Method BeginScreenDeviceChange Starts a device transition (windowed to full screen or vice versa).
Public Method EndScreenDeviceChange Overloaded. Completes a device transition.
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)
Protected Method OnActivated Called when the GameWindow gets focus.
Protected Method OnClientSizeChanged Called when the size of the client window changes. Raises the ClientSizeChanged event.
Protected Method OnDeactivated Called when the GameWindow loses focus.
Protected Method OnOrientationChanged Called when the GameWindow display orientation changes.
Protected Method OnPaint Called when the GameWindow needs to be painted.
Protected Method OnScreenDeviceNameChanged Called when the GameWindow is moved to a different screen. Raises the ScreenDeviceNameChanged event.
Protected Method SetSupportedOrientations Sets the supported display orientations.
Protected Method SetTitle Sets the title of the GameWindow.

Public Events

Name Description
Public Event ClientSizeChanged Raised when the size of the GameWindow changes.
Public Event OrientationChanged Describes the event raised when the display orientation of the GameWindow changes. When this event occurs, the XNA Framework automatically adjusts the game orientation based on the value specified by the developer with SupportedOrientations.
Public Event ScreenDeviceNameChanged Raised when the GameWindow moves to a different display.

See Also

Reference

GameWindow Class
Microsoft.Xna.Framework Namespace