Class
GtkCellRendererProgress
Description [src]
final class Gtk.CellRendererProgress : Gtk.CellRenderer {
/* No available fields */
}
Renders numbers as progress bars
GtkCellRendererProgress
renders a numeric value as a progress par in a cell.
Additionally, it can display a text on top of the progress bar.
Constructors
gtk_cell_renderer_progress_new
Creates a new GtkCellRendererProgress
.
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)
Methods inherited from GtkOrientable (2)
gtk_orientable_get_orientation
Retrieves the orientation of the orientable
.
gtk_orientable_set_orientation
Sets the orientation of the orientable
.
Properties
Gtk.CellRendererProgress:inverted
Gtk.CellRendererProgress:pulse
Setting this to a non-negative value causes the cell renderer to enter “activity mode”, where a block bounces back and forth to indicate that some progress is made, without specifying exactly how much.
Gtk.CellRendererProgress:text
The “text” property determines the label which will be drawn
over the progress bar. Setting this property to NULL
causes the default
label to be displayed. Setting this property to an empty string causes
no label to be displayed.
Gtk.CellRendererProgress:text-xalign
The “text-xalign” property controls the horizontal alignment of the text in the progress bar. Valid values range from 0 (left) to 1 (right). Reserved for RTL layouts.
Gtk.CellRendererProgress:text-yalign
The “text-yalign” property controls the vertical alignment of the text in the progress bar. Valid values range from 0 (top) to 1 (bottom).
Gtk.CellRendererProgress:value
The “value” property determines the percentage to which the progress bar will be “filled in”.
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
Properties inherited from GtkOrientable (1)
Gtk.Orientable:orientation
The orientation of the orientable.
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
.