Class MacOSWindow
public class MacOSWindow : AppKit.NSWindow, IDisposable, IWindow, IServiceProvider
- Inheritance
-
MacOSWindow
- Implements
- Inherited Members
- Extension Methods
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)
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.
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