Table of Contents

Class MacOSWindow

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

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)

Gets the service object of the specified type.

public object? GetService(Type serviceType)

Parameters

serviceType Type

An object that specifies the type of service object to get.

Returns

object

A service object of type serviceType.

-or-

null if there is no service object of type serviceType.

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