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:
default - No animation
marker - Centers the text in the label and makes it bold by default
slides until it disappears in the left of the screen(reappearing on the right again).
the right to show the overflow. When all of the text has been shown the position is reset.
the right to show the overflow. When all of the text has been shown the animation reverses, moving the text to the left.
Custom themes can of course invent new markup tags and style them any way they like.
This widget emits the following signals, besides the ones sent from LayoutClass:
No wrap
Wrap between characters
Wrap in allowed wrapping points (as defined in the unicode standard)
Word wrap, and if that fails, char wrap.
The label will never slide.
The label slide if the content is bigger than it’s container.
The label will always slide.
Bases: efl.elementary.layout_class.LayoutClass
This is the class that actually implements the widget.
The program’s language changed.
A slide effect has ended.
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 |
|---|
The wrapping behavior of the label
By default no wrapping is done.
| Type : | Wrap modes |
|---|
Deprecated since version 1.8: Use slide_mode instead.
The duration time in moving text from slide begin position to slide end position
| Type : | float |
|---|
Deprecated since version 1.8: Use slide_mode instead.
Start the slide effect.
New in version 1.8.
Change the slide mode of the label widget.
By default, slide mode is none.
| Type : | Slide modes |
|---|
New in version 1.8.
Deprecated since version 1.8: Use slide_mode instead.
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 |
|---|