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
This commit is contained in:
Yossi Kantor 2014-04-10 12:10:55 +03:00 committed by Daniel Zaoui
parent e4f4de0604
commit 3de6b07a86
22 changed files with 71 additions and 8920 deletions

View File

@ -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

View File

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

View File

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

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -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
* with the new time between transitions, after this call.
*
* @note A value less than or equal to 0 on @p timeout will disable
* the widget's internal timer, thus halting any slideshow which
* could be happening on @p obj.
*
* @see elm_slideshow_timeout_get()
*
* @ingroup Slideshow
*/
EAPI void elm_slideshow_timeout_set(Evas_Object *obj, double timeout);
/**
* Get the interval set for image transitions on a given slideshow
* widget.
*
* @param obj The slideshow object
* @return Returns the timeout set on it or -1.0, on errors
*
* @see elm_slideshow_timeout_set() for more details
*
* @ingroup Slideshow
*/
EAPI double elm_slideshow_timeout_get(const Evas_Object *obj);
/**
* Set if, after a slideshow is started, for a given slideshow
* widget, its items should be displayed cyclically or not.
*
* @param obj The slideshow object
* @param loop Use @c EINA_TRUE to make it cycle through items or
* @c EINA_FALSE for it to stop at the end of @p obj's internal
* list of items
*
* @note elm_slideshow_next() and elm_slideshow_previous() will @b
* ignore what is set by this functions, i.e., they'll @b always
* cycle through items. This affects only the "automatic"
* slideshow, as set by elm_slideshow_timeout_set().
*
* @see elm_slideshow_loop_get()
*
* @ingroup Slideshow
*/
EAPI void elm_slideshow_loop_set(Evas_Object *obj, Eina_Bool loop);
/**
* Get the current slide layout in use for a given slideshow widget
*
* @param obj The slideshow object
* @return The current layout's name
*
* @see elm_slideshow_layout_set() for more details
*
* @ingroup Slideshow
*/
EAPI const char *elm_slideshow_layout_get(const Evas_Object *obj);
/**
* Set the current slide layout in use for a given slideshow widget
*
* @param obj The slideshow object
* @param layout The new layout's name string
*
* If @p layout is implemented in @p obj's theme (i.e., is contained
* in the list returned by elm_slideshow_layouts_get()), this new
* images layout will be used on the widget.
*
* @see elm_slideshow_layouts_get() for more details
*
* @ingroup Slideshow
*/
EAPI void elm_slideshow_layout_set(Evas_Object *obj, const char *layout);
/**
* Get if, after a slideshow is started, for a given slideshow
* widget, its items are to be displayed cyclically or not.
*
* @param obj The slideshow object
* @return @c EINA_TRUE, if the items in @p obj will be cycled
* through or @c EINA_FALSE, otherwise
*
* @see elm_slideshow_loop_set() for more details
*
* @ingroup Slideshow
*/
EAPI Eina_Bool elm_slideshow_loop_get(const Evas_Object *obj);
/**
* Remove all items from a given slideshow widget
*
* @param obj The slideshow object
*
* This removes (and deletes) all items in @p obj, leaving it
* empty.
*
* @see elm_object_item_del(), to remove just one item.
*
* @ingroup Slideshow
*/
EAPI void elm_slideshow_clear(Evas_Object *obj);
/**
* Get the internal list of items in a given slideshow widget.
*
* @param obj The slideshow object
* @return The list of items (#Elm_Object_Item as data) or
* @c NULL on errors.
*
* This list is @b not to be modified in any way and must not be
* freed. Use the list members with functions like
* elm_object_item_del(), elm_object_item_data_get().
*
* @warning This list is only valid until @p obj object's internal
* items list is changed. It should be fetched again with another
* call to this function when changes happen.
*
* @ingroup Slideshow
*/
EAPI const Eina_List *elm_slideshow_items_get(const Evas_Object *obj);
/**
* Returns the currently displayed item, in a given slideshow widget
*
* @param obj The slideshow object
* @return A handle to the item being displayed in @p obj or
* @c NULL, if none is (and on errors)
*
* @ingroup Slideshow
*/
EAPI Elm_Object_Item *elm_slideshow_item_current_get(const Evas_Object *obj);
/**
* Retrieve the number of items to cache, on a given slideshow widget,
* <b>before the current item</b>
*
* @param obj The slideshow object
* @return The number of items set to be cached before the current one
*
* @see elm_slideshow_cache_before_set() for more details
*
* @ingroup Slideshow
*/
EAPI int elm_slideshow_cache_before_get(const Evas_Object *obj);
/**
* Set the number of items to cache, on a given slideshow widget,
* <b>before the current item</b>
*
* @param obj The slideshow object
* @param count Number of items to cache before the current one
*
* The default value for this property is @c 2. See
* @ref Slideshow_Caching "slideshow caching" for more details.
*
* @see elm_slideshow_cache_before_get()
*
* @ingroup Slideshow
*/
EAPI void elm_slideshow_cache_before_set(Evas_Object *obj, int count);
/**
* Retrieve the number of items to cache, on a given slideshow widget,
* <b>after the current item</b>
*
* @param obj The slideshow object
* @return The number of items set to be cached after the current one
*
* @see elm_slideshow_cache_after_set() for more details
*
* @ingroup Slideshow
*/
EAPI int elm_slideshow_cache_after_get(const Evas_Object *obj);
/**
* Set the number of items to cache, on a given slideshow widget,
* <b>after the current item</b>
*
* @param obj The slideshow object
* @param count Number of items to cache after the current one
*
* The default value for this property is @c 2. See
* @ref Slideshow_Caching "slideshow caching" for more details.
*
* @see elm_slideshow_cache_after_get()
*
* @ingroup Slideshow
*/
EAPI void elm_slideshow_cache_after_set(Evas_Object *obj, int count);
/**
* Get the the item, in a given slideshow widget, placed at
* position @p nth, in its internal items list
*
* @param obj The slideshow object
* @param nth The number of the item to grab a handle to (0 being
* the first)
* @return The item stored in @p obj at position @p nth or @c NULL,
* if there's no item with that index (and on errors)
*
* @ingroup Slideshow
*/
EAPI Elm_Object_Item *elm_slideshow_item_nth_get(const Evas_Object *obj, unsigned int nth);
/**
* Get the number of items stored in a given slideshow widget
*
* @param obj The slideshow object
* @return The number of items on @p obj, at the moment of this call
*
* @ingroup Slideshow
*/
EAPI unsigned int elm_slideshow_count_get(const Evas_Object *obj);
#include "elm_slideshow.eo.legacy.h"

View File

@ -1,305 +1 @@
#include "elm_spinner.eo.h"
#if 0
#define ELM_OBJ_SPINNER_CLASS elm_obj_spinner_class_get()
const Eo_Class *elm_obj_spinner_class_get(void) EINA_CONST;
extern EAPI Eo_Op ELM_OBJ_SPINNER_BASE_ID;
enum
{
ELM_OBJ_SPINNER_SUB_ID_LABEL_FORMAT_SET,
ELM_OBJ_SPINNER_SUB_ID_LABEL_FORMAT_GET,
ELM_OBJ_SPINNER_SUB_ID_MIN_MAX_SET,
ELM_OBJ_SPINNER_SUB_ID_MIN_MAX_GET,
ELM_OBJ_SPINNER_SUB_ID_STEP_SET,
ELM_OBJ_SPINNER_SUB_ID_STEP_GET,
ELM_OBJ_SPINNER_SUB_ID_VALUE_SET,
ELM_OBJ_SPINNER_SUB_ID_VALUE_GET,
ELM_OBJ_SPINNER_SUB_ID_WRAP_SET,
ELM_OBJ_SPINNER_SUB_ID_WRAP_GET,
ELM_OBJ_SPINNER_SUB_ID_SPECIAL_VALUE_ADD,
ELM_OBJ_SPINNER_SUB_ID_EDITABLE_SET,
ELM_OBJ_SPINNER_SUB_ID_EDITABLE_GET,
ELM_OBJ_SPINNER_SUB_ID_INTERVAL_SET,
ELM_OBJ_SPINNER_SUB_ID_INTERVAL_GET,
ELM_OBJ_SPINNER_SUB_ID_BASE_SET,
ELM_OBJ_SPINNER_SUB_ID_BASE_GET,
ELM_OBJ_SPINNER_SUB_ID_ROUND_SET,
ELM_OBJ_SPINNER_SUB_ID_ROUND_GET,
ELM_OBJ_SPINNER_SUB_ID_LAST
};
#define ELM_OBJ_SPINNER_ID(sub_id) (ELM_OBJ_SPINNER_BASE_ID + sub_id)
/**
* @def elm_obj_spinner_label_format_set
* @since 1.8
*
* Set the format string of the displayed label.
*
* @param[in] fmt
*
* @see elm_spinner_label_format_set
*
* @ingroup Spinner
*/
#define elm_obj_spinner_label_format_set(fmt) ELM_OBJ_SPINNER_ID(ELM_OBJ_SPINNER_SUB_ID_LABEL_FORMAT_SET), EO_TYPECHECK(const char *, fmt)
/**
* @def elm_obj_spinner_label_format_get
* @since 1.8
*
* Get the label format of the spinner.
*
* @param[out] ret
*
* @see elm_spinner_label_format_get
*
* @ingroup Spinner
*/
#define elm_obj_spinner_label_format_get(ret) ELM_OBJ_SPINNER_ID(ELM_OBJ_SPINNER_SUB_ID_LABEL_FORMAT_GET), EO_TYPECHECK(const char **, ret)
/**
* @def elm_obj_spinner_min_max_set
* @since 1.8
*
* Set the minimum and maximum values for the spinner.
*
* @param[in] min
* @param[in] max
*
* @see elm_spinner_min_max_set
*
* @ingroup Spinner
*/
#define elm_obj_spinner_min_max_set(min, max) ELM_OBJ_SPINNER_ID(ELM_OBJ_SPINNER_SUB_ID_MIN_MAX_SET), EO_TYPECHECK(double, min), EO_TYPECHECK(double, max)
/**
* @def elm_obj_spinner_min_max_get
* @since 1.8
*
* Get the minimum and maximum values of the spinner.
*
* @param[out] min
* @param[out] max
*
* @see elm_spinner_min_max_get
*
* @ingroup Spinner
*/
#define elm_obj_spinner_min_max_get(min, max) ELM_OBJ_SPINNER_ID(ELM_OBJ_SPINNER_SUB_ID_MIN_MAX_GET), EO_TYPECHECK(double *, min), EO_TYPECHECK(double *, max)
/**
* @def elm_obj_spinner_step_set
* @since 1.8
*
* Set the step used to increment or decrement the spinner value.
*
* @param[in] step
*
* @see elm_spinner_step_set
*
* @ingroup Spinner
*/
#define elm_obj_spinner_step_set(step) ELM_OBJ_SPINNER_ID(ELM_OBJ_SPINNER_SUB_ID_STEP_SET), EO_TYPECHECK(double, step)
/**
* @def elm_obj_spinner_step_get
* @since 1.8
*
* Get the step used to increment or decrement the spinner value.
*
* @param[out] ret
*
* @see elm_spinner_step_get
*
* @ingroup Spinner
*/
#define elm_obj_spinner_step_get(ret) ELM_OBJ_SPINNER_ID(ELM_OBJ_SPINNER_SUB_ID_STEP_GET), EO_TYPECHECK(double *, ret)
/**
* @def elm_obj_spinner_value_set
* @since 1.8
*
* Set the value the spinner displays.
*
* @param[in] val
*
* @see elm_spinner_value_set
*
* @ingroup Spinner
*/
#define elm_obj_spinner_value_set(val) ELM_OBJ_SPINNER_ID(ELM_OBJ_SPINNER_SUB_ID_VALUE_SET), EO_TYPECHECK(double, val)
/**
* @def elm_obj_spinner_value_get
* @since 1.8
*
* Get the value displayed by the spinner.
*
* @param[out] ret
*
* @see elm_spinner_value_get
*
* @ingroup Spinner
*/
#define elm_obj_spinner_value_get(ret) ELM_OBJ_SPINNER_ID(ELM_OBJ_SPINNER_SUB_ID_VALUE_GET), EO_TYPECHECK(double *, ret)
/**
* @def elm_obj_spinner_wrap_set
* @since 1.8
*
* Set whether the spinner should wrap when it reaches its
*
* @param[in] wrap
*
* @see elm_spinner_wrap_set
*
* @ingroup Spinner
*/
#define elm_obj_spinner_wrap_set(wrap) ELM_OBJ_SPINNER_ID(ELM_OBJ_SPINNER_SUB_ID_WRAP_SET), EO_TYPECHECK(Eina_Bool, wrap)
/**
* @def elm_obj_spinner_wrap_get
* @since 1.8
*
* Get whether the spinner should wrap when it reaches its
*
* @param[out] ret
*
* @see elm_spinner_wrap_get
*
* @ingroup Spinner
*/
#define elm_obj_spinner_wrap_get(ret) ELM_OBJ_SPINNER_ID(ELM_OBJ_SPINNER_SUB_ID_WRAP_GET), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_spinner_special_value_add
* @since 1.8
*
* Set a special string to display in the place of the numerical value.
*
* @param[in] value
* @param[in] label
*
* @see elm_spinner_special_value_add
*
* @ingroup Spinner
*/
#define elm_obj_spinner_special_value_add(value, label) ELM_OBJ_SPINNER_ID(ELM_OBJ_SPINNER_SUB_ID_SPECIAL_VALUE_ADD), EO_TYPECHECK(double, value), EO_TYPECHECK(const char *, label)
/**
* @def elm_obj_spinner_editable_set
* @since 1.8
*
* Set whether the spinner can be directly edited by the user or not.
*
* @param[in] editable
*
* @see elm_spinner_editable_set
*
* @ingroup Spinner
*/
#define elm_obj_spinner_editable_set(editable) ELM_OBJ_SPINNER_ID(ELM_OBJ_SPINNER_SUB_ID_EDITABLE_SET), EO_TYPECHECK(Eina_Bool, editable)
/**
* @def elm_obj_spinner_editable_get
* @since 1.8
*
* Get whether the spinner can be directly edited by the user or not.
*
* @param[out] ret
*
* @see elm_spinner_editable_get
*
* @ingroup Spinner
*/
#define elm_obj_spinner_editable_get(ret) ELM_OBJ_SPINNER_ID(ELM_OBJ_SPINNER_SUB_ID_EDITABLE_GET), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_spinner_interval_set
* @since 1.8
*
* Set the interval on time updates for an user mouse button hold
*
* @param[in] interval
*
* @see elm_spinner_interval_set
*
* @ingroup Spinner
*/
#define elm_obj_spinner_interval_set(interval) ELM_OBJ_SPINNER_ID(ELM_OBJ_SPINNER_SUB_ID_INTERVAL_SET), EO_TYPECHECK(double, interval)
/**
* @def elm_obj_spinner_interval_get
* @since 1.8
*
* Get the interval on time updates for an user mouse button hold
*
* @param[out] ret
*
* @see elm_spinner_interval_get
*
* @ingroup Spinner
*/
#define elm_obj_spinner_interval_get(ret) ELM_OBJ_SPINNER_ID(ELM_OBJ_SPINNER_SUB_ID_INTERVAL_GET), EO_TYPECHECK(double *, ret)
/**
* @def elm_obj_spinner_base_set
* @since 1.8
*
* Set the base for rounding
*
* @param[in] base
*
* @see elm_spinner_base_set
*
* @ingroup Spinner
*/
#define elm_obj_spinner_base_set(base) ELM_OBJ_SPINNER_ID(ELM_OBJ_SPINNER_SUB_ID_BASE_SET), EO_TYPECHECK(double, base)
/**
* @def elm_obj_spinner_base_get
* @since 1.8
*
* Get the base for rounding
*
* @param[out] ret
*
* @see elm_spinner_base_get
*
* @ingroup Spinner
*/
#define elm_obj_spinner_base_get(ret) ELM_OBJ_SPINNER_ID(ELM_OBJ_SPINNER_SUB_ID_BASE_GET), EO_TYPECHECK(double *, ret)
/**
* @def elm_obj_spinner_round_set
* @since 1.8
*
* Set the round value for rounding
*
* @param[in] rnd
*
* @see elm_spinner_round_set
*
* @ingroup Spinner
*/
#define elm_obj_spinner_round_set(rnd) ELM_OBJ_SPINNER_ID(ELM_OBJ_SPINNER_SUB_ID_ROUND_SET), EO_TYPECHECK(int, rnd)
/**
* @def elm_obj_spinner_round_get
* @since 1.8
*
* Get the round value for rounding
*
* @param[out] ret
*
* @see elm_spinner_round_get
*
* @ingroup Spinner
*/
#define elm_obj_spinner_round_get(ret) ELM_OBJ_SPINNER_ID(ELM_OBJ_SPINNER_SUB_ID_ROUND_GET), EO_TYPECHECK(int *, ret)
#endif
#include "elm_spinner.eo.h"

View File

