Table of Contents

Class IconTheme

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class IconTheme : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
IconTheme
Implements
Inherited Members

Constructors

IconTheme(bool, params ConstructArgument[])

protected IconTheme(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

IconTheme(IntPtr, bool)

protected IconTheme(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

ChangedSignal

Signal Descriptor for OnChanged.

public static readonly Signal<IconTheme> ChangedSignal

Field Value

Signal<IconTheme>

DisplayPropertyDefinition

public static readonly Property<Display?, IconTheme> DisplayPropertyDefinition

Field Value

Property<Display, IconTheme>

IconNamesPropertyDefinition

public static readonly Property<string[], IconTheme> IconNamesPropertyDefinition

Field Value

Property<string[], IconTheme>

ResourcePathPropertyDefinition

public static readonly Property<string[], IconTheme> ResourcePathPropertyDefinition

Field Value

Property<string[], IconTheme>

SearchPathPropertyDefinition

public static readonly Property<string[], IconTheme> SearchPathPropertyDefinition

Field Value

Property<string[], IconTheme>

ThemeNamePropertyDefinition

public static readonly Property<string?, IconTheme> ThemeNamePropertyDefinition

Field Value

Property<string, IconTheme>

Properties

Display

public Display? Display { get; set; }

Property Value

Display

IconNames

public string[] IconNames { get; }

Property Value

string[]

ResourcePath

public string[] ResourcePath { get; set; }

Property Value

string[]

SearchPath

public string[] SearchPath { get; set; }

Property Value

string[]

ThemeName

public string? ThemeName { get; set; }

Property Value

string

Methods

AddResourcePath(string)

public void AddResourcePath(string path)

Parameters

path string

AddSearchPath(string)

public void AddSearchPath(string path)

Parameters

path string

GetDisplay()

public Display? GetDisplay()

Returns

Display

GetForDisplay(Display)

public static IconTheme GetForDisplay(Display display)

Parameters

display Display

Returns

IconTheme

GetGType()

public static Type GetGType()

Returns

Type

GetIconNames()

public string[] GetIconNames()

Returns

string[]

GetResourcePath()

public string[]? GetResourcePath()

Returns

string[]

GetSearchPath()

public string[]? GetSearchPath()

Returns

string[]

GetThemeName()

public string GetThemeName()

Returns

string

HasGicon(Icon)

[Version("4.2")]
public bool HasGicon(Icon gicon)

Parameters

gicon Icon

Returns

bool

HasIcon(string)

public bool HasIcon(string iconName)

Parameters

iconName string

Returns

bool

LookupByGicon(Icon, int, int, TextDirection, IconLookupFlags)

public IconPaintable LookupByGicon(Icon icon, int size, int scale, TextDirection direction, IconLookupFlags flags)

Parameters

icon Icon
size int
scale int
direction TextDirection
flags IconLookupFlags

Returns

IconPaintable

LookupIcon(string, string[]?, int, int, TextDirection, IconLookupFlags)

public IconPaintable LookupIcon(string iconName, string[]? fallbacks, int size, int scale, TextDirection direction, IconLookupFlags flags)

Parameters

iconName string
fallbacks string[]
size int
scale int
direction TextDirection
flags IconLookupFlags

Returns

IconPaintable

New()

public static IconTheme New()

Returns

IconTheme

SetResourcePath(string[]?)

public void SetResourcePath(string[]? path)

Parameters

path string[]

SetSearchPath(string[]?)

public void SetSearchPath(string[]? path)

Parameters

path string[]

SetThemeName(string?)

public void SetThemeName(string? themeName)

Parameters

themeName string

Events

OnChanged

public event SignalHandler<IconTheme> OnChanged

Event Type

SignalHandler<IconTheme>