Table of Contents

Class IconTheme

Namespace
Gtk.Internal
Assembly
Gtk-4.0.dll
public class IconTheme
Inheritance
IconTheme
Inherited Members

Methods

AddResourcePath(IntPtr, NonNullableUtf8StringHandle)

Calls native method gtk_icon_theme_add_resource_path.

public static extern void AddResourcePath(IntPtr self, NonNullableUtf8StringHandle path)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

path NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

AddSearchPath(IntPtr, NonNullablePlatformStringHandle)

Calls native method gtk_icon_theme_add_search_path.

public static extern void AddSearchPath(IntPtr self, NonNullablePlatformStringHandle path)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

path NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

GetDisplay(IntPtr)

Calls native method gtk_icon_theme_get_display.

public static extern IntPtr GetDisplay(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetForDisplay(IntPtr)

Calls native function gtk_icon_theme_get_for_display.

public static extern IntPtr GetForDisplay(IntPtr display)

Parameters

display IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetGType()

Calls native function gtk_icon_theme_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetIconNames(IntPtr)

Calls native method gtk_icon_theme_get_icon_names.

public static extern Utf8StringArrayNullTerminatedOwnedHandle GetIconNames(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

Utf8StringArrayNullTerminatedOwnedHandle

Transfer ownership: Full Nullable: False

GetIconSizes(IntPtr, NonNullableUtf8StringHandle)

Calls native method gtk_icon_theme_get_icon_sizes.

public static extern int[] GetIconSizes(IntPtr self, NonNullableUtf8StringHandle iconName)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

iconName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

int[]

Transfer ownership: Full Nullable: False

GetResourcePath(IntPtr)

Calls native method gtk_icon_theme_get_resource_path.

public static extern Utf8StringArrayNullTerminatedOwnedHandle GetResourcePath(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

Utf8StringArrayNullTerminatedOwnedHandle

Transfer ownership: Full Nullable: True

GetSearchPath(IntPtr)

Calls native method gtk_icon_theme_get_search_path.

public static extern PlatformStringArrayNullTerminatedOwnedHandle GetSearchPath(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

PlatformStringArrayNullTerminatedOwnedHandle

Transfer ownership: Full Nullable: True

GetThemeName(IntPtr)

Calls native method gtk_icon_theme_get_theme_name.

public static extern NonNullableUtf8StringOwnedHandle GetThemeName(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: False

HasGicon(IntPtr, IntPtr)

Calls native method gtk_icon_theme_has_gicon. Version: 4.2

[Version("4.2")]
public static extern bool HasGicon(IntPtr self, IntPtr gicon)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

gicon IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

HasIcon(IntPtr, NonNullableUtf8StringHandle)

Calls native method gtk_icon_theme_has_icon.

public static extern bool HasIcon(IntPtr self, NonNullableUtf8StringHandle iconName)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

iconName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

LookupByGicon(IntPtr, IntPtr, int, int, TextDirection, IconLookupFlags)

Calls native method gtk_icon_theme_lookup_by_gicon.

public static extern IntPtr LookupByGicon(IntPtr self, IntPtr icon, int size, int scale, TextDirection direction, IconLookupFlags flags)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

icon IntPtr

Transfer ownership: None Nullable: False

size int

Transfer ownership: None Nullable: False

scale int

Transfer ownership: None Nullable: False

direction TextDirection

Transfer ownership: None Nullable: False

flags IconLookupFlags

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

LookupIcon(IntPtr, NonNullableUtf8StringHandle, Utf8StringArrayNullTerminatedHandle, int, int, TextDirection, IconLookupFlags)

Calls native method gtk_icon_theme_lookup_icon.

public static extern IntPtr LookupIcon(IntPtr self, NonNullableUtf8StringHandle iconName, Utf8StringArrayNullTerminatedHandle fallbacks, int size, int scale, TextDirection direction, IconLookupFlags flags)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

iconName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

fallbacks Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: True

size int

Transfer ownership: None Nullable: False

scale int

Transfer ownership: None Nullable: False

direction TextDirection

Transfer ownership: None Nullable: False

flags IconLookupFlags

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

New()

Calls native constructor gtk_icon_theme_new.

public static extern IntPtr New()

Returns

IntPtr

Transfer ownership: Full Nullable: False

SetResourcePath(IntPtr, Utf8StringArrayNullTerminatedHandle)

Calls native method gtk_icon_theme_set_resource_path.

public static extern void SetResourcePath(IntPtr self, Utf8StringArrayNullTerminatedHandle path)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

path Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: True

SetSearchPath(IntPtr, PlatformStringArrayNullTerminatedHandle)

Calls native method gtk_icon_theme_set_search_path.

public static extern void SetSearchPath(IntPtr self, PlatformStringArrayNullTerminatedHandle path)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

path PlatformStringArrayNullTerminatedHandle

Transfer ownership: None Nullable: True

SetThemeName(IntPtr, NullableUtf8StringHandle)

Calls native method gtk_icon_theme_set_theme_name.

public static extern void SetThemeName(IntPtr self, NullableUtf8StringHandle themeName)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

themeName NullableUtf8StringHandle

Transfer ownership: None Nullable: True