SelectionModelImpl

data class SelectionModelImpl(val gtkSelectionModelPointer: <Error class: unknown class><<Error class: unknown class>>) : SelectionModel

The SelectionModelImpl type represents a native instance of the SelectionModel interface.

Constructors

Link copied to clipboard
constructor(gtkSelectionModelPointer: <Error class: unknown class><<Error class: unknown class>>)

Creates a new instance of SelectionModel for the provided CPointer.

Properties

Link copied to clipboard
open val gioListModelPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gtkSelectionModelPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

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 onSelectionChanged(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 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 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.