@ -42,370 +42,4 @@ EAPI void elm_spinner_special_value_del(Evas_Object *obj, double value);
*/
EAPI const char *elm_spinner_special_value_get(Evas_Object *obj, double value);
/**
* Set the format string of the displayed label.
*
* @param obj The spinner object.
* @param fmt The format string for the label display.
*
* If @c NULL, this sets the format to "%.0f". If not it sets the format
* string for the label text. 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 "%0.f".
*
* @see elm_spinner_label_format_get()
*
* @ingroup Spinner
*/
EAPI void elm_spinner_label_format_set(Evas_Object *obj, const char *fmt);
/**
* Get the label format of the spinner.
*
* @param obj The spinner object.
* @return The text label format string in UTF-8.
*
* @see elm_spinner_label_format_set() for details.
*
* @ingroup Spinner
*/
EAPI const char *elm_spinner_label_format_get(const Evas_Object *obj);
/**
* Set the minimum and maximum values for the spinner.
*
* @param obj The spinner 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_spinner_value_get().
*
* By default, min is equal to 0, and max is equal to 100.
*
* @warning Maximum must be greater than minimum.
*
* @see elm_spinner_min_max_get()
*
* @ingroup Spinner
*/
EAPI void elm_spinner_min_max_set(Evas_Object *obj, double min, double max);
/**
* Get the minimum and maximum values of the spinner.
*
* @param obj The spinner 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_spinner_min_max_set() for details.
*
* @ingroup Spinner
*/
EAPI void elm_spinner_min_max_get(const Evas_Object *obj, double *min, double *max);
/**
* Set the step used to increment or decrement the spinner value.
*
* @param obj The spinner object.
* @param step The step value.
*
* This value will be incremented or decremented to the displayed value.
* It will be incremented while the user keep right or top arrow pressed,
* and will be decremented while the user keep left or bottom arrow pressed.
*
* The interval to increment / decrement can be set with
* elm_spinner_interval_set().
*
* By default step value is equal to 1.
*
* @see elm_spinner_step_get()
*
* @ingroup Spinner
*/
EAPI void elm_spinner_step_set(Evas_Object *obj, double step);
/**
* Get the step used to increment or decrement the spinner value.
*
* @param obj The spinner object.
* @return The step value.
*
* @see elm_spinner_step_get() for more details.
*
* @ingroup Spinner
*/
EAPI double elm_spinner_step_get(const Evas_Object *obj);
/**
* Set the value the spinner displays.
*
* @param obj The spinner object.
* @param val The value to be displayed.
*
* Value will be presented on the label following format specified with
* elm_spinner_format_set().
*
* @warning The value must to be between min and max values. This values
* are set by elm_spinner_min_max_set().
*
* @see elm_spinner_value_get().
* @see elm_spinner_format_set().
* @see elm_spinner_min_max_set().
*
* @ingroup Spinner
*/
EAPI void elm_spinner_value_set(Evas_Object *obj, double val);
/**
* Get the value displayed by the spinner.
*
* @param obj The spinner object.
* @return The value displayed.
*
* @see elm_spinner_value_set() for details.
*
* @ingroup Spinner
*/
EAPI double elm_spinner_value_get(const Evas_Object *obj);
/**
* Set whether the spinner should wrap when it reaches its
* minimum or maximum value.
*
* @param obj The spinner object.
* @param wrap @c EINA_TRUE to enable wrap or @c EINA_FALSE to
* disable it.
*
* Disabled by default. If disabled, when the user tries to increment the
* value,
* but displayed value plus step value is bigger than maximum value,
* the new value will be the maximum value.
* The same happens when the user tries to decrement it,
* but the value less step is less than minimum value. In this case,
* the new displayed value will be the minimum value.
*
* When wrap is enabled, when the user tries to increment the value,
* but displayed value plus step value is bigger than maximum value,
* the new value will be the minimum value. When the the user tries to
* decrement it, but the value less step is less than minimum value,
* the new displayed value will be the maximum value.
*
* E.g.:
* @li min value = 10
* @li max value = 50
* @li step value = 20
* @li displayed value = 20
*
* When the user decrement value (using left or bottom arrow), it will
* displays @c 50.
*
* @see elm_spinner_wrap_get().
*
* @ingroup Spinner
*/
EAPI void elm_spinner_wrap_set(Evas_Object *obj, Eina_Bool wrap);
/**
* Get whether the spinner should wrap when it reaches its
* minimum or maximum value.
*
* @param obj The spinner object
* @return @c EINA_TRUE means wrap is enabled. @c EINA_FALSE indicates
* it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
*
* @see elm_spinner_wrap_set() for details.
*
* @ingroup Spinner
*/
EAPI Eina_Bool elm_spinner_wrap_get(const Evas_Object *obj);
/**
* Set a special string to display in the place of the numerical value.
*
* @param obj The spinner object.
* @param value The value to be replaced.
* @param label The label to be used.
*
* It's useful for cases when a user should select an item that is
* better indicated by a label than a value. For example, weekdays or months.
*
* E.g.:
* @code
* sp = elm_spinner_add(win);
* elm_spinner_min_max_set(sp, 1, 3);
* elm_spinner_special_value_add(sp, 1, "January");
* elm_spinner_special_value_add(sp, 2, "February");
* elm_spinner_special_value_add(sp, 3, "March");
* evas_object_show(sp);
* @endcode
*
* @note If another label was previously set to @p value, it will be replaced
* by the new label.
*
* @see elm_spinner_special_value_get().
* @see elm_spinner_special_value_del().
*
* @ingroup Spinner
*/
EAPI void elm_spinner_special_value_add(Evas_Object *obj, double value, const char *label);
/**
* Set whether the spinner can be directly edited by the user or not.
*
* @param obj The spinner object.
* @param editable @c EINA_TRUE to allow users to edit it or @c EINA_FALSE to
* don't allow users to edit it directly.
*
* Spinner objects can have edition @b disabled, in which state they will
* be changed only by arrows.
* Useful for contexts
* where you don't want your users to interact with it writing the value.
* Specially
* when using special values, the user can see real value instead
* of special label on edition.
*
* It's enabled by default.
*
* @see elm_spinner_editable_get()
*
* @ingroup Spinner
*/
EAPI void elm_spinner_editable_set(Evas_Object *obj, Eina_Bool editable);
/**
* Get whether the spinner can be directly edited by the user or not.
*
* @param obj The spinner object.
* @return @c EINA_TRUE means edition is enabled. @c EINA_FALSE indicates
* it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
*
* @see elm_spinner_editable_set() for details.
*
* @ingroup Spinner
*/
EAPI Eina_Bool elm_spinner_editable_get(const Evas_Object *obj);
/**
* Set the interval on time updates for an user mouse button hold
* on spinner widgets' arrows.
*
* @param obj The spinner object.
* @param interval The (first) interval value in seconds.
*
* This interval value is @b decreased while the user holds the
* mouse pointer either incrementing or decrementing spinner's value.
*
* This helps the user to get to a given value distant from the
* current one easier/faster, as it will start to change quicker and
* quicker on mouse button holds.
*
* The calculation for the next change interval value, starting from
* the one set with this call, is the previous interval divided by
* @c 1.05, so it decreases a little bit.
*
* The default starting interval value for automatic changes is
* @c 0.85 seconds.
*
* @see elm_spinner_interval_get()
*
* @ingroup Spinner
*/
EAPI void elm_spinner_interval_set(Evas_Object *obj, double interval);
/**
* Get the interval on time updates for an user mouse button hold
* on spinner widgets' arrows.
*
* @param obj The spinner object.
* @return The (first) interval value, in seconds, set on it.
*
* @see elm_spinner_interval_set() for more details.
*
* @ingroup Spinner
*/
EAPI double elm_spinner_interval_get(const Evas_Object *obj);
/**
* Set the base for rounding
*
* @param obj The spinner object
* @param base The base value
*
* Rounding works as follows:
*
* rounded_val = base + (double)(((value - base) / round) * round)
*
* Where rounded_val, value and base are doubles, and round is an integer.
*
* This means that things will be rounded to increments (or decrements) of
* "round" starting from value @p base. The default base for rounding is 0.
*
* Example: round = 3, base = 2
* Values: ..., -2, 0, 2, 5, 8, 11, 14, ...
*
* Example: round = 2, base = 5.5
* Values: ..., -0.5, 1.5, 3.5, 5.5, 7.5, 9.5, 11.5, ...
*
* @see elm_spinner_round_get()
* @see elm_spinner_base_get() too.
*
* @ingroup Spinner
*/
EAPI void elm_spinner_base_set(Evas_Object *obj, double base);
/**
* Get the base for rounding
*
* @param obj The spinner object
* @return The base rounding value
*
* This returns the base for rounding.
*
* @see elm_spinner_round_set() too.
* @see elm_spinner_base_set() too.
*
* @ingroup Spinner
*/
EAPI double elm_spinner_base_get(const Evas_Object *obj);
/**
* Set the round value for rounding
*
* @param obj The spinner object
* @param rnd The rounding value
*
* Sets the rounding value used for value rounding in the spinner.
*
* @see elm_spinner_round_get()
* @see elm_spinner_base_set()
*
* @ingroup Spinner
*/
EAPI void elm_spinner_round_set(Evas_Object *obj, int rnd);
/**
* Get the round value for rounding
*
* @param obj The spinner object
* @return The rounding value
*
* This returns the round value for rounding.
*
* @see elm_spinner_round_set() too.
* @see elm_spinner_base_set() too.
*
* @ingroup Spinner
*/
EAPI int elm_spinner_round_get(const Evas_Object *obj);
#include "elm_spinner.eo.legacy.h"

View File

@ -3,295 +3,9 @@
*
* @{
*/
#include "elm_systray.eo.h"
#if 0
#define ELM_OBJ_SYSTRAY_CLASS elm_obj_systray_class_get()
const Eo_Class *elm_obj_systray_class_get(void) EINA_CONST;
extern EAPI Eo_Op ELM_OBJ_SYSTRAY_BASE_ID;
enum
{
ELM_OBJ_SYSTRAY_SUB_ID_CATEGORY_SET,
ELM_OBJ_SYSTRAY_SUB_ID_CATEGORY_GET,
ELM_OBJ_SYSTRAY_SUB_ID_STATUS_SET,
ELM_OBJ_SYSTRAY_SUB_ID_STATUS_GET,
ELM_OBJ_SYSTRAY_SUB_ID_ATT_ICON_NAME_SET,
ELM_OBJ_SYSTRAY_SUB_ID_ATT_ICON_NAME_GET,
ELM_OBJ_SYSTRAY_SUB_ID_ICON_NAME_SET,
ELM_OBJ_SYSTRAY_SUB_ID_ICON_NAME_GET,
ELM_OBJ_SYSTRAY_SUB_ID_ICON_THEME_PATH_SET,
ELM_OBJ_SYSTRAY_SUB_ID_ICON_THEME_PATH_GET,
ELM_OBJ_SYSTRAY_SUB_ID_ID_SET,
ELM_OBJ_SYSTRAY_SUB_ID_ID_GET,
ELM_OBJ_SYSTRAY_SUB_ID_TITLE_SET,
ELM_OBJ_SYSTRAY_SUB_ID_TITLE_GET,
ELM_OBJ_SYSTRAY_SUB_ID_MENU_SET,
ELM_OBJ_SYSTRAY_SUB_ID_MENU_GET,
ELM_OBJ_SYSTRAY_SUB_ID_REGISTER,
ELM_OBJ_SYSTRAY_SUB_ID_LAST
};
#define ELM_OBJ_SYSTRAY_ID(sub_id) (ELM_OBJ_SYSTRAY_BASE_ID + sub_id)
/**
* @def elm_obj_systray_category_set
*
* Set the category of the Status Notifier Item.
*
* @param[in] cat Category
*
* @see Elm_Systray_Category
*
* @since 1.8
*/
#define elm_obj_systray_category_set(cat) \
ELM_OBJ_SYSTRAY_ID(ELM_OBJ_SYSTRAY_SUB_ID_CATEGORY_SET), \
EO_TYPECHECK(Elm_Systray_Category, cat)
/**
* @def elm_obj_systray_category_get
*
* Retrieve the category of the Status Notifier Item.
*
* @param[out] ret Category
*
* @see elm_obj_systray_category_set
*
* @since 1.8
*/
#define elm_obj_systray_category_get(ret) \
ELM_OBJ_SYSTRAY_ID(ELM_OBJ_SYSTRAY_SUB_ID_CATEGORY_GET), \
EO_TYPECHECK(Elm_Systray_Category *, ret)
/**
* @def elm_obj_systray_status_set
*
* Set the status of the Status Notifier Item.
*
* @param[in] st Status
*
* @see Elm_Systray_Status
*
* @since 1.8
*/
#define elm_obj_systray_status_set(st) \
ELM_OBJ_SYSTRAY_ID(ELM_OBJ_SYSTRAY_SUB_ID_STATUS_SET), \
EO_TYPECHECK(Elm_Systray_Status, st)
/**
* @def elm_obj_systray_status_get
*
* Retrieve the status of the Status Notifier Item.
*
* @param[out] ret Status
*
* @see elm_obj_systray_status_set
*
* @since 1.8
*/
#define elm_obj_systray_status_get(ret) \
ELM_OBJ_SYSTRAY_ID(ELM_OBJ_SYSTRAY_SUB_ID_STATUS_GET), \
EO_TYPECHECK(Elm_Systray_Status *, ret)
/**
* @def elm_obj_systray_att_icon_name_set
*
* Set the name of the attention icon to be used by the Status Notifier Item.
*
* @param[in] att_icon_name
*
* @see elm_obj_systray_att_icon_name_get
*
* @since 1.8
*/
#define elm_obj_systray_att_icon_name_set(att_icon_name) \
ELM_OBJ_SYSTRAY_ID(ELM_OBJ_SYSTRAY_SUB_ID_ATT_ICON_NAME_SET), \
EO_TYPECHECK(const char *, att_icon_name)
/**
* @def elm_obj_systray_att_icon_name_get
*
* Retrieve the name of the attention icon used by the Status Notifier Item.
*
* @param[out] ret
*
* @see elm_obj_systray_att_icon_name_set
*
* @since 1.8
*/
#define elm_obj_systray_att_icon_name_get(ret) \
ELM_OBJ_SYSTRAY_ID(ELM_OBJ_SYSTRAY_SUB_ID_ATT_ICON_NAME_GET), \
EO_TYPECHECK(const char **, ret)
/**
* @def elm_obj_systray_icon_name_set
*
* Set the name of the icon to be used by the Status Notifier Item.
*
* @param[in] icon_name
*
* @see elm_obj_systray_icon_name_get
*
* @since 1.8
*/
#define elm_obj_systray_icon_name_set(icon_name) \
ELM_OBJ_SYSTRAY_ID(ELM_OBJ_SYSTRAY_SUB_ID_ICON_NAME_SET), \
EO_TYPECHECK(const char *, icon_name)
/**
* @def elm_obj_systray_icon_name_get
*
* Retrieve the name of the icon used by the Status Notifier Item.
*
* @param[out] ret
*
* @see elm_obj_systray_icon_name_set
*
* @since 1.8
*/
#define elm_obj_systray_icon_name_get(ret) \
ELM_OBJ_SYSTRAY_ID(ELM_OBJ_SYSTRAY_SUB_ID_ICON_NAME_GET), \
EO_TYPECHECK(const char **, ret)
/**
* @def elm_obj_systray_icon_theme_path_set
*
* Set the path to the theme where the icons can be found.
* Set this value to "" to use the default path.
*
* @param[in] icon_theme_path
*
* @see elm_obj_systray_icon_theme_path_get
*
* @since 1.8
*/
#define elm_obj_systray_icon_theme_path_set(icon_theme_path) \
ELM_OBJ_SYSTRAY_ID(ELM_OBJ_SYSTRAY_SUB_ID_ICON_THEME_PATH_SET), \
EO_TYPECHECK(const char *, icon_theme_path)
/**
* @def elm_obj_systray_icon_theme_path_get
*
* Retrieve the path to the icon's theme currently in use.
*
* @param[out] ret
*
* @see elm_obj_systray_icon_theme_path_set
*
* @since 1.8
*/
#define elm_obj_systray_icon_theme_path_get(ret) \
ELM_OBJ_SYSTRAY_ID(ELM_OBJ_SYSTRAY_SUB_ID_ICON_THEME_PATH_GET), \
EO_TYPECHECK(const char **, ret)
/**
* @def elm_obj_systray_id_set
*
* Set the id of the Status Notifier Item.
*
* @param[in] id
*
* @see elm_obj_systray_id_get
*
* @since 1.8
*/
#define elm_obj_systray_id_set(id) \
ELM_OBJ_SYSTRAY_ID(ELM_OBJ_SYSTRAY_SUB_ID_ID_SET), \
EO_TYPECHECK(const char *, id)
/**
* @def elm_obj_systray_id_get
*
* Retrieve the id of the Status Notifier Item.
*
* @param[out] ret
*
* @see elm_obj_systray_id_set
*
* @since 1.8
*/
#define elm_obj_systray_id_get(ret) \
ELM_OBJ_SYSTRAY_ID(ELM_OBJ_SYSTRAY_SUB_ID_ID_GET), \
EO_TYPECHECK(const char **, ret)
/**
* @def elm_obj_systray_title_set
*
* Set the title of the Status Notifier Item.
*
* @param[in] title
*
* @see elm_obj_systray_title_get
*
* @since 1.8
*/
#define elm_obj_systray_title_set(title) \
ELM_OBJ_SYSTRAY_ID(ELM_OBJ_SYSTRAY_SUB_ID_TITLE_SET), \
EO_TYPECHECK(const char *, title)
/**
* @def elm_obj_systray_title_get
*
* Retrieve the title of the Status Notifier Item.
*
* @param[out] ret
*
* @see elm_obj_systray_title_set
*
* @since 1.8
*/
#define elm_obj_systray_title_get(ret) \
ELM_OBJ_SYSTRAY_ID(ELM_OBJ_SYSTRAY_SUB_ID_TITLE_GET), \
EO_TYPECHECK(const char **, ret)
/**
* @def elm_obj_systray_menu_set
*
* Set the object path of the D-Bus Menu that is to be show when the
* Status Notifier Item is activated by the user.
*
* @param[in] menu
*
* @see elm_obj_systray_menu_get
*
* @since 1.8
*/
#define elm_obj_systray_menu_set(menu) \
ELM_OBJ_SYSTRAY_ID(ELM_OBJ_SYSTRAY_SUB_ID_MENU_SET), \
EO_TYPECHECK(const Eo *, menu)
/**
* @def elm_obj_systray_menu_get
*
* Retrieve the object path of the D-Bus Menu currently in use.
*
* @param[out] ret
*
* @see elm_obj_systray_menu_set
*
* @since 1.8
*/
#define elm_obj_systray_menu_get(ret) \
ELM_OBJ_SYSTRAY_ID(ELM_OBJ_SYSTRAY_SUB_ID_MENU_GET), \
EO_TYPECHECK(const Eo **, ret)
/**
* @def elm_obj_systray_register
*
* Register this Status Notifier Item in the System Tray Watcher.
* This function should only be called after the event
* ELM_EVENT_SYSTRAY_READY is emitted.
*
* @param[out] ret
*
* @since 1.8
*/
#define elm_obj_systray_register(ret) \
ELM_OBJ_SYSTRAY_ID(ELM_OBJ_SYSTRAY_SUB_ID_REGISTER), \
EO_TYPECHECK(Eina_Bool *, ret)
#endif
/**
* @}
*/

View File

@ -1,181 +1 @@
#include "elm_table.eo.h"
#if 0
#define ELM_OBJ_TABLE_CLASS elm_obj_table_class_get()
const Eo_Class *elm_obj_table_class_get(void) EINA_CONST;
extern EAPI Eo_Op ELM_OBJ_TABLE_BASE_ID;
enum
{
ELM_OBJ_TABLE_SUB_ID_HOMOGENEOUS_SET,
ELM_OBJ_TABLE_SUB_ID_HOMOGENEOUS_GET,
ELM_OBJ_TABLE_SUB_ID_PADDING_SET,
ELM_OBJ_TABLE_SUB_ID_PADDING_GET,
ELM_OBJ_TABLE_SUB_ID_PACK,
ELM_OBJ_TABLE_SUB_ID_UNPACK,
ELM_OBJ_TABLE_SUB_ID_PACK_SET,
ELM_OBJ_TABLE_SUB_ID_PACK_GET,
ELM_OBJ_TABLE_SUB_ID_CLEAR,
ELM_OBJ_TABLE_SUB_ID_CHILD_GET,
ELM_OBJ_TABLE_SUB_ID_LAST
};
#define ELM_OBJ_TABLE_ID(sub_id) (ELM_OBJ_TABLE_BASE_ID + sub_id)
/**
* @def elm_obj_table_homogeneous_set
* @since 1.8
*
* @brief Set the homogeneous layout in the table
*
* @param[in] homogeneous
*
* @see elm_table_homogeneous_set
*
* @ingroup Table
*/
#define elm_obj_table_homogeneous_set(homogeneous) ELM_OBJ_TABLE_ID(ELM_OBJ_TABLE_SUB_ID_HOMOGENEOUS_SET), EO_TYPECHECK(Eina_Bool, homogeneous)
/**
* @def elm_obj_table_homogeneous_get
* @since 1.8
*
* @brief Get the current table homogeneous mode.
*
* @param[out] ret
*
* @see elm_table_homogeneous_get
*
* @ingroup Table
*/
#define elm_obj_table_homogeneous_get(ret) ELM_OBJ_TABLE_ID(ELM_OBJ_TABLE_SUB_ID_HOMOGENEOUS_GET), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_table_padding_set
* @since 1.8
*
* @brief Set padding between cells.
*
* @param[in] horizontal
* @param[in] vertical
*
* @see elm_table_padding_set
*
* @ingroup Table
*/
#define elm_obj_table_padding_set(horizontal, vertical) ELM_OBJ_TABLE_ID(ELM_OBJ_TABLE_SUB_ID_PADDING_SET), EO_TYPECHECK(Evas_Coord, horizontal), EO_TYPECHECK(Evas_Coord, vertical)
/**
* @def elm_obj_table_padding_get
* @since 1.8
*
* @brief Get padding between cells.
*
* @param[out] horizontal
* @param[out] vertical
*
* @see elm_table_padding_get
*
* @ingroup Table
*/
#define elm_obj_table_padding_get(horizontal, vertical) ELM_OBJ_TABLE_ID(ELM_OBJ_TABLE_SUB_ID_PADDING_GET), EO_TYPECHECK(Evas_Coord *, horizontal), EO_TYPECHECK(Evas_Coord *, vertical)
/**
* @def elm_obj_table_pack
* @since 1.8
*
* @brief Add a subobject on the table with the coordinates passed
*
* @param[in] subobj
* @param[in] column
* @param[in] row
* @param[in] colspan
* @param[in] rowspan
*
* @see elm_table_pack
*
* @ingroup Table
*/
#define elm_obj_table_pack(subobj, column, row, colspan, rowspan) ELM_OBJ_TABLE_ID(ELM_OBJ_TABLE_SUB_ID_PACK), EO_TYPECHECK(Evas_Object *, subobj), EO_TYPECHECK(int, column), EO_TYPECHECK(int, row), EO_TYPECHECK(int, colspan), EO_TYPECHECK(int, rowspan)
/**
* @def elm_obj_table_unpack
* @since 1.8
*
* @brief Remove child from table.
*
* @param[in] subobj
*
* @see elm_table_unpack
*
* @ingroup Table
*/
#define elm_obj_table_unpack(subobj) ELM_OBJ_TABLE_ID(ELM_OBJ_TABLE_SUB_ID_UNPACK), EO_TYPECHECK(Evas_Object *, subobj)
/**
* @def elm_obj_table_pack_set
* @since 1.8
*
* @brief Set the packing location of an existing child of the table
*
* @param[in] subobj
* @param[in] column
* @param[in] row
* @param[in] colspan
* @param[in] rowspan
*
* @see elm_table_pack_set
*
* @ingroup Table
*/
#define elm_obj_table_pack_set(subobj, column, row, colspan, rowspan) ELM_OBJ_TABLE_ID(ELM_OBJ_TABLE_SUB_ID_PACK_SET), EO_TYPECHECK(Evas_Object *, subobj), EO_TYPECHECK(int, column), EO_TYPECHECK(int, row), EO_TYPECHECK(int, colspan), EO_TYPECHECK(int, rowspan)
/**
* @def elm_obj_table_pack_get
* @since 1.8
*
* @brief Get the packing location of an existing child of the table
*
* @param[in] subobj
* @param[out] column
* @param[out] row
* @param[out] colspan
* @param[out] rowspan
*
* @see elm_table_pack_get
*
* @ingroup Table
*/
#define elm_obj_table_pack_get(subobj, column, row, colspan, rowspan) ELM_OBJ_TABLE_ID(ELM_OBJ_TABLE_SUB_ID_PACK_GET), EO_TYPECHECK(Evas_Object *, subobj), EO_TYPECHECK(int *, column), EO_TYPECHECK(int *, row), EO_TYPECHECK(int *, colspan), EO_TYPECHECK(int *, rowspan)
/**
* @def elm_obj_table_clear
* @since 1.8
*
* @brief Faster way to remove all child objects from a table object.
*
* @param[in] clear
*
* @see elm_table_clear
*
* @ingroup Table
*/
#define elm_obj_table_clear(clear) ELM_OBJ_TABLE_ID(ELM_OBJ_TABLE_SUB_ID_CLEAR), EO_TYPECHECK(Eina_Bool, clear)
/**
* @def elm_obj_table_child_get
* @since 1.8
*
* @brief Get child object of table at given coordinates.
*
* @param[in] col column number of child object
* @param[in] row row number of child object
* @param[out] ret object at given col and row
*
* @ingroup Table
*/
#define elm_obj_table_child_get(col, row, ret) ELM_OBJ_TABLE_ID(ELM_OBJ_TABLE_SUB_ID_CHILD_GET), EO_TYPECHECK(int, col), EO_TYPECHECK(int, row), EO_TYPECHECK(Evas_Object **, ret)
#endif
#include "elm_table.eo.h"

View File

@ -8,86 +8,6 @@
*/
EAPI Evas_Object *elm_table_add(Evas_Object *parent);
/**
* @brief Set the homogeneous layout in the table
*
* @param obj The layout object
* @param homogeneous A boolean to set if the layout is homogeneous in the
* table (EINA_TRUE = homogeneous, EINA_FALSE = no homogeneous)
*
* @ingroup Table
*/
EAPI void elm_table_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous);
/**
* @brief Get the current table homogeneous mode.
*
* @param obj The table object
* @return A boolean to indicating if the layout is homogeneous in the table
* (EINA_TRUE = homogeneous, EINA_FALSE = no homogeneous)
*
* @ingroup Table
*/
EAPI Eina_Bool elm_table_homogeneous_get(const Evas_Object *obj);
/**
* @brief Set padding between cells.
*
* @param obj The layout object.
* @param horizontal set the horizontal padding.
* @param vertical set the vertical padding.
*
* Default value is 0.
*
* @ingroup Table
*/
EAPI void elm_table_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical);
/**
* @brief Get padding between cells.
*
* @param obj The layout object.
* @param horizontal set the horizontal padding.
* @param vertical set the vertical padding.
*
* @ingroup Table
*/
EAPI void elm_table_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical);
/**
* @brief Add a subobject on the table with the coordinates passed
*
* @param obj The table object
* @param subobj The subobject to be added to the table
* @param col Column number
* @param row Row number
* @param colspan colspan
* @param rowspan rowspan
*
* @note All positioning inside the table is relative to rows and columns, so
* a value of 0 for x and y, means the top left cell of the table, and a
* value of 1 for w and h means @p subobj only takes that 1 cell.
*
* Note that columns and rows only guarantee 16bit unsigned values at best.
* That means that col + colspan AND row + rowspan must fit inside 16bit
* unsigned values cleanly. You will be warned once values exceed 15bit
* storage, and attempting to use values not able to fit in 16bits will
* result in failure.
*
* @ingroup Table
*/
EAPI void elm_table_pack(Evas_Object *obj, Evas_Object *subobj, int col, int row, int colspan, int rowspan);
/**
* @brief Remove child from table.
*
* @param obj The table object
* @param subobj The subobject
*
* @ingroup Table
*/
EAPI void elm_table_unpack(Evas_Object *obj, Evas_Object *subobj);
/**
* @brief Set the packing location of an existing child of the table
*
@ -122,23 +42,4 @@ EAPI void elm_table_pack_set(Evas_Object *subobj, int col, int row, int col
*/
EAPI void elm_table_pack_get(Evas_Object *subobj, int *col, int *row, int *colspan, int *rowspan);
/**
* @brief Faster way to remove all child objects from a table object.
*
* @param obj The table object
* @param clear If true, will delete children, else just remove from table.
*
* @ingroup Table
*/
EAPI void elm_table_clear(Evas_Object *obj, Eina_Bool clear);
/**
* @brief Get child object of table at given coordinates.
*
* @param obj The table object
* @param col Column number of child object
* @param row Row number of child object
*
* @return Child of object if find if not return NULL.
*/
EAPI Evas_Object *elm_table_child_get(const Evas_Object *obj, int col, int row);
#include "elm_table.eo.legacy.h"

