ExoEllipsizedLabel

## ExoEllipsizedLabel ExoEllipsizedLabel — A widget that automatically ellipsizes text |

## Synopsis

    #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);

## Object Hierarchy

      GObject
       +----GtkObject
             +----GtkWidget
                   +----GtkMisc
                         +----GtkLabel
                               +----ExoEllipsizedLabel

## Implemented Interfaces

ExoEllipsizedLabel implements AtkImplementorIface.

## Description

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.

## Details

### ExoEllipsizedLabel

    typedef struct _ExoEllipsizedLabel ExoEllipsizedLabel;

### exo_ellipsized_label_new ()

    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.

### exo_ellipsized_label_get_ellipsize ()

    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.

### exo_ellipsized_label_set_ellipsize ()

    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` : |

## See Also

GtkLabel, Exo Pango Extensions