Eolian: Eo header clean and legacy integration.

Elementary Slider
  Elementary SlideShow
  Elementary Spinner
  Elementary Systray
  Elementary Table
  Elementary Thumb
  Elementary Toolbar
  Elementary Video
  Elementary Web
  Elementary Win
devs/felipealmeida/promises
Yossi Kantor 9 years ago committed by Daniel Zaoui
parent e4f4de0604
commit 3de6b07a86
  1. 23
      legacy/elementary/src/lib/Makefile.am
  2. 1
      legacy/elementary/src/lib/elm_slider.h
  3. 3
      legacy/elementary/src/lib/elm_slider_common.h
  4. 362
      legacy/elementary/src/lib/elm_slider_eo.h
  5. 368
      legacy/elementary/src/lib/elm_slider_legacy.h
  6. 378
      legacy/elementary/src/lib/elm_slideshow_eo.h
  7. 413
      legacy/elementary/src/lib/elm_slideshow_legacy.h
  8. 306
      legacy/elementary/src/lib/elm_spinner_eo.h
  9. 368
      legacy/elementary/src/lib/elm_spinner_legacy.h
  10. 288
      legacy/elementary/src/lib/elm_systray_eo.h
  11. 182
      legacy/elementary/src/lib/elm_table_eo.h
  12. 101
      legacy/elementary/src/lib/elm_table_legacy.h
  13. 380
      legacy/elementary/src/lib/elm_thumb_eo.h
  14. 336
      legacy/elementary/src/lib/elm_thumb_legacy.h
  15. 401
      legacy/elementary/src/lib/elm_toolbar_eo.h
  16. 505
      legacy/elementary/src/lib/elm_toolbar_legacy.h
  17. 288
      legacy/elementary/src/lib/elm_video_eo.h
  18. 201
      legacy/elementary/src/lib/elm_video_legacy.h
  19. 726
      legacy/elementary/src/lib/elm_web_eo.h
  20. 666
      legacy/elementary/src/lib/elm_web_legacy.h
  21. 1372
      legacy/elementary/src/lib/elm_win_eo.h
  22. 1435
      legacy/elementary/src/lib/elm_win_legacy.h

@ -352,6 +352,7 @@ elm_separator.h \
elm_separator_eo.h \
elm_separator_legacy.h \
elm_slider.h \
elm_slider_common.h \
elm_slider_eo.h \
elm_slider_legacy.h \
elm_slideshow.h \
@ -741,24 +742,33 @@ BUILT_SOURCES = \
elm_separator.eo.legacy.h \
elm_slider.eo.c \
elm_slider.eo.h \
elm_slider.eo.legacy.h \
elm_slideshow.eo.c \
elm_slideshow.eo.h \
elm_slideshow.eo.legacy.h \
elm_spinner.eo.c \
elm_spinner.eo.h \
elm_spinner.eo.legacy.h \
elm_systray.eo.c \
elm_systray.eo.h \
elm_table.eo.c \
elm_table.eo.h \
elm_table.eo.legacy.h \
elm_thumb.eo.c \
elm_thumb.eo.h \
elm_thumb.eo.legacy.h \
elm_toolbar.eo.c \
elm_toolbar.eo.h \
elm_toolbar.eo.legacy.h \
elm_video.eo.c \
elm_video.eo.h \
elm_video.eo.legacy.h \
elm_web.eo.c \
elm_web.eo.h \
elm_web.eo.legacy.h \
elm_win.eo.c \
elm_win.eo.h
elm_win.eo.h \
elm_win.eo.legacy.h
EXTRA_DIST += \
elm_widget.eo \
@ -990,4 +1000,13 @@ nodist_includesunstable_HEADERS = \
elm_route.eo.legacy.h \
elm_scroller.eo.legacy.h \
elm_segment_control.eo.legacy.h \
elm_separator.eo.legacy.h
elm_separator.eo.legacy.h \
elm_slider.eo.legacy.h \
elm_slideshow.eo.legacy.h \
elm_spinner.eo.legacy.h \
elm_table.eo.legacy.h \
elm_thumb.eo.legacy.h \
elm_toolbar.eo.legacy.h \
elm_video.eo.legacy.h \
elm_web.eo.legacy.h \
elm_win.eo.legacy.h

