Class MacOSWindow
public class MacOSWindow : AppKit.NSWindow, IDisposable, IWindow, IServiceProvider
- Inheritance
-
MacOSWindow
- Implements
- Inherited Members
- Extension Methods
Constructors
MacOSWindow(IWindow, IServiceProvider)
public MacOSWindow(IWindow @abstract, IServiceProvider nextServiceProvider)
Parameters
abstractIWindownextServiceProviderIServiceProvider
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
Gets the abstract window immediately upstream of this actual window. Together with Actual, this forms the bidirectional composed-window chain.
public IWindow Abstract { get; }
Property Value
NextServiceProvider
The service provider reached after this actual window. Middleware uses this exclusively for its forward service chain; it must never use its abstract event receiver as a service fallback.
public IServiceProvider NextServiceProvider { 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)
Gets the service object of the specified type.
public object? GetService(Type serviceType)
Parameters
serviceTypeTypeAn 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.
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