Package org.gnome.gio
Class EmblemedIcon
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gobject.GObject
org.gnome.gio.EmblemedIcon
GEmblemedIcon is an implementation of Icon that supports
adding an emblem to an icon. Adding multiple emblems to an
icon is ensured via addEmblem(org.gnome.gio.Emblem).
Note that GEmblemedIcon allows no control over the position
of the emblems. See also Emblem for more information.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEmblemedIcon.Builder<B extends EmblemedIcon.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.static classNested classes/interfaces inherited from class org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClassNested classes/interfaces inherited from interface org.gnome.gio.Icon
Icon.Icon$Impl, Icon.IconIface -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new EmblemedIcon.EmblemedIcon(MemorySegment address) Create a EmblemedIcon proxy instance for the provided memory address.EmblemedIcon(Icon icon, @Nullable Emblem emblem) Creates a new emblemed icon foriconwith the emblememblem. -
Method Summary
Modifier and TypeMethodDescriptionvoidAddsemblemto theGListofGEmblems.protected EmblemedIconasParent()Returns this instance as if it were its parent type.static EmblemedIcon.Builder<? extends EmblemedIcon.Builder> builder()AEmblemedIcon.Builderobject constructs aEmblemedIconwith the specified properties.voidRemoves all the emblems fromicon.Gets the list of emblems for theicon.getIcon()Gets the main icon foremblemed.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the EmblemedIcon classMethods inherited from class org.gnome.gobject.GObject
addToggleRef, addWeakPointer, bindProperty, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, connect, constructed, disconnect, dispatchPropertiesChanged, dispose, dupData, dupQdata, emit, emitNotify, finalize_, forceFloating, freezeNotify, get, getData, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, newInstance, newInstance, newv, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, removeWeakPointer, replaceData, replaceQdata, runDispose, set, setData, setDataFull, setProperty, setProperty, setProperty, setQdata, setQdataFull, setv, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref, withPropertiesMethods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gnome.gio.Icon
equal, hash, serialize, serializeToString
-
Constructor Details
-
EmblemedIcon
Create a EmblemedIcon proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
EmblemedIcon
-
EmblemedIcon
public EmblemedIcon()Creates a new EmblemedIcon.
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuperkeyword, but will set the native typeclass function pointers to the parent type. When overriding a native virtual method in Java, "chaining up" withsuper.methodName()doesn't work, because it invokes the overridden function pointer again. To chain up, callasParent().methodName(). This will call the native function pointer of this virtual method in the typeclass of the parent type. -
addEmblem
Addsemblemto theGListofGEmblems.- Parameters:
emblem- aGEmblem- Since:
- 2.18
-
clearEmblems
public void clearEmblems()Removes all the emblems fromicon.- Since:
- 2.28
-
getEmblems
-
getIcon
Gets the main icon foremblemed.- Returns:
- a
GIconthat is owned by this EmblemedIcon - Since:
- 2.18
-
builder
AEmblemedIcon.Builderobject constructs aEmblemedIconwith the specified properties. Use the variousset...()methods to set properties, and finish construction withEmblemedIcon.Builder.build().- Returns:
- the builder object
-