david-swift 3a1ca63ef2 Check bindings before updating
Updating if there's no change could lead to an infinite loop in rare cases
2024-02-14 16:23:57 +01:00

1.5 KiB

STRUCT

Spinner

A GtkSpinner widget displays an icon-size spinning animation.

It is often used as an alternative to a [class@Gtk.ProgressBar] for displaying indefinite activity, instead of actual progress.

An example GtkSpinner

To start the animation, use [method@Gtk.Spinner.start], to stop it use [method@Gtk.Spinner.stop].

CSS nodes

GtkSpinner has a single CSS node with the name spinner. When the animation is active, the :checked pseudoclass is added to this node.

Properties

updateFunctions

Additional update functions for type extensions.

appearFunctions

Additional appear functions for type extensions.

accessibleRole

The accessible role of the given GtkAccessible implementation.

The accessible role cannot be changed once set.

spinning

Whether the spinner is spinning

app

The application.

window

The window.

Methods

init()

Initialize Spinner.

container(modifiers:)

Get the widget's view storage.

  • Parameter modifiers: The view modifiers.
  • Returns: The view storage.

update(_:modifiers:updateProperties:)

Update the widget's view storage.

  • Parameters:
    • storage: The view storage.
    • modifiers: The view modifiers.
    • updateProperties: Whether to update the view's properties.

accessibleRole(_:)

The accessible role of the given GtkAccessible implementation.

The accessible role cannot be changed once set.

spinning(_:)

Whether the spinner is spinning