efl/src/lib/elementary/elm_label.eo

134 lines
3.9 KiB
Plaintext

import elm_general;
enum Elm.Label.Slide_Mode
{
[[Slide mode of a label widget]]
none = 0, [[No slide effect.]]
auto, [[Slide only if the label area is bigger than the text width length.]]
always [[Slide always.]]
}
class Elm.Label (Efl.Ui.Layout, Efl.Ui.Legacy)
{
[[Elementary label class]]
legacy_prefix: elm_label;
eo_prefix: elm_obj_label;
event_prefix: elm_label;
methods {
@property wrap_width {
[[Control wrap width of the label
This function sets the maximum width size hint of the label.
Warning: This is only relevant if the label is inside a container.]]
set {
}
get {
}
values {
w: int; [[The wrap width in pixels at a minimum where words need to wrap]]
}
}
@property slide_speed {
[[Control the slide speed of the label
Note: If you set the duration of the slide using @.slide_duration.set
you cannot get the correct speed using this function until the label
is actually rendered and resized.
See @.slide_duration.set]]
set {
}
get {
}
values {
speed: double; [[The speed of the slide animation in px per seconds]]
}
}
@property slide_mode {
[[Control the slide mode of the label widget.
By default, slide mode is none. Possible values for $mode are:
@Elm.Label.Slide_Mode.none - no slide effect
@Elm.Label.Slide_Mode.auto - slide only if the label area is bigger than
the text width length
@Elm.Label.Slide_Mode.always - slide always
Warning: @Elm.Label.Slide_Mode.auto, @Elm.Label.Slide_Mode.always only work
with the themes "slide_short", "slide_long" and "slide_bounce".
Warning: @Elm.Label.Slide_Mode.auto, @Elm.Label.Slide_Mode.always don't work
if the line wrap(elm_label_line_wrap_set()) or
ellipsis(elm_label_ellipsis_set()) is set.
@since 1.8]]
set {
}
get {
}
values {
mode: Elm.Label.Slide_Mode; [[The slide mode]]
}
}
@property slide_duration {
[[Control the slide duration of the label
Note: If you set the speed of the slide using @.slide_speed.set
you cannot get the correct duration using this function until the label
is actually rendered and resized.]]
set {
}
get {
}
values {
duration: double; [[The duration in seconds in moving text from slide begin position to slide end position]]
}
}
@property line_wrap {
[[Control the wrapping behavior of the label
By default no wrapping is done. Possible values for $wrap are:
$ELM_WRAP_NONE - No wrapping
$ELM_WRAP_CHAR - wrap between characters
$ELM_WRAP_WORD - wrap between words
$ELM_WRAP_MIXED - Word wrap, and if that fails, char wrap]]
set {
}
get {
}
values {
wrap: Elm.Wrap.Type; [[To wrap text or not]]
}
}
@property ellipsis {
[[Control 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(elm_label_slide_set()) or if the
chosen wrap method was $ELM_WRAP_WORD.]]
set {
}
get {
}
values {
ellipsis: bool; [[To ellipsis text or not]]
}
}
slide_go {
[[Start slide effect.
See @.slide_mode.set.]]
}
}
implements {
class.constructor;
Efl.Object.constructor;
Efl.Ui.Widget.theme_apply;
Efl.Part.part;
}
events {
slide,end; [[Called when slide stopped]]
}
}