Class
GtkCellRendererSpinner
Description [src]
final class Gtk.CellRendererSpinner : Gtk.CellRenderer {
/* No available fields */
}
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()
.
Constructors
gtk_cell_renderer_spinner_new
Returns a new cell renderer which will show a spinner to indicate activity.
Instance methods
Methods inherited from GtkCellRenderer (27)
gtk_cell_renderer_activate
Passes an activate event to the cell renderer for possible processing.
Some cell renderers may use events; for example, GtkCellRendererToggle
toggles when it gets a mouse click.
gtk_cell_renderer_get_aligned_area
Gets the aligned area used by cell
inside cell_area
. Used for finding
the appropriate edit and focus rectangle.
gtk_cell_renderer_get_alignment
Fills in xalign
and yalign
with the appropriate values of cell
.
gtk_cell_renderer_get_fixed_size
Fills in width
and height
with the appropriate size of cell
.
gtk_cell_renderer_get_is_expanded
Checks whether the given GtkCellRenderer
is expanded.
gtk_cell_renderer_get_is_expander
Checks whether the given GtkCellRenderer
is an expander.
gtk_cell_renderer_get_padding
Fills in xpad
and ypad
with the appropriate values of cell
.
gtk_cell_renderer_get_preferred_height
Retrieves a renderer’s natural size when rendered to widget
.
gtk_cell_renderer_get_preferred_height_for_width
Retrieves a cell renderers’s minimum and natural height if it were rendered to
widget
with the specified width
.
gtk_cell_renderer_get_preferred_size
Retrieves the minimum and natural size of a cell taking into account the widget’s preference for height-for-width management.
gtk_cell_renderer_get_preferred_width
Retrieves a renderer’s natural size when rendered to widget
.
gtk_cell_renderer_get_preferred_width_for_height
Retrieves a cell renderers’s minimum and natural width if it were rendered to
widget
with the specified height
.
gtk_cell_renderer_get_request_mode
Gets whether the cell renderer prefers a height-for-width layout or a width-for-height layout.
gtk_cell_renderer_get_sensitive
Returns the cell renderer’s sensitivity.
gtk_cell_renderer_get_state
Translates the cell renderer state to GtkStateFlags
,
based on the cell renderer and widget sensitivity, and
the given GtkCellRenderer
State.
gtk_cell_renderer_get_visible
Returns the cell renderer’s visibility.
gtk_cell_renderer_is_activatable
Checks whether the cell renderer can do something when activated.
gtk_cell_renderer_set_alignment
Sets the renderer’s alignment within its available space.
gtk_cell_renderer_set_fixed_size
Sets the renderer size to be explicit, independent of the properties set.
gtk_cell_renderer_set_is_expanded
Sets whether the given GtkCellRenderer
is expanded.
gtk_cell_renderer_set_is_expander
Sets whether the given GtkCellRenderer
is an expander.
gtk_cell_renderer_set_padding
Sets the renderer’s padding.
gtk_cell_renderer_set_sensitive
Sets the cell renderer’s sensitivity.
Methods inherited from GObject (42)
Properties
Gtk.CellRendererSpinner:active
Gtk.CellRendererSpinner:pulse
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.
Gtk.CellRendererSpinner:size
The GtkIconSize
value that specifies the size of the rendered spinner.
Properties inherited from GtkCellRenderer (15)
Gtk.CellRenderer:cell-background
Gtk.CellRenderer:cell-background-rgba
Cell background as a GdkRGBA
Gtk.CellRenderer:cell-background-set
Gtk.CellRenderer:editing
Gtk.CellRenderer:height
Gtk.CellRenderer:is-expanded
Gtk.CellRenderer:is-expander
Gtk.CellRenderer:mode
Gtk.CellRenderer:sensitive
Gtk.CellRenderer:visible
Gtk.CellRenderer:width
Gtk.CellRenderer:xalign
Gtk.CellRenderer:xpad
Gtk.CellRenderer:yalign
Gtk.CellRenderer:ypad
Signals
Signals inherited from GtkCellRenderer (2)
Gtk.CellRenderer::editing-canceled
This signal gets emitted when the user cancels the process of editing a cell. For example, an editable cell renderer could be written to cancel editing when the user presses Escape.
Gtk.CellRenderer::editing-started
This signal gets emitted when a cell starts to be edited.
The intended use of this signal is to do special setup
on editable
, e.g. adding a GtkEntryCompletion
or setting
up additional columns in a GtkComboBox
.