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

상속: KeyDefinition
파일 보기 프로젝트 열기: ThoNohT/NohBoard

공개 메소드들

메소드 설명
MouseScrollDefinition ( int id, List boundaries, int keyCode, string text ) : System

Initializes a new instance of the MouseScrollDefinition class.

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

Render ( Graphics g, int scrollCount ) : void

Renders the key in the specified surface.

Translate ( int dx, int dy ) : ElementDefinition

Translates the element, moving it the specified distance.

UnionWith ( List keys ) : KeyDefinition

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

비공개 메소드들

메소드 설명
UnionWith ( IList keys ) : MouseScrollDefinition

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

메소드 상세

MouseScrollDefinition() 공개 메소드

Initializes a new instance of the MouseScrollDefinition class.
The position of the text is determined from the bounding box of the key.
public MouseScrollDefinition ( int id, List boundaries, int keyCode, string text ) : System
id int The identifier of the key.
boundaries List The boundaries.
keyCode int The keycode.
text string The text of the key.
리턴 System

Render() 공개 메소드

Renders the key in the specified surface.
public Render ( Graphics g, int scrollCount ) : void
g System.Drawing.Graphics The GDI+ surface to render on.
scrollCount int The number of times the direction has been scrolled within the timeout.
리턴 void

Translate() 공개 메소드

Translates the element, moving it the specified distance.
public Translate ( int dx, int dy ) : ElementDefinition
dx int The distance along the x-axis.
dy int The distance along the y-axis.
리턴 ElementDefinition

UnionWith() 공개 메소드

Updates the key definition to occupy a region of itself plus the specified other keys.
public UnionWith ( List keys ) : KeyDefinition
keys List The keys to union with.
리턴 KeyDefinition