1Gtk2::CellRendererText(U3s)er Contributed Perl DocumentatGitokn2::CellRendererText(3)
2
3
4

NAME

6       Gtk2::CellRendererText - wrapper for GtkCellRendererText
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gtk2::CellRenderer
13                        +----Gtk2::CellRendererText
14

METHODS

16   cellrenderer = Gtk2::CellRendererText->new
17   $renderer->set_fixed_height_from_font ($number_of_rows)
18       •   $number_of_rows (integer)
19

PROPERTIES

21       'align-set' (boolean : default false : readable / writable / private /
22       static-nick / static-blurb)
23           Whether this tag affects the alignment mode
24
25       'alignment' (Pango::Alignment : default "left" : readable / writable /
26       private / static-nick / static-blurb)
27           How to align the lines
28
29       'attributes' (Pango::AttrList : default undef : readable / writable /
30       private / static-nick / static-blurb)
31           A list of style attributes to apply to the text of the renderer
32
33       'background' (string : default undef : writable / private / static-nick
34       / static-blurb)
35           Background color as a string
36
37       'background-gdk' (Gtk2::Gdk::Color : default undef : readable /
38       writable / private / static-nick / static-blurb)
39           Background color as a GdkColor
40
41       'background-set' (boolean : default false : readable / writable /
42       private / static-nick / static-blurb)
43           Whether this tag affects the background color
44
45       'editable' (boolean : default false : readable / writable / private /
46       static-nick / static-blurb)
47           Whether the text can be modified by the user
48
49       'editable-set' (boolean : default false : readable / writable / private
50       / static-nick / static-blurb)
51           Whether this tag affects text editability
52
53       'ellipsize' (Pango::EllipsizeMode : default "none" : readable /
54       writable / private / static-nick / static-blurb)
55           The preferred place to ellipsize the string, if the cell renderer
56           does not have enough room to display the entire string
57
58       'ellipsize-set' (boolean : default false : readable / writable /
59       private / static-nick / static-blurb)
60           Whether this tag affects the ellipsize mode
61
62       'family' (string : default undef : readable / writable / private /
63       static-nick / static-blurb)
64           Name of the font family, e.g. Sans, Helvetica, Times, Monospace
65
66       'family-set' (boolean : default false : readable / writable / private /
67       static-nick / static-blurb)
68           Whether this tag affects the font family
69
70       'font' (string : default undef : readable / writable / private /
71       static-nick / static-blurb)
72           Font description as a string, e.g. "Sans Italic 12"
73
74       'font-desc' (Pango::FontDescription : default undef : readable /
75       writable / private / static-nick / static-blurb)
76           Font description as a PangoFontDescription struct
77
78       'foreground' (string : default undef : writable / private / static-nick
79       / static-blurb)
80           Foreground color as a string
81
82       'foreground-gdk' (Gtk2::Gdk::Color : default undef : readable /
83       writable / private / static-nick / static-blurb)
84           Foreground color as a GdkColor
85
86       'foreground-set' (boolean : default false : readable / writable /
87       private / static-nick / static-blurb)
88           Whether this tag affects the foreground color
89
90       'language' (string : default undef : readable / writable / private /
91       static-nick / static-blurb)
92           The language this text is in, as an ISO code. Pango can use this as
93           a hint when rendering the text. If you don't understand this
94           parameter, you probably don't need it
95
96       'language-set' (boolean : default false : readable / writable / private
97       / static-nick / static-blurb)
98           Whether this tag affects the language the text is rendered as
99
100       'markup' (string : default undef : writable / private / static-nick /
101       static-blurb)
102           Marked up text to render
103
104       'rise' (integer : default 0 : readable / writable / private / static-
105       nick / static-blurb)
106           Offset of text above the baseline (below the baseline if rise is
107           negative)
108
109       'rise-set' (boolean : default false : readable / writable / private /
110       static-nick / static-blurb)
111           Whether this tag affects the rise
112
113       'scale' (double : default 1 : readable / writable / private / static-
114       nick / static-blurb)
115           Font scaling factor
116
117       'scale-set' (boolean : default false : readable / writable / private /
118       static-nick / static-blurb)
119           Whether this tag scales the font size by a factor
120
121       'single-paragraph-mode' (boolean : default false : readable / writable
122       / private / static-nick / static-blurb)
123           Whether or not to keep all text in a single paragraph
124
125       'size' (integer : default 0 : readable / writable / private / static-
126       nick / static-blurb)
127           Font size
128
129       'size-points' (double : default 0 : readable / writable / private /
130       static-nick / static-blurb)
131           Font size in points
132
133       'size-set' (boolean : default false : readable / writable / private /
134       static-nick / static-blurb)
135           Whether this tag affects the font size
136
137       'stretch' (Pango::Stretch : default "normal" : readable / writable /
138       private / static-nick / static-blurb)
139           Font stretch
140
141       'stretch-set' (boolean : default false : readable / writable / private
142       / static-nick / static-blurb)
143           Whether this tag affects the font stretch
144
145       'strikethrough' (boolean : default false : readable / writable /
146       private / static-nick / static-blurb)
147           Whether to strike through the text
148
149       'strikethrough-set' (boolean : default false : readable / writable /
150       private / static-nick / static-blurb)
151           Whether this tag affects strikethrough
152
153       'style' (Pango::Style : default "normal" : readable / writable /
154       private / static-nick / static-blurb)
155           Font style
156
157       'style-set' (boolean : default false : readable / writable / private /
158       static-nick / static-blurb)
159           Whether this tag affects the font style
160
161       'text' (string : default undef : readable / writable / private /
162       static-nick / static-blurb)
163           Text to render
164
165       'underline' (Pango::Underline : default "none" : readable / writable /
166       private / static-nick / static-blurb)
167           Style of underline for this text
168
169       'underline-set' (boolean : default false : readable / writable /
170       private / static-nick / static-blurb)
171           Whether this tag affects underlining
172
173       'variant' (Pango::Variant : default "normal" : readable / writable /
174       private / static-nick / static-blurb)
175           Font variant
176
177       'variant-set' (boolean : default false : readable / writable / private
178       / static-nick / static-blurb)
179           Whether this tag affects the font variant
180
181       'weight' (integer : default 400 : readable / writable / private /
182       static-nick / static-blurb)
183           Font weight
184
185       'weight-set' (boolean : default false : readable / writable / private /
186       static-nick / static-blurb)
187           Whether this tag affects the font weight
188
189       'width-chars' (integer : default -1 : readable / writable / private /
190       static-nick / static-blurb)
191           The desired width of the label, in characters
192
193       'wrap-mode' (Pango::WrapMode : default "char" : readable / writable /
194       private / static-nick / static-blurb)
195           How to break the string into multiple lines, if the cell renderer
196           does not have enough room to display the entire string
197
198       'wrap-width' (integer : default -1 : readable / writable / private /
199       static-nick / static-blurb)
200           The width at which the text is wrapped
201

