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:
- 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.
- The bound stage where the listitem references an item from the list. The gtk.column_view_cell.ColumnViewCell.item property is not null.
Methods
ColumnViewCell self()Returns `this`, for use in `with` statements.ColumnViewCellGidBuilder builder()Get builder for [gtk.column_view_cell.ColumnViewCell] Returns: New builder objectvoid 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.gtk.widget.Widget getChild()Gets the child previously set via [gtk.column_view_cell.ColumnViewCell.setChild] or null if none was set. Returns: The childbool 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 focusablegobject.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.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 chainingT focusable(bool propval)Set `focusable` property. Params: propval = If the item can be focused with the keyboard. Returns: Builder instance for fluent chainingFluent builder for gtk.column_view_cell.ColumnViewCell
Methods
ColumnViewCell build()Create object from builder. Returns: New object