Klasse SpinnerPaintable

Alle implementierten Schnittstellen:
PointerInterface

public class SpinnerPaintable extends PropertyHolder
A paintable showing a loading spinner.

<picture>
<source srcset="spinner-dark.png" media="(prefers-color-scheme: dark)">
<img src="spinner.png" alt="spinner">
</picture>

`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 [class@Spinner] instead.
`AdwSpinnerPaintable` is provided for the cases where using a widget is
impractical or impossible, such as [property@StatusPage:paintable]:

```xml
<object class="AdwStatusPage" id="status_page">
<property name="paintable">
<object class="AdwSpinnerPaintable">
<property name="widget">status_page</property>
</object>
</property>
<!-- ... -->
</object>
```

https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.SpinnerPaintable.html

  • Konstruktordetails

    • SpinnerPaintable

      public SpinnerPaintable(PointerContainer pointer)
    • SpinnerPaintable

      public SpinnerPaintable(@Nullable Widget widget)
      Creates a new `AdwSpinnerPaintable` for @widget.
      Parameter:
      widget - the widget used for frame clock
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getWidget

      public Widget getWidget()
      Gets the widget used for frame clock.
      Gibt zurück:
      the widget
    • setWidget

      public void setWidget(@Nullable Widget widget)
      Sets the widget used for frame clock.
      Parameter:
      widget - the widget to use for frame clock
    • asPaintable

      public Paintable asPaintable()
      Implements interface Paintable. Call this to get access to interface functions.
      Gibt zurück:
      Paintable
    • asSymbolicPaintable

      public SymbolicPaintable asSymbolicPaintable()
      Implements interface SymbolicPaintable. Call this to get access to interface functions.
      Gibt zurück:
      SymbolicPaintable
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()