Class MacOSWindow
public class MacOSWindow : AppKit.NSWindow, IDisposable, IWindow
- Inheritance
-
MacOSWindow
- Implements
- Inherited Members
Constructors
MacOSWindow(IWindow)
public MacOSWindow(IWindow @abstract)
Parameters
abstractIWindow
Fields
AnimationFrameSel
public static ObjC.Sel AnimationFrameSel
Field Value
Class
protected static readonly ObjC.Class Class
Field Value
CloseSel
public static readonly ObjC.Sel CloseSel
Field Value
Properties
Abstract
protected IWindow Abstract { get; }
Property Value
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
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
Methods
AnimationFrame(nint, nint, nint)
public static void AnimationFrame(nint self, nint sel, nint caDisplayLink)
Parameters
Close()
protected void Close()
Close(nint, nint)
protected static void Close(nint self, nint sel)
Parameters
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
serviceTypeType
Returns
HideTitleButtons()
public void HideTitleButtons()
InitWithAbstract(IWindow)
public static nint InitWithAbstract(IWindow @abstract)
Parameters
abstractIWindow
Returns
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
SendEvent(nint, NSEventRef)
protected void SendEvent(nint sel, AppKit.NSEventRef e)
Parameters
selninteAppKit.NSEventRef