NativeWindow

Description

sealed class Tinman.Engine.Application.NativeWindow

Derived from

Disposable abstract
INativeWindow

Default implementation of the INativeWindow interface.

Use this class to wrap existing native windows when calling IGraphicsContext.CreateSwapChain, instead of creating new ones from scratch.

Public / Constructors

Automatic


[OwnerReturn]
public static method Automatic → (3)

nativeHandle in : IntPtr

See INativeHandle.NativeHandle.

nativeHandleType in : NativeHandleFlags

See INativeWindow.NativeHandleType.

clientSizeFunction in : NativeWindowDelegate

[not-null]
The client size function to use. Setting the ClientSize property will have no effect.

returns → NativeWindow

The native window.

Creates a new instance of NativeWindow.

The client size of the native window will be determined automatically.

Manual


[OwnerReturn]
public static method Manual → (3)

nativeHandle in : IntPtr

See INativeHandle.NativeHandle.

nativeHandleType in : NativeHandleFlags

See INativeWindow.NativeHandleType.

clientSizeFixed in : Vec2I

The initial client size to use. Set the ClientSize property to update the client size manually.

returns → NativeWindow

The native window.

Creates a new instance of NativeWindow.

The client size of the native window must be specified manually.

Public / Attributes

Client​Size


public attribute ClientSize → (get,set)

value : Vec2I

The size of the window client area.

The current size of the application window client area.