![]() | ![]() | ![]() | GTK+ Reference Manual | ![]() |
---|
GtkCellRendererText —
#include <gtk/gtk.h> struct GtkCellRendererText; GtkCellRenderer* gtk_cell_renderer_text_new (void); void gtk_cell_renderer_text_set_fixed_height_from_font (GtkCellRendererText *renderer,gint number_of_rows);
GObject +----GtkObject +----GtkCellRenderer +----GtkCellRendererText
"attributes"PangoAttrList : Read / Write "background"gchararray : Write "background-gdk"GdkColor : Read / Write "background-set"gboolean : Read / Write "editable"gboolean : Read / Write "editable-set"gboolean : Read / Write "family"gchararray : Read / Write "family-set"gboolean : Read / Write "font"gchararray : Read / Write "font-desc"PangoFontDescription : Read / Write "foreground"gchararray : Write "foreground-gdk"GdkColor : Read / Write "foreground-set"gboolean : Read / Write "markup"gchararray : Write "rise"gint : Read / Write "rise-set"gboolean : Read / Write "scale"gdouble : Read / Write "scale-set"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"gchararray : 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
"edited" void user_function (GtkCellRendererText *cellrenderertext,gchar *arg1,gchar *arg2,gpointer user_data);
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
Returns : | the new cell renderer |
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 number_of_rows is -1, then the fixed height is unset, and the height is determined by the properties again.
renderer : | A GtkCellRendererText |
number_of_rows : | Number of rows of text each cell renderer is allocated, or -1 |
void user_function (GtkCellRendererText *cellrenderertext,gchar *arg1,gchar *arg2,gpointer user_data);
cellrenderertext : | the object which received the signal. |
arg1 : | |
arg2 : | |
user_data : | user data set when the signal handler was connected. |
<< GtkCellRendererPixbuf | GtkCellRendererToggle >> |