C# Class Paint.ColorSelector

Color selector - a tool allowing the user to specify the exact color to use by specifying individual RGBA values
Inheritance: ToolBoxToolTouchBase, IColorSelector
Afficher le fichier Open project: RandolphBurt/MonoGame-iOS-SimplePaint Class Usage Examples

Méthodes publiques

Méthode Description
ColorSelector ( IGraphicsDisplay graphicsDisplay, ColorSelectorDefinition colorSelectorDefinition ) : System

Initializes a new instance of the Paint.ColorSelector class.

Draw ( bool refreshDisplay ) : void

Draw this tool on to the image

Méthodes protégées

Méthode Description
HandleTouch ( ITouchPoint touchPosition ) : void

Handles a particular touch by the user

OnColorChanged ( EventArgs e ) : void

Raises the color changed event.

Private Methods

Méthode Description
HookGaugeEvents ( ) : void

Hooks on to all events for each gauge

UnHookGaugeEvents ( ) : void

Unhook all events for the Gauge sub-controls

gauge_MarkerChanged ( object sender, EventArgs e ) : void

Event occurrs whenever the gauge's marked position/value changes

Method Details

ColorSelector() public méthode

Initializes a new instance of the Paint.ColorSelector class.
public ColorSelector ( IGraphicsDisplay graphicsDisplay, ColorSelectorDefinition colorSelectorDefinition ) : System
graphicsDisplay IGraphicsDisplay /// Graphics display. ///
colorSelectorDefinition ColorSelectorDefinition /// Color selector definition - layout of the color selector ///
Résultat System

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

OnColorChanged() protected méthode

Raises the color changed event.
protected OnColorChanged ( EventArgs e ) : void
e System.EventArgs /// Any relevant EventArgs (should be EventArgs.Empty) ///
Résultat void