*/
EINA_DEPRECATED EAPI const char *elm_pager_item_style_default_get(const Evas_Object *obj);
+/**
+ * @brief Set the font size on the label object.
+ *
+ * @param obj The label object
+ * @param size font size
+ *
+ * @warning NEVER use this. It is for hyper-special cases only. use styles
+ * instead. e.g. "default", "marker", "slide_long" etc.
+ * @deprecated Use tag instead
+ */
+EAPI void elm_label_fontsize_set(Evas_Object *obj, int fontsize);
+
+/**
+ * @brief Set the text color on the label object
+ *
+ * @param obj The label object
+ * @param r Red property background color of The label object
+ * @param g Green property background color of The label object
+ * @param b Blue property background color of The label object
+ * @param a Alpha property background color of The label object
+ *
+ * @warning NEVER use this. It is for hyper-special cases only. use styles
+ * instead. e.g. "default", "marker", "slide_long" etc.
+ * @deprecated Use tag instead
+ */
+EAPI void elm_label_text_color_set(Evas_Object *obj, unsigned int r, unsigned int g, unsigned int b, unsigned int a);
+
+/**
+ * @brief Set the text align on the label object
+ *
+ * @param obj The label object
+ * @param align align mode ("left", "center", "right")
+ *
+ * @warning NEVER use this. It is for hyper-special cases only. use styles
+ * instead. e.g. "default", "marker", "slide_long" etc.
+ * @deprecated Use tag instead
+ */
+EAPI void elm_label_text_align_set(Evas_Object *obj, const char *alignmode);
+
+/**
+ * @brief Set background color of the label
+ *
+ * @param obj The label object
+ * @param r Red property background color of The label object
+ * @param g Green property background color of The label object
+ * @param b Blue property background color of The label object
+ * @param a Alpha property background alpha of The label object
+ *
+ * @warning NEVER use this. It is for hyper-special cases only. use styles
+ * instead. e.g. "default", "marker", "slide_long" etc.
+ * @deprecated Just make colored background by yourself.
+ */
+EAPI void elm_label_background_color_set(Evas_Object *obj, unsigned int r, unsigned int g, unsigned int b, unsigned int a);
/**
* @}
* text doesn't fit the geometry of the label it will be ellipsized or be
* cut. Elementary provides several styles for this widget:
* @li default - No animation
- * @li marker - Centers the text in the label and make it bold by default
+ * @li marker - Centers the text in the label and makes it bold by default
* @li slide_long - The entire text appears from the right of the screen and
* slides until it disappears in the left of the screen(reappearing on the
* right again).
*
* @warning This is only relevant if the label is inside a container.
*/
+//XXX: Maybe added for supporting multi-line ellpisis. Evas textlock supports multi-line ellipsis by itself, no more needs for this API.
EAPI void elm_label_wrap_height_set(Evas_Object *obj, Evas_Coord h);
/**
* @param obj The label object
* @return The wrap height in pixels at a minimum where words need to wrap
*/
+//XXX: Maybe added for supporting multi-line ellpisis. Evas textlock supports multi-line ellipsis by itself, no more needs for this API.
EAPI Evas_Coord elm_label_wrap_height_get(const Evas_Object *obj);
/**
- * @brief Set the font size on the label object.
- *
- * @param obj The label object
- * @param size font size
- *
- * @warning NEVER use this. It is for hyper-special cases only. use styles
- * instead. e.g. "default", "marker", "slide_long" etc.
- */
-EAPI void elm_label_fontsize_set(Evas_Object *obj, int fontsize);
-
-/**
- * @brief Set the text color on the label object
- *
- * @param obj The label object
- * @param r Red property background color of The label object
- * @param g Green property background color of The label object
- * @param b Blue property background color of The label object
- * @param a Alpha property background color of The label object
- *
- * @warning NEVER use this. It is for hyper-special cases only. use styles
- * instead. e.g. "default", "marker", "slide_long" etc.
- */
-EAPI void elm_label_text_color_set(Evas_Object *obj, unsigned int r, unsigned int g, unsigned int b, unsigned int a);
-
-/**
- * @brief Set the text align on the label object
- *
- * @param obj The label object
- * @param align align mode ("left", "center", "right")
- *
- * @warning NEVER use this. It is for hyper-special cases only. use styles
- * instead. e.g. "default", "marker", "slide_long" etc.
- */
-EAPI void elm_label_text_align_set(Evas_Object *obj, const char *alignmode);
-
-/**
- * @brief Set background color of the label
- *
- * @param obj The label object
- * @param r Red property background color of The label object
- * @param g Green property background color of The label object
- * @param b Blue property background color of The label object
- * @param a Alpha property background alpha of The label object
- *
- * @warning NEVER use this. It is for hyper-special cases only. use styles
- * instead. e.g. "default", "marker", "slide_long" etc.
- */
-EAPI void elm_label_background_color_set(Evas_Object *obj, unsigned int r, unsigned int g, unsigned int b, unsigned int a);
-
-/**
* @brief Set the ellipsis behavior of the label
*
* @param obj The label object
EAPI void elm_label_ellipsis_set(Evas_Object *obj, Eina_Bool ellipsis);
/**
- * @brief Set the text slide of the label
+ * @brief Get the ellipsis behavior of the label
+ *
+ * @param obj The label object
+ * @return If true, an ellipsis will be shown at the end of the label area.
+ *
+ * @see elm_label_ellipsis_set()
+ */
+EAPI Eina_Bool elm_label_ellipsis_get(const Evas_Object *obj);
+
+/**
+ * @brief Set sliding effect of label widget.
*
* @param obj The label object
- * @param slide To start slide or stop
+ * @param slide If true, sliding effect will be shown
*
* If set to true, the text of the label will slide/scroll through the length of
* label.
EAPI void elm_label_slide_set(Evas_Object *obj, Eina_Bool slide);
/**
- * @brief Get the text slide mode of the label
+ * @brief Get whether sliding effect is shown or not.
*
* @param obj The label object
- * @return slide slide mode value
+ * @return If true, sliding effect is shown.
*
* @see elm_label_slide_set()
*/
-EAPI Eina_Bool elm_label_slide_get(Evas_Object *obj);
+EAPI Eina_Bool elm_label_slide_get(const Evas_Object *obj);
/**
* @brief Set the slide duration(speed) of the label
*
* @param obj The label object
- * @return The duration in seconds in moving text from slide begin position
+ * @param duration The duration in seconds in moving text from slide begin position
* to slide end position
*/
EAPI void elm_label_slide_duration_set(Evas_Object *obj, double duration);
*
* @see elm_label_slide_duration_set()
*/
-EAPI double elm_label_slide_duration_get(Evas_Object *obj);
+EAPI double elm_label_slide_duration_get(const Evas_Object *obj);
/**
* @}