Adw.Spinner¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Widget (183), GObject.Object (37), Gtk.Accessible (17), Gtk.Buildable (1)
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Adw.Spinner(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A widget showing a loading spinner.
<picture> <source srcset=”spinner-dark.png” media=”(prefers-color-scheme: dark)”> <img src=”spinner.png” alt=”spinner”> </picture>
The size of the spinner depends on the available size, never smaller than 16×16 pixels and never larger than 64×64 pixels.
Use the [property`Gtk`.Widget:halign] and [property`Gtk`.Widget:valign] properties in combination with [property`Gtk`.Widget:width-request] and [property`Gtk`.Widget:height-request] for fine sizing control.
For example, the following snippet shows the spinner at 48×48 pixels:
``xml <object class=”AdwSpinner”>
<property name=”halign”>center</property> <property name=”valign”>center</property> <property name=”width-request”>48</property> <property name=”height-request”>48</property>
</object> ``
See [class`SpinnerPaintable`] for cases where using a widget is impractical or impossible, such as [property`StatusPage`:py:data::paintable<Adw.Spinner.props.paintable>].
- CSS nodes
AdwSpinner
has a single node with the nameimage
and the style class.spinner
.New in version 1.6.
- classmethod new()¶
- Returns:
the newly created
AdwSpinner
- Return type:
Creates a new
AdwSpinner
.New in version 1.6.