gio.themed_icon
Module for [ThemedIcon] class
Types 3
gio.themed_icon.ThemedIcon is an implementation of gio.icon.Icon that supports icon themes.
gio.themed_icon.ThemedIcon contains a list of all of the icons present in an icon theme, so that icons can be looked up quickly. gio.themed_icon.ThemedIcon does not provide actual pixmaps for icons, just the icon names. Ideally something like method@Gtk.IconTheme.choose_icon should be used to resolve the list of names so that fallback icons work nicely with themes that inherit other themes.
Methods
ThemedIconGidBuilder builder() static nothrowGet builder for [gio.themed_icon.ThemedIcon] Returns: New builder objectbool useDefaultFallbacks() @property nothrowGet `useDefaultFallbacks` property. Returns: Whether to use the default fallbacks found by shortening the icon name at '-' characters. If the "names" array has more than one element, ignores any pa...gio.themed_icon.ThemedIcon newFromNames(string[] iconnames) static nothrowCreates a new themed icon for iconnames.gio.themed_icon.ThemedIcon newWithDefaultFallbacks(string iconname) static nothrowCreates a new themed icon for iconname, and all the names that can be created by shortening iconname at '-' characters.classThemedIconGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, gio.icon.IconGidBuilderImpl!T
Fluent builder implementation template for gio.themed_icon.ThemedIcon
Methods
T name(string propval) nothrowSet `name` property. Params: propval = The icon name. Returns: Builder instance for fluent chainingT useDefaultFallbacks(bool propval) nothrowSet `useDefaultFallbacks` property. Params: propval = Whether to use the default fallbacks found by shortening the icon name at '-' characters. If the "names" array has more than one element, ignor...Fluent builder for gio.themed_icon.ThemedIcon
Methods