Table of Contents

Class MacOSPlatform

Namespace
Xui.Runtime.MacOS.Actual
Assembly
Xui.Runtime.MacOS.dll
public class MacOSPlatform : IRuntime
Inheritance
MacOSPlatform
Implements
Inherited Members

Fields

Instance

public static readonly MacOSPlatform Instance

Field Value

MacOSPlatform

Properties

DrawingContext

Gets the global drawing context for the current platform. This typically wraps a native graphics context such as Direct2D (Windows) or CGContext (macOS), and serves as the entry point for rendering operations.

public IContext DrawingContext { get; }

Property Value

IContext

MainDispatcher

Gets the main thread dispatcher for scheduling UI work. Used to marshal execution onto the main thread for layout, input, and rendering.

public IDispatcher MainDispatcher { get; }

Property Value

IDispatcher

Methods

CreateRunloop(Application)

Creates a platform-specific run loop associated with the given abstract application. The returned run loop is responsible for managing the application's execution lifecycle.

public IRunLoop CreateRunloop(Application application)

Parameters

application Application

Returns

IRunLoop

A platform-specific run loop instance.

CreateWindow(IWindow)

Creates a platform-specific window that is bound to the given abstract window definition.

public IWindow CreateWindow(IWindow window)

Parameters

window IWindow

Returns

IWindow

A concrete window implementation for the current platform.