View File

@ -1,379 +1 @@
#include "elm_thumb.eo.h"
#if 0
#define ELM_OBJ_THUMB_CLASS elm_obj_thumb_class_get()
const Eo_Class *elm_obj_thumb_class_get(void) EINA_CONST;
extern EAPI Eo_Op ELM_OBJ_THUMB_BASE_ID;
enum
{
ELM_OBJ_THUMB_SUB_ID_RELOAD,
ELM_OBJ_THUMB_SUB_ID_FILE_SET,
ELM_OBJ_THUMB_SUB_ID_FILE_GET,
ELM_OBJ_THUMB_SUB_ID_PATH_GET,
ELM_OBJ_THUMB_SUB_ID_ASPECT_SET,
ELM_OBJ_THUMB_SUB_ID_ASPECT_GET,
ELM_OBJ_THUMB_SUB_ID_FDO_SIZE_SET,
ELM_OBJ_THUMB_SUB_ID_FDO_SIZE_GET,
ELM_OBJ_THUMB_SUB_ID_FORMAT_SET,
ELM_OBJ_THUMB_SUB_ID_FORMAT_GET,
ELM_OBJ_THUMB_SUB_ID_ORIENTATION_SET,
ELM_OBJ_THUMB_SUB_ID_ORIENTATION_GET,
ELM_OBJ_THUMB_SUB_ID_CROP_ALIGN_SET,
ELM_OBJ_THUMB_SUB_ID_CROP_ALIGN_GET,
ELM_OBJ_THUMB_SUB_ID_SIZE_SET,
ELM_OBJ_THUMB_SUB_ID_SIZE_GET,
ELM_OBJ_THUMB_SUB_ID_COMPRESS_SET,
ELM_OBJ_THUMB_SUB_ID_COMPRESS_GET,
ELM_OBJ_THUMB_SUB_ID_QUALITY_SET,
ELM_OBJ_THUMB_SUB_ID_QUALITY_GET,
ELM_OBJ_THUMB_SUB_ID_ANIMATE_SET,
ELM_OBJ_THUMB_SUB_ID_ANIMATE_GET,
ELM_OBJ_THUMB_SUB_ID_EDITABLE_SET,
ELM_OBJ_THUMB_SUB_ID_EDITABLE_GET,
ELM_OBJ_THUMB_SUB_ID_LAST
};
#define ELM_OBJ_THUMB_ID(sub_id) (ELM_OBJ_THUMB_BASE_ID + sub_id)
/**
* @def elm_obj_thumb_reload
* @since 1.8
*
* Reload thumbnail if it was generated before.
*
*
* @see elm_thumb_reload
*
* @ingroup Thumb
*/
#define elm_obj_thumb_reload() ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_RELOAD)
/**
* @def elm_obj_thumb_file_set
* @since 1.8
*
* Set the file that will be used as thumbnail source.
*
* @param[in] file
* @param[in] key
*
* @see elm_thumb_file_set
*
* @ingroup Thumb
*/
#define elm_obj_thumb_file_set(file, key) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_FILE_SET), EO_TYPECHECK(const char *, file), EO_TYPECHECK(const char *, key)
/**
* @def elm_obj_thumb_file_get
* @since 1.8
*
* Get the image or video path and key used to generate the thumbnail.
*
* @param[out] file
* @param[out] key
*
* @see elm_thumb_file_get
*
* @ingroup Thumb
*/
#define elm_obj_thumb_file_get(file, key) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_FILE_GET), EO_TYPECHECK(const char **, file), EO_TYPECHECK(const char **, key)
/**
* @def elm_obj_thumb_path_get
* @since 1.8
*
* Get the path and key to the image or video thumbnail generated by ethumb.
*
* @param[out] file
* @param[out] key
*
* @see elm_thumb_path_get
*
* @ingroup Thumb
*/
#define elm_obj_thumb_path_get(file, key) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_PATH_GET), EO_TYPECHECK(const char **, file), EO_TYPECHECK(const char **, key)
/**
* @def elm_obj_thumb_aspect_set
* @since 1.8
*
* Set the aspect for the thumb object
*
* @param[in] setting
*
* @see elm_thumb_aspect_set
*
* @ingroup Thumb
*/
#define elm_obj_thumb_aspect_set(aspect) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_ASPECT_SET), EO_TYPECHECK(Ethumb_Thumb_Aspect, aspect)
/**
* @def elm_obj_thumb_aspect_get
* @since 1.8
*
* Get the aspect of the thumb object
* @param[out] ret
*
* @see elm_thumb_aspect_get
*
* @ingroup Thumb
*/
#define elm_obj_thumb_aspect_get(ret) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_ASPECT_GET), EO_TYPECHECK(Ethumb_Thumb_Aspect *, ret)
/**
* @def elm_obj_thumb_fdo_size_set
* @since 1.8
*
* Set the fdo size for the thumb object
*
* @param[in] setting
*
* @see elm_thumb_fdo_size_set
*
* @ingroup Thumb
*/
#define elm_obj_thumb_fdo_size_set(size) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_FDO_SIZE_SET), EO_TYPECHECK(Ethumb_Thumb_FDO_Size, size)
/**
* @def elm_obj_thumb_fdo_size_get
* @since 1.8
*
* Get the fdo size of the thumb object
* @param[out] ret
*
* @see elm_thumb_fdo_size_get
*
* @ingroup Thumb
*/
#define elm_obj_thumb_fdo_size_get(ret) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_FDO_SIZE_GET), EO_TYPECHECK(Ethumb_Thumb_FDO_Size *, ret)
/**
* @def elm_obj_thumb_format_set
* @since 1.8
*
* Set the format for the thumb object
*
* @param[in] setting
*
* @see elm_thumb_format_set
*
* @ingroup Thumb
*/
#define elm_obj_thumb_format_set(format) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_FORMAT_SET), EO_TYPECHECK(Ethumb_Thumb_Format, format)
/**
* @def elm_obj_thumb_format_get
* @since 1.8
*
* Get the format of the thumb object
* @param[out] ret
*
* @see elm_thumb_format_get
*
* @ingroup Thumb
*/
#define elm_obj_thumb_format_get(ret) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_FORMAT_GET), EO_TYPECHECK(Ethumb_Thumb_Format *, ret)
/**
* @def elm_obj_thumb_orientation_set
* @since 1.8
*
* Set the orientation for the thumb object
*
* @param[in] setting
*
* @see elm_thumb_orientation_set
*
* @ingroup Thumb
*/
#define elm_obj_thumb_orientation_set(orient) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_ORIENTATION_SET), EO_TYPECHECK(Ethumb_Thumb_Orientation, orient)
/**
* @def elm_obj_thumb_orientation_get
* @since 1.8
*
* Get the orientation of the thumb object
* @param[out] ret
*
* @see elm_thumb_orientaion_get
*
* @ingroup Thumb
*/
#define elm_obj_thumb_orientation_get(ret) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_ORIENTATION_GET), EO_TYPECHECK(Ethumb_Thumb_Orientation *, ret)
/**
* @def elm_obj_thumb_size_set
* @since 1.8
*
* Set the width and height of the thumbnail
*
* @param[in] width
* @param[in] height
*0
* @see elm_thumb_size_set
*
* @ingroup Thumb
*/
#define elm_obj_thumb_size_set(tw, th) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_SIZE_SET), EO_TYPECHECK(int, tw), EO_TYPECHECK(int, th)
/**
* @def elm_obj_thumb_size_get
* @since 1.8
*
* Get the size of the thumbnail.
*
* @param[out] tw
* @param[out] th
*
* @see elm_thumb_size_get
*
* @ingroup Thumb
*/
#define elm_obj_thumb_size_get(tw, th) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_SIZE_GET), EO_TYPECHECK(int *, tw), EO_TYPECHECK(int *, th)
/**
* @def elm_obj_thumb_crop_align_set
* @since 1.8
*
* Set the crop alignment of the thumbnail
*
* @param[in] x coordinate
* @param[in] y coordinate
*
* @see elm_thumb_crop_align_set
*
* @ingroup Thumb
*/
#define elm_obj_thumb_crop_align_set(cropx, cropy) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_CROP_ALIGN_SET), EO_TYPECHECK(double, cropx), EO_TYPECHECK(double, cropy)
/**
* @def elm_obj_thumb_crop_align_get
* @since 1.8
*
* Get the crop alignment of the thumbnail.
*
* @param[out] cropx
* @param[out] cropy
*
* @see elm_thumb_crop_align_get
*
* @ingroup Thumb
*/
#define elm_obj_thumb_crop_align_get(cropx, cropy) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_CROP_ALIGN_GET), EO_TYPECHECK(double *, cropx), EO_TYPECHECK(double *, cropy)
/**
* @def elm_obj_thumb_compress_set
* @since 1.8
*
* Set the compression of the thumbnail
*
* @param[in] compress
*
* @see elm_thumb_compress_set
*
* @ingroup Thumb
*/
#define elm_obj_thumb_compress_set(compress) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_COMPRESS_SET), EO_TYPECHECK(int, compress)
/**
* @def elm_obj_thumb_compress_get
* @since 1.8
*
* Get the compression of the thumbnail.
*
* @param[out] compress
*
* @see elm_thumb_compress_get
*
* @ingroup Thumb
*/
#define elm_obj_thumb_compress_get(compress) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_COMPRESS_GET), EO_TYPECHECK(int *, compress)
/**
* @def elm_obj_thumb_quality_set
* @since 1.8
*
* Set the quality of the thumbnail
*
* @param[in] quality
*
* @see elm_thumb_quality_set
*
* @ingroup Thumb
*/
#define elm_obj_thumb_quality_set(quality) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_QUALITY_SET), EO_TYPECHECK(int, quality)
/**
* @def elm_obj_thumb_quality_get
* @since 1.8
*
* Get the quality of the thumbnail.
*
* @param[out] quality
*
* @see elm_thumb_quality_get
*
* @ingroup Thumb
*/
#define elm_obj_thumb_quality_get(quality) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_QUALITY_GET), EO_TYPECHECK(int *, quality)
/**
* @def elm_obj_thumb_animate_set
* @since 1.8
*
* Set the animation state for the thumb object. If its content is an animated
*
* @param[in] setting
*
* @see elm_thumb_animate_set
*
* @ingroup Thumb
*/
#define elm_obj_thumb_animate_set(setting) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_ANIMATE_SET), EO_TYPECHECK(Elm_Thumb_Animation_Setting, setting)
/**
* @def elm_obj_thumb_animate_get
* @since 1.8
*
* Get the animation state for the thumb object.
*
* @param[out] ret
*
* @see elm_thumb_animate_get
*
* @ingroup Thumb
*/
#define elm_obj_thumb_animate_get(ret) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_ANIMATE_GET), EO_TYPECHECK(Elm_Thumb_Animation_Setting *, ret)
/**
* @def elm_obj_thumb_editable_set
* @since 1.8
*
* Make the thumbnail 'editable'.
*
* @param[in] edit
* @param[out] ret
*
* @see elm_thumb_editable_set
*
* @ingroup Thumb
*/
#define elm_obj_thumb_editable_set(edit, ret) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_EDITABLE_SET), EO_TYPECHECK(Eina_Bool, edit), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_thumb_editable_get
* @since 1.8
*
* Make the thumbnail 'editable'.
*
* @param[out] ret
*
* @see elm_thumb_editable_get
*
* @ingroup Thumb
*/
#define elm_obj_thumb_editable_get(ret) ELM_OBJ_THUMB_ID(ELM_OBJ_THUMB_SUB_ID_EDITABLE_GET), EO_TYPECHECK(Eina_Bool *, ret)
#endif
#include "elm_thumb.eo.h"

View File

@ -11,338 +11,4 @@
*/
EAPI Evas_Object *elm_thumb_add(Evas_Object *parent);
/**
* Reload thumbnail if it was generated before.
*
* @param obj The thumb object to reload
*
* This is useful if the ethumb client configuration changed, like its
* size, aspect or any other property one set in the handle returned
* by elm_thumb_ethumb_client_get().
*
* If the options didn't change, the thumbnail won't be generated again, but
* the old one will still be used.
*
* @see elm_thumb_file_set()
*
* @ingroup Thumb
*/
EAPI void elm_thumb_reload(Evas_Object *obj);
/**
* Set the file that will be used as thumbnail @b source.
*
* @param obj The thumb object.
* @param file The path to file that will be used as thumbnail source.
* @param key The key used in case of an EET file.
*
* The file can be an image or a video (in that case, acceptable
* extensions are: avi, mp4, ogv, mov, mpg and wmv). To start the
* video animation, use the function elm_thumb_animate().
*
* @see elm_thumb_file_get()
* @see elm_thumb_reload()
* @see elm_thumb_animate()
*
* @ingroup Thumb
*/
EAPI void elm_thumb_file_set(Evas_Object *obj, const char *file, const char *key);
/**
* Get the image or video path and key used to generate the thumbnail.
*
* @param obj The thumb object.
* @param file Pointer to filename.
* @param key Pointer to key.
*
* @see elm_thumb_file_set()
* @see elm_thumb_path_get()
*
* @ingroup Thumb
*/
EAPI void elm_thumb_file_get(const Evas_Object *obj, const char **file, const char **key);
/**
* Get the path and key to the image or video thumbnail generated by ethumb.
*
* One just needs to make sure that the thumbnail was generated before getting
* its path; otherwise, the path will be NULL. One way to do that is by asking
* for the path when/after the "generate,stop" smart callback is called.
*
* @param obj The thumb object.
* @param file Pointer to thumb path.
* @param key Pointer to thumb key.
*
* @see elm_thumb_file_get()
*
* @ingroup Thumb
*/
EAPI void elm_thumb_path_get(const Evas_Object *obj, const char **file, const char **key);
/**
* Set the aspect for the thumb object.
* @since 1.8
*
* @param obj The thumb object.
* @param aspect The aspect setting.
*
* @see elm_thumb_file_set()
*
* @ingroup Thumb
*/
EAPI void elm_thumb_aspect_set(Evas_Object *obj, Ethumb_Thumb_Aspect aspect);
/**
* Get the aspect of the thumb object.
* @since 1.8
*
* @param obj The thumb object.
* @return getting The aspect setting.
*
* @see elm_thumb_aspect_set()
*
* @ingroup Thumb
*/
EAPI Ethumb_Thumb_Aspect elm_thumb_aspect_get(const Evas_Object *obj);
/**
* Set the FDO size for the thumb object.
* @since 1.8
*
* @param obj The thumb object.
* @param size The FDO size setting.
*
* @see elm_thumb_file_set()
*
* @ingroup Thumb
*/
EAPI void elm_thumb_fdo_size_set(Evas_Object *obj, Ethumb_Thumb_FDO_Size size);
/**
* Get the fdo size of the thumb object.
* @since 1.8
*
* @param obj The thumb object.
* @return getting The FDO size setting.
*
* @see elm_thumb_fdo_size_set()
*
* @ingroup Thumb
*/
EAPI Ethumb_Thumb_FDO_Size elm_thumb_fdo_size_get(const Evas_Object *obj);
/**
* Set the format for the thumb object.
* @since 1.8
*
* @param obj The thumb object.
* @param size The format setting.
*
* @see elm_thumb_file_set()
*
* @ingroup Thumb
*/
EAPI void elm_thumb_format_set(Evas_Object *obj, Ethumb_Thumb_Format format);
/**
* Get the format of the thumb object.
* @since 1.8
*
* @param obj The thumb object.
* @return getting The Format setting.
*
* @see elm_thumb_format_set()
*
* @ingroup Thumb
*/
EAPI Ethumb_Thumb_Format elm_thumb_format_get(const Evas_Object *obj);
/**
* Set the orientation for the thumb object.
* @since 1.8
*
* @param obj The thumb object.
* @param size The orientation setting.
*
* @see elm_thumb_file_set()
*
* @ingroup Thumb
*/
EAPI void elm_thumb_orientation_set(Evas_Object *obj, Ethumb_Thumb_Orientation orient);
/**
* Get the orientation of the thumb object.
* @since 1.8
*
* @param obj The thumb object.
* @return getting The orientation setting.
*
* @see elm_thumb_orientation_set()
*
* @ingroup Thumb
*/
EAPI Ethumb_Thumb_Orientation elm_thumb_orientation_get(const Evas_Object *obj);
/**
* Set the size for the thumb object.
* @since 1.8
*
* @param obj The thumb object.
* @param tw The width of the thumb.
* @param th The height of the thumb.
*
* @see elm_thumb_file_set()
*
* @ingroup Thumb
*/
EAPI void elm_thumb_size_set(Evas_Object *obj, int tw, int th);
/**
* Get the size of the thumb object.
* @since 1.8
*
* @param obj The thumb object.
* @return getting The size setting.
*
* @see elm_thumb_size_set()
*
* @ingroup Thumb
*/
EAPI void elm_thumb_size_get(const Evas_Object *obj, int *tw, int *th);
/**
* Set the crop alignment for the thumb object.
* @since 1.8
*
* @param obj The thumb object.
* @param cropx The x coordinate of the crop.
* @param cropy The y coordinate of the crop.
*
* @see elm_thumb_file_set()
*
* @ingroup Thumb
*/
EAPI void elm_thumb_crop_align_set(Evas_Object *obj, double cropx, double cropy);
/**
* Get the crop alignment of the thumb object.
* @since 1.8
*
* @param obj The thumb object.
* @return getting The crop align setting.
*
* @see elm_thumb_crop_align_set()
*
* @ingroup Thumb
*/
EAPI void elm_thumb_crop_align_get(const Evas_Object *obj, double *cropx, double *cropy);
/**
* Set the compression for the thumb object.
* @since 1.8
*
* @param obj The thumb object.
* @param compress The compression of the thumb.
*
* @see elm_thumb_file_set()
*
* @ingroup Thumb
*/
EAPI void elm_thumb_compress_set(Evas_Object *obj, int compress);
/**
* Get the compression of the thumb object.
* @since 1.8
*
* @param obj The thumb object.
* @return getting The compress setting.
*
* @see elm_thumb_compress_set()
*
* @ingroup Thumb
*/
EAPI void elm_thumb_compress_get(const Evas_Object *obj, int *compress);
/**
* Set the quality for the thumb object.
* @since 1.8
*
* @param obj The thumb object.
* @param quality The quality of the thumb.
*
* @see elm_thumb_file_set()
*
* @ingroup Thumb
*/
EAPI void elm_thumb_quality_set(Evas_Object *obj, int quality);
/**
* Get the quality of the thumb object.
* @since 1.8
*
* @param obj The thumb object.
* @return getting The quality setting.
*
* @see elm_thumb_quality_set()
*
* @ingroup Thumb
*/
EAPI void elm_thumb_quality_get(const Evas_Object *obj, int *quality);
/**
* Set the animation state for the thumb object. If its content is an animated
* video, you may start/stop the animation or tell it to play continuously and
* looping.
*
* @param obj The thumb object.
* @param s The animation setting.
*
* @see elm_thumb_file_set()
*
* @ingroup Thumb
*/
EAPI void elm_thumb_animate_set(Evas_Object *obj, Elm_Thumb_Animation_Setting s);
/**
* Get the animation state for the thumb object.
*
* @param obj The thumb object.
* @return getting The animation setting or @c ELM_THUMB_ANIMATION_LAST,
* on errors.
*
* @see elm_thumb_animate_set()
*
* @ingroup Thumb
*/
EAPI Elm_Thumb_Animation_Setting elm_thumb_animate_get(const Evas_Object *obj);
/**
* Make the thumbnail 'editable'.
*
* @param obj Thumb object.
* @param edit Turn on or off editability. Default is @c EINA_FALSE.
*
* This means the thumbnail is a valid drag target for drag and drop, and can be
* cut or pasted too.
*
* @see elm_thumb_editable_get()
*
* @ingroup Thumb
*/
EAPI Eina_Bool elm_thumb_editable_set(Evas_Object *obj, Eina_Bool edit);
/**
* Make the thumbnail 'editable'.
*
* @param obj Thumb object.
* @return Editability.
*
* This means the thumbnail is a valid drag target for drag and drop, and can be
* cut or pasted too.
*
* @see elm_thumb_editable_set()
*
* @ingroup Thumb
*/
EAPI Eina_Bool elm_thumb_editable_get(const Evas_Object *obj);
#include "elm_thumb.eo.legacy.h"

View File

@ -3,408 +3,9 @@
*
* @{
*/
#include "elm_toolbar.eo.h"
#if 0
#define ELM_OBJ_TOOLBAR_CLASS elm_obj_toolbar_class_get()
const Eo_Class *elm_obj_toolbar_class_get(void) EINA_CONST;
extern EAPI Eo_Op ELM_OBJ_TOOLBAR_BASE_ID;
enum
{
ELM_OBJ_TOOLBAR_SUB_ID_ICON_SIZE_SET,
ELM_OBJ_TOOLBAR_SUB_ID_ICON_SIZE_GET,
ELM_OBJ_TOOLBAR_SUB_ID_ITEM_APPEND,
ELM_OBJ_TOOLBAR_SUB_ID_ITEM_PREPEND,
ELM_OBJ_TOOLBAR_SUB_ID_ITEM_INSERT_BEFORE,
ELM_OBJ_TOOLBAR_SUB_ID_ITEM_INSERT_AFTER,
ELM_OBJ_TOOLBAR_SUB_ID_FIRST_ITEM_GET,
ELM_OBJ_TOOLBAR_SUB_ID_LAST_ITEM_GET,
ELM_OBJ_TOOLBAR_SUB_ID_ITEM_FIND_BY_LABEL,
ELM_OBJ_TOOLBAR_SUB_ID_SELECTED_ITEM_GET,
ELM_OBJ_TOOLBAR_SUB_ID_MORE_ITEM_GET,
ELM_OBJ_TOOLBAR_SUB_ID_SHRINK_MODE_SET,
ELM_OBJ_TOOLBAR_SUB_ID_SHRINK_MODE_GET,
ELM_OBJ_TOOLBAR_SUB_ID_HOMOGENEOUS_SET,
ELM_OBJ_TOOLBAR_SUB_ID_HOMOGENEOUS_GET,
ELM_OBJ_TOOLBAR_SUB_ID_MENU_PARENT_SET,
ELM_OBJ_TOOLBAR_SUB_ID_MENU_PARENT_GET,
ELM_OBJ_TOOLBAR_SUB_ID_ALIGN_SET,
ELM_OBJ_TOOLBAR_SUB_ID_ALIGN_GET,
ELM_OBJ_TOOLBAR_SUB_ID_ICON_ORDER_LOOKUP_SET,
ELM_OBJ_TOOLBAR_SUB_ID_ICON_ORDER_LOOKUP_GET,
ELM_OBJ_TOOLBAR_SUB_ID_HORIZONTAL_SET,
ELM_OBJ_TOOLBAR_SUB_ID_HORIZONTAL_GET,
ELM_OBJ_TOOLBAR_SUB_ID_ITEMS_COUNT,
ELM_OBJ_TOOLBAR_SUB_ID_STANDARD_PRIORITY_SET,
ELM_OBJ_TOOLBAR_SUB_ID_STANDARD_PRIORITY_GET,
ELM_OBJ_TOOLBAR_SUB_ID_SELECT_MODE_SET,
ELM_OBJ_TOOLBAR_SUB_ID_SELECT_MODE_GET,
ELM_OBJ_TOOLBAR_SUB_ID_LAST
};
#define ELM_OBJ_TOOLBAR_ID(sub_id) (ELM_OBJ_TOOLBAR_BASE_ID + sub_id)
/**
* @def elm_obj_toolbar_icon_size_set
* @since 1.8
*
* Set the icon size, in pixels, to be used by toolbar items.
*
* @param[in] icon_size
*
* @see elm_toolbar_icon_size_set
*/
#define elm_obj_toolbar_icon_size_set(icon_size) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_ICON_SIZE_SET), EO_TYPECHECK(int, icon_size)
/**
* @def elm_obj_toolbar_icon_size_get
* @since 1.8
*
* Get the icon size, in pixels, to be used by toolbar items.
*
* @param[out] ret
*
* @see elm_toolbar_icon_size_get
*/
#define elm_obj_toolbar_icon_size_get(ret) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_ICON_SIZE_GET), EO_TYPECHECK(int *, ret)
/**
* @def elm_obj_toolbar_item_append
* @since 1.8
*
* Append item to the toolbar.
*
* @param[in] icon
* @param[in] label
* @param[in] func
* @param[in] data
* @param[out] ret
*
* @see elm_toolbar_item_append
*/
#define elm_obj_toolbar_item_append(icon, label, func, data, ret) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_ITEM_APPEND), EO_TYPECHECK(const char *, icon), EO_TYPECHECK(const char *, label), EO_TYPECHECK(Evas_Smart_Cb, func), EO_TYPECHECK(const void *, data), EO_TYPECHECK(Elm_Object_Item **, ret)
/**
* @def elm_obj_toolbar_item_prepend
* @since 1.8
*
* Prepend item to the toolbar.
*
* @param[in] icon
* @param[in] label
* @param[in] func
* @param[in] data
* @param[out] ret
*
* @see elm_toolbar_item_prepend
*/
#define elm_obj_toolbar_item_prepend(icon, label, func, data, ret) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_ITEM_PREPEND), EO_TYPECHECK(const char *, icon), EO_TYPECHECK(const char *, label), EO_TYPECHECK(Evas_Smart_Cb, func), EO_TYPECHECK(const void *, data), EO_TYPECHECK(Elm_Object_Item **, ret)
/**
* @def elm_obj_toolbar_item_insert_before
* @since 1.8
*
* Insert a new item into the toolbar object before item before.
*
* @param[in] before
* @param[in] icon
* @param[in] label
* @param[in] func
* @param[in] data
* @param[out] ret
*
* @see elm_toolbar_item_insert_before
*/
#define elm_obj_toolbar_item_insert_before(before, icon, label, func, data, ret) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_ITEM_INSERT_BEFORE), EO_TYPECHECK(Elm_Object_Item *, before), EO_TYPECHECK(const char *, icon), EO_TYPECHECK(const char *, label), EO_TYPECHECK(Evas_Smart_Cb, func), EO_TYPECHECK(const void *, data), EO_TYPECHECK(Elm_Object_Item **, ret)
/**
* @def elm_obj_toolbar_item_insert_after
* @since 1.8
*
* Insert a new item into the toolbar object after item after.
*
* @param[in] after
* @param[in] icon
* @param[in] label
* @param[in] func
* @param[in] data
* @param[out] ret
*
* @see elm_toolbar_item_insert_after
*/
#define elm_obj_toolbar_item_insert_after(after, icon, label, func, data, ret) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_ITEM_INSERT_AFTER), EO_TYPECHECK(Elm_Object_Item *, after), EO_TYPECHECK(const char *, icon), EO_TYPECHECK(const char *, label), EO_TYPECHECK(Evas_Smart_Cb, func), EO_TYPECHECK(const void *, data), EO_TYPECHECK(Elm_Object_Item **, ret)
/**
* @def elm_obj_toolbar_first_item_get
* @since 1.8
*
* Get the first item in the given toolbar widget's list of
* items.
*
* @param[out] ret
*
* @see elm_toolbar_first_item_get
*/
#define elm_obj_toolbar_first_item_get(ret) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_FIRST_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret)
/**
* @def elm_obj_toolbar_last_item_get
* @since 1.8
*
* Get the last item in the given toolbar widget's list of
* items.
*
* @param[out] ret
*
* @see elm_toolbar_last_item_get
*/
#define elm_obj_toolbar_last_item_get(ret) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_LAST_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret)
/**
* @def elm_obj_toolbar_item_find_by_label
* @since 1.8
*
* Returns a pointer to a toolbar item by its label.
*
* @param[in] label
* @param[out] ret
*
* @see elm_toolbar_item_find_by_label
*/
#define elm_obj_toolbar_item_find_by_label(label, ret) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_ITEM_FIND_BY_LABEL), EO_TYPECHECK(const char *, label), EO_TYPECHECK(Elm_Object_Item **, ret)
/**
* @def elm_obj_toolbar_selected_item_get
* @since 1.8
*
* Get the selected item.
*
* @param[out] ret
*
* @see elm_toolbar_selected_item_get
*/
#define elm_obj_toolbar_selected_item_get(ret) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_SELECTED_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret)
/**
* @def elm_obj_toolbar_more_item_get
* @since 1.8
*
* Get the more item.
*
* @param[out] ret
*
* @see elm_toolbar_more_item_get
*/
#define elm_obj_toolbar_more_item_get(ret) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_MORE_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret)
/**
* @def elm_obj_toolbar_shrink_mode_set
* @since 1.8
*
* Set the item displaying mode of a given toolbar widget obj.
*
* @param[in] shrink_mode
*
* @see elm_toolbar_shrink_mode_set
*/
#define elm_obj_toolbar_shrink_mode_set(shrink_mode) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_SHRINK_MODE_SET), EO_TYPECHECK(Elm_Toolbar_Shrink_Mode, shrink_mode)
/**
* @def elm_obj_toolbar_shrink_mode_get
* @since 1.8
*
* Get the shrink mode of toolbar obj.
*
* @param[out] ret
*
* @see elm_toolbar_shrink_mode_get
*/
#define elm_obj_toolbar_shrink_mode_get(ret) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_SHRINK_MODE_GET), EO_TYPECHECK(Elm_Toolbar_Shrink_Mode *, ret)
/**
* @def elm_obj_toolbar_homogeneous_set
* @since 1.8
*
* Enable/disable homogeneous mode.
*
* @param[in] homogeneous
*
* @see elm_toolbar_homogeneous_set
*/
#define elm_obj_toolbar_homogeneous_set(homogeneous) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_HOMOGENEOUS_SET), EO_TYPECHECK(Eina_Bool, homogeneous)
/**
* @def elm_obj_toolbar_homogeneous_get
* @since 1.8
*
* Get whether the homogeneous mode is enabled.
*
* @param[out] ret
*
* @see elm_toolbar_homogeneous_get
*/
#define elm_obj_toolbar_homogeneous_get(ret) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_HOMOGENEOUS_GET), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_toolbar_menu_parent_set
* @since 1.8
*
* Set the parent object of the toolbar items' menus.
*
* @param[in] parent
*
* @see elm_toolbar_menu_parent_set
*/
#define elm_obj_toolbar_menu_parent_set(parent) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_MENU_PARENT_SET), EO_TYPECHECK(Evas_Object *, parent)
/**
* @def elm_obj_toolbar_menu_parent_get
* @since 1.8
*
* Get the parent object of the toolbar items' menus.
*
* @param[out] ret
*
* @see elm_toolbar_menu_parent_get
*/
#define elm_obj_toolbar_menu_parent_get(ret) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_MENU_PARENT_GET), EO_TYPECHECK(Evas_Object **, ret)
/**
* @def elm_obj_toolbar_align_set
* @since 1.8
*
* Set the alignment of the items.
*
* @param[in] align
*
* @see elm_toolbar_align_set
*/
#define elm_obj_toolbar_align_set(align) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_ALIGN_SET), EO_TYPECHECK(double, align)
/**
* @def elm_obj_toolbar_align_get
* @since 1.8
*
* Get the alignment of the items.
*
* @param[out] ret
*
* @see elm_toolbar_align_get
*/
#define elm_obj_toolbar_align_get(ret) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_ALIGN_GET), EO_TYPECHECK(double *, ret)
/**
* @def elm_obj_toolbar_icon_order_lookup_set
* @since 1.8
*
* Sets icon lookup order, for toolbar items' icons.
*
* @param[in] order
*
* @see elm_toolbar_icon_order_lookup_set
*/
#define elm_obj_toolbar_icon_order_lookup_set(order) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_ICON_ORDER_LOOKUP_SET), EO_TYPECHECK(Elm_Icon_Lookup_Order, order)
/**
* @def elm_obj_toolbar_icon_order_lookup_get
* @since 1.8
*
* Get the icon lookup order.
*
* @param[out] ret
*
* @see elm_toolbar_icon_order_lookup_get
*/
#define elm_obj_toolbar_icon_order_lookup_get(ret) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_ICON_ORDER_LOOKUP_GET), EO_TYPECHECK(Elm_Icon_Lookup_Order *, ret)
/**
* @def elm_obj_toolbar_horizontal_set
* @since 1.8
*
* Change a toolbar's orientation
*
* @param[in] horizontal
*
* @see elm_toolbar_horizontal_set
*/
#define elm_obj_toolbar_horizontal_set(horizontal) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_HORIZONTAL_SET), EO_TYPECHECK(Eina_Bool, horizontal)
/**
* @def elm_obj_toolbar_horizontal_get
* @since 1.8
*
* Get a toolbar's orientation
*
* @param[out] ret
*
* @see elm_toolbar_horizontal_get
*/
#define elm_obj_toolbar_horizontal_get(ret) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_HORIZONTAL_GET), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_toolbar_items_count
* @since 1.8
*
* Get the number of items in a toolbar
*
* @param[out] ret
*
* @see elm_toolbar_items_count
*/
#define elm_obj_toolbar_items_count(ret) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_ITEMS_COUNT), EO_TYPECHECK(unsigned int *, ret)
/**
* @def elm_obj_toolbar_standard_priority_set
* @since 1.8
*
* Set the standard priority of visible items in a toolbar
*
* @param[in] priority
*
* @see elm_toolbar_standard_priority_set
*/
#define elm_obj_toolbar_standard_priority_set(priority) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_STANDARD_PRIORITY_SET), EO_TYPECHECK(int, priority)
/**
* @def elm_obj_toolbar_standard_priority_get
* @since 1.8
*
* Get the standard_priority of visible items in a toolbar
*
* @param[out] ret
*
* @see elm_toolbar_standard_priority_get
*/
#define elm_obj_toolbar_standard_priority_get(ret) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_STANDARD_PRIORITY_GET), EO_TYPECHECK(int *, ret)
/**
* @def elm_obj_toolbar_select_mode_set
* @since 1.8
*
* No description supplied by the EAPI.
*
* @param[in] mode
*
* @see elm_toolbar_select_mode_set
*/
#define elm_obj_toolbar_select_mode_set(mode) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_SELECT_MODE_SET), EO_TYPECHECK(Elm_Object_Select_Mode, mode)
/**
* @def elm_obj_toolbar_select_mode_get
* @since 1.8
*
* No description supplied by the EAPI.
*
* @param[out] ret
*
* @see elm_toolbar_select_mode_get
*/
#define elm_obj_toolbar_select_mode_get(ret) ELM_OBJ_TOOLBAR_ID(ELM_OBJ_TOOLBAR_SUB_ID_SELECT_MODE_GET), EO_TYPECHECK(Elm_Object_Select_Mode *, ret)
#endif
/**
* @}
*/

View File

@ -12,313 +12,26 @@
EAPI Evas_Object *elm_toolbar_add(Evas_Object *parent);
/**
* Set the icon size, in pixels, to be used by toolbar items.
* Set reorder mode
*
* @param obj The toolbar object
* @param icon_size The icon size in pixels
*
* @note Default value is @c 32. It reads value from elm config.
*
* @see elm_toolbar_icon_size_get()
* @param reorder_mode The reorder mode
* (EINA_TRUE = on, EINA_FALSE = off)
*
* @ingroup Toolbar
*/
EAPI void elm_toolbar_icon_size_set(Evas_Object *obj, int icon_size);
EAPI void elm_toolbar_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode);
/**
* Get the icon size, in pixels, to be used by toolbar items.
*
* @param obj The toolbar object.
* @return The icon size in pixels.
*
* @see elm_toolbar_icon_size_set() for details.
*
* @ingroup Toolbar
*/
EAPI int elm_toolbar_icon_size_get(const Evas_Object *obj);
/**
* Sets icon lookup order, for toolbar items' icons.
*
* @param obj The toolbar object.
* @param order The icon lookup order.
*
* Icons added before calling this function will not be affected.
* The default lookup order is #ELM_ICON_LOOKUP_THEME_FDO.
*
* @see elm_toolbar_icon_order_lookup_get()
*
* @ingroup Toolbar
*/
EAPI void elm_toolbar_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order);
/**
* Get the icon lookup order.
*
* @param obj The toolbar object.
* @return The icon lookup order.
*
* @see elm_toolbar_icon_order_lookup_set() for details.
*
* @ingroup Toolbar
*/
EAPI Elm_Icon_Lookup_Order elm_toolbar_icon_order_lookup_get(const Evas_Object *obj);
/**
* Append item to the toolbar.
*
* @param obj The toolbar object.
* @param icon A string with icon name or the absolute path of an image file.
* @param label The label of the item.
* @param func The function to call when the item is clicked.
* @param data The data to associate with the item for related callbacks.
* @return The created item or @c NULL upon failure.
*
* A new item will be created and appended to the toolbar, i.e., will
* be set as @b last item.
*
* Items created with this method can be deleted with
* elm_object_item_del().
*
* Associated @p data can be properly freed when item is deleted if a
* callback function is set with elm_object_item_del_cb_set().
*
* If a function is passed as argument, it will be called every time this item
* is selected, i.e., the user clicks over an unselected item.
* If such function isn't needed, just passing
* @c NULL as @p func is enough. The same should be done for @p data.
*
* Toolbar will load icon image from fdo or current theme.
* This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
* If an absolute path is provided it will load it direct from a file.
*
* @note This function does not accept relative icon path.
*
* @see elm_toolbar_item_icon_set()
* @see elm_object_item_del()
*
* @ingroup Toolbar
*/
EAPI Elm_Object_Item *elm_toolbar_item_append(Evas_Object *obj, const char *icon, const char *label, Evas_Smart_Cb func, const void *data);
/**
* Prepend item to the toolbar.
*
* @param obj The toolbar object.
* @param icon A string with icon name or the absolute path of an image file.
* @param label The label of the item.
* @param func The function to call when the item is clicked.
* @param data The data to associate with the item for related callbacks.
* @return The created item or @c NULL upon failure.
*
* A new item will be created and prepended to the toolbar, i.e., will
* be set as @b first item.
*
* Items created with this method can be deleted with
* elm_object_item_del().
*
* Associated @p data can be properly freed when item is deleted if a
* callback function is set with elm_object_item_del_cb_set().
*
* If a function is passed as argument, it will be called every time this item
* is selected, i.e., the user clicks over an unselected item.
* If such function isn't needed, just passing
* @c NULL as @p func is enough. The same should be done for @p data.
*
* Toolbar will load icon image from fdo or current theme.
* This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
* If an absolute path is provided it will load it direct from a file.
*
* @note This function does not accept relative icon path.
*
* @see elm_toolbar_item_icon_set()
* @see elm_object_item_del()
*
* @ingroup Toolbar
*/
EAPI Elm_Object_Item *elm_toolbar_item_prepend(Evas_Object *obj, const char *icon, const char *label, Evas_Smart_Cb func, const void *data);
/**
* Insert a new item into the toolbar object before item @p before.
*
* @param obj The toolbar object.
* @param before The toolbar item to insert before.
* @param icon A string with icon name or the absolute path of an image file.
* @param label The label of the item.
* @param func The function to call when the item is clicked.
* @param data The data to associate with the item for related callbacks.
* @return The created item or @c NULL upon failure.
*
* A new item will be created and added to the toolbar. Its position in
* this toolbar will be just before item @p before.
*
* Items created with this method can be deleted with
* elm_object_item_del().
*
* Associated @p data can be properly freed when item is deleted if a
* callback function is set with elm_object_item_del_cb_set().
*
* If a function is passed as argument, it will be called every time this item
* is selected, i.e., the user clicks over an unselected item.
* If such function isn't needed, just passing
* @c NULL as @p func is enough. The same should be done for @p data.
*
* Toolbar will load icon image from fdo or current theme.
* This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
* If an absolute path is provided it will load it direct from a file.
*
* @note This function does not accept relative icon path.
*
* @see elm_toolbar_item_icon_set()
* @see elm_object_item_del()
*
* @ingroup Toolbar
*/
EAPI Elm_Object_Item *elm_toolbar_item_insert_before(Evas_Object *obj, Elm_Object_Item *before, const char *icon, const char *label, Evas_Smart_Cb func, const void *data);
/**
* Insert a new item into the toolbar object after item @p after.
*
* @param obj The toolbar object.
* @param after The toolbar item to insert after.
* @param icon A string with icon name or the absolute path of an image file.
* @param label The label of the item.
* @param func The function to call when the item is clicked.
* @param data The data to associate with the item for related callbacks.
* @return The created item or @c NULL upon failure.
*
* A new item will be created and added to the toolbar. Its position in
* this toolbar will be just after item @p after.
*
* Items created with this method can be deleted with
* elm_object_item_del().
*
* Associated @p data can be properly freed when item is deleted if a
* callback function is set with elm_object_item_del_cb_set().
*
* If a function is passed as argument, it will be called every time this item
* is selected, i.e., the user clicks over an unselected item.
* If such function isn't needed, just passing
* @c NULL as @p func is enough. The same should be done for @p data.
*
* Toolbar will load icon image from fdo or current theme.
* This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
* If an absolute path is provided it will load it direct from a file.
*
* @note This function does not accept relative icon path.
*
* @see elm_toolbar_item_icon_set()
* @see elm_object_item_del()
*
* @ingroup Toolbar
*/
EAPI Elm_Object_Item *elm_toolbar_item_insert_after(Evas_Object *obj, Elm_Object_Item *after, const char *icon, const char *label, Evas_Smart_Cb func, const void *data);
/**
* Get the first item in the given toolbar widget's list of
* items.
* Get the reorder mode
*
* @param obj The toolbar object
* @return The first item or @c NULL, if it has no items (and on
* errors)
*
* @see elm_toolbar_item_append()
* @see elm_toolbar_last_item_get()
* @return The reorder mode
* (EINA_TRUE = on, EINA_FALSE = off)
*
* @ingroup Toolbar
*/
EAPI Elm_Object_Item *elm_toolbar_first_item_get(const Evas_Object *obj);
/**
* Get the last item in the given toolbar widget's list of
* items.
*
* @param obj The toolbar object
* @return The last item or @c NULL, if it has no items (and on
* errors)
*
* @see elm_toolbar_item_prepend()
* @see elm_toolbar_first_item_get()
*
* @ingroup Toolbar
*/
EAPI Elm_Object_Item *elm_toolbar_last_item_get(const Evas_Object *obj);
/**
* Returns a pointer to a toolbar item by its label.
*
* @param obj The toolbar object.
* @param label The label of the item to find.
*
* @return The pointer to the toolbar item matching @p label or @c NULL
* on failure.
*
* @ingroup Toolbar
*/
EAPI Elm_Object_Item *elm_toolbar_item_find_by_label(const Evas_Object *obj, const char *label);
/**
* Get the selected item.
*
* @param obj The toolbar object.
* @return The selected toolbar item.
*
* The selected item can be unselected with function
* elm_toolbar_item_selected_set().
*
* The selected item always will be highlighted on toolbar.
*
* @ingroup Toolbar
*/
EAPI Elm_Object_Item *elm_toolbar_selected_item_get(const Evas_Object *obj);
/**
* Get the more item which is auto-generated by toolbar.
*
* @param obj The toolbar object.
* @return The toolbar more item.
*
* Toolbar generates 'more' item when there is no more space to fit items in
* and toolbar is in ELM_TOOLBAR_SHRINK_MENU or ELM_TOOLBAR_SHRINK_EXPAND mode.
* The more item can be manipulated by elm_object_item_text_set() and
* elm_object_item_content_set.
*
* @ingroup Toolbar
*/
EAPI Elm_Object_Item *elm_toolbar_more_item_get(const Evas_Object *obj);
/**
* Set the item displaying mode of a given toolbar widget @p obj.
*
* @param obj The toolbar object handle
* @param shrink_mode Toolbar's items display behavior
*
* The toolbar won't scroll under #ELM_TOOLBAR_SHRINK_NONE mode, but
* it will enforce a minimum size, so that all the items will fit
* inside it. It won't scroll and won't show the items that don't fit
* under #ELM_TOOLBAR_SHRINK_HIDE mode. Finally, it'll scroll under
* #ELM_TOOLBAR_SHRINK_SCROLL mode, and it will create a button to
* aggregate items which didn't fit with the #ELM_TOOLBAR_SHRINK_MENU
* mode.
*
* @warning This function's behavior will clash with those of
* elm_scroller_policy_set(), so use either one of them, but not both.
*
* @ingroup Toolbar
*/
EAPI void elm_toolbar_shrink_mode_set(Evas_Object *obj, Elm_Toolbar_Shrink_Mode shrink_mode);
/**
* Get the shrink mode of toolbar @p obj.
*
* @param obj The toolbar object.
* @return Toolbar's items display behavior.
*
* @see elm_toolbar_shrink_mode_set() for details.
*
* @ingroup Toolbar
*/
EAPI Elm_Toolbar_Shrink_Mode elm_toolbar_shrink_mode_get(const Evas_Object *obj);
EAPI Eina_Bool elm_toolbar_reorder_mode_get(const Evas_Object *obj);
/**
* Set the item's transverse expansion of a given toolbar widget @p obj.
@ -347,204 +60,4 @@ EAPI void elm_toolbar_transverse_expanded_set(Evas_Objec
*/
EAPI Eina_Bool elm_toolbar_transverse_expanded_get(const Evas_Object *obj);
/**
* Enable/disable homogeneous mode.
*
* @param obj The toolbar object
* @param homogeneous Assume the items within the toolbar are of the
* same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
*
* This will enable the homogeneous mode where items are of the same size.
* @see elm_toolbar_homogeneous_get()
*
* @ingroup Toolbar
*/
EAPI void elm_toolbar_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous);
/**
* Get whether the homogeneous mode is enabled.
*
* @param obj The toolbar object.
* @return Assume the items within the toolbar are of the same height
* and width (EINA_TRUE = on, EINA_FALSE = off).
*
* @see elm_toolbar_homogeneous_set()
*
* @ingroup Toolbar
*/
EAPI Eina_Bool elm_toolbar_homogeneous_get(const Evas_Object *obj);
/**
* Set the parent object of the toolbar items' menus.
*
* @param obj The toolbar object.
* @param parent The parent of the menu objects.
*
* Each item can be set as item menu, with elm_toolbar_item_menu_set().
*
* For more details about setting the parent for toolbar menus, see
* elm_menu_parent_set().
*
* @see elm_menu_parent_set() for details.
* @see elm_toolbar_item_menu_set() for details.
*
* @ingroup Toolbar
*/
EAPI void elm_toolbar_menu_parent_set(Evas_Object *obj, Evas_Object *parent);
/**
* Get the parent object of the toolbar items' menus.
*
* @param obj The toolbar object.
* @return The parent of the menu objects.
*
* @see elm_toolbar_menu_parent_set() for details.
*
* @ingroup Toolbar
*/
EAPI Evas_Object *elm_toolbar_menu_parent_get(const Evas_Object *obj);
/**
* Set the alignment of the items.
*
* @param obj The toolbar object.
* @param align The new alignment, a float between <tt> 0.0 </tt>
* and <tt> 1.0 </tt>.
*
* Alignment of toolbar items, from <tt> 0.0 </tt> to indicates to align
* left, to <tt> 1.0 </tt>, to align to right. <tt> 0.5 </tt> centralize
* items.
*
* Centered items by default.
*
* @see elm_toolbar_align_get()
*
* @ingroup Toolbar
*/
EAPI void elm_toolbar_align_set(Evas_Object *obj, double align);
/**
* Get the alignment of the items.
*
* @param obj The toolbar object.
* @return toolbar items alignment, a float between <tt> 0.0 </tt> and
* <tt> 1.0 </tt>.
*
* @see elm_toolbar_align_set() for details.
*
* @ingroup Toolbar
*/
EAPI double elm_toolbar_align_get(const Evas_Object *obj);
/**
* Change a toolbar's orientation
* @param obj The toolbar object
* @param horizontal If @c EINA_TRUE, the toolbar is horizontal
* By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
* @ingroup Toolbar
*/
EAPI void elm_toolbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal);
/**
* Get a toolbar's orientation
* @param obj The toolbar object
* @return If @c EINA_TRUE, the toolbar is horizontal
* By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
* @ingroup Toolbar
*/
EAPI Eina_Bool elm_toolbar_horizontal_get(const Evas_Object *obj);
/**
* Get the number of items in a toolbar
* @param obj The toolbar object
* @return The number of items in @p obj toolbar
* @ingroup Toolbar
*/
EAPI unsigned int elm_toolbar_items_count(const Evas_Object *obj);
/**
* Set the standard priority of visible items in a toolbar
* @param obj The toolbar object
* @param priority The standard_priority of visible items
*
* If the priority of the item is up to standard priority, it is shown in basic panel.
* The other items are located in more menu or panel. The more menu or panel can be shown when the more item is clicked.
*
* @see elm_toolbar_standard_priority_get()
*
* @since 1.7
* @ingroup Toolbar
*/
EAPI void elm_toolbar_standard_priority_set(Evas_Object *obj, int priority);
/**
* Get the standard_priority of visible items in a toolbar
* @param obj The toolbar object
* @return The standard priority of items in @p obj toolbar
*
* @see elm_toolbar_standard_priority_set()
*
* @since 1.7
* @ingroup Toolbar
*/
EAPI int elm_toolbar_standard_priority_get(const Evas_Object *obj);
/**
* Set the toolbar select mode.
*
* @param obj The toolbar object
* @param mode The select mode
*
* elm_toolbar_select_mode_set() changes item select mode in the toolbar widget.
* - ELM_OBJECT_SELECT_MODE_DEFAULT : Items will only call their selection func and
* callback when first becoming selected. Any further clicks will
* do nothing, unless you set always select mode.
* - ELM_OBJECT_SELECT_MODE_ALWAYS : This means that, even if selected,
* every click will make the selected callbacks be called.
* - ELM_OBJECT_SELECT_MODE_NONE : This will turn off the ability to select items
* entirely and they will neither appear selected nor call selected
* callback functions.
*
* @see elm_toolbar_select_mode_get()
*
* @ingroup Toolbar
*/
EAPI void
elm_toolbar_select_mode_set(Evas_Object *obj, Elm_Object_Select_Mode mode);
/**
* Get the toolbar select mode.
*
* @param obj The toolbar object
* @return The select mode
* (If getting mode is failed, it returns ELM_OBJECT_SELECT_MODE_MAX)
*
* @see elm_toolbar_select_mode_set()
*
* @ingroup Toolbar
*/
EAPI Elm_Object_Select_Mode
elm_toolbar_select_mode_get(const Evas_Object *obj);
/**
* Set reorder mode
*
* @param obj The toolbar object
* @param reorder_mode The reorder mode
* (EINA_TRUE = on, EINA_FALSE = off)
*
* @ingroup Toolbar
*/
EAPI void elm_toolbar_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode);
/**
* Get the reorder mode
*
* @param obj The toolbar object
* @return The reorder mode
* (EINA_TRUE = on, EINA_FALSE = off)
*
* @ingroup Toolbar
*/
EAPI Eina_Bool elm_toolbar_reorder_mode_get(const Evas_Object *obj);
#include "elm_toolbar.eo.legacy.h"

View File

@ -1,288 +1,2 @@
#include "elc_player.eo.h"
#include "elm_video.eo.h"
#if 0
#define ELM_OBJ_PLAYER_CLASS elm_obj_player_class_get()
const Eo_Class *elm_obj_player_class_get(void) EINA_CONST;
extern EAPI Eo_Op ELM_OBJ_PLAYER_BASE_ID;
enum
{
ELM_OBJ_PLAYER_SUB_ID_LAST
};
#define ELM_OBJ_PLAYER_ID(sub_id) (ELM_OBJ_PLAYER_BASE_ID + sub_id)
/**
* ELM_OBJ_VIDEO_CLASS
*/
#define ELM_OBJ_VIDEO_CLASS elm_obj_video_class_get()
const Eo_Class *elm_obj_video_class_get(void) EINA_CONST;
extern EAPI Eo_Op ELM_OBJ_VIDEO_BASE_ID;
enum
{
ELM_OBJ_VIDEO_SUB_ID_FILE_SET,
ELM_OBJ_VIDEO_SUB_ID_EMOTION_GET,
ELM_OBJ_VIDEO_SUB_ID_PLAY,
ELM_OBJ_VIDEO_SUB_ID_PAUSE,
ELM_OBJ_VIDEO_SUB_ID_STOP,
ELM_OBJ_VIDEO_SUB_ID_IS_PLAYING_GET,
ELM_OBJ_VIDEO_SUB_ID_IS_SEEKABLE_GET,
ELM_OBJ_VIDEO_SUB_ID_AUDIO_MUTE_GET,
ELM_OBJ_VIDEO_SUB_ID_AUDIO_MUTE_SET,
ELM_OBJ_VIDEO_SUB_ID_AUDIO_LEVEL_GET,
ELM_OBJ_VIDEO_SUB_ID_AUDIO_LEVEL_SET,
ELM_OBJ_VIDEO_SUB_ID_PLAY_POSITION_GET,
ELM_OBJ_VIDEO_SUB_ID_PLAY_POSITION_SET,
ELM_OBJ_VIDEO_SUB_ID_PLAY_LENGTH_GET,
ELM_OBJ_VIDEO_SUB_ID_TITLE_GET,
ELM_OBJ_VIDEO_SUB_ID_REMEMBER_POSITION_SET,
ELM_OBJ_VIDEO_SUB_ID_REMEMBER_POSITION_GET,
ELM_OBJ_VIDEO_SUB_ID_LAST
};
#define ELM_OBJ_VIDEO_ID(sub_id) (ELM_OBJ_VIDEO_BASE_ID + sub_id)
/**
* @def elm_obj_video_file_set
* @since 1.8
*
* @brief Define the file or URI that will be the video source.
*
* @param[in] filename
* @param[out] ret
*
* @see elm_video_file_set
*
* @ingroup Video
*/
#define elm_obj_video_file_set(filename, ret) ELM_OBJ_VIDEO_ID(ELM_OBJ_VIDEO_SUB_ID_FILE_SET), EO_TYPECHECK(const char *, filename), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_video_emotion_get
* @since 1.8
*
* @brief Get the underlying Emotion object.
*
* @param[out] ret
*
* @see elm_video_emotion_get
*
* @ingroup Video
*/
#define elm_obj_video_emotion_get(ret) ELM_OBJ_VIDEO_ID(ELM_OBJ_VIDEO_SUB_ID_EMOTION_GET), EO_TYPECHECK(Evas_Object **, ret)
/**
* @def elm_obj_video_play
* @since 1.8
*
* @brief Start to play the video
*
*
* @see elm_video_play
*
* @ingroup Video
*/
#define elm_obj_video_play() ELM_OBJ_VIDEO_ID(ELM_OBJ_VIDEO_SUB_ID_PLAY)
/**
* @def elm_obj_video_pause
* @since 1.8
*
* @brief Pause the video
*
*
* @see elm_video_pause
*
* @ingroup Video
*/
#define elm_obj_video_pause() ELM_OBJ_VIDEO_ID(ELM_OBJ_VIDEO_SUB_ID_PAUSE)
/**
* @def elm_obj_video_stop
* @since 1.8
*
* @brief Stop the video
*
*
* @see elm_video_stop
*
* @ingroup Video
*/
#define elm_obj_video_stop() ELM_OBJ_VIDEO_ID(ELM_OBJ_VIDEO_SUB_ID_STOP)
/**
* @def elm_obj_video_is_playing_get
* @since 1.8
*
* @brief Is the video actually playing.
*
* @param[out] ret
*
* @see elm_video_is_playing_get
*
* @ingroup Video
*/
#define elm_obj_video_is_playing_get(ret) ELM_OBJ_VIDEO_ID(ELM_OBJ_VIDEO_SUB_ID_IS_PLAYING_GET), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_video_is_seekable_get
* @since 1.8
*
* @brief Is it possible to seek inside the video.
*
* @param[out] ret
*
* @see elm_video_is_seekable_get
*
* @ingroup Video
*/
#define elm_obj_video_is_seekable_get(ret) ELM_OBJ_VIDEO_ID(ELM_OBJ_VIDEO_SUB_ID_IS_SEEKABLE_GET), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_video_audio_mute_get
* @since 1.8
*
* @brief Is the audio muted.
*
* @param[out] ret
*
* @see elm_video_audio_mute_get
*
* @ingroup Video
*/
#define elm_obj_video_audio_mute_get(ret) ELM_OBJ_VIDEO_ID(ELM_OBJ_VIDEO_SUB_ID_AUDIO_MUTE_GET), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_video_audio_mute_set
* @since 1.8
*
* @brief Change the mute state of the Elm_Video object.
*
* @param[in] mute
*
* @see elm_video_audio_mute_set
*
* @ingroup Video
*/
#define elm_obj_video_audio_mute_set(mute) ELM_OBJ_VIDEO_ID(ELM_OBJ_VIDEO_SUB_ID_AUDIO_MUTE_SET), EO_TYPECHECK(Eina_Bool, mute)
/**
* @def elm_obj_video_audio_level_get
* @since 1.8
*
* @brief Get the audio level of the current video.
*
* @param[out] ret
*
* @see elm_video_audio_level_get
*
* @ingroup Video
*/
#define elm_obj_video_audio_level_get(ret) ELM_OBJ_VIDEO_ID(ELM_OBJ_VIDEO_SUB_ID_AUDIO_LEVEL_GET), EO_TYPECHECK(double *, ret)
/**
* @def elm_obj_video_audio_level_set
* @since 1.8
*
* @brief Set the audio level of an Elm_Video object.
*
* @param[in] volume
*
* @see elm_video_audio_level_set
*
* @ingroup Video
*/
#define elm_obj_video_audio_level_set(volume) ELM_OBJ_VIDEO_ID(ELM_OBJ_VIDEO_SUB_ID_AUDIO_LEVEL_SET), EO_TYPECHECK(double, volume)
/**
* @def elm_obj_video_play_position_get
* @since 1.8
*
* @brief Get the current position (in seconds) being played in the
* Elm_Video object.
*
* @param[out] ret
*
* @see elm_video_play_position_get
*
* @ingroup Video
*/
#define elm_obj_video_play_position_get(ret) ELM_OBJ_VIDEO_ID(ELM_OBJ_VIDEO_SUB_ID_PLAY_POSITION_GET), EO_TYPECHECK(double *, ret)
/**
* @def elm_obj_video_play_position_set
* @since 1.8
*
* @brief Set the current position (in seconds) to be played in the
* Elm_Video object.
*
* @param[in] position
*
* @see elm_video_play_position_set
*
* @ingroup Video
*/
#define elm_obj_video_play_position_set(position) ELM_OBJ_VIDEO_ID(ELM_OBJ_VIDEO_SUB_ID_PLAY_POSITION_SET), EO_TYPECHECK(double, position)
/**
* @def elm_obj_video_play_length_get
* @since 1.8
*
* @brief Get the total playing time (in seconds) of the Elm_Video object.
*
* @param[out] ret
*
* @see elm_video_play_length_get
*
* @ingroup Video
*/
#define elm_obj_video_play_length_get(ret) ELM_OBJ_VIDEO_ID(ELM_OBJ_VIDEO_SUB_ID_PLAY_LENGTH_GET), EO_TYPECHECK(double *, ret)
/**
* @def elm_obj_video_title_get
* @since 1.8
*
* @brief Get the title (for instance DVD title) from this emotion object.
*
* @param[out] ret
*
* @see elm_video_title_get
*
* @ingroup Video
*/
#define elm_obj_video_title_get(ret) ELM_OBJ_VIDEO_ID(ELM_OBJ_VIDEO_SUB_ID_TITLE_GET), EO_TYPECHECK(const char **, ret)
/**
* @def elm_obj_video_remember_position_set
* @since 1.8
*
* @brief Set whether the object can remember the last played position.
*
* @param[in] remember
*
* @see elm_video_remember_position_set
*
* @ingroup Video
*/
#define elm_obj_video_remember_position_set(remember) ELM_OBJ_VIDEO_ID(ELM_OBJ_VIDEO_SUB_ID_REMEMBER_POSITION_SET), EO_TYPECHECK(Eina_Bool, remember)
/**
* @def elm_obj_video_remember_position_get
* @since 1.8
*
* @brief Set whether the object can remember the last played position.
*
* @param[out] ret
*
* @see elm_video_remember_position_get
*
* @ingroup Video
*/
#define elm_obj_video_remember_position_get(ret) ELM_OBJ_VIDEO_ID(ELM_OBJ_VIDEO_SUB_ID_REMEMBER_POSITION_GET), EO_TYPECHECK(Eina_Bool *, ret)
#endif
#include "elm_video.eo.h"

View File

@ -26,203 +26,4 @@ EAPI Evas_Object *elm_player_add(Evas_Object *parent);
*/
EAPI Evas_Object *elm_video_add(Evas_Object *parent);
/**
* @brief Define the file or URI that will be the video source.
*
* @param video The video object to define the file or URI for the video
* of the Elm_Video object.
*
* @param filename The file or URI to target.
* Local files can be specified using file:// or by using full file paths.
* URI could be remote source of video, like http:// or local source like
* WebCam (v4l2://). (You can use Emotion API to request and list
* the available Webcam on your system).
*
* @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
*
* This function will explicitly define a file or URI as a source
* for the video of the Elm_Video object.
*
* @see elm_video_add()
* @see elm_player_add()
*
* @ingroup Video
*/
EAPI Eina_Bool elm_video_file_set(Evas_Object *video, const char *filename);
/**
* @brief Get the underlying Emotion object.
*
* @param video The video object to proceed the request on.
* @return the underlying Emotion object.
*
* @ingroup Video
*/
EAPI Evas_Object *elm_video_emotion_get(const Evas_Object *video);
/**
* @brief Start to play the video
*
* @param video The video object to proceed the request on.
*
* Start to play the video and cancel all suspend state.
*
* @ingroup Video
*/
EAPI void elm_video_play(Evas_Object *video);
/**
* @brief Pause the video
*
* @param video The video object to proceed the request on.
*
* Pause the video and start a timer to trigger suspend mode.
*
* @ingroup Video
*/
EAPI void elm_video_pause(Evas_Object *video);
/**
* @brief Stop the video
*
* @param video The video object to proceed the request on.
*
* Stop the video and put the emotion in deep sleep mode.
*
* @ingroup Video
*/
EAPI void elm_video_stop(Evas_Object *video);
/**
* @brief Is the video actually playing.
*
* @param video The video object to proceed the request on.
* @return @c EINA_TRUE if the video is actually playing.
*
* You should consider watching event on the object instead of polling
* the object state.
*
* @ingroup Video
*/
EAPI Eina_Bool elm_video_is_playing_get(const Evas_Object *video);
/**
* @brief Is it possible to seek inside the video.
*
* @param video The video object to proceed the request on.
* @return @c EINA_TRUE if is possible to seek inside the video.
*
* @ingroup Video
*/
EAPI Eina_Bool elm_video_is_seekable_get(const Evas_Object *video);
/**
* @brief Is the audio muted.
*
* @param video The video object to proceed the request on.
* @return @c EINA_TRUE if the audio is muted.
*
* @ingroup Video
*/
EAPI Eina_Bool elm_video_audio_mute_get(const Evas_Object *video);
/**
* @brief Change the mute state of the Elm_Video object.
*
* @param video The video object to proceed the request on.
* @param mute The new mute state.
*
* @ingroup Video
*/
EAPI void elm_video_audio_mute_set(Evas_Object *video, Eina_Bool mute);
/**
* @brief Get the audio level of the current video.
*
* @param video The video object to proceed the request on.
* @return the current audio level.
*
* @ingroup Video
*/
EAPI double elm_video_audio_level_get(const Evas_Object *video);
/**
* @brief Set the audio level of an Elm_Video object.
*
* @param video The video object to proceed the request on.
* @param volume The new audio volume.
*
* @ingroup Video
*/
EAPI void elm_video_audio_level_set(Evas_Object *video, double volume);
/**
* @brief Get the current position (in seconds) being played in the
* Elm_Video object.
*
* @param video The video object.
* @return The time (in seconds) since the beginning of the media file.
*
* @ingroup Video
*/
EAPI double elm_video_play_position_get(const Evas_Object *video);
/**
* @brief Set the current position (in seconds) to be played in the
* Elm_Video object.
*
* @param video The video object.
* @param position The time (in seconds) since the beginning of the media file.
*
* @ingroup Video
*/
EAPI void elm_video_play_position_set(Evas_Object *video, double position);
/**
* @brief Get the total playing time (in seconds) of the Elm_Video object.
*
* @param video The video object.
* @return The total duration (in seconds) of the media file.
*
* @ingroup Video
*/
EAPI double elm_video_play_length_get(const Evas_Object *video);
/**
* @brief Set whether the object can remember the last played position.
*
* @param video The video object.
* @param remember the last played position of the Elm_Video object.
*
* @note This API only serves as indication. System support is required.
*
* @ingroup Video
*/
EAPI void elm_video_remember_position_set(Evas_Object *video, Eina_Bool remember);
/**
* @brief Set whether the object can remember the last played position.
*
* @param video The video object.
* @return whether the object remembers the last played position (@c EINA_TRUE)
* or not.
*
* @note This API only serves as indication. System support is required.
*
* @ingroup Video
*/
EAPI Eina_Bool elm_video_remember_position_get(const Evas_Object *video);
/**
* @brief Get the title (for instance DVD title) from this emotion object.
*
* @param video The Elm_Video object.
* @return A string containing the title.
*
* This function is only useful when playing a DVD.
*
* @note Don't change or free the string returned by this function.
*
* @ingroup Video
*/
EAPI const char *elm_video_title_get(const Evas_Object *video);
#include "elm_video.eo.legacy.h"

View File

