Search Results for

    Show / Hide Table of Contents

    Class WindowsSystem

    Represent a specify windows technology.

    Inheritance
    object
    WindowsSystem
    FormsWindowsSystem
    SDLWindowsSystem
    WPFWindowsSystem
    Implements
    IDisposable
    IGetNativePointers
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Common.Graphics
    Assembly: Evergine.Common.dll
    Syntax
    public abstract class WindowsSystem : IDisposable, IGetNativePointers

    Properties

    AvailablePointerKeys

    Gets a list of all available keys to obtain native pointers.

    Declaration
    public virtual IEnumerable<string> AvailablePointerKeys { get; }
    Property Value
    Type Description
    IEnumerable<string>

    Methods

    CreateLoopThread(Action, Action)

    Creates a loop thread.

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

    The load action.

    Action renderCallback

    The render callback action.

    CreateSurface(object)

    Create a surface.

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

    The native surface control.

    Returns
    Type Description
    Surface

    Surface instance.

    CreateSurface(uint, uint)

    Create a surface.

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

    Surface width.

    uint height

    Surface height.

    Returns
    Type Description
    Surface

    Surface instance.

    CreateWindow(string, uint, uint, bool)

    Create a Window.

    Declaration
    public abstract Window CreateWindow(string title, uint width, uint height, bool visible = true)
    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.

    Destroy()

    Destroy all resources.

    Declaration
    protected virtual void Destroy()

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()

    GetNativePointer(string, out IntPtr)

    Obtain a native pointer of this graphics context using the given key.

    Declaration
    public virtual bool GetNativePointer(string pointerKey, out IntPtr nativePointer)
    Parameters
    Type Name Description
    string pointerKey

    The pointer key.

    IntPtr nativePointer

    The native pointer.

    Returns
    Type Description
    bool

    True if there are an available pointer with this key.

    Run(Action, Action)

    Run the windows system.

    Declaration
    public void Run(Action loadAction, Action renderCallback)
    Parameters
    Type Name Description
    Action loadAction

    Action does in load thread.

    Action renderCallback

    Action to be executed every render loop.

    Implements

    IDisposable
    IGetNativePointers

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX