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
Mostrar archivo Open project: RandolphBurt/MonoGame-iOS-SimplePaint Class Usage Examples

Public Methods

Method 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

Protected Methods

Method 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 method

Initializes a new instance of the Paint.ColorPicker class.
public ColorPicker ( IGraphicsDisplay graphicsDisplay, ColorPickerDefinition colorPickerDefinition ) : System
graphicsDisplay IGraphicsDisplay
colorPickerDefinition ColorPickerDefinition
return System

Draw() public method

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

HandleTouch() protected method

Handles a particular touch by the user
protected HandleTouch ( ITouchPoint touchPosition ) : void
touchPosition ITouchPoint
return void

OnColorSelected() protected method

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