Method | Description | |
---|---|---|
CheckTouchCollision ( ITouchPoint touchPosition ) : bool |
Checks wheter a particular touch point (user pressing the screen) is within the bounds of one of the tools.
|
|
Draw ( bool refreshDisplay ) : void |
Draw the toolbox (and all containing tools) on to the image
|
|
ToolBox ( |
Initializes a new instance of the Paint.ToolBox class.
|
Method | Description | |
---|---|---|
AddButton ( |
Creates a button and adds it.
|
|
AddButtons ( |
Creates all the buttons and adds them to our list of controls
|
|
AddTool ( IToolBoxTool tool ) : void |
Adds the tool to our toolbox
|
|
DrawBackground ( ) : void |
Draws the background (and border)
|
|
DrawTools ( bool refreshDisplay ) : void |
Draws the tools.
|
|
OnExitButtonPressed ( |
Raises the exit selected changed event.
|
Method | Description | |
---|---|---|
AddStandardTools ( |
Adds the standard tools.
|
|
TranslateToolboxLayoutColor ( |
Translates the toolbox layout color type to a Color.
|
protected AddButton ( |
||
buttonLayout | /// Button layout. /// | |
return | void |
protected AddButtons ( |
||
buttons | ||
return | void |
protected AddTool ( IToolBoxTool tool ) : void | ||
tool | IToolBoxTool | /// The tool to add to the toolbox /// |
return | void |
public CheckTouchCollision ( ITouchPoint touchPosition ) : bool | ||
touchPosition | ITouchPoint | |
return | bool |
public Draw ( bool refreshDisplay ) : void | ||
refreshDisplay | bool | /// True = we should redraw the entire control /// False = just draw any updates /// |
return | void |
protected DrawTools ( bool refreshDisplay ) : void | ||
refreshDisplay | bool | /// True = we should redraw the entire control /// False = just draw any updates /// |
return | void |
protected OnExitButtonPressed ( |
||
e | /// Any relevant EventArgs (should be EventArgs.Empty) /// | |
return | void |
public ToolBox ( |
||
toolboxLayoutDefinition | ||
graphicsDisplay | IGraphicsDisplay | |
scale | int | |
return | System |