Search Results for

    Show / Hide Table of Contents

    Class WinUIWindowsSystem

    WinUI Windows System.

    Inheritance
    object
    WindowsSystem
    WinUIWindowsSystem
    Implements
    IGetNativePointers
    Inherited Members
    WindowsSystem.AvailablePointerKeys
    WindowsSystem.Run(Action, Action)
    WindowsSystem.Dispose()
    WindowsSystem.GetNativePointer(string, out nint)
    Namespace: Evergine.WinUI
    Assembly: Evergine.WinUI.dll
    Syntax
    public class WinUIWindowsSystem : WindowsSystem, IGetNativePointers

    Constructors

    WinUIWindowsSystem()

    Initializes a new instance of the WinUIWindowsSystem class. This overload uses the UI Thread to run the Evergine loop.

    Declaration
    public WinUIWindowsSystem()

    WinUIWindowsSystem(SynchronizationContext)

    Initializes a new instance of the WinUIWindowsSystem class. This overload uses a new thread to run the Evergine loop, and configures the specified SynchronizationContext.

    Declaration
    public WinUIWindowsSystem(SynchronizationContext renderThreadSynchronizationContext)
    Parameters
    Type Name Description
    SynchronizationContext renderThreadSynchronizationContext

    If specified, the SynchronizationContext will be configured in the Evergine loop.

    Methods

    CreateLoopThread(Action, Action)

    Creates a looping thread.

    Declaration
    protected override void CreateLoopThread(Action loadAction, Action renderCallback)
    Parameters
    Type Name Description
    Action loadAction

    The loading action.

    Action renderCallback

    The rendering callback action.

    Overrides
    WindowsSystem.CreateLoopThread(Action, Action)

    CreateSurface(object)

    Creates a surface.

    Declaration
    public override Surface CreateSurface(object nativeSurface)
    Parameters
    Type Name Description
    object nativeSurface

    The native surface control.

    Returns
    Type Description
    Surface

    A surface instance.

    Overrides
    WindowsSystem.CreateSurface(object)

    CreateSurface(uint, uint)

    Creates a surface.

    Declaration
    public override Surface CreateSurface(uint width, uint height)
    Parameters
    Type Name Description
    uint width

    The width of the surface.

    uint height

    The height of the surface.

    Returns
    Type Description
    Surface

    A surface instance.

    Overrides
    WindowsSystem.CreateSurface(uint, uint)

    CreateWindow(string, uint, uint, bool)

    Creates a window.

    Declaration
    public override Window CreateWindow(string title, uint width, uint height, bool visible)
    Parameters
    Type Name Description
    string title

    Window title.

    uint width

    Window width.

    uint height

    Window height.

    bool visible

    Window visibility.

    Returns
    Type Description
    Window

    Window instance.

    Overrides
    WindowsSystem.CreateWindow(string, uint, uint, bool)

    Destroy()

    Destroys all resources.

    Declaration
    protected override void Destroy()
    Overrides
    WindowsSystem.Destroy()

    Implements

    IGetNativePointers

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX