1Goo::Canvas::Text(3) User Contributed Perl Documentation Goo::Canvas::Text(3)
2
3
4
6 Goo::Canvas::Text - wrapper for GooCanvasText
7
9 Glib::Object
10 +----Goo::Canvas::ItemSimple
11 +----Goo::Canvas::Text
12
14 Goo::Canvas::Item
15
17 item = Goo::Canvas::Text->new ($parent, $string, $x, $y, $width, $anchor,
18 ...)
19 · $parent (Goo::Canvas::Item)
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
34 'alignment' (Pango::Alignment : default "left" : readable / writable)
35 How to align the text
36
37 'anchor' (Gtk2::AnchorType : default "north-west" : readable /
38 writable)
39 How to position the text relative to the given x and y coordinates
40
41 'ellipsize' (Pango::EllipsizeMode : default "none" : readable /
42 writable)
43 The preferred place to ellipsize the string, if the label does not
44 have enough room to display the entire string
45
46 'height' (double : default -1 : readable / writable)
47 The height to use to layout the text, or -1 to let the text use as
48 much vertical space as needed
49
50 'text' (string : default undef : readable / writable)
51 The text to display
52
53 'use-markup' (boolean : default false : readable / writable)
54 Whether to parse PangoMarkup in the text, to support different
55 styles
56
57 'width' (double : default -1 : readable / writable)
58 The width to use to layout the text, or -1 to let the text use as
59 much horizontal space as needed
60
61 'wrap' (Pango::WrapMode : default "word" : readable / writable)
62 The preferred method of wrapping the string if a width has been set
63
64 'x' (double : default 0 : readable / writable)
65 The x coordinate of the text
66
67 'y' (double : default 0 : readable / writable)
68 The y coordinate of the text
69
71 enum Gtk2::AnchorType
72 · 'center' / 'GTK_ANCHOR_CENTER'
73
74 · 'north' / 'GTK_ANCHOR_NORTH'
75
76 · 'north-west' / 'GTK_ANCHOR_NORTH_WEST'
77
78 · 'north-east' / 'GTK_ANCHOR_NORTH_EAST'
79
80 · 'south' / 'GTK_ANCHOR_SOUTH'
81
82 · 'south-west' / 'GTK_ANCHOR_SOUTH_WEST'
83
84 · 'south-east' / 'GTK_ANCHOR_SOUTH_EAST'
85
86 · 'west' / 'GTK_ANCHOR_WEST'
87
88 · 'east' / 'GTK_ANCHOR_EAST'
89
90 · 'n' / 'GTK_ANCHOR_N'
91
92 · 'nw' / 'GTK_ANCHOR_NW'
93
94 · 'ne' / 'GTK_ANCHOR_NE'
95
96 · 's' / 'GTK_ANCHOR_S'
97
98 · 'sw' / 'GTK_ANCHOR_SW'
99
100 · 'se' / 'GTK_ANCHOR_SE'
101
102 · 'w' / 'GTK_ANCHOR_W'
103
104 · 'e' / 'GTK_ANCHOR_E'
105
106 enum Pango::Alignment
107 · 'left' / 'PANGO_ALIGN_LEFT'
108
109 · 'center' / 'PANGO_ALIGN_CENTER'
110
111 · 'right' / 'PANGO_ALIGN_RIGHT'
112
113 enum Pango::EllipsizeMode
114 · 'none' / 'PANGO_ELLIPSIZE_NONE'
115
116 · 'start' / 'PANGO_ELLIPSIZE_START'
117
118 · 'middle' / 'PANGO_ELLIPSIZE_MIDDLE'
119
120 · 'end' / 'PANGO_ELLIPSIZE_END'
121
122 enum Pango::WrapMode
123 · 'word' / 'PANGO_WRAP_WORD'
124
125 · 'char' / 'PANGO_WRAP_CHAR'
126
127 · 'word-char' / 'PANGO_WRAP_WORD_CHAR'
128
130 Glib::Object, Goo::Canvas::ItemSimple
131
133 Copyright (C) 2020 Gtk2-Perl Team
134
135
136
137perl v5.32.0 2020-07-28 Goo::Canvas::Text(3)