#ifndef _ELM_LABEL_EO_H_
#define _ELM_LABEL_EO_H_

#ifndef _ELM_LABEL_EO_CLASS_TYPE
#define _ELM_LABEL_EO_CLASS_TYPE

typedef Eo Elm_Label;

#endif

#ifndef _ELM_LABEL_EO_TYPES
#define _ELM_LABEL_EO_TYPES

/** Slide mode of a label widget
 *
 * @ingroup Elm_Label
 */
typedef enum
{
  ELM_LABEL_SLIDE_MODE_NONE = 0, /** 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. */
} Elm_Label_Slide_Mode;


#endif
#define ELM_LABEL_CLASS elm_label_class_get()

EAPI const Eo_Class *elm_label_class_get(void) EINA_CONST;

/**
 * @brief Control wrap width of the label
 *
 * This function sets the minimum and the maximum width size hint of the label.
 *
 * When the width is set to 0, there will be no size hint for both the minimum
 * and the maximum width.
 *
 * @warning This is only relevant if the label is inside a container. When a
 * wrap mode is disabled, only the minimum size hint will be decided. That is,
 * with this case, the maximum size hint does not be used.
 *
 * @if MOBILE @since_tizen 2.3 @elseif WEARABLE @since_tizen 2.3.1 @endif
 *
 * @param[in] w The wrap width in pixels where words need to wrap
 *
 * @ingroup Elm_Label
 */
EOAPI void  elm_obj_label_wrap_width_set(Evas_Coord w);

/**
 * @brief Control wrap width of the label
 *
 * This function sets the minimum and the maximum width size hint of the label.
 *
 * When the width is set to 0, there will be no size hint for both the minimum
 * and the maximum width.
 *
 * @warning This is only relevant if the label is inside a container. When a
 * wrap mode is disabled, only the minimum size hint will be decided. That is,
 * with this case, the maximum size hint does not be used.
 *
 * @if MOBILE @since_tizen 2.3 @elseif WEARABLE @since_tizen 2.3.1 @endif
 *
 * @return The wrap width in pixels where words need to wrap
 *
 * @ingroup Elm_Label
 */
EOAPI Evas_Coord  elm_obj_label_wrap_width_get(void);

/**
 * @brief Control the slide speed of the label
 *
 * @note If you set the duration of the slide using
 * @ref elm_obj_label_slide_duration_set you cannot get the correct speed using
 * this function until the label is actually rendered and resized.
 *
 * See @ref elm_obj_label_slide_duration_set
 *
 * @if MOBILE @since_tizen 3.0 @elseif WEARABLE @since_tizen 3.0 @endif
 *
 * @param[in] speed The speed of the slide animation in px per seconds
 *
 * @ingroup Elm_Label
 */
EOAPI void  elm_obj_label_slide_speed_set(double speed);

/**
 * @brief Control the slide speed of the label
 *
 * @note If you set the duration of the slide using
 * @ref elm_obj_label_slide_duration_set you cannot get the correct speed using
 * this function until the label is actually rendered and resized.
 *
 * See @ref elm_obj_label_slide_duration_set
 *
 * @if MOBILE @since_tizen 3.0 @elseif WEARABLE @since_tizen 3.0 @endif
 *
 * @return The speed of the slide animation in px per seconds
 *
 * @ingroup Elm_Label
 */
EOAPI double  elm_obj_label_slide_speed_get(void);

/**
 * @brief Control the slide mode of the label widget.
 *
 * By default, slide mode is none. Possible values for @c mode are:
 * @ref Elm_Label_Slide_Mode.ELM_LABEL_SLIDE_MODE_NONE - no slide effect
 * @ref Elm_Label_Slide_Mode.ELM_LABEL_SLIDE_MODE_AUTO - slide only if the
 * label area is bigger than the text width length
 * @ref Elm_Label_Slide_Mode.ELM_LABEL_SLIDE_MODE_ALWAYS - slide always
 *
 * @warning @ref Elm_Label_Slide_Mode.ELM_LABEL_SLIDE_MODE_AUTO,
 * @ref Elm_Label_Slide_Mode.ELM_LABEL_SLIDE_MODE_ALWAYS only work with the
 * themes "slide_short", "slide_long" and "slide_bounce". Warning:
 * @ref Elm_Label_Slide_Mode.ELM_LABEL_SLIDE_MODE_AUTO,
 * @ref Elm_Label_Slide_Mode.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.
 *
 * @if MOBILE @since_tizen 2.3 @elseif WEARABLE @since_tizen 2.3.1 @endif
 *
 * @param[in] mode The slide mode
 *
 * @since 1.8
 *
 * @ingroup Elm_Label
 */
EOAPI void  elm_obj_label_slide_mode_set(Elm_Label_Slide_Mode mode);

/**
 * @brief Control the slide mode of the label widget.
 *
 * By default, slide mode is none. Possible values for @c mode are:
 * @ref Elm_Label_Slide_Mode.ELM_LABEL_SLIDE_MODE_NONE - no slide effect
 * @ref Elm_Label_Slide_Mode.ELM_LABEL_SLIDE_MODE_AUTO - slide only if the
 * label area is bigger than the text width length
 * @ref Elm_Label_Slide_Mode.ELM_LABEL_SLIDE_MODE_ALWAYS - slide always
 *
 * @warning @ref Elm_Label_Slide_Mode.ELM_LABEL_SLIDE_MODE_AUTO,
 * @ref Elm_Label_Slide_Mode.ELM_LABEL_SLIDE_MODE_ALWAYS only work with the
 * themes "slide_short", "slide_long" and "slide_bounce". Warning:
 * @ref Elm_Label_Slide_Mode.ELM_LABEL_SLIDE_MODE_AUTO,
 * @ref Elm_Label_Slide_Mode.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.
 *
 * @if MOBILE @since_tizen 2.3 @elseif WEARABLE @since_tizen 2.3.1 @endif
 *
 * @return The slide mode
 *
 * @since 1.8
 *
 * @ingroup Elm_Label
 */
EOAPI Elm_Label_Slide_Mode  elm_obj_label_slide_mode_get(void);

/**
 * @brief Control the slide duration of the label
 *
 * @note If you set the speed of the slide using
 * @ref elm_obj_label_slide_speed_set you cannot get the correct duration using
 * this function until the label is actually rendered and resized.
 *
 * @if MOBILE @since_tizen 2.3 @elseif WEARABLE @since_tizen 2.3.1 @endif
 *
 * @param[in] duration The duration in seconds in moving text from slide begin
 * position to slide end position
 *
 * @ingroup Elm_Label
 */
EOAPI void  elm_obj_label_slide_duration_set(double duration);

/**
 * @brief Control the slide duration of the label
 *
 * @note If you set the speed of the slide using
 * @ref elm_obj_label_slide_speed_set you cannot get the correct duration using
 * this function until the label is actually rendered and resized.
 *
 * @if MOBILE @since_tizen 2.3 @elseif WEARABLE @since_tizen 2.3.1 @endif
 *
 * @return The duration in seconds in moving text from slide begin position to
 * slide end position
 *
 * @ingroup Elm_Label
 */
EOAPI double  elm_obj_label_slide_duration_get(void);

/**
 * @brief Control the wrapping behavior of the label
 *
 * By default no wrapping is done. Possible values for @c wrap are:
 * @c ELM_WRAP_NONE - No wrapping @c ELM_WRAP_CHAR - wrap between characters
 * @c ELM_WRAP_WORD - wrap between words @c ELM_WRAP_MIXED - Word wrap, and if
 * that fails, char wrap
 *
 * @if MOBILE @since_tizen 2.3 @elseif WEARABLE @since_tizen 2.3.1 @endif
 *
 * @param[in] wrap To wrap text or not
 *
 * @ingroup Elm_Label
 */
EOAPI void  elm_obj_label_line_wrap_set(Elm_Wrap_Type wrap);

/**
 * @brief Control the wrapping behavior of the label
 *
 * By default no wrapping is done. Possible values for @c wrap are:
 * @c ELM_WRAP_NONE - No wrapping @c ELM_WRAP_CHAR - wrap between characters
 * @c ELM_WRAP_WORD - wrap between words @c ELM_WRAP_MIXED - Word wrap, and if
 * that fails, char wrap
 *
 * @if MOBILE @since_tizen 2.3 @elseif WEARABLE @since_tizen 2.3.1 @endif
 *
 * @return To wrap text or not
 *
 * @ingroup Elm_Label
 */
EOAPI Elm_Wrap_Type  elm_obj_label_line_wrap_get(void);

/**
 * @brief 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 @c ELM_WRAP_WORD.
 *
 * @if MOBILE @since_tizen 2.3 @elseif WEARABLE @since_tizen 2.3.1 @endif
 *
 * @param[in] ellipsis To ellipsis text or not
 *
 * @ingroup Elm_Label
 */
EOAPI void  elm_obj_label_ellipsis_set(Eina_Bool ellipsis);

/**
 * @brief 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 @c ELM_WRAP_WORD.
 *
 * @if MOBILE @since_tizen 2.3 @elseif WEARABLE @since_tizen 2.3.1 @endif
 *
 * @return To ellipsis text or not
 *
 * @ingroup Elm_Label
 */
EOAPI Eina_Bool  elm_obj_label_ellipsis_get(void);

/**
 * @brief Start slide effect.
 *
 * See @ref elm_obj_label_slide_mode_set.
 *
 * @if MOBILE @since_tizen 2.3 @elseif WEARABLE @since_tizen 2.3.1 @endif
 *
 * @ingroup Elm_Label
 */
EOAPI void  elm_obj_label_slide_go(void);

EOAPI void  elm_obj_label_text_style_user_push(const char *style);

EOAPI void  elm_obj_label_text_style_user_pop(void);

EOAPI const char * elm_obj_label_text_style_user_peek(void);

EOAPI extern const Eo_Event_Description _ELM_LABEL_EVENT_LANGUAGE_CHANGED;
EOAPI extern const Eo_Event_Description _ELM_LABEL_EVENT_ACCESS_CHANGED;
EOAPI extern const Eo_Event_Description _ELM_LABEL_EVENT_SLIDE_END;

/**
 * No description
 */
#define ELM_LABEL_EVENT_LANGUAGE_CHANGED (&(_ELM_LABEL_EVENT_LANGUAGE_CHANGED))

/**
 * No description
 */
#define ELM_LABEL_EVENT_ACCESS_CHANGED (&(_ELM_LABEL_EVENT_ACCESS_CHANGED))

/**
 * No description
 */
#define ELM_LABEL_EVENT_SLIDE_END (&(_ELM_LABEL_EVENT_SLIDE_END))

#endif
