Class Spinner

All Implemented Interfaces:
PointerInterface

public class Spinner extends Widget
A `GtkSpinner` widget displays an icon-size spinning animation.

It is often used as an alternative to a [class@Gtk.ProgressBar]
for displaying indefinite activity, instead of actual progress.

![An example GtkSpinner](spinner.png)

To start the animation, use [method@Gtk.Spinner.start], to stop it
use [method@Gtk.Spinner.stop].

# CSS nodes

`GtkSpinner` has a single CSS node with the name spinner.
When the animation is active, the :checked pseudoclass is
added to this node.

https://docs.gtk.org/gtk4/class.Spinner.html

  • Constructor Details

    • Spinner

      public Spinner(PointerContainer pointer)
    • Spinner

      public Spinner()
      Returns a new spinner widget. Not yet started.
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getSpinning

      public boolean getSpinning()
      Returns whether the spinner is spinning.
      Returns:
      %TRUE if the spinner is active
    • setSpinning

      public void setSpinning(boolean spinning)
      Sets the activity of the spinner.
      Parameters:
      spinning - whether the spinner should be spinning
    • start

      public void start()
      Starts the animation of the spinner.
    • stop

      public void stop()
      Stops the animation of the spinner.
    • asAccessible

      public Accessible asAccessible()
      Implements interface Accessible. Call this to get access to interface functions.
      Overrides:
      asAccessible in class Widget
      Returns:
      Accessible
    • asBuildable

      public Buildable asBuildable()
      Implements interface Buildable. Call this to get access to interface functions.
      Overrides:
      asBuildable in class Widget
      Returns:
      Buildable
    • asConstraintTarget

      public ConstraintTarget asConstraintTarget()
      Implements interface ConstraintTarget. Call this to get access to interface functions.
      Overrides:
      asConstraintTarget in class Widget
      Returns:
      ConstraintTarget
    • 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()