Skip to main content

Variable: GtkSpinner

const GtkSpinner: "GtkSpinner"

Defined in: generated/jsx.ts:19640

Displays an icon-size spinning animation.

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

An example GtkSpinner

To start the animation, use Gtk.Spinner.start, to stop it use 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.

Accessibility

GtkSpinner uses the Gtk.AccessibleRole.progress_bar role.