Spinner


Object Hierarchy:

Gtk.Spinner Gtk.Spinner Gtk.Spinner Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.Spinner GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.Spinner Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.Spinner Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.Spinner Gtk.ConstraintTarget->Gtk.Widget

Description:

[ CCode ( type_id = "gtk_spinner_get_type ()" ) ]
public sealed class Spinner : Widget, Accessible, Buildable, ConstraintTarget

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 GtkSpinner:checked pseudoclass is added to this node.


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget