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.
default
default/left
default/right
marker
marker/left
marker/right
slide_long
slide_short
slide_bounce
Custom themes can of course invent new markup tags and style them any way they like.
slide,end
- The slide is end.
efl.elementary.
Label
(Object parent, *args, **kwargs)¶Bases: efl.elementary.__init__.LayoutClass
Parameters: |
|
---|
callback_slide_end_add
(func, *args, **kwargs)¶A slide effect has ended.
callback_slide_end_del
(func)¶ellipsis
¶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.
Warning
This doesn’t work with slide(slide
) or if the
chosen wrap method was ELM_WRAP_WORD.
Type: | bool |
---|
ellipsis_get
()¶ellipsis_set
(ellipsis)¶line_wrap_get
()¶line_wrap_set
(wrap)¶slide_duration
¶The duration time in moving text from slide begin position to slide end position
Type: | float |
---|
Note
If you set the speed of the slide using slide_speed
you cannot get the correct duration using this function until
the label is actually rendered and resized.
slide_duration_get
()¶slide_duration_set
(duration)¶slide_go
()¶Start the slide effect.
New in version 1.8.
slide_mode
¶Change the slide mode of the label widget.
By default, slide mode is none.
Type: | Slide modes |
---|
New in version 1.8.
slide_mode_get
()¶slide_mode_set
(mode)¶slide_speed
¶The speed of the slide animation in px per seconds
Type: | float |
---|
Note
If you set the duration of the slide using slide_duration
you cannot get the correct speed using this function until
the label is actually rendered and resized.
New in version 1.9.
slide_speed_get
()¶slide_speed_set
(speed)¶wrap_width
¶Wrap width of the label
This is the maximum width size hint of the label.
Warning
This is only relevant if the label is inside a container.
Type: | int |
---|
wrap_width_get
()¶wrap_width_set
(w)¶