About my projects, examples and tutorials
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.

UNKNOWN image§

=for image :class<inline> :src<asset_files/images/spinner.png> :width<30\%>

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.

Uml Diagram§

UNKNOWN image§

=for image :class<inline> :src<asset_files/images/plantuml/Spinner.png> :width<70\%>

Class initialization§

new§

:native-object§

Create an object using a native object from an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.

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

new-spinner§

Returns a new spinner widget. Not yet started.

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

Methods§

get-spinning§

Returns whether the spinner is spinning.

method get-spinning (--> Bool )
Code

Return value; True if the spinner is active.

set-spinning§

Sets the activity of the spinner.

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

start§

Starts the animation of the spinner.

method start ( )
Code

stop§

Stops the animation of the spinner.

method stop ( )
Code