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
18       $renderer->set_fixed_height_from_font ($number_of_rows)
19
20           * $number_of_rows (integer)
21

PROPERTIES

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

SIGNALS

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

ENUMS AND FLAGS

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

SEE ALSO

214       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Cell‐
215       Renderer
216
218       Copyright (C) 2003-2007 by the gtk2-perl team.
219
220       This software is licensed under the LGPL.  See Gtk2 for a full notice.
221
222
223
224perl v5.8.8                       2007-03-18         Gtk2::CellRendererText(3)
Impressum