GameWindow Members
The following tables list the members exposed by the GameWindow type.
Public Properties
Name | Description | |
---|---|---|
AllowUserResizing | Specifies whether to allow the user to resize the game window. | |
ClientBounds | The screen dimensions of the game window's client rectangle. | |
CurrentOrientation | Gets the current display orientation, which reflects the physical orientation of the phone in the user's hand. | |
Handle | Gets the handle to the system window. | |
ScreenDeviceName | Gets the device name of the screen the window is currently in. | |
Title | Gets and sets the title of the system window. |
Public Methods
Name | Description | |
---|---|---|
BeginScreenDeviceChange | Starts a device transition (windowed to full screen or vice versa). | |
EndScreenDeviceChange | Overloaded. Completes a device transition. | |
Equals | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Protected Methods
Name | Description | |
---|---|---|
Finalize | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
OnActivated | Called when the GameWindow gets focus. | |
OnClientSizeChanged | Called when the size of the client window changes. Raises the ClientSizeChanged event. | |
OnDeactivated | Called when the GameWindow loses focus. | |
OnOrientationChanged | Called when the GameWindow display orientation changes. | |
OnPaint | Called when the GameWindow needs to be painted. | |
OnScreenDeviceNameChanged | Called when the GameWindow is moved to a different screen. Raises the ScreenDeviceNameChanged event. | |
SetSupportedOrientations | Sets the supported display orientations. | |
SetTitle | Sets the title of the GameWindow. |
Public Events
Name | Description | |
---|---|---|
ClientSizeChanged | Raised when the size of the GameWindow changes. | |
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. | |
ScreenDeviceNameChanged | Raised when the GameWindow moves to a different display. |