Package: gtk

Class gtk:tree-view-column

Superclasses

gobject:initially-unowned, gtk:buildable, gtk:cell-layout, gobject:object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

alignment
The alignment property of type :float (Read / Write)
The alignment of the tree view column header text or widget, 0.0 for left, 0.5 for center, and 1.0 for right alignment.
Allowed values: [0,1]
Default value: 0
cell-area
The cell-area property of type gtk:cell-area (Read / Write / Construct)
The cell area used to layout cell renderers for this tree view column. If no cell area is specified when creating the tree view column a horizontally oriented gtk:cell-area-box object will be used.
clickable
The clickable property of type :boolean (Read / Write)
Whether the tree view column header can be clicked.
Default value: false
expand
The expand property of type :boolean (Read / Write)
The tree view column gets share of extra width allocated to the widget.
Default value: false
fixed-width
The fixed-width property of type :int (Read / Write)
The current fixed width of the tree view column.
Allowed values: >= 1
Default value: 1
max-width
The max-width property of type :int (Read / Write)
The maximum allowed width of the tree view column.
Allowed values: >= -1
Default value: -1
min-width
The min-width property of type :int (Read / Write )
The minimum allowed width of the tree view column.
Allowed values: >= -1
Default value: -1
reorderable
The reorderable property of type :boolean (Read / Write)
Whether the tree view column can be reordered around the headers.
Default value: false
resizable
The resizable property of type :boolean (Read / Write)
Whether the column is user-resizable.
Default value: false
sizing
The sizing property of type gtk:tree-view-column-sizing (Read / Write)
The resize mode of the tree view column.
Default value: :grow-only
sort-column-id
The sort-column-id property of type :int (Read / Write)
The logical sort column ID this tree view column sorts on when selected for sorting. Setting the sort column ID makes the tree view column header clickable. Set to -1 to make the column unsortable.
Allowed values: >= -1
Default value: -1
sort-indicator
The sort-indicator property of type :boolean (Read / Write)
Whether to show a sort indicator.
Default value: false
sort-order
The sort-order property of type gtk:sort-type (Read / Write)
The sort direction the sort indicator should indicate.
Default value: :ascending
spacing
The spacing property of type :int (Read / Write)
The space which is inserted between cell renderers.
Allowed values: >= 0
Default value: 0
title
The title property of type :string (Read / Write)
The title to appear in the tree view column header.
Default value: ""
visible
The visible property of type :boolean (Read / Write)
Whether to display the tree view column.
Default value: true
widget
The widget property of type gtk:widget (Read / Write)
The widget to put in the tree view column header button instead of column title.
width
The width property of type :int (Read)
The current width of the tree view column.
Allowed values: >= 0
Default value: 0
x-offset
The x-offset property of type :int (Read)
The current x position of the tree view column.
Default value: 0

Details

The gtk:tree-view-column object represents a visible column in a gtk:tree-view widget. It allows to set properties of the tree view column header, and functions as a holding pen for the cell renderers which determine how the data in the tree view column is displayed.

Please refer to the tree view widget conceptual overview for an overview of all the objects and data types related to the tree view and how they work together.

Warning

The gtk:tree-view-column implementation is deprecated since 4.10. Please do not use it in newly written code.

Signal Details

The "clicked" signal
lambda (column)    :run-last      
column
The gtk:tree-view-column object which emitted the signal.
Emitted when the header of the column has been clicked.
 

Returned by

Slot Access Functions

Inherited Slot Access Functions

See also

2024-2-19