Synopsis
#include <gtk/gtk.h>
GtkCellRendererText;
GtkCellRenderer* gtk_cell_renderer_text_new (void);
void gtk_cell_renderer_text_set_fixed_height_from_font
(GtkCellRendererText *renderer,
gint number_of_rows);
Object Hierarchy
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkCellRenderer
+----GtkCellRendererText
+----GtkCellRendererAccel
+----GtkCellRendererCombo
+----GtkCellRendererSpin
Properties"align-set" gboolean : Read / Write "alignment" PangoAlignment : Read / Write "attributes" PangoAttrList* : Read / Write "background" gchar* : Write "background-gdk" GdkColor* : Read / Write "background-set" gboolean : Read / Write "editable" gboolean : Read / Write "editable-set" gboolean : Read / Write "ellipsize" PangoEllipsizeMode : Read / Write "ellipsize-set" gboolean : Read / Write "family" gchar* : Read / Write "family-set" gboolean : Read / Write "font" gchar* : Read / Write "font-desc" PangoFontDescription* : Read / Write "foreground" gchar* : Write "foreground-gdk" GdkColor* : Read / Write "foreground-set" gboolean : Read / Write "language" gchar* : Read / Write "language-set" gboolean : Read / Write "markup" gchar* : Write "rise" gint : Read / Write "rise-set" gboolean : Read / Write "scale" gdouble : Read / Write "scale-set" gboolean : Read / Write "single-paragraph-mode" gboolean : Read / Write "size" gint : Read / Write "size-points" gdouble : Read / Write "size-set" gboolean : Read / Write "stretch" PangoStretch : Read / Write "stretch-set" gboolean : Read / Write "strikethrough" gboolean : Read / Write "strikethrough-set" gboolean : Read / Write "style" PangoStyle : Read / Write "style-set" gboolean : Read / Write "text" gchar* : Read / Write "underline" PangoUnderline : Read / Write "underline-set" gboolean : Read / Write "variant" PangoVariant : Read / Write "variant-set" gboolean : Read / Write "weight" gint : Read / Write "weight-set" gboolean : Read / Write "width-chars" gint : Read / Write "wrap-mode" PangoWrapMode : Read / Write "wrap-width" gint : Read / Write DescriptionA 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 Detailsgtk_cell_renderer_text_new ()GtkCellRenderer* gtk_cell_renderer_text_new (void);
Creates a new GtkCellRendererText. Adjust how text is drawn using
object properties. Object properties can be
set globally (with
gtk_cell_renderer_text_set_fixed_height_from_font ()void gtk_cell_renderer_text_set_fixed_height_from_font
(GtkCellRendererText *renderer,
gint number_of_rows);
Sets the height of a renderer to explicitly be determined by the "font" and
"y_pad" property set on it. 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
Property DetailsThe
| ||||||||||||||||||||||||
|
the object which received the signal |
|
the path identifying the edited cell |
|
the new text |
|
user data set when the signal handler was connected. |