NativeWindow

Description

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

Native​Window


public constructor NativeWindow → (3)

nativeHandle in : IntPtr

See INativeHandle.NativeHandle.

nativeHandleType in : NativeHandleType

See NativeHandleType.

clientSize opt : Vec2I = default(Vec2I)

The fixed client size to use or Vec2I.Zero to return the current size of the window client bounds (see ClientBounds).

Creates a new instance of NativeWindow.

Public / Methods

Client​Bounds


[Pure]
public static method ClientBounds → (2)

windowHandle in : IntPtr

The native window handle.

windowHandleType in : NativeHandleType

The native window handle type.

returns → Box2I

The bounds of the native window client area.

Returns the client bounds of the given native window.