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
constructArgumentsConstructArgument[]
ThemedIcon(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ThemedIcon(CreationData data)
Parameters
dataCreationData
ThemedIcon(ThemedIconHandle)
protected ThemedIcon(ThemedIconHandle handle)
Parameters
handleThemedIconHandle
Fields
NamesPropertyDefinition
public static readonly Property<string[], ThemedIcon> NamesPropertyDefinition
Field Value
- Property<string[], ThemedIcon>
UseDefaultFallbacksPropertyDefinition
public static readonly Property<bool, ThemedIcon> UseDefaultFallbacksPropertyDefinition
Field Value
Properties
Names
public string[] Names { get; }
Property Value
- string[]
UseDefaultFallbacks
public bool UseDefaultFallbacks { get; }
Property Value
Methods
AppendName(string)
public void AppendName(string iconname)
Parameters
iconnamestring
Equal(Icon?)
public bool Equal(Icon? icon2)
Parameters
icon2Icon
Returns
GetGType()
public static Type GetGType()
Returns
GetNames()
public string[] GetNames()
Returns
- string[]
Hash()
public uint Hash()
Returns
New(string)
public static ThemedIcon New(string iconname)
Parameters
iconnamestring
Returns
NewFromNames(string[])
public static ThemedIcon NewFromNames(string[] iconnames)
Parameters
iconnamesstring[]
Returns
NewFromPointer(nint, bool)
Creates a new managed ThemedIcon instance for a given pointer.
public static ThemedIcon NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithDefaultFallbacks(string)
public static ThemedIcon NewWithDefaultFallbacks(string iconname)
Parameters
iconnamestring
Returns
NewWithProperties(ConstructArgument[])
Creates a new ThemedIcon and sets the properties specified by the construct arguments.
public static ThemedIcon NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
PrependName(string)
[Version("2.18")]
public void PrependName(string iconname)
Parameters
iconnamestring
Serialize()
[Version("2.38")]
public Variant? Serialize()
Returns
ToString()
[Version("2.20")]
public string? ToString()