| exo Reference Manual |
|---|
ExoEllipsizedLabelExoEllipsizedLabel — A widget that automatically ellipsizes text |
#include <exo/exo.h>
ExoEllipsizedLabel;
GtkWidget* exo_ellipsized_label_new (const gchar *text);
ExoPangoEllipsizeMode exo_ellipsized_label_get_ellipsize
(ExoEllipsizedLabel *label);
void exo_ellipsized_label_set_ellipsize
(ExoEllipsizedLabel *label,
ExoPangoEllipsizeMode mode);
GObject
+----GtkObject
+----GtkWidget
+----GtkMisc
+----GtkLabel
+----ExoEllipsizedLabel
ExoEllipsizedLabel extends the standard GtkLabel class present in Gtk+ 2.4 with the ability to automatically ellipsize text with "...".
ExoEllipsizedLabel automatically detects if its running with Gtk+ 2.5 or above and uses the native ellipsizing support of Gtk+ 2.5 or above in that case. So its safe to use ExoEllipsizedLabel with every Gtk+ version above 2.4.
GtkWidget* exo_ellipsized_label_new (const gchar *text);
Creates a new ExoEllipsizedLabel with the given
text inside it. You can pass NULL to get an
empty label widget.
text : |
The text of the label. |
| Returns : | The new ExoEllipsizedLabel. |
ExoPangoEllipsizeMode exo_ellipsized_label_get_ellipsize (ExoEllipsizedLabel *label);
Returns the ellipsizing position of the label.
See exo_ellipsized_label_set_ellipsize().
label : |
An ExoEllipsizedLabel. |
| Returns : | An ExoPangoEllipsizeMode. |
void exo_ellipsized_label_set_ellipsize
(ExoEllipsizedLabel *label,
ExoPangoEllipsizeMode mode);
Sets the mode used to ellipsize (add an ellipsis: "...") to the text if there is not enough space to render the entire string.
label : |
An ExoEllipsizedLabel. |
mode : |
| << ExoCellRendererEllipsizedText | ExoIconBar >> |