1.54 <AdwSpinnerPaintable>

Class: <AdwSpinnerPaintable>

It derives from <GObject>.

A paintable showing a loading 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 Spinner instead. <AdwSpinnerPaintable> is provided for the cases where using a widget is impractical or impossible, such as StatusPage:paintable:

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

Properties

Property: spinner-paintable:widget self

The widget the spinner uses for frame clock.

Its value is a <GtkWidget>, or #f.

Set it with (set! (spinner-paintable:widget self) value).

Procedures

Method: spinner-paintable:get-widget self ⇒ %return
Method: get-widget self ⇒ %return

Gets the widget used for frame clock.

self

Passed: a <AdwSpinnerPaintable>.

a spinner paintable

%return

Returned: a <GtkWidget>, or #f.

the widget

Procedure: spinner-paintable:new [widget] ⇒ %return

Creates a new <AdwSpinnerPaintable> for widget.

widget

Passed, or left out: a <GtkWidget>, or #f.

the widget used for frame clock

%return

Returned: a <AdwSpinnerPaintable>.

the newly created <AdwSpinnerPaintable>

Method: spinner-paintable:set-widget self [widget]
Method: set-widget self [widget]

Sets the widget used for frame clock.

self

Passed: a <AdwSpinnerPaintable>.

a spinner paintable

widget

Passed, or left out: a <GtkWidget>, or #f.

the widget to use for frame clock