Gtk.Spinner

Entities

Tagged Types

Access Types

Constants

Subprograms

Generic Instantiations

Description

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
Parameters
Widget
Return Value

"-"

function "-"
  (Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Spinner
Parameters
Interf
Return Value

Active_Property

Active_Property : constant Glib.Properties.Property_Boolean;

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_New

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.

Parameters
Spinner

Gtk_Spinner

type Gtk_Spinner is access all Gtk_Spinner_Record'Class;

Gtk_Spinner_New

function Gtk_Spinner_New return Gtk_Spinner

Returns a new spinner widget. Not yet started. Since: gtk+ 2.20

Return Value

Gtk_Spinner_Record

type Gtk_Spinner_Record is new Gtk_Widget_Record with null record;

Implements_Gtk_Buildable

package Implements_Gtk_Buildable is new Glib.Types.Implements
  (Gtk.Buildable.Gtk_Buildable, Gtk_Spinner_Record, Gtk_Spinner);

Initialize

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.

Parameters
Spinner

Start

procedure Start (Spinner : not null access Gtk_Spinner_Record)

Starts the animation of the spinner. Since: gtk+ 2.20

Parameters
Spinner

Stop

procedure Stop (Spinner : not null access Gtk_Spinner_Record)

Stops the animation of the spinner. Since: gtk+ 2.20

Parameters
Spinner