TreeViewColumn
A visible column in a class@Gtk.TreeView widget
The GtkTreeViewColumn
object represents a visible column in a GtkTreeView
widget. It allows to set properties of the column header, and functions as a holding pen for the cell renderers which determine how the data in the column is displayed.
Please refer to the section-tree-widget.html for an overview of all the objects and data types related to the tree widget and how they work together, and to the class@Gtk.TreeView documentation for specifics about the CSS node structure for treeviews and their headers.
Skipped during bindings generation
parameter
x_offset
: x_offset: Out parameter is not supportedparameter
x_offset
: x_offset: Out parameter is not supportedmethod
set_attributes
: Varargs parameter is not supportedmethod
cell-area
: Property has no getter nor setterconstructor
new_with_attributes
: Varargs parameter is not supported
Constructors
Properties
Logical sort column ID this column sorts on when selected for sorting. Setting the sort column ID makes the column header clickable. Set to -1 to make the column unsortable.
Functions
Adds an attribute mapping to the list in @tree_column.
Returns true if any of the cells packed into the @tree_column are visible. For this to be meaningful, you must first initialize the cells with gtk_tree_view_column_cell_set_cell_data()
Sets the cell renderer based on the @tree_model and @iter. That is, for every attribute mapping in @tree_column, it will get a value from the set column on the @iter, and use that value to set the attribute on the cell renderer. This is used primarily by the GtkTreeView
.
Clears all existing attributes previously set with gtk_tree_view_column_set_attributes().
Emitted when the column's header has been clicked.
Sets the current keyboard focus to be at @cell, if the column contains 2 or more editable and activatable cells.
Gets the ID of the @buildable object.
Returns the GtkTreeView
wherein @tree_column has been inserted. If @column is currently not inserted in any tree view, null is returned.
Adds the @cell to end of the column. If @expand is false, then the @cell is allocated no more space than it needs. Any unused space is divided evenly between cells for which @expand is true.
Packs the @cell into the beginning of the column. If @expand is false, then the @cell is allocated no more space than it needs. Any unused space is divided evenly between cells for which @expand is true.
Flags the column, and the cell renderers added to this column, to have their sizes renegotiated.
Re-inserts @cell at @position.
Sets the GtkCellLayout
DataFunc to use for @cell_layout.
Sets the GtkTreeCellDataFunc
to use for the column.