Goo::Canvas::Text(3pm) User Contributed Perl Documentation 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 : default "left" : readable / writable)
How to align the text
'anchor' (Gtk2::AnchorType : default "north-west" : readable / writable)
How to position the text relative to the given x and y coordinates
'ellipsize' (Pango::EllipsizeMode : default "none" : readable / writable)
The preferred place to ellipsize the string, if the label does not have enough room to display the entire string
'height' (double : default -1 : readable / writable)
The height to use to layout the text, or -1 to use the natural height
'text' (string : default undef : readable / writable)
The text to display
'use-markup' (boolean : default false : readable / writable)
Whether to parse PangoMarkup in the text, to support different styles
'width' (double : default -1 : readable / writable)
The width to use to layout the text
'wrap' (Pango::WrapMode : default "word" : readable / writable)
The preferred method of wrapping the string if a width has been set
'x' (double : default 0 : readable / writable)
The x coordinate of the text
'y' (double : default 0 : 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) 2011 Gtk2-Perl Team
perl v5.14.2 2011-11-16 Goo::Canvas::Text(3pm)