GtkSpinner — Show a spinner animation
| GtkWidget * | gtk_spinner_new () |
| void | gtk_spinner_start () |
| void | gtk_spinner_stop () |
| void | gtk_spinner_set_spinning () |
| gboolean | gtk_spinner_get_spinning () |
| gboolean | spinning | Read / Write |
GObject
╰── GInitiallyUnowned
╰── GtkWidget
╰── GtkSpinner
GtkSpinner implements GtkAccessible, GtkBuildable and GtkConstraintTarget.
#include <gtk/gtk.h>
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().
GtkSpinner has a single CSS node with the name spinner. When the animation is active, the :checked pseudoclass is added to this node.
GtkWidget *
gtk_spinner_new (void); Returns a new spinner widget. Not yet started.
a new GtkSpinner
void
gtk_spinner_start (GtkSpinner *spinner); Starts the animation of the spinner.
spinner |
void
gtk_spinner_stop (GtkSpinner *spinner); Stops the animation of the spinner.
spinner |
void gtk_spinner_set_spinning (GtkSpinner *spinner,gboolean spinning);
Sets the activity of the spinner.
spinner | ||
spinning | whether the spinner should be spinning |
gboolean
gtk_spinner_get_spinning (GtkSpinner *spinner); Returns whether the spinner is spinning.
spinner |
TRUE if the spinner is active
typedef struct _GtkSpinner GtkSpinner;
“spinning” property“spinning” gboolean
Whether the spinner is spinning.
Owner: GtkSpinner
Flags: Read / Write
Default value: FALSE
© 2005–2020 The GNOME Project
Licensed under the GNU Lesser General Public License version 2.1 or later.
https://developer.gnome.org/gtk4/4.0/GtkSpinner.html