Spinner

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

A widget showing a loading spinner.

spinner

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:

<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:paintable.

CSS nodes

AdwSpinner has a single node with the name image and the style class .spinner.

Since

1.6

Constructors

Link copied to clipboard
constructor()

Creates a new AdwSpinner.

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val adwSpinnerPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val gtkAccessiblePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val gtkBuildablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val gtkConstraintTargetPointer: <Error class: unknown class><<Error class: unknown class>>