Property | Type | Description | |
---|---|---|---|
BackgroundColor | Microsoft.Xna.Framework.Color | ||
BorderColor | Microsoft.Xna.Framework.Color | ||
BorderWidth | int |
Method | Description | |
---|---|---|
CheckTouchCollision ( ITouchPoint touch ) : bool |
Checks wheter a particular touch point (user pressing the screen) is within the bounds of this control.
|
|
Draw ( bool refreshDisplay ) : void |
Draw this tool on to the image
|
|
ToolBoxToolTouchBase ( Microsoft.Xna.Framework.Color backgroundColor, Microsoft.Xna.Framework.Color borderColor, int borderWidth, IGraphicsDisplay graphicsDisplay, |
Initializes a new instance of the Paint.CanvasToolTouchBase class.
|
|
ToolBoxToolTouchBase ( Microsoft.Xna.Framework.Color backgroundColor, IGraphicsDisplay graphicsDisplay, |
Initializes a new instance of the Paint.CanvasToolTouchBase class.
|
Method | Description | |
---|---|---|
Blank ( ) : void |
Blanks the entire control
|
|
BlankAndRedrawWithBorder ( ) : void |
Blanks this tool and then redraws the border round the edge.
|
|
BlankAndRedrawWithBorder ( |
Blanks the specific rectangle and then redraws the border round the edge.
|
|
DrawGraphic ( ImageType imageType, |
Draws the graphic.
|
|
DrawRectangle ( |
Draws the rectangle.
|
|
HandleTouch ( ITouchPoint touchPosition ) : void |
Handles a particular touch by the user
|
protected BlankAndRedrawWithBorder ( ) : void | ||
return | void |
protected BlankAndRedrawWithBorder ( |
||
redrawRectangle | ||
return | void |
public CheckTouchCollision ( ITouchPoint touch ) : bool | ||
touch | ITouchPoint | |
return | bool |
public abstract Draw ( bool refreshDisplay ) : void | ||
refreshDisplay | bool | /// True = we should redraw the entire control /// False = just draw any updates /// |
return | void |
protected DrawGraphic ( ImageType imageType, |
||
imageType | ImageType | |
paintRegion | ||
return | void |
protected DrawRectangle ( |
||
paintRegion | ||
color | Microsoft.Xna.Framework.Color | |
return | void |
protected abstract HandleTouch ( ITouchPoint touchPosition ) : void | ||
touchPosition | ITouchPoint | |
return | void |
public ToolBoxToolTouchBase ( Microsoft.Xna.Framework.Color backgroundColor, Microsoft.Xna.Framework.Color borderColor, int borderWidth, IGraphicsDisplay graphicsDisplay, |
||
backgroundColor | Microsoft.Xna.Framework.Color | |
borderColor | Microsoft.Xna.Framework.Color | |
borderWidth | int | |
graphicsDisplay | IGraphicsDisplay | |
bounds | ||
return | Microsoft.Xna.Framework |
public ToolBoxToolTouchBase ( Microsoft.Xna.Framework.Color backgroundColor, IGraphicsDisplay graphicsDisplay, |
||
backgroundColor | Microsoft.Xna.Framework.Color | |
graphicsDisplay | IGraphicsDisplay | |
bounds | ||
return | Microsoft.Xna.Framework |
protected Color,Microsoft.Xna.Framework BackgroundColor | ||
return | Microsoft.Xna.Framework.Color |
protected Color,Microsoft.Xna.Framework BorderColor | ||
return | Microsoft.Xna.Framework.Color |