Exo Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#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).
Despite the rather confusing name of this class, it is mainly useful
to render text in an ExoIconView (or a GtkIconView), which require
the renderers to actually draw the state indicators. State indicators
will be drawn only if the
follow-state
property is TRUE
.
typedef struct _ExoCellRendererEllipsizedText ExoCellRendererEllipsizedText;
The ExoIconCellRendererEllipsizedText struct contains only private fields and should not be directly accessed.
GtkCellRenderer * exo_cell_renderer_ellipsized_text_new
(void
);
Creates a new ExoCellRendererEllipsizedText. Adjust rendering parameters using gobject properties,
which can be set globally via g_object_set()
. Also, with GtkCellLayout and GtkTreeViewColumn, you
can bind a property to a value in a GtkTreeModel.
Returns : |
the newly allocated ExoCellRendererEllipsizedText. |
"follow-state"
property"follow-state" gboolean : Read / Write
Specifies whether the text renderer should render the text based on the selection state of the items. This is necessary for ExoIconView which doesn't draw any item state indicators itself.
Default value: FALSE
Since 0.3.1.9