C# Class Paint.ColorPicker

Color picker - Simple tool that has a preset color - the user can select this tool in order to start using that color
Inheritance: ToolBoxToolTouchBase, IColorPicker
Afficher le fichier Open project: RandolphBurt/MonoGame-iOS-SimplePaint Class Usage Examples

Méthodes publiques

Méthode Description
ColorPicker ( IGraphicsDisplay graphicsDisplay, ColorPickerDefinition colorPickerDefinition ) : System

Initializes a new instance of the Paint.ColorPicker 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

OnColorSelected ( EventArgs e ) : void

Raises the color selected event.

Method Details

ColorPicker() public méthode

Initializes a new instance of the Paint.ColorPicker class.
public ColorPicker ( IGraphicsDisplay graphicsDisplay, ColorPickerDefinition colorPickerDefinition ) : System
graphicsDisplay IGraphicsDisplay
colorPickerDefinition ColorPickerDefinition
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

OnColorSelected() protected méthode

Raises the color selected event.
protected OnColorSelected ( EventArgs e ) : void
e System.EventArgs /// Any relevant EventArgs (Should be EventArgs.empty) ///
Résultat void