@ -1,725 +1 @@
#include "elm_web.eo.h"
#if 0
#define ELM_OBJ_WEB_CLASS elm_obj_web_class_get()
const Eo_Class *elm_obj_web_class_get(void) EINA_CONST;
extern EAPI Eo_Op ELM_OBJ_WEB_BASE_ID;
enum
{
ELM_OBJ_WEB_SUB_ID_WEBKIT_VIEW_GET,
ELM_OBJ_WEB_SUB_ID_WINDOW_CREATE_HOOK_SET,
ELM_OBJ_WEB_SUB_ID_DIALOG_ALERT_HOOK_SET,
ELM_OBJ_WEB_SUB_ID_DIALOG_CONFIRM_HOOK_SET,
ELM_OBJ_WEB_SUB_ID_DIALOG_PROMPT_HOOK_SET,
ELM_OBJ_WEB_SUB_ID_DIALOG_FILE_SELECTOR_HOOK_SET,
ELM_OBJ_WEB_SUB_ID_CONSOLE_MESSAGE_HOOK_SET,
ELM_OBJ_WEB_SUB_ID_USERAGENT_SET,
ELM_OBJ_WEB_SUB_ID_USERAGENT_GET,
ELM_OBJ_WEB_SUB_ID_TAB_PROPAGATE_GET,
ELM_OBJ_WEB_SUB_ID_TAB_PROPAGATE_SET,
ELM_OBJ_WEB_SUB_ID_URL_SET,
ELM_OBJ_WEB_SUB_ID_URL_GET,
ELM_OBJ_WEB_SUB_ID_HTML_STRING_LOAD,
ELM_OBJ_WEB_SUB_ID_TITLE_GET,
ELM_OBJ_WEB_SUB_ID_BG_COLOR_SET,
ELM_OBJ_WEB_SUB_ID_BG_COLOR_GET,
ELM_OBJ_WEB_SUB_ID_SELECTION_GET,
ELM_OBJ_WEB_SUB_ID_POPUP_SELECTED_SET,
ELM_OBJ_WEB_SUB_ID_POPUP_DESTROY,
ELM_OBJ_WEB_SUB_ID_TEXT_SEARCH,
ELM_OBJ_WEB_SUB_ID_TEXT_MATCHES_MARK,
ELM_OBJ_WEB_SUB_ID_TEXT_MATCHES_UNMARK_ALL,
ELM_OBJ_WEB_SUB_ID_TEXT_MATCHES_HIGHLIGHT_SET,
ELM_OBJ_WEB_SUB_ID_TEXT_MATCHES_HIGHLIGHT_GET,
ELM_OBJ_WEB_SUB_ID_LOAD_PROGRESS_GET,
ELM_OBJ_WEB_SUB_ID_STOP,
ELM_OBJ_WEB_SUB_ID_RELOAD,
ELM_OBJ_WEB_SUB_ID_RELOAD_FULL,
ELM_OBJ_WEB_SUB_ID_BACK,
ELM_OBJ_WEB_SUB_ID_FORWARD,
ELM_OBJ_WEB_SUB_ID_NAVIGATE,
ELM_OBJ_WEB_SUB_ID_BACK_POSSIBLE_GET,
ELM_OBJ_WEB_SUB_ID_FORWARD_POSSIBLE_GET,
ELM_OBJ_WEB_SUB_ID_NAVIGATE_POSSIBLE_GET,
ELM_OBJ_WEB_SUB_ID_HISTORY_ENABLED_GET,
ELM_OBJ_WEB_SUB_ID_HISTORY_ENABLED_SET,
ELM_OBJ_WEB_SUB_ID_ZOOM_SET,
ELM_OBJ_WEB_SUB_ID_ZOOM_GET,
ELM_OBJ_WEB_SUB_ID_ZOOM_MODE_SET,
ELM_OBJ_WEB_SUB_ID_ZOOM_MODE_GET,
ELM_OBJ_WEB_SUB_ID_REGION_SHOW,
ELM_OBJ_WEB_SUB_ID_REGION_BRING_IN,
ELM_OBJ_WEB_SUB_ID_INWIN_MODE_SET,
ELM_OBJ_WEB_SUB_ID_INWIN_MODE_GET,
ELM_OBJ_WEB_SUB_ID_LAST
};
#define ELM_OBJ_WEB_ID(sub_id) (ELM_OBJ_WEB_BASE_ID + sub_id)
/**
* @def elm_obj_web_webkit_view_get
* @since 1.8
*
* Get internal ewk_view object from web object.
*
* @param[out] ret
*
* @see elm_web_webkit_view_get
*
* @ingroup Web
*/
#define elm_obj_web_webkit_view_get(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_WEBKIT_VIEW_GET), EO_TYPECHECK(Evas_Object **, ret)
/**
* @def elm_obj_web_window_create_hook_set
* @since 1.8
*
* Sets the function to call when a new window is requested
*
* @param[in] func
* @param[in] data
*
* @see elm_web_window_create_hook_set
*
* @ingroup Web
*/
#define elm_obj_web_window_create_hook_set(func, data) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_WINDOW_CREATE_HOOK_SET), EO_TYPECHECK(Elm_Web_Window_Open, func), EO_TYPECHECK(void *, data)
/**
* @def elm_obj_web_dialog_alert_hook_set
* @since 1.8
*
* Sets the function to call when an alert dialog
*
* @param[in] func
* @param[in] data
*
* @see elm_web_dialog_alert_hook_set
*
* @ingroup Web
*/
#define elm_obj_web_dialog_alert_hook_set(func, data) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_DIALOG_ALERT_HOOK_SET), EO_TYPECHECK(Elm_Web_Dialog_Alert, func), EO_TYPECHECK(void *, data)
/**
* @def elm_obj_web_dialog_confirm_hook_set
* @since 1.8
*
* Sets the function to call when an confirm dialog
*
* @param[in] func
* @param[in] data
*
* @see elm_web_dialog_confirm_hook_set
*
* @ingroup Web
*/
#define elm_obj_web_dialog_confirm_hook_set(func, data) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_DIALOG_CONFIRM_HOOK_SET), EO_TYPECHECK(Elm_Web_Dialog_Confirm, func), EO_TYPECHECK(void *, data)
/**
* @def elm_obj_web_dialog_prompt_hook_set
* @since 1.8
*
* Sets the function to call when an prompt dialog
*
* @param[in] func
* @param[in] data
*
* @see elm_web_dialog_prompt_hook_set
*
* @ingroup Web
*/
#define elm_obj_web_dialog_prompt_hook_set(func, data) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_DIALOG_PROMPT_HOOK_SET), EO_TYPECHECK(Elm_Web_Dialog_Prompt, func), EO_TYPECHECK(void *, data)
/**
* @def elm_obj_web_dialog_file_selector_hook_set
* @since 1.8
*
* Sets the function to call when an file selector dialog
*
* @param[in] func
* @param[in] data
*
* @see elm_web_dialog_file_selector_hook_set
*
* @ingroup Web
*/
#define elm_obj_web_dialog_file_selector_hook_set(func, data) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_DIALOG_FILE_SELECTOR_HOOK_SET), EO_TYPECHECK(Elm_Web_Dialog_File_Selector, func), EO_TYPECHECK(void *, data)
/**
* @def elm_obj_web_console_message_hook_set
* @since 1.8
*
* Sets the function to call when a console message is emitted from JS
*
* @param[in] func
* @param[in] data
*
* @see elm_web_console_message_hook_set
*
* @ingroup Web
*/
#define elm_obj_web_console_message_hook_set(func, data) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_CONSOLE_MESSAGE_HOOK_SET), EO_TYPECHECK(Elm_Web_Console_Message, func), EO_TYPECHECK(void *, data)
/**
* @def elm_obj_web_useragent_set
* @since 1.8
*
* Change useragent of a elm_web object
*
* @param[in] user_agent
*
* @see elm_web_useragent_set
*
* @ingroup Web
*/
#define elm_obj_web_useragent_set(user_agent) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_USERAGENT_SET), EO_TYPECHECK(const char *, user_agent)
/**
* @def elm_obj_web_useragent_get
* @since 1.8
*
* Return current useragent of elm_web object
*
* @param[out] ret
*
* @see elm_web_useragent_get
*
* @ingroup Web
*/
#define elm_obj_web_useragent_get(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_USERAGENT_GET), EO_TYPECHECK(const char **, ret)
/**
* @def elm_obj_web_tab_propagate_get
* @since 1.8
*
* Get the status of the tab propagation
*
* @param[out] ret
*
* @see elm_web_tab_propagate_get
*
* @ingroup Web
*/
#define elm_obj_web_tab_propagate_get(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_TAB_PROPAGATE_GET), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_web_tab_propagate_set
* @since 1.8
*
* Sets whether to use tab propagation
*
* @param[in] propagate
*
* @see elm_web_tab_propagate_set
*
* @ingroup Web
*/
#define elm_obj_web_tab_propagate_set(propagate) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_TAB_PROPAGATE_SET), EO_TYPECHECK(Eina_Bool, propagate)
/**
* @def elm_obj_web_url_set
* @since 1.8
*
* Sets the URL for the web object
*
* @param[in] url
* @param[out] ret
*
* @see elm_web_url_set
*
* @ingroup Web
*/
#define elm_obj_web_url_set(url, ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_URL_SET), EO_TYPECHECK(const char *, url), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_web_url_get
* @since 1.8
*
* Get the current URL for the object
*
* @param[out] ret
*
* @see elm_web_url_get
*
* @ingroup Web
*/
#define elm_obj_web_url_get(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_URL_GET), EO_TYPECHECK(const char **, ret)
/**
* @def elm_obj_web_html_string_load
* @since 1.9
*
* Loads the specified @a html string as the content of the web object
*
* @param[in] html
* @param[in] base_url
* @param[in] unreachable_url
* @param[out] ret
*
* @see elm_web_html_string_load
*
* @ingroup Web
*/
#define elm_obj_web_html_string_load(html, base_url, unreachable_url, ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_HTML_STRING_LOAD), EO_TYPECHECK(const char *, html), EO_TYPECHECK(const char *, base_url), EO_TYPECHECK(const char *, unreachable_url), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_web_title_get
* @since 1.8
*
* Get the current title
*
* @param[out] ret
*
* @see elm_web_title_get
*
* @ingroup Web
*/
#define elm_obj_web_title_get(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_TITLE_GET), EO_TYPECHECK(const char **, ret)
/**
* @def elm_obj_web_bg_color_set
* @since 1.8
*
* Sets the background color to be used by the web object
*
* @param[in] r
* @param[in] g
* @param[in] b
* @param[in] a
*
* @see elm_web_bg_color_set
*
* @ingroup Web
*/
#define elm_obj_web_bg_color_set(r, g, b, a) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_BG_COLOR_SET), EO_TYPECHECK(int, r), EO_TYPECHECK(int, g), EO_TYPECHECK(int, b), EO_TYPECHECK(int, a)
/**
* @def elm_obj_web_bg_color_get
* @since 1.8
*
* Get the background color to be used by the web object
*
* @param[out] r
* @param[out] g
* @param[out] b
* @param[out] a
*
* @see elm_web_bg_color_get
*
* @ingroup Web
*/
#define elm_obj_web_bg_color_get(r, g, b, a) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_BG_COLOR_GET), EO_TYPECHECK(int *, r), EO_TYPECHECK(int *, g), EO_TYPECHECK(int *, b), EO_TYPECHECK(int *, a)
/**
* @def elm_obj_web_selection_get
* @since 1.8
*
* Get a copy of the currently selected text
*
* @param[out] ret
*
* @see elm_web_selection_get
*
* @ingroup Web
*/
#define elm_obj_web_selection_get(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_SELECTION_GET), EO_TYPECHECK(const char **, ret)
/**
* @def elm_obj_web_popup_selected_set
* @since 1.8
*
* Tells the web object which index in the currently open popup was selected
*
* @param[in] idx
*
* @see elm_web_popup_selected_set
*
* @ingroup Web
*/
#define elm_obj_web_popup_selected_set(idx) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_POPUP_SELECTED_SET), EO_TYPECHECK(int, idx)
/**
* @def elm_obj_web_popup_destroy
* @since 1.8
*
* Dismisses an open dropdown popup
*
* @param[out] ret
*
* @see elm_web_popup_destroy
*
* @ingroup Web
*/
#define elm_obj_web_popup_destroy(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_POPUP_DESTROY), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_web_text_search
* @since 1.8
*
* Searches the given string in a document.
*
* @param[in] string
* @param[in] case_sensitive
* @param[in] forward
* @param[in] wrap
* @param[out] ret
*
* @see elm_web_text_search
*
* @ingroup Web
*/
#define elm_obj_web_text_search(string, case_sensitive, forward, wrap, ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_TEXT_SEARCH), EO_TYPECHECK(const char *, string), EO_TYPECHECK(Eina_Bool, case_sensitive), EO_TYPECHECK(Eina_Bool, forward), EO_TYPECHECK(Eina_Bool, wrap), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_web_text_matches_mark
* @since 1.8
*
* Marks matches of the given string in a document.
*
* @param[in] string
* @param[in] case_sensitive
* @param[in] highlight
* @param[in] limit
* @param[out] ret
*
* @see elm_web_text_matches_mark
*
* @ingroup Web
*/
#define elm_obj_web_text_matches_mark(string, case_sensitive, highlight, limit, ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_TEXT_MATCHES_MARK), EO_TYPECHECK(const char *, string), EO_TYPECHECK(Eina_Bool, case_sensitive), EO_TYPECHECK(Eina_Bool, highlight), EO_TYPECHECK(unsigned int, limit), EO_TYPECHECK(unsigned int *, ret)
/**
* @def elm_obj_web_text_matches_unmark_all
* @since 1.8
*
* Clears all marked matches in the document
*
* @param[out] ret
*
* @see elm_web_text_matches_unmark_all
*
* @ingroup Web
*/
#define elm_obj_web_text_matches_unmark_all(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_TEXT_MATCHES_UNMARK_ALL), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_web_text_matches_highlight_set
* @since 1.8
*
* Sets whether to highlight the matched marks
*
* @param[in] highlight
* @param[out] ret
*
* @see elm_web_text_matches_highlight_set
*
* @ingroup Web
*/
#define elm_obj_web_text_matches_highlight_set(highlight, ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_TEXT_MATCHES_HIGHLIGHT_SET), EO_TYPECHECK(Eina_Bool, highlight), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_web_text_matches_highlight_get
* @since 1.8
*
* Get whether highlighting marks is enabled
*
* @param[out] ret
*
* @see elm_web_text_matches_highlight_get
*
* @ingroup Web
*/
#define elm_obj_web_text_matches_highlight_get(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_TEXT_MATCHES_HIGHLIGHT_GET), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_web_load_progress_get
* @since 1.8
*
* Get the overall loading progress of the page
*
* @param[out] ret
*
* @see elm_web_load_progress_get
*
* @ingroup Web
*/
#define elm_obj_web_load_progress_get(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_LOAD_PROGRESS_GET), EO_TYPECHECK(double *, ret)
/**
* @def elm_obj_web_stop
* @since 1.8
*
* Stops loading the current page
*
* @param[out] ret
*
* @see elm_web_stop
*
* @ingroup Web
*/
#define elm_obj_web_stop(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_STOP), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_web_reload
* @since 1.8
*
* Requests a reload of the current document in the object
*
* @param[out] ret
*
* @see elm_web_reload
*
* @ingroup Web
*/
#define elm_obj_web_reload(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_RELOAD), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_web_reload_full
* @since 1.8
*
* Requests a reload of the current document, avoiding any existing caches
*
* @param[out] ret
*
* @see elm_web_reload_full
*
* @ingroup Web
*/
#define elm_obj_web_reload_full(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_RELOAD_FULL), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_web_back
* @since 1.8
*
* Goes back one step in the browsing history
*
* @param[out] ret
*
* @see elm_web_back
*
* @ingroup Web
*/
#define elm_obj_web_back(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_BACK), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_web_forward
* @since 1.8
*
* Goes forward one step in the browsing history
*
* @param[out] ret
*
* @see elm_web_forward
*
* @ingroup Web
*/
#define elm_obj_web_forward(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_FORWARD), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_web_navigate
* @since 1.8
*
* Jumps the given number of steps in the browsing history
*
* @param[in] steps
* @param[out] ret
*
* @see elm_web_navigate
*
* @ingroup Web
*/
#define elm_obj_web_navigate(steps, ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_NAVIGATE), EO_TYPECHECK(int, steps), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_web_back_possible_get
* @since 1.8
*
* Queries whether it's possible to go back in history
*
* @param[out] ret
*
* @see elm_web_back_possible_get
*
* @ingroup Web
*/
#define elm_obj_web_back_possible_get(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_BACK_POSSIBLE_GET), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_web_forward_possible_get
* @since 1.8
*
* Queries whether it's possible to go forward in history
*
* @param[out] ret
*
* @see elm_web_forward_possible_get
*
* @ingroup Web
*/
#define elm_obj_web_forward_possible_get(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_FORWARD_POSSIBLE_GET), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_web_navigate_possible_get
* @since 1.8
*
* Queries whether it's possible to jump the given number of steps
*
* @param[in] steps
* @param[out] ret
*
* @see elm_web_navigate_possible_get
*
* @ingroup Web
*/
#define elm_obj_web_navigate_possible_get(steps, ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_NAVIGATE_POSSIBLE_GET), EO_TYPECHECK(int, steps), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_web_history_enabled_get
* @since 1.8
*
* Get whether browsing history is enabled for the given object
*
* @param[out] ret
*
* @see elm_web_history_enabled_get
*
* @ingroup Web
*/
#define elm_obj_web_history_enabled_get(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_HISTORY_ENABLED_GET), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_web_history_enabled_set
* @since 1.8
*
* Enables or disables the browsing history
*
* @param[in] enable
*
* @see elm_web_history_enabled_set
*
* @ingroup Web
*/
#define elm_obj_web_history_enabled_set(enable) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_HISTORY_ENABLED_SET), EO_TYPECHECK(Eina_Bool, enable)
/**
* @def elm_obj_web_zoom_set
* @since 1.8
*
* Sets the zoom level of the web object
*
* @param[in] zoom
*
* @see elm_web_zoom_set
*
* @ingroup Web
*/
#define elm_obj_web_zoom_set(zoom) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_ZOOM_SET), EO_TYPECHECK(double, zoom)
/**
* @def elm_obj_web_zoom_get
* @since 1.8
*
* Get the current zoom level set on the web object
*
* @param[out] ret
*
* @see elm_web_zoom_get
*
* @ingroup Web
*/
#define elm_obj_web_zoom_get(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_ZOOM_GET), EO_TYPECHECK(double *, ret)
/**
* @def elm_obj_web_zoom_mode_set
* @since 1.8
*
* Sets the zoom mode to use
*
* @param[in] mode
*
* @see elm_web_zoom_mode_set
*
* @ingroup Web
*/
#define elm_obj_web_zoom_mode_set(mode) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_ZOOM_MODE_SET), EO_TYPECHECK(Elm_Web_Zoom_Mode, mode)
/**
* @def elm_obj_web_zoom_mode_get
* @since 1.8
*
* Get the currently set zoom mode
*
* @param[out] ret
*
* @see elm_web_zoom_mode_get
*
* @ingroup Web
*/
#define elm_obj_web_zoom_mode_get(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_ZOOM_MODE_GET), EO_TYPECHECK(Elm_Web_Zoom_Mode *, ret)
/**
* @def elm_obj_web_region_show
* @since 1.8
*
* Shows the given region in the web object
*
* @param[in] x
* @param[in] y
* @param[in] w
* @param[in] h
*
* @see elm_web_region_show
*
* @ingroup Web
*/
#define elm_obj_web_region_show(x, y, w, h) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_REGION_SHOW), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(int, w), EO_TYPECHECK(int, h)
/**
* @def elm_obj_web_region_bring_in
* @since 1.8
*
* Brings in the region to the visible area
*
* @param[in] x
* @param[in] y
* @param[in] w
* @param[in] h
*
* @see elm_web_region_bring_in
*
* @ingroup Web
*/
#define elm_obj_web_region_bring_in(x, y, w, h) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_REGION_BRING_IN), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(int, w), EO_TYPECHECK(int, h)
/**
* @def elm_obj_web_inwin_mode_set
* @since 1.8
*
* Sets the default dialogs to use an Inwin instead of a normal window
*
* @param[in] value
*
* @see elm_web_inwin_mode_set
*
* @ingroup Web
*/
#define elm_obj_web_inwin_mode_set(value) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_INWIN_MODE_SET), EO_TYPECHECK(Eina_Bool, value)
/**
* @def elm_obj_web_inwin_mode_get
* @since 1.8
*
* Get whether Inwin mode is set for the current object
*
* @param[out] ret
*
* @see elm_web_inwin_mode_get
*
* @ingroup Web
*/
#define elm_obj_web_inwin_mode_get(ret) ELM_OBJ_WEB_ID(ELM_OBJ_WEB_SUB_ID_INWIN_MODE_GET), EO_TYPECHECK(Eina_Bool *, ret)
#endif
#include "elm_web.eo.h"

