C# Class ThoNohT.NohBoard.Keyboard.ElementDefinitions.MouseSpeedIndicatorDefinition

Inheritance: ElementDefinition
Exibir arquivo Open project: ThoNohT/NohBoard

Private Properties

Property Type Description

Public Methods

Method Description
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.

Method Details

GetBoundingBox() public method

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

Inside() public method

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

MouseSpeedIndicatorDefinition() public method

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.
return System

Render() public method

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.
return void

Translate() public method

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.
return ElementDefinition