Class

GtkColumnViewColumn

Description [src]

final class Gtk.ColumnViewColumn : GObject.Object {
  /* No available fields */
}

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 gtk_column_view_column_set_header_menu().

A sorter can be associated with a column using gtk_column_view_column_set_sorter(), to let users influence sorting by clicking on the column header.

Hierarchy

hierarchy this GtkColumnViewColumn ancestor_0 GObject ancestor_0--this

Ancestors

  • GObject

Constructors

gtk_column_view_column_new

Creates a new GtkColumnViewColumn that uses the given factory for mapping items to widgets.

Instance methods

gtk_column_view_column_get_column_view

Gets the column view that’s currently displaying this column.

gtk_column_view_column_get_expand

Returns whether this column should expand.

gtk_column_view_column_get_factory

Gets the factory that’s currently used to populate list items for this column.

gtk_column_view_column_get_fixed_width

Gets the fixed width of the column.

gtk_column_view_column_get_header_menu

Gets the menu model that is used to create the context menu for the column header.

gtk_column_view_column_get_resizable

Returns whether this column is resizable.

gtk_column_view_column_get_sorter

Returns the sorter that is associated with the column.

gtk_column_view_column_get_title

Returns the title set with gtk_column_view_column_set_title().

gtk_column_view_column_get_visible

Returns whether this column is visible.

gtk_column_view_column_set_expand

Sets the column to take available extra space.

gtk_column_view_column_set_factory

Sets the GtkListItemFactory to use for populating list items for this column.

gtk_column_view_column_set_fixed_width

If fixed_width is not -1, sets the fixed width of column; otherwise unsets it.

gtk_column_view_column_set_header_menu

Sets the menu model that is used to create the context menu for the column header.

gtk_column_view_column_set_resizable

Sets whether this column should be resizable by dragging.

gtk_column_view_column_set_sorter

Associates a sorter with the column.

gtk_column_view_column_set_title

Sets the title of this column.

gtk_column_view_column_set_visible

Sets whether this column should be visible in views.

Properties

Gtk.ColumnViewColumn:column-view

The GtkColumnView this column is a part of.

Gtk.ColumnViewColumn:expand

Column gets share of extra width allocated to the view.

Gtk.ColumnViewColumn:factory

Factory for populating list items.

Gtk.ColumnViewColumn:fixed-width

If not -1, this is the width that the column is allocated, regardless of the size of its content.

Gtk.ColumnViewColumn:header-menu

Menu model used to create the context menu for the column header.

Gtk.ColumnViewColumn:resizable

Whether this column is resizable.

Gtk.ColumnViewColumn:sorter

Sorter for sorting items according to this column.

Gtk.ColumnViewColumn:title

Title displayed in the header.

Gtk.ColumnViewColumn:visible

Whether this column is visible.

Class structure

struct GtkColumnViewColumnClass {
  /* no available fields */
}