1.186 <GtkSpinner>

Class: <GtkSpinner>

It derives from <GtkWidget>.

Displays an icon-size spinning animation.

It is often used as an alternative to a <GtkProgressBar> for displaying indefinite activity, instead of actual progress.

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

Properties

Property: spinner:spinning self

Whether the spinner is spinning

Its value is a boolean.

Set it with (set! (spinner:spinning self) value).

Procedures

Method: spinner:get-spinning? self ⇒ %return
Method: get-spinning? self ⇒ %return

Returns whether the spinner is spinning.

self

Passed: a <GtkSpinner>.

a <GtkSpinner>

%return

Returned: a boolean.

#t if the spinner is active

Procedure: spinner:new ⇒ %return

Returns a new spinner widget. Not yet started.

%return

Returned: a <GtkWidget>.

a new <GtkSpinner>

Method: spinner:set-spinning self spinning
Method: set-spinning self spinning

Sets the activity of the spinner.

self

Passed: a <GtkSpinner>.

a <GtkSpinner>

spinning

Passed: a boolean.

whether the spinner should be spinning

Method: spinner:start self
Method: start self

Starts the animation of the spinner.

self

Passed: a <GtkSpinner>.

a <GtkSpinner>

Method: spinner:stop self
Method: stop self

Stops the animation of the spinner.

self

Passed: a <GtkSpinner>.

a <GtkSpinner>