This file is indexed.

/usr/share/perl5/Gtk2/CellRenderer.pod is in libgtk2-perl-doc 2:1.2498-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
=head1 NAME

Gtk2::CellRenderer - An object that renders a single cell onto a Gtk2::Gdk::Drawable

=cut

=for position DESCRIPTION

=head1 DESCRIPTION

The Gtk2::CellRenderer is the base class for objects which render cells
onto drawables.  These objects are used primarily by the Gtk2::TreeView,
though they aren't tied to them in any specific way.

Typically, one cell renderer is used to draw many cells onto the screen.
Thus, the cell renderer doesn't keep state; instead, any state is set
immediately prior to use through the object property system.  The cell
is measured with C<get_size>, and then renderered with C<render>.

=cut



=head1 HIERARCHY

  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::CellRenderer



=cut

=for object Gtk2::CellRenderer - An object that renders a single cell onto a Gtk2::Gdk::Drawable

=cut




=head1 METHODS

=head2 boolean = $cell-E<gt>B<activate> ($event, $widget, $path, $background_area, $cell_area, $flags)

=over

=item * $event (Gtk2::Gdk::Event) 

=item * $widget (Gtk2::Widget) 

=item * $path (string) 

=item * $background_area (Gtk2::Gdk::Rectangle) 

=item * $cell_area (Gtk2::Gdk::Rectangle) 

=item * $flags (Gtk2::CellRendererState) 

=back

=head2 (xalign, yalign) = $cell-E<gt>B<get_alignment> 

Since: gtk+ 2.18

=head2 $cell-E<gt>B<set_alignment> ($xalign, $yalign)

=over

=item * $xalign (double) 

=item * $yalign (double) 

=back

Since: gtk+ 2.18

=head2 $cell-E<gt>B<editing_canceled> 

Since: gtk+ 2.4

=head2 (width, height) = $cell-E<gt>B<get_fixed_size> 

Fetch the fixed size if I<$cell>.  Values of -1 mean "this dimension is not
fixed."

=head2 $cell-E<gt>B<set_fixed_size> ($width, $height)

=over

=item * $width (integer) 

=item * $height (integer) 

=back

Set the renderer's size explicitly, independent of object properties.  A value
of -1 means "don't use a fixed size for this dimension."

=head2 (xpad, ypad) = $cell-E<gt>B<get_padding> 

Since: gtk+ 2.18

=head2 $cell-E<gt>B<set_padding> ($xpad, $ypad)

=over

=item * $xpad (integer) 

=item * $ypad (integer) 

=back

Since: gtk+ 2.18

=head2 $cell-E<gt>B<render> ($drawable, $widget, $background_area, $cell_area, $expose_area, $flags)

=over

=item * $drawable (Gtk2::Gdk::Drawable) 

=item * $widget (Gtk2::Widget) 

=item * $background_area (Gtk2::Gdk::Rectangle) 

=item * $cell_area (Gtk2::Gdk::Rectangle) 

=item * $expose_area (Gtk2::Gdk::Rectangle) 

=item * $flags (Gtk2::CellRendererState) 

=back

=head2 boolean = $cell-E<gt>B<get_sensitive> 

Since: gtk+ 2.18

=head2 $cell-E<gt>B<set_sensitive> ($sensitive)

=over

=item * $sensitive (boolean) 

=back

Since: gtk+ 2.18

=head2 (x_offset, y_offset, width, height) = $cell->B<get_size> ($widget, $cell_area)

=over

=item * $widget (Gtk2::Widget) 

=item * $cell_area (Gtk2::Gdk::Rectangle or undef) 

=back



=head2 celleditable or undef = $cell->B<start_editing> ($event, $widget, $path, $background_area, $cell_area, $flags)

=over

=item * $event (Gtk2::Gdk::Event) 

=item * $widget (Gtk2::Widget) 

=item * $path (string) 

=item * $background_area (Gtk2::Gdk::Rectangle) 

=item * $cell_area (Gtk2::Gdk::Rectangle) 

=item * $flags (Gtk2::CellRendererState) 

=back



