Class EnumListModel
- Namespace
- Adw
- Assembly
- Adw-1.dll
public sealed class EnumListModel : Object, ListModel, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
EnumListModel
- Implements
- Inherited Members
Constructors
EnumListModel(EnumListModelHandle)
protected EnumListModel(EnumListModelHandle handle)
Parameters
handleEnumListModelHandle
EnumListModel(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public EnumListModel(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
EnumListModel(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected EnumListModel(CreationData data)
Parameters
dataCreationData
Fields
ItemsChangedSignal
Signal Descriptor for OnItemsChanged.
public static readonly Signal<ListModel, ListModel.ItemsChangedSignalArgs> ItemsChangedSignal
Field Value
Methods
FindPosition(int)
public uint FindPosition(int value)
Parameters
valueint
Returns
GetEnumType()
public Type GetEnumType()
Returns
GetGType()
public static Type GetGType()
Returns
GetItem(uint)
[Version("2.44")]
public nint GetItem(uint position)
Parameters
positionuint
Returns
GetItemType()
[Version("2.44")]
public Type GetItemType()
Returns
GetNItems()
[Version("2.44")]
public uint GetNItems()
Returns
GetObject(uint)
[Version("2.44")]
public Object? GetObject(uint position)
Parameters
positionuint
Returns
ItemsChanged(uint, uint, uint)
[Version("2.44")]
public void ItemsChanged(uint position, uint removed, uint added)
Parameters
New(Type)
public static EnumListModel New(Type enumType)
Parameters
enumTypeType
Returns
NewFromPointer(nint, bool)
Creates a new managed EnumListModel instance for a given pointer.
public static EnumListModel NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new EnumListModel and sets the properties specified by the construct arguments.
public static EnumListModel NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Events
OnItemsChanged
public event SignalHandler<ListModel, ListModel.ItemsChangedSignalArgs> OnItemsChanged