C# 클래스 Paint.ToolBox

상속: IToolBox
파일 보기 프로젝트 열기: RandolphBurt/MonoGame-iOS-SimplePaint

공개 메소드들

메소드 설명
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 ( ToolboxLayoutDefinition toolboxLayoutDefinition, IGraphicsDisplay graphicsDisplay, int scale ) : System

Initializes a new instance of the Paint.ToolBox class.

보호된 메소드들

메소드 설명
AddButton ( ToolboxLayoutDefinitionStandardToolsButtonsButton buttonLayout ) : void

Creates a button and adds it.

AddButtons ( ToolboxLayoutDefinitionStandardToolsButtonsButton buttons ) : void

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 ( EventArgs e ) : void

Raises the exit selected changed event.

비공개 메소드들

메소드 설명
AddStandardTools ( ToolboxLayoutDefinitionStandardTools standardTools ) : void

Adds the standard tools.

TranslateToolboxLayoutColor ( ColorType color ) : Color

Translates the toolbox layout color type to a Color.

메소드 상세

AddButton() 보호된 메소드

Creates a button and adds it.
protected AddButton ( ToolboxLayoutDefinitionStandardToolsButtonsButton buttonLayout ) : void
buttonLayout Paint.ToolboxLayout.ToolboxLayoutDefinitionStandardToolsButtonsButton /// Button layout. ///
리턴 void

AddButtons() 보호된 메소드

Creates all the buttons and adds them to our list of controls
protected AddButtons ( ToolboxLayoutDefinitionStandardToolsButtonsButton buttons ) : void
buttons Paint.ToolboxLayout.ToolboxLayoutDefinitionStandardToolsButtonsButton
리턴 void

AddTool() 보호된 메소드

Adds the tool to our toolbox
protected AddTool ( IToolBoxTool tool ) : void
tool IToolBoxTool /// The tool to add to the toolbox ///
리턴 void

CheckTouchCollision() 공개 메소드

Checks wheter a particular touch point (user pressing the screen) is within the bounds of one of the tools.
public CheckTouchCollision ( ITouchPoint touchPosition ) : bool
touchPosition ITouchPoint
리턴 bool

Draw() 공개 메소드

Draw the toolbox (and all containing tools) on to the image
public Draw ( bool refreshDisplay ) : void
refreshDisplay bool /// True = we should redraw the entire control /// False = just draw any updates ///
리턴 void

DrawBackground() 보호된 메소드

Draws the background (and border)
protected DrawBackground ( ) : void
리턴 void

DrawTools() 보호된 메소드

Draws the tools.
protected DrawTools ( bool refreshDisplay ) : void
refreshDisplay bool /// True = we should redraw the entire control /// False = just draw any updates ///
리턴 void

OnExitButtonPressed() 보호된 메소드

Raises the exit selected changed event.
protected OnExitButtonPressed ( EventArgs e ) : void
e System.EventArgs /// Any relevant EventArgs (should be EventArgs.Empty) ///
리턴 void

ToolBox() 공개 메소드

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