11.43Class GtkCellRendererText

Renders text in a cell

Class GtkCellRendererText

A GtkCellRendererText renders a given text in its cell, using the font, color and style information provided by its properties. The text will be ellipsized if it is too long and the ellipsize property allows it.

If the mode is GTK_CELL_RENDERER_MODE_EDITABLE, the GtkCellRendererText allows to edit its text using an entry.

Adjust how text is drawn using object properties. Object properties can be set globally (with g_object_set()). Also, with GtkTreeViewColumn, you can bind a property to a value in a GtkTreeModel. For example, you can bind the "text" property on the cell renderer to a string value in the model, thus rendering a different string in each row of the GtkTreeView

Methods
set_fixed_height_from_fontSets the height of a renderer to explicitly be determined by the "font" and "y_pad" property set on it.
signal_editedThis signal is emitted after renderer has been edited.

Methods

set_fixed_height_from_font

Sets the height of a renderer to explicitly be determined by the "font" and "y_pad" property set on it.

GtkCellRendererText.set_fixed_height_from_font( number_of_rows )
number_of_rows Number of rows of text each cell renderer is allocated, or -1

Further changes in these properties do not affect the height, so they must be accompanied by a subsequent call to this function. Using this function is unflexible, and should really only be used if calculating the size of a cell is too slow (ie, a massive number of cells displayed). If number_of_rows is

signal_edited

This signal is emitted after renderer has been edited.

GtkCellRendererText.signal_edited()

It is the responsibility of the application to update the model and store new_text at the position indicated by path.

Made with http://www.falconpl.org