C# Class Paint.PaintToolBox

Tool box - container for all tools
Inheritance: ToolBox, IPaintToolBox
Mostrar archivo Open project: RandolphBurt/MonoGame-iOS-SimplePaint

Public Methods

Method Description
PaintToolBox ( ToolboxLayoutDefinition toolboxLayoutDefinition, IGraphicsDisplay graphicsDisplay, int scale ) : System

Initializes a new instance of the Paint.PaintToolBox class.

Protected Methods

Method Description
AddButton ( ToolboxLayoutDefinitionStandardToolsButtonsButton buttonLayout ) : void

Creates all the buttons and adds them to our list of controls

OnRedoSelected ( EventArgs e ) : void

Raises the redo selected changed event.

OnUndoSelected ( EventArgs e ) : void

Raises the undo selected changed event.

Private Methods

Method Description
AddRedoButton ( ToolboxLayoutDefinitionStandardToolsButtonsButton buttonLayout ) : void

Adds the redo button.

AddUndoButton ( ToolboxLayoutDefinitionStandardToolsButtonsButton buttonLayout ) : void

Adds the undo button.

CreateBrushSizeSelector ( Color startColor, ToolboxLayoutDefinitionPaintToolsBrushSizeSelector layoutBrushSizeSelector ) : BrushSizeSelector

Creates the brush size selector.

CreateColorPickers ( ColorSelector colorSelector, ToolboxLayoutDefinitionPaintToolsColorPickersColorPicker layoutColorPickers ) : void

Creates the color pickers.

CreateColorSelector ( Color startColor, ToolboxLayoutDefinitionPaintToolsColorSelector layoutColorSelector ) : ColorSelector

Creates the color selector.

CreateColorSetter ( Color startColor, ToolboxLayoutDefinitionPaintToolsColorSetter layoutColorSetter ) : ColorSetter

Creates the color setter.

CreateTools ( ToolboxLayoutDefinition toolboxLayoutDefinition ) : void

Creates all our tools.

SetBrushSizeRectange ( int brushWidth ) : void

Sets the brush size rectange.

Method Details

AddButton() protected method

Creates all the buttons and adds them to our list of controls
protected AddButton ( ToolboxLayoutDefinitionStandardToolsButtonsButton buttonLayout ) : void
buttonLayout Paint.ToolboxLayout.ToolboxLayoutDefinitionStandardToolsButtonsButton
return void

OnRedoSelected() protected method

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

OnUndoSelected() protected method

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

PaintToolBox() public method

Initializes a new instance of the Paint.PaintToolBox class.
public PaintToolBox ( ToolboxLayoutDefinition toolboxLayoutDefinition, IGraphicsDisplay graphicsDisplay, int scale ) : System
toolboxLayoutDefinition Paint.ToolboxLayout.ToolboxLayoutDefinition
graphicsDisplay IGraphicsDisplay
scale int
return System