C# Class Paint.SpeedGauge

Speed gauge toolbox item
Inheritance: ToolBoxToolTouchBase, ISpeedGauge
Afficher le fichier Open project: RandolphBurt/MonoGame-iOS-SimplePaint Class Usage Examples

Méthodes publiques

Méthode Description
Draw ( bool refreshDisplay ) : void

Draw this tool on to the image

SpeedGauge ( IGraphicsDisplay graphicsDisplay, SpeedGaugeDefinition speedGaugeDefinition ) : System

Initializes a new instance of the Paint.SpeedGauge class.

Méthodes protégées

Méthode Description
HandleTouch ( ITouchPoint touchPosition ) : void

Handles a particular touch by the user

OnSpeedChanged ( EventArgs e ) : void

Raises the speed changed event.

Private Methods

Méthode Description
CreateGauge ( IGraphicsDisplay graphicsDisplay ) : void

Creates the gauge.

CreateGraphicsRectangles ( IGraphicsDisplay graphicsDisplay ) : void

Creates the rectangles for the background graphics/icons on the gauge

Method Details

Draw() public méthode

Draw this tool on to the image
public Draw ( bool refreshDisplay ) : void
refreshDisplay bool /// True = we should redraw the entire control /// False = just draw any updates ///
Résultat void

HandleTouch() protected méthode

Handles a particular touch by the user
protected HandleTouch ( ITouchPoint touchPosition ) : void
touchPosition ITouchPoint Touch position.
Résultat void

OnSpeedChanged() protected méthode

Raises the speed changed event.
protected OnSpeedChanged ( EventArgs e ) : void
e System.EventArgs /// Empty EventArgs. ///
Résultat void

SpeedGauge() public méthode

Initializes a new instance of the Paint.SpeedGauge class.
public SpeedGauge ( IGraphicsDisplay graphicsDisplay, SpeedGaugeDefinition speedGaugeDefinition ) : System
graphicsDisplay IGraphicsDisplay raphics display.
speedGaugeDefinition SpeedGaugeDefinition Speed gauge definition.
Résultat System