ExoCellRendererEllipsizedText

ExoCellRendererEllipsizedText — Renders text in a cell and optionally ellipsizes the text.

Synopsis


#include <exo/exo.h>


struct      ExoCellRendererEllipsizedText;
GtkCellRenderer* exo_cell_renderer_ellipsized_text_new
                                            (void);


Object Hierarchy


  GObject
   +----GtkObject
         +----GtkCellRenderer
               +----GtkCellRendererText
                     +----ExoCellRendererEllipsizedText

Properties


  "ellipsize"            ExoPangoEllipsizeMode : Read / Write
  "ellipsize-set"        gboolean             : Read / Write

Description

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.

Details

struct ExoCellRendererEllipsizedText

struct ExoCellRendererEllipsizedText;


exo_cell_renderer_ellipsized_text_new ()

GtkCellRenderer* exo_cell_renderer_ellipsized_text_new
                                            (void);

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.

Properties

"ellipsize" (ExoPangoEllipsizeMode : Read / Write)

The preferred place to ellipsize the string, if the cell renderer does not have enough room to display the entire string, if at all.

"ellipsize-set" (gboolean : Read / Write)

Whether this tag affects the ellipsize mode.

See Also

GtkCellRendererText, Exo Pango Extensions