C# Class Pinta.Core.ShapeTool

Inheritance: BaseTool
Show file Open project: xxgreg/Pinta

Protected Properties

Property Type Description
brush_width ToolBarComboBox
brush_width_label ToolBarLabel
brush_width_minus ToolBarButton
brush_width_plus ToolBarButton
current_point PointD
fill_color Color
fill_outline ToolBarComboBox
fill_outline_image ToolBarImage
fill_outline_label ToolBarLabel
is_drawing bool
last_dirty Rectangle
outline_color Color
shape_origin PointD
spacer_label ToolBarLabel
surface_modified bool
undo_surface ImageSurface

Public Methods

Method Description
ShapeTool ( ) : System

Protected Methods

Method Description
BuildToolBar ( Gtk tb ) : void
CreateHistoryItem ( ) : BaseHistoryItem
DrawShape ( Rectangle r, Layer l ) : Rectangle
GetRectangleFromPoints ( PointD a, PointD b ) : Gdk.Rectangle
MinusButtonClickedEvent ( object o, EventArgs args ) : void
OnBuildToolBar ( Gtk tb ) : void
OnMouseDown ( Gtk canvas, Gtk args, Cairo point ) : void
OnMouseMove ( object o, Gtk args, Cairo point ) : void
OnMouseUp ( Gtk canvas, Gtk args, Cairo point ) : void
PlusButtonClickedEvent ( object o, EventArgs args ) : void
PointsToRectangle ( PointD p1, PointD p2, bool constrain ) : Rectangle

Method Details

BuildToolBar() protected method

protected BuildToolBar ( Gtk tb ) : void
tb Gtk
return void

CreateHistoryItem() protected method

protected CreateHistoryItem ( ) : BaseHistoryItem
return BaseHistoryItem

DrawShape() protected method

protected DrawShape ( Rectangle r, Layer l ) : Rectangle
r Cairo.Rectangle
l Layer
return Cairo.Rectangle

GetRectangleFromPoints() protected method

protected GetRectangleFromPoints ( PointD a, PointD b ) : Gdk.Rectangle
a Cairo.PointD
b Cairo.PointD
return Gdk.Rectangle

MinusButtonClickedEvent() protected method

protected MinusButtonClickedEvent ( object o, EventArgs args ) : void
o object
args System.EventArgs
return void

OnBuildToolBar() protected method

protected OnBuildToolBar ( Gtk tb ) : void
tb Gtk
return void

OnMouseDown() protected method

protected OnMouseDown ( Gtk canvas, Gtk args, Cairo point ) : void
canvas Gtk
args Gtk
point Cairo
return void

OnMouseMove() protected method

protected OnMouseMove ( object o, Gtk args, Cairo point ) : void
o object
args Gtk
point Cairo
return void

OnMouseUp() protected method

protected OnMouseUp ( Gtk canvas, Gtk args, Cairo point ) : void
canvas Gtk
args Gtk
point Cairo
return void

PlusButtonClickedEvent() protected method

protected PlusButtonClickedEvent ( object o, EventArgs args ) : void
o object
args EventArgs
return void

PointsToRectangle() protected method

protected PointsToRectangle ( PointD p1, PointD p2, bool constrain ) : Rectangle
p1 PointD
p2 PointD
constrain bool
return Rectangle

ShapeTool() public method

public ShapeTool ( ) : System
return System

Property Details

brush_width protected property

protected ToolBarComboBox brush_width
return ToolBarComboBox

brush_width_label protected property

protected ToolBarLabel brush_width_label
return ToolBarLabel

brush_width_minus protected property

protected ToolBarButton brush_width_minus
return ToolBarButton

brush_width_plus protected property

protected ToolBarButton brush_width_plus
return ToolBarButton

current_point protected property

protected PointD current_point
return PointD

fill_color protected property

protected Color fill_color
return Color

fill_outline protected property

protected ToolBarComboBox fill_outline
return ToolBarComboBox

fill_outline_image protected property

protected ToolBarImage fill_outline_image
return ToolBarImage

fill_outline_label protected property

protected ToolBarLabel fill_outline_label
return ToolBarLabel

is_drawing protected property

protected bool is_drawing
return bool

last_dirty protected property

protected Rectangle last_dirty
return Rectangle

outline_color protected property

protected Color outline_color
return Color

shape_origin protected property

protected PointD shape_origin
return PointD

spacer_label protected property

protected ToolBarLabel spacer_label
return ToolBarLabel

surface_modified protected property

protected bool surface_modified
return bool

undo_surface protected property

protected ImageSurface undo_surface
return ImageSurface