ColumnViewColumn
Object Hierarchy:
Gtk.ColumnViewColumn
Gtk.ColumnViewColumn
Gtk.ColumnViewColumn
GLib.Object
GLib.Object
GLib.Object->Gtk.ColumnViewColumn
Description:
[ CCode ( type_id = "gtk_column_view_column_get_type ()" ) ]public class ColumnViewColumn : Object
`GtkColumnViewColumn` represents the columns being added to `GtkColumnView`.
The main ingredient for a `GtkColumnViewColumn` is the `GtkListItemFactory` that tells the columnview how to create cells for this column
from items in the model.
Columns have a title, and can optionally have a header menu set with [[email protected] _header_menu].
A sorter can be associated with a column using [[email protected] _sorter], to let users influence sorting by clicking on
the column header.
Content:
Properties:
public ColumnView column_view { get ; }
The `GtkColumnView` this column is a part of.
public bool expand { get ; set ; }
Column gets share of extra width allocated to the view.
public ListItemFactory factory { get ; set ; }
Factory for populating list items.
public int fixed_width { get ; set ; }
If not -1, this is the width that the column is allocated, regardless
of the size of its content.
public MenuModel header_menu { get ; set ; }
Menu model used to create the context menu for the column header.
public bool resizable { get ; set ; }
Whether this column is resizable.
public Sorter sorter { get ; set ; }
Sorter for sorting items according to this column.
public string title { get ; set ; }
Title displayed in the header.
public bool visible { get ; set ; }
Whether this column is visible.
Creation methods:
Methods:
public unowned ColumnView ? get_column_view ()
Gets the column view that's currently displaying this column.
public bool get_expand ()
Returns whether this column should expand.
public unowned ListItemFactory ? get_factory ()
Gets the factory that's currently used to populate list items for this
column.
public int get_fixed_width ()
Gets the fixed width of the column.
public unowned MenuModel ? get_header_menu ()
Gets the menu model that is used to create the context menu for the
column header.
public bool get_resizable ()
Returns whether this column is resizable.
public unowned Sorter ? get_sorter ()
Returns the sorter that is associated with the column.
public unowned string ? get_title ()
public bool get_visible ()
Returns whether this column is visible.
public void set_expand (bool expand)
Sets the column to take available extra space.
public void set_factory (ListItemFactory ? factory)
Sets the `GtkListItemFactory` to use for populating list items for
this column.
public void set_fixed_width (int fixed_width)
If fixed_width
is not -1, sets the fixed width of
column
; otherwise unsets it.
public void set_header_menu (MenuModel ? menu)
Sets the menu model that is used to create the context menu for the
column header.
public void set_resizable (bool resizable)
Sets whether this column should be resizable by dragging.
public void set_sorter (Sorter ? sorter)
Associates a sorter with the column.
public void set_title (string ? title)
Sets the title of this column.
public void set_visible (bool visible)
Sets whether this column should be visible in views.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref