Class: Gtk::CellRenderer
- Inherits:
-
GObject::InitiallyUnowned
- Object
- GObject::InitiallyUnowned
- Gtk::CellRenderer
- Defined in:
- (unknown)
Direct Known Subclasses
CellRendererPixbuf, CellRendererProgress, CellRendererSpinner, CellRendererText, CellRendererToggle
Instance Method Summary collapse
-
#activate(event, widget, path, background_area, cell_area, flags) ⇒ Boolean
Passes an activate event to the cell renderer for possible processing.
-
#cell_background=(cell_background) ⇒ String
Cell-background.
-
#cell_background_rgba ⇒ Gdk::RGBA
Cell background as a
GdkRGBA. -
#cell_background_rgba=(cell_background_rgba) ⇒ Gdk::RGBA
Cell background as a
GdkRGBA. - #cell_background_set=(cell_background_set) ⇒ Boolean
-
#cell_background_set? ⇒ Boolean
Cell-background-set.
- #editing=(editing) ⇒ Boolean
-
#editing? ⇒ Boolean
Editing.
-
#get_aligned_area(widget, flags, cell_area, aligned_area) ⇒ nil
Gets the aligned area used by cell inside cell_area.
-
#get_alignment(xalign, yalign) ⇒ nil
Fills in xalign and yalign with the appropriate values of cell.
-
#get_fixed_size(width, height) ⇒ nil
Fills in width and height with the appropriate size of cell.
-
#get_padding(xpad, ypad) ⇒ nil
Fills in xpad and ypad with the appropriate values of cell.
-
#get_preferred_height(widget, minimum_size, natural_size) ⇒ nil
Retrieves a renderer’s natural size when rendered to widget.
-
#get_preferred_height_for_width(widget, width, minimum_height, natural_height) ⇒ nil
Retrieves a cell renderers’s minimum and natural height if it were rendered to widget with the specified width.
-
#get_preferred_size(widget, minimum_size, natural_size) ⇒ nil
Retrieves the minimum and natural size of a cell taking into account the widget’s preference for height-for-width management.
-
#get_preferred_width(widget, minimum_size, natural_size) ⇒ nil
Retrieves a renderer’s natural size when rendered to widget.
-
#get_preferred_width_for_height(widget, height, minimum_width, natural_width) ⇒ nil
Retrieves a cell renderers’s minimum and natural width if it were rendered to widget with the specified height.
-
#get_state(widget, cell_state) ⇒ Gtk::StateFlags
Translates the cell renderer state to
GtkStateFlags, based on the cell renderer and widget sensitivity, and the givenGtkCellRendererState. -
#height ⇒ Integer
Height.
- #height=(height) ⇒ Integer
-
#is_activatable ⇒ Boolean
Checks whether the cell renderer can do something when activated.
-
#is_expanded ⇒ Boolean
Checks whether the given
GtkCellRendereris expanded. - #is_expanded=(is_expanded) ⇒ Boolean
-
#is_expanded? ⇒ Boolean
Is-expanded.
-
#is_expander ⇒ Boolean
Checks whether the given
GtkCellRendereris an expander. - #is_expander=(is_expander) ⇒ Boolean
-
#is_expander? ⇒ Boolean
Is-expander.
-
#mode ⇒ Gtk::CellRendererMode
Mode.
- #mode=(mode) ⇒ Gtk::CellRendererMode
-
#request_mode ⇒ Gtk::SizeRequestMode
Gets whether the cell renderer prefers a height-for-width layout or a width-for-height layout.
-
#sensitive ⇒ Boolean
Returns the cell renderer’s sensitivity.
- #sensitive=(sensitive) ⇒ Boolean
-
#sensitive? ⇒ Boolean
Sensitive.
-
#set_alignment(xalign, yalign) ⇒ nil
Sets the renderer’s alignment within its available space.
-
#set_fixed_size(width, height) ⇒ nil
Sets the renderer size to be explicit, independent of the properties set.
-
#set_padding(xpad, ypad) ⇒ nil
Sets the renderer’s padding.
-
#snapshot(snapshot, widget, background_area, cell_area, flags) ⇒ nil
Invokes the virtual render function of the
GtkCellRenderer. -
#start_editing(event, widget, path, background_area, cell_area, flags) ⇒ Gtk::CellEditable
Starts editing the contents of this cell, through a new
GtkCellEditablewidget created by theGtkCellRendererClass.start_editing virtual function. -
#stop_editing(canceled) ⇒ nil
Informs the cell renderer that the editing is stopped.
-
#visible ⇒ Boolean
Returns the cell renderer’s visibility.
- #visible=(visible) ⇒ Boolean
-
#visible? ⇒ Boolean
Visible.
-
#width ⇒ Integer
Width.
- #width=(width) ⇒ Integer
-
#xalign ⇒ Gtk::gfloat
Xalign.
- #xalign=(xalign) ⇒ Gtk::gfloat
-
#xpad ⇒ Integer
Xpad.
- #xpad=(xpad) ⇒ Integer
-
#yalign ⇒ Gtk::gfloat
Yalign.
- #yalign=(yalign) ⇒ Gtk::gfloat
-
#ypad ⇒ Integer
Ypad.
- #ypad=(ypad) ⇒ Integer
Instance Method Details
#activate(event, widget, path, background_area, cell_area, flags) ⇒ Boolean
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.
#cell_background=(cell_background) ⇒ String
Returns cell-background.
#cell_background_rgba ⇒ Gdk::RGBA
Cell background as a GdkRGBA
#cell_background_rgba=(cell_background_rgba) ⇒ Gdk::RGBA
Cell background as a GdkRGBA
#cell_background_set=(cell_background_set) ⇒ Boolean
#cell_background_set? ⇒ Boolean
Returns cell-background-set.
#editing=(editing) ⇒ Boolean
#editing? ⇒ Boolean
Returns editing.
#get_aligned_area(widget, flags, cell_area, aligned_area) ⇒ nil
Gets the aligned area used by cell inside cell_area. Used for finding the appropriate edit and focus rectangle.
#get_alignment(xalign, yalign) ⇒ nil
Fills in xalign and yalign with the appropriate values of cell.
#get_fixed_size(width, height) ⇒ nil
Fills in width and height with the appropriate size of cell.
#get_padding(xpad, ypad) ⇒ nil
Fills in xpad and ypad with the appropriate values of cell.
#get_preferred_height(widget, minimum_size, natural_size) ⇒ nil
Retrieves a renderer’s natural size when rendered to widget.
#get_preferred_height_for_width(widget, width, minimum_height, natural_height) ⇒ nil
Retrieves a cell renderers’s minimum and natural height if it were rendered to widget with the specified width.
#get_preferred_size(widget, minimum_size, natural_size) ⇒ nil
Retrieves the minimum and natural size of a cell taking into account the widget’s preference for height-for-width management.
#get_preferred_width(widget, minimum_size, natural_size) ⇒ nil
Retrieves a renderer’s natural size when rendered to widget.
#get_preferred_width_for_height(widget, height, minimum_width, natural_width) ⇒ nil
Retrieves a cell renderers’s minimum and natural width if it were rendered to widget with the specified height.
#get_state(widget, cell_state) ⇒ Gtk::StateFlags
Translates the cell renderer state to GtkStateFlags,
based on the cell renderer and widget sensitivity, and
the given GtkCellRendererState.
#height ⇒ Integer
Returns height.
#height=(height) ⇒ Integer
#is_activatable ⇒ Boolean
Checks whether the cell renderer can do something when activated.
#is_expanded ⇒ Boolean
Checks whether the given GtkCellRenderer is expanded.
#is_expanded=(is_expanded) ⇒ Boolean
#is_expanded? ⇒ Boolean
Returns is-expanded.
#is_expander ⇒ Boolean
Checks whether the given GtkCellRenderer is an expander.
#is_expander=(is_expander) ⇒ Boolean
#is_expander? ⇒ Boolean
Returns is-expander.
#mode ⇒ Gtk::CellRendererMode
Returns mode.
#mode=(mode) ⇒ Gtk::CellRendererMode
#request_mode ⇒ Gtk::SizeRequestMode
Gets whether the cell renderer prefers a height-for-width layout or a width-for-height layout.
#sensitive ⇒ Boolean
Returns the cell renderer’s sensitivity.
#sensitive=(sensitive) ⇒ Boolean
#sensitive? ⇒ Boolean
Returns sensitive.
#set_alignment(xalign, yalign) ⇒ nil
Sets the renderer’s alignment within its available space.
#set_fixed_size(width, height) ⇒ nil
Sets the renderer size to be explicit, independent of the properties set.
#set_padding(xpad, ypad) ⇒ nil
Sets the renderer’s padding.
#snapshot(snapshot, widget, background_area, cell_area, flags) ⇒ nil
Invokes the virtual render function of the GtkCellRenderer. The three
passed-in rectangles are areas in cr. Most renderers will draw within
cell_area; the xalign, yalign, xpad, and ypad fields of the GtkCellRenderer
should be honored with respect to cell_area. background_area includes the
blank space around the cell, and also the area containing the tree expander;
so the background_area rectangles for all cells tile to cover the entire
window.
#start_editing(event, widget, path, background_area, cell_area, flags) ⇒ Gtk::CellEditable
Starts editing the contents of this cell, through a new GtkCellEditable
widget created by the GtkCellRendererClass.start_editing virtual function.
#stop_editing(canceled) ⇒ nil
Informs the cell renderer that the editing is stopped.
If canceled is true, the cell renderer will emit the
GtkCellRenderer::editing-canceled signal.
This function should be called by cell renderer implementations
in response to the GtkCellEditable::editing-done signal of
GtkCellEditable.
#visible ⇒ Boolean
Returns the cell renderer’s visibility.
#visible=(visible) ⇒ Boolean
#visible? ⇒ Boolean
Returns visible.
#width ⇒ Integer
Returns width.
#width=(width) ⇒ Integer
#xalign ⇒ Gtk::gfloat
Returns xalign.
#xalign=(xalign) ⇒ Gtk::gfloat
#xpad ⇒ Integer
Returns xpad.
#xpad=(xpad) ⇒ Integer
#yalign ⇒ Gtk::gfloat
Returns yalign.
#yalign=(yalign) ⇒ Gtk::gfloat
#ypad ⇒ Integer
Returns ypad.