ApplicationUtil

Description

static class Tinman.Engine.Application.ApplicationUtil

Helper class for this namespace.

Public / Constants

ButtonCount


public constant ButtonCount → (3:int32)

Total number of mouse buttons.

See also

MouseButton

ButtonFirst


public constant ButtonFirst → (MouseButton.Left:MouseButton)

The first mouse button constant (inclusive).

See also

MouseButton

ButtonLast


public constant ButtonLast → (MouseButton.Right:MouseButton)

The last mouse button constant (inclusive).

See also

MouseButton

KeyCount


public constant KeyCount → (98:int32)

Total number of keyboard keys.

See also

KeyboardKey

KeyFirst


public constant KeyFirst → (KeyboardKey.Alt:KeyboardKey)

The first keyboard key constant (inclusive).

See also

KeyboardKey

KeyLast


public constant KeyLast → (KeyboardKey.Tab:KeyboardKey)

The last keyboard key constant (inclusive).

See also

KeyboardKey

Public / Methods

NameOf

2 overloads


[Pure]
public static method NameOf1 → (1)

key in : KeyboardKey

The keyboard key.

returns → string

The human-readable name.

Returns the human-readable name of the given keyboard key.


[Pure]
public static method NameOf2 → (1)

button in : MouseButton

The mouse button.

returns → string

The human-readable name.

Returns the human-readable name of the given mouse button.

ToModifier

2 overloads


[Pure]
public static method ToModifier1 → (1)

button in : MouseButton

The mouse button.

returns → InputModifiers

The input modifier or InputModifiers.None.

Returns the input modifier for the given mouse button.


[Pure]
public static method ToModifier2 → (1)

key in : KeyboardKey

The keyboard key.

returns → InputModifiers

The input modifier or InputModifiers.None.

Returns the input modifier for the given keyboard key.

Public / Attributes

Clipboard


public static attribute Clipboard → (get,set)

value : string

The text content or null.

The text content of the system clipboard.

If the system clipboard cannot be accessed (for any reason), setting this property will have no effect and getting it will always return null.

Configuration

Config


public static attribute Config → (get)

value : IConfigurator<IApplication>

[not-null]
The configurator object.

The configurator object for IApplication types.