Application Class
Namespace: Stride.Graphics.SDLAssembly: Stride.Graphics.dll
System.Object →
Application
Derived from Application:
public static class Application
| Name | Description | |
|---|---|---|
| Properties | ||
| Clipboard | ||
| MousePosition | Screen coordinate of the mouse. |
|
| Windows | List of windows managed by the application. |
|
| WindowWithFocus | Window that currently has the focus. |
|
| Methods | ||
| ProcessEvent(SDL.SDL_Event) | Process a single event and dispatch it to the right window. |
|
| ProcessEvents() | Process all available events. |
|
| RegisterWindow(Window) | Register |
|
| UnregisterWindow(Window) | Unregister |
|
Properties
Clipboard
public static string Clipboard { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
MousePosition
Screen coordinate of the mouse.
public static Point MousePosition { get; set; }
Property Value
| Type | Description |
|---|---|
| Point |
Windows
List of windows managed by the application.
public static List<Window> Windows { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<Window> |
WindowWithFocus
Window that currently has the focus.
public static Window WindowWithFocus { get; }
Property Value
| Type | Description |
|---|---|
| Window |
Methods
ProcessEvent(SDL.SDL_Event)
Process a single event and dispatch it to the right window.
public static void ProcessEvent(SDL.SDL_Event e)
Parameters
| Type | Name | Description |
|---|---|---|
| SDL2.SDL.SDL_Event | e |
ProcessEvents()
Process all available events.
public static void ProcessEvents()
RegisterWindow(Window)
Register c to the list of available windows.
public static void RegisterWindow(Window c)
Parameters
| Type | Name | Description |
|---|---|---|
| Window | c | Window to register |
UnregisterWindow(Window)
Unregister c from the list of available windows.
public static void UnregisterWindow(Window c)
Parameters
| Type | Name | Description |
|---|---|---|
| Window | c | Window to unregister |