Class

AdwSpinnerPaintable

since: 1.6

[]

Description [src]

final class Adw.SpinnerPaintable : GObject.Object
  implements Gdk.Paintable, Gtk.SymbolicPaintable {
  /* No available fields */
}

A paintable showing a loading spinner.

spinner

AdwSpinnerPaintable size varies depending on the available space, but is capped at 64×64 pixels.

To be able to animate, AdwSpinnerPaintable needs a widget. It will be animated according to that widget’s frame clock, and only if that widget is mapped. Ideally it should be the same widget the paintable is displayed in, but that’s not a requirement.

Most applications should be using AdwSpinner instead. AdwSpinnerPaintable is provided for the cases where using a widget is impractical or impossible, such as AdwStatusPage:paintable:

<object class="AdwStatusPage" id="status_page">
  <property name="paintable">
    <object class="AdwSpinnerPaintable">
      <property name="widget">status_page</property>
    </object>
  </property>
  <!-- ... -->
</object>

Available since: 1.6

[]

Hierarchy

hierarchy this AdwSpinnerPaintable implements_0 GdkPaintable this--implements_0 implements_1 GtkSymbolicPaintable this--implements_1 ancestor_0 GObject ancestor_0--this
[]

Ancestors

[]

Constructors

adw_spinner_paintable_new

Creates a new AdwSpinnerPaintable for widget.

since: 1.6

[]

Instance methods

adw_spinner_paintable_get_widget

Gets the widget used for frame clock.

since: 1.6

adw_spinner_paintable_set_widget

Sets the widget used for frame clock.

since: 1.6

Methods inherited from GObject (43)
Methods inherited from GdkPaintable (9)
Methods inherited from GtkSymbolicPaintable (1)
[]

Properties

Adw.SpinnerPaintable:widget

The widget the spinner uses for frame clock.

since: 1.6

[]

Signals

Signals inherited from GObject (1)
Signals inherited from GdkPaintable (2)

Class structure