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
GType _getGType() static nothrow
GType _gType() @property nothrow
ThemedIcon self() nothrowReturns `this`, for use in `with` statements.
ThemedIconGidBuilder builder() static nothrowGet builder for [gio.themed_icon.ThemedIcon] Returns: New builder object
bool 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.
void appendName(string iconname) nothrowAppend a name to the list of icons from within icon.
string[] getNames() nothrowGets the names of icons from within icon. Returns: a list of icon names.
void prependName(string iconname) nothrowPrepend a name to the list of icons from within icon.
Constructors
this(void * ptr, Flag!"Take" take)
this(string iconname)Creates a new themed icon for iconname.

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 chaining
T 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
ThemedIcon build() nothrowCreate object from builder. Returns: New object