Goo::Canvas::TextModel.3pm

Langue: en

Version: 2010-05-12 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Goo::Canvas::TextModel

HIERARCHY

   Glib::Object
   +----Goo::Canvas::ItemModelSimple
        +----Goo::Canvas::TextModel
 
 

INTERFACES

   Goo::Canvas::ItemModel
 
 

METHODS

itemmodel = Goo::Canvas::TextModel->new ($parent, $string, $x, $y, $width, $anchor, ...)

*
$parent (Goo::Canvas::ItemModel)
*
$string (string)
*
$x (double)
*
$y (double)
*
$width (double)
*
$anchor (Gtk2::AnchorType)
*
... (list)

PROPERTIES

'alignment' (Gtk2::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' (Gtk2::Pango::EllipsizeMode : readable / writable)
The preferred place to ellipsize the string, if the label does not have enough room to display the entire string
'height' (double : readable / writable)
The height to use to layout the text, or -1 to use the natural height
'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' (Gtk2::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

*
'center' / 'GTK_ANCHOR_CENTER'
*
'north' / 'GTK_ANCHOR_NORTH'
*
'north-west' / 'GTK_ANCHOR_NORTH_WEST'
*
'north-east' / 'GTK_ANCHOR_NORTH_EAST'
*
'south' / 'GTK_ANCHOR_SOUTH'
*
'south-west' / 'GTK_ANCHOR_SOUTH_WEST'
*
'south-east' / 'GTK_ANCHOR_SOUTH_EAST'
*
'west' / 'GTK_ANCHOR_WEST'
*
'east' / 'GTK_ANCHOR_EAST'
*
'n' / 'GTK_ANCHOR_N'
*
'nw' / 'GTK_ANCHOR_NW'
*
'ne' / 'GTK_ANCHOR_NE'
*
's' / 'GTK_ANCHOR_S'
*
'sw' / 'GTK_ANCHOR_SW'
*
'se' / 'GTK_ANCHOR_SE'
*
'w' / 'GTK_ANCHOR_W'
*
'e' / 'GTK_ANCHOR_E'

enum Gtk2::Pango::Alignment

*
'left' / 'PANGO_ALIGN_LEFT'
*
'center' / 'PANGO_ALIGN_CENTER'
*
'right' / 'PANGO_ALIGN_RIGHT'

enum Gtk2::Pango::EllipsizeMode

*
'none' / 'PANGO_ELLIPSIZE_NONE'
*
'start' / 'PANGO_ELLIPSIZE_START'
*
'middle' / 'PANGO_ELLIPSIZE_MIDDLE'
*
'end' / 'PANGO_ELLIPSIZE_END'

enum Gtk2::Pango::WrapMode

*
'word' / 'PANGO_WRAP_WORD'
*
'char' / 'PANGO_WRAP_CHAR'
*
'word-char' / 'PANGO_WRAP_WORD_CHAR'

SEE ALSO

Glib::Object, Goo::Canvas::ItemModelSimple Copyright (C) 2010 Gtk2-Perl Team