Scroll to navigation

Goo::Canvas::TextModel(3pm) User Contributed Perl Documentation Goo::Canvas::TextModel(3pm)

NAME

Goo::Canvas::TextModel - wrapper for GooCanvasTextModel

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' (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 let the text use as much vertical space as needed
'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, or -1 to let the text use as much horizontal space as needed
'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

  • '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 Pango::Alignment

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

enum Pango::EllipsizeMode

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

enum Pango::WrapMode

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

SEE ALSO

Glib::Object, Goo::Canvas::ItemModelSimple

COPYRIGHT

Copyright (C) 2014 Gtk2-Perl Team
2014-02-22 perl v5.24.1