Widget to display text, with simple html-like markup. More...
Functions | |
EINA_DEPRECATED void | elm_label_slide_set (Evas_Object *obj, Eina_Bool slide) |
Set slide effect of label widget. More... | |
EINA_DEPRECATED Eina_Bool | elm_label_slide_get (const Evas_Object *obj) |
Get whether slide effect is shown or not. More... | |
EOAPI void | elm_obj_label_wrap_width_set (Evas_Coord w) |
Set wrap width of the label. More... | |
EOAPI Evas_Coord | elm_obj_label_wrap_width_get (void) |
Get wrap width of the label. More... | |
EOAPI void | elm_obj_label_slide_speed_set (double speed) |
Set the slide speed of the label. More... | |
EOAPI double | elm_obj_label_slide_speed_get (void) |
Get the slide speed of the label. More... | |
EOAPI void | elm_obj_label_slide_mode_set (Elm_Label_Slide_Mode mode) |
Set the slide mode of the label widget. More... | |
EOAPI Elm_Label_Slide_Mode | elm_obj_label_slide_mode_get (void) |
Get the slide mode of the label widget. More... | |
EOAPI void | elm_obj_label_slide_duration_set (double duration) |
Set the slide duration of the label. More... | |
EOAPI double | elm_obj_label_slide_duration_get (void) |
Get the slide duration of the label. More... | |
EOAPI void | elm_obj_label_line_wrap_set (Elm_Wrap_Type wrap) |
Set the wrapping behavior of the label. More... | |
EOAPI Elm_Wrap_Type | elm_obj_label_line_wrap_get (void) |
Get the wrapping behavior of the label. More... | |
EOAPI void | elm_obj_label_ellipsis_set (Eina_Bool ellipsis) |
Set the ellipsis behavior of the label. More... | |
EOAPI Eina_Bool | elm_obj_label_ellipsis_get (void) |
Get the ellipsis behavior of the label. More... | |
EOAPI void | elm_obj_label_slide_go (void) |
Start slide effect. More... | |
void | elm_label::slide_go () const |
Start slide effect. More... | |
Evas_Coord | elm_label::wrap_width_get () const |
Get wrap width of the label. More... | |
void | elm_label::wrap_width_set (Evas_Coord w_) const |
Get wrap width of the label. More... | |
double | elm_label::slide_speed_get () const |
Get the slide speed of the label. More... | |
void | elm_label::slide_speed_set (double speed_) const |
Get the slide speed of the label. More... | |
Elm_Label_Slide_Mode | elm_label::slide_mode_get () const |
Get the slide mode of the label widget. More... | |
void | elm_label::slide_mode_set (Elm_Label_Slide_Mode mode_) const |
Get the slide mode of the label widget. More... | |
double | elm_label::slide_duration_get () const |
Get the slide duration of the label. More... | |
void | elm_label::slide_duration_set (double duration_) const |
Get the slide duration of the label. More... | |
Elm_Wrap_Type | elm_label::line_wrap_get () const |
Get the wrapping behavior of the label. More... | |
void | elm_label::line_wrap_set (Elm_Wrap_Type wrap_) const |
Get the wrapping behavior of the label. More... | |
bool | elm_label::ellipsis_get () const |
Get the ellipsis behavior of the label. More... | |
void | elm_label::ellipsis_set (bool ellipsis_) const |
Get the ellipsis behavior of the label. More... | |
void | elm_label_wrap_width_set (Elm_Label *obj, Evas_Coord w) |
Set wrap width of the label. More... | |
Evas_Coord | elm_label_wrap_width_get (const Elm_Label *obj) |
Get wrap width of the label. More... | |
void | elm_label_slide_speed_set (Elm_Label *obj, double speed) |
Set the slide speed of the label. More... | |
double | elm_label_slide_speed_get (const Elm_Label *obj) |
Get the slide speed of the label. More... | |
void | elm_label_slide_mode_set (Elm_Label *obj, Elm_Label_Slide_Mode mode) |
Set the slide mode of the label widget. More... | |
Elm_Label_Slide_Mode | elm_label_slide_mode_get (const Elm_Label *obj) |
Get the slide mode of the label widget. More... | |
void | elm_label_slide_duration_set (Elm_Label *obj, double duration) |
Set the slide duration of the label. More... | |
double | elm_label_slide_duration_get (const Elm_Label *obj) |
Get the slide duration of the label. More... | |
void | elm_label_line_wrap_set (Elm_Label *obj, Elm_Wrap_Type wrap) |
Set the wrapping behavior of the label. More... | |
Elm_Wrap_Type | elm_label_line_wrap_get (const Elm_Label *obj) |
Get the wrapping behavior of the label. More... | |
void | elm_label_ellipsis_set (Elm_Label *obj, Eina_Bool ellipsis) |
Set the ellipsis behavior of the label. More... | |
Eina_Bool | elm_label_ellipsis_get (const Elm_Label *obj) |
Get the ellipsis behavior of the label. More... | |
void | elm_label_slide_go (Elm_Label *obj) |
Start slide effect. More... | |
Evas_Object * | elm_label_add (Evas_Object *parent) |
Add a new label to the parent. More... | |
Widget to display text, with simple html-like markup.
The Label widget doesn't allow text to overflow its boundaries, if the text doesn't fit the geometry of the label it will be ellipsized or be cut. Elementary provides several styles for this widget:
Custom themes can of course invent new markup tags and style them any way they like.
This widget inherits from the Layout one, so that all the functions acting on it also work for label objects.
This widget emits the following signals, besides the ones sent from Layout:
"language,changed"
: The program's language changed. "slide,end"
: The slide is end.See Label example for a demonstration of how to use a label widget.
|
inline |
Get the ellipsis behavior of the label.
ellipsis | To ellipsis text or not |
References elm_obj_label_ellipsis_get().
|
inline |
Get the ellipsis behavior of the label.
ellipsis | To ellipsis text or not |
References elm_obj_label_ellipsis_set().
Evas_Object* elm_label_add | ( | Evas_Object * | parent | ) |
Add a new label to the parent.
parent | The parent object |
Eina_Bool elm_label_ellipsis_get | ( | const Elm_Label * | obj | ) |
Get the ellipsis behavior of the label.
References elm_obj_label_ellipsis_get().
void elm_label_ellipsis_set | ( | Elm_Label * | obj, |
Eina_Bool | ellipsis | ||
) |
Set the ellipsis behavior of the label.
If set to true and the text doesn't fit in the label an ellipsis("...") will be shown at the end of the widget.
[in] | ellipsis | To ellipsis text or not |
References elm_obj_label_ellipsis_set().
Elm_Wrap_Type elm_label_line_wrap_get | ( | const Elm_Label * | obj | ) |
Get the wrapping behavior of the label.
References elm_obj_label_line_wrap_get().
void elm_label_line_wrap_set | ( | Elm_Label * | obj, |
Elm_Wrap_Type | wrap | ||
) |
Set the wrapping behavior of the label.
By default no wrapping is done. Possible values for wrap
are:
[in] | wrap | To wrap text or not |
References elm_obj_label_line_wrap_set().
double elm_label_slide_duration_get | ( | const Elm_Label * | obj | ) |
Get the slide duration of the label.
References elm_obj_label_slide_duration_get().
void elm_label_slide_duration_set | ( | Elm_Label * | obj, |
double | duration | ||
) |
Set the slide duration of the label.
[in] | duration | The duration in seconds in moving text from slide begin position to slide end position |
References elm_obj_label_slide_duration_set().
EINA_DEPRECATED Eina_Bool elm_label_slide_get | ( | const Evas_Object * | obj | ) |
Get whether slide effect is shown or not.
obj | The label object |
References elm_label_slide_mode_get().
void elm_label_slide_go | ( | Elm_Label * | obj | ) |
Start slide effect.
References elm_obj_label_slide_go().
Elm_Label_Slide_Mode elm_label_slide_mode_get | ( | const Elm_Label * | obj | ) |
Get the slide mode of the label widget.
References elm_obj_label_slide_mode_get().
Referenced by elm_label_slide_get().
void elm_label_slide_mode_set | ( | Elm_Label * | obj, |
Elm_Label_Slide_Mode | mode | ||
) |
Set the slide mode of the label widget.
elm_label_slide_mode_set() changes label slide mode. By default, slide mode is none. Possible values for mode
are:
[in] | mode | The slide mode |
References elm_obj_label_slide_mode_set().
Referenced by elm_label_slide_set().
EINA_DEPRECATED void elm_label_slide_set | ( | Evas_Object * | obj, |
Eina_Bool | slide | ||
) |
Set slide effect of label widget.
obj | The label object |
slide | If true, slide effect will be shown |
If set to true, the text of the label will slide/scroll through the length of label.
References elm_label_slide_mode_set().
double elm_label_slide_speed_get | ( | const Elm_Label * | obj | ) |
Get the slide speed of the label.
References elm_obj_label_slide_speed_get().
void elm_label_slide_speed_set | ( | Elm_Label * | obj, |
double | speed | ||
) |
Set the slide speed of the label.
[in] | speed | The speed of the slide animation in px per seconds |
References elm_obj_label_slide_speed_set().
Evas_Coord elm_label_wrap_width_get | ( | const Elm_Label * | obj | ) |
Get wrap width of the label.
References elm_obj_label_wrap_width_get().
void elm_label_wrap_width_set | ( | Elm_Label * | obj, |
Evas_Coord | w | ||
) |
Set wrap width of the label.
This function sets the maximum width size hint of the label.
[in] | w | The wrap width in pixels at a minimum where words need to wrap |
References elm_obj_label_wrap_width_set().
EOAPI Eina_Bool elm_obj_label_ellipsis_get | ( | void | ) |
Get the ellipsis behavior of the label.
Referenced by elm_label::ellipsis_get(), and elm_label_ellipsis_get().
EOAPI void elm_obj_label_ellipsis_set | ( | Eina_Bool | ellipsis | ) |
Set the ellipsis behavior of the label.
If set to true and the text doesn't fit in the label an ellipsis("...") will be shown at the end of the widget.
[in] | ellipsis | To ellipsis text or not |
Referenced by elm_label::ellipsis_set(), and elm_label_ellipsis_set().
EOAPI Elm_Wrap_Type elm_obj_label_line_wrap_get | ( | void | ) |
Get the wrapping behavior of the label.
Referenced by elm_label_line_wrap_get(), and elm_label::line_wrap_get().
EOAPI void elm_obj_label_line_wrap_set | ( | Elm_Wrap_Type | wrap | ) |
Set the wrapping behavior of the label.
By default no wrapping is done. Possible values for wrap
are:
[in] | wrap | To wrap text or not |
Referenced by elm_label_line_wrap_set(), and elm_label::line_wrap_set().
EOAPI double elm_obj_label_slide_duration_get | ( | void | ) |
Get the slide duration of the label.
Referenced by elm_label_slide_duration_get(), and elm_label::slide_duration_get().
EOAPI void elm_obj_label_slide_duration_set | ( | double | duration | ) |
Set the slide duration of the label.
[in] | duration | The duration in seconds in moving text from slide begin position to slide end position |
Referenced by elm_label_slide_duration_set(), and elm_label::slide_duration_set().
EOAPI void elm_obj_label_slide_go | ( | void | ) |
Start slide effect.
Referenced by elm_label_slide_go(), and elm_label::slide_go().
EOAPI Elm_Label_Slide_Mode elm_obj_label_slide_mode_get | ( | void | ) |
Get the slide mode of the label widget.
Referenced by elm_label_slide_mode_get(), and elm_label::slide_mode_get().
EOAPI void elm_obj_label_slide_mode_set | ( | Elm_Label_Slide_Mode | mode | ) |
Set the slide mode of the label widget.
elm_label_slide_mode_set() changes label slide mode. By default, slide mode is none. Possible values for mode
are:
[in] | mode | The slide mode |
Referenced by elm_label_slide_mode_set(), and elm_label::slide_mode_set().
EOAPI double elm_obj_label_slide_speed_get | ( | void | ) |
Get the slide speed of the label.
Referenced by elm_label_slide_speed_get(), and elm_label::slide_speed_get().
EOAPI void elm_obj_label_slide_speed_set | ( | double | speed | ) |
Set the slide speed of the label.
[in] | speed | The speed of the slide animation in px per seconds |
Referenced by elm_label_slide_speed_set(), and elm_label::slide_speed_set().
EOAPI Evas_Coord elm_obj_label_wrap_width_get | ( | void | ) |
Get wrap width of the label.
Referenced by elm_label_wrap_width_get(), and elm_label::wrap_width_get().
EOAPI void elm_obj_label_wrap_width_set | ( | Evas_Coord | w | ) |
Set wrap width of the label.
This function sets the maximum width size hint of the label.
[in] | w | The wrap width in pixels at a minimum where words need to wrap |
Referenced by elm_label_wrap_width_set(), and elm_label::wrap_width_set().
|
inline |
Get the wrapping behavior of the label.
wrap | To wrap text or not |
References elm_obj_label_line_wrap_get().
|
inline |
Get the wrapping behavior of the label.
wrap | To wrap text or not |
References elm_obj_label_line_wrap_set().
|
inline |
Get the slide duration of the label.
duration | The duration in seconds in moving text from slide begin position to slide end position |
References elm_obj_label_slide_duration_get().
|
inline |
Get the slide duration of the label.
duration | The duration in seconds in moving text from slide begin position to slide end position |
References elm_obj_label_slide_duration_set().
|
inline |
Start slide effect.
References elm_obj_label_slide_go().
|
inline |
Get the slide mode of the label widget.
mode | The slide mode |
References elm_obj_label_slide_mode_get().
|
inline |
Get the slide mode of the label widget.
mode | The slide mode |
References elm_obj_label_slide_mode_set().
|
inline |
Get the slide speed of the label.
speed | The speed of the slide animation in px per seconds |
References elm_obj_label_slide_speed_get().
|
inline |
Get the slide speed of the label.
speed | The speed of the slide animation in px per seconds |
References elm_obj_label_slide_speed_set().
|
inline |
Get wrap width of the label.
w | The wrap width in pixels at a minimum where words need to wrap |
References elm_obj_label_wrap_width_get().
|
inline |
Get wrap width of the label.
w | The wrap width in pixels at a minimum where words need to wrap |
References elm_obj_label_wrap_width_set().