@ -74,6 +74,7 @@
* @{
*/
#include "elm_slider_common.h"
#ifdef EFL_EO_API_SUPPORT
#include "elm_slider_eo.h"
#endif

@ -0,0 +1,3 @@
typedef char *(*slider_func_type)(double);
typedef void (*slider_freefunc_type)(char *);

@ -1,363 +1 @@
typedef char *(*slider_func_type)(double);
typedef void (*slider_freefunc_type)(char *);
#include "elm_slider.eo.h"
#if 0
#define ELM_OBJ_SLIDER_CLASS elm_obj_slider_class_get()
const Eo_Class *elm_obj_slider_class_get(void) EINA_CONST;
extern EAPI Eo_Op ELM_OBJ_SLIDER_BASE_ID;
enum
{
ELM_OBJ_SLIDER_SUB_ID_SPAN_SIZE_SET,
ELM_OBJ_SLIDER_SUB_ID_SPAN_SIZE_GET,
ELM_OBJ_SLIDER_SUB_ID_UNIT_FORMAT_SET,
ELM_OBJ_SLIDER_SUB_ID_UNIT_FORMAT_GET,
ELM_OBJ_SLIDER_SUB_ID_INDICATOR_FORMAT_SET,
ELM_OBJ_SLIDER_SUB_ID_INDICATOR_FORMAT_GET,
ELM_OBJ_SLIDER_SUB_ID_HORIZONTAL_SET,
ELM_OBJ_SLIDER_SUB_ID_HORIZONTAL_GET,
ELM_OBJ_SLIDER_SUB_ID_MIN_MAX_SET,
ELM_OBJ_SLIDER_SUB_ID_MIN_MAX_GET,
ELM_OBJ_SLIDER_SUB_ID_VALUE_SET,
ELM_OBJ_SLIDER_SUB_ID_VALUE_GET,
ELM_OBJ_SLIDER_SUB_ID_INVERTED_SET,
ELM_OBJ_SLIDER_SUB_ID_INVERTED_GET,
ELM_OBJ_SLIDER_SUB_ID_INDICATOR_FORMAT_FUNCTION_SET,
ELM_OBJ_SLIDER_SUB_ID_UNITS_FORMAT_FUNCTION_SET,
ELM_OBJ_SLIDER_SUB_ID_INDICATOR_SHOW_SET,
ELM_OBJ_SLIDER_SUB_ID_INDICATOR_SHOW_GET,
ELM_OBJ_SLIDER_SUB_ID_STEP_SET,
ELM_OBJ_SLIDER_SUB_ID_STEP_GET,
ELM_OBJ_SLIDER_SUB_ID_INDICATOR_SHOW_ON_FOCUS_SET,
ELM_OBJ_SLIDER_SUB_ID_INDICATOR_SHOW_ON_FOCUS_GET,
ELM_OBJ_SLIDER_SUB_ID_LAST
};
#define ELM_OBJ_SLIDER_ID(sub_id) (ELM_OBJ_SLIDER_BASE_ID + sub_id)
/**
* @def elm_obj_slider_span_size_set
* @since 1.8
*
* Set the (exact) length of the bar region of a given slider widget.
*
* @param[in] size
*
* @see elm_slider_span_size_set
*
* @ingroup Slider
*/
#define elm_obj_slider_span_size_set(size) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_SPAN_SIZE_SET), EO_TYPECHECK(Evas_Coord, size)
/**
* @def elm_obj_slider_span_size_get
* @since 1.8
*
* Get the length set for the bar region of a given slider widget
*
* @param[out] ret
*
* @see elm_slider_span_size_get
*
* @ingroup Slider
*/
#define elm_obj_slider_span_size_get(ret) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_SPAN_SIZE_GET), EO_TYPECHECK(Evas_Coord *, ret)
/**
* @def elm_obj_slider_unit_format_set
* @since 1.8
*
* Set the format string for the unit label.
*
* @param[in] units
*
* @see elm_slider_unit_format_set
*
* @ingroup Slider
*/
#define elm_obj_slider_unit_format_set(units) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_UNIT_FORMAT_SET), EO_TYPECHECK(const char *, units)
/**
* @def elm_obj_slider_unit_format_get
* @since 1.8
*
* Get the unit label format of the slider.
*
* @param[out] ret
*
* @see elm_slider_unit_format_get
*
* @ingroup Slider
*/
#define elm_obj_slider_unit_format_get(ret) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_UNIT_FORMAT_GET), EO_TYPECHECK(const char **, ret)
/**
* @def elm_obj_slider_indicator_format_set
* @since 1.8
*
* Set the format string for the indicator label.
*
* @param[in] indicator
*
* @see elm_slider_indicator_format_set
*
* @ingroup Slider
*/
#define elm_obj_slider_indicator_format_set(indicator) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_INDICATOR_FORMAT_SET), EO_TYPECHECK(const char *, indicator)
/**
* @def elm_obj_slider_indicator_format_get
* @since 1.8
*
* Get the indicator label format of the slider.
*
* @param[out] ret
*
* @see elm_slider_indicator_format_get
*
* @ingroup Slider
*/
#define elm_obj_slider_indicator_format_get(ret) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_INDICATOR_FORMAT_GET), EO_TYPECHECK(const char **, ret)
/**
* @def elm_obj_slider_horizontal_set
* @since 1.8
*
* Set the orientation of a given slider widget.
*
* @param[in] horizontal
*
* @see elm_slider_horizontal_set
*
* @ingroup Slider
*/
#define elm_obj_slider_horizontal_set(horizontal) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_HORIZONTAL_SET), EO_TYPECHECK(Eina_Bool, horizontal)
/**
* @def elm_obj_slider_horizontal_get
* @since 1.8
*
* Retrieve the orientation of a given slider widget
*
* @param[out] ret
*
* @see elm_slider_horizontal_get
*
* @ingroup Slider
*/
#define elm_obj_slider_horizontal_get(ret) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_HORIZONTAL_GET), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_slider_min_max_set
* @since 1.8
*
* Set the minimum and maximum values for the slider.
*
* @param[in] min
* @param[in] max
*
* @see elm_slider_min_max_set
*
* @ingroup Slider
*/
#define elm_obj_slider_min_max_set(min, max) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_MIN_MAX_SET), EO_TYPECHECK(double, min), EO_TYPECHECK(double, max)
/**
* @def elm_obj_slider_min_max_get
* @since 1.8
*
* Get the minimum and maximum values of the slider.
*
* @param[out] min
* @param[out] max
*
* @see elm_slider_min_max_get
*
* @ingroup Slider
*/
#define elm_obj_slider_min_max_get(min, max) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_MIN_MAX_GET), EO_TYPECHECK(double *, min), EO_TYPECHECK(double *, max)
/**
* @def elm_obj_slider_value_set
* @since 1.8
*
* Set the value the slider displays.
*
* @param[in] val
*
* @see elm_slider_value_set
*
* @ingroup Slider
*/
#define elm_obj_slider_value_set(val) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_VALUE_SET), EO_TYPECHECK(double, val)
/**
* @def elm_obj_slider_value_get
* @since 1.8
*
* Get the value displayed by the slider.
*
* @param[out] ret
*
* @see elm_slider_value_get
*
* @ingroup Slider
*/
#define elm_obj_slider_value_get(ret) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_VALUE_GET), EO_TYPECHECK(double *, ret)
/**
* @def elm_obj_slider_inverted_set
* @since 1.8
*
* Invert a given slider widget's displaying values order
*
* @param[in] inverted
*
* @see elm_slider_inverted_set
*
* @ingroup Slider
*/
#define elm_obj_slider_inverted_set(inverted) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_INVERTED_SET), EO_TYPECHECK(Eina_Bool, inverted)
/**
* @def elm_obj_slider_inverted_get
* @since 1.8
*
* Get whether a given slider widget's displaying values are
* inverted or not.
*
* @param[out] ret
*
* @see elm_slider_inverted_get
*
* @ingroup Slider
*/
#define elm_obj_slider_inverted_get(ret) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_INVERTED_GET), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_slider_indicator_format_function_set
* @since 1.8
*
* Set the format function pointer for the indicator label
*
* @param[in] func
* @param[in] free_func
*
* @see elm_slider_indicator_format_function_set
*
* @ingroup Slider
*/
#define elm_obj_slider_indicator_format_function_set(func, free_func) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_INDICATOR_FORMAT_FUNCTION_SET), EO_TYPECHECK(slider_func_type, func), EO_TYPECHECK(slider_freefunc_type, free_func)
/**
* @def elm_obj_slider_units_format_function_set
* @since 1.8
*
* Set the format function pointer for the units label
*
* @param[in] func
* @param[in] free_func
*
* @see elm_slider_units_format_function_set
*
* @ingroup Slider
*/
#define elm_obj_slider_units_format_function_set(func, free_func) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_UNITS_FORMAT_FUNCTION_SET), EO_TYPECHECK(slider_func_type, func), EO_TYPECHECK(slider_freefunc_type, free_func)
/**
* @def elm_obj_slider_indicator_show_set
* @since 1.9
*
* Set whether to enlarge slider indicator (augmented knob) or not.
*
* @param[in] show
*
* @see elm_slider_indicator_show_set
*
* @ingroup Slider
*/
#define elm_obj_slider_indicator_show_set(show) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_INDICATOR_SHOW_SET), EO_TYPECHECK(Eina_Bool, show)
/**
* @def elm_obj_slider_indicator_show_get
* @since 1.8
*
* Get whether a given slider widget's enlarging indicator or not.
*
* @param[out] ret
*
* @see elm_slider_indicator_show_get
*
* @ingroup Slider
*/
#define elm_obj_slider_indicator_show_get(ret) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_INDICATOR_SHOW_GET), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_slider_step_set
* @since 1.8
*
* Set the step by which slider indicator will move.
*
* This value is used when draggable object is moved automatically i.e., in case
* of key event when up/down/left/right key is pressed or in case when
* accessibility is set and flick event is used to inc/dec slider values.
* By default step value is equal to 0.05.
*
* @param[in] step
*
* @see elm_slider_step_set
*
* @ingroup Slider
*/
#define elm_obj_slider_step_set(step) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_STEP_SET), EO_TYPECHECK(double, step)
/**
* @def elm_obj_slider_step_get
* @since 1.8
*
* Get the step by which slider indicator moves.
*
* @param[out] ret
*
* @see elm_slider_step_get
*
* @ingroup Slider
*/
#define elm_obj_slider_step_get(ret) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_STEP_GET), EO_TYPECHECK(double *, ret)
/**
* @def elm_obj_slider_indicator_show_on_focus_set
* @since 1.9
*
* show indicator of slider on focus
*
* @param[in] flag
*
* @see elm_slider_indicator_show_on_focus_set
*
* @ingroup Slider
*/
#define elm_obj_slider_indicator_show_on_focus_set(flag) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_INDICATOR_SHOW_ON_FOCUS_SET), EO_TYPECHECK(Eina_Bool, flag)
/**
* @def elm_obj_slider_indicator_show_on_focus_get
* @since 1.9
*
* Get whether the indicator of the slider is set or not
*
* @param[out] ret
*
* @see elm_slider_indicator_show_on_focus_get
*
* @ingroup Slider
*/
#define elm_obj_slider_indicator_show_on_focus_get(ret) ELM_OBJ_SLIDER_ID(ELM_OBJ_SLIDER_SUB_ID_INDICATOR_SHOW_ON_FOCUS_GET), EO_TYPECHECK(Eina_Bool*, ret)
#endif

@ -11,370 +11,4 @@
*/
EAPI Evas_Object *elm_slider_add(Evas_Object *parent);
/**
* Set the (exact) length of the bar region of a given slider widget.
*
* @param obj The slider object.
* @param size The length of the slider's bar region.
*
* This sets the minimum width (when in horizontal mode) or height
* (when in vertical mode) of the actual bar area of the slider
* @p obj. This in turn affects the object's minimum size. Use
* this when you're not setting other size hints expanding on the
* given direction (like weight and alignment hints) and you would
* like it to have a specific size.
*
* @note Icon, end, label, indicator and unit text around @p obj
* will require their
* own space, which will make @p obj to require more the @p size,
* actually.
*
* @see elm_slider_span_size_get()
*
* @ingroup Slider
*/
EAPI void elm_slider_span_size_set(Evas_Object *obj, Evas_Coord size);
/**
* Get the length set for the bar region of a given slider widget
*
* @param obj The slider object.
* @return The length of the slider's bar region.
*
* If that size was not set previously, with
* elm_slider_span_size_set(), this call will return @c 0.
*
* @ingroup Slider
*/
EAPI Evas_Coord elm_slider_span_size_get(const Evas_Object *obj);
/**
* Set the format string for the unit label.
*
* @param obj The slider object.
* @param format The format string for the unit display.
*
* Unit label is displayed all the time, if set, after slider's bar.
* In horizontal mode, at right and in vertical mode, at bottom.
*
* If @c NULL, unit label won't be visible. If not it sets the format
* string for the label text. To the label text is provided a floating point
* value, so the label text can display up to 1 floating point value.
* Note that this is optional.
*
* Use a format string such as "%1.2f meters" for example, and it will
* display values like: "3.14 meters" for a value equal to 3.14159.
*
* Default is unit label disabled.
*
* @see elm_slider_indicator_format_get()
*
* @ingroup Slider
*/
EAPI void elm_slider_unit_format_set(Evas_Object *obj, const char *format);
/**
* Get the unit label format of the slider.
*
* @param obj The slider object.
* @return The unit label format string in UTF-8.
*
* Unit label is displayed all the time, if set, after slider's bar.
* In horizontal mode, at right and in vertical mode, at bottom.
*
* @see elm_slider_unit_format_set() for more
* information on how this works.
*
* @ingroup Slider
*/
EAPI const char *elm_slider_unit_format_get(const Evas_Object *obj);
/**
* Set the format string for the indicator label.
*
* @param obj The slider object.
* @param indicator The format string for the indicator display.
*
* The slider may display its value somewhere else then unit label,
* for example, above the slider knob that is dragged around. This function
* sets the format string used for this.
*
* If @c NULL, indicator label won't be visible. If not it sets the format
* string for the label text. To the label text is provided a floating point
* value, so the label text can display up to 1 floating point value.
* Note that this is optional.
*
* Use a format string such as "%1.2f meters" for example, and it will
* display values like: "3.14 meters" for a value equal to 3.14159.
*
* Default is indicator label disabled.
*
* @see elm_slider_indicator_format_get()
*
* @ingroup Slider
*/
EAPI void elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator);
/**
* Get the indicator label format of the slider.
*
* @param obj The slider object.
* @return The indicator label format string in UTF-8.
*
* The slider may display its value somewhere else then unit label,
* for example, above the slider knob that is dragged around. This function
* gets the format string used for this.
*
* @see elm_slider_indicator_format_set() for more
* information on how this works.
*
* @ingroup Slider
*/
EAPI const char *elm_slider_indicator_format_get(const Evas_Object *obj);
/**
* Set the orientation of a given slider widget.
*
* @param obj The slider object.
* @param horizontal Use @c EINA_TRUE to make @p obj to be
* @b horizontal, @c EINA_FALSE to make it @b vertical.
*
* Use this function to change how your slider is to be
* disposed: vertically or horizontally.
*
* By default it's displayed horizontally.
*
* @see elm_slider_horizontal_get()
*
* @ingroup Slider
*/
EAPI void elm_slider_horizontal_set(Evas_Object *obj, Eina_Bool horizontal);
/**
* Retrieve the orientation of a given slider widget
*
* @param obj The slider object.
* @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
* @c EINA_FALSE if it's @b vertical (and on errors).
*
* @see elm_slider_horizontal_set() for more details.
*
* @ingroup Slider
*/
EAPI Eina_Bool elm_slider_horizontal_get(const Evas_Object *obj);
/**
* Set the minimum and maximum values for the slider.
*
* @param obj The slider object.
* @param min The minimum value.
* @param max The maximum value.
*
* Define the allowed range of values to be selected by the user.
*
* If actual value is less than @p min, it will be updated to @p min. If it
* is bigger then @p max, will be updated to @p max. Actual value can be
* get with elm_slider_value_get().
*
* By default, min is equal to 0.0, and max is equal to 1.0.
*
* @warning Maximum must be greater than minimum, otherwise behavior
* is undefined.
*
* @see elm_slider_min_max_get()
*
* @ingroup Slider
*/
EAPI void elm_slider_min_max_set(Evas_Object *obj, double min, double max);
/**
* Get the minimum and maximum values of the slider.
*
* @param obj The slider object.
* @param min Pointer to store the minimum value.
* @param max Pointer to store the maximum value.
*
* @note If only one value is needed, the other pointer can be passed
* as @c NULL.
*
* @see elm_slider_min_max_set() for details.
*
* @ingroup Slider
*/
EAPI void elm_slider_min_max_get(const Evas_Object *obj, double *min, double *max);
/**
* Set the value the slider displays.
*
* @param obj The slider object.
* @param val The value to be displayed.
*
* Value will be presented on the unit label following format specified with
* elm_slider_unit_format_set() and on indicator with
* elm_slider_indicator_format_set().
*
* @warning The value must to be between min and max values. This values
* are set by elm_slider_min_max_set().
*
* @see elm_slider_value_get()
* @see elm_slider_unit_format_set()
* @see elm_slider_indicator_format_set()
* @see elm_slider_min_max_set()
*
* @ingroup Slider
*/
EAPI void elm_slider_value_set(Evas_Object *obj, double val);
/**
* Get the value displayed by the slider.
*
* @param obj The slider object.
* @return The value displayed.
*
* @see elm_slider_value_set() for details.
*
* @ingroup Slider
*/
EAPI double elm_slider_value_get(const Evas_Object *obj);
/**
* Invert a given slider widget's displaying values order
*
* @param obj The slider object.
* @param inverted Use @c EINA_TRUE to make @p obj inverted,
* @c EINA_FALSE to bring it back to default, non-inverted values.
*
* A slider may be @b inverted, in which state it gets its
* values inverted, with high vales being on the left or top and
* low values on the right or bottom, as opposed to normally have
* the low values on the former and high values on the latter,
* respectively, for horizontal and vertical modes.
*
* @see elm_slider_inverted_get()
*
* @ingroup Slider
*/
EAPI void elm_slider_inverted_set(Evas_Object *obj, Eina_Bool inverted);
/**
* Get whether a given slider widget's displaying values are
* inverted or not.
*
* @param obj The slider object.
* @return @c EINA_TRUE, if @p obj has inverted values,
* @c EINA_FALSE otherwise (and on errors).
*
* @see elm_slider_inverted_set() for more details.
*
* @ingroup Slider
*/
EAPI Eina_Bool elm_slider_inverted_get(const Evas_Object *obj);
/**
* Set the format function pointer for the indicator label
*
* @param obj The slider object.
* @param func The indicator format function.
* @param free_func The freeing function for the format string.
*
* Set the callback function to format the indicator string.
*
* @see elm_slider_indicator_format_set() for more info on how this works.
*
* @ingroup Slider
*/
EAPI void elm_slider_indicator_format_function_set(Evas_Object *obj, char *(*func)(double val), void (*free_func)(char *str));
/**
* Set the format function pointer for the units label
*
* @param obj The slider object.
* @param func The units format function.
* @param free_func The freeing function for the format string.
*
* Set the callback function to format the units string.
*
* @see elm_slider_unit_format_set() for more info on how this works.
*
* @ingroup Slider
*/
EAPI void elm_slider_units_format_function_set(Evas_Object *obj, char *(*func)(double val), void (*free_func)(char *str));
/**
* Set whether to enlarge slider indicator (augmented knob) or not.
*
* @param obj The slider object.
* @param show @c EINA_TRUE will make it enlarge, @c EINA_FALSE will
* let the knob always at default size.
*
* By default, indicator will be bigger while dragged by the user.
*
* @warning It won't display values set with
* elm_slider_indicator_format_set() if you disable indicator.
*
* @ingroup Slider
*/
EAPI void elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show);
/**
* Get whether a given slider widget's enlarging indicator or not.
*
* @param obj The slider object.
* @return @c EINA_TRUE, if @p obj is enlarging indicator, or
* @c EINA_FALSE otherwise (and on errors).
*
* @see elm_slider_indicator_show_set() for details.
*
* @ingroup Slider
*/
EAPI Eina_Bool elm_slider_indicator_show_get(const Evas_Object *obj);
/**
* Set the step by which slider indicator will move.
*
* @param obj The slider object.
* @param step The step value.
*
* This value is used when draggable object is moved automatically i.e., in case
* of key event when up/down/left/right key is pressed or in case when
* accessibility is set and flick event is used to inc/dec slider values.
* By default step value is equal to 0.05.
*
* @see elm_slider_step_get() for more details.
*
* @ingroup Slider
*/
EAPI void elm_slider_step_set(Evas_Object *obj, double step);
/**
* Get the step by which slider indicator moves.
*
* @param obj The slider object.
* @return The step value.
*
* @see elm_slider_step_set() for more details.
*
* @ingroup Slider
*/
EAPI double elm_slider_step_get(const Evas_Object *obj);
/**
* Show the indicator of slider on focus
*
* @param obj The slider object.
* @param flag @ EINA_TRUE sets the indicator visible
*
* @ingroup Slider
*/
EAPI void elm_slider_indicator_show_on_focus_set(Evas_Object *obj, Eina_Bool flag);
/**
* Get whether the indicator of the slider is set or not
*
* @param obj The slider object.
* @return @c EINA_TRUE, if indicator is set
* @c EINA_FALSE otherwise.
*
* @ingroup Slider
*/
EAPI Eina_Bool elm_slider_indicator_show_on_focus_get(const Evas_Object *obj);
#include "elm_slider.eo.legacy.h"

@ -1,377 +1 @@
#include "elm_slideshow.eo.h"
#if 0
#define ELM_OBJ_SLIDESHOW_CLASS elm_obj_slideshow_class_get()
const Eo_Class *elm_obj_slideshow_class_get(void) EINA_CONST;
extern EAPI Eo_Op ELM_OBJ_SLIDESHOW_BASE_ID;
enum
{
ELM_OBJ_SLIDESHOW_SUB_ID_ITEM_ADD,
ELM_OBJ_SLIDESHOW_SUB_ID_ITEM_SORTED_INSERT,
ELM_OBJ_SLIDESHOW_SUB_ID_NEXT,
ELM_OBJ_SLIDESHOW_SUB_ID_PREVIOUS,
ELM_OBJ_SLIDESHOW_SUB_ID_TRANSITIONS_GET,
ELM_OBJ_SLIDESHOW_SUB_ID_LAYOUTS_GET,
ELM_OBJ_SLIDESHOW_SUB_ID_TRANSITION_SET,
ELM_OBJ_SLIDESHOW_SUB_ID_TRANSITION_GET,
ELM_OBJ_SLIDESHOW_SUB_ID_TIMEOUT_SET,
ELM_OBJ_SLIDESHOW_SUB_ID_TIMEOUT_GET,
ELM_OBJ_SLIDESHOW_SUB_ID_LOOP_SET,
ELM_OBJ_SLIDESHOW_SUB_ID_LAYOUT_GET,
ELM_OBJ_SLIDESHOW_SUB_ID_LAYOUT_SET,
ELM_OBJ_SLIDESHOW_SUB_ID_LOOP_GET,
ELM_OBJ_SLIDESHOW_SUB_ID_CLEAR,
ELM_OBJ_SLIDESHOW_SUB_ID_ITEMS_GET,
ELM_OBJ_SLIDESHOW_SUB_ID_ITEM_CURRENT_GET,
ELM_OBJ_SLIDESHOW_SUB_ID_CACHE_BEFORE_GET,
ELM_OBJ_SLIDESHOW_SUB_ID_CACHE_BEFORE_SET,
ELM_OBJ_SLIDESHOW_SUB_ID_CACHE_AFTER_GET,
ELM_OBJ_SLIDESHOW_SUB_ID_CACHE_AFTER_SET,
ELM_OBJ_SLIDESHOW_SUB_ID_ITEM_NTH_GET,
ELM_OBJ_SLIDESHOW_SUB_ID_COUNT_GET,
ELM_OBJ_SLIDESHOW_SUB_ID_LAST
};
#define ELM_OBJ_SLIDESHOW_ID(sub_id) (ELM_OBJ_SLIDESHOW_BASE_ID + sub_id)
/**
* @def elm_obj_slideshow_item_add
* @since 1.8
*
* Add (append) a new item in a given slideshow widget.
*
* @param[in] itc
* @param[in] data
* @param[out] ret
*
* @see elm_slideshow_item_add
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_item_add(itc, data, ret) ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_ITEM_ADD), EO_TYPECHECK(const Elm_Slideshow_Item_Class *, itc), EO_TYPECHECK(const void *, data), EO_TYPECHECK(Elm_Object_Item **, ret)
/**
* @def elm_obj_slideshow_item_sorted_insert
* @since 1.8
*
* Insert a new item into the given slideshow widget, using the func
* function to sort items (by item handles).
*
* @param[in] itc
* @param[in] data
* @param[in] func
* @param[out] ret
*
* @see elm_slideshow_item_sorted_insert
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_item_sorted_insert(itc, data, func, ret) ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_ITEM_SORTED_INSERT), EO_TYPECHECK(const Elm_Slideshow_Item_Class *, itc), EO_TYPECHECK(const void *, data), EO_TYPECHECK(Eina_Compare_Cb, func), EO_TYPECHECK(Elm_Object_Item **, ret)
/**
* @def elm_obj_slideshow_next
* @since 1.8
*
* Slide to the next item, in a given slideshow widget
*
*
* @see elm_slideshow_next
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_next() ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_NEXT)
/**
* @def elm_obj_slideshow_previous
* @since 1.8
*
* Slide to the previous item, in a given slideshow widget
*
*
* @see elm_slideshow_previous
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_previous() ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_PREVIOUS)
/**
* @def elm_obj_slideshow_transitions_get
* @since 1.8
*
* Returns the list of sliding transition/effect names available, for a
* given slideshow widget.
*
* @param[out] ret
*
* @see elm_slideshow_transitions_get
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_transitions_get(ret) ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_TRANSITIONS_GET), EO_TYPECHECK(const Eina_List **, ret)
/**
* @def elm_obj_slideshow_layouts_get
* @since 1.8
*
* Returns the list of layout names available, for a given
* slideshow widget.
*
* @param[out] ret
*
* @see elm_slideshow_layouts_get
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_layouts_get(ret) ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_LAYOUTS_GET), EO_TYPECHECK(const Eina_List **, ret)
/**
* @def elm_obj_slideshow_transition_set
* @since 1.8
*
* Set the current slide transition/effect in use for a given
* slideshow widget.
*
* @param[in] transition
*
* @see elm_slideshow_transition_set
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_transition_set(transition) ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_TRANSITION_SET), EO_TYPECHECK(const char *, transition)
/**
* @def elm_obj_slideshow_transition_get
* @since 1.8
*
* Get the current slide transition/effect in use for a given
* slideshow widget.
*
* @param[out] ret
*
* @see elm_slideshow_transition_get
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_transition_get(ret) ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_TRANSITION_GET), EO_TYPECHECK(const char **, ret)
/**
* @def elm_obj_slideshow_timeout_set
* @since 1.8
*
* Set the interval between each image transition on a given
* slideshow widget.
*
* @param[in] timeout
*
* @see elm_slideshow_timeout_set
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_timeout_set(timeout) ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_TIMEOUT_SET), EO_TYPECHECK(double, timeout)
/**
* @def elm_obj_slideshow_timeout_get
* @since 1.8
*
* Get the interval set for image transitions on a given slideshow
* widget.
*
* @param[out] ret
*
* @see elm_slideshow_timeout_get
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_timeout_get(ret) ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_TIMEOUT_GET), EO_TYPECHECK(double *, ret)
/**
* @def elm_obj_slideshow_loop_set
* @since 1.8
*
* Set if, after a slideshow is started, for a given slideshow
* widget.
*
* @param[in] loop
*
* @see elm_slideshow_loop_set
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_loop_set(loop) ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_LOOP_SET), EO_TYPECHECK(Eina_Bool, loop)
/**
* @def elm_obj_slideshow_layout_get
* @since 1.8
*
* Get the current slide layout in use for a given slideshow widget
*
* @param[out] ret
*
* @see elm_slideshow_layout_get
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_layout_get(ret) ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_LAYOUT_GET), EO_TYPECHECK(const char **, ret)
/**
* @def elm_obj_slideshow_layout_set
* @since 1.8
*
* Set the current slide layout in use for a given slideshow widget
*
* @param[in] layout
*
* @see elm_slideshow_layout_set
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_layout_set(layout) ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_LAYOUT_SET), EO_TYPECHECK(const char *, layout)
/**
* @def elm_obj_slideshow_loop_get
* @since 1.8
*
* Get if, after a slideshow is started, for a given slideshow
* widget.
*
* @param[out] ret
*
* @see elm_slideshow_loop_get
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_loop_get(ret) ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_LOOP_GET), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_slideshow_clear
* @since 1.8
*
* Remove all items from a given slideshow widget
*
*
* @see elm_slideshow_clear
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_clear() ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_CLEAR)
/**
* @def elm_obj_slideshow_items_get
* @since 1.8
*
* Get the internal list of items in a given slideshow widget.
*
* @param[out] ret
*
* @see elm_slideshow_items_get
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_items_get(ret) ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_ITEMS_GET), EO_TYPECHECK(const Eina_List **, ret)
/**
* @def elm_obj_slideshow_item_current_get
* @since 1.8
*
* Returns the currently displayed item, in a given slideshow widget
*
* @param[out] ret
*
* @see elm_slideshow_item_current_get
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_item_current_get(ret) ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_ITEM_CURRENT_GET), EO_TYPECHECK(Elm_Object_Item **, ret)
/**
* @def elm_obj_slideshow_cache_before_get
* @since 1.8
*
* Retrieve the number of items to cache, on a given slideshow widget,
*
* @param[out] ret
*
* @see elm_slideshow_cache_before_get
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_cache_before_get(ret) ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_CACHE_BEFORE_GET), EO_TYPECHECK(int *, ret)
/**
* @def elm_obj_slideshow_cache_before_set
* @since 1.8
*
* Set the number of items to cache, on a given slideshow widget,
*
* @param[in] count
*
* @see elm_slideshow_cache_before_set
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_cache_before_set(count) ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_CACHE_BEFORE_SET), EO_TYPECHECK(int, count)
/**
* @def elm_obj_slideshow_cache_after_get
* @since 1.8
*
* Retrieve the number of items to cache, on a given slideshow widget,
* <b>after the current item</b>
*
* @param[out] ret
*
* @see elm_slideshow_cache_after_get
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_cache_after_get(ret) ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_CACHE_AFTER_GET), EO_TYPECHECK(int *, ret)
/**
* @def elm_obj_slideshow_cache_after_set
* @since 1.8
*
* Set the number of items to cache, on a given slideshow widget,
* <b>after the current item</b>
*
* @param[in] count
*
* @see elm_slideshow_cache_after_set
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_cache_after_set(count) ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_CACHE_AFTER_SET), EO_TYPECHECK(int, count)
/**
* @def elm_obj_slideshow_item_nth_get
* @since 1.8
*
* Get the the item, in a given slideshow widget, placed at
* position @p nth, in its internal items list
*
* @param[in] nth
* @param[out] ret
*
* @see elm_slideshow_item_nth_get
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_item_nth_get(nth, ret) ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_ITEM_NTH_GET), EO_TYPECHECK(unsigned int, nth), EO_TYPECHECK(Elm_Object_Item **, ret)
/**
* @def elm_obj_slideshow_count_get
* @since 1.8
*
* Get the number of items stored in a given slideshow widget
*
* @param[out] ret
*
* @see elm_slideshow_count_get
*
* @ingroup Slideshow
*/
#define elm_obj_slideshow_count_get(ret) ELM_OBJ_SLIDESHOW_ID(ELM_OBJ_SLIDESHOW_SUB_ID_COUNT_GET), EO_TYPECHECK(unsigned int *, ret)
#endif
#include "elm_slideshow.eo.h"

