SelectionModel

interface SelectionModel : ListModel

gtk-kt

2 / 11 / 2021

See also

Types

Companion
Link copied to clipboard
object Companion

Functions

addOnItemChangedCallback
Link copied to clipboard
open fun addOnItemChangedCallback(action: (ListModel.ItemsChanged) -> Unit): SignalManager
addOnSelectionChangedCallback
Link copied to clipboard
open fun addOnSelectionChangedCallback(action: SelectionChangedFunction): SignalManager
getObject
Link copied to clipboard
open fun getObject(position: UInt): KGObject?
getSelectionInRange
Link copied to clipboard
open fun getSelectionInRange(position: UInt, nItems: UInt): KGBitSet
isSelected
Link copied to clipboard
open fun isSelected(position: UInt): Boolean
itemsChanged
Link copied to clipboard
open fun itemsChanged(position: UInt, removed: UInt, added: UInt)
selectAll
Link copied to clipboard
open fun selectAll(): Boolean
selectionChanged
Link copied to clipboard
open fun selectionChanged(position: UInt, nItems: UInt)
selectItem
Link copied to clipboard
open fun selectItem(position: UInt, unselectRest: Boolean): Boolean
selectRange
Link copied to clipboard
open fun selectRange(position: UInt, nItems: UInt, unselectRest: Boolean): Boolean
setSelection
Link copied to clipboard
open fun setSelection(selected: KGBitSet, mask: KGBitSet): Boolean
unselectAll
Link copied to clipboard
open fun unselectAll(): Boolean
unselectItem
Link copied to clipboard
open fun unselectItem(position: UInt): Boolean
unselectRange
Link copied to clipboard
open fun unselectRange(position: UInt, nItems: UInt): Boolean

Properties

itemCount
Link copied to clipboard
open val itemCount: UInt
listModelPointer
Link copied to clipboard
abstract val listModelPointer: GListModel_autoptr
selection
Link copied to clipboard
open val selection: KGBitSet
selectionModelPointer
Link copied to clipboard
abstract val selectionModelPointer: GtkSelectionModel_autoptr
type
Link copied to clipboard
open val type: KGType

Inheritors

MultiSelection
Link copied to clipboard
NoSelection
Link copied to clipboard
SingleSelection
Link copied to clipboard