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 <!-- ##### ENUM GtkTreeViewColumnSizing ##### -->
31 The sizing method the column uses to determine its width. Please note
32 that @GTK_TREE_VIEW_COLUMN_AUTOSIZE are inefficient for large views, and
33 can make columns appear choppy.
36 @GTK_TREE_VIEW_COLUMN_GROW_ONLY: Columns only get bigger in reaction to changes in the model
37 @GTK_TREE_VIEW_COLUMN_AUTOSIZE: Columns resize to be the optimal size everytime the model changes.
38 @GTK_TREE_VIEW_COLUMN_FIXED: Columns are a fixed numbers of pixels wide.
40 <!-- ##### USER_FUNCTION GtkTreeCellDataFunc ##### -->
42 A function to set the properties of a cell instead of just using the
43 straight mapping between the cell and the model. This is useful for
44 customizing the cell renderer. For example, a function might get an
45 integer from the @tree_model, and render it to the "text" attribute of
46 "cell" by converting it to its written equivilent. This is set by
47 calling gtk_tree_view_column_set_cell_data_func()
50 @tree_column: A #GtkTreeColumn
51 @cell: The #GtkCellRenderer that is being rendered by @tree_column
52 @tree_model: The #GtkTreeModel being rendered
53 @iter: A #GtkTreeIter of the current row rendered
57 <!-- ##### STRUCT GtkTreeViewColumn ##### -->
63 <!-- ##### SIGNAL GtkTreeViewColumn::clicked ##### -->
68 @treeviewcolumn: the object which received the signal.
70 <!-- ##### ARG GtkTreeViewColumn:alignment ##### -->
75 <!-- ##### ARG GtkTreeViewColumn:clickable ##### -->
80 <!-- ##### ARG GtkTreeViewColumn:expand ##### -->
85 <!-- ##### ARG GtkTreeViewColumn:fixed-width ##### -->
90 <!-- ##### ARG GtkTreeViewColumn:max-width ##### -->
95 <!-- ##### ARG GtkTreeViewColumn:min-width ##### -->
100 <!-- ##### ARG GtkTreeViewColumn:reorderable ##### -->
105 <!-- ##### ARG GtkTreeViewColumn:resizable ##### -->
110 <!-- ##### ARG GtkTreeViewColumn:sizing ##### -->
115 <!-- ##### ARG GtkTreeViewColumn:sort-column-id ##### -->
120 <!-- ##### ARG GtkTreeViewColumn:sort-indicator ##### -->
125 <!-- ##### ARG GtkTreeViewColumn:sort-order ##### -->
130 <!-- ##### ARG GtkTreeViewColumn:spacing ##### -->
135 <!-- ##### ARG GtkTreeViewColumn:title ##### -->
140 <!-- ##### ARG GtkTreeViewColumn:visible ##### -->
145 <!-- ##### ARG GtkTreeViewColumn:widget ##### -->
150 <!-- ##### ARG GtkTreeViewColumn:width ##### -->
155 <!-- ##### FUNCTION gtk_tree_view_column_new ##### -->
163 <!-- ##### FUNCTION gtk_tree_view_column_new_with_attributes ##### -->
174 <!-- ##### FUNCTION gtk_tree_view_column_pack_start ##### -->
184 <!-- ##### FUNCTION gtk_tree_view_column_pack_end ##### -->
194 <!-- ##### FUNCTION gtk_tree_view_column_clear ##### -->
202 <!-- ##### FUNCTION gtk_tree_view_column_add_attribute ##### -->
213 <!-- ##### FUNCTION gtk_tree_view_column_set_attributes ##### -->
223 <!-- ##### FUNCTION gtk_tree_view_column_set_cell_data_func ##### -->
235 <!-- ##### FUNCTION gtk_tree_view_column_clear_attributes ##### -->
244 <!-- ##### FUNCTION gtk_tree_view_column_set_spacing ##### -->
253 <!-- ##### FUNCTION gtk_tree_view_column_get_spacing ##### -->
262 <!-- ##### FUNCTION gtk_tree_view_column_set_visible ##### -->
271 <!-- ##### FUNCTION gtk_tree_view_column_get_visible ##### -->
280 <!-- ##### FUNCTION gtk_tree_view_column_set_resizable ##### -->
289 <!-- ##### FUNCTION gtk_tree_view_column_get_resizable ##### -->
298 <!-- ##### FUNCTION gtk_tree_view_column_set_sizing ##### -->
307 <!-- ##### FUNCTION gtk_tree_view_column_get_sizing ##### -->
316 <!-- ##### FUNCTION gtk_tree_view_column_get_width ##### -->
325 <!-- ##### FUNCTION gtk_tree_view_column_get_fixed_width ##### -->
334 <!-- ##### FUNCTION gtk_tree_view_column_set_fixed_width ##### -->
343 <!-- ##### FUNCTION gtk_tree_view_column_set_min_width ##### -->
352 <!-- ##### FUNCTION gtk_tree_view_column_get_min_width ##### -->
361 <!-- ##### FUNCTION gtk_tree_view_column_set_max_width ##### -->
370 <!-- ##### FUNCTION gtk_tree_view_column_get_max_width ##### -->
379 <!-- ##### FUNCTION gtk_tree_view_column_clicked ##### -->
387 <!-- ##### FUNCTION gtk_tree_view_column_set_title ##### -->
396 <!-- ##### FUNCTION gtk_tree_view_column_get_title ##### -->
405 <!-- ##### FUNCTION gtk_tree_view_column_set_expand ##### -->
414 <!-- ##### FUNCTION gtk_tree_view_column_get_expand ##### -->
423 <!-- ##### FUNCTION gtk_tree_view_column_set_clickable ##### -->
432 <!-- ##### FUNCTION gtk_tree_view_column_get_clickable ##### -->
441 <!-- ##### FUNCTION gtk_tree_view_column_set_widget ##### -->
450 <!-- ##### FUNCTION gtk_tree_view_column_get_widget ##### -->
459 <!-- ##### FUNCTION gtk_tree_view_column_set_alignment ##### -->
468 <!-- ##### FUNCTION gtk_tree_view_column_get_alignment ##### -->
477 <!-- ##### FUNCTION gtk_tree_view_column_set_reorderable ##### -->
486 <!-- ##### FUNCTION gtk_tree_view_column_get_reorderable ##### -->
495 <!-- ##### FUNCTION gtk_tree_view_column_set_sort_column_id ##### -->
504 <!-- ##### FUNCTION gtk_tree_view_column_get_sort_column_id ##### -->
513 <!-- ##### FUNCTION gtk_tree_view_column_set_sort_indicator ##### -->
522 <!-- ##### FUNCTION gtk_tree_view_column_get_sort_indicator ##### -->
531 <!-- ##### FUNCTION gtk_tree_view_column_set_sort_order ##### -->
540 <!-- ##### FUNCTION gtk_tree_view_column_get_sort_order ##### -->
549 <!-- ##### FUNCTION gtk_tree_view_column_cell_set_cell_data ##### -->
561 <!-- ##### FUNCTION gtk_tree_view_column_cell_get_size ##### -->
574 <!-- ##### FUNCTION gtk_tree_view_column_cell_get_position ##### -->
586 <!-- ##### FUNCTION gtk_tree_view_column_cell_is_visible ##### -->
595 <!-- ##### FUNCTION gtk_tree_view_column_focus_cell ##### -->
604 <!-- ##### FUNCTION gtk_tree_view_column_queue_resize ##### -->
612 <!-- ##### FUNCTION gtk_tree_view_column_get_tree_view ##### -->