Table of Contents

Namespace Xui.Core.Actual

Classes

Runtime

Provides global access to the platform-specific runtime environment for the current Xui application.

The platform must assign Current at startup with a concrete IRuntime implementation, which wires up platform-specific services like rendering, window creation, and dispatching.

Runtime.RuntimeNotAvailable

Exception thrown when Current is accessed before it has been initialized.

Interfaces

IDispatcher

Represents a platform-specific dispatcher for marshaling callbacks onto the main UI thread. Used by the Xui runtime to ensure thread-safe execution of UI logic.

Each platform must provide an implementation that posts callbacks to the appropriate runloop or UI thread.

IRunLoop

Represents a platform-specific run loop responsible for driving the application's lifecycle. Each platform must provide an implementation that enters the appropriate system event loop and continues running until the application exits.

The Xui runtime uses this interface to abstract over platform differences in event dispatch and app execution.

IRuntime

Provides a platform-specific implementation of the Xui runtime, responsible for creating and connecting abstract application components to their actual counterparts.

This interface acts as a bridge between the platform-independent core and the underlying OS-specific APIs (e.g., Win32, Cocoa, UIKit), enabling rendering, windowing, and event dispatch.

IWindow

Represents a platform-specific window implementation used by the Xui runtime. Each platform (e.g., Windows, macOS, iOS) must provide an implementation of this interface to manage window lifecycle, rendering, and input.

This interface is typically paired with an abstract window in the Xui framework, and is not used directly by application developers.