Class SpinnerPaintable
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gobject.GObject
org.gnome.adw.SpinnerPaintable
- All Implemented Interfaces:
Paintable, SymbolicPaintable, Proxy
@Generated("org.javagi.JavaGI")
public final class SpinnerPaintable
extends GObject
implements Paintable, SymbolicPaintable
A paintable showing a loading spinner.
AdwSpinnerPaintable size varies depending on the available space, but is
capped at 64×64 pixels.
To be able to animate, AdwSpinnerPaintable needs a widget. It will be
animated according to that widget's frame clock, and only if that widget is
mapped. Ideally it should be the same widget the paintable is displayed in,
but that's not a requirement.
Most applications should be using Spinner instead.
AdwSpinnerPaintable is provided for the cases where using a widget is
impractical or impossible, such as StatusPage:paintable:
<object class="AdwStatusPage" id="status_page">
<property name="paintable">
<object class="AdwSpinnerPaintable">
<property name="widget">status_page</property>
</object>
</property>
<!-- ... -->
</object>
- Since:
- 1.6
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSpinnerPaintable.Builder<B extends SpinnerPaintable.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.static classNested classes/interfaces inherited from class GObject
GObject.NotifyCallback, GObject.ObjectClassNested classes/interfaces inherited from interface Paintable
Paintable.InvalidateContentsCallback, Paintable.InvalidateSizeCallback, Paintable.Paintable$Impl, Paintable.PaintableInterfaceNested classes/interfaces inherited from interface SymbolicPaintable
SymbolicPaintable.SymbolicPaintable$Impl, SymbolicPaintable.SymbolicPaintableInterface -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new SpinnerPaintable.SpinnerPaintable(MemorySegment address) Create a SpinnerPaintable instance for the provided memory address.SpinnerPaintable(@Nullable Widget widget) Creates a newAdwSpinnerPaintableforwidget. -
Method Summary
Modifier and TypeMethodDescriptionprotected SpinnerPaintableasParent()Return this instance as if it were its parent type.static SpinnerPaintable.Builder<? extends SpinnerPaintable.Builder> builder()ASpinnerPaintable.Builderobject constructs aSpinnerPaintablewith the specified properties.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the SpinnerPaintable class.@Nullable WidgetGets the widget used for frame clock.voidSets the widget used for frame clock.Methods inherited from class 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 TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class ProxyInstance
equals, handle, hashCodeMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Paintable
computeConcreteSize, emitInvalidateContents, emitInvalidateSize, getCurrentImage, getFlags, getIntrinsicAspectRatio, getIntrinsicHeight, getIntrinsicWidth, invalidateContents, invalidateSize, onInvalidateContents, onInvalidateSize, snapshotMethods inherited from interface SymbolicPaintable
snapshotSymbolic, snapshotWithWeight
-
Constructor Details
-
SpinnerPaintable
Create a SpinnerPaintable instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
SpinnerPaintable
Creates a newAdwSpinnerPaintableforwidget.- Parameters:
widget- the widget used for frame clock- Since:
- 1.6
-
SpinnerPaintable
public SpinnerPaintable()Create a new SpinnerPaintable.
-
-
Method Details
-
getType
Get the GType of the SpinnerPaintable class.- Returns:
- the GType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Return this instance as if it were its parent type. Comparable to the Javasuperkeyword, but ensures the parent typeclass is also used in native code. -
getWidget
Gets the widget used for frame clock.- Returns:
- the widget
- Since:
- 1.6
-
setWidget
Sets the widget used for frame clock.- Parameters:
widget- the widget to use for frame clock- Since:
- 1.6
-
builder
ASpinnerPaintable.Builderobject constructs aSpinnerPaintablewith the specified properties. Use the variousset...()methods to set properties, and finish construction withSpinnerPaintable.Builder.build().- Returns:
- the builder object
-