IApplicationWindow
Description
- Derived from
-
INativeWindow
IInputState
IRequestClose
IDisposableGeneric<IApplicationWindow> - Extended by
-
ApplicationWindowBase abstract
Base interface for classes that define a window which can host an IApplication application.
Public / Methods
Resize
Tries to change the current size of the application windows client area.
If the client size of an application window cannot be set by code (e.g. it is not a top-level window), the client size will remain unchanged and the State property will be WindowState.Normal.
If full-screen mode is not available, the window will be maximized instead, if possible.
Restore
Restores the previous window state.
-
WindowState.Fullscreen:
The window is restored to the state it had before entering full-screen mode, which may be normal or maximized mode. -
WindowState.Maximized:
The window is restored to the most recent size and position it had in normal mode. -
WindowState.Hidden:
The window is restored to the most recent size and position it had in normal mode. -
WindowState.Normal:
The method returns silently.
Public / Attributes
InputSettings
The current settings for processing raw input events.
Defaults to InputSettings.Default.
IsTopLevel
Is this a top-level window?
Top-level windows can be put into full-screen mode and can be maximized.
MouseCaptured
Is the mouse currently captured by the application window?
While the mouse cursor is captured, the application exhibits the following behaviour:
-
The mouse cursor is not visible and cannot leave the application window, therefore it is not possible to accidentally transfer input focus to another window.
-
The mouse cursor is locked at the center of the application window client area. This way unbounded relative mouse movement can be consumed.
MouseCursor
The mouse cursor to show inside the application window.
The default value is MouseCursor.Default.