CtkSpinner

CtkSpinner — Show a spinner animation

Functions

Properties

gboolean active Read / Write

Types and Values

struct CtkSpinner

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── CtkWidget
            ╰── CtkSpinner

Implemented Interfaces

CtkSpinner implements AtkImplementorIface and CtkBuildable.

Includes

#include <ctk/ctk.h>

Description

A CtkSpinner widget displays an icon-size spinning animation. It is often used as an alternative to a CtkProgressBar for displaying indefinite activity, instead of actual progress.

To start the animation, use ctk_spinner_start(), to stop it use ctk_spinner_stop().

CSS nodes

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

Functions

ctk_spinner_new ()

CtkWidget *
ctk_spinner_new (void);

Returns a new spinner widget. Not yet started.

Returns

a new CtkSpinner

Since: 2.20


ctk_spinner_start ()

void
ctk_spinner_start (CtkSpinner *spinner);

Starts the animation of the spinner.

Parameters

spinner

a CtkSpinner

 

Since: 2.20


ctk_spinner_stop ()

void
ctk_spinner_stop (CtkSpinner *spinner);

Stops the animation of the spinner.

Parameters

spinner

a CtkSpinner

 

Since: 2.20

Types and Values

struct CtkSpinner

struct CtkSpinner;

Property Details

The “active” property

  “active”                   gboolean

Whether the spinner is active.

Owner: CtkSpinner

Flags: Read / Write

Default value: FALSE

See Also

CtkCellRendererSpinner, CtkProgressBar