C# Класс Paint.ToolBoxToolTouchBase

Base (Abstract) class for any tools that allow user interaction.
Наследование: IToolBoxToolTouch
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
BackgroundColor Microsoft.Xna.Framework.Color
BorderColor Microsoft.Xna.Framework.Color
BorderWidth int

Открытые методы

Метод Описание
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, Rectangle bounds ) : Microsoft.Xna.Framework

Initializes a new instance of the Paint.CanvasToolTouchBase class.

ToolBoxToolTouchBase ( Microsoft.Xna.Framework.Color backgroundColor, IGraphicsDisplay graphicsDisplay, Rectangle bounds ) : Microsoft.Xna.Framework

Initializes a new instance of the Paint.CanvasToolTouchBase class.

Защищенные методы

Метод Описание
Blank ( ) : void

Blanks the entire control

BlankAndRedrawWithBorder ( ) : void

Blanks this tool and then redraws the border round the edge.

BlankAndRedrawWithBorder ( Rectangle redrawRectangle ) : void

Blanks the specific rectangle and then redraws the border round the edge.

DrawGraphic ( ImageType imageType, Rectangle paintRegion ) : void

Draws the graphic.

DrawRectangle ( Rectangle paintRegion, Microsoft.Xna.Framework.Color color ) : void

Draws the rectangle.

HandleTouch ( ITouchPoint touchPosition ) : void

Handles a particular touch by the user

Описание методов

Blank() защищенный Метод

Blanks the entire control
protected Blank ( ) : void
Результат void

BlankAndRedrawWithBorder() защищенный Метод

Blanks this tool and then redraws the border round the edge.
protected BlankAndRedrawWithBorder ( ) : void
Результат void

BlankAndRedrawWithBorder() защищенный Метод

Blanks the specific rectangle and then redraws the border round the edge.
protected BlankAndRedrawWithBorder ( Rectangle redrawRectangle ) : void
redrawRectangle Microsoft.Xna.Framework.Rectangle
Результат void

CheckTouchCollision() публичный Метод

Checks wheter a particular touch point (user pressing the screen) is within the bounds of this control.
public CheckTouchCollision ( ITouchPoint touch ) : bool
touch ITouchPoint
Результат bool

Draw() публичный абстрактный Метод

Draw this tool on to the image
public abstract Draw ( bool refreshDisplay ) : void
refreshDisplay bool /// True = we should redraw the entire control /// False = just draw any updates ///
Результат void

DrawGraphic() защищенный Метод

Draws the graphic.
protected DrawGraphic ( ImageType imageType, Rectangle paintRegion ) : void
imageType ImageType
paintRegion Microsoft.Xna.Framework.Rectangle
Результат void

DrawRectangle() защищенный Метод

Draws the rectangle.
protected DrawRectangle ( Rectangle paintRegion, Microsoft.Xna.Framework.Color color ) : void
paintRegion Microsoft.Xna.Framework.Rectangle
color Microsoft.Xna.Framework.Color
Результат void

HandleTouch() защищенный абстрактный Метод

Handles a particular touch by the user
protected abstract HandleTouch ( ITouchPoint touchPosition ) : void
touchPosition ITouchPoint
Результат void

ToolBoxToolTouchBase() публичный Метод

Initializes a new instance of the Paint.CanvasToolTouchBase class.
public ToolBoxToolTouchBase ( Microsoft.Xna.Framework.Color backgroundColor, Microsoft.Xna.Framework.Color borderColor, int borderWidth, IGraphicsDisplay graphicsDisplay, Rectangle bounds ) : Microsoft.Xna.Framework
backgroundColor Microsoft.Xna.Framework.Color
borderColor Microsoft.Xna.Framework.Color
borderWidth int
graphicsDisplay IGraphicsDisplay
bounds Microsoft.Xna.Framework.Rectangle
Результат Microsoft.Xna.Framework

ToolBoxToolTouchBase() публичный Метод

Initializes a new instance of the Paint.CanvasToolTouchBase class.
public ToolBoxToolTouchBase ( Microsoft.Xna.Framework.Color backgroundColor, IGraphicsDisplay graphicsDisplay, Rectangle bounds ) : Microsoft.Xna.Framework
backgroundColor Microsoft.Xna.Framework.Color
graphicsDisplay IGraphicsDisplay
bounds Microsoft.Xna.Framework.Rectangle
Результат Microsoft.Xna.Framework

Описание свойств

BackgroundColor защищенное свойство

The background color of the tool
protected Color,Microsoft.Xna.Framework BackgroundColor
Результат Microsoft.Xna.Framework.Color

BorderColor защищенное свойство

The color of the borders around the control.
protected Color,Microsoft.Xna.Framework BorderColor
Результат Microsoft.Xna.Framework.Color

BorderWidth защищенное свойство

Border size for drawing the tool on screen.
protected int BorderWidth
Результат int