SpinnerPaintable


Object Hierarchy:

Object hierarchy for SpinnerPaintable

Description:

[ CCode ( type_id = "adw_spinner_paintable_get_type ()" ) ]
[ Version ( since = "1.6" ) ]
public sealed class SpinnerPaintable : Object, Paintable, SymbolicPaintable

A paintable showing a loading spinner.

<picture> <source srcset="spinner-dark.png" media="(prefers-color-scheme: dark)"> <img src="spinner.png" alt="spinner" > </picture>

`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 [class@Spinner] instead. `AdwSpinnerPaintable` is provided for the cases where using a widget is impractical or impossible, such as [property@StatusPage:paintable]:

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


Namespace: Adw
Package: libadwaita-1

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from interface Gtk.SymbolicPaintable