### Class

# Gtk ColumnViewColumn

#### Description [src]

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

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 `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.

#### 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_id

Returns the ID set with `gtk_column_view_column_set_id()`.

since: 4.10

###### 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

Sets the fixed width of the column.

###### 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_id

Sets the id of this column.

since: 4.10

###### 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.

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### 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:id

An ID for the column.

since: 4.10

###### 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.

#### Signals

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

#### Class structure

    struct GtkColumnViewColumnClass {
      /* no available fields */
    }

No description available.