Search Results for

    Show / Hide Table of Contents

    Class Surface

    Represent a control/widget on a WindowSystem.

    Inheritance
    object
    Surface
    Window
    FormsSurface
    WPFSurface
    Implements
    IDisposable
    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 Surface : IDisposable

    Constructors

    Surface(uint, uint)

    Initializes a new instance of the Surface class.

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

    surface width.

    uint height

    surface height.

    Fields

    Height

    Surface Height.

    Declaration
    public uint Height
    Field Value
    Type Description
    uint

    SurfaceInfo

    Surface information.

    Declaration
    public SurfaceInfo SurfaceInfo
    Field Value
    Type Description
    SurfaceInfo

    Width

    Surface Width.

    Declaration
    public uint Width
    Field Value
    Type Description
    uint

    Properties

    DPIDensity

    Gets or sets the surface DPI density.

    Declaration
    public float DPIDensity { get; protected set; }
    Property Value
    Type Description
    float

    KeyboardDispatcher

    Gets the keyboard events dispatcher associated to this surface.

    Declaration
    public abstract KeyboardDispatcher KeyboardDispatcher { get; }
    Property Value
    Type Description
    KeyboardDispatcher

    MouseDispatcher

    Gets the mouse events dispatcher associated to this surface.

    Declaration
    public abstract MouseDispatcher MouseDispatcher { get; }
    Property Value
    Type Description
    MouseDispatcher

    TouchDispatcher

    Gets the touch events dispatcher associated to this surface.

    Declaration
    public abstract PointerDispatcher TouchDispatcher { get; }
    Property Value
    Type Description
    PointerDispatcher

    Methods

    Destroy()

    Remove managed resources.

    Declaration
    protected virtual void Destroy()

    Dispose()

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

    Declaration
    public void Dispose()

    OnClosing()

    Raise base window closing event.

    Declaration
    protected virtual void OnClosing()

    OnGotFocus()

    Raise base got focus event.

    Declaration
    protected virtual void OnGotFocus()

    OnInfoChanged()

    Raise surface info changed.

    Declaration
    protected virtual void OnInfoChanged()

    OnLostFocus()

    Raise base lost focus event.

    Declaration
    protected virtual void OnLostFocus()

    OnSizeChanged()

    Raise base size changed event.

    Declaration
    protected virtual void OnSizeChanged()

    Events

    Closing

    Occurs when surface is closing

    Declaration
    public event EventHandler Closing
    Event Type
    Type Description
    EventHandler

    GotFocus

    Occurs when surface get focus

    Declaration
    public event EventHandler GotFocus
    Event Type
    Type Description
    EventHandler

    LostFocus

    Occurs when surface lost focus

    Declaration
    public event EventHandler LostFocus
    Event Type
    Type Description
    EventHandler

    OnScreenSizeChanged

    Occurs when surface size is changed.

    Declaration
    public event EventHandler<SizeEventArgs> OnScreenSizeChanged
    Event Type
    Type Description
    EventHandler<SizeEventArgs>

    OnSurfaceInfoChanged

    Occurs when surface info is changed.

    Declaration
    public event EventHandler<SurfaceInfo> OnSurfaceInfoChanged
    Event Type
    Type Description
    EventHandler<SurfaceInfo>

    Implements

    IDisposable

    Extension Methods

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