forked from enlightenment/efl
parent
dacd0c80c1
commit
4f6ed249a2
|
@ -60,7 +60,7 @@ _label_format_set(Evas_Object *obj,
|
|||
}
|
||||
|
||||
static void
|
||||
_label_sliding_change(Evas_Object *obj)
|
||||
_label_slide_change(Evas_Object *obj)
|
||||
{
|
||||
char *plaintxt;
|
||||
int plainlen = 0;
|
||||
|
@ -68,7 +68,7 @@ _label_sliding_change(Evas_Object *obj)
|
|||
ELM_LABEL_DATA_GET(obj, sd);
|
||||
Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
|
||||
|
||||
// doesn't support multiline sliding effect
|
||||
// doesn't support multiline slide effect
|
||||
if (sd->linewrap)
|
||||
{
|
||||
sd->slide = EINA_FALSE;
|
||||
|
@ -136,7 +136,7 @@ _elm_label_smart_theme(Eo *obj, void *_pd, va_list *list)
|
|||
if (!int_ret) goto end;
|
||||
|
||||
_label_format_set(wd->resize_obj, sd->format);
|
||||
_label_sliding_change(obj);
|
||||
_label_slide_change(obj);
|
||||
|
||||
end:
|
||||
evas_event_thaw(evas_object_evas_get(obj));
|
||||
|
@ -576,7 +576,7 @@ _slide_set(Eo *obj, void *_pd, va_list *list)
|
|||
if (sd->slide == slide) return;
|
||||
sd->slide = slide;
|
||||
|
||||
_label_sliding_change(obj);
|
||||
_label_slide_change(obj);
|
||||
elm_layout_sizing_eval(obj);
|
||||
}
|
||||
|
||||
|
@ -697,8 +697,8 @@ static const Eo_Op_Description op_desc[] = {
|
|||
EO_OP_DESCRIPTION(ELM_OBJ_LABEL_SUB_ID_WRAP_WIDTH_GET, "Get wrap width of the label."),
|
||||
EO_OP_DESCRIPTION(ELM_OBJ_LABEL_SUB_ID_ELLIPSIS_SET, "Set the ellipsis behavior of the label."),
|
||||
EO_OP_DESCRIPTION(ELM_OBJ_LABEL_SUB_ID_ELLIPSIS_GET, "Get the ellipsis behavior of the label."),
|
||||
EO_OP_DESCRIPTION(ELM_OBJ_LABEL_SUB_ID_SLIDE_SET, "Set sliding effect of label widget."),
|
||||
EO_OP_DESCRIPTION(ELM_OBJ_LABEL_SUB_ID_SLIDE_GET, "Get whether sliding effect is shown or not."),
|
||||
EO_OP_DESCRIPTION(ELM_OBJ_LABEL_SUB_ID_SLIDE_SET, "Set slide effect of label widget."),
|
||||
EO_OP_DESCRIPTION(ELM_OBJ_LABEL_SUB_ID_SLIDE_GET, "Get whether slide effect is shown or not."),
|
||||
EO_OP_DESCRIPTION(ELM_OBJ_LABEL_SUB_ID_SLIDE_DURATION_SET, "Set the slide duration (speed) of the label."),
|
||||
EO_OP_DESCRIPTION(ELM_OBJ_LABEL_SUB_ID_SLIDE_DURATION_GET, "Get the slide duration(speed) of the label."),
|
||||
EO_OP_DESCRIPTION_SENTINEL
|
||||
|
|
|
@ -139,7 +139,7 @@ enum
|
|||
* @def elm_obj_label_slide_set
|
||||
* @since 1.8
|
||||
*
|
||||
* @brief Set sliding effect of label widget.
|
||||
* @brief Set slide effect of label widget.
|
||||
*
|
||||
* @param[in] slide
|
||||
*
|
||||
|
@ -151,7 +151,7 @@ enum
|
|||
* @def elm_obj_label_slide_get
|
||||
* @since 1.8
|
||||
*
|
||||
* @brief Get whether sliding effect is shown or not.
|
||||
* @brief Get whether slide effect is shown or not.
|
||||
*
|
||||
* @param[out] ret
|
||||
*
|
||||
|
@ -275,10 +275,10 @@ EAPI void elm_label_ellipsis_set(Evas_Object *obj, Eina_B
|
|||
EAPI Eina_Bool elm_label_ellipsis_get(const Evas_Object *obj);
|
||||
|
||||
/**
|
||||
* @brief Set sliding effect of label widget.
|
||||
* @brief Set slide effect of label widget.
|
||||
*
|
||||
* @param obj The label object
|
||||
* @param slide If true, sliding effect will be shown
|
||||
* @param 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.
|
||||
|
@ -291,10 +291,10 @@ EAPI Eina_Bool elm_label_ellipsis_get(const Evas_Object *obj);
|
|||
EAPI void elm_label_slide_set(Evas_Object *obj, Eina_Bool slide);
|
||||
|
||||
/**
|
||||
* @brief Get whether sliding effect is shown or not.
|
||||
* @brief Get whether slide effect is shown or not.
|
||||
*
|
||||
* @param obj The label object
|
||||
* @return If true, sliding effect is shown.
|
||||
* @return If true, slide effect is shown.
|
||||
*
|
||||
* @see elm_label_slide_set()
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue