GtkTreeViewColumn
A visible column in a GtkTreeView.
Object Hierarchy
Implemented Interfaces
Description
Provides a column in a tree view widget. It uses a GtkCellRenderer to display the value of a given column for each row. Columns can be sorted, moved and hidden.
Constructors
GtkTreeViewColumn ([string title [, GtkCellRenderer cell_renderer [, string attribute [, int column]]]]);-- Creates a new column object.
Methods
cell_get_position() Â Returns horizontal position and size of a cell in the column. cell_get_size() Â Returns the size and offset of the cell. cell_is_visible() Â If any of the cells in the column is visible. cell_set_cell_data() Â Sets some cell data like model, iter, expander and expanded. clicked() Â Emits the "clicked" signal on the column. focus_cell() Â Sets the current keyboard focus to be at the given cell. get_alignment() Â Returns the current x alignment of the column. get_cell_renderers() Â Returns an arry of all the cell renderers in the column. get_clickable() Â Returns if the user can click on the header for the column. get_expand() Â Return if the column expands to take any available space. get_fixed_width() Â Gets the fixed width of the column. get_max_width() Â Returns the maximum width in pixels. get_min_width() Â Returns the minimum width in pixels. get_reorderable() Â If the column can be reordered by the user. get_resizable() Â If the column can be resized by the user. get_sizing() Â Returns the current sizing policy. get_sort_column_id() Â Gets the column id that the model sorts on. get_sort_indicator() Â If the sort indicator is visible. get_sort_order() Â Returns the sort indicator direction. get_spacing() Â Returns the number of pixels between cell renderers. get_title() Â Returns the title of the widget. get_visible() Â If the column is visible. get_widget() Â Returns the widget in the column header. get_width() Â Returns the current size in pixels. set_alignment() Â Sets the alignment of the title. set_clickable() Â Sets the header to be active. set_expand() Â Sets the column to take available extra space. set_fixed_width() Â Sets the size of the column in pixels. set_max_width() Â Sets the maximum width. set_min_width() Â Sets the minimum width. set_reorderable() Â Set if the column can be moved around. set_resizable() Â Set if the column can be resized. set_sizing() Â Sets the growth behavior. set_sort_column_id() Â Set the logical column that this column sorts. set_sort_indicator() Â Sets an arrow in the header indicating the column is sorted. set_sort_order() Â Changes the appearance of the sort indicator. set_spacing() Â Sets the number of pixels to place between cell renderers. set_title() Â Sets the title of the column. set_visible() Â Sets the visibility of the column. set_widget() Â Sets the widget in the header.
Properties
Use get_property and set_property methods to access these.
alignment: Â X Alignment of the column header text or widget. clickable: Â Whether the header can be clicked. expand: Â Column gets share of extra width allocated to the widget. fixed-width: Â Current fixed width of the column. max-width: Â Maximum allowed width of the column. min-width: Â Minimum allowed width of the column. reorderable: Â Whether the column can be reordered around the headers. resizable: Â Column is user-resizable. sizing: Â Resize mode of the column. sort-indicator: Â Whether to show a sort indicator. sort-order: Â Sort direction the sort indicator should indicate. spacing: Â Space which is inserted between cells. title: Â Title to appear in column header. visible: Â Whether to display the column. widget: Â Widget to put in column header button instead of column title. width: Â Current width of the column.
Signals
"clicked" Â The column header has been clicked.