C# 클래스 ThoNohT.NohBoard.Keyboard.ElementDefinitions.KeyDefinition

상속: ElementDefinition
파일 보기 프로젝트 열기: ThoNohT/NohBoard 1 사용 예제들

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