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

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

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
GetBoundingBox ( ) : Rectangle

Returns the bounding box of this element.

Inside ( Point point ) : bool

Calculates whether the specified point is inside this element.

MouseSpeedIndicatorDefinition ( int id, TPoint location, int radius ) : System

Initializes a new instance of the MouseSpeedIndicatorDefinition class.

Render ( Graphics g, SizeF speed ) : void

Renders the key in the specified surface.

Translate ( int dx, int dy ) : ElementDefinition

Translates the element, moving it the specified distance.

메소드 상세

GetBoundingBox() 공개 메소드

Returns the bounding box of this element.
public GetBoundingBox ( ) : Rectangle
리턴 System.Drawing.Rectangle

Inside() 공개 메소드

Calculates whether the specified point is inside this element.
public Inside ( Point point ) : bool
point Point The point.
리턴 bool

MouseSpeedIndicatorDefinition() 공개 메소드

Initializes a new instance of the MouseSpeedIndicatorDefinition class.
public MouseSpeedIndicatorDefinition ( int id, TPoint location, int radius ) : System
id int The identifier of the key.
location TPoint The location.
radius int The radius.
리턴 System

Render() 공개 메소드

Renders the key in the specified surface.
public Render ( Graphics g, SizeF speed ) : void
g System.Drawing.Graphics The GDI+ surface to render on.
speed System.Drawing.SizeF The speed of the mouse.
리턴 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