SIGNALS

203       edited (Gtk2::CellRendererText, string, string)
204

ENUMS AND FLAGS

206   enum Pango::Alignment
207       •   'left' / 'PANGO_ALIGN_LEFT'
208
209       •   'center' / 'PANGO_ALIGN_CENTER'
210
211       •   'right' / 'PANGO_ALIGN_RIGHT'
212
213   enum Pango::EllipsizeMode
214       •   'none' / 'PANGO_ELLIPSIZE_NONE'
215
216       •   'start' / 'PANGO_ELLIPSIZE_START'
217
218       •   'middle' / 'PANGO_ELLIPSIZE_MIDDLE'
219
220       •   'end' / 'PANGO_ELLIPSIZE_END'
221
222   enum Pango::Stretch
223       •   'ultra-condensed' / 'PANGO_STRETCH_ULTRA_CONDENSED'
224
225       •   'extra-condensed' / 'PANGO_STRETCH_EXTRA_CONDENSED'
226
227       •   'condensed' / 'PANGO_STRETCH_CONDENSED'
228
229       •   'semi-condensed' / 'PANGO_STRETCH_SEMI_CONDENSED'
230
231       •   'normal' / 'PANGO_STRETCH_NORMAL'
232
233       •   'semi-expanded' / 'PANGO_STRETCH_SEMI_EXPANDED'
234
235       •   'expanded' / 'PANGO_STRETCH_EXPANDED'
236
237       •   'extra-expanded' / 'PANGO_STRETCH_EXTRA_EXPANDED'
238
239       •   'ultra-expanded' / 'PANGO_STRETCH_ULTRA_EXPANDED'
240
241   enum Pango::Style
242       •   'normal' / 'PANGO_STYLE_NORMAL'
243
244       •   'oblique' / 'PANGO_STYLE_OBLIQUE'
245
246       •   'italic' / 'PANGO_STYLE_ITALIC'
247
248   enum Pango::Underline
249       •   'none' / 'PANGO_UNDERLINE_NONE'
250
251       •   'single' / 'PANGO_UNDERLINE_SINGLE'
252
253       •   'double' / 'PANGO_UNDERLINE_DOUBLE'
254
255       •   'low' / 'PANGO_UNDERLINE_LOW'
256
257       •   'error' / 'PANGO_UNDERLINE_ERROR'
258
259       •   'single-line' / 'PANGO_UNDERLINE_SINGLE_LINE'
260
261       •   'double-line' / 'PANGO_UNDERLINE_DOUBLE_LINE'
262
263       •   'error-line' / 'PANGO_UNDERLINE_ERROR_LINE'
264
265   enum Pango::Variant
266       •   'normal' / 'PANGO_VARIANT_NORMAL'
267
268       •   'small-caps' / 'PANGO_VARIANT_SMALL_CAPS'
269
270   enum Pango::WrapMode
271       •   'word' / 'PANGO_WRAP_WORD'
272
273       •   'char' / 'PANGO_WRAP_CHAR'
274
275       •   'word-char' / 'PANGO_WRAP_WORD_CHAR'
276

SEE ALSO

278       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object,
279       Gtk2::CellRenderer
280
282       Copyright (C) 2003-2011 by the gtk2-perl team.
283
284       This software is licensed under the LGPL.  See Gtk2 for a full notice.
285
286
287
288perl v5.32.1                      2021-01-27         Gtk2::CellRendererText(3)
Impressum