@ -11,415 +11,4 @@
*/
EAPI Evas_Object *elm_slideshow_add(Evas_Object *parent);
/**
* Add (append) a new item in a given slideshow widget.
*
* @param obj The slideshow object
* @param itc The item class for the item
* @param data The item's data
* @return A handle to the item added or @c NULL, on errors
*
* Add a new item to @p obj's internal list of items, appending it.
* The item's class must contain the function really fetching the
* image object to show for this item, which could be an Evas image
* object or an Elementary photo, for example. The @p data
* parameter is going to be passed to both class functions of the
* item.
*
* @see #Elm_Slideshow_Item_Class
* @see elm_slideshow_item_sorted_insert()
* @see elm_object_item_data_set()
*
* @ingroup Slideshow
*/
EAPI Elm_Object_Item *elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data);
/**
* Insert a new item into the given slideshow widget, using the @p func
* function to sort items (by item handles).
*
* @param obj The slideshow object
* @param itc The item class for the item
* @param data The item's data
* @param func The comparing function to be used to sort slideshow
* items <b>by #Elm_Slideshow_Item_Class item handles</b>
* @return Returns The slideshow item handle, on success, or
* @c NULL, on errors
*
* Add a new item to @p obj's internal list of items, in a position
* determined by the @p func comparing function. The item's class
* must contain the function really fetching the image object to
* show for this item, which could be an Evas image object or an
* Elementary photo, for example. The @p data parameter is going to
* be passed to both class functions of the item.
*
* @see #Elm_Slideshow_Item_Class
* @see elm_slideshow_item_add()
*
* @ingroup Slideshow
*/
EAPI Elm_Object_Item *elm_slideshow_item_sorted_insert(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data, Eina_Compare_Cb func);
/**
* Slide to the @b next item, in a given slideshow widget
*
* @param obj The slideshow object
*
* The sliding animation @p obj is set to use will be the
* transition effect used, after this call is issued.
*
* @note If the end of the slideshow's internal list of items is
* reached, it'll wrap around to the list's beginning, again.
*
* @ingroup Slideshow
*/
EAPI void elm_slideshow_next(Evas_Object *obj);
/**
* Slide to the @b previous item, in a given slideshow widget
*
* @param obj The slideshow object
*
* The sliding animation @p obj is set to use will be the
* transition effect used, after this call is issued.
*
* @note If the beginning of the slideshow's internal list of items
* is reached, it'll wrap around to the list's end, again.
*
* @ingroup Slideshow
*/
EAPI void elm_slideshow_previous(Evas_Object *obj);
/**
* Returns the list of sliding transition/effect names available, for a
* given slideshow widget.
*
* @param obj The slideshow object
* @return The list of transitions (list of @b stringshared strings
* as data)
*
* The transitions, which come from @p obj's theme, must be an EDC
* data item named @c "transitions" on the theme file, with (prefix)
* names of EDC programs actually implementing them.
*
* The available transitions for slideshows on the default theme are:
* - @c "fade" - the current item fades out, while the new one
* fades in to the slideshow's viewport.
* - @c "black_fade" - the current item fades to black, and just
* then, the new item will fade in.
* - @c "horizontal" - the current item slides horizontally, until
* it gets out of the slideshow's viewport, while the new item
* comes from the left to take its place.
* - @c "vertical" - the current item slides vertically, until it
* gets out of the slideshow's viewport, while the new item comes
* from the bottom to take its place.
* - @c "square" - the new item starts to appear from the middle of
* the current one, but with a tiny size, growing until its
* target (full) size and covering the old one.
*
* @warning The stringshared strings get no new references
* exclusive to the user grabbing the list, here, so if you'd like
* to use them out of this call's context, you'd better @c
* eina_stringshare_ref() them. Also the list is an internal list and
* so is only valid for as long as the slideshow object is valid and
* has not internally changed its list for some reason, so make a
* copy if you need it around.
*
* @see elm_slideshow_transition_set()
*
* @ingroup Slideshow
*/
EAPI const Eina_List *elm_slideshow_transitions_get(const Evas_Object *obj);
/**
* Returns the list of @b layout names available, for a given
* slideshow widget.
*
* @param obj The slideshow object
* @return The list of layouts (list of @b stringshared strings
* as data)
*
* Slideshow layouts will change how the widget is to dispose each
* image item in its viewport, with regard to cropping, scaling,
* etc.
*
* The layouts, which come from @p obj's theme, must be an EDC
* data item name @c "layouts" on the theme file, with (prefix)
* names of EDC programs actually implementing them.
*
* The available layouts for slideshows on the default theme are:
* - @c "fullscreen" - item images with original aspect, scaled to
* touch top and down slideshow borders or, if the image's height
* is not enough, left and right slideshow borders.
* - @c "not_fullscreen" - the same behavior as the @c "fullscreen"
* one, but always leaving 10% of the slideshow's dimensions of
* distance between the item image's borders and the slideshow
* borders, for each axis.
*
* @warning The stringshared strings get no new references
* exclusive to the user grabbing the list, here, so if you'd like
* to use them out of this call's context, you'd better @c
* eina_stringshare_ref() them.
*
* @see elm_slideshow_layout_set()
*
* @ingroup Slideshow
*/
EAPI const Eina_List *elm_slideshow_layouts_get(const Evas_Object *obj);
/**
* Set the current slide transition/effect in use for a given
* slideshow widget
*
* @param obj The slideshow object
* @param transition The new transition's name string
*
* If @p transition is implemented in @p obj's theme (i.e., is
* contained in the list returned by
* elm_slideshow_transitions_get()), this new sliding effect will
* be used on the widget.
*
* @see elm_slideshow_transitions_get() for more details
*
* @ingroup Slideshow
*/
EAPI void elm_slideshow_transition_set(Evas_Object *obj, const char *transition);
/**
* Get the current slide transition/effect in use for a given
* slideshow widget
*
* @param obj The slideshow object
* @return The current transition's name
*
* @see elm_slideshow_transition_set() for more details
*
* @ingroup Slideshow
*/
EAPI const char *elm_slideshow_transition_get(const Evas_Object *obj);
/**
* Set the interval between each image transition on a given
* slideshow widget, <b>and start the slideshow, itself</b>
*
* @param obj The slideshow object
* @param timeout The new displaying timeout for images
*
* After this call, the slideshow widget will start cycling its
* view, sequentially and automatically, with the images of the
* items it has. The time between each new image displayed is going
* to be @p timeout, in @b seconds. If a different timeout was set
* previously and an slideshow was in progress, it will continue