| exo Reference Manual | ||||
|---|---|---|---|---|
ExoCellRendererEllipsizedTextExoCellRendererEllipsizedText — Renders text in a cell and optionally ellipsizes the text. |
#include <exo/exo.h>
ExoCellRendererEllipsizedText;
GtkCellRenderer* exo_cell_renderer_ellipsized_text_new
(void);
GObject +----GInitiallyUnowned +----GtkObject +----GtkCellRenderer +----GtkCellRendererText +----ExoCellRendererEllipsizedText
The ExoCellRendererEllipsizedText renders a given text in its cell, using the font, color and style information provided by its properties (which are actually inherited from GtkCellRendererText). The text will be ellipsized if its too long and the "ellipsize" property allows it.
ExoCellRendererEllipsizedText is compatible with Gtk+ 2.5 and above in that it automatically detects if GtkCellRendererText has the "ellipsize" property and reuses the built-in functionality if available. For Gtk+ 2.4, it uses the Pango Extensions to ellipsize text properly.
As of exo 0.3.1.8, ExoCellRendererEllipsizedText is deprecated and should not be used in newly written code. Instead use GtkCellRendererText directly, which supports the "ellipsize" property since GTK+ 2.6.
typedef struct _ExoCellRendererEllipsizedText ExoCellRendererEllipsizedText;
ExoCellRendererEllipsizedText is deprecated and should not be used in newly-written code.
GtkCellRenderer* exo_cell_renderer_ellipsized_text_new (void);
exo_cell_renderer_ellipsized_text_new has been deprecated since version 0.3.1.8 and should not be used in newly-written code. Use GtkCellRendererText instead.
Creates a new ExoCellRendererEllipsizedText. 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.
| Returns : | The new cell renderer. |