~ubuntu-branches/ubuntu/precise/gtk+2.0/precise-proposed

« back to all changes in this revision

Viewing changes to docs/reference/gtk/tmpl/gtkctree.sgml

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2012-02-06 22:03:26 UTC
  • mfrom: (1.14.12)
  • Revision ID: package-import@ubuntu.com-20120206220326-10d7cnkpdpbi9iox
Tags: 2.24.10-0ubuntu1
* New upstream version, dropped patches included in the new version
* debian/patches/090_logging_file_saves.patch:
  - improve the logging of saved filed, thanks Siegfried Gevatter 
    (lp: #920961)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- ##### SECTION Title ##### -->
 
2
GtkCTree
 
3
 
 
4
<!-- ##### SECTION Short_Description ##### -->
 
5
A widget displaying a hierarchical tree
 
6
 
 
7
<!-- ##### SECTION Long_Description ##### -->
 
8
<para>
 
9
The #GtkCTree widget is used for showing a hierarchical tree 
 
10
to the user, for example a directory tree.
 
11
</para>
 
12
<para>
 
13
The tree is internally represented as a set of #GtkCTreeNode structures.
 
14
</para>
 
15
<para>
 
16
The interface has much in common with the #GtkCList widget: rows (nodes)
 
17
can be selected by the user etc.
 
18
</para>
 
19
<para> 
 
20
Positions in the tree are often indicated by two arguments, a
 
21
parent and a sibling, both #GtkCTreeNode pointers. If the parent
 
22
is %NULL, the position is at the root of the tree and if the sibling
 
23
is %NULL, it will be the last child of parent, otherwise it will be
 
24
inserted just before the sibling.
 
25
</para>
 
26
<para>
 
27
GtkCTree has been deprecated since GTK+ 2.0 and should not be used
 
28
in newly written code. Use #GtkTreeView instead.
 
29
</para>
 
30
 
 
31
<!-- ##### SECTION See_Also ##### -->
 
32
<para>
 
33
 
 
34
</para>
 
35
 
 
36
<!-- ##### SECTION Stability_Level ##### -->
 
37
 
 
38
 
 
39
<!-- ##### SECTION Image ##### -->
 
40
 
 
41
 
 
42
<!-- ##### STRUCT GtkCTree ##### -->
 
43
<para>
 
44
The #GtkCTree-struct contains the following user-accessible fields.
 
45
These fields should be considered read-only; to set the values,
 
46
use the methods below.
 
47
 
 
48
<informaltable pgwide="1" frame="none" role="struct">
 
49
<tgroup cols="2"><colspec colwidth="2*"/><colspec colwidth="8*"/>
 
50
<tbody>
 
51
 
 
52
<row>
 
53
<entry>#gint <structfield>tree_indent</structfield>;</entry>
 
54
<entry>The number of pixels each successive level of the tree is
 
55
indented in the display.</entry>
 
56
</row>
 
57
 
 
58
<row>
 
59
<entry>#gint <structfield>tree_spacing</structfield>;</entry>
 
60
<entry>The space in pixels between the graphical tree and the text in the
 
61
node.</entry>
 
62
</row>
 
63
 
 
64
<row>
 
65
<entry>#gint <structfield>tree_column</structfield>;</entry>
 
66
<entry>The index of the column for which the tree graphics is drawn. </entry>
 
67
</row>
 
68
 
 
69
<row>
 
70
<entry>#GtkCTreeLineStyle <structfield>line_style</structfield>;</entry>
 
71
<entry>The style in which the lines in the tree graphics are drawn.</entry>
 
72
</row>
 
73
 
 
74
<row>
 
75
<entry>#GtkCTreeExpanderStyle <structfield>expander_style</structfield>;</entry>
 
76
<entry>The style in which the expander buttons are drawn.</entry>
 
77
</row>
 
78
 
 
79
<row>
 
80
<entry>#GtkCTreeExpanderStyle <structfield>expander_style</structfield>;</entry>
 
81
<entry>FIXME.</entry>
 
82
</row>
 
83
 
 
84
</tbody></tgroup></informaltable>
 
85
</para>
 
86
 
 
87
 
 
88
<!-- ##### SIGNAL GtkCTree::change-focus-row-expansion ##### -->
 
89
<para>
 
90
The row which has the focus is either collapsed or expanded
 
91
or toggled.
 
92
</para>
 
93
 
 
94
@ctree: the object which received the signal.
 
95
@expansion: What is being done.
 
96
 
 
97
<!-- ##### SIGNAL GtkCTree::tree-collapse ##### -->
 
98
<para>
 
99
Emitted when a node is collapsed.
 
100
</para>
 
101
 
 
102
@ctree: the object which received the signal.
 
103
@node: 
 
104
 
 
105
<!-- ##### SIGNAL GtkCTree::tree-expand ##### -->
 
106
<para>
 
107
Emitted when a node is expanded.
 
108
</para>
 
109
 
 
110
@ctree: the object which received the signal.
 
111
@node: 
 
112
 
 
113
<!-- ##### SIGNAL GtkCTree::tree-move ##### -->
 
114
<para>
 
115
Emitted when a node is moved.
 
116
</para>
 
117
 
 
118
@ctree: the object which received the signal.
 
119
@node: The node that is moved.
 
120
@new_parent: The new parent of the node.
 
121
@new_sibling: The new sibling of the node.
 
122
 
 
123
<!-- ##### SIGNAL GtkCTree::tree-select-row ##### -->
 
124
<para>
 
125
Emitted when a row is selected.
 
126
</para>
 
127
 
 
128
@ctree: the object which received the signal.
 
129
@node: The node corresponding to the selected row.
 
130
@column: The column which was selected.
 
131
 
 
132
<!-- ##### SIGNAL GtkCTree::tree-unselect-row ##### -->
 
133
<para>
 
134
Emitted when a node is unselected.
 
135
</para>
 
136
 
 
137
@ctree: the object which received the signal.
 
138
@node: The node  corresponding to the selected row.
 
139
@column: 
 
140
 
 
141
<!-- ##### ARG GtkCTree:expander-style ##### -->
 
142
<para>
 
143
The style of the expander buttons.
 
144
</para>
 
145
 
 
146
<!-- ##### ARG GtkCTree:indent ##### -->
 
147
<para>
 
148
The number of pixels to indent the tree levels.
 
149
</para>
 
150
 
 
151
<!-- ##### ARG GtkCTree:line-style ##### -->
 
152
<para>
 
153
The style of the lines in the tree graphic.
 
154
</para>
 
155
 
 
156
<!-- ##### ARG GtkCTree:n-columns ##### -->
 
157
<para>
 
158
The number of columns in the tree.
 
159
</para>
 
160
 
 
161
<!-- ##### ARG GtkCTree:show-stub ##### -->
 
162
<para>
 
163
FIXME
 
164
</para>
 
165
 
 
166
<!-- ##### ARG GtkCTree:spacing ##### -->
 
167
<para>
 
168
The number of pixels between the tree and the columns.
 
169
</para>
 
170
 
 
171
<!-- ##### ARG GtkCTree:tree-column ##### -->
 
172
<para>
 
173
The column in which the actual tree graphic appears.
 
174
</para>
 
175
 
 
176
<!-- ##### MACRO GTK_CTREE_ROW ##### -->
 
177
<para>
 
178
Used to get the #GtkCTreeRow structure corresponding to the given #GtkCTreeNode.
 
179
</para>
 
180
 
 
181
@_node_: 
 
182
 
 
183
 
 
184
<!-- ##### MACRO GTK_CTREE_NODE ##### -->
 
185
<para>
 
186
 
 
187
</para>
 
188
 
 
189
@_node_: 
 
190
 
 
191
 
 
192
<!-- ##### MACRO GTK_CTREE_NODE_NEXT ##### -->
 
193
<para>
 
194
FIXME
 
195
</para>
 
196
 
 
197
@_nnode_: 
 
198
 
 
199
 
 
200
<!-- ##### MACRO GTK_CTREE_NODE_PREV ##### -->
 
201
<para>
 
202
FIXME
 
203
</para>
 
204
 
 
205
@_pnode_: 
 
206
 
 
207
 
 
208
<!-- ##### MACRO GTK_CTREE_FUNC ##### -->
 
209
<para>
 
210
 
 
211
</para>
 
212
 
 
213
@_func_: 
 
214
 
 
215
 
 
216
<!-- ##### ENUM GtkCTreePos ##### -->
 
217
<para>
 
218
A value specifying the position of a new node relative to an old one.
 
219
 
 
220
<informaltable pgwide="1" frame="none" role="enum">
 
221
<tgroup cols="2"><colspec colwidth="2*"/><colspec colwidth="8*"/>
 
222
<tbody>
 
223
 
 
224
<row>
 
225
<entry>GTK_CTREE_POS_BEFORE</entry>
 
226
<entry>As a sibling, before the specified node.</entry>
 
227
</row>
 
228
 
 
229
<row>
 
230
<entry>GTK_CTREE_POS_AS_CHILD</entry>
 
231
<entry>As a child of the specified node.</entry>
 
232
</row>
 
233
 
 
234
<row>
 
235
<entry>GTK_CTREE_POS_AFTER</entry>
 
236
<entry>As a sibling, after the specified node.</entry>
 
237
</row>
 
238
 
 
239
</tbody></tgroup></informaltable>
 
240
 
 
241
</para>
 
242
 
 
243
@GTK_CTREE_POS_BEFORE: 
 
244
@GTK_CTREE_POS_AS_CHILD: 
 
245
@GTK_CTREE_POS_AFTER: 
 
246
 
 
247
<!-- ##### ENUM GtkCTreeLineStyle ##### -->
 
248
<para>
 
249
The appearance of the lines in the tree graphics.
 
250
 
 
251
<informaltable pgwide="1" frame="none" role="enum">
 
252
<tgroup cols="2"><colspec colwidth="2*"/><colspec colwidth="8*"/>
 
253
<tbody>
 
254
 
 
255
<row>
 
256
<entry>GTK_CTREE_LINES_NONE</entry>
 
257
<entry>No lines.</entry>
 
258
</row>
 
259
 
 
260
<row>
 
261
<entry>GTK_CTREE_LINES_SOLID</entry>
 
262
<entry>Solid lines.</entry>
 
263
</row>
 
264
 
 
265
<row>
 
266
<entry>GTK_CTREE_LINES_DOTTED</entry>
 
267
<entry>Dotted lines.</entry>
 
268
</row>
 
269
 
 
270
<row>
 
271
<entry>GTK_CTREE_LINES_TABBED</entry>
 
272
<entry>FIXME.</entry>
 
273
</row>
 
274
 
 
275
</tbody></tgroup></informaltable>
 
276
 
 
277
 
 
278
</para>
 
279
 
 
280
@GTK_CTREE_LINES_NONE: 
 
281
@GTK_CTREE_LINES_SOLID: 
 
282
@GTK_CTREE_LINES_DOTTED: 
 
283
@GTK_CTREE_LINES_TABBED: 
 
284
 
 
285
<!-- ##### ENUM GtkCTreeExpanderStyle ##### -->
 
286
<para>
 
287
The appearance of the expander buttons, i.e. the small buttons
 
288
which expand or contract parts of the tree when pressed.
 
289
 
 
290
 
 
291
<informaltable pgwide="1" frame="none" role="enum">
 
292
<tgroup cols="2"><colspec colwidth="2*"/><colspec colwidth="8*"/>
 
293
<tbody>
 
294
 
 
295
<row>
 
296
<entry>GTK_CTREE_EXPANDER_NONE</entry>
 
297
<entry>No expanders.</entry>
 
298
</row>
 
299
 
 
300
<row>
 
301
<entry>GTK_CTREE_EXPANDER_SQUARE</entry>
 
302
<entry>Square expanders.</entry>
 
303
</row>
 
304
 
 
305
<row>
 
306
<entry>GTK_CTREE_EXPANDER_TRIANGLE</entry>
 
307
<entry>Triangular expanders.</entry>
 
308
</row>
 
309
 
 
310
<row>
 
311
<entry>GTK_CTREE_EXPANDER_CIRCULAR</entry>
 
312
<entry>Round expanders.</entry>
 
313
</row>
 
314
 
 
315
</tbody></tgroup></informaltable>
 
316
 
 
317
 
 
318
</para>
 
319
 
 
320
@GTK_CTREE_EXPANDER_NONE: 
 
321
@GTK_CTREE_EXPANDER_SQUARE: 
 
322
@GTK_CTREE_EXPANDER_TRIANGLE: 
 
323
@GTK_CTREE_EXPANDER_CIRCULAR: 
 
324
 
 
325
<!-- ##### ENUM GtkCTreeExpansionType ##### -->
 
326
<para>
 
327
How to expand or collapse a part of a tree.
 
328
 
 
329
<informaltable pgwide="1" frame="none" role="enum">
 
330
<tgroup cols="2"><colspec colwidth="2*"/><colspec colwidth="8*"/>
 
331
<tbody>
 
332
 
 
333
<row>
 
334
<entry>GTK_CTREE_EXPANSION_EXPAND</entry>
 
335
<entry>Expand this node.</entry>
 
336
</row>
 
337
 
 
338
<row>
 
339
<entry>GTK_CTREE_EXPANSION_EXPAND_RECURSIVE</entry>
 
340
<entry>Expand this node and everything below it in the hierarchy.</entry>
 
341
</row>
 
342
 
 
343
<row>
 
344
<entry>GTK_CTREE_EXPANSION_COLLAPSE</entry>
 
345
<entry>Collapse this node.</entry>
 
346
</row>
 
347
 
 
348
<row>
 
349
<entry>GTK_CTREE_EXPANSION_COLLAPSE_RECURSIVE</entry>
 
350
<entry>Collapse this node and everything below it in the hierarchy.</entry>
 
351
</row>
 
352
 
 
353
<row>
 
354
<entry>GTK_CTREE_EXPANSION_TOGGLE</entry>
 
355
<entry>Toggle this node (i.e. expand if collapsed and vice versa).</entry>
 
356
</row>
 
357
 
 
358
<row>
 
359
<entry>GTK_CTREE_EXPANSION_TOGGLE_RECURSIVE</entry>
 
360
<entry>Toggle this node and everything below it in the hierarchy.</entry>
 
361
</row>
 
362
 
 
363
 
 
364
</tbody></tgroup></informaltable>
 
365
 
 
366
 
 
367
</para>
 
368
 
 
369
@GTK_CTREE_EXPANSION_EXPAND: 
 
370
@GTK_CTREE_EXPANSION_EXPAND_RECURSIVE: 
 
371
@GTK_CTREE_EXPANSION_COLLAPSE: 
 
372
@GTK_CTREE_EXPANSION_COLLAPSE_RECURSIVE: 
 
373
@GTK_CTREE_EXPANSION_TOGGLE: 
 
374
@GTK_CTREE_EXPANSION_TOGGLE_RECURSIVE: 
 
375
 
 
376
<!-- ##### USER_FUNCTION GtkCTreeFunc ##### -->
 
377
<para>
 
378
A generic callback type to do something with a particular node.
 
379
</para>
 
380
 
 
381
@ctree: The #GtkCTree object.
 
382
@node: The #GtkCTreeNode in the tree.
 
383
@data: The user data associated with the node.
 
384
 
 
385
 
 
386
<!-- ##### USER_FUNCTION GtkCTreeGNodeFunc ##### -->
 
387
<para>
 
388
FIXME
 
389
</para>
 
390
 
 
391
@ctree: 
 
392
@depth: 
 
393
@gnode: 
 
394
@cnode: 
 
395
@data: 
 
396
@Returns: 
 
397
 
 
398
 
 
399
<!-- ##### USER_FUNCTION GtkCTreeCompareDragFunc ##### -->
 
400
<para>
 
401
FIXME
 
402
</para>
 
403
 
 
404
@ctree: 
 
405
@source_node: 
 
406
@new_parent: 
 
407
@new_sibling: 
 
408
@Returns: 
 
409
 
 
410
 
 
411
<!-- ##### STRUCT GtkCTreeRow ##### -->
 
412
<para>
 
413
A structure representing a single row in the tree graph.
 
414
The values inside the structure should be considered read-only.
 
415
This structure is derived from the #GtkCListRow structure.
 
416
 
 
417
<informaltable pgwide="1" frame="none" role="struct">
 
418
<tgroup cols="2"><colspec colwidth="2*"/><colspec colwidth="8*"/>
 
419
<tbody>
 
420
 
 
421
<row>
 
422
<entry>#GtkCTreeNode *<structfield>parent</structfield>;</entry>
 
423
<entry>The parent node of the node corresponding to this row.
 
424
</entry>
 
425
</row>
 
426
 
 
427
<row>
 
428
<entry>#GtkCTreeNode *<structfield>sibling</structfield>;</entry>
 
429
<entry>The next sibling node of the node corresponding to this row.
 
430
</entry>
 
431
</row>
 
432
 
 
433
<row>
 
434
<entry>#GtkCTreeNode *<structfield>children</structfield>;</entry>
 
435
<entry>The first child node corresponding to this row; to access
 
436
the other children, just use the siblings of that node.
 
437
</entry>
 
438
</row>
 
439
 
 
440
<row>
 
441
<entry>#GdkPixmap *<structfield>pixmap_closed</structfield>;</entry>
 
442
<entry> The pixmap to be shown when the node is collapsed.
 
443
</entry>
 
444
</row>
 
445
 
 
446
<row>
 
447
<entry>#GdkBitmap *<structfield>mask_closed</structfield>;</entry>
 
448
<entry> The mask for the above pixmap.
 
449
</entry>
 
450
</row>
 
451
 
 
452
<row>
 
453
<entry>#GdkPixmap *<structfield>pixmap_opened</structfield>;</entry>
 
454
<entry> The pixmap to be shown when the node is expanded.
 
455
</entry>
 
456
</row>
 
457
 
 
458
<row>
 
459
<entry>#GdkBitmap *<structfield>mask_opened</structfield>;</entry>
 
460
<entry> The mask for the above pixmap.
 
461
</entry>
 
462
</row>
 
463
 
 
464
<row>
 
465
<entry>#guint16 <structfield>level</structfield>;</entry>
 
466
<entry>The level of this node in the tree.
 
467
</entry>
 
468
</row>
 
469
 
 
470
 
 
471
<row>
 
472
<entry>#guint <structfield>is_leaf</structfield> : 1;</entry>
 
473
<entry>Whether this row is a leaf.
 
474
</entry>
 
475
</row>
 
476
 
 
477
<row>
 
478
<entry>#guint <structfield>expanded</structfield> : 1;</entry>
 
479
<entry>Whether the children of this row are visible.
 
480
</entry>
 
481
</row>
 
482
</tbody></tgroup></informaltable>
 
483
 
 
484
</para>
 
485
 
 
486
@row: 
 
487
@parent: 
 
488
@sibling: 
 
489
@children: 
 
490
@pixmap_closed: 
 
491
@mask_closed: 
 
492
@pixmap_opened: 
 
493
@mask_opened: 
 
494
@level: 
 
495
@is_leaf: 
 
496
@expanded: 
 
497
 
 
498
<!-- ##### STRUCT GtkCTreeNode ##### -->
 
499
<para>
 
500
This structure is opaque - you should use the
 
501
macros #GTK_CTREE_ROW, #GTK_CTREE_NODE_NEXT etc. as well
 
502
as the functions below to access it.
 
503
</para>
 
504
 
 
505
@list: 
 
506
 
 
507
<!-- ##### MACRO GTK_TYPE_CTREE_NODE ##### -->
 
508
<para>
 
509
 
 
510
</para>
 
511
 
 
512
 
 
513
 
 
514
<!-- ##### FUNCTION gtk_ctree_new_with_titles ##### -->
 
515
<para>
 
516
Create a new #GtkCTree widget with the given titles for the columns.
 
517
</para>
 
518
 
 
519
@columns: Number of columns.
 
520
@tree_column: Which column has the tree graphic; 0 = leftmost.
 
521
@titles: The titles for the columns.
 
522
@Returns: The #GtkCTree widget.
 
523
 
 
524
 
 
525
<!-- ##### FUNCTION gtk_ctree_new ##### -->
 
526
<para>
 
527
Create a new #GtkCTree widget.
 
528
</para>
 
529
 
 
530
@columns: Number of columns.
 
531
@tree_column: Which columns has the tree graphic.
 
532
@Returns: The new #GtkCTree widget.
 
533
 
 
534
 
 
535
<!-- ##### FUNCTION gtk_ctree_insert_node ##### -->
 
536
<para>
 
537
Insert a new node to the tree. The position is specified through
 
538
the parent-sibling notation, as explained in the introduction above.
 
539
</para>
 
540
 
 
541
@ctree: The #GtkCTree widget.
 
542
@parent: The parent node to be.
 
543
@sibling: The sibling node to be.
 
544
@text: The texts to be shown in each column.
 
545
@spacing: The extra space between the pixmap and the text.
 
546
@pixmap_closed: The pixmap to be used when the node is collapsed. Can be %NULL.
 
547
@mask_closed: The mask for the above pixmap. Can be %NULL.
 
548
@pixmap_opened: The pixmap to be used when the children are visible. Can be %NULL.
 
549
@mask_opened: The mask for the above pixmap. Can be %NULL.
 
550
@is_leaf: Whether this node is going to be a leaf.
 
551
@expanded: Whether this node should start out expanded or not.
 
552
@Returns: 
 
553
 
 
554
 
 
555
<!-- ##### FUNCTION gtk_ctree_remove_node ##### -->
 
556
<para>
 
557
Remove the node and all nodes underneath it from the tree.
 
558
</para>
 
559
 
 
560
@ctree: The widget.
 
561
@node: The node to be removed.
 
562
 
 
563
 
 
564
<!-- ##### FUNCTION gtk_ctree_insert_gnode ##### -->
 
565
<para>
 
566
FIXME
 
567
</para>
 
568
 
 
569
@ctree: 
 
570
@parent: 
 
571
@sibling: 
 
572
@gnode: 
 
573
@func: 
 
574
@data: 
 
575
@Returns: 
 
576
 
 
577
 
 
578
<!-- ##### FUNCTION gtk_ctree_export_to_gnode ##### -->
 
579
<para>
 
580
FIXME
 
581
</para>
 
582
 
 
583
@ctree: 
 
584
@parent: 
 
585
@sibling: 
 
586
@node: 
 
587
@func: 
 
588
@data: 
 
589
@Returns: 
 
590
 
 
591
 
 
592
<!-- ##### FUNCTION gtk_ctree_post_recursive ##### -->
 
593
<para>
 
594
Recursively apply a function to all nodes of the tree at or below a certain
 
595
node. 
 
596
The function is called for each node after it has been called
 
597
for that node's children.
 
598
</para>
 
599
 
 
600
@ctree: 
 
601
@node: The node where to start. %NULL means to start at the root.
 
602
@func: The function to apply to each node.
 
603
@data: A closure argument given to each invocation of the function.
 
604
 
 
605
 
 
606
<!-- ##### FUNCTION gtk_ctree_post_recursive_to_depth ##### -->
 
607
<para>
 
608
Recursively apply a function to nodes up to a certain depth.
 
609
The function is called for each node after it has been called
 
610
for that node's children.
 
611
</para>
 
612
 
 
613
@ctree: 
 
614
@node: The node where to start.
 
615
@depth: The maximum absolute depth for applying the function.  If depth is negative, this function just calls #gtk_ctree_post_recursive.
 
616
@func: The function to apply to each node.
 
617
@data: A closure argument given to each invocation of the function.
 
618
 
 
619
 
 
620
<!-- ##### FUNCTION gtk_ctree_pre_recursive ##### -->
 
621
<para>
 
622
Recursively apply a function to all nodes of the tree at or below a certain
 
623
node.
 
624
The function is called for each node after it has been called
 
625
for its parent.
 
626
</para>
 
627
 
 
628
@ctree: 
 
629
@node: The node where to start. %NULL means to start at the root.
 
630
@func: The function to apply to each node.
 
631
@data: A closure argument given to each invocation of the function.
 
632
 
 
633
 
 
634
<!-- ##### FUNCTION gtk_ctree_pre_recursive_to_depth ##### -->
 
635
<para>
 
636
Recursively apply a function to nodes up to a certain depth.
 
637
The function is called for each node after it has been called
 
638
for that node's children.
 
639
</para>
 
640
 
 
641
@ctree: 
 
642
@node: The node where to start.
 
643
@depth: The maximum absolute depth for applying the function.  If depth is negative, this function just calls #gtk_ctree_post_recursive.
 
644
@func: The function to apply to each node.
 
645
@data: A closure argument given to each invocation of the function.
 
646
 
 
647
 
 
648
<!-- ##### FUNCTION gtk_ctree_is_viewable ##### -->
 
649
<para>
 
650
This function checks whether the given node is viewable i.e. so that
 
651
all of its parent nodes are expanded.  This is different from being
 
652
actually visible: the node can be viewable but outside the scrolling
 
653
area of the window.
 
654
</para>
 
655
 
 
656
@ctree: 
 
657
@node: 
 
658
@Returns: Whether the node is viewable.
 
659
 
 
660
 
 
661
<!-- ##### FUNCTION gtk_ctree_last ##### -->
 
662
<para>
 
663
Returns the last child of the last child of the last child...
 
664
of the given node.
 
665
</para>
 
666
 
 
667
@ctree: 
 
668
@node: 
 
669
@Returns: 
 
670
 
 
671
 
 
672
<!-- ##### FUNCTION gtk_ctree_find_node_ptr ##### -->
 
673
<para>
 
674
Finds the node pointer given a #GtkCTreeRow structure.
 
675
</para>
 
676
 
 
677
@ctree: 
 
678
@ctree_row: 
 
679
@Returns: The node pointer.
 
680
 
 
681
 
 
682
<!-- ##### FUNCTION gtk_ctree_find ##### -->
 
683
<para>
 
684
 
 
685
</para>
 
686
 
 
687
@ctree: 
 
688
@node: The node to start searching from. May be %NULL.
 
689
@child: 
 
690
@Returns: True if @child is on some level a child (grandchild...) of the @node.
 
691
 
 
692
 
 
693
<!-- ##### FUNCTION gtk_ctree_is_ancestor ##### -->
 
694
<para>
 
695
 
 
696
</para>
 
697
 
 
698
@ctree: 
 
699
@node: 
 
700
@child: 
 
701
@Returns: True is @node is an ancestor of @child.
 
702
 
 
703
 
 
704
<!-- ##### FUNCTION gtk_ctree_find_by_row_data ##### -->
 
705
<para>
 
706
Finds a node in the tree under @node that has the given user data pointer.
 
707
</para>
 
708
 
 
709
@ctree: 
 
710
@node: 
 
711
@data: 
 
712
@Returns: The node, or %NULL if not found.
 
713
 
 
714
 
 
715
<!-- ##### FUNCTION gtk_ctree_find_all_by_row_data ##### -->
 
716
<para>
 
717
Finds all nodes in the tree under @node that have the given user data pointer.
 
718
</para>
 
719
 
 
720
@ctree: 
 
721
@node: 
 
722
@data: 
 
723
@Returns: A list of nodes that have the given data pointer.
 
724
 
 
725
 
 
726
<!-- ##### FUNCTION gtk_ctree_find_by_row_data_custom ##### -->
 
727
<para>
 
728
Find the first node under @node whose row data pointer fulfills 
 
729
a custom criterion.
 
730
</para>
 
731
 
 
732
@ctree: 
 
733
@node: The node where to start searching.
 
734
@data: User data for the criterion function.
 
735
@func: The criterion function.
 
736
@Returns: The first node found.
 
737
 
 
738
 
 
739
<!-- ##### FUNCTION gtk_ctree_find_all_by_row_data_custom ##### -->
 
740
<para>
 
741
Find all nodes under @node whose row data pointer fulfills 
 
742
a custom criterion.
 
743
 
 
744
</para>
 
745
 
 
746
@ctree: 
 
747
@node: The node where to start searching.
 
748
@data: User data for the criterion function.
 
749
@func: The criterion function.
 
750
@Returns: A list of all nodes found.
 
751
 
 
752
 
 
753
<!-- ##### FUNCTION gtk_ctree_is_hot_spot ##### -->
 
754
<para>
 
755
</para>
 
756
 
 
757
@ctree: 
 
758
@x: 
 
759
@y: 
 
760
@Returns: True if the given coordinates lie on an expander button.
 
761
 
 
762
 
 
763
<!-- ##### FUNCTION gtk_ctree_move ##### -->
 
764
<para>
 
765
Move a node in the tree to another location.
 
766
</para>
 
767
 
 
768
@ctree: 
 
769
@node: The node to be moved.
 
770
@new_parent: The new parent-to-be of the node.
 
771
@new_sibling: The new sibling-to-be of the node.
 
772
 
 
773
 
 
774
<!-- ##### FUNCTION gtk_ctree_expand ##### -->
 
775
<para>
 
776
Expand one node.
 
777
</para>
 
778
 
 
779
@ctree: 
 
780
@node: 
 
781
 
 
782
 
 
783
<!-- ##### FUNCTION gtk_ctree_expand_recursive ##### -->
 
784
<para>
 
785
Expand one node and all nodes underneath.
 
786
</para>
 
787
 
 
788
@ctree: 
 
789
@node: 
 
790
 
 
791
 
 
792
<!-- ##### FUNCTION gtk_ctree_expand_to_depth ##### -->
 
793
<para>
 
794
Expand a node and its children up to the depth given.
 
795
</para>
 
796
 
 
797
@ctree: 
 
798
@node: 
 
799
@depth: The (absolute) depth up to which to expand nodes.
 
800
 
 
801
 
 
802
<!-- ##### FUNCTION gtk_ctree_collapse ##### -->
 
803
<para>
 
804
Collapse one node.
 
805
</para>
 
806
 
 
807
@ctree: 
 
808
@node: 
 
809
 
 
810
 
 
811
<!-- ##### FUNCTION gtk_ctree_collapse_recursive ##### -->
 
812
<para>
 
813
Collapse one node and all its subnodes.
 
814
</para>
 
815
 
 
816
@ctree: 
 
817
@node: 
 
818
 
 
819
 
 
820
<!-- ##### FUNCTION gtk_ctree_collapse_to_depth ##### -->
 
821
<para>
 
822
Collapse a node and its children up to the depth given.
 
823
</para>
 
824
 
 
825
@ctree: 
 
826
@node: 
 
827
@depth: The (absolute) depth up to which to collapse nodes.
 
828
 
 
829
 
 
830
<!-- ##### FUNCTION gtk_ctree_toggle_expansion ##### -->
 
831
<para>
 
832
Toggle a node, i.e. if it is collapsed, expand it and vice versa.
 
833
</para>
 
834
 
 
835
@ctree: 
 
836
@node: 
 
837
 
 
838
 
 
839
<!-- ##### FUNCTION gtk_ctree_toggle_expansion_recursive ##### -->
 
840
<para>
 
841
Toggle the expansion of a node and all its children.
 
842
</para>
 
843
 
 
844
@ctree: 
 
845
@node: 
 
846
 
 
847
 
 
848
<!-- ##### FUNCTION gtk_ctree_select ##### -->
 
849
<para>
 
850
Cause the given node to be selected and emit the appropriate signal.
 
851
</para>
 
852
 
 
853
@ctree: 
 
854
@node: 
 
855
 
 
856
 
 
857
<!-- ##### FUNCTION gtk_ctree_select_recursive ##### -->
 
858
<para>
 
859
Cause the given node and its subnodes to be selected and emit the appropriate signal(s).
 
860
</para>
 
861
 
 
862
@ctree: 
 
863
@node: 
 
864
 
 
865
 
 
866
<!-- ##### FUNCTION gtk_ctree_unselect ##### -->
 
867
<para>
 
868
Unselect the given node and emit the appropriate signal.
 
869
</para>
 
870
 
 
871
@ctree: 
 
872
@node: 
 
873
 
 
874
 
 
875
<!-- ##### FUNCTION gtk_ctree_unselect_recursive ##### -->
 
876
<para>
 
877
Unselect the given node and its subnodes and emit the appropriate signal(s).
 
878
</para>
 
879
 
 
880
@ctree: 
 
881
@node: 
 
882
 
 
883
 
 
884
<!-- ##### FUNCTION gtk_ctree_real_select_recursive ##### -->
 
885
<para>
 
886
The function that implements both #gtk_ctree_select_recursive and
 
887
#gtk_ctree_unselect_recursive.
 
888
</para>
 
889
 
 
890
@ctree: 
 
891
@node: 
 
892
@state: True for selecting, false for unselecting.
 
893
 
 
894
 
 
895
<!-- ##### FUNCTION gtk_ctree_node_set_text ##### -->
 
896
<para>
 
897
Set the text in a node.
 
898
</para>
 
899
 
 
900
@ctree: 
 
901
@node: 
 
902
@column: The column whose text to change.
 
903
@text: The new text.
 
904
 
 
905
 
 
906
<!-- ##### FUNCTION gtk_ctree_node_set_pixmap ##### -->
 
907
<para>
 
908
FIXME
 
909
</para>
 
910
 
 
911
@ctree: 
 
912
@node: 
 
913
@column: 
 
914
@pixmap: 
 
915
@mask: 
 
916
 
 
917
 
 
918
<!-- ##### FUNCTION gtk_ctree_node_set_pixtext ##### -->
 
919
<para>
 
920
FIXME
 
921
</para>
 
922
 
 
923
@ctree: 
 
924
@node: 
 
925
@column: 
 
926
@text: 
 
927
@spacing: 
 
928
@pixmap: 
 
929
@mask: 
 
930
 
 
931
 
 
932
<!-- ##### FUNCTION gtk_ctree_set_node_info ##### -->
 
933
<para>
 
934
Change the information. Most parameters correspond 
 
935
to the parameters of #gtk_ctree_insert_node.
 
936
</para>
 
937
 
 
938
@ctree: 
 
939
@node: 
 
940
@text: The text to be in the tree column.
 
941
@spacing: 
 
942
@pixmap_closed: 
 
943
@mask_closed: 
 
944
@pixmap_opened: 
 
945
@mask_opened: 
 
946
@is_leaf: 
 
947
@expanded: 
 
948
 
 
949
 
 
950
<!-- ##### FUNCTION gtk_ctree_node_set_shift ##### -->
 
951
<para>
 
952
Shift the given cell the given amounts in pixels.
 
953
</para>
 
954
 
 
955
@ctree: 
 
956
@node: 
 
957
@column: 
 
958
@vertical: 
 
959
@horizontal: 
 
960
 
 
961
 
 
962
<!-- ##### FUNCTION gtk_ctree_node_set_selectable ##### -->
 
963
<para>
 
964
 
 
965
</para>
 
966
 
 
967
@ctree: 
 
968
@node: 
 
969
@selectable: Whether this node can be selected by the user.
 
970
 
 
971
 
 
972
<!-- ##### FUNCTION gtk_ctree_node_get_selectable ##### -->
 
973
<para>
 
974
 
 
975
</para>
 
976
 
 
977
@ctree: 
 
978
@node: 
 
979
@Returns: Whether this node can be selected by the user.
 
980
 
 
981
 
 
982
<!-- ##### FUNCTION gtk_ctree_node_get_cell_type ##### -->
 
983
<para>
 
984
 
 
985
</para>
 
986
 
 
987
@ctree: 
 
988
@node: 
 
989
@column: 
 
990
@Returns: The type of the given cell.
 
991
 
 
992
 
 
993
<!-- ##### FUNCTION gtk_ctree_node_get_text ##### -->
 
994
<para>
 
995
 
 
996
</para>
 
997
 
 
998
@ctree: 
 
999
@node: 
 
1000
@column: 
 
1001
@text: If nonnull, the pointer to the text string is assigned to *@text.
 
1002
@Returns: True if the given cell has text in it.
 
1003
 
 
1004
 
 
1005
<!-- ##### FUNCTION gtk_ctree_node_get_pixmap ##### -->
 
1006
<para>
 
1007
 
 
1008
</para>
 
1009
 
 
1010
@ctree: 
 
1011
@node: 
 
1012
@column: 
 
1013
@pixmap: If nonnull, the pointer to the pixmap is returned through this.
 
1014
@mask: If nonnull, the pointer to the mask is returned through this.
 
1015
@Returns: True if the given cell contains a pixmap.
 
1016
 
 
1017
 
 
1018
<!-- ##### FUNCTION gtk_ctree_node_get_pixtext ##### -->
 
1019
<para>
 
1020
Get the parameters of a cell containing both a pixmap and text.
 
1021
</para>
 
1022
 
 
1023
@ctree: 
 
1024
@node: 
 
1025
@column: 
 
1026
@text: 
 
1027
@spacing: 
 
1028
@pixmap: 
 
1029
@mask: 
 
1030
@Returns: 
 
1031
 
 
1032
 
 
1033
<!-- ##### FUNCTION gtk_ctree_get_node_info ##### -->
 
1034
<para>
 
1035
Get information corresponding to a node.
 
1036
Any of the return parameters can be null. 
 
1037
</para>
 
1038
 
 
1039
@ctree: 
 
1040
@node: 
 
1041
@text: 
 
1042
@spacing: 
 
1043
@pixmap_closed: 
 
1044
@mask_closed: 
 
1045
@pixmap_opened: 
 
1046
@mask_opened: 
 
1047
@is_leaf: 
 
1048
@expanded: 
 
1049
@Returns: 
 
1050
 
 
1051
 
 
1052
<!-- ##### FUNCTION gtk_ctree_node_set_row_style ##### -->
 
1053
<para>
 
1054
Set the style of a row.
 
1055
</para>
 
1056
 
 
1057
@ctree: 
 
1058
@node: 
 
1059
@style: 
 
1060
 
 
1061
 
 
1062
<!-- ##### FUNCTION gtk_ctree_node_get_row_style ##### -->
 
1063
<para>
 
1064
Get the style of a row.
 
1065
</para>
 
1066
 
 
1067
@ctree: 
 
1068
@node: 
 
1069
@Returns: 
 
1070
 
 
1071
 
 
1072
<!-- ##### FUNCTION gtk_ctree_node_set_cell_style ##### -->
 
1073
<para>
 
1074
Set the style of an individual cell.
 
1075
</para>
 
1076
 
 
1077
@ctree: 
 
1078
@node: 
 
1079
@column: 
 
1080
@style: 
 
1081
 
 
1082
 
 
1083
<!-- ##### FUNCTION gtk_ctree_node_get_cell_style ##### -->
 
1084
<para>
 
1085
Get the style of an individual cell.
 
1086
</para>
 
1087
 
 
1088
@ctree: 
 
1089
@node: 
 
1090
@column: 
 
1091
@Returns: 
 
1092
 
 
1093
 
 
1094
<!-- ##### FUNCTION gtk_ctree_node_set_foreground ##### -->
 
1095
<para>
 
1096
 
 
1097
</para>
 
1098
 
 
1099
@ctree: 
 
1100
@node: 
 
1101
@color: 
 
1102
 
 
1103
 
 
1104
<!-- ##### FUNCTION gtk_ctree_node_set_background ##### -->
 
1105
<para>
 
1106
 
 
1107
</para>
 
1108
 
 
1109
@ctree: 
 
1110
@node: 
 
1111
@color: 
 
1112
 
 
1113
 
 
1114
<!-- ##### FUNCTION gtk_ctree_node_set_row_data ##### -->
 
1115
<para>
 
1116
Set the custom data associated with a node.
 
1117
</para>
 
1118
 
 
1119
@ctree: 
 
1120
@node: 
 
1121
@data: 
 
1122
 
 
1123
 
 
1124
<!-- ##### FUNCTION gtk_ctree_node_set_row_data_full ##### -->
 
1125
<para>
 
1126
This is the full interface to setting row data, so that a destructor
 
1127
can be given for the data.
 
1128
</para>
 
1129
 
 
1130
@ctree: 
 
1131
@node: 
 
1132
@data: 
 
1133
@destroy: The routine to be called when @data is no longer needed.
 
1134
 
 
1135
 
 
1136
<!-- ##### FUNCTION gtk_ctree_node_get_row_data ##### -->
 
1137
<para>
 
1138
 
 
1139
</para>
 
1140
 
 
1141
@ctree: 
 
1142
@node: 
 
1143
@Returns: 
 
1144
 
 
1145
 
 
1146
<!-- ##### FUNCTION gtk_ctree_node_moveto ##### -->
 
1147
<para>
 
1148
This function makes the given column of the given node visible by
 
1149
scrolling.
 
1150
</para>
 
1151
 
 
1152
@ctree: 
 
1153
@node: The node to be made visible.
 
1154
@column: The column to be made visible.
 
1155
@row_align: Where in the window the row should appear.
 
1156
@col_align: Where in the window the column should appear.
 
1157
 
 
1158
 
 
1159
<!-- ##### FUNCTION gtk_ctree_node_is_visible ##### -->
 
1160
<para>
 
1161
 
 
1162
</para>
 
1163
 
 
1164
@ctree: 
 
1165
@node: 
 
1166
@Returns: True if the node is currently inside the bounds of the window.
 
1167
Note that this function can return true even if the node is not
 
1168
viewable, if the node's ancestor is visible.
 
1169
 
 
1170
 
 
1171
<!-- ##### FUNCTION gtk_ctree_set_indent ##### -->
 
1172
<para>
 
1173
 
 
1174
</para>
 
1175
 
 
1176
@ctree: 
 
1177
@indent: The number of pixels to shift the levels of the tree.
 
1178
 
 
1179
 
 
1180
<!-- ##### FUNCTION gtk_ctree_set_spacing ##### -->
 
1181
<para>
 
1182
The spacing between the tree graphic and the actual node content.
 
1183
</para>
 
1184
 
 
1185
@ctree: 
 
1186
@spacing: 
 
1187
 
 
1188
 
 
1189
<!-- ##### MACRO gtk_ctree_set_reorderable ##### -->
 
1190
<para>
 
1191
 
 
1192
</para>
 
1193
 
 
1194
@t: 
 
1195
@r: 
 
1196
 
 
1197
 
 
1198
<!-- ##### FUNCTION gtk_ctree_set_line_style ##### -->
 
1199
<para>
 
1200
 
 
1201
</para>
 
1202
 
 
1203
@ctree: 
 
1204
@line_style: 
 
1205
 
 
1206
 
 
1207
<!-- ##### FUNCTION gtk_ctree_set_expander_style ##### -->
 
1208
<para>
 
1209
 
 
1210
</para>
 
1211
 
 
1212
@ctree: 
 
1213
@expander_style: 
 
1214
 
 
1215
 
 
1216
<!-- ##### FUNCTION gtk_ctree_set_drag_compare_func ##### -->
 
1217
<para>
 
1218
FIXME
 
1219
</para>
 
1220
 
 
1221
@ctree: 
 
1222
@cmp_func: 
 
1223
 
 
1224
 
 
1225
<!-- ##### FUNCTION gtk_ctree_sort_node ##### -->
 
1226
<para>
 
1227
Sort the children of a node. See #GtkCList for how to set the sorting
 
1228
criteria etc.
 
1229
</para>
 
1230
 
 
1231
@ctree: 
 
1232
@node: 
 
1233
 
 
1234
 
 
1235
<!-- ##### FUNCTION gtk_ctree_sort_recursive ##### -->
 
1236
<para>
 
1237
Sort the descendants of a node. See #GtkCList for how to set the sorting
 
1238
criteria etc.
 
1239
</para>
 
1240
 
 
1241
@ctree: 
 
1242
@node: 
 
1243
 
 
1244
 
 
1245
<!-- ##### FUNCTION gtk_ctree_node_nth ##### -->
 
1246
<para>
 
1247
 
 
1248
</para>
 
1249
 
 
1250
@ctree: 
 
1251
@row: 
 
1252
@Returns: The node corresponding to the @row th row.
 
1253
 
 
1254
 
 
1255
<!-- ##### FUNCTION gtk_ctree_set_show_stub ##### -->
 
1256
<para>
 
1257
 
 
1258
</para>
 
1259
 
 
1260
@ctree: 
 
1261
@show_stub: 
 
1262
 
 
1263