C# 클래스 Paint.PaintToolBox

Tool box - container for all tools
상속: ToolBox, IPaintToolBox
파일 보기 프로젝트 열기: RandolphBurt/MonoGame-iOS-SimplePaint

공개 메소드들

메소드 설명
PaintToolBox ( ToolboxLayoutDefinition toolboxLayoutDefinition, IGraphicsDisplay graphicsDisplay, int scale ) : System

Initializes a new instance of the Paint.PaintToolBox class.

보호된 메소드들

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

Creates all the buttons and adds them to our list of controls

OnRedoSelected ( EventArgs e ) : void

Raises the redo selected changed event.

OnUndoSelected ( EventArgs e ) : void

Raises the undo selected changed event.

비공개 메소드들

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

Adds the redo button.

AddUndoButton ( ToolboxLayoutDefinitionStandardToolsButtonsButton buttonLayout ) : void

Adds the undo button.

CreateBrushSizeSelector ( Color startColor, ToolboxLayoutDefinitionPaintToolsBrushSizeSelector layoutBrushSizeSelector ) : BrushSizeSelector

Creates the brush size selector.

CreateColorPickers ( ColorSelector colorSelector, ToolboxLayoutDefinitionPaintToolsColorPickersColorPicker layoutColorPickers ) : void

Creates the color pickers.

CreateColorSelector ( Color startColor, ToolboxLayoutDefinitionPaintToolsColorSelector layoutColorSelector ) : ColorSelector

Creates the color selector.

CreateColorSetter ( Color startColor, ToolboxLayoutDefinitionPaintToolsColorSetter layoutColorSetter ) : ColorSetter

Creates the color setter.

CreateTools ( ToolboxLayoutDefinition toolboxLayoutDefinition ) : void

Creates all our tools.

SetBrushSizeRectange ( int brushWidth ) : void

Sets the brush size rectange.

메소드 상세

AddButton() 보호된 메소드

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

OnRedoSelected() 보호된 메소드

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

OnUndoSelected() 보호된 메소드

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

PaintToolBox() 공개 메소드

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