SingleSelection

class SingleSelection(singleSelectionPointer: CPointer<GtkSingleSelection>) : SelectionModel

gtk-kt

30 / 10 / 2021

See also

Constructors

SingleSelection
Link copied to clipboard
fun SingleSelection(model: ListModel?)
SingleSelection
Link copied to clipboard
fun SingleSelection(singleSelectionPointer: CPointer<GtkSingleSelection>)

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

autoSelect
Link copied to clipboard
var autoSelect: Boolean
canUnselect
Link copied to clipboard
var canUnselect: Boolean
itemCount
Link copied to clipboard
open val itemCount: UInt
listModelPointer
Link copied to clipboard
open override val listModelPointer: GListModel_autoptr
model
Link copied to clipboard
var model: ListModel?
selectedItem
Link copied to clipboard
val selectedItem: KGObject?
selection
Link copied to clipboard
open val selection: KGBitSet
selectionModelPointer
Link copied to clipboard
open override val selectionModelPointer: GtkSelectionModel_autoptr
singleSelectionPointer
Link copied to clipboard
val singleSelectionPointer: CPointer<GtkSingleSelection>
type
Link copied to clipboard
open val type: KGType