1Gnome2::Canvas::Text(3)User Contributed Perl DocumentatioGnnome2::Canvas::Text(3)
2
3
4
6 Gnome2::Canvas::Text - Text as CanvasItems
7
9 Glib::Object
10 +----Glib::InitiallyUnowned
11 +----Gtk2::Object
12 +----Gnome2::Canvas::Item
13 +----Gnome2::Canvas::Text
14
16 'anchor' (Gtk2::AnchorType : default "center" : readable / writable)
17 'attributes' (Pango::AttrList : default undef : readable / writable)
18 'clip' (boolean : default false : readable / writable)
19 'clip-height' (double : default 0 : readable / writable)
20 'clip-width' (double : default 0 : readable / writable)
21 'family' (string : default undef : readable / writable)
22 Name of the font family, e.g. Sans, Helvetica, Times, Monospace
23
24 'family-set' (boolean : default false : readable / writable)
25 Whether this tag affects the font family
26
27 'fill-color' (string : default undef : readable / writable)
28 Text color, as string
29
30 'fill-color-gdk' (Gtk2::Gdk::Color : default undef : readable /
31 writable)
32 Text color, as a GdkColor
33
34 'fill-color-rgba' (Glib::UInt : default 0 : readable / writable)
35 Text color, as an R/G/B/A combined integer
36
37 'fill-stipple' (Gtk2::Gdk::Drawable : default undef : readable /
38 writable)
39 'font' (string : default undef : readable / writable)
40 Font description as a string
41
42 'font-desc' (Pango::FontDescription : default undef : readable /
43 writable)
44 Font description as a PangoFontDescription struct
45
46 'justification' (Gtk2::Justification : default "left" : readable /
47 writable)
48 'markup' (string : default undef : writable)
49 Marked up text to render
50
51 'rise' (integer : default 0 : readable / writable)
52 Offset of text above the baseline (below the baseline if rise is
53 negative)
54
55 'rise-set' (boolean : default false : readable / writable)
56 Whether this tag affects the rise
57
58 'scale' (double : default 1 : readable / writable)
59 Size of font, relative to default size
60
61 'scale-set' (boolean : default false : readable / writable)
62 Whether this tag affects font scaling
63
64 'size' (integer : default 0 : readable / writable)
65 Font size (as a multiple of PANGO_SCALE, eg. 12*PANGO_SCALE for a
66 12pt font size)
67
68 'size-points' (double : default 0 : readable / writable)
69 Font size in points (eg. 12 for a 12pt font size)
70
71 'size-set' (boolean : default false : readable / writable)
72 Whether this tag affects the font size
73
74 'stretch' (Pango::Stretch : default "normal" : readable / writable)
75 Font stretch
76
77 'stretch-set' (boolean : default false : readable / writable)
78 Whether this tag affects the font stretch
79
80 'strikethrough' (boolean : default false : readable / writable)
81 Whether to strike through the text
82
83 'strikethrough-set' (boolean : default false : readable / writable)
84 Whether this tag affects strikethrough
85
86 'style' (Pango::Style : default "normal" : readable / writable)
87 Font style
88
89 'style-set' (boolean : default false : readable / writable)
90 Whether this tag affects the font style
91
92 'text' (string : default undef : readable / writable)
93 Text to render
94
95 'text-height' (double : default 0 : readable)
96 Height of the rendered text
97
98 'text-width' (double : default 0 : readable)
99 Width of the rendered text
100
101 'underline' (Pango::Underline : default "none" : readable / writable)
102 Style of underline for this text
103
104 'underline-set' (boolean : default false : readable / writable)
105 Whether this tag affects underlining
106
107 'variant' (Pango::Variant : default "normal" : readable / writable)
108 Font variant
109
110 'variant-set' (boolean : default false : readable / writable)
111 Whether this tag affects the font variant
112
113 'weight' (integer : default 400 : readable / writable)
114 Font weight
115
116 'weight-set' (boolean : default false : readable / writable)
117 Whether this tag affects the font weight
118
119 'x' (double : default 0 : readable / writable)
120 'x-offset' (double : default 0 : readable / writable)
121 'y' (double : default 0 : readable / writable)
122 'y-offset' (double : default 0 : readable / writable)
123
125 enum Gtk2::AnchorType
126 • 'center' / 'GTK_ANCHOR_CENTER'
127
128 • 'north' / 'GTK_ANCHOR_NORTH'
129
130 • 'north-west' / 'GTK_ANCHOR_NORTH_WEST'
131
132 • 'north-east' / 'GTK_ANCHOR_NORTH_EAST'
133
134 • 'south' / 'GTK_ANCHOR_SOUTH'
135
136 • 'south-west' / 'GTK_ANCHOR_SOUTH_WEST'
137
138 • 'south-east' / 'GTK_ANCHOR_SOUTH_EAST'
139
140 • 'west' / 'GTK_ANCHOR_WEST'
141
142 • 'east' / 'GTK_ANCHOR_EAST'
143
144 • 'n' / 'GTK_ANCHOR_N'
145
146 • 'nw' / 'GTK_ANCHOR_NW'
147
148 • 'ne' / 'GTK_ANCHOR_NE'
149
150 • 's' / 'GTK_ANCHOR_S'
151
152 • 'sw' / 'GTK_ANCHOR_SW'
153
154 • 'se' / 'GTK_ANCHOR_SE'
155
156 • 'w' / 'GTK_ANCHOR_W'
157
158 • 'e' / 'GTK_ANCHOR_E'
159
160 enum Gtk2::Justification
161 • 'left' / 'GTK_JUSTIFY_LEFT'
162
163 • 'right' / 'GTK_JUSTIFY_RIGHT'
164
165 • 'center' / 'GTK_JUSTIFY_CENTER'
166
167 • 'fill' / 'GTK_JUSTIFY_FILL'
168
169 enum Pango::Stretch
170 • 'ultra-condensed' / 'PANGO_STRETCH_ULTRA_CONDENSED'
171
172 • 'extra-condensed' / 'PANGO_STRETCH_EXTRA_CONDENSED'
173
174 • 'condensed' / 'PANGO_STRETCH_CONDENSED'
175
176 • 'semi-condensed' / 'PANGO_STRETCH_SEMI_CONDENSED'
177
178 • 'normal' / 'PANGO_STRETCH_NORMAL'
179
180 • 'semi-expanded' / 'PANGO_STRETCH_SEMI_EXPANDED'
181
182 • 'expanded' / 'PANGO_STRETCH_EXPANDED'
183
184 • 'extra-expanded' / 'PANGO_STRETCH_EXTRA_EXPANDED'
185
186 • 'ultra-expanded' / 'PANGO_STRETCH_ULTRA_EXPANDED'
187
188 enum Pango::Style
189 • 'normal' / 'PANGO_STYLE_NORMAL'
190
191 • 'oblique' / 'PANGO_STYLE_OBLIQUE'
192
193 • 'italic' / 'PANGO_STYLE_ITALIC'
194
195 enum Pango::Underline
196 • 'none' / 'PANGO_UNDERLINE_NONE'
197
198 • 'single' / 'PANGO_UNDERLINE_SINGLE'
199
200 • 'double' / 'PANGO_UNDERLINE_DOUBLE'
201
202 • 'low' / 'PANGO_UNDERLINE_LOW'
203
204 • 'error' / 'PANGO_UNDERLINE_ERROR'
205
206 • 'single-line' / 'PANGO_UNDERLINE_SINGLE_LINE'
207
208 • 'double-line' / 'PANGO_UNDERLINE_DOUBLE_LINE'
209
210 • 'error-line' / 'PANGO_UNDERLINE_ERROR_LINE'
211
212 enum Pango::Variant
213 • 'normal' / 'PANGO_VARIANT_NORMAL'
214
215 • 'small-caps' / 'PANGO_VARIANT_SMALL_CAPS'
216
217 • 'all-small-caps' / 'PANGO_VARIANT_ALL_SMALL_CAPS'
218
219 • 'petite-caps' / 'PANGO_VARIANT_PETITE_CAPS'
220
221 • 'all-petite-caps' / 'PANGO_VARIANT_ALL_PETITE_CAPS'
222
223 • 'unicase' / 'PANGO_VARIANT_UNICASE'
224
225 • 'title-caps' / 'PANGO_VARIANT_TITLE_CAPS'
226
228 Gnome2::Canvas, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object,
229 Gnome2::Canvas::Item
230
232 Copyright (C) 2003-2004 by the Gtk2-Perl Team.
233
234 This software is licensed under the LGPL; see Gnome2::Canvas for a full
235 notice.
236
237
238
239perl v5.36.0 2022-07-22 Gnome2::Canvas::Text(3)