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

SIGNALS

179       edited (Gtk2::CellRendererText, string, string)
180

ENUMS AND FLAGS

182   enum Pango::Alignment
183       ·   'left' / 'PANGO_ALIGN_LEFT'
184
185       ·   'center' / 'PANGO_ALIGN_CENTER'
186
187       ·   'right' / 'PANGO_ALIGN_RIGHT'
188
189   enum Pango::EllipsizeMode
190       ·   'none' / 'PANGO_ELLIPSIZE_NONE'
191
192       ·   'start' / 'PANGO_ELLIPSIZE_START'
193
194       ·   'middle' / 'PANGO_ELLIPSIZE_MIDDLE'
195
196       ·   'end' / 'PANGO_ELLIPSIZE_END'
197
198   enum Pango::Stretch
199       ·   'ultra-condensed' / 'PANGO_STRETCH_ULTRA_CONDENSED'
200
201       ·   'extra-condensed' / 'PANGO_STRETCH_EXTRA_CONDENSED'
202
203       ·   'condensed' / 'PANGO_STRETCH_CONDENSED'
204
205       ·   'semi-condensed' / 'PANGO_STRETCH_SEMI_CONDENSED'
206
207       ·   'normal' / 'PANGO_STRETCH_NORMAL'
208
209       ·   'semi-expanded' / 'PANGO_STRETCH_SEMI_EXPANDED'
210
211       ·   'expanded' / 'PANGO_STRETCH_EXPANDED'
212
213       ·   'extra-expanded' / 'PANGO_STRETCH_EXTRA_EXPANDED'
214
215       ·   'ultra-expanded' / 'PANGO_STRETCH_ULTRA_EXPANDED'
216
217   enum Pango::Style
218       ·   'normal' / 'PANGO_STYLE_NORMAL'
219
220       ·   'oblique' / 'PANGO_STYLE_OBLIQUE'
221
222       ·   'italic' / 'PANGO_STYLE_ITALIC'
223
224   enum Pango::Underline
225       ·   'none' / 'PANGO_UNDERLINE_NONE'
226
227       ·   'single' / 'PANGO_UNDERLINE_SINGLE'
228
229       ·   'double' / 'PANGO_UNDERLINE_DOUBLE'
230
231       ·   'low' / 'PANGO_UNDERLINE_LOW'
232
233       ·   'error' / 'PANGO_UNDERLINE_ERROR'
234
235   enum Pango::Variant
236       ·   'normal' / 'PANGO_VARIANT_NORMAL'
237
238       ·   'small-caps' / 'PANGO_VARIANT_SMALL_CAPS'
239
240   enum Pango::WrapMode
241       ·   'word' / 'PANGO_WRAP_WORD'
242
243       ·   'char' / 'PANGO_WRAP_CHAR'
244
245       ·   'word-char' / 'PANGO_WRAP_WORD_CHAR'
246

SEE ALSO

248       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object,
249       Gtk2::CellRenderer
250
252       Copyright (C) 2003-2011 by the gtk2-perl team.
253
254       This software is licensed under the LGPL.  See Gtk2 for a full notice.
255
256
257
258perl v5.28.0                      2018-07-18         Gtk2::CellRendererText(3)
Impressum