gtk.column_view_cell

Module for ColumnViewCell class

Types 3

gtk.column_view_cell.ColumnViewCell is used by gtk.column_view_column.ColumnViewColumn to represent items in a cell in gtk.column_view.ColumnView.

The gtk.column_view_cell.ColumnViewCells are managed by the columnview widget (with its factory) and cannot be created by applications, but they need to be populated by application code. This is done by calling gtk.column_view_cell.ColumnViewCell.setChild.

gtk.column_view_cell.ColumnViewCells exist in 2 stages:

  1. The unbound stage where the listitem is not currently connected to an item in the list. In that case, the gtk.column_view_cell.ColumnViewCell.item property is set to null.
  2. The bound stage where the listitem references an item from the list. The gtk.column_view_cell.ColumnViewCell.item property is not null.
Methods
GType _gType() @property
ColumnViewCell self()Returns `this`, for use in `with` statements.
ColumnViewCellGidBuilder builder()Get builder for [gtk.column_view_cell.ColumnViewCell] Returns: New builder object
gtk.widget.Widget child() @propertyGet `child` property. Returns: Widget used for display.
void child(gtk.widget.Widget propval) @propertySet `child` property. Params: propval = Widget used for display.
bool focusable() @propertyGet `focusable` property. Returns: If the item can be focused with the keyboard.
void focusable(bool propval) @propertySet `focusable` property. Params: propval = If the item can be focused with the keyboard.
gobject.object.ObjectWrap item() @propertyGet `item` property. Returns: Displayed item.
uint position() @propertyGet `position` property. Returns: Position of the item.
bool selected() @propertyGet `selected` property. Returns: If the item is currently selected.
gtk.widget.Widget getChild()Gets the child previously set via [gtk.column_view_cell.ColumnViewCell.setChild] or null if none was set. Returns: The child
bool getFocusable()Checks if a list item has been set to be focusable via [gtk.column_view_cell.ColumnViewCell.setFocusable]. Returns: true if the item is focusable
gobject.object.ObjectWrap getItem()Gets the model item that associated with self.
uint getPosition()Gets the position in the model that self currently displays.
bool getSelected()Checks if the item is displayed as selected.
void setChild(gtk.widget.Widget child = null)Sets the child to be used for this listitem.
void setFocusable(bool focusable)Sets self to be focusable.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gtk.column_view_cell.ColumnViewCell

Methods
T child(gtk.widget.Widget propval)Set `child` property. Params: propval = Widget used for display. Returns: Builder instance for fluent chaining
T focusable(bool propval)Set `focusable` property. Params: propval = If the item can be focused with the keyboard. Returns: Builder instance for fluent chaining