Window

Summary

Definition

Namespace: SDT4.Managed.Windowing
Assembly: SDT4.Managed.Windowing.dll

sealed class Window
Inheritance:

ObjectWindow

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 Vector2i Size of the window in pixels
public get; FramebufferSize Vector2i The renderable framebuffer region of the window in pixels
public get; set; Position Vector2i 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 Window.Size for determining the size of the renderable region. Use Window.FramebufferSize to determine appropriate renderable regions for render targets.


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:


public Void Dispose()