CtkCellRendererSpinner

CtkCellRendererSpinner — Renders a spinning animation in a cell

Functions

Properties

gboolean active Read / Write
guint pulse Read / Write
CtkIconSize size Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── CtkCellRenderer
            ╰── CtkCellRendererSpinner

Includes

#include <ctk/ctk.h>

Description

CtkCellRendererSpinner renders a spinning animation in a cell, very similar to CtkSpinner. It can often be used as an alternative to a CtkCellRendererProgress for displaying indefinite activity, instead of actual progress.

To start the animation in a cell, set the “active” property to TRUE and increment the “pulse” property at regular intervals. The usual way to set the cell renderer properties for each cell is to bind them to columns in your tree model using e.g. ctk_tree_view_column_add_attribute().

Functions

ctk_cell_renderer_spinner_new ()

CtkCellRenderer *
ctk_cell_renderer_spinner_new (void);

Returns a new cell renderer which will show a spinner to indicate activity.

Returns

a new CtkCellRenderer

Since: 2.20

Types and Values

struct CtkCellRendererSpinner

struct CtkCellRendererSpinner;

Property Details

The “active” property

  “active”                   gboolean

Whether the spinner is active (ie. shown) in the cell.

Owner: CtkCellRendererSpinner

Flags: Read / Write

Default value: FALSE


The “pulse” property

  “pulse”                    guint

Pulse of the spinner. Increment this value to draw the next frame of the spinner animation. Usually, you would update this value in a timeout.

By default, the CtkSpinner widget draws one full cycle of the animation, consisting of 12 frames, in 750 milliseconds.

Owner: CtkCellRendererSpinner

Flags: Read / Write

Default value: 0

Since: 2.20


The “size” property

  “size”                     CtkIconSize

The CtkIconSize value that specifies the size of the rendered spinner.

Owner: CtkCellRendererSpinner

Flags: Read / Write

Default value: CTK_ICON_SIZE_MENU

Since: 2.20

See Also

CtkSpinner, CtkCellRendererProgress