Search Results for

    Show / Hide Table of Contents

    Class SDLWindow

    Represent a SDL window implementation on WindowSystem.

    Inheritance
    object
    Surface
    Window
    SDLWindow
    Inherited Members
    Surface.SurfaceInfo
    Surface.Width
    Surface.Height
    Surface.DPIDensity
    Surface.OnScreenSizeChanged
    Surface.OnSurfaceInfoChanged
    Surface.Closing
    Surface.GotFocus
    Surface.LostFocus
    Surface.Dispose()
    Surface.OnClosing()
    Surface.OnGotFocus()
    Surface.OnLostFocus()
    Surface.OnSizeChanged()
    Surface.OnInfoChanged()
    Namespace: Evergine.SDL
    Assembly: Evergine.SDL.dll
    Syntax
    public class SDLWindow : Window

    Constructors

    SDLWindow(string, uint, uint, bool)

    Initializes a new instance of the SDLWindow class.

    Declaration
    public SDLWindow(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.

    Properties

    KeyboardDispatcher

    Gets the keyboard event dispatcher associated with this surface.

    Declaration
    public override KeyboardDispatcher KeyboardDispatcher { get; }
    Property Value
    Type Description
    KeyboardDispatcher
    Overrides
    Surface.KeyboardDispatcher

    MouseDispatcher

    Gets the mouse event dispatcher associated with this surface.

    Declaration
    public override MouseDispatcher MouseDispatcher { get; }
    Property Value
    Type Description
    MouseDispatcher
    Overrides
    Surface.MouseDispatcher

    NativeWindow

    Gets or sets sDL2 Window instance.

    Declaration
    public nint NativeWindow { get; protected set; }
    Property Value
    Type Description
    nint

    Title

    Gets or sets the window title.

    Declaration
    public override string Title { get; set; }
    Property Value
    Type Description
    string
    Overrides
    Window.Title

    TouchDispatcher

    Gets the touch events dispatcher associated with this surface.

    Declaration
    public override PointerDispatcher TouchDispatcher { get; }
    Property Value
    Type Description
    PointerDispatcher
    Overrides
    Surface.TouchDispatcher

    Visible

    Gets or sets a value indicating whether the window is visible.

    Declaration
    public override bool Visible { get; set; }
    Property Value
    Type Description
    bool
    Overrides
    Window.Visible

    Methods

    Destroy()

    Removes managed resources.

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

    OnEvent(SDL_Event)

    SDL Event manager method.

    Declaration
    public void OnEvent(SDL_Event ev)
    Parameters
    Type Name Description
    SDL_Event ev

    SDL event.

    Extension Methods

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