C# 클래스 Paint.ToolBoxToolTouchBase

Base (Abstract) class for any tools that allow user interaction.
상속: IToolBoxToolTouch
파일 보기 프로젝트 열기: RandolphBurt/MonoGame-iOS-SimplePaint

보호된 프로퍼티들

프로퍼티 타입 설명
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