=head2 $cell-E<gt>B<stop_editing> ($canceled)

=over

=item * $canceled (boolean) 

=back

Since: gtk+ 2.6

=head2 boolean = $cell-E<gt>B<get_visible> 

Since: gtk+ 2.18

=head2 $cell-E<gt>B<set_visible> ($visible)

=over

=item * $visible (boolean) 

=back

Since: gtk+ 2.18



=cut


=head1 PROPERTIES

=over

=item 'cell-background' (string : default undef : writable / private)

Cell background color as a string

=item 'cell-background-gdk' (Gtk2::Gdk::Color : default undef : readable / writable / private)

Cell background color as a GdkColor

=item 'cell-background-set' (boolean : default false : readable / writable / private)

Whether this tag affects the cell background color

=item 'editing' (boolean : default false : readable / private)

Whether the cell renderer is currently in editing mode

=item 'height' (integer : default -1 : readable / writable / private)

The fixed height

=item 'is-expanded' (boolean : default false : readable / writable / private)

Row is an expander row, and is expanded

=item 'is-expander' (boolean : default false : readable / writable / private)

Row has children

=item 'mode' (Gtk2::CellRendererMode : default "inert" : readable / writable / private)

Editable mode of the CellRenderer

=item 'sensitive' (boolean : default true : readable / writable / private)

Display the cell sensitive

=item 'visible' (boolean : default true : readable / writable / private)

Display the cell

=item 'width' (integer : default -1 : readable / writable / private)

The fixed width

=item 'xalign' (float : default 0.5 : readable / writable / private)

The x-align

=item 'xpad' (Glib::UInt : default 0 : readable / writable / private)

The xpad

=item 'yalign' (float : default 0.5 : readable / writable / private)

The y-align

=item 'ypad' (Glib::UInt : default 0 : readable / writable / private)

The ypad

=back



=cut


=head1 SIGNALS

=over

=item B<editing-canceled> (Gtk2::CellRenderer)

=item B<editing-started> (Gtk2::CellRenderer, Gtk2::CellEditable, string)

=back



=cut


=head1 ENUMS AND FLAGS

=head2 enum Gtk2::CellRendererMode



=over

=item * 'inert' / 'GTK_CELL_RENDERER_MODE_INERT'

=item * 'activatable' / 'GTK_CELL_RENDERER_MODE_ACTIVATABLE'

=item * 'editable' / 'GTK_CELL_RENDERER_MODE_EDITABLE'

=back


=head2 flags Gtk2::CellRendererState



=over

=item * 'selected' / 'GTK_CELL_RENDERER_SELECTED'

=item * 'prelit' / 'GTK_CELL_RENDERER_PRELIT'

=item * 'insensitive' / 'GTK_CELL_RENDERER_INSENSITIVE'

=item * 'sorted' / 'GTK_CELL_RENDERER_SORTED'

=item * 'focused' / 'GTK_CELL_RENDERER_FOCUSED'

=back




=cut

=for position post_enums

=head1 DERIVING NEW CELL RENDERERS

Gtk+ provides three cell renderers: Gtk2::CellRendererText,
Gtk2::CellRendererToggle, and Gtk2::CellRendererPixbuf.
You may derive a new renderer from any of these, or directly from
Gtk2::CellRenderer itself.

There are a number of rules that must be followed when writing a new
cell renderer.  First and foremost, it's important that a certain set of
properties always yields a cell of the same size, barring a Gtk2::Style
change.  The cell renderer also has a number of generic properties that
are expected to be honored by all children.

The new renderer must be a GObject, so you must follow the normal procedure
for creating a new Glib::Object (i.e., either Glib::Object::Subclass or
Glib::Type::register_object).  The new subclass can customize the object's
behavior by providing new implementations of these four methods:

=over

=item (x_offset, y_offset, width, height) = GET_SIZE ($cell, $widget, $cell_area)

=over

=item o $cell (Gtk2::CellRenderer) 

=item o $widget (Gtk2::Widget) widget to which I<$cell> is rendering

=item o $cell_area (Gtk2::Gdk::Rectangle or undef) The area a cell will be allocated, or undef.

