Rechercher une page de manuel
Goo::Canvas::Text.3pm
Langue: en
Version: 2009-05-07 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
Goo::Canvas::Text - wrapper for GooCanvasTextHIERARCHY
Glib::Object +----Goo::Canvas::ItemSimple +----Goo::Canvas::Text
INTERFACES
Goo::Canvas::Item
METHODS
item = Goo::Canvas::Text->new ($parent, $string, $x, $y, $width, $anchor, ...)
- •
- $parent (Goo::Canvas::Item)
- •
- $string (string)
- •
- $x (double)
- •
- $y (double)
- •
- $width (double)
- •
- $anchor (Gtk2::AnchorType)
- •
- ... (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
- •
- '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::ItemSimpleCOPYRIGHT
Copyright (C) 2009 Gtk2-Perl TeamContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre