Class IconTheme
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
IntPtrTransfer ownership: None Nullable: False
path
NonNullableUtf8StringHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
path
NonNullablePlatformStringHandleTransfer ownership: None Nullable: False
GetDisplay(IntPtr)
Calls native method gtk_icon_theme_get_display.
public static extern IntPtr GetDisplay(IntPtr self)
Parameters
self
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
iconName
NonNullableUtf8StringHandleTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
gicon
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
iconName
NonNullableUtf8StringHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
icon
IntPtrTransfer ownership: None Nullable: False
size
intTransfer ownership: None Nullable: False
scale
intTransfer ownership: None Nullable: False
direction
TextDirectionTransfer ownership: None Nullable: False
flags
IconLookupFlagsTransfer 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
IntPtrTransfer ownership: None Nullable: False
iconName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
fallbacks
Utf8StringArrayNullTerminatedHandleTransfer ownership: None Nullable: True
size
intTransfer ownership: None Nullable: False
scale
intTransfer ownership: None Nullable: False
direction
TextDirectionTransfer ownership: None Nullable: False
flags
IconLookupFlagsTransfer 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
IntPtrTransfer ownership: None Nullable: False
path
Utf8StringArrayNullTerminatedHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
path
PlatformStringArrayNullTerminatedHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
themeName
NullableUtf8StringHandleTransfer ownership: None Nullable: True