=back

Return Values:

=over

=item - x_offset - x offset of cell relative to I<$cell_area>

=item - y_offset - y offset of cell relative to I<$cell_area>

=item - width - width needed to render cell

=item - height - height needed to render cell

=back

This is called to calculate the size of the cell for display, taking into
account the padding and alignment properties of the parent.  This one will
be called very often.  If you need to know your cell's data, then get it
from the appropriate object properties, which will be set accordingly before
this method is called.

=item RENDER ($cell, $drawable, $widget, $background_area, $cell_area, $expose_area, $flags)

=over

=item o $cell (Gtk2::CellRenderer)

=item o $drawable (Gtk2::Gdk::Drawable) window on which to draw

=item o $widget (Gtk2::Widget) widget owning I<$drawable>

=item o $background_area (Gtk2::Gdk::Rectangle) entire cell area (including tree expanders and maybe padding on the sides)

=item o $cell_area (Gtk2::Gdk::Rectangle) area normally rendered by a cell renderer

=item o $expose_area (Gtk2::Gdk::Rectangle) area that actually needs updating

=item o $flags (Gtk2::CellRendererState) flags that affect rendering

=back

This is called to render the cell onto the screen.  As with GET_SIZE, the
data for the cell comes from object properties.  In general, you'll want to
make use of Gtk2::Style methods for drawing anything fancy.

The three passed-in rectangles are areas of I<$drawable>.  Most renderers draw
within I<$cell_area>; the xalign, yalign, xpad, and ypad fields of the 
cell renderer should be honored with respect to I<$cell_area>.
I<$background_area> includes the blank space around the cell, and also the
area containing the tree expander; so the I<$background_area> rectangles for
all cells cover the entire I<$drawable>.  I<$expose_area> is a clip
rectangle.

=item boolean = ACTIVATE ($cell, $event, $widget, $path, $background_area, $cell_area, $flags)

=over

=item o $cell (Gtk2::CellRenderer)

=item o $event (Gtk2::Gdk::Event)

=item o $widget (Gtk2::Widget) widget that received the event

=item o $path (string) widget-dependent string representation of the event location; e.g. for a Gtk2::TreeView, a string representation of a Gtk2::TreePath.

=item o $background_area (Gtk2::Gdk::Rectangle) background area as passed to C<RENDER>.

=item o $cell_area (Gtk2::Gdk::Rectangle) cell area as passed to C<RENDER>.

=item o $flags (Gtk2::CellRendererState) render flags

=back

This method is called when an event occurs on a cell.  Implementing it is
not mandatory.  The return value should be TRUE if the event was
consumed/handled.

=item celleditable or undef = START_EDITING ($cell, $event, $widget, $path, $background_area, $cell_area, $flags)

=over

=item o $cell (Gtk2::CellRenderer)

=item o $event (Gtk2::Gdk::Event)

=item o $widget (Gtk2::Widget) widget that received the event

=item o $path (string) widget-dependent string representation of the event location; e.g. for a Gtk2::TreeView, a string representation of a Gtk2::TreePath.

=item o $background_area (Gtk2::Gdk::Rectangle) background area as passed to C<RENDER>.

=item o $cell_area (Gtk2::Gdk::Rectangle) cell area as passed to C<RENDER>.

=item o $flags (Gtk2::CellRendererState) render flags

=back

For cells that are editable, this is called to put the cell into editing
mode.  If the return value is an object is a Gtk2::CellEditable, that
widget will be used to edit the value; the calling code takes care of
sizing, placing, and showing the editable, you just need to return it.
If the return value is undef, the editing is aborted.

=back

Note: for backward compatibility, the bizarre and non-standard scheme used
for this in 1.02x is still supported, but is deprecated and should not be
used in new code, and since i don't want people to use it any more i will
not document it here.

=cut




=head1 SEE ALSO

L<Gtk2>, L<Glib::Object>, L<Glib::InitiallyUnowned>, L<Gtk2::Object>


=cut


=head1 COPYRIGHT

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL.  See L<Gtk2> for a full notice.



=cut