WindowExtensions
Summary
Definition
Namespace: SDT4.Managed.Input
Assembly: SDT4.Managed.Input.dll
static class WindowExtensions
Inheritance:
Object ➔ WindowExtensions
Implements:
Fields
| Name | Type | Description |
|---|---|---|
Properties
| Name | Type | Description |
|---|---|---|
Methods
public static Void AddWindowResizeCallback(Window window, WindowResizeCallback resizeCallback)
Summary
Registers a callback for whenever the window resizes.
Parameters:
-
window(Window): -
resizeCallback(WindowResizeCallback): Delegate function to be called when window resizes.
public static Void RemoveWindowResizeCallback(Window window, WindowResizeCallback resizeCallback)
Summary
Removes a previously registered callback for whenever the window resizes. If NO such delegate was registered, an IndexOutOfRangeException is thrown.
Parameters:
-
window(Window): -
resizeCallback(WindowResizeCallback): Exact delegate that was registered.
public static Boolean IsKeyDown(Window window, KeyInput key)
Parameters:
Returns:
public static Boolean IsMouseDown(Window window, MouseInput mouseBtn)
Parameters:
-
window(Window): -
mouseBtn(MouseInput):
Returns:
public static Vector2f GetMousePosition()
Returns: