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.
ColumnViewColumnGidBuilder builder() static nothrowGet builder for [gtk.column_view_column.ColumnViewColumn] Returns: New builder objectgtk.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.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.void title(string propval) @property nothrowSet `title` property. Params: propval = Title displayed in the header.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 expandsgtk.list_item_factory.ListItemFactory getFactory() nothrowGets the factory that's currently used to populate list items for this column. Returns: The factory in useint getFixedWidth() nothrowGets the fixed width of the column. Returns: the fixed with of the columngio.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 IDbool getResizable() nothrowReturns whether this column is resizable. Returns: true if this column is resizablegtk.sorter.Sorter getSorter() nothrowReturns the sorter that is associated with the column. Returns: the [gtk.sorter.Sorter] of selfstring getTitle() nothrowReturns the title set with [gtk.column_view_column.ColumnViewColumn.setTitle]. Returns: The column's titlebool getVisible() nothrowReturns whether this column is visible. Returns: true if this column is visiblevoid 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.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
T expand(bool propval) nothrowSet `expand` property. Params: propval = Column gets share of extra width allocated to the view. Returns: Builder instance for fluent chainingT factory(gtk.list_item_factory.ListItemFactory propval) nothrowSet `factory` property. Params: propval = Factory for populating list items. Returns: Builder instance for fluent chainingT 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 chainingT 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 chainingT resizable(bool propval) nothrowSet `resizable` property. Params: propval = Whether this column is resizable. Returns: Builder instance for fluent chainingT sorter(gtk.sorter.Sorter propval) nothrowSet `sorter` property. Params: propval = Sorter for sorting items according to this column. Returns: Builder instance for fluent chainingT title(string propval) nothrowSet `title` property. Params: propval = Title displayed in the header. Returns: Builder instance for fluent chainingT visible(bool propval) nothrowSet `visible` property. Params: propval = Whether this column is visible. Returns: Builder instance for fluent chainingFluent builder for gtk.column_view_column.ColumnViewColumn