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

Public Methods

Method 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

Protected Methods

Method Description
HandleTouch ( ITouchPoint touchPosition ) : void

Handles a particular touch by the user

OnColorChanged ( EventArgs e ) : void

Raises the color changed event.

Private Methods

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

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

OnColorChanged() protected method

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