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

Inheritance: ElementDefinition
Afficher le fichier Open project: ThoNohT/NohBoard

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

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

Inside() public méthode

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

MouseSpeedIndicatorDefinition() public méthode

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.
Résultat System

Render() public méthode

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.
Résultat void

Translate() public méthode

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.
Résultat ElementDefinition