ApplicationUtil

Description

static class Tinman.Engine.Application.ApplicationUtil

Helper class for this namespace.

Public / Constants

Buttons


public static readonly attribute Buttons → (RangeE<MouseButton>)

The mouse button contants.

Keys


public static readonly attribute Keys → (RangeE<KeyboardKey>)

The keyboard key constants.

Public / Methods

Name​Of

3 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.


[Pure]
public static method NameOf3 → (1)

modifiers in : InputModifiers

The input modifiers.

returns → string

The mnemonic.

Returns a human-readable mnemonic for the given input modifiers.

The input modifier mnemonic is formatted as a fixed-length string:

"_______" -> InputModifiers.None
"ACSLMRP" -> InputModifiers.All
 ||||||\
 |||||\ InputModifiers.Captured
 ||||\ InputModifiers.Right
 |||\ InputModifiers.Middle
 ||\ InputModifiers.Left
 |\ InputModifiers.Shift
 \ InputModifiers.Control
  InputModifiers.Alt

To​Modifier

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.

To​String


[Pure]
public static method ToString → (1)

flags in : NativeHandleFlags

The native window flags.

returns → string

The string representation.

Returns a human-readable string representation of the given flags in.

Public / Attributes

Clipboard


public static attribute Clipboard → (get,set)

value : string

The text content or null.

The text content of the system clipboard, accessed via the first IApplicationWindowFactory in ApplicationWindowFactory.All for which IApplicationWindowFactory.CanClipboard returns true.

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.