Class: Gtk::CellRendererSpinner
- Inherits:
-
CellRenderer
- Object
- GObject::InitiallyUnowned
- CellRenderer
- Gtk::CellRendererSpinner
- 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
- #active=(active) ⇒ Boolean
-
#active? ⇒ Boolean
Active.
-
#initialize ⇒ Gtk::CellRenderer
constructor
Returns a new cell renderer which will show a spinner to indicate activity.
-
#pulse ⇒ Integer
Pulse of the spinner.
-
#pulse=(pulse) ⇒ Integer
Pulse of the spinner.
-
#size ⇒ Gtk::IconSize
The
GtkIconSizevalue that specifies the size of the rendered spinner. -
#size=(size) ⇒ Gtk::IconSize
The
GtkIconSizevalue that specifies the size of the rendered spinner.
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
#initialize ⇒ Gtk::CellRenderer
Returns a new cell renderer which will show a spinner to indicate activity.
Instance Method Details
#active=(active) ⇒ Boolean
#active? ⇒ Boolean
Returns active.
#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.
#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.
#size ⇒ Gtk::IconSize
The GtkIconSize value that specifies the size of the rendered spinner.
#size=(size) ⇒ Gtk::IconSize
The GtkIconSize value that specifies the size of the rendered spinner.