1Goo::Canvas::TextModel(U3s)er Contributed Perl DocumentatGiooon::Canvas::TextModel(3)
2
3
4

NAME

6       Goo::Canvas::TextModel
7

HIERARCHY

9         Glib::Object
10         +----Goo::Canvas::ItemModelSimple
11              +----Goo::Canvas::TextModel
12

INTERFACES

14         Goo::Canvas::ItemModel
15

METHODS

17   itemmodel = Goo::Canvas::TextModel->new ($parent, $string, $x, $y, $width,
18       $anchor, ...)
19           ·   $parent (Goo::Canvas::ItemModel)
20
21           ·   $string (string)
22
23           ·   $x (double)
24
25           ·   $y (double)
26
27           ·   $width (double)
28
29           ·   $anchor (Gtk2::AnchorType)
30
31           ·   ... (list)
32

PROPERTIES

34       'alignment' (Gtk2::Pango::Alignment : readable / writable)
35           How to align the text
36
37       'anchor' (Gtk2::AnchorType : readable / writable)
38           How to position the text relative to the given x and y coordinates
39
40       'ellipsize' (Gtk2::Pango::EllipsizeMode : readable / writable)
41           The preferred place to ellipsize the string, if the label does not
42           have enough room to display the entire string
43
44       'height' (double : readable / writable)
45           The height to use to layout the text, or -1 to use the natural
46           height
47
48       'text' (string : readable / writable)
49           The text to display
50
51       'use-markup' (boolean : readable / writable)
52           Whether to parse PangoMarkup in the text, to support different
53           styles
54
55       'width' (double : readable / writable)
56           The width to use to layout the text
57
58       'wrap' (Gtk2::Pango::WrapMode : readable / writable)
59           The preferred method of wrapping the string if a width has been set
60
61       'x' (double : readable / writable)
62           The x coordinate of the text
63
64       'y' (double : readable / writable)
65           The y coordinate of the text
66

ENUMS AND FLAGS

68   enum Gtk2::AnchorType
69       ·   'center' / 'GTK_ANCHOR_CENTER'
70
71       ·   'north' / 'GTK_ANCHOR_NORTH'
72
73       ·   'north-west' / 'GTK_ANCHOR_NORTH_WEST'
74
75       ·   'north-east' / 'GTK_ANCHOR_NORTH_EAST'
76
77       ·   'south' / 'GTK_ANCHOR_SOUTH'
78
79       ·   'south-west' / 'GTK_ANCHOR_SOUTH_WEST'
80
81       ·   'south-east' / 'GTK_ANCHOR_SOUTH_EAST'
82
83       ·   'west' / 'GTK_ANCHOR_WEST'
84
85       ·   'east' / 'GTK_ANCHOR_EAST'
86
87       ·   'n' / 'GTK_ANCHOR_N'
88
89       ·   'nw' / 'GTK_ANCHOR_NW'
90
91       ·   'ne' / 'GTK_ANCHOR_NE'
92
93       ·   's' / 'GTK_ANCHOR_S'
94
95       ·   'sw' / 'GTK_ANCHOR_SW'
96
97       ·   'se' / 'GTK_ANCHOR_SE'
98
99       ·   'w' / 'GTK_ANCHOR_W'
100
101       ·   'e' / 'GTK_ANCHOR_E'
102
103   enum Gtk2::Pango::Alignment
104       ·   'left' / 'PANGO_ALIGN_LEFT'
105
106       ·   'center' / 'PANGO_ALIGN_CENTER'
107
108       ·   'right' / 'PANGO_ALIGN_RIGHT'
109
110   enum Gtk2::Pango::EllipsizeMode
111       ·   'none' / 'PANGO_ELLIPSIZE_NONE'
112
113       ·   'start' / 'PANGO_ELLIPSIZE_START'
114
115       ·   'middle' / 'PANGO_ELLIPSIZE_MIDDLE'
116
117       ·   'end' / 'PANGO_ELLIPSIZE_END'
118
119   enum Gtk2::Pango::WrapMode
120       ·   'word' / 'PANGO_WRAP_WORD'
121
122       ·   'char' / 'PANGO_WRAP_CHAR'
123
124       ·   'word-char' / 'PANGO_WRAP_WORD_CHAR'
125

SEE ALSO

127       Glib::Object, Goo::Canvas::ItemModelSimple
128
130       Copyright (C) 2010 Gtk2-Perl Team
131
132
133
134perl v5.12.0                      2010-05-12         Goo::Canvas::TextModel(3)
Impressum