Adw.SpinnerPaintable¶
- Subclasses:
None
Methods¶
- Inherited:
GObject.Object (37), Gdk.Paintable (10), Gtk.SymbolicPaintable (1)
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
GObject.Object (7), Gdk.Paintable (6), Gtk.SymbolicPaintable (1)
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Adw.SpinnerPaintable(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A paintable showing a loading spinner.
<picture> <source srcset=”spinner-dark.png” media=”(prefers-color-scheme: dark)”> <img src=”spinner.png” alt=”spinner”> </picture>
AdwSpinnerPaintablesize varies depending on the available space, but is capped at 64×64 pixels.To be able to animate,
AdwSpinnerPaintableneeds 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.
AdwSpinnerPaintableis provided for the cases where using a widget is impractical or impossible, such as [property`StatusPage`:py:data::paintable<Adw.SpinnerPaintable.props.paintable>]:``xml <object class=”AdwStatusPage” id=”status_page”>
- <property name=”paintable”>
- <object class=”AdwSpinnerPaintable”>
<property name=”widget”>status_page</property>
</object>
</property> <!– … –>
</object> ``
New in version 1.6.
- classmethod new(widget)¶
- Parameters:
widget (
Gtk.WidgetorNone) – the widget used for frame clock- Returns:
the newly created
AdwSpinnerPaintable- Return type:
Creates a new
AdwSpinnerPaintablefor widget.New in version 1.6.
- get_widget()¶
- Returns:
the widget
- Return type:
Gtk.WidgetorNone
Gets the widget used for frame clock.
New in version 1.6.
- set_widget(widget)¶
- Parameters:
widget (
Gtk.WidgetorNone) – the widget to use for frame clock
Sets the widget used for frame clock.
New in version 1.6.
Property Details¶
- Adw.SpinnerPaintable.props.widget¶
- Name:
widget- Type:
- Default Value:
- Flags:
The widget the spinner uses for frame clock.
New in version 1.6.