Class FormsWindowsSystem
Windows Forms system.
Implements
Inherited Members
Namespace: Evergine.Forms
Assembly: Evergine.Forms.dll
Syntax
public class FormsWindowsSystem : WindowsSystem, IGetNativePointers
Properties
AutoRegisterWindow
Gets or sets a value indicating whether invoking CreateWindow(string, uint, uint, bool) will automatically register the window using RegisterLoopThreadControl(Control).
Declaration
public bool AutoRegisterWindow { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
CreateLoopThread(Action, Action)
Creates a looping thread.
Declaration
protected override void CreateLoopThread(Action loadAction, Action renderCallback)
Parameters
| Type | Name | Description |
|---|---|---|
| Action | loadAction | The loading action. |
| Action | renderCallback | The rendering callback action. |
Overrides
CreateSurface(object)
Creates a surface.
Declaration
public override Surface CreateSurface(object nativeSurface)
Parameters
| Type | Name | Description |
|---|---|---|
| object | nativeSurface | The native surface control. |
Returns
| Type | Description |
|---|---|
| Surface | A surface instance. |
Overrides
CreateSurface(uint, uint)
Creates a surface.
Declaration
public override Surface CreateSurface(uint width, uint height)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | width | The width of the surface. |
| uint | height | The height of the surface. |
Returns
| Type | Description |
|---|---|
| Surface | A surface instance. |
Overrides
CreateWindow(string, uint, uint, bool)
Creates a window.
Declaration
public override 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. |
Overrides
RegisterLoopThreadControl(Control)
Registers native Windows Forms control that will be used to created rendering loop.
Declaration
public void RegisterLoopThreadControl(Control control)
Parameters
| Type | Name | Description |
|---|---|---|
| Control | control | Windows Forms control. |