Class SingleSelection
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class SingleSelection : Object, IObject, INotifyPropertyChanged, IDisposable, ListModel, SectionModel, SelectionModel, IHandle, GTypeProvider
- Inheritance
-
SingleSelection
- Implements
-
- Inherited Members
-
Constructors
SingleSelection(bool, params ConstructArgument[])
protected SingleSelection(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
bool
constructArguments
ConstructArgument[]
SingleSelection(IntPtr, bool)
protected SingleSelection(IntPtr ptr, bool ownedRef)
Parameters
ptr
IntPtr
ownedRef
bool
Fields
AutoselectPropertyDefinition
public static readonly Property<bool, SingleSelection> AutoselectPropertyDefinition
Field Value
- Property<bool, SingleSelection>
CanUnselectPropertyDefinition
public static readonly Property<bool, SingleSelection> CanUnselectPropertyDefinition
Field Value
- Property<bool, SingleSelection>
ModelPropertyDefinition
public static readonly Property<ListModel, SingleSelection> ModelPropertyDefinition
Field Value
- Property<ListModel, SingleSelection>
NItemsPropertyDefinition
public static readonly Property<uint, SingleSelection> NItemsPropertyDefinition
Field Value
- Property<uint, SingleSelection>
SelectedItemPropertyDefinition
public static readonly Property<Object?, SingleSelection> SelectedItemPropertyDefinition
Field Value
- Property<Object, SingleSelection>
SelectedPropertyDefinition
public static readonly Property<uint, SingleSelection> SelectedPropertyDefinition
Field Value
- Property<uint, SingleSelection>
Properties
Autoselect
public bool Autoselect { get; set; }
Property Value
- bool
CanUnselect
public bool CanUnselect { get; set; }
Property Value
- bool
Model
public ListModel Model { get; set; }
Property Value
- ListModel
NItems
public uint NItems { get; }
Property Value
- uint
Selected
public uint Selected { get; set; }
Property Value
- uint
SelectedItem
public Object? SelectedItem { get; }
Property Value
- Object
Methods
GetAutoselect()
public bool GetAutoselect()
Returns
- bool
GetCanUnselect()
public bool GetCanUnselect()
Returns
- bool
GetGType()
public static Type GetGType()
Returns
- Type
GetItem(uint)
[Version("2.44")]
public IntPtr GetItem(uint position)
Parameters
position
uint
Returns
- IntPtr
GetItemType()
[Version("2.44")]
public Type GetItemType()
Returns
- Type
GetModel()
public ListModel? GetModel()
Returns
- ListModel
GetNItems()
[Version("2.44")]
public uint GetNItems()
Returns
- uint
GetObject(uint)
[Version("2.44")]
public Object? GetObject(uint position)
Parameters
position
uint
Returns
- Object
GetSection(uint, out uint, out uint)
[Version("4.12")]
public void GetSection(uint position, out uint outStart, out uint outEnd)
Parameters
position
uint
outStart
uint
outEnd
uint
GetSelected()
public uint GetSelected()
Returns
- uint
GetSelectedItem()
public Object? GetSelectedItem()
Returns
- Object
GetSelection()
public Bitset GetSelection()
Returns
- Bitset
GetSelectionInRange(uint, uint)
public Bitset GetSelectionInRange(uint position, uint nItems)
Parameters
position
uint
nItems
uint
Returns
- Bitset
IsSelected(uint)
public bool IsSelected(uint position)
Parameters
position
uint
Returns
- bool
ItemsChanged(uint, uint, uint)
[Version("2.44")]
public void ItemsChanged(uint position, uint removed, uint added)
Parameters
position
uint
removed
uint
added
uint
New(ListModel?)
public static SingleSelection New(ListModel? model)
Parameters
model
ListModel
Returns
- SingleSelection
SectionsChanged(uint, uint)
public void SectionsChanged(uint position, uint nItems)
Parameters
position
uint
nItems
uint
SelectAll()
Returns
- bool
SelectItem(uint, bool)
public bool SelectItem(uint position, bool unselectRest)
Parameters
position
uint
unselectRest
bool
Returns
- bool
SelectRange(uint, uint, bool)
public bool SelectRange(uint position, uint nItems, bool unselectRest)
Parameters
position
uint
nItems
uint
unselectRest
bool
Returns
- bool
SelectionChanged(uint, uint)
public void SelectionChanged(uint position, uint nItems)
Parameters
position
uint
nItems
uint
SetAutoselect(bool)
public void SetAutoselect(bool autoselect)
Parameters
autoselect
bool
SetCanUnselect(bool)
public void SetCanUnselect(bool canUnselect)
Parameters
canUnselect
bool
SetModel(ListModel?)
public void SetModel(ListModel? model)
Parameters
model
ListModel
SetSelected(uint)
public void SetSelected(uint position)
Parameters
position
uint
SetSelection(Bitset, Bitset)
public bool SetSelection(Bitset selected, Bitset mask)
Parameters
selected
Bitset
mask
Bitset
Returns
- bool
UnselectAll()
public bool UnselectAll()
Returns
- bool
UnselectItem(uint)
public bool UnselectItem(uint position)
Parameters
position
uint
Returns
- bool
UnselectRange(uint, uint)
public bool UnselectRange(uint position, uint nItems)
Parameters
position
uint
nItems
uint
Returns
- bool