Class: Gtk::CellRendererSpinner

Inherits:
CellRenderer
  • Object
show all
Defined in:
(unknown)

Overview

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().

Instance Method Summary collapse

Methods inherited from CellRenderer

#activate, #cell_background=, #cell_background_rgba, #cell_background_rgba=, #cell_background_set=, #cell_background_set?, #editing=, #editing?, #get_aligned_area, #get_alignment, #get_fixed_size, #get_padding, #get_preferred_height, #get_preferred_height_for_width, #get_preferred_size, #get_preferred_width, #get_preferred_width_for_height, #get_state, #height, #height=, #is_activatable, #is_expanded, #is_expanded=, #is_expanded?, #is_expander, #is_expander=, #is_expander?, #mode, #mode=, #request_mode, #sensitive, #sensitive=, #sensitive?, #set_alignment, #set_fixed_size, #set_padding, #snapshot, #start_editing, #stop_editing, #visible, #visible=, #visible?, #width, #width=, #xalign, #xalign=, #xpad, #xpad=, #yalign, #yalign=, #ypad, #ypad=

Constructor Details

#initializeGtk::CellRenderer

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

Instance Method Details

#active=(active) ⇒ Boolean

Parameters:

  • active (Boolean)

Returns:

  • (Boolean)

    active

  • (Boolean)

    active

#active?Boolean

Returns active.

Returns:

  • (Boolean)

    active

#pulseInteger

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.

Returns:

  • (Integer)

    pulse

#pulse=(pulse) ⇒ Integer

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.

Parameters:

  • pulse (Integer)

Returns:

  • (Integer)

    pulse

  • (Integer)

    pulse

#sizeGtk::IconSize

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

Returns:

#size=(size) ⇒ Gtk::IconSize

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

Parameters:

Returns: