1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 A visible column in a GtkTreeView widget
7 <!-- ##### SECTION Long_Description ##### -->
9 The GtkTreeViewColumn object represents a visible column in a #GtkTreeView widget.
10 It allows to set properties of the column header, and functions as a holding pen for
11 the cell renderers which determine how the data in the column is displayed.
15 Please refer to the <link linkend="TreeWidget">tree widget conceptual overview</link>
16 for an overview of all the objects and data types related to the tree widget and how
20 <!-- ##### SECTION See_Also ##### -->
22 #GtkTreeView, #GtkTreeSelection, #GtkTreeDnd, #GtkTreeMode, #GtkTreeSortable, #GtkTreeModelSort, #GtkListStore, #GtkTreeStore, #GtkCellRenderer, #GtkCellEditable, #GtkCellRendererPixbuf, #GtkCellRendererText, #GtkCellRendererToggle
26 <!-- ##### SECTION Stability_Level ##### -->
29 <!-- ##### SECTION Image ##### -->
32 <!-- ##### ENUM GtkTreeViewColumnSizing ##### -->
34 The sizing method the column uses to determine its width. Please note
35 that @GTK_TREE_VIEW_COLUMN_AUTOSIZE are inefficient for large views, and
36 can make columns appear choppy.
39 @GTK_TREE_VIEW_COLUMN_GROW_ONLY: Columns only get bigger in reaction to changes in the model
40 @GTK_TREE_VIEW_COLUMN_AUTOSIZE: Columns resize to be the optimal size everytime the model changes.
41 @GTK_TREE_VIEW_COLUMN_FIXED: Columns are a fixed numbers of pixels wide.
43 <!-- ##### USER_FUNCTION GtkTreeCellDataFunc ##### -->
45 A function to set the properties of a cell instead of just using the
46 straight mapping between the cell and the model. This is useful for
47 customizing the cell renderer. For example, a function might get an
48 integer from the @tree_model, and render it to the "text" attribute of
49 "cell" by converting it to its written equivilent. This is set by
50 calling gtk_tree_view_column_set_cell_data_func()
53 @tree_column: A #GtkTreeColumn
54 @cell: The #GtkCellRenderer that is being rendered by @tree_column
55 @tree_model: The #GtkTreeModel being rendered
56 @iter: A #GtkTreeIter of the current row rendered
60 <!-- ##### STRUCT GtkTreeViewColumn ##### -->
66 <!-- ##### SIGNAL GtkTreeViewColumn::clicked ##### -->
71 @treeviewcolumn: the object which received the signal.
73 <!-- ##### ARG GtkTreeViewColumn:alignment ##### -->
78 <!-- ##### ARG GtkTreeViewColumn:clickable ##### -->
83 <!-- ##### ARG GtkTreeViewColumn:expand ##### -->
88 <!-- ##### ARG GtkTreeViewColumn:fixed-width ##### -->
93 <!-- ##### ARG GtkTreeViewColumn:max-width ##### -->
98 <!-- ##### ARG GtkTreeViewColumn:min-width ##### -->
103 <!-- ##### ARG GtkTreeViewColumn:reorderable ##### -->
108 <!-- ##### ARG GtkTreeViewColumn:resizable ##### -->
113 <!-- ##### ARG GtkTreeViewColumn:sizing ##### -->
118 <!-- ##### ARG GtkTreeViewColumn:sort-column-id ##### -->
123 <!-- ##### ARG GtkTreeViewColumn:sort-indicator ##### -->
128 <!-- ##### ARG GtkTreeViewColumn:sort-order ##### -->
133 <!-- ##### ARG GtkTreeViewColumn:spacing ##### -->
138 <!-- ##### ARG GtkTreeViewColumn:title ##### -->
143 <!-- ##### ARG GtkTreeViewColumn:visible ##### -->
148 <!-- ##### ARG GtkTreeViewColumn:widget ##### -->
153 <!-- ##### ARG GtkTreeViewColumn:width ##### -->
158 <!-- ##### FUNCTION gtk_tree_view_column_new ##### -->
167 <!-- ##### FUNCTION gtk_tree_view_column_new_with_attributes ##### -->
178 <!-- ##### FUNCTION gtk_tree_view_column_pack_start ##### -->
188 <!-- ##### FUNCTION gtk_tree_view_column_pack_end ##### -->
198 <!-- ##### FUNCTION gtk_tree_view_column_clear ##### -->
206 <!-- ##### FUNCTION gtk_tree_view_column_add_attribute ##### -->
217 <!-- ##### FUNCTION gtk_tree_view_column_set_attributes ##### -->
227 <!-- ##### FUNCTION gtk_tree_view_column_set_cell_data_func ##### -->
239 <!-- ##### FUNCTION gtk_tree_view_column_clear_attributes ##### -->
248 <!-- ##### FUNCTION gtk_tree_view_column_set_spacing ##### -->
257 <!-- ##### FUNCTION gtk_tree_view_column_get_spacing ##### -->
266 <!-- ##### FUNCTION gtk_tree_view_column_set_visible ##### -->
275 <!-- ##### FUNCTION gtk_tree_view_column_get_visible ##### -->
284 <!-- ##### FUNCTION gtk_tree_view_column_set_resizable ##### -->
293 <!-- ##### FUNCTION gtk_tree_view_column_get_resizable ##### -->
302 <!-- ##### FUNCTION gtk_tree_view_column_set_sizing ##### -->
311 <!-- ##### FUNCTION gtk_tree_view_column_get_sizing ##### -->
320 <!-- ##### FUNCTION gtk_tree_view_column_get_width ##### -->
329 <!-- ##### FUNCTION gtk_tree_view_column_get_fixed_width ##### -->
338 <!-- ##### FUNCTION gtk_tree_view_column_set_fixed_width ##### -->
347 <!-- ##### FUNCTION gtk_tree_view_column_set_min_width ##### -->
356 <!-- ##### FUNCTION gtk_tree_view_column_get_min_width ##### -->
365 <!-- ##### FUNCTION gtk_tree_view_column_set_max_width ##### -->
374 <!-- ##### FUNCTION gtk_tree_view_column_get_max_width ##### -->
383 <!-- ##### FUNCTION gtk_tree_view_column_clicked ##### -->
391 <!-- ##### FUNCTION gtk_tree_view_column_set_title ##### -->
400 <!-- ##### FUNCTION gtk_tree_view_column_get_title ##### -->
409 <!-- ##### FUNCTION gtk_tree_view_column_set_expand ##### -->
418 <!-- ##### FUNCTION gtk_tree_view_column_get_expand ##### -->
427 <!-- ##### FUNCTION gtk_tree_view_column_set_clickable ##### -->
436 <!-- ##### FUNCTION gtk_tree_view_column_get_clickable ##### -->
445 <!-- ##### FUNCTION gtk_tree_view_column_set_widget ##### -->
454 <!-- ##### FUNCTION gtk_tree_view_column_get_widget ##### -->
463 <!-- ##### FUNCTION gtk_tree_view_column_set_alignment ##### -->
472 <!-- ##### FUNCTION gtk_tree_view_column_get_alignment ##### -->
481 <!-- ##### FUNCTION gtk_tree_view_column_set_reorderable ##### -->
490 <!-- ##### FUNCTION gtk_tree_view_column_get_reorderable ##### -->
499 <!-- ##### FUNCTION gtk_tree_view_column_set_sort_column_id ##### -->
508 <!-- ##### FUNCTION gtk_tree_view_column_get_sort_column_id ##### -->
517 <!-- ##### FUNCTION gtk_tree_view_column_set_sort_indicator ##### -->
526 <!-- ##### FUNCTION gtk_tree_view_column_get_sort_indicator ##### -->
535 <!-- ##### FUNCTION gtk_tree_view_column_set_sort_order ##### -->
544 <!-- ##### FUNCTION gtk_tree_view_column_get_sort_order ##### -->
553 <!-- ##### FUNCTION gtk_tree_view_column_cell_set_cell_data ##### -->
565 <!-- ##### FUNCTION gtk_tree_view_column_cell_get_size ##### -->
578 <!-- ##### FUNCTION gtk_tree_view_column_cell_get_position ##### -->
590 <!-- ##### FUNCTION gtk_tree_view_column_cell_is_visible ##### -->
599 <!-- ##### FUNCTION gtk_tree_view_column_focus_cell ##### -->
608 <!-- ##### FUNCTION gtk_tree_view_column_queue_resize ##### -->
616 <!-- ##### FUNCTION gtk_tree_view_column_get_tree_view ##### -->