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

NAME

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

SIGNALS

161       edited (Gtk2::CellRendererText, string, string)
162

ENUMS AND FLAGS

164   enum Gtk2::Pango::Alignment
165       ·   'left' / 'PANGO_ALIGN_LEFT'
166
167       ·   'center' / 'PANGO_ALIGN_CENTER'
168
169       ·   'right' / 'PANGO_ALIGN_RIGHT'
170
171   enum Gtk2::Pango::EllipsizeMode
172       ·   'none' / 'PANGO_ELLIPSIZE_NONE'
173
174       ·   'start' / 'PANGO_ELLIPSIZE_START'
175
176       ·   'middle' / 'PANGO_ELLIPSIZE_MIDDLE'
177
178       ·   'end' / 'PANGO_ELLIPSIZE_END'
179
180   enum Gtk2::Pango::Stretch
181       ·   'ultra-condensed' / 'PANGO_STRETCH_ULTRA_CONDENSED'
182
183       ·   'extra-condensed' / 'PANGO_STRETCH_EXTRA_CONDENSED'
184
185       ·   'condensed' / 'PANGO_STRETCH_CONDENSED'
186
187       ·   'semi-condensed' / 'PANGO_STRETCH_SEMI_CONDENSED'
188
189       ·   'normal' / 'PANGO_STRETCH_NORMAL'
190
191       ·   'semi-expanded' / 'PANGO_STRETCH_SEMI_EXPANDED'
192
193       ·   'expanded' / 'PANGO_STRETCH_EXPANDED'
194
195       ·   'extra-expanded' / 'PANGO_STRETCH_EXTRA_EXPANDED'
196
197       ·   'ultra-expanded' / 'PANGO_STRETCH_ULTRA_EXPANDED'
198
199   enum Gtk2::Pango::Style
200       ·   'normal' / 'PANGO_STYLE_NORMAL'
201
202       ·   'oblique' / 'PANGO_STYLE_OBLIQUE'
203
204       ·   'italic' / 'PANGO_STYLE_ITALIC'
205
206   enum Gtk2::Pango::Underline
207       ·   'none' / 'PANGO_UNDERLINE_NONE'
208
209       ·   'single' / 'PANGO_UNDERLINE_SINGLE'
210
211       ·   'double' / 'PANGO_UNDERLINE_DOUBLE'
212
213       ·   'low' / 'PANGO_UNDERLINE_LOW'
214
215       ·   'error' / 'PANGO_UNDERLINE_ERROR'
216
217   enum Gtk2::Pango::Variant
218       ·   'normal' / 'PANGO_VARIANT_NORMAL'
219
220       ·   'small-caps' / 'PANGO_VARIANT_SMALL_CAPS'
221
222   enum Gtk2::Pango::WrapMode
223       ·   'word' / 'PANGO_WRAP_WORD'
224
225       ·   'char' / 'PANGO_WRAP_CHAR'
226
227       ·   'word-char' / 'PANGO_WRAP_WORD_CHAR'
228

SEE ALSO

230       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object,
231       Gtk2::CellRenderer
232
234       Copyright (C) 2003-2008 by the gtk2-perl team.
235
236       This software is licensed under the LGPL.  See Gtk2 for a full notice.
237
238
239
240perl v5.12.0                      2010-05-02         Gtk2::CellRendererText(3)
Impressum