ColumnViewColumn
Object Hierarchy:
Description:
[
CCode ( type_id =
"gtk_column_view_column_get_type ()" ) ]
public class ColumnViewColumn :
Object
Represents the columns in a `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 [method@Gtk.ColumnViewColumn.set_header_menu].
A sorter can be associated with a column using [method@Gtk.ColumnViewColumn.set_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 string id { get; set; }
An ID for the column.
- 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 unowned string? get_id ()
Returns the ID set with [method@Gtk.
- 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 ()
Returns the title set with [method@Gtk.
- 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)
Sets the fixed width of the column.
- 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_id (string? id)
Sets the id of this column.
- 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