gtk.column_view_column

Module for [ColumnViewColumn] class

Types 3

gtk.column_view_column.ColumnViewColumn represents the columns being added to a gtk.column_view.ColumnView.

The main ingredient for a gtk.column_view_column.ColumnViewColumn is the gtk.list_item_factory.ListItemFactory 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.ColumnViewColumn.setHeaderMenu.

A sorter can be associated with a column using gtk.column_view_column.ColumnViewColumn.setSorter, to let users influence sorting by clicking on the column header.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
ColumnViewColumn self() nothrowReturns `this`, for use in `with` statements.
ColumnViewColumnGidBuilder builder() static nothrowGet builder for [gtk.column_view_column.ColumnViewColumn] Returns: New builder object
gtk.column_view.ColumnView columnView() @property nothrowGet `columnView` property. Returns: The [gtk.column_view.ColumnView] this column is a part of.
bool expand() @property nothrowGet `expand` property. Returns: Column gets share of extra width allocated to the view.
void expand(bool propval) @property nothrowSet `expand` property. Params: propval = Column gets share of extra width allocated to the view.
gtk.list_item_factory.ListItemFactory factory() @property nothrowGet `factory` property. Returns: Factory for populating list items.
void factory(gtk.list_item_factory.ListItemFactory propval) @property nothrowSet `factory` property. Params: propval = Factory for populating list items.
int fixedWidth() @property nothrowGet `fixedWidth` property. Returns: If not -1, this is the width that the column is allocated, regardless of the size of its content.
void fixedWidth(int propval) @property nothrowSet `fixedWidth` property. Params: propval = If not -1, this is the width that the column is allocated, regardless of the size of its content.
gio.menu_model.MenuModel headerMenu() @property nothrowGet `headerMenu` property. Returns: Menu model used to create the context menu for the column header.
void headerMenu(gio.menu_model.MenuModel propval) @property nothrowSet `headerMenu` property. Params: propval = Menu model used to create the context menu for the column header.
string id() @property nothrowGet `id` property. Returns: An ID for the column.
void id(string propval) @property nothrowSet `id` property. Params: propval = An ID for the column.
bool resizable() @property nothrowGet `resizable` property. Returns: Whether this column is resizable.
void resizable(bool propval) @property nothrowSet `resizable` property. Params: propval = Whether this column is resizable.
gtk.sorter.Sorter sorter() @property nothrowGet `sorter` property. Returns: Sorter for sorting items according to this column.
void sorter(gtk.sorter.Sorter propval) @property nothrowSet `sorter` property. Params: propval = Sorter for sorting items according to this column.
string title() @property nothrowGet `title` property. Returns: Title displayed in the header.
void title(string propval) @property nothrowSet `title` property. Params: propval = Title displayed in the header.
bool visible() @property nothrowGet `visible` property. Returns: Whether this column is visible.
void visible(bool propval) @property nothrowSet `visible` property. Params: propval = Whether this column is visible.
gtk.column_view.ColumnView getColumnView() nothrowGets the column view that's currently displaying this column.
bool getExpand() nothrowReturns whether this column should expand. Returns: true if this column expands
gtk.list_item_factory.ListItemFactory getFactory() nothrowGets the factory that's currently used to populate list items for this column. Returns: The factory in use
int getFixedWidth() nothrowGets the fixed width of the column. Returns: the fixed with of the column
gio.menu_model.MenuModel getHeaderMenu() nothrowGets the menu model that is used to create the context menu for the column header. Returns: the [gio.menu_model.MenuModel]
string getId() nothrowReturns the ID set with [gtk.column_view_column.ColumnViewColumn.setId]. Returns: The column's ID
bool getResizable() nothrowReturns whether this column is resizable. Returns: true if this column is resizable
gtk.sorter.Sorter getSorter() nothrowReturns the sorter that is associated with the column. Returns: the [gtk.sorter.Sorter] of self
string getTitle() nothrowReturns the title set with [gtk.column_view_column.ColumnViewColumn.setTitle]. Returns: The column's title
bool getVisible() nothrowReturns whether this column is visible. Returns: true if this column is visible
void setExpand(bool expand) nothrowSets the column to take available extra space.
void setFactory(gtk.list_item_factory.ListItemFactory factory = null) nothrowSets the [gtk.list_item_factory.ListItemFactory] to use for populating list items for this column.
void setFixedWidth(int fixedWidth) nothrowIf fixed_width is not -1, sets the fixed width of column; otherwise unsets it.
void setHeaderMenu(gio.menu_model.MenuModel menu = null) nothrowSets the menu model that is used to create the context menu for the column header.
void setId(string id = null) nothrowSets the id of this column.
void setResizable(bool resizable) nothrowSets whether this column should be resizable by dragging.
void setSorter(gtk.sorter.Sorter sorter = null) nothrowAssociates a sorter with the column.
void setTitle(string title = null) nothrowSets the title of this column.
void setVisible(bool visible) nothrowSets whether this column should be visible in views.
Constructors
this(void * ptr, Flag!"Take" take)
this(string title = null, gtk.list_item_factory.ListItemFactory factory = null)Creates a new [gtk.column_view_column.ColumnViewColumn] that uses the given factory for mapping items to widgets.

Fluent builder implementation template for gtk.column_view_column.ColumnViewColumn

Methods
T expand(bool propval) nothrowSet `expand` property. Params: propval = Column gets share of extra width allocated to the view. Returns: Builder instance for fluent chaining
T factory(gtk.list_item_factory.ListItemFactory propval) nothrowSet `factory` property. Params: propval = Factory for populating list items. Returns: Builder instance for fluent chaining
T fixedWidth(int propval) nothrowSet `fixedWidth` property. Params: propval = If not -1, this is the width that the column is allocated, regardless of the size of its content. Returns: Builder instance for fluent chaining
T headerMenu(gio.menu_model.MenuModel propval) nothrowSet `headerMenu` property. Params: propval = Menu model used to create the context menu for the column header. Returns: Builder instance for fluent chaining
T id(string propval) nothrowSet `id` property. Params: propval = An ID for the column.
T resizable(bool propval) nothrowSet `resizable` property. Params: propval = Whether this column is resizable. Returns: Builder instance for fluent chaining
T sorter(gtk.sorter.Sorter propval) nothrowSet `sorter` property. Params: propval = Sorter for sorting items according to this column. Returns: Builder instance for fluent chaining
T title(string propval) nothrowSet `title` property. Params: propval = Title displayed in the header. Returns: Builder instance for fluent chaining
T visible(bool propval) nothrowSet `visible` property. Params: propval = Whether this column is visible. Returns: Builder instance for fluent chaining