Class TreeListModel
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class TreeListModel : Object, IDisposable, ListModel, GTypeProvider, InstanceFactory
- Inheritance
-
TreeListModel
- Implements
-
- Inherited Members
-
Constructors
TreeListModel(params ConstructArgument[])
public TreeListModel(params ConstructArgument[] constructArguments)
Parameters
constructArguments
ConstructArgument[]
TreeListModel(TreeListModelHandle)
public TreeListModel(TreeListModelHandle handle)
Parameters
handle
TreeListModelHandle
Fields
AutoexpandPropertyDefinition
public static readonly Property<bool, TreeListModel> AutoexpandPropertyDefinition
Field Value
- Property<bool, TreeListModel>
ModelPropertyDefinition
public static readonly Property<ListModel, TreeListModel> ModelPropertyDefinition
Field Value
- Property<ListModel, TreeListModel>
NItemsPropertyDefinition
public static readonly Property<uint, TreeListModel> NItemsPropertyDefinition
Field Value
- Property<uint, TreeListModel>
PassthroughPropertyDefinition
public static readonly Property<bool, TreeListModel> PassthroughPropertyDefinition
Field Value
- Property<bool, TreeListModel>
Properties
Autoexpand
public bool Autoexpand { get; set; }
Property Value
- bool
Model
public ListModel Model { get; }
Property Value
- ListModel
NItems
public uint NItems { get; }
Property Value
- uint
Passthrough
public bool Passthrough { get; }
Property Value
- bool
Methods
GetAutoexpand()
public bool GetAutoexpand()
Returns
- bool
GetChildRow(uint)
public TreeListRow? GetChildRow(uint position)
Parameters
position
uint
Returns
- TreeListRow
GetGType()
public static Type GetGType()
Returns
- Type
GetItem(uint)
[Version("2.44")]
public nint GetItem(uint position)
Parameters
position
uint
Returns
- nint
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
GetPassthrough()
public bool GetPassthrough()
Returns
- bool
GetRow(uint)
public TreeListRow? GetRow(uint position)
Parameters
position
uint
Returns
- TreeListRow
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, bool, bool, TreeListModelCreateModelFunc)
public static TreeListModel New(ListModel root, bool passthrough, bool autoexpand, TreeListModelCreateModelFunc createFunc)
Parameters
root
ListModel
passthrough
bool
autoexpand
bool
createFunc
TreeListModelCreateModelFunc
Returns
- TreeListModel
SetAutoexpand(bool)
public void SetAutoexpand(bool autoexpand)
Parameters
autoexpand
bool