Goo::Canvas::Text(3pm)

NAME

Goo::Canvas::Text - wrapper for GooCanvasText

HIERARCHY

Glib::Object
+----Goo::Canvas::ItemSimple
+----Goo::Canvas::Text

INTERFACES

Goo::Canvas::Item

METHODS

item = Goo::Canvas::Text->new ($parent, $string, $x, $y, $width, $anchor,
...)
o $parent (Goo::Canvas::Item)
o $string (string)
o $x (double)
o $y (double)
o $width (double)
o $anchor (Gtk2::AnchorType)
o ... (list)

PROPERTIES

'alignment' (Pango::Alignment : readable / writable)
How to align the text
'anchor' (Gtk2::AnchorType : readable / writable)
How to position the text relative to the given x and y coordinates
'ellipsize' (Pango::EllipsizeMode : readable / writable)
The preferred place to ellipsize the string, if the label does not have enough room to display the entire string
'text' (string : readable / writable)
The text to display
'use-markup' (boolean : readable / writable)
Whether to parse PangoMarkup in the text, to support different
styles
'width' (double : readable / writable)
The width to use to layout the text
'wrap' (Pango::WrapMode : readable / writable)
The preferred method of wrapping the string if a width has been set
'x' (double : readable / writable)
The x coordinate of the text
'y' (double : readable / writable)
The y coordinate of the text

ENUMS AND FLAGS

enum Gtk2::AnchorType
o 'center' / 'GTK_ANCHOR_CENTER'
o 'north' / 'GTK_ANCHOR_NORTH'
o 'north-west' / 'GTK_ANCHOR_NORTH_WEST'
o 'north-east' / 'GTK_ANCHOR_NORTH_EAST'
o 'south' / 'GTK_ANCHOR_SOUTH'
o 'south-west' / 'GTK_ANCHOR_SOUTH_WEST'
o 'south-east' / 'GTK_ANCHOR_SOUTH_EAST'
o 'west' / 'GTK_ANCHOR_WEST'
o 'east' / 'GTK_ANCHOR_EAST'
o 'n' / 'GTK_ANCHOR_N'
o 'nw' / 'GTK_ANCHOR_NW'
o 'ne' / 'GTK_ANCHOR_NE'
o 's' / 'GTK_ANCHOR_S'
o 'sw' / 'GTK_ANCHOR_SW'
o 'se' / 'GTK_ANCHOR_SE'
o 'w' / 'GTK_ANCHOR_W'
o 'e' / 'GTK_ANCHOR_E'
enum Pango::Alignment
o 'left' / 'PANGO_ALIGN_LEFT'
o 'center' / 'PANGO_ALIGN_CENTER'
o 'right' / 'PANGO_ALIGN_RIGHT'
enum Pango::EllipsizeMode
o 'none' / 'PANGO_ELLIPSIZE_NONE'
o 'start' / 'PANGO_ELLIPSIZE_START'
o 'middle' / 'PANGO_ELLIPSIZE_MIDDLE'
o 'end' / 'PANGO_ELLIPSIZE_END'
enum Pango::WrapMode
o 'word' / 'PANGO_WRAP_WORD'
o 'char' / 'PANGO_WRAP_CHAR'
o 'word-char' / 'PANGO_WRAP_WORD_CHAR'

SEE ALSO

Glib::Object, Goo::Canvas::ItemSimple

COPYRIGHT

Copyright (C) 2009 Gtk2-Perl Team
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout