gtk.no_selection
Module for NoSelection class
Types 3
classNoSelection : gobject.object.ObjectWrap, gio.list_model.ListModel, gtk.section_model.SectionModel, gtk.selection_model.SelectionModel
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
NoSelection self()Returns `this`, for use in `with` statements.NoSelectionGidBuilder builder()Get builder for [gtk.no_selection.NoSelection] Returns: New builder objectgobject.types.GType itemType() @propertyGet `itemType` property. Returns: The type of items. See [gio.list_model.ListModel.getItemType].void model(gio.list_model.ListModel propval) @propertySet `model` property. Params: propval = The model being managed.uint nItems() @propertyGet `nItems` property. Returns: The number of items. See [gio.list_model.ListModel.getNItems].gio.list_model.ListModel getModel()Gets the model that self is wrapping. Returns: The model being wrappedvoid setModel(gio.list_model.ListModel model = null)Sets the model that self should wrap.Constructors
this(gio.list_model.ListModel model = null)Creates a new selection to handle model.classNoSelectionGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, gio.list_model.ListModelGidBuilderImpl!T, gtk.section_model.SectionModelGidBuilderImpl!T, gtk.selection_model.SelectionModelGidBuilderImpl!T
Fluent builder implementation template for gtk.no_selection.NoSelection
Methods
T model(gio.list_model.ListModel propval)Set `model` property. Params: propval = The model being managed. Returns: Builder instance for fluent chainingFluent builder for gtk.no_selection.NoSelection
Methods
NoSelection build()Create object from builder. Returns: New object