Window
Summary
Definition
Namespace: SDT4.Managed.Windowing
Assembly: SDT4.Managed.Windowing.dll
sealed class Window
Inheritance:
Object ➔ Window
Implements:
IDisposable
Fields
| Name | Type | Description |
|---|---|---|
Properties
| Name | Type | Description |
|---|---|---|
public get; NativeWindow |
IntPtr | |
public get; WindowMonitor |
Monitor | The monitor that the window resides in. |
| This is NULL if the window is not in fullscreen mode! | ||
public get; set; Size |
Vector2f | Size of the window in pixels |
public get; FramebufferSize |
Vector2f | The renderable framebuffer region of the window in pixels |
public get; set; Position |
Vector2f | Position of the window relative to the workspace |
public get; set; Borderless |
Boolean | If the window has the title bar visible or not. |
public get; set; Resizable |
Boolean | If the window has the title bar visible or not. |
Size Remarks
Warning
Do not use
Methods
public Void Maximize()
Summary
Maximises the window
public Void Minimize()
Summary
Minimises the window
public Void Restore()
Summary
Restores the window after minimisation.
public Void Close()
Summary
Closes window immediately
public Void SetMonitor(Monitor? monitor, VideoMode mode)
Summary
Sets the fullscreen display monitor with the specified window mode. If monitor is NULL then it will revert to windowed mode.
Parameters:
-
monitor(Monitor?): The monitor to place the window in fullscreen, null if revert to windowed. -
mode(VideoMode): Closest video mode to choose. Colour bits are ignored, and refresh rate is only applicable in fullscreen mode