Gnome::Gtk4::Spinner
#------------------------------------------------------------------------------- #--[Class Description]---------------------------------------------------------- #-------------------------------------------------------------------------------
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.
=for image :src<asset_files/images/spinner.png> :width<30%> :class<inline>
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 =for image :src<asset_files/images/plantuml/Spinner.png> :width<70%> :class<inline>
#------------------------------------------------------------------------------- #--[Class Initialization]------------------------------------------------------- #-------------------------------------------------------------------------------
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! )
#-------------------------------------------------------------------------------
new-spinner
Returns a new spinner widget. Not yet started.
method new-spinner ( --> Gnome::Gtk4::Spinner )
#------------------------------------------------------------------------------- #--[Methods]-------------------------------------------------------------------- #-------------------------------------------------------------------------------
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 ( )