It derives from <GObject>.
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
column-view-column:set-header-menu.
A sorter can be associated with a column using
column-view-column:set-sorter,
to let users influence sorting by clicking on the column header.
The <GtkColumnView> this column is a part of.
Its value is a <GtkColumnView>, or #f.
It is read only.
Column gets share of extra width allocated to the view.
Its value is a boolean.
Set it with (set! (column-view-column:expand self) value).
Factory for populating list items.
The factory must be for configuring
<GtkColumnViewCell> objects.
Its value is a <GtkListItemFactory>, or
#f.
Set it with (set! (column-view-column:factory self) value).
If not -1, this is the width that the column is allocated, regardless of the size of its content.
Its value is a 32-bit integer.
Set it with (set! (column-view-column:fixed-width self) value).
Menu model used to create the context menu for the column header.
Its value is a <GMenuModel>, or #f.
Set it with (set! (column-view-column:header-menu self) value).
An ID for the column.
GTK is not currently using the ID for anything, but it can be used by applications when saving column view configurations.
It is up to applications to ensure uniqueness of IDs.
Its value is a string, or #f.
Set it with (set! (column-view-column:id self) value).
Whether this column is resizable.
Its value is a boolean.
Set it with (set! (column-view-column:resizable self) value).
Sorter for sorting items according to this column.
Its value is a <GtkSorter>, or #f.
Set it with (set! (column-view-column:sorter self) value).
Title displayed in the header.
Its value is a string, or #f.
Set it with (set! (column-view-column:title self) value).
Whether this column is visible.
Its value is a boolean.
Set it with (set! (column-view-column:visible self) value).
Gets the column view that’s currently displaying this column.
If self has not been added to a column view yet, NULL is
returned.
Passed: a <GtkColumnViewColumn>.
a column
Returned: a <GtkColumnView>, or #f.
The column view displaying self.
Returns whether this column should expand.
Passed: a <GtkColumnViewColumn>.
a column
Returned: a boolean.
true if this column expands
Gets the factory that’s currently used to populate list items for this column.
Passed: a <GtkColumnViewColumn>.
a column
Returned: a <GtkListItemFactory>, or
#f.
The factory in use
Gets the fixed width of the column.
Passed: a <GtkColumnViewColumn>.
a column
Returned: a 32-bit integer.
the fixed with of the column
Gets the menu model that is used to create the context menu for the column header.
Passed: a <GtkColumnViewColumn>.
a column
Returned: a <GMenuModel>, or #f.
the <GMenuModel>
Returns the ID set with column-view-column:set-id.
Passed: a <GtkColumnViewColumn>.
a column
Returned: a string, or #f.
The column’s ID
Returns whether this column is resizable.
Passed: a <GtkColumnViewColumn>.
a column
Returned: a boolean.
true if this column is resizable
Returns the sorter that is associated with the column.
Passed: a <GtkColumnViewColumn>.
a column
Returned: a <GtkSorter>, or #f.
the <GtkSorter> of self
Returns the title set with column-view-column:set-title.
Passed: a <GtkColumnViewColumn>.
a column
Returned: a string, or #f.
The column’s title
Returns whether this column is visible.
Passed: a <GtkColumnViewColumn>.
a column
Returned: a boolean.
true if this column is visible
Creates a new <GtkColumnViewColumn> that
uses the given factory for mapping items to widgets.
You most likely want to call column-view:append-column next.
The function takes ownership of the argument, so you can write code like:
column = gtk_column_view_column_new (_("Name"),
gtk_builder_list_item_factory_new_from_resource ("/name.ui"));
Passed, or left out: a string, or #f.
Title to use for this column
Passed, or left out: a
<GtkListItemFactory>, or #f.
The factory to populate items with
Returned: a <GtkColumnViewColumn>.
a new <GtkColumnViewColumn> using the
given factory
Sets the column to take available extra space.
The extra space is shared equally amongst all columns that have are set to expand.
Passed: a <GtkColumnViewColumn>.
a column
Passed: a boolean.
whether this column should expand to fill available space
Sets the <GtkListItemFactory> to use for
populating list items for this column.
Passed: a <GtkColumnViewColumn>.
a column
Passed, or left out: a
<GtkListItemFactory>, or #f.
the factory to use
Sets the fixed width of the column.
If fixed-width is -1, the fixed width of the column is unset.
Setting a fixed width overrides the automatically calculated width. Interactive resizing also sets the “fixed-width” property.
Passed: a <GtkColumnViewColumn>.
a column
Passed: a 32-bit integer.
the new fixed width, or -1
Sets the menu model that is used to create the context menu for the column header.
Passed: a <GtkColumnViewColumn>.
a column
Passed, or left out: a <GMenuModel>, or
#f.
Sets the id of this column.
GTK makes no use of this, but applications can use it when storing column view configuration.
It is up to callers to ensure uniqueness of IDs.
Passed: a <GtkColumnViewColumn>.
a column
Passed, or left out: a string, or #f.
ID to use for this column
Sets whether this column should be resizable by dragging.
Passed: a <GtkColumnViewColumn>.
a column
Passed: a boolean.
whether this column should be resizable
Associates a sorter with the column.
If sorter is unset, the column will not let users change the sorting by clicking on its header.
This sorter can be made active by clicking on the column header, or by
calling column-view:sort-by-column.
See column-view:get-sorter for the
necessary steps for setting up customizable sorting for
<GtkColumnView>.
Passed: a <GtkColumnViewColumn>.
a column
Passed, or left out: a <GtkSorter>, or #f.
the <GtkSorter> to associate with column
Sets the title of this column.
The title is displayed in the header of a
<GtkColumnView> for this column and is
therefore user-facing text that should be translated.
Passed: a <GtkColumnViewColumn>.
a column
Passed, or left out: a string, or #f.
Title to use for this column
Sets whether this column should be visible in views.
Passed: a <GtkColumnViewColumn>.
a column
Passed: a boolean.
whether this column should be visible