MultiSelection

open class MultiSelection(pointer: <Error class: unknown class><<Error class: unknown class>>) : SectionModel, SelectionModel

GtkMultiSelection is a GtkSelectionModel that allows selecting multiple elements.

Skipped during bindings generation

  • method item-type: Property has no getter nor setter

  • method n-items: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor(model: <Error class: unknown class>? = null)

Creates a new selection to handle @model.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val gioListModelPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtkMultiSelectionPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gtkSectionModelPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gtkSelectionModelPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open var model: <Error class: unknown class>?

The list managed by this selection.

Functions

Link copied to clipboard
open fun connectSectionsChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (<Error class: unknown class>, <Error class: unknown class>) -> Unit): <Error class: unknown class>

Emitted when the start-of-section state of some of the items in @model changes.

Link copied to clipboard
open fun connectSelectionChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (<Error class: unknown class>, <Error class: unknown class>) -> Unit): <Error class: unknown class>

Emitted when the selection state of some of the items in @model changes.

Link copied to clipboard
open fun getModel(): <Error class: unknown class>?

Returns the underlying model of @self.

Link copied to clipboard
open fun getSelection(): Bitset

Gets the set containing all currently selected items in the model.

Link copied to clipboard
open fun getSelectionInRange(position: <Error class: unknown class>, nItems: <Error class: unknown class>): Bitset

Gets the set of selected items in a range.

Link copied to clipboard
open fun isSelected(position: <Error class: unknown class>): Boolean

Checks if the given item is selected.

Link copied to clipboard
open fun sectionsChanged(position: <Error class: unknown class>, nItems: <Error class: unknown class>)

This function emits the signal@Gtk.SectionModel::sections-changed signal to notify about changes to sections.

Link copied to clipboard
open fun selectAll(): Boolean

Requests to select all items in the model.

Link copied to clipboard
open fun selectionChanged(position: <Error class: unknown class>, nItems: <Error class: unknown class>)

Helper function for implementations of GtkSelectionModel.

Link copied to clipboard
open fun selectItem(position: <Error class: unknown class>, unselectRest: Boolean): Boolean

Requests to select an item in the model.

Link copied to clipboard
open fun selectRange(position: <Error class: unknown class>, nItems: <Error class: unknown class>, unselectRest: Boolean): Boolean

Requests to select a range of items in the model.

Link copied to clipboard
open fun setModel(model: <Error class: unknown class>? = null)

Sets the model that @self should wrap.

Link copied to clipboard
open fun setSelection(selected: Bitset, mask: Bitset): Boolean

Make selection changes.

Link copied to clipboard
open fun unselectAll(): Boolean

Requests to unselect all items in the model.

Link copied to clipboard
open fun unselectItem(position: <Error class: unknown class>): Boolean

Requests to unselect an item in the model.

Link copied to clipboard
open fun unselectRange(position: <Error class: unknown class>, nItems: <Error class: unknown class>): Boolean

Requests to unselect a range of items in the model.