Table of Contents

Class MacOSWindow

Namespace
Xui.Runtime.MacOS.Actual
Assembly
Xui.Runtime.MacOS.dll
public class MacOSWindow : AppKit.NSWindow, IDisposable, IWindow
Inheritance
MacOSWindow
Implements
Inherited Members

Constructors

MacOSWindow(IWindow)

public MacOSWindow(IWindow @abstract)

Parameters

abstract IWindow

Fields

AnimationFrameSel

public static ObjC.Sel AnimationFrameSel

Field Value

ObjC.Sel

Class

protected static readonly ObjC.Class Class

Field Value

ObjC.Class

CloseSel

public static readonly ObjC.Sel CloseSel

Field Value

ObjC.Sel

Properties

Abstract

protected IWindow Abstract { get; }

Property Value

IWindow

RequireKeyboard

Gets or sets whether the window currently requires keyboard input focus. Platforms may use this to show or hide on-screen keyboards.

public bool RequireKeyboard { get; set; }

Property Value

bool

TextMeasureContext

Gets a lightweight text measure context for hit-testing text positions during pointer events. Returns null on platforms that do not support it.

public ITextMeasureContext? TextMeasureContext { get; }

Property Value

ITextMeasureContext

Methods

AnimationFrame(nint, nint, nint)

public static void AnimationFrame(nint self, nint sel, nint caDisplayLink)

Parameters

self nint
sel nint
caDisplayLink nint

Close()

protected void Close()

Close(nint, nint)

protected static void Close(nint self, nint sel)

Parameters

self nint
sel nint

GetService(Type)

Returns platform-provided services for this window (e.g. IImagePipeline). Called by the abstract Window after exhausting its own DI service provider. Implementations must never call back into the abstract window.

public object? GetService(Type serviceType)

Parameters

serviceType Type

Returns

object

HideTitleButtons()

public void HideTitleButtons()

InitWithAbstract(IWindow)

public static nint InitWithAbstract(IWindow @abstract)

Parameters

abstract IWindow

Returns

nint

Invalidate()

Requests a redraw of the window surface. The platform should trigger a paint or render callback as soon as possible.

public void Invalidate()

SendEvent(nint, nint, nint)

protected static void SendEvent(nint self, nint sel, nint e)

Parameters

self nint
sel nint
e nint

SendEvent(nint, NSEventRef)

protected void SendEvent(nint sel, AppKit.NSEventRef e)

Parameters

sel nint
e AppKit.NSEventRef