Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: CellRendererSpinnerMeta

[166:14] static extends: object

Generated metadata helpers for CellRendererSpinner class surfaces.

Methods

  • properties ()

    Returns property metadata for CellRendererSpinner.

    • @r A list.

class: CellRendererSpinner

[20:7] extends: object

Renders a spinning animation in a cell GtkCellRendererSpinner renders a spinning animation in a cell, very similar to GtkSpinner. It can often be used as an alternative to a GtkCellRendererProgress for displaying indefinite activity, instead of actual progress. To start the animation in a cell, set the GtkCellRendererSpinner:active property to %TRUE and increment the GtkCellRendererSpinner: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. gtk_tree_view_column_add_attribute().

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • CellRendererSpinner ()

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

  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asCellRenderer ()

    Wraps this handle as CellRenderer.

    • @r A CellRenderer object.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setActive (bool Value)

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

    • @p Value is the new property value.
    • @r None.
  • setPulse (int Value)

    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 GtkSpinner widget draws one full cycle of the animation, consisting of 12 frames, in 750 milliseconds.

    • @p Value is the new property value.
    • @r None.
  • setSize (string Value)

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

    • @p Value is the new property value.
    • @r None.