Basics
Guides
API Reference
Basics
Guides
API Reference
[159:14] static extends: object
Alternate constructors for ThemedIcon. Usage:
ThemedIconCtors.<name>(...). The primary constructor lives
directly on ThemedIcon.
newFromNames (list iconnames)
Creates a new themed icon for @iconnames.
iconnames is an array of strings containing icon names..len is the length of the @iconnames array, or -1 if @iconnames is %NULL-terminated.A new ThemedIcon.newWithDefaultFallbacks (string iconname)
Creates a new themed icon for @iconname, and all the names that can be created by shortening @iconname at '-' characters. In the following example, @icon1 and @icon2 are equivalent: |[ const char *names[] = { "gnome-dev-cdrom-audio", "gnome-dev-cdrom", "gnome-dev", "gnome" }; icon1 = g_themed_icon_new_from_names (names, 4); icon2 = g_themed_icon_new_with_default_fallbacks ("gnome-dev-cdrom-audio"); ]|
iconname is a string containing an icon name.A new ThemedIcon.[199:14] static extends: object
Generated metadata helpers for ThemedIcon class surfaces.
properties ()
Returns property metadata for
ThemedIcon.
A list.[18:7] extends: object
GThemedIcon is an implementation of [iface@Gio.Icon] that supports icon
themes. GThemedIcon contains a list of all of the icons present in an icon
theme, so that icons can be looked up quickly. GThemedIcon 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.
ThemedIcon (iconname = null)
Creates a new themed icon for @iconname.
iconname is a string containing an icon name..toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asObject ()
Wraps this handle as
Object.
A Object object.asIcon ()
Wraps this handle as
Icon.
A Icon object.append_name (string iconname)
Append a name to the list of icons from within @icon. Note that doing so invalidates the hash computed by prior calls to g_icon_hash().
iconname is name of icon to append to list of icons from withinNone.get_names ()
Gets the names of icons from within @icon.
prepend_name (string iconname)
Prepend a name to the list of icons from within @icon. Note that doing so invalidates the hash computed by prior calls to g_icon_hash().
iconname is name of icon to prepend to list of icons from withinNone.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.