]> Pileus Git - ~andy/gtk/blob - docs/reference/gtk/tmpl/gtkclist.sgml
=== Released 2.3.3 ===
[~andy/gtk] / docs / reference / gtk / tmpl / gtkclist.sgml
1 <!-- ##### SECTION Title ##### -->
2 GtkCList
3
4 <!-- ##### SECTION Short_Description ##### -->
5 A multi-columned scrolling list widget.
6
7 <!-- ##### SECTION Long_Description ##### -->
8 <para>
9 The #GtkCList widget is a very useful multi-columned scrolling list.  It can display
10 data in nicely aligned vertical columns, with titles at the top of the list.
11 </para>
12
13 <!-- ##### SECTION See_Also ##### -->
14 <para>
15
16 </para>
17
18 <!-- ##### STRUCT GtkCList ##### -->
19 <para>
20 This is the embodiment of the #GtkCList widget.  This structure contains
21 only private data, and should be accessed only via the CList API.
22 </para>
23
24
25 <!-- ##### SIGNAL GtkCList::abort-column-resize ##### -->
26 <para>
27 This signal is emitted when a column resize is aborted.
28 </para>
29
30 @clist: the object which received the signal.
31
32 <!-- ##### SIGNAL GtkCList::click-column ##### -->
33 <para>
34 This signal is emitted when a column title is clicked.
35 </para>
36
37 @clist: The object which received the signal.
38 @column: The number of the column.
39
40 <!-- ##### SIGNAL GtkCList::end-selection ##### -->
41 <para>
42 This signal is emitted when a selection ends in a 
43 multiple selection CList.
44 </para>
45
46 @clist: the object which received the signal.
47
48 <!-- ##### SIGNAL GtkCList::extend-selection ##### -->
49 <para>
50 This signal is emitted when the selection is extended.
51 </para>
52
53 @clist: the object which received the signal.
54 @scroll_type: A #GtkScrollType value of any scrolling operation the
55 occured during the selection.
56 @position: A value between 0.0 and 1.0.
57 @auto_start_selection: %TRUE or %FALSE.
58
59 <!-- ##### SIGNAL GtkCList::resize-column ##### -->
60 <para>
61 This signal is emitted when a column is resized.
62 </para>
63
64 @clist: The object which received the signal.
65 @column: The number of the column
66 @width: The new width of the column.
67
68 <!-- ##### SIGNAL GtkCList::row-move ##### -->
69 <para>
70 This signal is emitted when a row is moved.
71 </para>
72
73 @clist: The object which received the signal.
74 @arg1: The source position of the row.
75 @arg2: The destination position of the row.
76
77 <!-- ##### SIGNAL GtkCList::scroll-horizontal ##### -->
78 <para>
79 This signal is emitted when the CList is scrolled horizontally.
80 </para>
81
82 @clist: the object which received the signal.
83 @scroll_type: A #GtkScrollType value of how the scroll operation occured.
84 @position: a value between 0.0 and 1.0.
85
86 <!-- ##### SIGNAL GtkCList::scroll-vertical ##### -->
87 <para>
88 This signal is emitted when the CList is scrolled vertically.
89 </para>
90
91 @clist: the object which received the signal.
92 @scroll_type: A #GtkScrollType value of how the scroll operation occured.
93 @position: A value between 0.0 and 1.0.
94
95 <!-- ##### SIGNAL GtkCList::select-all ##### -->
96 <para>
97 This signal is emitted when all the rows are selected in a CList.
98 </para>
99
100 @clist: the object which received the signal.
101
102 <!-- ##### SIGNAL GtkCList::select-row ##### -->
103 <para>
104 This signal is emitted when the user selects a row in the list.  
105 It is emitted for every row that is selected in a multi-selection or
106 by calling gtk_clist_select_all().
107 </para>
108
109 @clist: The object which received the signal.
110 @row: The row selected.
111 @column: The column where the selection occured.
112 @event: A #GdkEvent structure for the selection.
113
114 <!-- ##### SIGNAL GtkCList::set-scroll-adjustments ##### -->
115 <para>
116
117 </para>
118
119 @clist: the object which received the signal.
120 @arg1: 
121 @arg2: 
122
123 <!-- ##### SIGNAL GtkCList::start-selection ##### -->
124 <para>
125 This signal is emitted when a drag-selection is started in 
126 a multiple-selection CList.
127 </para>
128
129 @clist: the object which received the signal.
130
131 <!-- ##### SIGNAL GtkCList::toggle-add-mode ##### -->
132 <para>
133 This signal is emitted when "add mode" is toggled.
134 </para>
135
136 @clist: the object which received the signal.
137
138 <!-- ##### SIGNAL GtkCList::toggle-focus-row ##### -->
139 <para>
140
141 </para>
142
143 @clist: The object which received the signal.
144
145 <!-- ##### SIGNAL GtkCList::undo-selection ##### -->
146 <para>
147 This signal is emitted when an undo selection occurs in the CList,
148 probably via calling gtk_clist_undo_selection().
149 </para>
150
151 @clist: the object which received the signal.
152
153 <!-- ##### SIGNAL GtkCList::unselect-all ##### -->
154 <para>
155 This signal is emitted when all rows are unselected in a CList.
156 </para>
157
158 @clist: the object which received the signal.
159
160 <!-- ##### SIGNAL GtkCList::unselect-row ##### -->
161 <para>
162 This signal is emitted when the user unselects a row in the list.  
163 It is emitted for every row that is unselected in a multi-selection or
164 by calling gtk_clist_unselect_all().  It is also emitted for the
165 previously selected row in a "single" or "browse" mode CList.
166 </para>
167
168 @clist: The object which received the signal.
169 @row: The selected row
170 @column: The column where the selection occured.
171 @event: 
172
173 <!-- ##### ARG GtkCList:n-columns ##### -->
174 <para>
175 An integer value for a column.
176 </para>
177
178 <!-- ##### ARG GtkCList:reorderable ##### -->
179 <para>
180 A boolean value for determining if the user can re-order the CList's
181 columns.
182 </para>
183
184 <!-- ##### ARG GtkCList:row-height ##### -->
185 <para>
186 An integer value representing the height of a row in pixels.
187 </para>
188
189 <!-- ##### ARG GtkCList:selection-mode ##### -->
190 <para>
191 Sets the type of selection mode for the CList.
192 </para>
193
194 <!-- ##### ARG GtkCList:shadow-type ##### -->
195 <para>
196 Sets the shadowing for the CList.
197 </para>
198
199 <!-- ##### ARG GtkCList:sort-type ##### -->
200 <para>
201
202 </para>
203
204 <!-- ##### ARG GtkCList:titles-active ##### -->
205 <para>
206 A boolean value for setting whether the column titles can be
207 clicked.
208 </para>
209
210 <!-- ##### ARG GtkCList:use-drag-icons ##### -->
211 <para>
212 A boolean value for setting whether to use icons during drag
213 operations.
214 </para>
215
216 <!-- ##### ENUM GtkCellType ##### -->
217 <para>
218 Identifies the type of element in the current cell of the CList.  Cells can
219 contain text, pixmaps, or both. Unfortunately support for %GTK_CELL_WIDGET
220 was never completed.
221 </para>
222
223 @GTK_CELL_EMPTY: 
224 @GTK_CELL_TEXT: 
225 @GTK_CELL_PIXMAP: 
226 @GTK_CELL_PIXTEXT: 
227 @GTK_CELL_WIDGET: 
228
229 <!-- ##### ENUM GtkButtonAction ##### -->
230 <para>
231 Values for specifying what mouse button events a CList will
232 react to.
233 </para>
234
235 @GTK_BUTTON_IGNORED: 
236 @GTK_BUTTON_SELECTS: 
237 @GTK_BUTTON_DRAGS: 
238 @GTK_BUTTON_EXPANDS: 
239
240 <!-- ##### MACRO GTK_CLIST_FLAGS ##### -->
241 <para>
242 Reads the current flags of the specified CList.
243 </para>
244
245 @clist: The #GtkCList widget from which to get the flags
246
247
248 <!-- ##### MACRO GTK_CLIST_SET_FLAG ##### -->
249 <para>
250 A macro to set a particular flag for the specified CList.
251 </para>
252
253 @clist: The #GtkCList widget to affect.
254 @flag: A single #GtkCList flag to set.  NOTE: Do not add the GTK_ prefix.
255
256
257 <!-- ##### MACRO GTK_CLIST_UNSET_FLAG ##### -->
258 <para>
259 A macro to clear a particular flag for the specified CList.
260 </para>
261
262 @clist: The #GtkCList widget to affect.
263 @flag: A single #GtkCList flag to clear.  NOTE: Do not add the GTK_ prefix.
264
265
266 <!-- ##### MACRO GTK_CLIST_IN_DRAG ##### -->
267 <para>
268 A macro to check whether the #GtkCList is in "drag mode."
269 </para>
270
271 @clist: The #GtkCList to check.
272
273
274 <!-- ##### MACRO GTK_CLIST_ROW_HEIGHT_SET ##### -->
275 <para>
276 A macro to check whether the #GtkCList's row height is set.
277 </para>
278
279 @clist: The #GtkCList to check.
280
281
282 <!-- ##### MACRO GTK_CLIST_SHOW_TITLES ##### -->
283 <para>
284 A macro to check whether the flag for showing the 
285 widget's column titles is set.
286 </para>
287
288 @clist: The #GtkCList widget to check.
289
290
291 <!-- ##### MACRO GTK_CLIST_ADD_MODE ##### -->
292 <para>
293 A macro to test whether the CList is in "add mode."
294 </para>
295
296 @clist: The #GtkCList widget to check.
297
298
299 <!-- ##### MACRO GTK_CLIST_AUTO_SORT ##### -->
300 <para>
301 A macro to test whether the CList has automatic sorting
302 switched on.
303 </para>
304
305 @clist: The #GtkCList widget to check.
306
307
308 <!-- ##### MACRO GTK_CLIST_AUTO_RESIZE_BLOCKED ##### -->
309 <para>
310 A macro to check if automatic resizing of columns is blocked.
311 </para>
312
313 @clist: The #GtkCList widget to check.
314
315
316 <!-- ##### MACRO GTK_CLIST_REORDERABLE ##### -->
317 <para>
318 A macro to test if the CList's columns are re-orderable
319 </para>
320
321 @clist: The #GtkCList widget to check.
322
323
324 <!-- ##### MACRO GTK_CLIST_USE_DRAG_ICONS ##### -->
325 <para>
326 A macro to check if the USE_DRAG_ICONS property is enabled.
327 </para>
328
329 @clist: The #GtkCList widget to check.
330
331
332 <!-- ##### MACRO GTK_CLIST_DRAW_DRAG_LINE ##### -->
333 <para>
334 A macro to check if the DRAW_DRAG_LINE property is enabled.
335 </para>
336
337 @clist: The #GtkCList widget to check.
338
339
340 <!-- ##### MACRO GTK_CLIST_DRAW_DRAG_RECT ##### -->
341 <para>
342 A macro to check if the DRAW_DRAG_RECT property is enabled.
343 </para>
344
345 @clist: The #GtkCList widget to check.
346
347
348 <!-- ##### MACRO GTK_CLIST_ROW ##### -->
349 <para>
350 A macro to cast a GList element to a CListRow pointer.
351 </para>
352
353 @_glist_: The GList element to convert.
354
355
356 <!-- ##### MACRO GTK_CELL_TEXT ##### -->
357 <para>
358 A macro to cast a generic #GtkCList cell item to a GtkCellText pointer.
359 </para>
360
361 @cell: The #GtkCList cell item to convert.
362
363
364 <!-- ##### MACRO GTK_CELL_PIXMAP ##### -->
365 <para>
366 A macro to cast a generic #GtkCList cell item to a GtkCellPixmap pointer.
367 </para>
368
369 @cell: The #GtkCList cell item to convert.
370
371
372 <!-- ##### MACRO GTK_CELL_PIXTEXT ##### -->
373 <para>
374 A macro to cast a generic #GtkCList cell item to a GtkCellPixText pointer.
375 </para>
376
377 @cell: The #GtkCList cell item to convert.
378
379
380 <!-- ##### MACRO GTK_CELL_WIDGET ##### -->
381 <para>
382 A macro to cast a generic #GtkCList cell item to a GtkCellWidget pointer.
383 </para>
384
385 @cell: The #GtkCList cell item to convert.
386
387
388 <!-- ##### USER_FUNCTION GtkCListCompareFunc ##### -->
389 <para>
390 Function prototype for the compare function callback.
391 </para>
392
393 @clist: The #GtkCList that is affected.
394 @ptr1: A #gconstpointer to the first node to compare.
395 @ptr2: A #gconstpointer to the second node to compare.
396 @Returns: 0 if the nodes are equal, less than 0 if the first node should
397 come before the second, and greater than 1 if the second come before the
398 first.
399
400
401 <!-- ##### STRUCT GtkCListColumn ##### -->
402 <para>
403 A structure that the #GtkCList widget uses to keep track of information
404 about its columns.
405 </para>
406
407 @title: 
408 @area: 
409 @button: 
410 @window: 
411 @width: 
412 @min_width: 
413 @max_width: 
414 @justification: 
415 @visible: 
416 @width_set: 
417 @resizeable: 
418 @auto_resize: 
419 @button_passive: 
420
421 <!-- ##### STRUCT GtkCListRow ##### -->
422 <para>
423 A structure that the #GtkCList widget uses to keep track of information
424 about its rows.
425 </para>
426
427 @cell: 
428 @state: 
429 @foreground: 
430 @background: 
431 @style: 
432 @data: 
433 @destroy: 
434 @fg_set: 
435 @bg_set: 
436 @selectable: 
437
438 <!-- ##### STRUCT GtkCellText ##### -->
439 <para>
440 A structure that the #GtkCList widget uses to keep track of #GtkCList cells
441 that contain text.
442 </para>
443
444 @type: 
445 @vertical: 
446 @horizontal: 
447 @style: 
448 @text: 
449
450 <!-- ##### STRUCT GtkCellPixmap ##### -->
451 <para>
452 A structure that the #GtkCList widget uses to keep track of #GtkCList cells
453 that contain a GdkPixmap.
454 </para>
455
456 @type: 
457 @vertical: 
458 @horizontal: 
459 @style: 
460 @pixmap: 
461 @mask: 
462
463 <!-- ##### STRUCT GtkCellPixText ##### -->
464 <para>
465 A structure that the #GtkCList widget uses to keep track of #GtkCList cells
466 that contain a combination of text and a GdkPixmap.
467 </para>
468
469 @type: 
470 @vertical: 
471 @horizontal: 
472 @style: 
473 @text: 
474 @spacing: 
475 @pixmap: 
476 @mask: 
477
478 <!-- ##### STRUCT GtkCellWidget ##### -->
479 <para>
480 A structure that the #GtkCList widget uses to keep track of #GtkCList cells
481 that contain another widget.
482 </para>
483
484 @type: 
485 @vertical: 
486 @horizontal: 
487 @style: 
488 @widget: 
489
490 <!-- ##### STRUCT GtkCell ##### -->
491 <para>
492 A generic structure that the #GtkCList widget uses to keep track of the
493 contents of each of its cells.
494 </para>
495
496 @type: 
497 @vertical: 
498 @horizontal: 
499 @style: 
500 @widget: 
501
502 <!-- ##### STRUCT GtkCListCellInfo ##### -->
503 <para>
504 A simple structure that the #GtkCList widget uses to keep track
505 of the location of a cell.
506 </para>
507
508 @row: 
509 @column: 
510
511 <!-- ##### STRUCT GtkCListDestInfo ##### -->
512 <para>
513 A simple structure that the #GtkCList widget uses to track 
514 a cell for a drag operation.
515 </para>
516
517 @cell: 
518 @insert_pos: 
519
520 <!-- ##### ENUM GtkCListDragPos ##### -->
521 <para>
522 An enumeration for drag operations.
523 </para>
524
525 @GTK_CLIST_DRAG_NONE: 
526 @GTK_CLIST_DRAG_BEFORE: 
527 @GTK_CLIST_DRAG_INTO: 
528 @GTK_CLIST_DRAG_AFTER: 
529
530 <!-- ##### FUNCTION gtk_clist_new ##### -->
531 <para>
532 Creates a new #GtkCList widget for use.
533 </para>
534
535 @columns: The number of columns the #GtkCList should have.
536 @Returns: A pointer to a new GtkCList object.
537
538
539 <!-- ##### FUNCTION gtk_clist_new_with_titles ##### -->
540 <para>
541 Creates a new #GtkCList widget with column titles for use.
542 </para>
543
544 @columns: The number of columns the #GtkCList should have.
545 @titles: A string array of titles for the widget.  There should be
546 enough strings in the array for the specified number of columns.
547 @Returns: A pointer to a new GtkCList object.
548
549
550 <!-- ##### FUNCTION gtk_clist_set_shadow_type ##### -->
551 <para>
552 Sets the shadow type for the specified CList.  Changing this value
553 will cause the #GtkCList to update its visuals.
554 </para>
555
556 @clist: The #GtkCList to affect.
557 @type: The GtkShadowType desired.
558
559
560 <!-- ##### FUNCTION gtk_clist_set_selection_mode ##### -->
561 <para>
562 Sets the selection mode for the specified CList.  This allows you to
563 set whether only one or more than one item can be selected at a time
564 in the widget.  Note that setting the widget's selection mode to one
565 of GTK_SELECTION_BROWSE or GTK_SELECTION_SINGLE will cause all the
566 items in the #GtkCList to become deselected.
567 </para>
568
569 @clist: The #GtkCList to affect.
570 @mode: The GtkSelectionMode type to set for this CList.
571
572
573 <!-- ##### FUNCTION gtk_clist_freeze ##### -->
574 <para>
575 Causes the #GtkCList to stop updating its visuals until a matching call to
576 gtk_clist_thaw() is made.  This function is useful if a lot of changes
577 will be made to the widget that may cause a lot of visual updating to
578 occur.  Note that calls to gtk_clist_freeze() can be nested.  
579 </para>
580
581 @clist: The #GtkCList to freeze.
582
583
584 <!-- ##### FUNCTION gtk_clist_thaw ##### -->
585 <para>
586 Causes the specified #GtkCList to allow visual updates.
587 </para>
588
589 @clist: The #GtkCList to thaw.
590
591
592 <!-- ##### FUNCTION gtk_clist_column_titles_show ##### -->
593 <para>
594 This function causes the #GtkCList to show its column titles, if
595 they are not already showing.
596 </para>
597
598 @clist: The #GtkCList to affect.
599
600
601 <!-- ##### FUNCTION gtk_clist_column_titles_hide ##### -->
602 <para>
603 Causes the #GtkCList to hide its column titles, if they are currently
604 showing.
605 </para>
606
607 @clist: The #GtkCList to affect.
608
609
610 <!-- ##### FUNCTION gtk_clist_column_title_active ##### -->
611 <para>
612 Sets the specified column in the #GtkCList to become selectable.  You can
613 then respond to events from the user clicking on a title button, and take
614 appropriate action.
615 </para>
616
617 @clist: The #GtkCList to affect.
618 @column: The column to make active, counting from 0.
619
620
621 <!-- ##### FUNCTION gtk_clist_column_title_passive ##### -->
622 <para>
623 Causes the specified column title button to become passive, i.e., does
624 not respond to events, such as the user clicking on it.
625 </para>
626
627 @clist: The #GtkCList to affect.
628 @column: The column to make passive, counting from 0.
629
630
631 <!-- ##### FUNCTION gtk_clist_column_titles_active ##### -->
632 <para>
633 Causes all column title buttons to become active.  This is the same
634 as calling gtk_clist_column_title_active() for each column.
635 </para>
636
637 @clist: The #GtkCList to affect.
638
639
640 <!-- ##### FUNCTION gtk_clist_column_titles_passive ##### -->
641 <para>
642 Causes all column title buttons to become passive.  This is the same
643 as calling gtk_clist_column_title_passive() for each column.
644 </para>
645
646 @clist: The #GtkCList to affect.
647
648
649 <!-- ##### FUNCTION gtk_clist_set_column_title ##### -->
650 <para>
651 Sets the title for the specified column.
652 </para>
653
654 @clist: The #GtkCList to affect.
655 @column: The column whose title should be changed.
656 @title: A string to be the column's title.
657
658
659 <!-- ##### FUNCTION gtk_clist_set_column_widget ##### -->
660 <para>
661 Sets a widget to be used as the specified column's title.  This
662 can be used to place a pixmap or something else as the column
663 title, instead of the standard text.
664 </para>
665
666 @clist: The #GtkCList to affect.
667 @column: The column whose title should be a widget.
668 @widget: A pointer to a previously create widget.
669
670
671 <!-- ##### FUNCTION gtk_clist_set_column_justification ##### -->
672 <para>
673 Sets the justification to be used for all text in the specified
674 column.
675 </para>
676
677 @clist: The #GtkCList to affect.
678 @column: The column which should be affected.
679 @justification: A GtkJustification value for the column.
680
681
682 <!-- ##### FUNCTION gtk_clist_set_column_visibility ##### -->
683 <para>
684 Allows you to set whether a specified column in the #GtkCList should
685 be hidden or shown.  Note that at least one column must always be
686 showing, so attempting to hide the last visible column will be
687 ignored.
688 </para>
689
690 @clist: The #GtkCList to affect.
691 @column: The column to set visibility.
692 @visible: %TRUE or %FALSE.
693
694
695 <!-- ##### FUNCTION gtk_clist_set_column_resizeable ##### -->
696 <para>
697 Lets you specify whether a specified column should be resizeable
698 by the user.  Note that turning on resizeability for the column will
699 automatically shut off auto-resizing, but turning off resizeability
700 will NOT turn on auto-resizing.  This must be done manually via a
701 call to gtk_clist_set_column_auto_resize().
702 </para>
703
704 @clist: The #GtkCList to affect.
705 @column: The column on which to set resizeability.
706 @resizeable: %TRUE or %FALSE.
707
708
709 <!-- ##### FUNCTION gtk_clist_set_column_auto_resize ##### -->
710 <para>
711 Lets you specify whether a column should be automatically resized
712 by the widget when data is added or removed.  Enabling auto-resize
713 on a column explicity disallows user-resizing of the column.
714 </para>
715
716 @clist: The #GtkCList to affect.
717 @column: The column on which to set auto-resizing.
718 @auto_resize: %TRUE or %FALSE.
719
720
721 <!-- ##### FUNCTION gtk_clist_optimal_column_width ##### -->
722 <para>
723 Gets the required width in pixels that is needed to show
724 everything in the specified column.
725 </para>
726
727 @clist: The #GtkCList to check.
728 @column: The column to check.
729 @Returns: The required width in pixels for the column.
730
731
732 <!-- ##### FUNCTION gtk_clist_set_column_width ##### -->
733 <para>
734 Causes the column specified for the #GtkCList to be set to
735 a specified width.
736 </para>
737
738 @clist: The #GtkCList to affect.
739 @column: The column to set the width.
740 @width: The width, in pixels.
741
742
743 <!-- ##### FUNCTION gtk_clist_set_column_min_width ##### -->
744 <para>
745 Causes the column specified to have a minimum width, preventing
746 the user from resizing it smaller than that specified.
747 </para>
748
749 @clist: The #GtkCList to affect.
750 @column: The column to set the minimum width.
751 @min_width: The width, in pixels.
752
753
754 <!-- ##### FUNCTION gtk_clist_set_column_max_width ##### -->
755 <para>
756 Causes the column specified to have a maximum width, preventing
757 the user from resizing it larger than that specified.
758 </para>
759
760 @clist: The #GtkCList to affect.
761 @column: The column to set the maximum width.
762 @max_width: The width, in pixels.
763
764
765 <!-- ##### FUNCTION gtk_clist_set_row_height ##### -->
766 <para>
767 Causes the #GtkCList to have a specified height for its 
768 rows.  Setting the row height to 0 allows the #GtkCList to adjust
769 automatically to data in the row.
770 </para>
771
772 @clist: The #GtkCList to affect.
773 @height: The height, in pixels.
774
775
776 <!-- ##### FUNCTION gtk_clist_moveto ##### -->
777 <para>
778 Tells the CList widget to visually move to the specified 
779 row and column.
780 </para>
781
782 @clist: The #GtkCList to affect.
783 @row: The row to which to move.
784 @column: The column to which to move.
785 @row_align: A value between 0 and 1 that describes the positioning of 
786 the row in relation to the viewable area of the CList's contents.
787 @col_align: A value between 0 and 1 that describes the positioning of 
788 the column in relation to the viewable area of the CList's contents.
789
790
791 <!-- ##### FUNCTION gtk_clist_row_is_visible ##### -->
792 <para>
793 Checks how the specified row is visible.
794 </para>
795
796 @clist: The #GtkCList to affect.
797 @row: The row to query.
798 @Returns: A #GtkVisibility value that tells you how the row is visible.
799
800
801 <!-- ##### FUNCTION gtk_clist_get_cell_type ##### -->
802 <para>
803 Checks the type of cell at the location specified.
804 </para>
805
806 @clist: The #GtkCList to affect.
807 @row: The row of the cell.
808 @column: The column of the cell.
809 @Returns: A #GtkCellType value describing the cell.
810
811
812 <!-- ##### FUNCTION gtk_clist_set_text ##### -->
813 <para>
814 Sets the displayed text in the specified cell.
815 </para>
816
817 @clist: The #GtkCList to affect.
818 @row: The row of the cell.
819 @column: The column of the cell.
820 @text: The text to set in the cell.
821
822
823 <!-- ##### FUNCTION gtk_clist_get_text ##### -->
824 <para>
825 Gets the text for the specified cell.
826 </para>
827
828 @clist: The #GtkCList to affect.
829 @row: The row to query.
830 @column: The column to query.
831 @text: A pointer to a pointer to store the text.
832 @Returns: 1 if the cell's text could be retrieved, 0 otherwise.
833
834
835 <!-- ##### FUNCTION gtk_clist_set_pixmap ##### -->
836 <para>
837 Sets a pixmap for the specified cell.
838 </para>
839
840 @clist: The #GtkCList to affect.
841 @row: The row of the cell.
842 @column: The column of the cell.
843 @pixmap: A pointer to a #GdkPixmap to place in the cell.
844 @mask: A pointer to a #GdkBitmap mask for the cell.
845
846
847 <!-- ##### FUNCTION gtk_clist_get_pixmap ##### -->
848 <para>
849 Gets the pixmap and bitmap mask of the specified cell.  The returned mask value can be NULL.
850 </para>
851
852 @clist: The #GtkCList to affect.
853 @row: The row of the cell.
854 @column: The column of the cell.
855 @pixmap: A pointer to a pointer to store the cell's #GdkPixmap.
856 @mask: A pointer to a pointer to store the cell's #GdkBitmap mask.
857 @Returns: 1 if the cell's pixmap could be retrieved, 0 otherwise.
858
859
860 <!-- ##### FUNCTION gtk_clist_set_pixtext ##### -->
861 <para>
862 Sets text and a pixmap/bitmap on the specified cell.
863 </para>
864
865 @clist: The #GtkCList to affect.
866 @row: The row of the cell.
867 @column: The column of the cell.
868 @text: The text to set in the cell.
869 @spacing: The spacing between the cell's text and pixmap.
870 @pixmap: A pointer to a #GdkPixmap for the cell.
871 @mask: A pointer to a #GdkBitmap mask for the cell.
872
873
874 <!-- ##### FUNCTION gtk_clist_get_pixtext ##### -->
875 <para>
876 Gets the text, pixmap and bitmap mask for the specified cell.
877 </para>
878
879 @clist: The #GtkCList to affect.
880 @row: The row to query.
881 @column: The column to query.
882 @text: A pointer to a pointer to store the text.
883 @spacing: A pointer to a #guint8 to store the spacing.
884 @pixmap: A pointer to a #GdkPixmap pointer to store the cell's pixmap.
885 @mask: A pointer to a #GdkBitmap pointer to store the cell's bitmap mask.
886 @Returns: 1 if the retrieval was successful, 0 otherwise.
887
888
889 <!-- ##### FUNCTION gtk_clist_set_foreground ##### -->
890 <para>
891 Sets the foreground color for the specified row.
892 </para>
893
894 @clist: The #GtkCList to affect.
895 @row: The row to affect.
896 @color: A pointer to a #GdkColor structure.
897
898
899 <!-- ##### FUNCTION gtk_clist_set_background ##### -->
900 <para>
901 Sets the background color for the specified row.
902 </para>
903
904 @clist: The #GtkCList to affect.
905 @row: The row to affect.
906 @color: A pointer to a #GdkColor structure.
907
908
909 <!-- ##### FUNCTION gtk_clist_set_cell_style ##### -->
910 <para>
911 Sets the style for the specified cell.
912 </para>
913
914 @clist: The #GtkCList to affect.
915 @row: The row of the cell.
916 @column: The column of the cell.
917 @style: A pointer to a #GtkStyle structure.
918
919
920 <!-- ##### FUNCTION gtk_clist_get_cell_style ##### -->
921 <para>
922 Gets the current style of the specified cell.
923 </para>
924
925 @clist: The #GtkCList to affect.
926 @row: The row of the cell.
927 @column: The column of the cell.
928 @Returns: A #GtkStyle object.
929
930
931 <!-- ##### FUNCTION gtk_clist_set_row_style ##### -->
932 <para>
933 Sets the style for all cells in the specified row.
934 </para>
935
936 @clist: The #GtkCList to affect.
937 @row: The row to affect.
938 @style: A pointer to a #GtkStyle to set.
939
940
941 <!-- ##### FUNCTION gtk_clist_get_row_style ##### -->
942 <para>
943 Gets the style set for the specified row.
944 </para>
945
946 @clist: The #GtkCList to affect.
947 @row: The row to query.
948 @Returns: The #GtkStyle of the row.
949
950
951 <!-- ##### FUNCTION gtk_clist_set_shift ##### -->
952 <para>
953 Sets the vertical and horizontal shift of the specified cell.
954 </para>
955
956 @clist: The #GtkCList to affect.
957 @row: The row of the cell.
958 @column: The column of the cell.
959 @vertical: The value to set for the vertical shift.
960 @horizontal: The value to set for the vertical shift.
961
962
963 <!-- ##### FUNCTION gtk_clist_set_selectable ##### -->
964 <para>
965 Sets whether the specified row is selectable or not.
966 </para>
967
968 @clist: The #GtkCList to affect.
969 @row: The row to affect.
970 @selectable: %TRUE or %FALSE.
971
972
973 <!-- ##### FUNCTION gtk_clist_get_selectable ##### -->
974 <para>
975 Gets whether the specified row is selectable or not.
976 </para>
977
978 @clist: The #GtkCList to affect.
979 @row: The row to query.
980 @Returns: A #gboolean value.
981
982
983 <!-- ##### FUNCTION gtk_clist_prepend ##### -->
984 <para>
985 Adds a row to the CList at the top.
986 </para>
987
988 @clist: The #GtkCList to affect.
989 @text: An array of strings to add.
990 @Returns: The number of the row added.
991
992
993 <!-- ##### FUNCTION gtk_clist_append ##### -->
994 <para>
995 Adds a row to the CList at the bottom.
996 </para>
997
998 @clist: The #GtkCList to affect.
999 @text: An array of strings to add.
1000 @Returns: The number of the row added.
1001
1002
1003 <!-- ##### FUNCTION gtk_clist_insert ##### -->
1004 <para>
1005 Adds a row of text to the CList at the specified position.
1006 </para>
1007
1008 @clist: The #GtkCList to affect.
1009 @row: The row where the text should be inserted.
1010 @text: An array of string to add.
1011 @Returns: The number of the row added.
1012
1013
1014 <!-- ##### FUNCTION gtk_clist_remove ##### -->
1015 <para>
1016 Removes the specified row from the CList.
1017 </para>
1018
1019 @clist: The #GtkCList to affect.
1020 @row: The row to remove.
1021
1022
1023 <!-- ##### FUNCTION gtk_clist_set_row_data ##### -->
1024 <para>
1025 Sets data for the specified row.  This is the same as calling gtk_clist_set_row_data_full(clist, row, data, NULL).
1026 </para>
1027
1028 @clist: The #GtkCList to affect.
1029 @row: The row to affect.
1030 @data: The data to set for the row.
1031
1032
1033 <!-- ##### FUNCTION gtk_clist_set_row_data_full ##### -->
1034 <para>
1035 Sets the data for specified row, with a callback when the row is destroyed.
1036 </para>
1037
1038 @clist: The #GtkCList to affect.
1039 @row: The row to affect.
1040 @data: The data to set for the row.
1041 @destroy: A #GtkDestroyNotify function to be called when the row is destroyed.
1042
1043
1044 <!-- ##### FUNCTION gtk_clist_get_row_data ##### -->
1045 <para>
1046 Gets the currently set data for the specified row.
1047 </para>
1048
1049 @clist: The #GtkCList to affect.
1050 @row: The row to query.
1051 @Returns: The data set for the row.
1052
1053
1054 <!-- ##### FUNCTION gtk_clist_find_row_from_data ##### -->
1055 <para>
1056 Searches the CList for the row with the specified data.
1057 </para>
1058
1059 @clist: The #GtkCList to search.
1060 @data: The data to search for a match.
1061 @Returns: The number of the matching row, or -1 if no match could be found.
1062
1063
1064 <!-- ##### FUNCTION gtk_clist_select_row ##### -->
1065 <para>
1066 Selects the specified row.  Causes the "select-row" signal to be emitted for the specified row and column.
1067 </para>
1068
1069 @clist: The #GtkCList to affect.
1070 @row: The row to select.
1071 @column: The column to select.
1072
1073
1074 <!-- ##### FUNCTION gtk_clist_unselect_row ##### -->
1075 <para>
1076 Unselects the specified row.  Causes the "unselect-row" signal to be emitted for the specified row and column.
1077 </para>
1078
1079 @clist: The #GtkCList to affect.
1080 @row: The row to select.
1081 @column: The column to select.
1082
1083
1084 <!-- ##### FUNCTION gtk_clist_undo_selection ##### -->
1085 <para>
1086 Undoes the last selection for an "extended selection mode" CList.
1087 </para>
1088
1089 @clist: The #GtkCList to affect.
1090
1091
1092 <!-- ##### FUNCTION gtk_clist_clear ##### -->
1093 <para>
1094 Removes all the CList's rows.
1095 </para>
1096
1097 @clist: The #GtkCList to affect.
1098
1099
1100 <!-- ##### FUNCTION gtk_clist_get_selection_info ##### -->
1101 <para>
1102 Gets the row and column at the specified pixel position in the CList.
1103 </para>
1104
1105 @clist: The #GtkCList to affect.
1106 @x: The horizontal pixel position to check.
1107 @y: The vertical pixel position to check..
1108 @row: Pointer to a #gint to store the row value.
1109 @column: Pointer to a #gint to store the column value.
1110 @Returns: 1 if row/column is returned and in range, 0 otherwise.
1111
1112
1113 <!-- ##### FUNCTION gtk_clist_select_all ##### -->
1114 <para>
1115 Selects all rows in the CList.  This function has no affect for a
1116 CList in "single" or "browse" selection mode.
1117 </para>
1118
1119 @clist: The #GtkCList to affect.
1120
1121
1122 <!-- ##### FUNCTION gtk_clist_unselect_all ##### -->
1123 <para>
1124 Unselects all rows in the CList.
1125 </para>
1126
1127 @clist: The #GtkCList to affect.
1128
1129
1130 <!-- ##### FUNCTION gtk_clist_swap_rows ##### -->
1131 <para>
1132 Swaps the two specified rows with each other.
1133 </para>
1134
1135 @clist: The #GtkCList to affect.
1136 @row1: Number of the first row.
1137 @row2: Number of the second row.
1138
1139
1140 <!-- ##### FUNCTION gtk_clist_set_compare_func ##### -->
1141 <para>
1142 Sets the compare function of the #GtkClist to @cmp_func. If @cmp_func is NULL,
1143 then the default compare function is used. The default compare function sorts
1144 ascending or with the type set by gtk_clist_set_sort_type() by the column set
1145 by gtk_clist_set_sort_column().
1146 </para>
1147
1148 @clist: The #GtkCList to affect.
1149 @cmp_func: The #GtkCompareFunction to use.
1150
1151
1152 <!-- ##### FUNCTION gtk_clist_set_sort_column ##### -->
1153 <para>
1154 Sets the sort column of the clist. The sort column is used by the
1155 default compare function to determine which column to sort by. 
1156 </para>
1157
1158 @clist: The #GtkCList to affect.
1159 @column: The column to sort by
1160
1161
1162 <!-- ##### FUNCTION gtk_clist_set_sort_type ##### -->
1163 <para>
1164 Sets the sort type of the #GtkClist. This is either GTK_SORT_ASCENDING for
1165 ascening sort or GTK_SORT_DESCENDING for descending sort.
1166 </para>
1167
1168 @clist: The #GtkCList to affect.
1169 @sort_type: the #GtkSortType to use
1170
1171
1172 <!-- ##### FUNCTION gtk_clist_sort ##### -->
1173 <para>
1174 Sorts the #GtkClist according to the current compare function, which
1175 can be set with the gtk_clist_set_compare_func() function.
1176 </para>
1177
1178 @clist: The #GtkCList to sort.
1179
1180
1181 <!-- ##### FUNCTION gtk_clist_set_auto_sort ##### -->
1182 <para>
1183 Turns on or off auto sort of the #GtkCList. If auto sort is on, then the CList will be resorted when a row is inserted into the CList.
1184 </para>
1185
1186 @clist: The #GtkCList to affect.
1187 @auto_sort: whether auto sort should be on or off
1188
1189
1190 <!-- ##### FUNCTION gtk_clist_columns_autosize ##### -->
1191 <para>
1192 Auto-sizes all columns in the CList and returns the total width of the CList.
1193 </para>
1194
1195 @clist: The #GtkCList to affect.
1196 @Returns: The total width of the CList.
1197
1198
1199 <!-- ##### FUNCTION gtk_clist_get_column_title ##### -->
1200 <para>
1201 Gets the current title of the specified column
1202 </para>
1203
1204 @clist: The #GtkCList to affect.
1205 @column: The column to query.
1206 @Returns: The title of the column.
1207
1208
1209 <!-- ##### FUNCTION gtk_clist_get_column_widget ##### -->
1210 <para>
1211 Gets the widget in the column header for the specified column.
1212 </para>
1213
1214 @clist: The #GtkCList to affect.
1215 @column: The column to query.
1216 @Returns: Pointer to a #GtkWidget for the column header.
1217
1218
1219 <!-- ##### FUNCTION gtk_clist_get_hadjustment ##### -->
1220 <para>
1221 Gets the #GtkAdjustment currently being used for the horizontal
1222 aspect.
1223 </para>
1224
1225 @clist: The #GtkCList to check.
1226 @Returns: A #GtkAdjustment object, or NULL if none is currently
1227 being used.
1228
1229
1230 <!-- ##### FUNCTION gtk_clist_get_vadjustment ##### -->
1231 <para>
1232 Gets the #GtkAdjustment currently being used for the vertical
1233 aspect.
1234 </para>
1235
1236 @clist: The #GtkCList to check.
1237 @Returns: A #GtkAdjustment object, or NULL if none is currently
1238 being used.
1239
1240
1241 <!-- ##### FUNCTION gtk_clist_row_move ##### -->
1242 <para>
1243 Allows you to move a row from one position to another in the
1244 list.
1245 </para>
1246
1247 @clist: The #GtkCList to affect.
1248 @source_row: The original position of the row to move.
1249 @dest_row: The position to which the row should be moved.
1250
1251
1252 <!-- ##### FUNCTION gtk_clist_set_button_actions ##### -->
1253 <para>
1254 Sets the action(s) that the specified mouse button will have
1255 on the CList.
1256 </para>
1257
1258 @clist: The #GtkCList to affect.
1259 @button: The mouse button to set. The values here, unlike in the
1260          rest of GTK+ start from 0. For instance, the right mouse
1261          button, which is 3 elsewhere, should be given as 2 here.
1262 @button_actions: A logically OR'd value of #GtkButtonAction values 
1263 for the button.
1264
1265
1266 <!-- ##### FUNCTION gtk_clist_set_hadjustment ##### -->
1267 <para>
1268 Allows you to set the #GtkAdjustment to be used for the horizontal
1269 aspect of the #GtkCList widget.
1270 </para>
1271
1272 @clist: The #GtkCList to affect.
1273 @adjustment: A pointer to a #GtkAdjustment widget, or NULL.
1274
1275
1276 <!-- ##### FUNCTION gtk_clist_set_reorderable ##### -->
1277 <para>
1278 Sets whether the CList's rows are re-orderable using drag-and-drop.
1279 </para>
1280
1281 @clist: The #GtkCList to affect.
1282 @reorderable: %TRUE or %FALSE.
1283
1284
1285 <!-- ##### FUNCTION gtk_clist_set_use_drag_icons ##### -->
1286 <para>
1287 Determines whether the #GtkClist should use icons when
1288 doing drag-and-drop operations.
1289 </para>
1290
1291 @clist: The #GtkCList to affect.
1292 @use_icons: %TRUE or %FALSE.
1293
1294
1295 <!-- ##### FUNCTION gtk_clist_set_vadjustment ##### -->
1296 <para>
1297 Allows you to set the #GtkAdjustment to be used for the vertical
1298 aspect of the #GtkCList widget.
1299 </para>
1300
1301 @clist: The #GtkCList to affect.
1302 @adjustment: A pointer to a #GtkAdjustment widget, or NULL.
1303
1304