Class SDLWindow
Represent a SDL window implementation on WindowSystem.
Implements
Inherited Members
Namespace: Evergine.SDL
Assembly: Evergine.SDL.dll
Syntax
public class SDLWindow : Window, IDisposable
  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 events dispatcher associated to this surface.
Declaration
public override KeyboardDispatcher KeyboardDispatcher { get; }
  Property Value
| Type | Description | 
|---|---|
| KeyboardDispatcher | 
Overrides
MouseDispatcher
Gets the mouse events dispatcher associated to this surface.
Declaration
public override MouseDispatcher MouseDispatcher { get; }
  Property Value
| Type | Description | 
|---|---|
| MouseDispatcher | 
Overrides
NativeWindow
Gets or sets sDL2 Window instance.
Declaration
public IntPtr NativeWindow { get; protected set; }
  Property Value
| Type | Description | 
|---|---|
| IntPtr | 
Title
Gets or sets window title.
Declaration
public override string Title { get; set; }
  Property Value
| Type | Description | 
|---|---|
| string | 
Overrides
TouchDispatcher
Gets the touch events dispatcher associated to this surface.
Declaration
public override PointerDispatcher TouchDispatcher { get; }
  Property Value
| Type | Description | 
|---|---|
| PointerDispatcher | 
Overrides
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
Methods
Destroy()
Remove managed resources.
Declaration
protected override void Destroy()
  Overrides
OnEvent(SDL_Event)
SDL Event manager method.
Declaration
public void OnEvent(SDL_Event ev)
  Parameters
| Type | Name | Description | 
|---|---|---|
| SDL_Event | ev | SDL event.  |