Property | Type | Description | |
---|---|---|---|
GetText | string | ||
UnionWith |
Method | Description | |
---|---|---|
BordersWith ( |
Checks whether this key overlaps with another specified key definition.
|
|
KeyboardKeyDefinition ( int id, List |
Initializes a new instance of the KeyboardKeyDefinition class. The position of the text is determined from the bounding box of the key. |
|
KeyboardKeyDefinition ( int id, List |
Initializes a new instance of the KeyboardKeyDefinition class.
|
|
Render ( |
Renders the key in the specified surface.
|
|
Translate ( int dx, int dy ) : |
Translates the element, moving it the specified distance.
|
|
UnionWith ( List |
Updates the key definition to occupy a region of itself plus the specified other keys.
|
Method | Description | |
---|---|---|
GetText ( bool shift, bool capsLock ) : string |
Determines whether to use the shift text or the regular text for this key depening on the shift, caps lock state and the key's properties. Returns the text that should be displayed for this state.
|
|
UnionWith ( IList |
Updates the key definition to occupy a region of itself plus the specified other keys.
|
public BordersWith ( |
||
otherKey | The other key to check for overlapping on. | |
return | bool |
public KeyboardKeyDefinition ( int id, List |
||
id | int | The identifier of the key. |
boundaries | List |
The boundaries. |
keyCodes | List |
The keycodes. |
normalText | string | The normal text. |
shiftText | string | The shift text. |
changeOnCaps | bool | Whether to change to shift text on caps lock. |
return | System |
public KeyboardKeyDefinition ( int id, List |
||
id | int | The identifier of the key. |
boundaries | List |
The boundaries. |
keyCodes | List |
The keycodes. |
text | string | The normal text. |
shiftText | string | The shift text. |
changeOnCaps | bool | Whether to change to shift text on caps lock. |
textPosition | TPoint | The position of the text. |
return | System |
public Render ( |
||
g | The GDI+ surface to render on. | |
pressed | bool | A value indicating whether to render the key in its pressed state or not. |
shift | bool | A value indicating whether shift is pressed during the render. |
capsLock | bool | A value indicating whether caps lock is pressed during the render. |
return | void |
public Translate ( int dx, int dy ) : |
||
dx | int | The distance along the x-axis. |
dy | int | The distance along the y-axis. |
return |
public UnionWith ( List |
||
keys | List |
The keys to union with. |
return |