Top |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkDrawingArea ╰── GtkSpinner
A GtkSpinner widget 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 gtk_spinner_start()
, to stop it
use gtk_spinner_stop()
.
GtkWidget *
gtk_spinner_new (void
);
Returns a new spinner widget. Not yet started.
Since: 2.20
void
gtk_spinner_start (GtkSpinner *spinner
);
Starts the animation of the spinner.
Since: 2.20
void
gtk_spinner_stop (GtkSpinner *spinner
);
Stops the animation of the spinner.
Since: 2.20
“cycle-duration”
style property “cycle-duration” guint
The duration in milliseconds for the spinner to complete a full cycle.
Owner: GtkSpinner
Flags: Read
Allowed values: >= 500
Default value: 1000
Since: 2.20
“num-steps”
style property “num-steps” guint
The number of steps for the spinner to complete a full loop. The animation will complete a full cycle in one second by default (see the “cycle-duration” style property).
Owner: GtkSpinner
Flags: Read
Allowed values: >= 1
Default value: 12
Since: 2.20