gtk.no_selection

Module for [NoSelection] class

Types 3

gtk.no_selection.NoSelection is a gtk.selection_model.SelectionModel that does not allow selecting anything.

This model is meant to be used as a simple wrapper around a gio.list_model.ListModel when a gtk.selection_model.SelectionModel is required.

gtk.no_selection.NoSelection passes through sections from the underlying model.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
NoSelection self() nothrowReturns `this`, for use in `with` statements.
NoSelectionGidBuilder builder() static nothrowGet builder for [gtk.no_selection.NoSelection] Returns: New builder object
gobject.types.GType itemType() @property nothrowGet `itemType` property. Returns: The type of items. See [gio.list_model.ListModel.getItemType].
gio.list_model.ListModel model() @property nothrowGet `model` property. Returns: The model being managed.
void model(gio.list_model.ListModel propval) @property nothrowSet `model` property. Params: propval = The model being managed.
uint nItems() @property nothrowGet `nItems` property. Returns: The number of items. See [gio.list_model.ListModel.getNItems].
gio.list_model.ListModel getModel() nothrowGets the model that self is wrapping. Returns: The model being wrapped
void setModel(gio.list_model.ListModel model = null) nothrowSets the model that self should wrap.
Constructors
this(void * ptr, Flag!"Take" take)
this(gio.list_model.ListModel model = null)Creates a new selection to handle model.

Fluent builder implementation template for gtk.no_selection.NoSelection

Methods
T model(gio.list_model.ListModel propval) nothrowSet `model` property. Params: propval = The model being managed. Returns: Builder instance for fluent chaining

Fluent builder for gtk.no_selection.NoSelection

Methods
NoSelection build() nothrowCreate object from builder. Returns: New object