A GtkSpinner widget displays an icon-size spinning animation. It is often used as an alternative to a Gtk.Progress_Bar.Gtk_Progress_Bar for displaying indefinite activity, instead of actual progress.
To start the animation, use Gtk.Spinner.Start, to stop it use Gtk.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.
<group>Ornaments</group>
function "+"
(Widget : access Gtk_Spinner_Record'Class)
return Gtk.Buildable.Gtk_Buildable
function "-"
(Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Spinner
Active_Property : constant Glib.Properties.Property_Boolean;
function Get_Type return Glib.GType
procedure Gtk_New (Spinner : out Gtk_Spinner)
Returns a new spinner widget. Not yet started. Since: gtk+ 2.20 Initialize does nothing if the object was already created with another call to Initialize* or G_New.
type Gtk_Spinner is access all Gtk_Spinner_Record'Class;
function Gtk_Spinner_New return Gtk_Spinner
Returns a new spinner widget. Not yet started. Since: gtk+ 2.20
type Gtk_Spinner_Record is new Gtk_Widget_Record with null record;
package Implements_Gtk_Buildable is new Glib.Types.Implements
(Gtk.Buildable.Gtk_Buildable, Gtk_Spinner_Record, Gtk_Spinner);
procedure Initialize (Spinner : not null access Gtk_Spinner_Record'Class)
Returns a new spinner widget. Not yet started. Since: gtk+ 2.20 Initialize does nothing if the object was already created with another call to Initialize* or G_New.
procedure Start (Spinner : not null access Gtk_Spinner_Record)
Starts the animation of the spinner. Since: gtk+ 2.20
procedure Stop (Spinner : not null access Gtk_Spinner_Record)
Stops the animation of the spinner. Since: gtk+ 2.20