C# Класс ThoNohT.NohBoard.Keyboard.ElementDefinitions.KeyDefinition

Наследование: ElementDefinition
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetBoundingBoxImpl System.Drawing.Rectangle

Открытые методы

Метод Описание
BordersWith ( KeyDefinition otherKey ) : bool

Checks whether this key overlaps with another specified key definition.

GetBoundingBox ( ) : Rectangle

Returns the bounding box of this element.

Inside ( Point point ) : bool

Calculates whether the specified point is inside this element.

UnionWith ( List keys ) : KeyDefinition

Updates the key definition to occupy a region of itself plus the specified other keys.

Защищенные методы

Метод Описание
GetBackgroundBrush ( KeySubStyle subStyle, bool pressed ) : Brush

Rmeturns the background brush for the key.

GetPath ( ) : List

Returns a Clipper recognized path for the boundaries of this key.

KeyDefinition ( int id, List boundaries, List keyCodes, string text ) : System.Collections.Generic

Initializes a new instance of the KeyDefinition class.

The position of the text is determined from the bounding box of the key.

KeyDefinition ( int id, List boundaries, List keyCodes, string text, TPoint textPosition ) : System.Collections.Generic

Initializes a new instance of the KeyDefinition class.

Приватные методы

Метод Описание
GetBoundingBoxImpl ( ) : Rectangle

Returns the bounding box of this element.

Описание методов

BordersWith() публичный Метод

Checks whether this key overlaps with another specified key definition.
public BordersWith ( KeyDefinition otherKey ) : bool
otherKey KeyDefinition The other key to check for overlapping on.
Результат bool

GetBackgroundBrush() защищенный Метод

Rmeturns the background brush for the key.
protected GetBackgroundBrush ( KeySubStyle subStyle, bool pressed ) : Brush
subStyle KeySubStyle The substyle to use for rendering the key.
pressed bool Whether the is pressed.
Результат System.Drawing.Brush

GetBoundingBox() публичный Метод

Returns the bounding box of this element.
public GetBoundingBox ( ) : Rectangle
Результат System.Drawing.Rectangle

GetPath() защищенный Метод

Returns a Clipper recognized path for the boundaries of this key.
protected GetPath ( ) : List
Результат List

Inside() публичный Метод

Calculates whether the specified point is inside this element.
public Inside ( Point point ) : bool
point System.Drawing.Point The point.
Результат bool

KeyDefinition() защищенный Метод

Initializes a new instance of the KeyDefinition class.
The position of the text is determined from the bounding box of the key.
protected KeyDefinition ( int id, List boundaries, List keyCodes, string text ) : System.Collections.Generic
id int The identifier of the key.
boundaries List The boundaries.
keyCodes List The keycodes.
text string The text of the key.
Результат System.Collections.Generic

KeyDefinition() защищенный Метод

Initializes a new instance of the KeyDefinition class.
protected KeyDefinition ( int id, List boundaries, List keyCodes, string text, TPoint textPosition ) : System.Collections.Generic
id int The identifier of the key.
boundaries List The boundaries.
keyCodes List The keycodes.
text string The text of the key.
textPosition TPoint The position of the text.
Результат System.Collections.Generic

UnionWith() публичный абстрактный Метод

Updates the key definition to occupy a region of itself plus the specified other keys.
public abstract UnionWith ( List keys ) : KeyDefinition
keys List The keys to union with.
Результат KeyDefinition