SpinnerPaintable

class SpinnerPaintable(pointer: <Error class: unknown class><<Error class: unknown class>>)

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

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

Since

1.6

Constructors

Link copied to clipboard
constructor(widget: <Error class: unknown class>? = null)

Creates a new AdwSpinnerPaintable for @widget.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val adwSpinnerPaintablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val gdkPaintablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val gtkSymbolicPaintablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
var widget: <Error class: unknown class>?

The widget the spinner uses for frame clock.

Functions

Link copied to clipboard
fun getWidget(): <Error class: unknown class>?

Gets the widget used for frame clock.

Link copied to clipboard
fun setWidget(widget: <Error class: unknown class>? = null)

Sets the widget used for frame clock.