View File

@ -11,223 +11,6 @@
*/
EAPI Evas_Object *elm_web_add(Evas_Object *parent);
/**
* Get internal ewk_view object from web object.
*
* Elementary may not provide some low level features of EWebKit,
* instead of cluttering the API with proxy methods we opted to
* return the internal reference. Be careful using it as it may
* interfere with elm_web behavior.
*
* @param obj The web object.
* @return The internal ewk_view object or @c NULL if it does not
* exist. (Failure to create or Elementary compiled without
* ewebkit)
*
* @see elm_web_add()
*
* @ingroup Web
*/
EAPI Evas_Object *elm_web_webkit_view_get(const Evas_Object *obj);
/**
* Sets the function to call when a new window is requested
*
* This hook will be called when a request to create a new window is
* issued from the web page loaded.
* There is no default implementation for this feature, so leaving this
* unset or passing @c NULL in @p func will prevent new windows from
* opening.
*
* @param obj The web object where to set the hook function
* @param func The hook function to be called when a window is requested
* @param data User data
*
* @ingroup Web
*/
EAPI void elm_web_window_create_hook_set(Evas_Object *obj, Elm_Web_Window_Open func, void *data);
/**
* Sets the function to call when an alert dialog
*
* This hook will be called when a JavaScript alert dialog is requested.
* If no function is set or @c NULL is passed in @p func, the default
* implementation will take place.
*
* @param obj The web object where to set the hook function
* @param func The callback function to be used
* @param data User data
*
* @see elm_web_inwin_mode_set()
*
* @ingroup Web
*/
EAPI void elm_web_dialog_alert_hook_set(Evas_Object *obj, Elm_Web_Dialog_Alert func, void *data);
/**
* Sets the function to call when an confirm dialog
*
* This hook will be called when a JavaScript confirm dialog is requested.
* If no function is set or @c NULL is passed in @p func, the default
* implementation will take place.
*
* @param obj The web object where to set the hook function
* @param func The callback function to be used
* @param data User data
*
* @see elm_web_inwin_mode_set()
*
* @ingroup Web
*/
EAPI void elm_web_dialog_confirm_hook_set(Evas_Object *obj, Elm_Web_Dialog_Confirm func, void *data);
/**
* Sets the function to call when an prompt dialog
*
* This hook will be called when a JavaScript prompt dialog is requested.
* If no function is set or @c NULL is passed in @p func, the default
* implementation will take place.
*
* @param obj The web object where to set the hook function
* @param func The callback function to be used
* @param data User data
*
* @see elm_web_inwin_mode_set()
*
* @ingroup Web
*/
EAPI void elm_web_dialog_prompt_hook_set(Evas_Object *obj, Elm_Web_Dialog_Prompt func, void *data);
/**
* Sets the function to call when an file selector dialog
*
* This hook will be called when a JavaScript file selector dialog is
* requested.
* If no function is set or @c NULL is passed in @p func, the default
* implementation will take place.
*
* @param obj The web object where to set the hook function
* @param func The callback function to be used
* @param data User data
*
* @see elm_web_inwin_mode_set()
*
* @ingroup Web
*/
EAPI void elm_web_dialog_file_selector_hook_set(Evas_Object *obj, Elm_Web_Dialog_File_Selector func, void *data);
/**
* Sets the function to call when a console message is emitted from JS
*
* This hook will be called when a console message is emitted from
* JavaScript. There is no default implementation for this feature.
*
* @param obj The web object where to set the hook function
* @param func The callback function to be used
* @param data User data
*
* @ingroup Web
*/
EAPI void elm_web_console_message_hook_set(Evas_Object *obj, Elm_Web_Console_Message func, void *data);
/**
* Change useragent of a elm_web object
*
* @param obj The object
* @param user_agent String for useragent
*
* @ingroup Web
*/
EAPI void elm_web_useragent_set(Evas_Object *obj, const char *user_agent);
/**
* Return current useragent of elm_web object
*
* @param obj The object
* @return Useragent string
*
* @ingroup Web
*/
EAPI const char* elm_web_useragent_get(const Evas_Object *obj);
/**
* Get the status of the tab propagation
*
* @param obj The web object to query
* @return @c EINA_TRUE if tab propagation is enabled, @c EINA_FALSE otherwise
*
* @see elm_web_tab_propagate_set()
*
* @ingroup Web
*/
EAPI Eina_Bool elm_web_tab_propagate_get(const Evas_Object *obj);
/**
* Sets whether to use tab propagation
*
* If tab propagation is enabled, whenever the user presses the Tab key,
* Elementary will handle it and switch focus to the next widget.
* The default value is disabled, where WebKit will handle the Tab key to
* cycle focus though its internal objects, jumping to the next widget
* only when that cycle ends.
*
* @param obj The web object
* @param propagate Whether to propagate Tab keys to Elementary or not
*
* @ingroup Web
*/
EAPI void elm_web_tab_propagate_set(Evas_Object *obj, Eina_Bool propagate);
/**
* Sets the URL for the web object
*
* It must be a full URL, with resource included, in the form
* http://www.enlightenment.org or file:///tmp/something.html
*
* @param obj The web object
* @param url The URL to set
* @return @c EINA_TRUE if the URL could be set, @c EINA_FALSE if an error occurred.
*
* @ingroup Web
*/
EAPI Eina_Bool elm_web_url_set(Evas_Object *obj, const char *url);
/**
* Loads the specified @a html string as the content of the web object
*
* @param obj The web object
* @param html HTML data to load
* @param base_url Base URL used for relative paths to external objects (optional)
* @param unreachable_url URL that could not be reached (optional)
*
* @return @c EINA_TRUE if it the HTML was successfully loaded, @c EINA_FALSE otherwise
*
* External objects such as stylesheets or images referenced in the HTML
* document are located relative to @a base_url.
*
* If an @a unreachable_url is passed it is used as the url for the loaded
* content. This is typically used to display error pages for a failed
* load.
*
* @since 1.9
* @ingroup Web
*/
EAPI Eina_Bool elm_web_html_string_load(Evas_Object *obj, const char *html, const char *base_url, const char *unreachable_url);
/**
* Get the current URL for the object
*
* The returned string must not be freed and is guaranteed to be
* stringshared.
*
* @param obj The web object
* @return A stringshared internal string with the current URL, or @c NULL on
* failure
*
* @ingroup Web
*/
EAPI const char *elm_web_url_get(const Evas_Object *obj);
/**
* Sets the URI for the web object
*
@ -264,451 +47,4 @@ EINA_DEPRECATED EAPI Eina_Bool elm_web_uri_set(Evas_Object *obj, const c
*/
EINA_DEPRECATED EAPI const char *elm_web_uri_get(const Evas_Object *obj);
/**
* Get the current title
*
* The returned string must not be freed and is guaranteed to be
* stringshared.
*
* @param obj The web object
* @return A stringshared internal string with the current title, or @c NULL on
* failure
*
* @ingroup Web
*/
EAPI const char *elm_web_title_get(const Evas_Object *obj);
/**
* Sets the background color to be used by the web object
*
* This is the color that will be used by default when the loaded page
* does not set it's own. Color values are pre-multiplied.
*
* @param obj The web object
* @param r Red component
* @param g Green component
* @param b Blue component
* @param a Alpha component
*
* @ingroup Web
*/
EAPI void elm_web_bg_color_set(Evas_Object *obj, int r, int g, int b, int a);
/**
* Get the background color to be used by the web object
*
* This is the color that will be used by default when the loaded page
* does not set it's own. Color values are pre-multiplied.
*
* @param obj The web object
* @param r Red component
* @param g Green component
* @param b Blue component
* @param a Alpha component
*
* @ingroup Web
*/
EAPI void elm_web_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b, int *a);
/**
* Get a copy of the currently selected text
*
* The string returned must be freed by the user when it's done with it.
*
* @param obj The web object
* @return A newly allocated string, or @c NULL if nothing is selected or an
* error occurred
*
* @ingroup Web
*/
EAPI const char *elm_web_selection_get(const Evas_Object *obj);
/**
* Tells the web object which index in the currently open popup was selected
*
* When the user handles the popup creation from the "popup,created" signal,
* it needs to tell the web object which item was selected by calling this
* function with the index corresponding to the item.
*
* @param obj The web object
* @param index The index selected
*
* @see elm_web_popup_destroy()
*
* @ingroup Web
*/
EAPI void elm_web_popup_selected_set(Evas_Object *obj, int index);
/**
* Dismisses an open dropdown popup
*
* When the popup from a dropdown widget is to be dismissed, either after
* selecting an option or to cancel it, this function must be called, which
* will later emit an "popup,willdelete" signal to notify the user that
* any memory and objects related to this popup can be freed.
*
* @param obj The web object
* @return @c EINA_TRUE if the menu was successfully destroyed, or @c EINA_FALSE
* if there was no menu to destroy
*
* @ingroup Web
*/
EAPI Eina_Bool elm_web_popup_destroy(Evas_Object *obj);
/**
* Searches the given string in a document.
*
* @param obj The web object where to search the text
* @param string String to search
* @param case_sensitive If search should be case sensitive or not
* @param forward If search is from cursor and on or backwards
* @param wrap If search should wrap at the end
*
* @return @c EINA_TRUE if the given string was found, @c EINA_FALSE if not
* or failure
*
* @ingroup Web
*/
EAPI Eina_Bool elm_web_text_search(const Evas_Object *obj, const char *string, Eina_Bool case_sensitive, Eina_Bool forward, Eina_Bool wrap);
/**
* Marks matches of the given string in a document.
*
* @param obj The web object where to search text
* @param string String to match
* @param case_sensitive If match should be case sensitive or not
* @param highlight If matches should be highlighted
* @param limit Maximum amount of matches, or zero to unlimited
*
* @return number of matched @a string
*
* @ingroup Web
*/
EAPI unsigned int elm_web_text_matches_mark(Evas_Object *obj, const char *string, Eina_Bool case_sensitive, Eina_Bool highlight, unsigned int limit);
/**
* Clears all marked matches in the document
*
* @param obj The web object
*
* @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
*
* @ingroup Web
*/
EAPI Eina_Bool elm_web_text_matches_unmark_all(Evas_Object *obj);
/**
* Sets whether to highlight the matched marks
*
* If enabled, marks set with elm_web_text_matches_mark() will be
* highlighted.
*
* @param obj The web object
* @param highlight Whether to highlight the marks or not
*
* @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
*
* @ingroup Web
*/
EAPI Eina_Bool elm_web_text_matches_highlight_set(Evas_Object *obj, Eina_Bool highlight);
/**
* Get whether highlighting marks is enabled
*
* @param obj The web object
*
* @return @c EINA_TRUE is marks are set to be highlighted, @c EINA_FALSE
* otherwise
*
* @ingroup Web
*/
EAPI Eina_Bool elm_web_text_matches_highlight_get(const Evas_Object *obj);
/**
* Get the overall loading progress of the page
*
* Returns the estimated loading progress of the page, with a value between
* 0.0 and 1.0. This is an estimated progress accounting for all the frames
* included in the page.
*
* @param obj The web object
*
* @return A value between 0.0 and 1.0 indicating the progress, or -1.0 on
* failure
*
* @ingroup Web
*/
EAPI double elm_web_load_progress_get(const Evas_Object *obj);
/**
* Stops loading the current page
*
* Cancels the loading of the current page in the web object. This will
* cause a "load,error" signal to be emitted, with the is_cancellation
* flag set to @c EINA_TRUE.
*
* @param obj The web object
*
* @return @c EINA_TRUE if the cancel was successful, @c EINA_FALSE otherwise
*
* @ingroup Web
*/
EAPI Eina_Bool elm_web_stop(Evas_Object *obj);
/**
* Requests a reload of the current document in the object
*
* @param obj The web object
*
* @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
*
* @ingroup Web
*/
EAPI Eina_Bool elm_web_reload(Evas_Object *obj);
/**
* Requests a reload of the current document, avoiding any existing caches
*
* @param obj The web object
*
* @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
*
* @ingroup Web
*/
EAPI Eina_Bool elm_web_reload_full(Evas_Object *obj);
/**
* Goes back one step in the browsing history
*
* This is equivalent to calling elm_web_object_navigate(obj, -1);
*
* @param obj The web object
*
* @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
*
* @see elm_web_history_enabled_set()
* @see elm_web_back_possible()
* @see elm_web_forward()
* @see elm_web_navigate()
*
* @ingroup Web
*/
EAPI Eina_Bool elm_web_back(Evas_Object *obj);
/**
* Goes forward one step in the browsing history
*
* This is equivalent to calling elm_web_object_navigate(obj, 1);
*
* @param obj The web object
*
* @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
*
* @see elm_web_history_enabled_set()
* @see elm_web_forward_possible_get()
* @see elm_web_back()
* @see elm_web_navigate()
*
* @ingroup Web
*/
EAPI Eina_Bool elm_web_forward(Evas_Object *obj);
/**
* Jumps the given number of steps in the browsing history
*
* The @p steps value can be a negative integer to back in history, or a
* positive to move forward.
*
* @param obj The web object
* @param steps The number of steps to jump
*
* @return @c EINA_TRUE on success, @c EINA_FALSE on error or if not enough
* history exists to jump the given number of steps
*
* @see elm_web_history_enabled_set()
* @see elm_web_back()
* @see elm_web_forward()
*
* @ingroup Web
*/
EAPI Eina_Bool elm_web_navigate(Evas_Object *obj, int steps);
/**
* Queries whether it's possible to go back in history
*
* @param obj The web object
*
* @return @c EINA_TRUE if it's possible to back in history, @c EINA_FALSE
* otherwise
*
* @ingroup Web
*/
EAPI Eina_Bool elm_web_back_possible_get(const Evas_Object *obj);
/**
* Queries whether it's possible to go forward in history
*
* @param obj The web object
*
* @return @c EINA_TRUE if it's possible to forward in history, @c EINA_FALSE
* otherwise
*
* @ingroup Web
*/
EAPI Eina_Bool elm_web_forward_possible_get(const Evas_Object *obj);
/**
* Queries whether it's possible to jump the given number of steps
*
* The @p steps value can be a negative integer to back in history, or a
* positive to move forward.
*
* @param obj The web object
* @param steps The number of steps to check for
*
* @return @c EINA_TRUE if enough history exists to perform the given jump,
* @c EINA_FALSE otherwise
*
* @ingroup Web
*/
EAPI Eina_Bool elm_web_navigate_possible_get(Evas_Object *obj, int steps);
/**
* Get whether browsing history is enabled for the given object
*
* @param obj The web object
*
* @return @c EINA_TRUE if history is enabled, @c EINA_FALSE otherwise
*
* @ingroup Web
*/
EAPI Eina_Bool elm_web_history_enabled_get(const Evas_Object *obj);
/**
* Enables or disables the browsing history
*
* @param obj The web object
* @param enabled Whether to enable or disable the browsing history
*
* @ingroup Web
*/
EAPI void elm_web_history_enabled_set(Evas_Object *obj, Eina_Bool enabled);
/**
* Sets the zoom level of the web object
*
* Zoom level matches the Webkit API, so 1.0 means normal zoom, with higher
* values meaning zoom in and lower meaning zoom out. This function will
* only affect the zoom level if the mode set with elm_web_zoom_mode_set()
* is ::ELM_WEB_ZOOM_MODE_MANUAL.
*
* @param obj The web object
* @param zoom The zoom level to set
*
* @ingroup Web
*/
EAPI void elm_web_zoom_set(Evas_Object *obj, double zoom);
/**
* Sets the zoom mode to use
*
* The modes can be any of those defined in ::Elm_Web_Zoom_Mode, except
* ::ELM_WEB_ZOOM_MODE_LAST. The default is ::ELM_WEB_ZOOM_MODE_MANUAL.
*
* ::ELM_WEB_ZOOM_MODE_MANUAL means the zoom level will be controlled
* with the elm_web_zoom_set() function.
* ::ELM_WEB_ZOOM_MODE_AUTO_FIT will calculate the needed zoom level to
* make sure the entirety of the web object's contents are shown.
* ::ELM_WEB_ZOOM_MODE_AUTO_FILL will calculate the needed zoom level to
* fit the contents in the web object's size, without leaving any space
* unused.
*
* @param obj The web object
* @param mode The mode to set
*
* @ingroup Web
*/
EAPI void elm_web_zoom_mode_set(Evas_Object *obj, Elm_Web_Zoom_Mode mode);
/**
* Get the currently set zoom mode
*
* @param obj The web object
*
* @return The current zoom mode set for the object,
* or ::ELM_WEB_ZOOM_MODE_LAST on error
*
* @ingroup Web
*/
EAPI Elm_Web_Zoom_Mode elm_web_zoom_mode_get(const Evas_Object *obj);
/**
* Get the current zoom level set on the web object
*
* Note that this is the zoom level set on the web object and not that
* of the underlying Webkit one. In the ::ELM_WEB_ZOOM_MODE_MANUAL mode,
* the two zoom levels should match, but for the other two modes the
* Webkit zoom is calculated internally to match the chosen mode without
* changing the zoom level set for the web object.
*
* @param obj The web object
*
* @return The zoom level set on the object
*
* @ingroup Web
*/
EAPI double elm_web_zoom_get(const Evas_Object *obj);
/**
* Shows the given region in the web object
*
* @param obj The web object
* @param x The x coordinate of the region to show
* @param y The y coordinate of the region to show
* @param w The width of the region to show
* @param h The height of the region to show
*
* @ingroup Web
*/
EAPI void elm_web_region_show(Evas_Object *obj, int x, int y, int w, int h);
/**
* Brings in the region to the visible area
*
* Like elm_web_region_show(), but it animates the scrolling of the object
* to show the area
*
* @param obj The web object
* @param x The x coordinate of the region to show
* @param y The y coordinate of the region to show
* @param w The width of the region to show
* @param h The height of the region to show
*
* @ingroup Web
*/
EAPI void elm_web_region_bring_in(Evas_Object *obj, int x, int y, int w, int h);
/**
* Sets the default dialogs to use an Inwin instead of a normal window
*
* If set, then the default implementation for the JavaScript dialogs and
* file selector will be opened in an Inwin. Otherwise they will use a
* normal separated window.
*
* @param obj The web object
* @param value @c EINA_TRUE to use Inwin, @c EINA_FALSE to use a normal window
*
* @ingroup Web
*/
EAPI void elm_web_inwin_mode_set(Evas_Object *obj, Eina_Bool value);
/**
* Get whether Inwin mode is set for the current object
*
* @param obj The web object
*
* @return @c EINA_TRUE if Inwin mode is set, @c EINA_FALSE otherwise
*
* @ingroup Web
*/
EAPI Eina_Bool elm_web_inwin_mode_get(const Evas_Object *obj);
#include "elm_web.eo.legacy.h"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff