C# Class Pinta.Core.TextTool

Inheritance: BaseTool
Mostra file Open project: xxgreg/Pinta

Private Properties

Property Type Description
DrawText void
FindOffsetPosition int
FontExtents Cairo.FontExtents
GetSizeList List
GetUpperLeft Point
HandleBoldButtonToggled void
HandleCenterAlignmentButtonToggled void
HandleFontChanged void
HandleFontSizeFocusIn void
HandleFontSizeFocusOut void
HandleItalicButtonToggled void
HandleLeftAlignmentButtonToggled void
HandlePintaCorePalettePrimaryColorChanged void
HandleRightAlignmentButtonToggled void
HandleSizeChanged void
HandleUnderscoreButtonToggled void
InsertCharIntoString void
MeasureText void
PerformBackspace void
PerformControlBackspace void
PerformControlDelete void
PerformControlLeft void
PerformControlRight void
PerformDelete void
PerformDown void
PerformEnter void
PerformLeft void
PerformRight void
PerformUp void
PointToTextPosition Position
RedrawText void
RenderText void
SaveHistoryMemento void
StartEditing void
StopEditing void
StringSize Size
TextExtents Cairo.TextExtents
TextPositionToPoint Point
UpdateFontSizes void

Protected Methods

Method Description
OnActivated ( ) : void
OnBuildToolBar ( Gtk tb ) : void
OnDeactivated ( ) : void
OnKeyDown ( Gtk.DrawingArea canvas, Gtk.KeyPressEventArgs args ) : void
OnKeyPress ( Gdk key, Gdk modifier ) : bool
OnKeyPress ( Gtk.DrawingArea canvas, Gtk.KeyPressEventArgs args ) : void
OnKeyUp ( Gtk.DrawingArea canvas, Gtk.KeyReleaseEventArgs args ) : 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

Private Methods

Method Description
DrawText ( Cairo dst, string textFont, string text, Point pt, Gdk.Size measuredSize, bool antiAliasing, Cairo color ) : void
FindOffsetPosition ( float offset, string line, int lno ) : int
FontExtents ( Cairo g, string str ) : Cairo.FontExtents
GetSizeList ( Pango fontFace ) : List
GetUpperLeft ( Gdk.Size sz, int line ) : Point
HandleBoldButtonToggled ( object sender, EventArgs e ) : void
HandleCenterAlignmentButtonToggled ( object sender, EventArgs e ) : void
HandleFontChanged ( object sender, EventArgs e ) : void
HandleFontSizeFocusIn ( object o, Gtk.FocusInEventArgs args ) : void
HandleFontSizeFocusOut ( object o, Gtk.FocusOutEventArgs args ) : void
HandleItalicButtonToggled ( object sender, EventArgs e ) : void
HandleLeftAlignmentButtonToggled ( object sender, EventArgs e ) : void
HandlePintaCorePalettePrimaryColorChanged ( object sender, EventArgs e ) : void
HandleRightAlignmentButtonToggled ( object sender, EventArgs e ) : void
HandleSizeChanged ( object sender, EventArgs e ) : void
HandleUnderscoreButtonToggled ( object sender, EventArgs e ) : void
InsertCharIntoString ( char c ) : void
MeasureText ( int lineNumber ) : void
PerformBackspace ( ) : void
PerformControlBackspace ( ) : void
PerformControlDelete ( ) : void
PerformControlLeft ( ) : void
PerformControlRight ( ) : void
PerformDelete ( ) : void
PerformDown ( ) : void
PerformEnter ( ) : void
PerformLeft ( ) : void
PerformRight ( ) : void
PerformUp ( ) : void
PointToTextPosition ( Point pf ) : Position
RedrawText ( bool cursorOn ) : void

Redraws the Text on the screen

assumes that the font and the alignment are already set

RenderText ( Cairo surf, int lineNumber ) : void
SaveHistoryMemento ( ) : void
StartEditing ( ) : void
StopEditing ( ) : void
StringSize ( string s ) : Size
TextExtents ( Cairo g, string str ) : Cairo.TextExtents
TextPositionToPoint ( Position p ) : Point
UpdateFontSizes ( ) : void

Method Details

OnActivated() protected method

protected OnActivated ( ) : void
return void

OnBuildToolBar() protected method

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

OnDeactivated() protected method

protected OnDeactivated ( ) : void
return void

OnKeyDown() protected method

protected OnKeyDown ( Gtk.DrawingArea canvas, Gtk.KeyPressEventArgs args ) : void
canvas Gtk.DrawingArea
args Gtk.KeyPressEventArgs
return void

OnKeyPress() protected method

protected OnKeyPress ( Gdk key, Gdk modifier ) : bool
key Gdk
modifier Gdk
return bool

OnKeyPress() protected method

protected OnKeyPress ( Gtk.DrawingArea canvas, Gtk.KeyPressEventArgs args ) : void
canvas Gtk.DrawingArea
args Gtk.KeyPressEventArgs
return void

OnKeyUp() protected method

protected OnKeyUp ( Gtk.DrawingArea canvas, Gtk.KeyReleaseEventArgs args ) : void
canvas Gtk.DrawingArea
args Gtk.KeyReleaseEventArgs
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