gtk.spinner

Module for [Spinner] class

Types 3

A gtk.spinner.Spinner widget displays an icon-size spinning animation.

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

!An example GtkSpinner

To start the animation, use gtk.spinner.Spinner.start, to stop it use gtk.spinner.Spinner.stop.

CSS nodes

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

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Spinner self() nothrowReturns `this`, for use in `with` statements.
SpinnerGidBuilder builder() static nothrowGet builder for [gtk.spinner.Spinner] Returns: New builder object
bool spinning() @property nothrowGet `spinning` property. Returns: Whether the spinner is spinning
void spinning(bool propval) @property nothrowSet `spinning` property. Params: propval = Whether the spinner is spinning
bool getSpinning() nothrowReturns whether the spinner is spinning. Returns: true if the spinner is active
void setSpinning(bool spinning) nothrowSets the activity of the spinner.
void start() nothrowStarts the animation of the spinner.
void stop() nothrowStops the animation of the spinner.
Constructors
this(void * ptr, Flag!"Take" take)
this()Returns a new spinner widget. Not yet started. Returns: a new [gtk.spinner.Spinner]

Fluent builder implementation template for gtk.spinner.Spinner

Methods
T spinning(bool propval) nothrowSet `spinning` property. Params: propval = Whether the spinner is spinning Returns: Builder instance for fluent chaining

Fluent builder for gtk.spinner.Spinner

Methods
Spinner build() nothrowCreate object from builder. Returns: New object