About all my projects
Gnome::Gtk4::Spinner

Gnome::Gtk4::Spinner

Description

A Gnome::Gtk4::Spinner widget displays an icon-size spinning animation.

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

No caption

To start the animation, use .start(), to stop it use .stop().

CSS nodes

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

Class initialization

new

:native-object

Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object :$native-object! )

new-spinner

Returns a new spinner widget. Not yet started.

method new-spinner ( --> Gnome::Gtk4::Spinner \)

Methods

get-spinning

Returns whether the spinner is spinning.

method get-spinning (--> Bool )

Return value; True if the spinner is active.

set-spinning

Sets the activity of the spinner.

method set-spinning ( Bool() $spinning )
  • $spinning; whether the spinner should be spinning.

start

Starts the animation of the spinner.

method start ( )

stop

Stops the animation of the spinner.

method stop ( )