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 _getGType() static nothrow
GType _gType() @property nothrow
ColumnViewCell self() nothrowReturns `this`, for use in `with` statements.
ColumnViewCellGidBuilder builder() static nothrowGet builder for [gtk.column_view_cell.ColumnViewCell] Returns: New builder object
gtk.widget.Widget child() @property nothrowGet `child` property. Returns: Widget used for display.
void child(gtk.widget.Widget propval) @property nothrowSet `child` property. Params: propval = Widget used for display.
bool focusable() @property nothrowGet `focusable` property. Returns: If the item can be focused with the keyboard.
void focusable(bool propval) @property nothrowSet `focusable` property. Params: propval = If the item can be focused with the keyboard.
gobject.object.ObjectWrap item() @property nothrowGet `item` property. Returns: Displayed item.
uint position() @property nothrowGet `position` property. Returns: Position of the item.
bool selected() @property nothrowGet `selected` property. Returns: If the item is currently selected.
gtk.widget.Widget getChild() nothrowGets the child previously set via [gtk.column_view_cell.ColumnViewCell.setChild] or null if none was set. Returns: The child
bool getFocusable() nothrowChecks 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() nothrowGets the model item that associated with self.
uint getPosition() nothrowGets the position in the model that self currently displays.
bool getSelected() nothrowChecks if the item is displayed as selected.
void setChild(gtk.widget.Widget child = null) nothrowSets the child to be used for this listitem.
void setFocusable(bool focusable) nothrowSets 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) nothrowSet `child` property. Params: propval = Widget used for display. Returns: Builder instance for fluent chaining
T focusable(bool propval) nothrowSet `focusable` property. Params: propval = If the item can be focused with the keyboard. Returns: Builder instance for fluent chaining
Methods
ColumnViewCell build() nothrowCreate object from builder. Returns: New object