Table of Contents

Class ThemedIcon

Namespace
Gio
Assembly
Gio-2.0.dll
public class ThemedIcon : Object, Icon, NativeObject, IDisposable, GTypeProvider, InstanceFactory
Inheritance
ThemedIcon
Implements
Inherited Members

Constructors

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

Parameters

constructArguments ConstructArgument[]

ThemedIcon(CreationData)

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

Parameters

data CreationData

ThemedIcon(ThemedIconHandle)

protected ThemedIcon(ThemedIconHandle handle)

Parameters

handle ThemedIconHandle

Fields

NamesPropertyDefinition

public static readonly Property<string[], ThemedIcon> NamesPropertyDefinition

Field Value

Property<string[], ThemedIcon>

UseDefaultFallbacksPropertyDefinition

public static readonly Property<bool, ThemedIcon> UseDefaultFallbacksPropertyDefinition

Field Value

Property<bool, ThemedIcon>

Properties

Names

public string[] Names { get; }

Property Value

string[]

UseDefaultFallbacks

public bool UseDefaultFallbacks { get; }

Property Value

bool

Methods

AppendName(string)

public void AppendName(string iconname)

Parameters

iconname string

Equal(Icon?)

public bool Equal(Icon? icon2)

Parameters

icon2 Icon

Returns

bool

GetGType()

public static Type GetGType()

Returns

Type

GetNames()

public string[] GetNames()

Returns

string[]

Hash()

public uint Hash()

Returns

uint

New(string)

public static ThemedIcon New(string iconname)

Parameters

iconname string

Returns

ThemedIcon

NewFromNames(string[])

public static ThemedIcon NewFromNames(string[] iconnames)

Parameters

iconnames string[]

Returns

ThemedIcon

NewFromPointer(nint, bool)

Creates a new managed ThemedIcon instance for a given pointer.

public static ThemedIcon NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

ThemedIcon

NewWithDefaultFallbacks(string)

public static ThemedIcon NewWithDefaultFallbacks(string iconname)

Parameters

iconname string

Returns

ThemedIcon

NewWithProperties(ConstructArgument[])

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

public static ThemedIcon NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

ThemedIcon

PrependName(string)

[Version("2.18")]
public void PrependName(string iconname)

Parameters

iconname string

Serialize()

[Version("2.38")]
public Variant? Serialize()

Returns

Variant

ToString()

[Version("2.20")]
public string? ToString()

Returns

string