Package ch.bailu.gtk.gio
Klasse ThemedIcon
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.gio.ThemedIcon
- Alle implementierten Schnittstellen:
PointerInterface
`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.
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.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungThemedIcon
(PointerContainer pointer) ThemedIcon
(Str iconname) Creates a new themed icon for @iconname.ThemedIcon
(String iconname) Creates a new themed icon for @iconname. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
appendName
(Str iconname) Append a name to the list of icons from within @icon.void
appendName
(String iconname) Append a name to the list of icons from within @icon.asIcon()
Implements interfaceIcon
.static ClassHandler
static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
static ThemedIcon
newFromNamesThemedIcon
(Strs iconnames, int len) Creates a new themed icon for @iconnames.static ThemedIcon
newWithDefaultFallbacksThemedIcon
(Str iconname) Creates a new themed icon for @iconname, and all the names
that can be created by shortening @iconname at '-' characters.static ThemedIcon
newWithDefaultFallbacksThemedIcon
(String iconname) Creates a new themed icon for @iconname, and all the names
that can be created by shortening @iconname at '-' characters.void
prependName
(Str iconname) Prepend a name to the list of icons from within @icon.void
prependName
(String iconname) Prepend a name to the list of icons from within @icon.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
ThemedIcon
-
ThemedIcon
Creates a new themed icon for @iconname.- Parameter:
iconname
- a string containing an icon name.
-
ThemedIcon
Creates a new themed icon for @iconname.- Parameter:
iconname
- a string containing an icon name.
-
-
Methodendetails
-
getClassHandler
-
newFromNamesThemedIcon
Creates a new themed icon for @iconnames.- Parameter:
iconnames
- an array of strings containing icon names.len
- the length of the @iconnames array, or -1 if @iconnames is %NULL-terminated- Gibt zurück:
- a new #GThemedIcon
-
newWithDefaultFallbacksThemedIcon
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:<!-- language="C" --> 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");
- Parameter:
iconname
- a string containing an icon name- Gibt zurück:
- a new #GThemedIcon.
-
newWithDefaultFallbacksThemedIcon
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:<!-- language="C" --> 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");
- Parameter:
iconname
- a string containing an icon name- Gibt zurück:
- a new #GThemedIcon.
-
appendName
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().- Parameter:
iconname
- name of icon to append to list of icons from within @icon.
-
appendName
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().- Parameter:
iconname
- name of icon to append to list of icons from within @icon.
-
prependName
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().- Parameter:
iconname
- name of icon to prepend to list of icons from within @icon.
-
prependName
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().- Parameter:
iconname
- name of icon to prepend to list of icons from within @icon.
-
asIcon
Implements interfaceIcon
. Call this to get access to interface functions.- Gibt zurück:
Icon
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-