Table of Contents

Class EnumListItem

Namespace
Adw
Assembly
Adw-1.dll
public sealed class EnumListItem : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
EnumListItem
Implements
Inherited Members

Constructors

EnumListItem(EnumListItemHandle)

protected EnumListItem(EnumListItemHandle handle)

Parameters

handle EnumListItemHandle

EnumListItem(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 EnumListItem(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

EnumListItem(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected EnumListItem(CreationData data)

Parameters

data CreationData

Fields

NamePropertyDefinition

public static readonly Property<string?, EnumListItem> NamePropertyDefinition

Field Value

Property<string, EnumListItem>

NickPropertyDefinition

public static readonly Property<string?, EnumListItem> NickPropertyDefinition

Field Value

Property<string, EnumListItem>

ValuePropertyDefinition

public static readonly Property<int, EnumListItem> ValuePropertyDefinition

Field Value

Property<int, EnumListItem>

Properties

Name

public string? Name { get; }

Property Value

string

Nick

public string? Nick { get; }

Property Value

string

Value

public int Value { get; }

Property Value

int

Methods

GetGType()

public static Type GetGType()

Returns

Type

GetName()

public string GetName()

Returns

string

GetNick()

public string GetNick()

Returns

string

GetValue()

public int GetValue()

Returns

int

NewFromPointer(nint, bool)

Creates a new managed EnumListItem instance for a given pointer.

public static EnumListItem NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

EnumListItem

NewWithProperties(ConstructArgument[])

Creates a new EnumListItem and sets the properties specified by the construct arguments.

public static EnumListItem NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

EnumListItem