diff --git a/legacy/elementary/src/lib/Makefile.am b/legacy/elementary/src/lib/Makefile.am index 287e86e8b1..5476d5282a 100644 --- a/legacy/elementary/src/lib/Makefile.am +++ b/legacy/elementary/src/lib/Makefile.am @@ -329,6 +329,7 @@ elm_prefs_eo.h \ elm_prefs_legacy.h \ elm_prefs_data.h \ elm_progressbar.h \ +elm_progressbar_common.h \ elm_progressbar_eo.h \ elm_progressbar_legacy.h \ elm_radio.h \ @@ -700,32 +701,44 @@ BUILT_SOURCES = \ elm_notify.eo.legacy.h \ elm_panes.eo.c \ elm_panes.eo.h \ + elm_panes.eo.legacy.h \ elm_photocam.eo.c \ elm_photocam.eo.h \ + elm_photocam.eo.legacy.h \ elm_photocam_pan.eo.c \ elm_photocam_pan.eo.h \ elm_photo.eo.c \ elm_photo.eo.h \ + elm_photo.eo.legacy.h \ elc_player.eo.c \ elc_player.eo.h \ elm_plug.eo.c \ elm_plug.eo.h \ + elm_plug.eo.legacy.h \ elc_popup.eo.c \ elc_popup.eo.h \ + elc_popup.eo.legacy.h \ elm_prefs.eo.c \ elm_prefs.eo.h \ + elm_prefs.eo.legacy.h \ elm_progressbar.eo.c \ elm_progressbar.eo.h \ + elm_progressbar.eo.legacy.h \ elm_radio.eo.c \ elm_radio.eo.h \ + elm_radio.eo.legacy.h \ elm_route.eo.c \ elm_route.eo.h \ + elm_route.eo.legacy.h \ elm_scroller.eo.c \ elm_scroller.eo.h \ + elm_scroller.eo.legacy.h \ elm_segment_control.eo.c \ elm_segment_control.eo.h \ + elm_segment_control.eo.legacy.h \ elm_separator.eo.c \ elm_separator.eo.h \ + elm_separator.eo.legacy.h \ elm_slider.eo.c \ elm_slider.eo.h \ elm_slideshow.eo.c \ @@ -965,4 +978,16 @@ nodist_includesunstable_HEADERS = \ elc_naviframe.eo.legacy.h \ elm_panel.eo.legacy.h \ elm_mapbuf.eo.legacy.h \ - elm_notify.eo.legacy.h \ No newline at end of file + elm_notify.eo.legacy.h \ + elm_panes.eo.legacy.h \ + elm_photocam.eo.legacy.h \ + elm_photo.eo.legacy.h \ + elm_plug.eo.legacy.h \ + elc_popup.eo.legacy.h \ + elm_prefs.eo.legacy.h \ + elm_progressbar.eo.legacy.h \ + elm_radio.eo.legacy.h \ + elm_route.eo.legacy.h \ + elm_scroller.eo.legacy.h \ + elm_segment_control.eo.legacy.h \ + elm_separator.eo.legacy.h diff --git a/legacy/elementary/src/lib/elc_popup_eo.h b/legacy/elementary/src/lib/elc_popup_eo.h index d552e0eda7..431532266f 100644 --- a/legacy/elementary/src/lib/elc_popup_eo.h +++ b/legacy/elementary/src/lib/elc_popup_eo.h @@ -3,172 +3,9 @@ * * @{ */ + #include "elc_popup.eo.h" -#if 0 -#define ELM_OBJ_POPUP_CLASS elm_obj_popup_class_get() -const Eo_Class *elm_obj_popup_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_POPUP_BASE_ID; - -enum -{ - ELM_OBJ_POPUP_SUB_ID_CONTENT_TEXT_WRAP_TYPE_SET, - ELM_OBJ_POPUP_SUB_ID_CONTENT_TEXT_WRAP_TYPE_GET, - ELM_OBJ_POPUP_SUB_ID_ORIENT_SET, - ELM_OBJ_POPUP_SUB_ID_ORIENT_GET, - ELM_OBJ_POPUP_SUB_ID_TIMEOUT_SET, - ELM_OBJ_POPUP_SUB_ID_TIMEOUT_GET, - ELM_OBJ_POPUP_SUB_ID_ALLOW_EVENTS_SET, - ELM_OBJ_POPUP_SUB_ID_ALLOW_EVENTS_GET, - ELM_OBJ_POPUP_SUB_ID_ITEM_APPEND, - ELM_OBJ_POPUP_SUB_ID_ALIGN_SET, - ELM_OBJ_POPUP_SUB_ID_ALIGN_GET, - ELM_OBJ_POPUP_SUB_ID_LAST -}; - -#define ELM_OBJ_POPUP_ID(sub_id) (ELM_OBJ_POPUP_BASE_ID + sub_id) - - -/** - * @def elm_obj_popup_content_text_wrap_type_set - * @since 1.8 - * - * @brief Sets the wrapping type of content text packed in content - * - * @param[in] wrap - * - * @see elm_popup_content_text_wrap_type_set - */ -#define elm_obj_popup_content_text_wrap_type_set(wrap) ELM_OBJ_POPUP_ID(ELM_OBJ_POPUP_SUB_ID_CONTENT_TEXT_WRAP_TYPE_SET), EO_TYPECHECK(Elm_Wrap_Type, wrap) - -/** - * @def elm_obj_popup_content_text_wrap_type_get - * @since 1.8 - * - * @brief Returns the wrapping type of content text packed in content area of - * area of popup object. - * - * @param[out] ret - * - * @see elm_popup_content_text_wrap_type_get - */ -#define elm_obj_popup_content_text_wrap_type_get(ret) ELM_OBJ_POPUP_ID(ELM_OBJ_POPUP_SUB_ID_CONTENT_TEXT_WRAP_TYPE_GET), EO_TYPECHECK(Elm_Wrap_Type *, ret) - -/** - * @def elm_obj_popup_orient_set - * @since 1.8 - * - * @brief Sets the orientation of the popup in the parent region - * - * @param[in] orient - * - * @see elm_popup_orient_set - */ -#define elm_obj_popup_orient_set(orient) ELM_OBJ_POPUP_ID(ELM_OBJ_POPUP_SUB_ID_ORIENT_SET), EO_TYPECHECK(Elm_Popup_Orient, orient) - -/** - * @def elm_obj_popup_orient_get - * @since 1.8 - * - * @brief Returns the orientation of Popup - * - * @param[out] ret - * - * @see elm_popup_orient_get - */ -#define elm_obj_popup_orient_get(ret) ELM_OBJ_POPUP_ID(ELM_OBJ_POPUP_SUB_ID_ORIENT_GET), EO_TYPECHECK(Elm_Popup_Orient *, ret) - -/** - * @def elm_obj_popup_timeout_set - * @since 1.8 - * - * @brief Sets a timeout to hide popup automatically - * - * @param[in] timeout - * - * @see elm_popup_timeout_set - */ -#define elm_obj_popup_timeout_set(timeout) ELM_OBJ_POPUP_ID(ELM_OBJ_POPUP_SUB_ID_TIMEOUT_SET), EO_TYPECHECK(double, timeout) - -/** - * @def elm_obj_popup_timeout_get - * @since 1.8 - * - * @brief Returns the timeout value set to the popup (in seconds) - * - * @param[out] ret - * - * @see elm_popup_timeout_get - */ -#define elm_obj_popup_timeout_get(ret) ELM_OBJ_POPUP_ID(ELM_OBJ_POPUP_SUB_ID_TIMEOUT_GET), EO_TYPECHECK(double *, ret) - -/** - * @def elm_obj_popup_allow_events_set - * @since 1.8 - * - * @brief Sets whether events should be passed to by a click outside. - * - * @param[in] allow - * - * @see elm_popup_allow_events_set - */ -#define elm_obj_popup_allow_events_set(allow) ELM_OBJ_POPUP_ID(ELM_OBJ_POPUP_SUB_ID_ALLOW_EVENTS_SET), EO_TYPECHECK(Eina_Bool, allow) - -/** - * @def elm_obj_popup_allow_events_get - * @since 1.8 - * - * @brief Returns value indicating whether allow event is enabled or not - * - * @param[out] ret - * - * @see elm_popup_allow_events_get - */ -#define elm_obj_popup_allow_events_get(ret) ELM_OBJ_POPUP_ID(ELM_OBJ_POPUP_SUB_ID_ALLOW_EVENTS_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_popup_item_append - * @since 1.8 - * - * @brief Add a new item to a Popup object - * - * @param[in] label - * @param[in] icon - * @param[in] func - * @param[in] data - * @param[out] ret - * - * @see elm_popup_item_append - */ -#define elm_obj_popup_item_append(label, icon, func, data, ret) ELM_OBJ_POPUP_ID(ELM_OBJ_POPUP_SUB_ID_ITEM_APPEND), EO_TYPECHECK(const char *, label), EO_TYPECHECK(Evas_Object *, icon), EO_TYPECHECK(Evas_Smart_Cb, func), EO_TYPECHECK(const void *, data), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_popup_align_set - * @since 1.9 - * - * @brief Set the alignment of the popup object relative to its parent - * - * @param[in] horizontal - * @param[in] vertical - * - * @see elm_popup_align_set - */ -#define elm_obj_popup_align_set(horizontal, vertical) ELM_OBJ_POPUP_ID(ELM_OBJ_POPUP_SUB_ID_ALIGN_SET), EO_TYPECHECK(double, horizontal), EO_TYPECHECK(double, vertical) - -/** - * @def elm_obj_popup_align_get - * @since 1.9 - * - * @brief Return the alignment of the popup object relative to its parent - * - * @param[out] horizontal - * @param[out] vertical - * - * @see elm_popup_align_get - */ -#define elm_obj_popup_align_get(horizontal, vertical) ELM_OBJ_POPUP_ID(ELM_OBJ_POPUP_SUB_ID_ALIGN_GET), EO_TYPECHECK(double *, horizontal), EO_TYPECHECK(double *, vertical) -#endif /** * @} */ diff --git a/legacy/elementary/src/lib/elc_popup_legacy.h b/legacy/elementary/src/lib/elc_popup_legacy.h index ecf92a4b85..e188d5c959 100644 --- a/legacy/elementary/src/lib/elc_popup_legacy.h +++ b/legacy/elementary/src/lib/elc_popup_legacy.h @@ -8,159 +8,4 @@ */ EAPI Evas_Object *elm_popup_add(Evas_Object *parent) EINA_ARG_NONNULL(1); -/** - * @brief Sets the wrapping type of content text packed in content - * area of popup object. - * - * @param obj The Popup object - * @param wrap wrapping type of type Elm_Wrap_Type - * - * @ingroup Popup - * @see elm_popup_content_text_wrap_type_get() - */ -EAPI void elm_popup_content_text_wrap_type_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1); - -/** - * @brief Returns the wrapping type of content text packed in content area of - * popup object. - * - * @param obj The Popup object - * @return wrap type of the content text - * - * @ingroup Popup - * @see elm_popup_content_text_wrap_type_set - */ -EAPI Elm_Wrap_Type elm_popup_content_text_wrap_type_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); - -/** - * @brief Sets the orientation of the popup in the parent region - * - * @param obj The popup object - * @param orient the orientation of the popup - * - * Sets the position in which popup will appear in its parent. By default, - * #ELM_POPUP_ORIENT_CENTER is set. - * - * @ingroup Popup - * @see @ref Elm_Popup_Orient for possible values. - */ -EAPI void elm_popup_orient_set(Evas_Object *obj, Elm_Popup_Orient orient) EINA_ARG_NONNULL(1); - -/** - * @brief Returns the orientation of Popup - * - * @param obj The popup object - * @return the orientation of the popup - * - * @ingroup Popup - * @see elm_popup_orient_set() - * @see Elm_Popup_Orient - */ -EAPI Elm_Popup_Orient elm_popup_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); - -/** - * @brief Sets a timeout to hide popup automatically - * - * @param obj The popup object - * @param timeout The timeout in seconds - * - * This function sets a timeout and starts the timer controlling when the - * popup is hidden. Since calling evas_object_show() on a popup restarts - * the timer controlling when it is hidden, setting this before the - * popup is shown will in effect mean starting the timer when the popup is - * shown. Smart signal "timeout" is called afterwards which can be handled - * if needed. - * - * @note Set a value <= 0.0 to disable a running timer. - * - * @note If the value > 0.0 and the popup is previously visible, the - * timer will be started with this value, canceling any running timer. - * @ingroup Popup - */ -EAPI void elm_popup_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1); - -/** - * @brief Returns the timeout value set to the popup (in seconds) - * - * @param obj The popup object - * @return the timeout value - * - * @ingroup Popup - * @see elm_popup_timeout_set() - */ -EAPI double elm_popup_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); - -/** - * @brief Sets whether events should be passed to by a click outside. - * - * @param obj The popup object - * @param allow @c EINA_TRUE Events are passed to lower objects, else not - * - * Enabling allow event will remove the Blocked event area and events will - * pass to the lower layer objects otherwise they are blocked. - * - * @ingroup Popup - * @see elm_popup_allow_events_get() - * @note The default value is EINA_FALSE. - */ -EAPI void elm_popup_allow_events_set(Evas_Object *obj, Eina_Bool allow); - -/** - * @brief Returns value indicating whether allow event is enabled or not - * - * @param obj The popup object - * @return @c EINA_FALSE if Blocked event area is present else @c EINA_TRUE - * - * @ingroup Popup - * @see elm_popup_allow_events_set() - * @note By default the Blocked event area is present - */ -EAPI Eina_Bool elm_popup_allow_events_get(const Evas_Object *obj); - -/** - * @brief Add a new item to a Popup object - * - * Both an item list and a content could not be set at the same time! - * once you add an item, the previous content will be removed. - * - * @param obj popup object - * @param icon Icon to be set on new item - * @param label The Label of the new item - * @param func Convenience function called when item selected - * @param data Data passed to @p func above - * @return A handle to the item added or @c NULL, on errors - * - * @ingroup Popup - * @warning When the first item is appended to popup object, any previous content - * of the content area is deleted. At a time, only one of content, content-text - * and item(s) can be there in a popup content area. - */ -EAPI Elm_Object_Item *elm_popup_item_append(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1); - -/** - * @brief Set the alignment of the popup object - * @param obj popup object - * @param horizontal The horizontal alignment of the popup - * @param vertical The vertical alignment of the popup - * - * Sets the alignment in which the popup will appear in its parent. - * - * @see elm_popup_align_get() - * - * @since 1.9 - * @ingroup Popup - */ -EAPI void elm_popup_align_set(Evas_Object *obj, double horizontal, double vertical); - -/** - * @brief Get the alignment of the popup object - * @param obj The popup object - * @param horizontal The horizontal alignment of the popup - * @param vertical The vertical alignment of the popup - * - * @see elm_popup_align_set() - * - * @since 1.9 - * @ingroup Popup - */ -EAPI void elm_popup_align_get(const Evas_Object *obj, double *horizontal, double *vertical); +#include "elc_popup.eo.legacy.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elm_panes_eo.h b/legacy/elementary/src/lib/elm_panes_eo.h index 737ff94085..d0284fb9a2 100644 --- a/legacy/elementary/src/lib/elm_panes_eo.h +++ b/legacy/elementary/src/lib/elm_panes_eo.h @@ -1,136 +1 @@ -#include "elm_panes.eo.h" -#if 0 -#define ELM_OBJ_PANES_CLASS elm_obj_panes_class_get() - -const Eo_Class *elm_obj_panes_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_PANES_BASE_ID; - -enum -{ - ELM_OBJ_PANES_SUB_ID_CONTENT_LEFT_SIZE_GET, - ELM_OBJ_PANES_SUB_ID_CONTENT_LEFT_SIZE_SET, - ELM_OBJ_PANES_SUB_ID_CONTENT_RIGHT_SIZE_GET, - ELM_OBJ_PANES_SUB_ID_CONTENT_RIGHT_SIZE_SET, - ELM_OBJ_PANES_SUB_ID_HORIZONTAL_SET, - ELM_OBJ_PANES_SUB_ID_HORIZONTAL_GET, - ELM_OBJ_PANES_SUB_ID_FIXED_SET, - ELM_OBJ_PANES_SUB_ID_FIXED_GET, - ELM_OBJ_PANES_SUB_ID_LAST -}; - -#define ELM_OBJ_PANES_ID(sub_id) (ELM_OBJ_PANES_BASE_ID + sub_id) - - -/** - * @def elm_obj_panes_content_left_size_get - * @since 1.8 - * - * Get the size proportion of panes widget's left side. - * - * @param[out] ret - * - * @see elm_panes_content_left_size_get - * - * @ingroup Panes - */ -#define elm_obj_panes_content_left_size_get(ret) ELM_OBJ_PANES_ID(ELM_OBJ_PANES_SUB_ID_CONTENT_LEFT_SIZE_GET), EO_TYPECHECK(double *, ret) - -/** - * @def elm_obj_panes_content_left_size_set - * @since 1.8 - * - * Set the size proportion of panes widget's left side. - * - * @param[in] size - * - * @see elm_panes_content_left_size_set - * - * @ingroup Panes - */ -#define elm_obj_panes_content_left_size_set(size) ELM_OBJ_PANES_ID(ELM_OBJ_PANES_SUB_ID_CONTENT_LEFT_SIZE_SET), EO_TYPECHECK(double, size) - -/** - * @def elm_obj_panes_content_right_size_get - * @since 1.8 - * - * Get the size proportion of panes widget's right side. - * - * @param[out] ret - * - * @see elm_panes_content_right_size_get - * - * @ingroup Panes - */ -#define elm_obj_panes_content_right_size_get(ret) ELM_OBJ_PANES_ID(ELM_OBJ_PANES_SUB_ID_CONTENT_RIGHT_SIZE_GET), EO_TYPECHECK(double *, ret) - -/** - * @def elm_obj_panes_content_right_size_set - * @since 1.8 - * - * Set the size proportion of panes widget's right side. - * - * @param[in] size - * - * @see elm_panes_content_right_size_set - * - * @ingroup Panes - */ -#define elm_obj_panes_content_right_size_set(size) ELM_OBJ_PANES_ID(ELM_OBJ_PANES_SUB_ID_CONTENT_RIGHT_SIZE_SET), EO_TYPECHECK(double, size) - -/** - * @def elm_obj_panes_horizontal_set - * @since 1.8 - * - * Set how to split and dispose each content. - * - * @param[in] horizontal - * - * @see elm_panes_horizontal_set - * - * @ingroup Panes - */ -#define elm_obj_panes_horizontal_set(horizontal) ELM_OBJ_PANES_ID(ELM_OBJ_PANES_SUB_ID_HORIZONTAL_SET), EO_TYPECHECK(Eina_Bool, horizontal) - -/** - * @def elm_obj_panes_horizontal_get - * @since 1.8 - * - * Retrieve the split direction of a given panes widget. - * - * @param[out] ret - * - * @see elm_panes_horizontal_get - * - * @ingroup Panes - */ -#define elm_obj_panes_horizontal_get(ret) ELM_OBJ_PANES_ID(ELM_OBJ_PANES_SUB_ID_HORIZONTAL_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_panes_fixed_set - * @since 1.8 - * - * Set whether the left and right panes can be resized by user interaction. - * - * @param[in] fixed - * - * @see elm_panes_fixed_set - * - * @ingroup Panes - */ -#define elm_obj_panes_fixed_set(fixed) ELM_OBJ_PANES_ID(ELM_OBJ_PANES_SUB_ID_FIXED_SET), EO_TYPECHECK(Eina_Bool, fixed) - -/** - * @def elm_obj_panes_fixed_get - * @since 1.8 - * - * Retrieve the resize mode for the panes of a given panes widget. - * - * @param[out] ret - * - * @see elm_panes_fixed_get - * - * @ingroup Panes - */ -#define elm_obj_panes_fixed_get(ret) ELM_OBJ_PANES_ID(ELM_OBJ_PANES_SUB_ID_FIXED_GET), EO_TYPECHECK(Eina_Bool *, ret) -#endif +#include "elm_panes.eo.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elm_panes_legacy.h b/legacy/elementary/src/lib/elm_panes_legacy.h index e9f760b94d..7ee243a759 100644 --- a/legacy/elementary/src/lib/elm_panes_legacy.h +++ b/legacy/elementary/src/lib/elm_panes_legacy.h @@ -11,145 +11,4 @@ */ EAPI Evas_Object *elm_panes_add(Evas_Object *parent); -/** - * Get the size proportion of panes widget's left side. - * - * @param obj The panes object. - * @return float value between 0.0 and 1.0 representing size proportion - * of left side. - * - * @see elm_panes_content_left_size_set() for more details. - * - * @ingroup Panes - */ -EAPI double elm_panes_content_left_size_get(const Evas_Object *obj); - -/** - * Set the size proportion of panes widget's left side. - * - * @param obj The panes object. - * @param size Value between 0.0 and 1.0 representing size proportion - * of left side. - * - * By default it's homogeneous, i.e., both sides have the same size. - * - * If something different is required, it can be set with this function. - * For example, if the left content should be displayed over - * 75% of the panes size, @p size should be passed as @c 0.75. - * This way, right content will be resized to 25% of panes size. - * - * If displayed vertically, left content is displayed at top, and - * right content at bottom. - * - * @note This proportion will change when user drags the panes bar. - * - * @see elm_panes_content_left_size_get() - * - * @ingroup Panes - */ -EAPI void elm_panes_content_left_size_set(Evas_Object *obj, double size); - -/** - * Get the size proportion of panes widget's right side. - * - * @param obj The panes object. - * @return float value between 0.0 and 1.0 representing size proportion - * of right side. - * - * @see elm_panes_content_right_size_set() for more details. - * - * @ingroup Panes - */ -EAPI double elm_panes_content_right_size_get(const Evas_Object *obj); - -/** - * Set the size proportion of panes widget's right side. - * - * @param obj The panes object. - * @param size Value between 0.0 and 1.0 representing size proportion - * of right side. - * - * By default it's homogeneous, i.e., both sides have the same size. - * - * If something different is required, it can be set with this function. - * For example, if the right content should be displayed over - * 75% of the panes size, @p size should be passed as @c 0.75. - * This way, left content will be resized to 25% of panes size. - * - * If displayed vertically, left content is displayed at top, and - * right content at bottom. - * - * @note This proportion will change when user drags the panes bar. - * - * @see elm_panes_content_right_size_get() - * - * @ingroup Panes - */ -EAPI void elm_panes_content_right_size_set(Evas_Object *obj, double size); - - -/** - * Set how to split and dispose each content. - * - * @param obj The panes object. - * @param horizontal Use @c EINA_TRUE to make @p obj to split panes - * horizontally ("top" and "bottom" contents). @c EINA_FALSE to make it - * vertically ("left" and "right" contents) - * - * Use this function to change how your panes is to be disposed: - * vertically or horizontally. - * Horizontal panes have "top" and "bottom" contents, vertical panes have - * "left" and "right" contents. - * - * By default panes is in a vertical mode. - * - * @see elm_panes_horizontal_get() - * - * @ingroup Panes - */ -EAPI void elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal); - -/** - * Retrieve the split direction of a given panes widget. - * - * @param obj The panes 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_panes_horizontal_set() for more details. - * - * @ingroup Panes - */ -EAPI Eina_Bool elm_panes_horizontal_get(const Evas_Object *obj); - -/** - * Set whether the left and right panes can be resized by user interaction. - * - * @param obj The panes object. - * @param fixed Use @c EINA_TRUE to fix the left and right panes sizes and make - * them not to be resized by user interaction. Use @c EINA_FALSE to make them - * resizable. - * - * By default panes' contents are resizable by user interaction. - * - * @see elm_panes_fixed_get() - * @see elm_panes_content_left_size_set() - * @see elm_panes_content_right_size_set() - * - * @ingroup Panes - */ -EAPI void elm_panes_fixed_set(Evas_Object *obj, Eina_Bool fixed); - -/** - * Retrieve the resize mode for the panes of a given panes widget. - * - * @param obj The panes object. - * @return @c EINA_TRUE, if @p obj is set to be resizable by user interaction. - * - * @see elm_panes_fixed_set() for more details. - * @see elm_panes_content_left_size_get() - * @see elm_panes_content_right_size_get() - * - * @ingroup Panes - */ -EAPI Eina_Bool elm_panes_fixed_get(const Evas_Object *obj); +#include "elm_panes.eo.legacy.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elm_photo_eo.h b/legacy/elementary/src/lib/elm_photo_eo.h index 10923f32e3..5607977f62 100644 --- a/legacy/elementary/src/lib/elm_photo_eo.h +++ b/legacy/elementary/src/lib/elm_photo_eo.h @@ -3,178 +3,9 @@ * * @{ */ + #include "elm_photo.eo.h" -#if 0 -#define ELM_OBJ_PHOTO_CLASS elm_obj_photo_class_get() - -const Eo_Class *elm_obj_photo_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_PHOTO_BASE_ID; - -enum -{ - ELM_OBJ_PHOTO_SUB_ID_FILE_SET, - ELM_OBJ_PHOTO_SUB_ID_SIZE_SET, - ELM_OBJ_PHOTO_SUB_ID_SIZE_GET, - ELM_OBJ_PHOTO_SUB_ID_FILL_INSIDE_SET, - ELM_OBJ_PHOTO_SUB_ID_FILL_INSIDE_GET, - ELM_OBJ_PHOTO_SUB_ID_EDITABLE_SET, - ELM_OBJ_PHOTO_SUB_ID_EDITABLE_GET, - ELM_OBJ_PHOTO_SUB_ID_THUMB_SET, - ELM_OBJ_PHOTO_SUB_ID_ASPECT_FIXED_SET, - ELM_OBJ_PHOTO_SUB_ID_ASPECT_FIXED_GET, - ELM_OBJ_PHOTO_SUB_ID_LAST -}; - -#define ELM_OBJ_PHOTO_ID(sub_id) (ELM_OBJ_PHOTO_BASE_ID + sub_id) - - -/** - * @def elm_obj_photo_add - * @since 1.8 - * - * Add a new photo to the parent - * - * @param[out] ret - * - * @see elm_photo_add - */ -#define elm_obj_photo_add(ret) ELM_OBJ_PHOTO_ID(ELM_OBJ_PHOTO_SUB_ID_ADD), EO_TYPECHECK(Evas_Object **, ret) - -/** - * @def elm_obj_photo_file_set - * @since 1.8 - * - * Set the file that will be used as the photo widget's image. - * - * @param[in] file - * @param[out] ret - * - * @see elm_photo_file_set - */ -#define elm_obj_photo_file_set(file, ret) ELM_OBJ_PHOTO_ID(ELM_OBJ_PHOTO_SUB_ID_FILE_SET), EO_TYPECHECK(const char *, file), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_photo_size_set - * @since 1.8 - * - * Set the size that will be used on the photo - * - * @param[in] size - * - * @see elm_photo_size_set - */ -#define elm_obj_photo_size_set(size) ELM_OBJ_PHOTO_ID(ELM_OBJ_PHOTO_SUB_ID_SIZE_SET), EO_TYPECHECK(int, size) - -/** - * @def elm_obj_photo_size_get - * @since 1.8 - * - * Get the size that will be used on the photo - * - * @param[out] ret - * - * @note There is no elm_photo_size_get - * - * @see elm_photo_size_set - * @see elm_obj_photo_size_set - */ -#define elm_obj_photo_size_get(ret) ELM_OBJ_PHOTO_ID(ELM_OBJ_PHOTO_SUB_ID_SIZE_GET), EO_TYPECHECK(int *, ret) - -/** - * @def elm_obj_photo_fill_inside_set - * @since 1.8 - * - * Set if the photo should be completely visible or not. - * - * @param[in] fill - * - * @see elm_photo_fill_inside_set - */ -#define elm_obj_photo_fill_inside_set(fill) ELM_OBJ_PHOTO_ID(ELM_OBJ_PHOTO_SUB_ID_FILL_INSIDE_SET), EO_TYPECHECK(Eina_Bool, fill) - -/** - * @def elm_obj_photo_fill_inside_get - * @since 1.8 - * - * Get if the photo should be completely visible or not. - * - * @param[out] ret - * - * @note There is no elm_photo_fill_inside_get - * - * @see elm_photo_fill_inside_set - * @see elm_obj_photo_fill_inside_set - */ -#define elm_obj_photo_fill_inside_get(ret) ELM_OBJ_PHOTO_ID(ELM_OBJ_PHOTO_SUB_ID_FILL_INSIDE_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_photo_editable_set - * @since 1.8 - * - * Set editability of the photo. - * - * @param[in] set - * - * @see elm_photo_editable_set - */ -#define elm_obj_photo_editable_set(set) ELM_OBJ_PHOTO_ID(ELM_OBJ_PHOTO_SUB_ID_EDITABLE_SET), EO_TYPECHECK(Eina_Bool, set) - -/** - * @def elm_obj_photo_editable_get - * @since 1.8 - * - * Get editability of the photo. - * - * @param[out] ret - * - * @note There is no elm_photo_editable_get - * - * @see elm_photo_editable_set - * @see elm_obj_photo_editable_set - */ -#define elm_obj_photo_editable_get(ret) ELM_OBJ_PHOTO_ID(ELM_OBJ_PHOTO_SUB_ID_EDITABLE_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_photo_thumb_set - * @since 1.8 - * - * Set the file that will be used as thumbnail in the photo. - * - * @param[in] file - * @param[in] group - * - * @see elm_photo_thumb_set - */ -#define elm_obj_photo_thumb_set(file, group) ELM_OBJ_PHOTO_ID(ELM_OBJ_PHOTO_SUB_ID_THUMB_SET), EO_TYPECHECK(const char *, file), EO_TYPECHECK(const char *, group) - -/** - * @def elm_obj_photo_aspect_fixed_set - * @since 1.8 - * - * Set whether the original aspect ratio of the photo should be kept on resize. - * - * @param[in] fixed - * - * @see elm_photo_aspect_fixed_set - */ -#define elm_obj_photo_aspect_fixed_set(fixed) ELM_OBJ_PHOTO_ID(ELM_OBJ_PHOTO_SUB_ID_ASPECT_FIXED_SET), EO_TYPECHECK(Eina_Bool, fixed) - -/** - * @def elm_obj_photo_aspect_fixed_get - * @since 1.8 - * - * Get if the object keeps the original aspect ratio. - * - * @param[out] ret - * - * @see elm_photo_aspect_fixed_get - */ -#define elm_obj_photo_aspect_fixed_get(ret) ELM_OBJ_PHOTO_ID(ELM_OBJ_PHOTO_SUB_ID_ASPECT_FIXED_GET), EO_TYPECHECK(Eina_Bool *, ret) - -#endif - /** * @} */ diff --git a/legacy/elementary/src/lib/elm_photo_legacy.h b/legacy/elementary/src/lib/elm_photo_legacy.h index 034178eda5..0c07d8a261 100644 --- a/legacy/elementary/src/lib/elm_photo_legacy.h +++ b/legacy/elementary/src/lib/elm_photo_legacy.h @@ -8,91 +8,4 @@ */ EAPI Evas_Object *elm_photo_add(Evas_Object *parent); -/** - * Set the file that will be used as the photo widget's image. - * - * @param obj The photo object - * @param file The path to file that will be used as @a obj's image. - * - * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise - * - * @note Use @c NULL on @a file to set the photo widget back to it's - * initial state, which indicates "no photo". - * - * @ingroup Photo - */ -EAPI Eina_Bool elm_photo_file_set(Evas_Object *obj, const char *file); - -/** - * Set the file that will be used as thumbnail in the photo. - * - * @param obj The photo object. - * @param file The path to file that will be used as thumbnail. - * @param group The key used in case of an EET file. - * - * @ingroup Photo - */ -EAPI void elm_photo_thumb_set(const Evas_Object *obj, const char *file, const char *group); - -/** - * Set the size that will be used on the photo - * - * @param obj The photo object - * @param size The size of the photo - * - * @ingroup Photo - */ -EAPI void elm_photo_size_set(Evas_Object *obj, int size); - -/** - * Set if the photo should be completely visible or not. - * - * @param obj The photo object - * @param fill if true the photo will be completely visible - * - * @ingroup Photo - */ -EAPI void elm_photo_fill_inside_set(Evas_Object *obj, Eina_Bool fill); - -/** - * Set editability of the photo. - * - * An editable photo can be dragged to or from, and can be cut or - * pasted too. Note that pasting an image or dropping an item on - * the image will delete the existing content. - * - * @param obj The photo object. - * @param set To set of clear editability. - */ -EAPI void elm_photo_editable_set(Evas_Object *obj, Eina_Bool set); - -/** - * Set whether the original aspect ratio of the photo should be kept on resize. - * - * @param obj The photo object. - * @param fixed @c EINA_TRUE if the photo should fix the aspect, - * @c EINA_FALSE otherwise. - * - * The original aspect ratio (width / height) of the photo is usually - * distorted to match the object's size. Enabling this option will fix - * this original aspect, and the way that the photo is fit into - * the object's area - * - * @see elm_photo_aspect_fixed_get() - * - * @ingroup Photo - */ -EAPI void elm_photo_aspect_fixed_set(Evas_Object *obj, Eina_Bool fixed); - -/** - * Get if the object keeps the original aspect ratio. - * - * @param obj The photo object. - * @return @c EINA_TRUE if the object keeps the original aspect, @c EINA_FALSE - * otherwise. - * - * @ingroup Photo - */ -EAPI Eina_Bool elm_photo_aspect_fixed_get(const Evas_Object *obj); - - +#include "elm_photo.eo.legacy.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elm_photocam_eo.h b/legacy/elementary/src/lib/elm_photocam_eo.h index 57a641d5aa..5036d6f25b 100644 --- a/legacy/elementary/src/lib/elm_photocam_eo.h +++ b/legacy/elementary/src/lib/elm_photocam_eo.h @@ -1,240 +1,2 @@ #include "elm_photocam_pan.eo.h" -#include "elm_photocam.eo.h" - -#if 0 -#define ELM_OBJ_PHOTOCAM_PAN_CLASS elm_obj_photocam_pan_class_get() - -const Eo_Class *elm_obj_photocam_pan_class_get(void) EINA_CONST; - -#define ELM_OBJ_PHOTOCAM_CLASS elm_obj_photocam_class_get() - -const Eo_Class *elm_obj_photocam_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_PHOTOCAM_BASE_ID; - -enum -{ - ELM_OBJ_PHOTOCAM_SUB_ID_FILE_SET, - ELM_OBJ_PHOTOCAM_SUB_ID_FILE_GET, - ELM_OBJ_PHOTOCAM_SUB_ID_ZOOM_SET, - ELM_OBJ_PHOTOCAM_SUB_ID_ZOOM_GET, - ELM_OBJ_PHOTOCAM_SUB_ID_ZOOM_MODE_SET, - ELM_OBJ_PHOTOCAM_SUB_ID_ZOOM_MODE_GET, - ELM_OBJ_PHOTOCAM_SUB_ID_IMAGE_SIZE_GET, - ELM_OBJ_PHOTOCAM_SUB_ID_IMAGE_REGION_GET, - ELM_OBJ_PHOTOCAM_SUB_ID_IMAGE_REGION_SHOW, - ELM_OBJ_PHOTOCAM_SUB_ID_PAUSED_SET, - ELM_OBJ_PHOTOCAM_SUB_ID_PAUSED_GET, - ELM_OBJ_PHOTOCAM_SUB_ID_INTERNAL_IMAGE_GET, - ELM_OBJ_PHOTOCAM_SUB_ID_GESTURE_ENABLED_SET, - ELM_OBJ_PHOTOCAM_SUB_ID_GESTURE_ENABLED_GET, - ELM_OBJ_PHOTOCAM_SUB_ID_LAST -}; - -#define ELM_OBJ_PHOTOCAM_ID(sub_id) (ELM_OBJ_PHOTOCAM_BASE_ID + sub_id) - - -/** - * @def elm_obj_photocam_file_set - * @since 1.8 - * - * @brief Set the photo file to be shown - * - * @param[in] file - * @param[out] ret - * - * @see elm_photocam_file_set - * - * @ingroup Photocam - */ -#define elm_obj_photocam_file_set(file, ret) ELM_OBJ_PHOTOCAM_ID(ELM_OBJ_PHOTOCAM_SUB_ID_FILE_SET), EO_TYPECHECK(const char *, file), EO_TYPECHECK(Evas_Load_Error *, ret) - -/** - * @def elm_obj_photocam_file_get - * @since 1.8 - * - * @brief Returns the path of the current image file - * - * @param[out] ret - * - * @see elm_photocam_file_get - * - * @ingroup Photocam - */ -#define elm_obj_photocam_file_get(ret) ELM_OBJ_PHOTOCAM_ID(ELM_OBJ_PHOTOCAM_SUB_ID_FILE_GET), EO_TYPECHECK(const char **, ret) - -/** - * @def elm_obj_photocam_zoom_set - * @since 1.8 - * - * @brief Set the zoom level of the photo - * - * @param[in] zoom - * - * @see elm_photocam_zoom_set - * - * @ingroup Photocam - */ -#define elm_obj_photocam_zoom_set(zoom) ELM_OBJ_PHOTOCAM_ID(ELM_OBJ_PHOTOCAM_SUB_ID_ZOOM_SET), EO_TYPECHECK(double, zoom) - -/** - * @def elm_obj_photocam_zoom_get - * @since 1.8 - * - * @brief Get the zoom level of the photo - * - * @param[out] ret - * - * @see elm_photocam_zoom_get - * - * @ingroup Photocam - */ -#define elm_obj_photocam_zoom_get(ret) ELM_OBJ_PHOTOCAM_ID(ELM_OBJ_PHOTOCAM_SUB_ID_ZOOM_GET), EO_TYPECHECK(double *, ret) - -/** - * @def elm_obj_photocam_zoom_mode_set - * @since 1.8 - * - * @brief Set the zoom mode - * - * @param[in] mode - * - * @see elm_photocam_zoom_mode_set - * - * @ingroup Photocam - */ -#define elm_obj_photocam_zoom_mode_set(mode) ELM_OBJ_PHOTOCAM_ID(ELM_OBJ_PHOTOCAM_SUB_ID_ZOOM_MODE_SET), EO_TYPECHECK(Elm_Photocam_Zoom_Mode, mode) - -/** - * @def elm_obj_photocam_zoom_mode_get - * @since 1.8 - * - * @brief Get the zoom mode - * - * @param[out] ret - * - * @see elm_photocam_zoom_mode_get - * - * @ingroup Photocam - */ -#define elm_obj_photocam_zoom_mode_get(ret) ELM_OBJ_PHOTOCAM_ID(ELM_OBJ_PHOTOCAM_SUB_ID_ZOOM_MODE_GET), EO_TYPECHECK(Elm_Photocam_Zoom_Mode *, ret) - -/** - * @def elm_obj_photocam_image_size_get - * @since 1.8 - * - * @brief Get the current image pixel width and height - * - * @param[out] w - * @param[out] h - * - * @see elm_photocam_image_size_get - * - * @ingroup Photocam - */ -#define elm_obj_photocam_image_size_get(w, h) ELM_OBJ_PHOTOCAM_ID(ELM_OBJ_PHOTOCAM_SUB_ID_IMAGE_SIZE_GET), EO_TYPECHECK(int *, w), EO_TYPECHECK(int *, h) - -/** - * @def elm_obj_photocam_image_region_get - * @since 1.8 - * - * @brief Get the region of the image that is currently shown - * - * @param[out] x - * @param[out] y - * @param[out] w - * @param[out] h - * - * @see elm_photocam_image_region_get - * - * @ingroup Photocam - */ -#define elm_obj_photocam_image_region_get(x, y, w, h) ELM_OBJ_PHOTOCAM_ID(ELM_OBJ_PHOTOCAM_SUB_ID_IMAGE_REGION_GET), EO_TYPECHECK(int *, x), EO_TYPECHECK(int *, y), EO_TYPECHECK(int *, w), EO_TYPECHECK(int *, h) - -/** - * @def elm_obj_photocam_image_region_show - * @since 1.8 - * - * @brief Set the viewed region of the image - * - * @param[in] x - * @param[in] y - * @param[in] w - * @param[in] h - * - * @see elm_photocam_image_region_show - * - * @ingroup Photocam - */ -#define elm_obj_photocam_image_region_show(x, y, w, h) ELM_OBJ_PHOTOCAM_ID(ELM_OBJ_PHOTOCAM_SUB_ID_IMAGE_REGION_SHOW), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(int, w), EO_TYPECHECK(int, h) - -/** - * @def elm_obj_photocam_paused_set - * @since 1.8 - * - * @brief Set the paused state for photocam - * - * @param[in] paused - * - * @see elm_photocam_paused_set - * - * @ingroup Photocam - */ -#define elm_obj_photocam_paused_set(paused) ELM_OBJ_PHOTOCAM_ID(ELM_OBJ_PHOTOCAM_SUB_ID_PAUSED_SET), EO_TYPECHECK(Eina_Bool, paused) - -/** - * @def elm_obj_photocam_paused_get - * @since 1.8 - * - * @brief Get the paused state for photocam - * - * @param[out] ret - * - * @see elm_photocam_paused_get - * - * @ingroup Photocam - */ -#define elm_obj_photocam_paused_get(ret) ELM_OBJ_PHOTOCAM_ID(ELM_OBJ_PHOTOCAM_SUB_ID_PAUSED_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_photocam_internal_image_get - * @since 1.8 - * - * @brief Get the internal low-res image used for photocam - * - * @param[out] ret - * - * @see elm_photocam_internal_image_get - * - * @ingroup Photocam - */ -#define elm_obj_photocam_internal_image_get(ret) ELM_OBJ_PHOTOCAM_ID(ELM_OBJ_PHOTOCAM_SUB_ID_INTERNAL_IMAGE_GET), EO_TYPECHECK(Evas_Object **, ret) - -/** - * @def elm_obj_photocam_gesture_enabled_set - * @since 1.8 - * - * @brief Set the gesture state for photocam. - * - * @param[in] gesture - * - * @see elm_photocam_gesture_enabled_set - * - * @ingroup Photocam - */ -#define elm_obj_photocam_gesture_enabled_set(gesture) ELM_OBJ_PHOTOCAM_ID(ELM_OBJ_PHOTOCAM_SUB_ID_GESTURE_ENABLED_SET), EO_TYPECHECK(Eina_Bool, gesture) - -/** - * @def elm_obj_photocam_gesture_enabled_get - * @since 1.8 - * - * @brief Get the gesture state for photocam. - * - * @param[out] ret - * - * @see elm_photocam_gesture_enabled_get - * - * @ingroup Photocam - */ -#define elm_obj_photocam_gesture_enabled_get(ret) ELM_OBJ_PHOTOCAM_ID(ELM_OBJ_PHOTOCAM_SUB_ID_GESTURE_ENABLED_GET), EO_TYPECHECK(Eina_Bool *, ret) -#endif +#include "elm_photocam.eo.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elm_photocam_legacy.h b/legacy/elementary/src/lib/elm_photocam_legacy.h index 0158f6f94c..246de4cc1d 100644 --- a/legacy/elementary/src/lib/elm_photocam_legacy.h +++ b/legacy/elementary/src/lib/elm_photocam_legacy.h @@ -8,153 +8,6 @@ */ EAPI Evas_Object *elm_photocam_add(Evas_Object *parent); -/** - * @brief Set the photo file to be shown - * - * @param obj The photocam object - * @param file The photo file - * @return The return error (see EVAS_LOAD_ERROR_NONE, EVAS_LOAD_ERROR_GENERIC etc.) - * - * This sets (and shows) the specified file (with a relative or absolute - * path) and will return a load error (same error that - * evas_object_image_load_error_get() will return). The image will change and - * adjust its size at this point and begin a background load process for this - * photo that at some time in the future will be displayed at the full - * quality needed. - * - * @ingroup Photocam - */ -EAPI Evas_Load_Error elm_photocam_file_set(Evas_Object *obj, const char *file); - -/** - * @brief Returns the path of the current image file - * - * @param obj The photocam object - * @return Returns the path - * - * @see elm_photocam_file_set() - * - * @ingroup Photocam - */ -EAPI const char *elm_photocam_file_get(const Evas_Object *obj); - -/** - * @brief Set the zoom level of the photo - * - * @param obj The photocam object - * @param zoom The zoom level to set - * - * This sets the zoom level. If @p zoom is 1, it means no zoom. If it's smaller - * than 1, it means zoom in. If it's bigger than 1, it means zoom out. For - * example, @p zoom 1 will be 1:1 pixel for pixel. @p zoom 2 will be 2:1 - * (that is 2x2 photo pixels will display as 1 on-screen pixel) which is a zoom - * out. 4:1 will be 4x4 photo pixels as 1 screen pixel, and so on. The @p zoom - * parameter must be greater than 0. It is suggested to stick to powers of 2. - * (1, 2, 4, 8, 16, 32, etc.). - * - * @ingroup Photocam - */ -EAPI void elm_photocam_zoom_set(Evas_Object *obj, double zoom); - -/** - * @brief Get the zoom level of the photo - * - * @param obj The photocam object - * @return The current zoom level - * - * This returns the current zoom level of the photocam object. Note that if - * you set the fill mode to other than ELM_PHOTOCAM_ZOOM_MODE_MANUAL - * (which is the default), the zoom level may be changed at any time by the - * photocam object itself to account for photo size and photocam viewport - * size. - * - * @see elm_photocam_zoom_set() - * @see elm_photocam_zoom_mode_set() - * - * @ingroup Photocam - */ -EAPI double elm_photocam_zoom_get(const Evas_Object *obj); - -/** - * @brief Set the zoom mode - * - * @param obj The photocam object - * @param mode The desired mode - * - * This sets the zoom mode to manual or one of several automatic levels. - * Manual (ELM_PHOTOCAM_ZOOM_MODE_MANUAL) means that zoom is set manually by - * elm_photocam_zoom_set() and will stay at that level until changed by code - * or until zoom mode is changed. This is the default mode. The Automatic - * modes will allow the photocam object to automatically adjust zoom mode - * based on properties. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT) will adjust zoom so - * the photo fits EXACTLY inside the scroll frame with no pixels outside this - * region. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL will be similar but ensure no - * pixels within the frame are left unfilled. - * - * @ingroup Photocam - */ -EAPI void elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode); - -/** - * @brief Get the zoom mode - * - * @param obj The photocam object - * @return The current zoom mode - * - * This gets the current zoom mode of the photocam object. - * - * @see elm_photocam_zoom_mode_set() - * - * @ingroup Photocam - */ -EAPI Elm_Photocam_Zoom_Mode elm_photocam_zoom_mode_get(const Evas_Object *obj); - -/** - * @brief Get the current image pixel width and height - * - * @param obj The photocam object - * @param w A pointer to the width return - * @param h A pointer to the height return - * - * This gets the current photo pixel width and height (for the original). - * The size will be returned in the integers @p w and @p h that are pointed - * to. - * - * @ingroup Photocam - */ -EAPI void elm_photocam_image_size_get(const Evas_Object *obj, int *w, int *h); - -/** - * @brief Get the region of the image that is currently shown - * - * @param obj - * @param x A pointer to the X-coordinate of region - * @param y A pointer to the Y-coordinate of region - * @param w A pointer to the width - * @param h A pointer to the height - * - * @see elm_photocam_image_region_show() - * @see elm_photocam_image_region_bring_in() - * - * @ingroup Photocam - */ -EAPI void elm_photocam_image_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h); - -/** - * @brief Set the viewed region of the image - * - * @param obj The photocam object - * @param x X-coordinate of region in image original pixels - * @param y Y-coordinate of region in image original pixels - * @param w Width of region in image original pixels - * @param h Height of region in image original pixels - * - * This shows the region of the image without using animation. - * - * @ingroup Photocam - */ -EAPI void elm_photocam_image_region_show(Evas_Object *obj, int x, int y, int w, int h); - /** * @brief Bring in the viewed portion of the image * @@ -170,72 +23,4 @@ EAPI void elm_photocam_image_region_show(Evas_Object *obj, int */ EAPI void elm_photocam_image_region_bring_in(Evas_Object *obj, int x, int y, int w, int h); -/** - * @brief Set the paused state for photocam - * - * @param obj The photocam object - * @param paused The pause state to set - * - * This sets the paused state to on(EINA_TRUE) or off (EINA_FALSE) for - * photocam. The default is off. This will stop zooming using animation on - * zoom level changes and change instantly. This will stop any existing - * animations that are running. - * - * @ingroup Photocam - */ -EAPI void elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused); - -/** - * @brief Get the paused state for photocam - * - * @param obj The photocam object - * @return The current paused state - * - * This gets the current paused state for the photocam object. - * - * @see elm_photocam_paused_set() - * - * @ingroup Photocam - */ -EAPI Eina_Bool elm_photocam_paused_get(const Evas_Object *obj); - -/** - * @brief Get the internal low-res image used for photocam - * - * @param obj The photocam object - * @return The internal image object handle, or NULL if none exists - * - * This gets the internal image object inside photocam. Do not modify it. It - * is for inspection only, and hooking callbacks to. Nothing else. It may be - * deleted at any time as well. - * - * @ingroup Photocam - */ -EAPI Evas_Object *elm_photocam_internal_image_get(const Evas_Object *obj); - -/** - * @brief Set the gesture state for photocam. - * - * @param obj The photocam object - * @param gesture The gesture state to set - * - * This sets the gesture state to on(EINA_TRUE) or off (EINA_FALSE) for - * photocam. The default is off. This will start multi touch zooming. - * - * @ingroup Photocam - */ -EAPI void elm_photocam_gesture_enabled_set(Evas_Object *obj, Eina_Bool gesture); - -/** - * @brief Get the gesture state for photocam. - * - * @param obj The photocam object - * @return The current gesture state - * - * This gets the current gesture state for the photocam object. - * - * @see elm_photocam_gesture_enabled_set() - * - * @ingroup Photocam - */ -EAPI Eina_Bool elm_photocam_gesture_enabled_get(const Evas_Object *obj); +#include "elm_photocam.eo.legacy.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elm_plug_eo.h b/legacy/elementary/src/lib/elm_plug_eo.h index ed6540929e..4230de1d9d 100644 --- a/legacy/elementary/src/lib/elm_plug_eo.h +++ b/legacy/elementary/src/lib/elm_plug_eo.h @@ -1,50 +1 @@ -#include "elm_plug.eo.h" - -#if 0 -#define ELM_OBJ_PLUG_CLASS elm_obj_plug_class_get() - -const Eo_Class *elm_obj_plug_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_PLUG_BASE_ID; - -enum -{ - ELM_OBJ_PLUG_SUB_ID_IMAGE_OBJECT_GET, - ELM_OBJ_PLUG_SUB_ID_CONNECT, - ELM_OBJ_PLUG_SUB_ID_LAST -}; - -#define ELM_OBJ_PLUG_ID(sub_id) (ELM_OBJ_PLUG_BASE_ID + sub_id) - - -/** - * @def elm_obj_plug_image_object_get - * @since 1.8 - * - * Get the basic Evas_Image object from this object (widget). - * - * @param[out] ret - * - * @see elm_plug_image_object_get - * - * @ingroup Plug - */ -#define elm_obj_plug_image_object_get(ret) ELM_OBJ_PLUG_ID(ELM_OBJ_PLUG_SUB_ID_IMAGE_OBJECT_GET), EO_TYPECHECK(Evas_Object **, ret) - -/** - * @def elm_obj_plug_connect - * @since 1.8 - * - * Connect a plug widget to service provided by socket image. - * - * @param[in] svcname - * @param[in] svcnum - * @param[in] svcsys - * @param[out] ret - * - * @see elm_plug_connect - * - * @ingroup Plug - */ -#define elm_obj_plug_connect(svcname, svcnum, svcsys, ret) ELM_OBJ_PLUG_ID(ELM_OBJ_PLUG_SUB_ID_CONNECT), EO_TYPECHECK(const char *, svcname), EO_TYPECHECK(int, svcnum), EO_TYPECHECK(Eina_Bool, svcsys), EO_TYPECHECK(Eina_Bool *, ret) -#endif +#include "elm_plug.eo.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elm_plug_legacy.h b/legacy/elementary/src/lib/elm_plug_legacy.h index ba0330d80f..5c04ec36fa 100644 --- a/legacy/elementary/src/lib/elm_plug_legacy.h +++ b/legacy/elementary/src/lib/elm_plug_legacy.h @@ -8,32 +8,4 @@ */ EAPI Evas_Object *elm_plug_add(Evas_Object *parent); -/** - * Get the basic Evas_Image object from this object (widget). - * - * @param obj The image object to get the inlined image from - * @return The inlined image object, or NULL if none exists - * - * This function allows one to get the underlying @c Evas_Object of type - * Image from this elementary widget. It can be useful to do things like get - * the pixel data, save the image to a file, etc. - * - * @note Be careful to not manipulate it, as it is under control of - * elementary. - * - * @ingroup Plug - */ -EAPI Evas_Object *elm_plug_image_object_get(const Evas_Object *obj); - -/** - * Connect a plug widget to service provided by socket image. - * - * @param obj The Evas_Object where the new image object will live. - * @param svcname The service name to connect to set up by the socket. - * @param svcnum The service number to connect to (set up by socket). - * @param svcsys Boolean to set if the service is a system one or not (set up by socket). - * @return (@c EINA_TRUE = success, @c EINA_FALSE = error) - * - * @ingroup Plug - */ -EAPI Eina_Bool elm_plug_connect(Evas_Object *obj, const char *svcname, int svcnum, Eina_Bool svcsys); +#include "elm_plug.eo.legacy.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elm_prefs_eo.h b/legacy/elementary/src/lib/elm_prefs_eo.h index 8639a8f718..c3e1612ac3 100644 --- a/legacy/elementary/src/lib/elm_prefs_eo.h +++ b/legacy/elementary/src/lib/elm_prefs_eo.h @@ -3,358 +3,9 @@ * * @{ */ + #include "elm_prefs.eo.h" -#if 0 -#define ELM_OBJ_PREFS_CLASS elm_obj_prefs_class_get() -const Eo_Class *elm_obj_prefs_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_PREFS_BASE_ID; - -enum -{ - ELM_OBJ_PREFS_SUB_ID_FILE_SET, - ELM_OBJ_PREFS_SUB_ID_FILE_GET, - ELM_OBJ_PREFS_SUB_ID_DATA_SET, - ELM_OBJ_PREFS_SUB_ID_DATA_GET, - ELM_OBJ_PREFS_SUB_ID_AUTOSAVE_SET, - ELM_OBJ_PREFS_SUB_ID_AUTOSAVE_GET, - ELM_OBJ_PREFS_SUB_ID_RESET, - ELM_OBJ_PREFS_SUB_ID_ITEM_VALUE_SET, - ELM_OBJ_PREFS_SUB_ID_ITEM_VALUE_GET, - ELM_OBJ_PREFS_SUB_ID_ITEM_OBJECT_GET, - ELM_OBJ_PREFS_SUB_ID_ITEM_VISIBLE_SET, - ELM_OBJ_PREFS_SUB_ID_ITEM_VISIBLE_GET, - ELM_OBJ_PREFS_SUB_ID_ITEM_DISABLED_SET, - ELM_OBJ_PREFS_SUB_ID_ITEM_DISABLED_GET, - ELM_OBJ_PREFS_SUB_ID_ITEM_EDITABLE_SET, - ELM_OBJ_PREFS_SUB_ID_ITEM_EDITABLE_GET, - ELM_OBJ_PREFS_SUB_ID_ITEM_SWALLOW, - ELM_OBJ_PREFS_SUB_ID_ITEM_UNSWALLOW, - ELM_OBJ_PREFS_SUB_ID_LAST -}; - -#define ELM_OBJ_PREFS_ID(sub_id) (ELM_OBJ_PREFS_BASE_ID + sub_id) - -/** - * @def elm_obj_prefs_file_set - * - * Set file and page to populate a given prefs widget's interface. - * - * @param[in] file - * @param[in] page - * @param[out] ret - * - * @see elm_prefs_file_set() - * - * @since 1.8 - */ -#define elm_obj_prefs_file_set(file, page, ret) \ - ELM_OBJ_PREFS_ID(ELM_OBJ_PREFS_SUB_ID_FILE_SET), \ - EO_TYPECHECK(const char *, file), \ - EO_TYPECHECK(const char *, page), \ - EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_prefs_file_get - * - * Retrieve file and page bound to a given prefs widget. - * - * @param[out] file - * @param[out] page - * @param[out] ret - * - * @see elm_prefs_file_get() - * - * @since 1.8 - */ -#define elm_obj_prefs_file_get(file, page, ret) \ - ELM_OBJ_PREFS_ID(ELM_OBJ_PREFS_SUB_ID_FILE_GET), \ - EO_TYPECHECK(const char **, file), \ - EO_TYPECHECK(const char **, page), \ - EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_prefs_data_set - * - * Set user data for a given prefs widget - * - * @param[in] data - * @param[out] ret - * - * @see elm_prefs_data_set() - * - * @since 1.8 - */ -#define elm_obj_prefs_data_set(data, ret) \ - ELM_OBJ_PREFS_ID(ELM_OBJ_PREFS_SUB_ID_DATA_SET), \ - EO_TYPECHECK(Elm_Prefs_Data *, data), \ - EO_TYPECHECK(Eina_Bool *, ret) -//FIXME: prefs_data == eobject? - -/** - * @def elm_obj_prefs_data_get - * - * Retrieve user data for a given prefs widget - * - * @param[out] ret - * - * @see elm_prefs_data_get() - * - * @since 1.8 - */ -#define elm_obj_prefs_data_get(ret) \ - ELM_OBJ_PREFS_ID(ELM_OBJ_PREFS_SUB_ID_DATA_GET), \ - EO_TYPECHECK(Elm_Prefs_Data **, ret) - -/** - * @def elm_obj_prefs_autosave_set - * - * Set whether a given prefs widget should save its values back (on - * the user data file, if set) automatically on every UI element - * changes. - * - * @param[in] autosave - * - * @see elm_prefs_autosave_get() - * - * @since 1.8 - */ -#define elm_obj_prefs_autosave_set(autosave) \ - ELM_OBJ_PREFS_ID(ELM_OBJ_PREFS_SUB_ID_AUTOSAVE_SET), \ - EO_TYPECHECK(Eina_Bool, autosave) - -/** - * @def elm_obj_prefs_autosave_get - * - * Get whether a given prefs widget is saving its values back - * automatically on changes. - * - * @param[out] ret - * - * @see elm_prefs_autosave_set() - * - * @since 1.8 - */ -#define elm_obj_prefs_autosave_get(ret) \ - ELM_OBJ_PREFS_ID(ELM_OBJ_PREFS_SUB_ID_AUTOSAVE_GET), \ - EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_prefs_reset - * - * Reset the values of a given prefs widget to a previous state. - * - * @param[in] mode - * - * @since 1.8 - */ -#define elm_obj_prefs_reset(mode) \ - ELM_OBJ_PREFS_ID(ELM_OBJ_PREFS_SUB_ID_RESET), \ - EO_TYPECHECK(Elm_Prefs_Reset_Mode, mode) - -/** - * @def elm_obj_prefs_item_value_set - * - * Set the value on a given prefs widget's item. - * - * @param[in] name - * @param[in] value - * @param[out] ret - * - * @see elm_prefs_item_value_get() - * - * @since 1.8 - */ -#define elm_obj_prefs_item_value_set(name, value, ret) \ - ELM_OBJ_PREFS_ID(ELM_OBJ_PREFS_SUB_ID_ITEM_VALUE_SET), \ - EO_TYPECHECK(const char *, name), \ - EO_TYPECHECK(const Eina_Value *, value), \ - EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_prefs_item_value_get - * - * Retrieve the value of a given prefs widget's item. - * - * @param[in] name - * @param[out] value - * @param[out] ret - * - * @see elm_prefs_item_value_set() - * - * @since 1.8 - */ -#define elm_obj_prefs_item_value_get(name, value, ret) \ - ELM_OBJ_PREFS_ID(ELM_OBJ_PREFS_SUB_ID_ITEM_VALUE_GET), \ - EO_TYPECHECK(const char *, name), \ - EO_TYPECHECK(Eina_Value *, value), \ - EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_prefs_item_object_get - * - * Retrieve the Elementary widget bound to a given prefs widget's - * item. - * - * @param[in] name - * @param[out] ret - * - * @see elm_prefs_item_value_get() - * - * @since 1.8 - */ -#define elm_obj_prefs_item_object_get(name, ret) \ - ELM_OBJ_PREFS_ID(ELM_OBJ_PREFS_SUB_ID_ITEM_OBJECT_GET), \ - EO_TYPECHECK(const char *, name), \ - EO_TYPECHECK(const Evas_Object **, ret) //FIXME: return EObject? - -/** - * @def elm_obj_prefs_item_visible_set - * - * Set whether the widget bound to given prefs widget's item should be - * visible or not. - * - * @param[in] name - * @param[in] visible - * - * @see elm_prefs_item_visible_set() - * - * @since 1.8 - */ -#define elm_obj_prefs_item_visible_set(name, visible) \ - ELM_OBJ_PREFS_ID(ELM_OBJ_PREFS_SUB_ID_ITEM_VISIBLE_SET), \ - EO_TYPECHECK(const char *, name), \ - EO_TYPECHECK(Eina_Bool, visible) - -/** - * @def elm_obj_prefs_item_visible_get - * - * Retrieve whether the widget bound to a given prefs widget's item is - * visible or not. - * - * @param[in] name - * @param[out] ret - * - * @see elm_prefs_item_visible_get() - * - * @since 1.8 - */ -#define elm_obj_prefs_item_visible_get(name, ret) \ - ELM_OBJ_PREFS_ID(ELM_OBJ_PREFS_SUB_ID_ITEM_VISIBLE_GET), \ - EO_TYPECHECK(const char *,name), \ - EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_prefs_item_disabled_set - * - * Set whether the widget bound to a given prefs widget's item is - * disabled or not. - * - * @param[in] name - * @param[in] disabled - * - * @see elm_prefs_item_disabled_set() - * - * @since 1.8 - */ -#define elm_obj_prefs_item_disabled_set(name, disabled) \ - ELM_OBJ_PREFS_ID(ELM_OBJ_PREFS_SUB_ID_ITEM_DISABLED_SET), \ - EO_TYPECHECK(const char *, name), \ - EO_TYPECHECK(Eina_Bool, disabled) - -/** - * @def elm_obj_prefs_item_disabled_get - * - * Retrieve whether the widget bound to a given prefs widget's item is - * disabled or not. - * - * @param[in] name - * @param[out] ret - * - * @see elm_prefs_item_disabled_get() - * - * @since 1.8 - */ -#define elm_obj_prefs_item_disabled_get(name, ret) \ - ELM_OBJ_PREFS_ID(ELM_OBJ_PREFS_SUB_ID_ITEM_DISABLED_GET), \ - EO_TYPECHECK(const char *, name), \ - EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_prefs_item_editable_set - * - * Set whether the widget bound to a given prefs widget's item is - * editable or not. - * - * @param[in] name - * @param[in] editable - * - * @see elm_prefs_item_editable_set() - * - * @since 1.8 - */ -#define elm_obj_prefs_item_editable_set(name, editable) \ - ELM_OBJ_PREFS_ID(ELM_OBJ_PREFS_SUB_ID_ITEM_EDITABLE_SET), \ - EO_TYPECHECK(const char *, name), \ - EO_TYPECHECK(Eina_Bool, editable) - -/** - * @def elm_obj_prefs_item_editable_get - * - * Retrieve whether the widget bound to a given prefs widget's item is - * editable or not. - * - * @param[in] name - * @param[out] ret - * - * @see elm_prefs_item_editable_get() - * - * @since 1.8 - */ -#define elm_obj_prefs_item_editable_get(name, ret) \ - ELM_OBJ_PREFS_ID(ELM_OBJ_PREFS_SUB_ID_ITEM_EDITABLE_GET), \ - EO_TYPECHECK(const char *, name), \ - EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_prefs_item_swallow - * - * "Swallows" an object into a SWALLOW item of a prefs widget. - * - * @param[in] name - * @param[in] child - * @param[out] ret - * - * @see elm_prefs_item_swallow() - * - * @since 1.8 - */ -#define elm_obj_prefs_item_swallow(name, child, ret) \ - ELM_OBJ_PREFS_ID(ELM_OBJ_PREFS_SUB_ID_ITEM_SWALLOW), \ - EO_TYPECHECK(const char *, name), \ - EO_TYPECHECK(Evas_Object *, child), \ - EO_TYPECHECK(Eina_Bool *, ret) -//FIXME: child == EObject? - -/** - * @def elm_obj_prefs_item_unswallow - * - * Unswallow an object from a SWALLOW item of a prefs widget. - * - * @param[in] name - * @param[out] ret - * - * @see elm_prefs_item_unswallow() - * - * @since 1.8 - */ -#define elm_obj_prefs_item_unswallow(name, ret) \ - ELM_OBJ_PREFS_ID(ELM_OBJ_PREFS_SUB_ID_ITEM_UNSWALLOW), \ - EO_TYPECHECK(const char *,name), \ - EO_TYPECHECK(Evas_Object **, ret) -//FIXME: ret == EObject? -#endif /** * @} */ diff --git a/legacy/elementary/src/lib/elm_prefs_legacy.h b/legacy/elementary/src/lib/elm_prefs_legacy.h index d0d3d47730..384042fee4 100644 --- a/legacy/elementary/src/lib/elm_prefs_legacy.h +++ b/legacy/elementary/src/lib/elm_prefs_legacy.h @@ -5,372 +5,9 @@ */ EAPI Eina_Bool elm_prefs_page_widget_common_add(Evas_Object *prefs, Evas_Object *obj); -/** - * Set file and page to populate a given prefs widget's interface. - * - * @param o A prefs widget handle - * @param file The @b .epb (binary) file to get contents from - * @param page The page, inside @a file, where to get item contents from - * @return @c EINA_TRUE, on success, @c EINA_FALSE otherwise - * - * Elm prefs widgets start blank, with no child widgets. It's meant to - * have its viewport populated with child elements coming from a - * declaration file. That file (usually with @b .epb extension), is a - * binary format (Eet) one, coming from a human-readable textual - * declaration. This textual form (usually with @b .epc extension) is - * translated to the binary form by means of the @b prefs_cc compiler. - * - * With this function, one thus populates a prefs widget with UI - * elements. - * - * If @a file is @c NULL, "elm_app_data_dir_get()/preferences.epb" - * will be used, by default. If @a file is a @b relative path, the - * prefix "elm_app_data_dir_get()/" will be implicitly used with it. - * If @a page is @c NULL, it is considered "main", as default. - * - * @warning If your binary is not properly installed and - * elm_app_data_dir_get() can't be figured out, a fallback value of - * "." will be tryed, instead. - * - * @see elm_prefs_file_get() - * - * @since 1.8 - */ -EAPI Eina_Bool elm_prefs_file_set(Evas_Object *o, - const char *file, - const char *page); -/** - * Retrieve file and page bound to a given prefs widget. - * - * @param o A prefs widget handle - * @param file Where to store the file @a o is bound to - * @param page Where to store the page @a o is bound to - * @return @c EINA_TRUE, on success, @c EINA_FALSE otherwise - * - * @note Use @c NULL pointers on the components you're not - * interested in: they'll be ignored by the function. - * - * @see elm_prefs_file_set() for more information - * - * @since 1.8 - */ -EAPI Eina_Bool elm_prefs_file_get(const Evas_Object *o, - const char **file, - const char **page); -/** - * Set user data for a given prefs widget - * - * @param obj A prefs widget handle - * @param prefs_data A valid prefs_data handle - * @return @c EINA_TRUE, on success, @c EINA_FALSE otherwise - * - * Once a prefs widget is created, after elm_prefs_file_set() is - * issued on it, all of its UI elements will get default values, when - * declared on that file. To fetch an user's own, personal set of - * those values, one gets to pair a prefs data handle to the - * prefs widget. This is what this call is intended for. - * - * Prefs data values from @a prefs_data with keys matching the ones - * present on the file passed on elm_prefs_file_set() to @a obj will - * have their values applied to the respective UI elements of the - * widget. - * - * When @a obj dies, the values of the elements declared on its @b - * .epb file (the one set on elm_prefs_file_set()) marked as permanent - * will be written back to @a prefs_data, if it is writable. - * One is also able to make this writing event to take place - * automatically after each UI element modification by using - * elm_prefs_autosave_set(). - * - * @note @a obj will keep a reference of its own for @a prefs_data, - * but you should still unreference it by yourself, after the widget - * is gone. - * - * @see elm_prefs_data_get() - * - * @since 1.8 - */ -EAPI Eina_Bool elm_prefs_data_set(Evas_Object *obj, - Elm_Prefs_Data *data); - -/** - * Retrieve user data for a given prefs widget - * - * @param obj A prefs widget handle - * @param prefs_data A valid prefs_data handle - * @return A pointer to the user data of a given prefs widget on success. - * @c NULL otherwise. - * - * @see elm_prefs_data_set() for more details - * - * @since 1.8 - */ -EAPI Elm_Prefs_Data *elm_prefs_data_get(const Evas_Object *o); - -/** - * Set whether a given prefs widget should save its values back (on - * the user data file, if set) automatically on every UI element - * changes. - * - * @param prefs A valid prefs widget handle - * @param autosave @c EINA_TRUE to save automatically, @c EINA_FALSE - * otherwise. - * - * If @a autosave is @c EINA_TRUE, every call to - * elm_prefs_item_value_set(), every - * Elm_Prefs_Data_Event_Type::ELM_PREFS_DATA_EVENT_ITEM_CHANGED event - * coming for its prefs data and every UI element direct value - * changing will implicitly make the prefs values to be flushed back - * to it prefs data. If a prefs data handle with no writing - * permissions or no prefs data is set on @a prefs, naturally nothing - * will happen. - * - * @see elm_prefs_autosave_get() - * - * @since 1.8 - */ -EAPI void elm_prefs_autosave_set(Evas_Object *prefs, - Eina_Bool autosave); - -/** - * Get whether a given prefs widget is saving its values back - * automatically on changes. - * - * @param prefs A valid prefs widget handle - * @return @c EINA_TRUE if @a prefs is saving automatically, - * @c EINA_FALSE otherwise. - * - * @see elm_prefs_autosave_set(), for more details - * - * @since 1.8 - */ -EAPI Eina_Bool elm_prefs_autosave_get(const Evas_Object *prefs); - -/** - * Reset the values of a given prefs widget to a previous state. - * - * @param prefs A valid prefs widget handle - * @param mode The reset mode to apply on @a prefs - * - * As can be seen on #Elm_Prefs_Reset_Mode, there are two possible - * actions to be taken by this call -- either to reset @a prefs' - * values to the defaults (declared on the @c .epb file it is bound - * to) or to reset to the state they were before the last modification - * it got. - * - * @since 1.8 - */ -EAPI void elm_prefs_reset(Evas_Object *prefs, - Elm_Prefs_Reset_Mode mode); - -/** - * Set the value on a given prefs widget's item. - * - * @param prefs A valid prefs widget handle - * @param name The name of the item (as declared in the prefs - * collection) - * @param value The value to set on the item. It should be typed as - * the item expects, preferably, or a conversion will - * take place - * @return @c EINA_TRUE, on success, @c EINA_FALSE otherwise - * - * This will change the value of item named @a name programatically. - * - * @see elm_prefs_item_value_get() - * - * @since 1.8 - */ -EAPI Eina_Bool elm_prefs_item_value_set(Evas_Object *prefs, - const char *name, - const Eina_Value *value); - -/** - * Retrieve the value of a given prefs widget's item. - * - * @param prefs A valid prefs widget handle - * @param name The name of the item (as declared in the prefs - * collection) to get value from - * @param value Where to store the value of the item. It will be - * overwritten and setup with the type the item - * is bound to - * @return @c EINA_TRUE, on success, @c EINA_FALSE otherwise - * - * This will retrieve the value of item named @a name. - * - * @see elm_prefs_item_value_set() - * - * @since 1.8 - */ -EAPI Eina_Bool elm_prefs_item_value_get(const Evas_Object *prefs, - const char *name, - Eina_Value *value); -/** - * Retrieve the Elementary widget bound to a given prefs widget's - * item. - * - * @param prefs A valid prefs widget handle - * @param name The name of the item (as declared in the prefs - * collection) to get object from - * @return A valid widget handle, on success, or @c NULL, otherwise - * - * This will retrieve a handle to the real widget implementing a given - * item of @a prefs, for read-only actions. - * - * @warning You should @b never modify the state of the returned - * widget, because it's meant to be managed by @a prefs, solely. - * - * @see elm_prefs_item_value_set() - * - * @since 1.8 - */ -EAPI const Evas_Object *elm_prefs_item_object_get(Evas_Object *prefs, - const char *name); - -/** - * Set whether the widget bound to given prefs widget's item should be - * visible or not. - * - * @param prefs A valid prefs widget handle - * @param name The name of the item (as declared in the prefs - * collection) to change visibility of - * @param visible @c EINA_TRUE, to make it visible, @c EINA_FALSE - * otherwise - * - * Each prefs item may have a default visibility state, declared on - * the @c .epb @a prefs it was loaded with. By this call one may alter - * that state, programatically. - * - * @see elm_prefs_item_visible_get() - * - * @since 1.8 - */ -EAPI void elm_prefs_item_visible_set(Evas_Object *prefs, - const char *name, - Eina_Bool visible); - -/** - * Retrieve whether the widget bound to a given prefs widget's item is - * visible or not. - * - * @param prefs A valid prefs widget handle - * @param name The name of the item (as declared in the prefs - * collection) to get visibility state from - * @return @c EINA_TRUE, if it is visible, @c EINA_FALSE - * otherwise - * - * @see elm_prefs_item_visible_set() for more details - * - * @since 1.8 - */ -EAPI Eina_Bool elm_prefs_item_visible_get(const Evas_Object *prefs, - const char *name); - -/** - * Set whether the widget bound to a given prefs widget's item is - * disabled or not. - * - * @param prefs A valid prefs widget handle - * @param name The name of the item (as declared in the prefs - * collection) to act on - * @param disabled @c EINA_TRUE, to make it disabled, @c EINA_FALSE - * otherwise - * - * @see elm_prefs_item_disabled_get() - * - * @since 1.8 - */ -EAPI void elm_prefs_item_disabled_set(Evas_Object *prefs, - const char *name, - Eina_Bool disabled); - -/** - * Retrieve whether the widget bound to a given prefs widget's item is - * disabled or not. - * - * @param prefs A valid prefs widget handle - * @param name The name of the item (as declared in the prefs - * collection) to get disabled state from - * @return @c EINA_TRUE, if it is disabled, @c EINA_FALSE - * otherwise - * - * @see elm_prefs_item_disabled_set() - * - * @since 1.8 - */ -EAPI Eina_Bool elm_prefs_item_disabled_get(const Evas_Object *prefs, - const char *name); - -/** - * Set whether the widget bound to a given prefs widget's item is - * editable or not. - * - * @param prefs A valid prefs widget handle - * @param name The name of the item (as declared in the prefs - * collection) to act on - * @param editable @c EINA_TRUE, to make it editable, @c EINA_FALSE - * otherwise - * - * @note Only @c TEXT or @c TEXTAREA items' default widgets implement - * the 'editable' property. Custom registered widgets may as well - * implement them. - * - * @see elm_prefs_item_editable_get() - * - * @since 1.8 - */ -EAPI void elm_prefs_item_editable_set(Evas_Object *prefs, - const char *name, - Eina_Bool editable); - -/** - * Retrieve whether the widget bound to a given prefs widget's item is - * editable or not. - * - * @param prefs A valid prefs widget handle - * @param name The name of the item (as declared in the prefs - * collection) to get editable state from - * @return @c EINA_TRUE, if it is editable, @c EINA_FALSE - * otherwise - * - * @see elm_prefs_item_editable_set() for more details - * - * @since 1.8 - */ -EAPI Eina_Bool elm_prefs_item_editable_get(const Evas_Object *prefs, - const char *name); - -/** - * "Swallows" an object into a SWALLOW item of a prefs widget. - * - * @param obj A valid prefs widget handle - * @param name the name of the SWALLOW item (as declared in the prefs - * collection) - * @param child The object to occupy the item - * @return @c EINA_TRUE, on success, @c EINA_FALSE otherwise - * - * @see elm_prefs_item_swallow() for more details - * - * @since 1.8 - */ -EAPI Eina_Bool elm_prefs_item_swallow(Evas_Object *obj, - const char *name, - Evas_Object *child); - -/** - * Unswallow an object from a SWALLOW item of a prefs widget. - * - * @param obj A valid prefs widget handle - * @param name the name of the SWALLOW item (as declared in the prefs - * collection) - * @return The unswallowed object, or NULL on errors - * - * @see elm_prefs_item_unswallow() for more details - * - * @since 1.8 - */ -EAPI Evas_Object *elm_prefs_item_unswallow(Evas_Object *obj, - const char *name); +#include "elm_prefs.eo.legacy.h" /** * @} */ + diff --git a/legacy/elementary/src/lib/elm_progressbar.h b/legacy/elementary/src/lib/elm_progressbar.h index e44caea732..d9482a096c 100644 --- a/legacy/elementary/src/lib/elm_progressbar.h +++ b/legacy/elementary/src/lib/elm_progressbar.h @@ -62,6 +62,7 @@ * @li @ref progressbar_example */ +#include "elm_progressbar_common.h" #ifdef EFL_EO_API_SUPPORT #include "elm_progressbar_eo.h" #endif diff --git a/legacy/elementary/src/lib/elm_progressbar_common.h b/legacy/elementary/src/lib/elm_progressbar_common.h new file mode 100644 index 0000000000..ccad880dfe --- /dev/null +++ b/legacy/elementary/src/lib/elm_progressbar_common.h @@ -0,0 +1,3 @@ +typedef char *(*progressbar_func_type)(double); +typedef void (*progressbar_freefunc_type)(char *); + diff --git a/legacy/elementary/src/lib/elm_progressbar_eo.h b/legacy/elementary/src/lib/elm_progressbar_eo.h index 946d4e7b5c..6ae7f19e7a 100644 --- a/legacy/elementary/src/lib/elm_progressbar_eo.h +++ b/legacy/elementary/src/lib/elm_progressbar_eo.h @@ -1,269 +1 @@ -typedef char *(*progressbar_func_type)(double); -typedef void (*progressbar_freefunc_type)(char *); - #include "elm_progressbar.eo.h" - -#if 0 -#define ELM_OBJ_PROGRESSBAR_CLASS elm_obj_progressbar_class_get() - -const Eo_Class *elm_obj_progressbar_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_PROGRESSBAR_BASE_ID; - -enum -{ - ELM_OBJ_PROGRESSBAR_SUB_ID_PULSE_SET, - ELM_OBJ_PROGRESSBAR_SUB_ID_PULSE_GET, - ELM_OBJ_PROGRESSBAR_SUB_ID_PULSE, - ELM_OBJ_PROGRESSBAR_SUB_ID_VALUE_SET, - ELM_OBJ_PROGRESSBAR_SUB_ID_VALUE_GET, - ELM_OBJ_PROGRESSBAR_SUB_ID_SPAN_SIZE_SET, - ELM_OBJ_PROGRESSBAR_SUB_ID_SPAN_SIZE_GET, - ELM_OBJ_PROGRESSBAR_SUB_ID_UNIT_FORMAT_SET, - ELM_OBJ_PROGRESSBAR_SUB_ID_UNIT_FORMAT_GET, - ELM_OBJ_PROGRESSBAR_SUB_ID_UNIT_FORMAT_FUNCTION_SET, - ELM_OBJ_PROGRESSBAR_SUB_ID_HORIZONTAL_SET, - ELM_OBJ_PROGRESSBAR_SUB_ID_HORIZONTAL_GET, - ELM_OBJ_PROGRESSBAR_SUB_ID_INVERTED_SET, - ELM_OBJ_PROGRESSBAR_SUB_ID_INVERTED_GET, - ELM_OBJ_PROGRESSBAR_SUB_ID_PART_VALUE_SET, - ELM_OBJ_PROGRESSBAR_SUB_ID_PART_VALUE_GET, - ELM_OBJ_PROGRESSBAR_SUB_ID_LAST -}; - -#define ELM_OBJ_PROGRESSBAR_ID(sub_id) (ELM_OBJ_PROGRESSBAR_BASE_ID + sub_id) - - -/** - * @def elm_obj_progressbar_pulse_set - * @since 1.8 - * - * Set whether a given progress bar widget is at "pulsing mode" or - * not. - * - * @param[in] pulse - * - * @see elm_progressbar_pulse_set - * - * @ingroup Progressbar - */ -#define elm_obj_progressbar_pulse_set(pulse) ELM_OBJ_PROGRESSBAR_ID(ELM_OBJ_PROGRESSBAR_SUB_ID_PULSE_SET), EO_TYPECHECK(Eina_Bool, pulse) - -/** - * @def elm_obj_progressbar_pulse_get - * @since 1.8 - * - * Get whether a given progress bar widget is at "pulsing mode" or - * not. - * - * @param[out] ret - * - * @see elm_progressbar_pulse_get - * - * @ingroup Progressbar - */ -#define elm_obj_progressbar_pulse_get(ret) ELM_OBJ_PROGRESSBAR_ID(ELM_OBJ_PROGRESSBAR_SUB_ID_PULSE_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_progressbar_pulse - * @since 1.8 - * - * Start/stop a given progress bar "pulsing" animation, if its - * under that mode - * - * @param[in] state - * - * @see elm_progressbar_pulse - * - * @ingroup Progressbar - */ -#define elm_obj_progressbar_pulse(state) ELM_OBJ_PROGRESSBAR_ID(ELM_OBJ_PROGRESSBAR_SUB_ID_PULSE), EO_TYPECHECK(Eina_Bool, state) - -/** - * @def elm_obj_progressbar_value_set - * @since 1.8 - * - * Set the progress value (in percentage) on a given progress bar - * - * @param[in] val - * - * @see elm_progressbar_value_set - * - * @ingroup Progressbar - */ -#define elm_obj_progressbar_value_set(val) ELM_OBJ_PROGRESSBAR_ID(ELM_OBJ_PROGRESSBAR_SUB_ID_VALUE_SET), EO_TYPECHECK(double, val) - -/** - * @def elm_obj_progressbar_value_get - * @since 1.8 - * - * Get the progress value (in percentage) on a given progress bar - * - * @param[out] ret - * - * @see elm_progressbar_value_get - * - * @ingroup Progressbar - */ -#define elm_obj_progressbar_value_get(ret) ELM_OBJ_PROGRESSBAR_ID(ELM_OBJ_PROGRESSBAR_SUB_ID_VALUE_GET), EO_TYPECHECK(double *, ret) - -/** - * @def elm_obj_progressbar_span_size_set - * @since 1.8 - * - * Set the (exact) length of the bar region of a given progress bar - * - * @param[in] size - * - * @see elm_progressbar_span_size_set - * - * @ingroup Progressbar - */ -#define elm_obj_progressbar_span_size_set(size) ELM_OBJ_PROGRESSBAR_ID(ELM_OBJ_PROGRESSBAR_SUB_ID_SPAN_SIZE_SET), EO_TYPECHECK(Evas_Coord, size) - -/** - * @def elm_obj_progressbar_span_size_get - * @since 1.8 - * - * Get the length set for the bar region of a given progress bar - * - * @param[out] ret - * - * @see elm_progressbar_span_size_get - * - * @ingroup Progressbar - */ -#define elm_obj_progressbar_span_size_get(ret) ELM_OBJ_PROGRESSBAR_ID(ELM_OBJ_PROGRESSBAR_SUB_ID_SPAN_SIZE_GET), EO_TYPECHECK(Evas_Coord *, ret) - -/** - * @def elm_obj_progressbar_unit_format_set - * @since 1.8 - * - * Set the format string for a given progress bar widget's units - * - * @param[in] units - * - * @see elm_progressbar_unit_format_set - * - * @ingroup Progressbar - */ -#define elm_obj_progressbar_unit_format_set(units) ELM_OBJ_PROGRESSBAR_ID(ELM_OBJ_PROGRESSBAR_SUB_ID_UNIT_FORMAT_SET), EO_TYPECHECK(const char *, units) - -/** - * @def elm_obj_progressbar_unit_format_get - * @since 1.8 - * - * Retrieve the format string set for a given progress bar widget's - * - * @param[out] ret - * - * @see elm_progressbar_unit_format_get - * - * @ingroup Progressbar - */ -#define elm_obj_progressbar_unit_format_get(ret) ELM_OBJ_PROGRESSBAR_ID(ELM_OBJ_PROGRESSBAR_SUB_ID_UNIT_FORMAT_GET), EO_TYPECHECK(const char **, ret) - -/** - * @def elm_obj_progressbar_unit_format_function_set - * @since 1.8 - * - * Set the format function pointer for the units label - * - * @param[in] func - * @param[in] free_func - * - * @see elm_progressbar_unit_format_function_set - * - * @ingroup Progressbar - */ -#define elm_obj_progressbar_unit_format_function_set(func, free_func) ELM_OBJ_PROGRESSBAR_ID(ELM_OBJ_PROGRESSBAR_SUB_ID_UNIT_FORMAT_FUNCTION_SET), EO_TYPECHECK(progressbar_func_type, func), EO_TYPECHECK(progressbar_freefunc_type, free_func) - -/** - * @def elm_obj_progressbar_horizontal_set - * @since 1.8 - * - * Set the orientation of a given progress bar widget - * - * @param[in] horizontal - * - * @see elm_progressbar_horizontal_set - * - * @ingroup Progressbar - */ -#define elm_obj_progressbar_horizontal_set(horizontal) ELM_OBJ_PROGRESSBAR_ID(ELM_OBJ_PROGRESSBAR_SUB_ID_HORIZONTAL_SET), EO_TYPECHECK(Eina_Bool, horizontal) - -/** - * @def elm_obj_progressbar_horizontal_get - * @since 1.8 - * - * Retrieve the orientation of a given progress bar widget - * - * @param[out] ret - * - * @see elm_progressbar_horizontal_get - * - * @ingroup Progressbar - */ -#define elm_obj_progressbar_horizontal_get(ret) ELM_OBJ_PROGRESSBAR_ID(ELM_OBJ_PROGRESSBAR_SUB_ID_HORIZONTAL_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_progressbar_inverted_set - * @since 1.8 - * - * Invert a given progress bar widget's displaying values order - * - * @param[in] inverted - * - * @see elm_progressbar_inverted_set - * - * @ingroup Progressbar - */ -#define elm_obj_progressbar_inverted_set(inverted) ELM_OBJ_PROGRESSBAR_ID(ELM_OBJ_PROGRESSBAR_SUB_ID_INVERTED_SET), EO_TYPECHECK(Eina_Bool, inverted) - -/** - * @def elm_obj_progressbar_inverted_get - * @since 1.8 - * - * Get whether a given progress bar widget's displaying values are - * inverted or not - * - * @param[out] ret - * - * @see elm_progressbar_inverted_get - * - * @ingroup Progressbar - */ -#define elm_obj_progressbar_inverted_get(ret) ELM_OBJ_PROGRESSBAR_ID(ELM_OBJ_PROGRESSBAR_SUB_ID_INVERTED_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_progressbar_part_value_set - * @since 1.8 - * - * Modified to support more than one progress status - * Set the value of the progress status a particular part - * - * @param[in] part - * @param[in] val - * - * @see elm_progressbar_part_value_set - * - * @ingroup Progressbar - */ -#define elm_obj_progressbar_part_value_set(part, val) ELM_OBJ_PROGRESSBAR_ID(ELM_OBJ_PROGRESSBAR_SUB_ID_PART_VALUE_SET), EO_TYPECHECK(const char*, part), EO_TYPECHECK(double, val) - -/** - * @def elm_obj_progressbar_part_value_get - * @since 1.8 - * - * Modified to support more than one progress status - * Get the value of the progress status of a particular part - * - * @param[in] part - * @param[out] ret - * - * @see elm_progressbar_part_value_get - * - * @ingroup Progressbar - */ -#define elm_obj_progressbar_part_value_get(part, ret) ELM_OBJ_PROGRESSBAR_ID(ELM_OBJ_PROGRESSBAR_SUB_ID_PART_VALUE_GET), EO_TYPECHECK(const char*, part), EO_TYPECHECK(double *, ret) -#endif diff --git a/legacy/elementary/src/lib/elm_progressbar_legacy.h b/legacy/elementary/src/lib/elm_progressbar_legacy.h index 89667e6346..ea405de5a7 100644 --- a/legacy/elementary/src/lib/elm_progressbar_legacy.h +++ b/legacy/elementary/src/lib/elm_progressbar_legacy.h @@ -11,274 +11,4 @@ */ EAPI Evas_Object *elm_progressbar_add(Evas_Object *parent); -/** - * Set whether a given progress bar widget is at "pulsing mode" or - * not. - * - * @param obj The progress bar object - * @param pulse @c EINA_TRUE to put @p obj in pulsing mode, - * @c EINA_FALSE to put it back to its default one - * - * By default, progress bars will display values from the low to - * high value boundaries. There are, though, contexts in which the - * progress of a given task is @b unknown. For such cases, - * one can set a progress bar widget to a "pulsing state", to give - * the user an idea that some computation is being held, but - * without exact progress values. In the default theme, it will - * animate its bar with the contents filling in constantly and back - * to non-filled, in a loop. To start and stop this pulsing - * animation, one has to explicitly call elm_progressbar_pulse(). - * - * @see elm_progressbar_pulse_get() - * @see elm_progressbar_pulse() - * - * @ingroup Progressbar - */ -EAPI void elm_progressbar_pulse_set(Evas_Object *obj, Eina_Bool pulse); - -/** - * Get whether a given progress bar widget is at "pulsing mode" or - * not. - * - * @param obj The progress bar object - * @return @c EINA_TRUE, if @p obj is in pulsing mode, @c EINA_FALSE - * if it's in the default one (and on errors) - * - * @ingroup Progressbar - */ -EAPI Eina_Bool elm_progressbar_pulse_get(const Evas_Object *obj); - -/** - * Start/stop a given progress bar "pulsing" animation, if its - * under that mode - * - * @param obj The progress bar object - * @param state @c EINA_TRUE, to @b start the pulsing animation, - * @c EINA_FALSE to @b stop it - * - * @note This call won't do anything if @p obj is not under "pulsing mode". - * - * @see elm_progressbar_pulse_set() for more details. - * - * @ingroup Progressbar - */ -EAPI void elm_progressbar_pulse(Evas_Object *obj, Eina_Bool state); - -/** - * Set the progress value (in percentage) on a given progress bar - * widget - * - * @param obj The progress bar object - * @param val The progress value (@b must be between @c 0.0 and @c - * 1.0) - * - * Use this call to set progress bar levels. - * - * @note If you passes a value out of the specified range for @p - * val, it will be interpreted as the @b closest of the @b boundary - * values in the range. - * - * @ingroup Progressbar - */ -EAPI void elm_progressbar_value_set(Evas_Object *obj, double val); - -/** - * Get the progress value (in percentage) on a given progress bar - * widget - * - * @param obj The progress bar object - * @return The value of the progressbar - * - * @see elm_progressbar_value_set() for more details - * - * @ingroup Progressbar - */ -EAPI double elm_progressbar_value_get(const Evas_Object *obj); - -/** - * Set the (exact) length of the bar region of a given progress bar - * widget - * - * @param obj The progress bar object - * @param size The length of the progress bar'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 progress - * bar @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, label 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_progressbar_span_size_get() - * - * @ingroup Progressbar - */ -EAPI void elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size); - -/** - * Get the length set for the bar region of a given progress bar - * widget - * - * @param obj The progress bar object - * @return The length of the progress bar's bar region - * - * If that size was not set previously, with - * elm_progressbar_span_size_set(), this call will return @c 0. - * - * @ingroup Progressbar - */ -EAPI Evas_Coord elm_progressbar_span_size_get(const Evas_Object *obj); - -/** - * Set the format string for a given progress bar widget's units - * label - * - * @param obj The progress bar object - * @param format The format string for @p obj's units label - * - * If @c NULL is passed on @p format, it will make @p obj's units - * area to be hidden completely. If not, it'll set the format - * string for the units label's @b text. The units label is - * provided a floating point value, so the units text is up display - * at most one floating point value. Note that the units label is - * optional. Use a format string such as "%1.2f meters" for - * example. - * - * @note The default format string for a progress bar is an integer - * percentage, as in @c "%.0f %%". - * - * @see elm_progressbar_unit_format_get() - * - * @ingroup Progressbar - */ -EAPI void elm_progressbar_unit_format_set(Evas_Object *obj, const char *format); - -/** - * Retrieve the format string set for a given progress bar widget's - * units label - * - * @param obj The progress bar object - * @return The format set string for @p obj's units label or - * @c NULL, if none was set (and on errors) - * - * @see elm_progressbar_unit_format_set() for more details - * - * @ingroup Progressbar - */ -EAPI const char *elm_progressbar_unit_format_get(const Evas_Object *obj); - -/** - * Set the format function pointer for the units label - * - * @param obj The progress bar object - * @param func The unit format function - * @param free_func The freeing function for the format string. - * - * Set the callback function to format the unit string. - * - * @see elm_progressbar_unit_format_set() for more info on how this works. - * - * @since 1.7 - * - * @ingroup Progressbar - */ -EAPI void elm_progressbar_unit_format_function_set(Evas_Object *obj, char *(func)(double), void (*free_func) (char *)); - -/** - * Set the orientation of a given progress bar widget - * - * @param obj The progress bar 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 progress bar is to be - * disposed: vertically or horizontally. - * - * @see elm_progressbar_horizontal_get() - * - * @ingroup Progressbar - */ -EAPI void elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal); - -/** - * Retrieve the orientation of a given progress bar widget - * - * @param obj The progress bar 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_progressbar_horizontal_set() for more details - * - * @ingroup Progressbar - */ -EAPI Eina_Bool elm_progressbar_horizontal_get(const Evas_Object *obj); - -/** - * Invert a given progress bar widget's displaying values order - * - * @param obj The progress bar 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 progress bar may be @b inverted, in which state it gets its - * values inverted, with high values 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_progressbar_inverted_get() - * - * @ingroup Progressbar - */ -EAPI void elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted); - -/** - * Get whether a given progress bar widget's displaying values are - * inverted or not - * - * @param obj The progress bar object - * @return @c EINA_TRUE, if @p obj has inverted values, - * @c EINA_FALSE otherwise (and on errors) - * - * @see elm_progressbar_inverted_set() for more details - * - * @ingroup Progressbar - */ -EAPI Eina_Bool elm_progressbar_inverted_get(const Evas_Object *obj); - -/** - * Set the progress value (in percentage) on a given progress bar - * widget for the given part name - * - * @since 1.8 - * - * @param obj The progress bar object - * @param part The partname to which val have to set - * @param val The progress value (@b must be between @c 0.0 and @c - * 1.0) - * - * Use this call to set progress bar status for more than one progress status . - * - * @ingroup Progressbar - */ -EAPI void elm_progressbar_part_value_set(Evas_Object *obj, const char *part, double val); - -/** - * Get the progress value (in percentage) on a given progress bar - * widget for a particular part - * - * @since 1.8 - * - * @param obj The progress bar object - * @param part The part name of the progress bar - * @return The value of the progressbar - * - * @see elm_progressbar_value_set() for more details - * - * @ingroup Progressbar - */ -EAPI double elm_progressbar_part_value_get(const Evas_Object *obj, const char *part); +#include "elm_progressbar.eo.legacy.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elm_radio_eo.h b/legacy/elementary/src/lib/elm_radio_eo.h index b77f57e563..bf205ca4e4 100644 --- a/legacy/elementary/src/lib/elm_radio_eo.h +++ b/legacy/elementary/src/lib/elm_radio_eo.h @@ -1,124 +1 @@ -#include "elm_radio.eo.h" - -#if 0 - -#define ELM_OBJ_RADIO_CLASS elm_obj_radio_class_get() - -const Eo_Class *elm_obj_radio_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_RADIO_BASE_ID; - -enum -{ - ELM_OBJ_RADIO_SUB_ID_GROUP_ADD, - ELM_OBJ_RADIO_SUB_ID_STATE_VALUE_SET, - ELM_OBJ_RADIO_SUB_ID_STATE_VALUE_GET, - ELM_OBJ_RADIO_SUB_ID_VALUE_SET, - ELM_OBJ_RADIO_SUB_ID_VALUE_GET, - ELM_OBJ_RADIO_SUB_ID_VALUE_POINTER_SET, - ELM_OBJ_RADIO_SUB_ID_SELECTED_OBJECT_GET, - ELM_OBJ_RADIO_SUB_ID_LAST -}; - -#define ELM_OBJ_RADIO_ID(sub_id) (ELM_OBJ_RADIO_BASE_ID + sub_id) - - -/** - * @def elm_obj_radio_group_add - * @since 1.8 - * - * @brief Add this radio to a group of other radio objects - * - * @param[in] group - * - * @see elm_radio_group_add - * - * @ingroup Radio - */ -#define elm_obj_radio_group_add(group) ELM_OBJ_RADIO_ID(ELM_OBJ_RADIO_SUB_ID_GROUP_ADD), EO_TYPECHECK(Evas_Object *, group) - -/** - * @def elm_obj_radio_state_value_set - * @since 1.8 - * - * @brief Set the integer value that this radio object represents - * - * @param[in] value - * - * @see elm_radio_state_value_set - * - * @ingroup Radio - */ -#define elm_obj_radio_state_value_set(value) ELM_OBJ_RADIO_ID(ELM_OBJ_RADIO_SUB_ID_STATE_VALUE_SET), EO_TYPECHECK(int, value) - -/** - * @def elm_obj_radio_state_value_get - * @since 1.8 - * - * @brief Get the integer value that this radio object represents - * - * @param[out] ret - * - * @see elm_radio_state_value_get - * - * @ingroup Radio - */ -#define elm_obj_radio_state_value_get(ret) ELM_OBJ_RADIO_ID(ELM_OBJ_RADIO_SUB_ID_STATE_VALUE_GET), EO_TYPECHECK(int *, ret) - -/** - * @def elm_obj_radio_value_set - * @since 1.8 - * - * @brief Set the value of the radio group. - * - * @param[in] value - * - * @see elm_radio_value_set - * - * @ingroup Radio - */ -#define elm_obj_radio_value_set(value) ELM_OBJ_RADIO_ID(ELM_OBJ_RADIO_SUB_ID_VALUE_SET), EO_TYPECHECK(int, value) - -/** - * @def elm_obj_radio_value_get - * @since 1.8 - * - * @brief Get the value of the radio group - * - * @param[out] ret - * - * @see elm_radio_value_get - * - * @ingroup Radio - */ -#define elm_obj_radio_value_get(ret) ELM_OBJ_RADIO_ID(ELM_OBJ_RADIO_SUB_ID_VALUE_GET), EO_TYPECHECK(int *, ret) - -/** - * @def elm_obj_radio_value_pointer_set - * @since 1.8 - * - * @brief Set a convenience pointer to a integer to change when radio group - * - * @param[in] valuep - * - * @see elm_radio_value_pointer_set - * - * @ingroup Radio - */ -#define elm_obj_radio_value_pointer_set(valuep) ELM_OBJ_RADIO_ID(ELM_OBJ_RADIO_SUB_ID_VALUE_POINTER_SET), EO_TYPECHECK(int *, valuep) - -/** - * @def elm_obj_radio_selected_object_get - * @since 1.8 - * - * @brief Get the selected radio object. - * - * @param[out] ret - * - * @see elm_radio_selected_object_get - * - * @ingroup Radio - */ -#define elm_obj_radio_selected_object_get(ret) ELM_OBJ_RADIO_ID(ELM_OBJ_RADIO_SUB_ID_SELECTED_OBJECT_GET), EO_TYPECHECK(Evas_Object **, ret) -#endif - +#include "elm_radio.eo.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elm_radio_legacy.h b/legacy/elementary/src/lib/elm_radio_legacy.h index de182a2e47..43b3de69b9 100644 --- a/legacy/elementary/src/lib/elm_radio_legacy.h +++ b/legacy/elementary/src/lib/elm_radio_legacy.h @@ -8,93 +8,4 @@ */ EAPI Evas_Object *elm_radio_add(Evas_Object *parent); -/** - * @brief Add this radio to a group of other radio objects - * - * @param obj The radio object - * @param group Any object whose group the @p obj is to join. - * - * Radio objects work in groups. Each member should have a different integer - * value assigned. In order to have them work as a group, they need to know - * about each other. This adds the given radio object to the group of which - * the group object indicated is a member. - * - * @ingroup Radio - */ -EAPI void elm_radio_group_add(Evas_Object *obj, Evas_Object *group); - -/** - * @brief Set the integer value that this radio object represents - * - * @param obj The radio object - * @param value The value to use if this radio object is selected - * - * This sets the value of the radio. - * - * @ingroup Radio - */ -EAPI void elm_radio_state_value_set(Evas_Object *obj, int value); - -/** - * @brief Get the integer value that this radio object represents - * - * @param obj The radio object - * @return The value used if this radio object is selected - * - * This gets the value of the radio. - * @see elm_radio_value_set() - * - * @ingroup Radio - */ -EAPI int elm_radio_state_value_get(const Evas_Object *obj); - -/** - * @brief Set the value of the radio group. - * - * @param obj The radio object (any radio object of the group). - * @param value The value to use for the group - * - * This sets the value of the radio group and will also set the value if - * pointed to, to the value supplied, but will not call any callbacks. - * - * @ingroup Radio - */ -EAPI void elm_radio_value_set(Evas_Object *obj, int value); - -/** - * @brief Get the value of the radio group - * - * @param obj The radio object (any radio object of the group). - * @return The integer state - * - * @ingroup Radio - */ -EAPI int elm_radio_value_get(const Evas_Object *obj); - -/** - * @brief Set a convenience pointer to a integer to change when radio group - * value changes. - * - * @param obj The radio object (any object of a group) - * @param valuep Pointer to the integer to modify - * - * This sets a pointer to a integer, that, in addition to the radio objects - * state will also be modified directly. To stop setting the object pointed - * to simply use NULL as the @p valuep argument. If valuep is not NULL, then - * when this is called, the radio objects state will also be modified to - * reflect the value of the integer valuep points to, just like calling - * elm_radio_value_set(). - * - * @ingroup Radio - */ -EAPI void elm_radio_value_pointer_set(Evas_Object *obj, int *valuep); - -/** - * @brief Get the selected radio object. - * - * @param obj Any radio object (any object of a group) - * @return The selected radio object - * - * @ingroup Radio - */ -EAPI Evas_Object *elm_radio_selected_object_get(const Evas_Object *obj); +#include "elm_radio.eo.legacy.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elm_route_eo.h b/legacy/elementary/src/lib/elm_route_eo.h index c239070f82..b722adbfea 100644 --- a/legacy/elementary/src/lib/elm_route_eo.h +++ b/legacy/elementary/src/lib/elm_route_eo.h @@ -1,65 +1 @@ -#include "elm_route.eo.h" - -#if 0 -#define ELM_OBJ_ROUTE_CLASS elm_obj_route_class_get() - -const Eo_Class *elm_obj_route_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_ROUTE_BASE_ID; - -enum -{ - ELM_OBJ_ROUTE_SUB_ID_EMAP_SET, - ELM_OBJ_ROUTE_SUB_ID_LONGITUDE_MIN_MAX_GET, - ELM_OBJ_ROUTE_SUB_ID_LATITUDE_MIN_MAX_GET, - ELM_OBJ_ROUTE_SUB_ID_LAST -}; - -#define ELM_OBJ_ROUTE_ID(sub_id) (ELM_OBJ_ROUTE_BASE_ID + sub_id) - - -/** - * @def elm_obj_route_emap_set - * @since 1.8 - * - * No description supplied by the EAPI. - * - * @param[in] emap - * - * @see elm_route_emap_set - * - * @ingroup Route - */ -#define elm_obj_route_emap_set(emap) ELM_OBJ_ROUTE_ID(ELM_OBJ_ROUTE_SUB_ID_EMAP_SET), EO_TYPECHECK(EMap_Route *, emap) - -/** - * @def elm_obj_route_longitude_min_max_get - * @since 1.8 - * - * Get the minimum and maximum values along the longitude. - * - * @param[out] min - * @param[out] max - * - * @see elm_route_longitude_min_max_get - * - * @ingroup Route - */ -#define elm_obj_route_longitude_min_max_get(min, max) ELM_OBJ_ROUTE_ID(ELM_OBJ_ROUTE_SUB_ID_LONGITUDE_MIN_MAX_GET), EO_TYPECHECK(double *, min), EO_TYPECHECK(double *, max) - -/** - * @def elm_obj_route_latitude_min_max_get - * @since 1.8 - * - * Get the minimum and maximum values along the latitude. - * - * @param[out] min - * @param[out] max - * - * @see elm_route_latitude_min_max_get - * - * @ingroup Route - */ -#define elm_obj_route_latitude_min_max_get(min, max) ELM_OBJ_ROUTE_ID(ELM_OBJ_ROUTE_SUB_ID_LATITUDE_MIN_MAX_GET), EO_TYPECHECK(double *, min), EO_TYPECHECK(double *, max) -#endif - +#include "elm_route.eo.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elm_route_legacy.h b/legacy/elementary/src/lib/elm_route_legacy.h index 84212a065c..b1cdd289dd 100644 --- a/legacy/elementary/src/lib/elm_route_legacy.h +++ b/legacy/elementary/src/lib/elm_route_legacy.h @@ -8,42 +8,4 @@ */ EAPI Evas_Object *elm_route_add(Evas_Object *parent); -#ifdef ELM_EMAP -/** - * emap set - * - * @param parent The parent object - * @param emap The emap - * - * @ingroup Route - */ -EAPI void elm_route_emap_set(Evas_Object *obj, void *emap); -#endif - -/** - * Get the minimum and maximum values along the longitude. - * - * @param obj The route 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. - * - * @ingroup Route - */ -EAPI void elm_route_longitude_min_max_get(const Evas_Object *obj, double *min, double *max); - -/** - * Get the minimum and maximum values along the latitude. - * - * @param obj The route 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. - * - * @ingroup Route - */ -EAPI void elm_route_latitude_min_max_get(const Evas_Object *obj, double *min, double *max); +#include "elm_route.eo.legacy.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elm_scroller_eo.h b/legacy/elementary/src/lib/elm_scroller_eo.h index 296518af96..16658cf7bc 100644 --- a/legacy/elementary/src/lib/elm_scroller_eo.h +++ b/legacy/elementary/src/lib/elm_scroller_eo.h @@ -3,93 +3,9 @@ * * @{ */ + #include "elm_scroller.eo.h" -#if 0 -#define ELM_OBJ_SCROLLER_CLASS elm_obj_scroller_class_get() - -const Eo_Class *elm_obj_scroller_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_SCROLLER_BASE_ID; - -enum -{ - ELM_OBJ_SCROLLER_SUB_ID_CUSTOM_WIDGET_BASE_THEME_SET, - ELM_OBJ_SCROLLER_SUB_ID_PAGE_SCROLL_LIMIT_SET, - ELM_OBJ_SCROLLER_SUB_ID_PAGE_SCROLL_LIMIT_GET, - ELM_OBJ_SCROLLER_SUB_ID_PROPAGATE_EVENTS_SET, - ELM_OBJ_SCROLLER_SUB_ID_PROPAGATE_EVENTS_GET, - ELM_OBJ_SCROLLER_SUB_ID_LAST -}; - -#define ELM_OBJ_SCROLLER_ID(sub_id) (ELM_OBJ_SCROLLER_BASE_ID + sub_id) - - -/** - * @def elm_obj_scroller_custom_widget_base_theme_set - * @since 1.8 - * - * @brief Set custom theme elements for the scroller - * - * @param[in] klass - * @param[in] group - * - * @see elm_scroller_custom_widget_base_theme_set - */ -#define elm_obj_scroller_custom_widget_base_theme_set(klass, group) ELM_OBJ_SCROLLER_ID(ELM_OBJ_SCROLLER_SUB_ID_CUSTOM_WIDGET_BASE_THEME_SET), EO_TYPECHECK(const char *, klass), EO_TYPECHECK(const char *, group) - -/** - * @def elm_obj_scroller_page_scroll_limit_set - * @since 1.8 - * - * @brief Set the maxium of the movable page at a flicking. - * - * @param[in] page_limit_h - * @param[in] page_limit_v - * - * @see elm_scroller_page_scroll_limit_set - */ -#define elm_obj_scroller_page_scroll_limit_set(page_limit_h, page_limit_v) ELM_OBJ_SCROLLER_ID(ELM_OBJ_SCROLLER_SUB_ID_PAGE_SCROLL_LIMIT_SET), EO_TYPECHECK(int, page_limit_h), EO_TYPECHECK(int, page_limit_v) - -/** - * @def elm_obj_scroller_page_scroll_limit_get - * @since 1.8 - * - * @brief Get the maxium of the movable page at a flicking. - * - * @param[in] page_limit_h - * @param[in] page_limit_v - * - * @see elm_scroller_page_scroll_limit_get - */ -#define elm_obj_scroller_page_scroll_limit_get(page_limit_h, page_limit_v) ELM_OBJ_SCROLLER_ID(ELM_OBJ_SCROLLER_SUB_ID_PAGE_SCROLL_LIMIT_GET), EO_TYPECHECK(int *, page_limit_h), EO_TYPECHECK(int *, page_limit_v) - -/** - * @def elm_obj_scroller_propagate_events_set - * @since 1.8 - * - * @brief Set event propagation on a scroller - * - * @param[in] propagation - * - * @see elm_scroller_propagate_events_set - */ -#define elm_obj_scroller_propagate_events_set(propagation) ELM_OBJ_SCROLLER_ID(ELM_OBJ_SCROLLER_SUB_ID_PROPAGATE_EVENTS_SET), EO_TYPECHECK(Eina_Bool, propagation) - -/** - * @def elm_obj_scroller_propagate_events_get - * @since 1.8 - * - * @brief Get event propagation for a scroller - * - * @param[out] ret - * - * @see elm_scroller_propagate_events_get - */ -#define elm_obj_scroller_propagate_events_get(ret) ELM_OBJ_SCROLLER_ID(ELM_OBJ_SCROLLER_SUB_ID_PROPAGATE_EVENTS_GET), EO_TYPECHECK(Eina_Bool *, ret) - -#endif - /** * @} */ diff --git a/legacy/elementary/src/lib/elm_scroller_legacy.h b/legacy/elementary/src/lib/elm_scroller_legacy.h index 5e3a549252..134eb30e2e 100644 --- a/legacy/elementary/src/lib/elm_scroller_legacy.h +++ b/legacy/elementary/src/lib/elm_scroller_legacy.h @@ -273,38 +273,6 @@ EAPI void elm_scroller_page_size_set(Evas_Object *obj, */ EAPI void elm_scroller_page_size_get(const Evas_Object *obj, Evas_Coord *h_pagesize, Evas_Coord *v_pagesize); -/** - * @brief Set the maxium of the movable page at a flicking. - * - * @param obj The scroller object - * @param page_limit_h The maxium of the movable horizontal page - * @param page_limit_v The maxium of the movable vertical page - * - * The value of maxium movable page should be more than 1. - * - * @see elm_scroller_page_scroll_limit_get() - * - * @since 1.8 - * - * @ingroup Scroller - */ -EAPI void elm_scroller_page_scroll_limit_set(const Evas_Object *obj, Evas_Coord page_limit_h, Evas_Coord page_limit_v); - -/** - * @brief Get the maxium of the movable page at a flicking. - * - * @param obj The scroller object - * @param page_limit_h The maxium of the movable horizontal page - * @param page_limit_v The maxium of the movable vertical page - * - * @see elm_scroller_page_scroll_limit_set() - * - * @since 1.8 - * - * @ingroup Scroller - */ -EAPI void elm_scroller_page_scroll_limit_get(const Evas_Object *obj, Evas_Coord *page_limit_h, Evas_Coord *page_limit_v); - /** * @brief Get scroll current page number. * @@ -418,34 +386,6 @@ EAPI void elm_scroller_page_bring_in(Evas_Object *obj, */ EAPI void elm_scroller_region_bring_in(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h); -/** - * @brief Set event propagation on a scroller - * - * @param obj The scroller object - * @param propagation If propagation is enabled or not - * - * This enables or disables event propagation from the scroller - * content to the scroller and its parent. By default event - * propagation is @b enabled. - * - * @ingroup Scroller - */ -EAPI void elm_scroller_propagate_events_set(Evas_Object *obj, Eina_Bool propagation); - -/** - * @brief Get event propagation for a scroller - * - * @param obj The scroller object - * @return The propagation state - * - * This gets the event propagation for a scroller. - * - * @see elm_scroller_propagate_events_set() - * - * @ingroup Scroller - */ -EAPI Eina_Bool elm_scroller_propagate_events_get(const Evas_Object *obj); - /** * @brief Set scrolling gravity on a scroller * @@ -521,3 +461,5 @@ EAPI void elm_scroller_movement_block_set(Evas_Object *o * @ingroup Scroller */ EAPI Elm_Scroller_Movement_Block elm_scroller_movement_block_get(const Evas_Object *obj); + +#include "elm_scroller.eo.legacy.h" diff --git a/legacy/elementary/src/lib/elm_segment_control_eo.h b/legacy/elementary/src/lib/elm_segment_control_eo.h index bd6496bd3c..6631b2bebb 100644 --- a/legacy/elementary/src/lib/elm_segment_control_eo.h +++ b/legacy/elementary/src/lib/elm_segment_control_eo.h @@ -1,145 +1 @@ -#include "elm_segment_control.eo.h" - -#if 0 -#define ELM_OBJ_SEGMENT_CONTROL_CLASS elm_obj_segment_control_class_get() - -const Eo_Class *elm_obj_segment_control_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_SEGMENT_CONTROL_BASE_ID; - -enum -{ - ELM_OBJ_SEGMENT_CONTROL_SUB_ID_ITEM_ADD, - ELM_OBJ_SEGMENT_CONTROL_SUB_ID_ITEM_INSERT_AT, - ELM_OBJ_SEGMENT_CONTROL_SUB_ID_ITEM_DEL_AT, - ELM_OBJ_SEGMENT_CONTROL_SUB_ID_ITEM_LABEL_GET, - ELM_OBJ_SEGMENT_CONTROL_SUB_ID_ITEM_ICON_GET, - ELM_OBJ_SEGMENT_CONTROL_SUB_ID_ITEM_COUNT_GET, - ELM_OBJ_SEGMENT_CONTROL_SUB_ID_ITEM_SELECTED_GET, - ELM_OBJ_SEGMENT_CONTROL_SUB_ID_ITEM_GET, - ELM_OBJ_SEGMENT_CONTROL_SUB_ID_LAST -}; - -#define ELM_OBJ_SEGMENT_CONTROL_ID(sub_id) (ELM_OBJ_SEGMENT_CONTROL_BASE_ID + sub_id) - - -/** - * @def elm_obj_segment_control_item_add - * @since 1.8 - * - * Append a new item to the segment control object. - * - * @param[in] icon - * @param[in] label - * @param[out] ret - * - * @see elm_segment_control_item_add - * - * @ingroup SegmentControl - */ -#define elm_obj_segment_control_item_add(icon, label, ret) ELM_OBJ_SEGMENT_CONTROL_ID(ELM_OBJ_SEGMENT_CONTROL_SUB_ID_ITEM_ADD), EO_TYPECHECK(Evas_Object *, icon), EO_TYPECHECK(const char *, label), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_segment_control_item_insert_at - * @since 1.8 - * - * Insert a new item to the segment control object at specified position. - * - * @param[in] icon - * @param[in] label - * @param[in] idx - * @param[out] ret - * - * @see elm_segment_control_item_insert_at - * - * @ingroup SegmentControl - */ -#define elm_obj_segment_control_item_insert_at(icon, label, idx, ret) ELM_OBJ_SEGMENT_CONTROL_ID(ELM_OBJ_SEGMENT_CONTROL_SUB_ID_ITEM_INSERT_AT), EO_TYPECHECK(Evas_Object *, icon), EO_TYPECHECK(const char *, label), EO_TYPECHECK(int, idx), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_segment_control_item_del_at - * @since 1.8 - * - * Remove a segment control item at given index from its parent, - * - * @param[in] idx - * - * @see elm_segment_control_item_del_at - * - * @ingroup SegmentControl - */ -#define elm_obj_segment_control_item_del_at(idx) ELM_OBJ_SEGMENT_CONTROL_ID(ELM_OBJ_SEGMENT_CONTROL_SUB_ID_ITEM_DEL_AT), EO_TYPECHECK(int, idx) - -/** - * @def elm_obj_segment_control_item_label_get - * @since 1.8 - * - * Get the label of item. - * - * @param[in] idx - * @param[out] ret - * - * @see elm_segment_control_item_label_get - * - * @ingroup SegmentControl - */ -#define elm_obj_segment_control_item_label_get(idx, ret) ELM_OBJ_SEGMENT_CONTROL_ID(ELM_OBJ_SEGMENT_CONTROL_SUB_ID_ITEM_LABEL_GET), EO_TYPECHECK(int, idx), EO_TYPECHECK(const char **, ret) - -/** - * @def elm_obj_segment_control_item_icon_get - * @since 1.8 - * - * Get the icon associated to the item. - * - * @param[in] idx - * @param[out] ret - * - * @see elm_segment_control_item_icon_get - * - * @ingroup SegmentControl - */ -#define elm_obj_segment_control_item_icon_get(idx, ret) ELM_OBJ_SEGMENT_CONTROL_ID(ELM_OBJ_SEGMENT_CONTROL_SUB_ID_ITEM_ICON_GET), EO_TYPECHECK(int, idx), EO_TYPECHECK(Evas_Object **, ret) - -/** - * @def elm_obj_segment_control_item_count_get - * @since 1.8 - * - * Get the Segment items count from segment control. - * - * @param[out] ret - * - * @see elm_segment_control_item_count_get - * - * @ingroup SegmentControl - */ -#define elm_obj_segment_control_item_count_get(ret) ELM_OBJ_SEGMENT_CONTROL_ID(ELM_OBJ_SEGMENT_CONTROL_SUB_ID_ITEM_COUNT_GET), EO_TYPECHECK(int *, ret) - -/** - * @def elm_obj_segment_control_item_selected_get - * @since 1.8 - * - * Get the selected item. - * - * @param[out] ret - * - * @see elm_segment_control_item_selected_get - * - * @ingroup SegmentControl - */ -#define elm_obj_segment_control_item_selected_get(ret) ELM_OBJ_SEGMENT_CONTROL_ID(ELM_OBJ_SEGMENT_CONTROL_SUB_ID_ITEM_SELECTED_GET), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_segment_control_item_get - * @since 1.8 - * - * Get the item placed at specified index. - * - * @param[in] idx - * @param[out] ret - * - * @see elm_segment_control_item_get - * - * @ingroup SegmentControl - */ -#define elm_obj_segment_control_item_get(idx, ret) ELM_OBJ_SEGMENT_CONTROL_ID(ELM_OBJ_SEGMENT_CONTROL_SUB_ID_ITEM_GET), EO_TYPECHECK(int, idx), EO_TYPECHECK(Elm_Object_Item **, ret) -#endif +#include "elm_segment_control.eo.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elm_segment_control_legacy.h b/legacy/elementary/src/lib/elm_segment_control_legacy.h index 018dd6213d..6b06deef67 100644 --- a/legacy/elementary/src/lib/elm_segment_control_legacy.h +++ b/legacy/elementary/src/lib/elm_segment_control_legacy.h @@ -11,174 +11,4 @@ */ EAPI Evas_Object *elm_segment_control_add(Evas_Object *parent); -/** - * Append a new item to the segment control object. - * - * @param obj The segment control object. - * @param icon The icon object to use for the left side of the item. An - * icon can be any Evas object, but usually it is an icon created - * with elm_icon_add(). - * @param label The label of the item. - * Note that, NULL is different from empty string "". - * @return The created item or @c NULL upon failure. - * - * A new item will be created and appended to the segment control, i.e., will - * be set as @b last item. - * - * If it should be inserted at another position, - * elm_segment_control_item_insert_at() should be used instead. - * - * Items created with this function can be deleted with function - * elm_object_item_del() or elm_object_item_del_at(). - * - * @note @p label set to @c NULL is different from empty string "". - * If an item - * only has icon, it will be displayed bigger and centered. If it has - * icon and label, even that an empty string, icon will be smaller and - * positioned at left. - * - * Simple example: - * @code - * sc = elm_segment_control_add(win); - * ic = elm_icon_add(win); - * elm_image_file_set(ic, "path/to/image", NULL); - * elm_icon_resizable_set(ic, EINA_TRUE, EINA_TRUE); - * elm_segment_control_item_add(sc, ic, "label"); - * evas_object_show(sc); - * @endcode - * - * @see elm_segment_control_item_insert_at() - * @see elm_object_item_del() - * - * @ingroup SegmentControl - */ -EAPI Elm_Object_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label); - -/** - * Insert a new item to the segment control object at specified position. - * - * @param obj The segment control object. - * @param icon The icon object to use for the left side of the item. An - * icon can be any Evas object, but usually it is an icon created - * with elm_icon_add(). - * @param label The label of the item. - * @param index Item position. Value should be between 0 and items count. - * @return The created item or @c NULL upon failure. - - * Index values must be between @c 0, when item will be prepended to - * segment control, and items count, that can be get with - * elm_segment_control_item_count_get(), case when item will be appended - * to segment control, just like elm_segment_control_item_add(). - * - * Items created with this function can be deleted with function - * elm_object_item_del() or elm_segment_control_item_del_at(). - * - * @note @p label set to @c NULL is different from empty string "". - * If an item - * only has icon, it will be displayed bigger and centered. If it has - * icon and label, even that an empty string, icon will be smaller and - * positioned at left. - * - * @see elm_segment_control_item_add() - * @see elm_segment_control_item_count_get() - * @see elm_object_item_del() - * - * @ingroup SegmentControl - */ -EAPI Elm_Object_Item *elm_segment_control_item_insert_at(Evas_Object *obj, Evas_Object *icon, const char *label, int index); - -/** - * Remove a segment control item at given index from its parent, - * deleting it. - * - * @param obj The segment control object. - * @param index The position of the segment control item to be deleted. - * - * Items can be added with elm_segment_control_item_add() or - * elm_segment_control_item_insert_at(). - * - * @ingroup SegmentControl - */ -EAPI void elm_segment_control_item_del_at(Evas_Object *obj, int index); - -/** - * Get the label of item. - * - * @param obj The segment control object. - * @param index The index of the segment item. - * @return The label of the item at @p index. - * - * The return value is a pointer to the label associated to the item when - * it was created, with function elm_segment_control_item_add(), or later - * with function elm_object_item_text_set. If no label - * was passed as argument, it will return @c NULL. - * - * @see elm_object_item_text_set() for more details. - * @see elm_segment_control_item_add() - * - * @ingroup SegmentControl - */ -EAPI const char *elm_segment_control_item_label_get(const Evas_Object *obj, int index); - -/** - * Get the icon associated to the item. - * - * @param obj The segment control object. - * @param index The index of the segment item. - * @return The left side icon associated to the item at @p index. - * - * The return value is a pointer to the icon associated to the item when - * it was created, with function elm_segment_control_item_add(), or later - * with function elm_object_item_part_content_set(). If no icon - * was passed as argument, it will return @c NULL. - * - * @see elm_segment_control_item_add() - * @see elm_object_item_part_content_set() - * - * @ingroup SegmentControl - */ -EAPI Evas_Object *elm_segment_control_item_icon_get(const Evas_Object *obj, int index); - -/** - * Get the Segment items count from segment control. - * - * @param obj The segment control object. - * @return Segment items count. - * - * It will just return the number of items added to segment control @p obj. - * - * @ingroup SegmentControl - */ -EAPI int elm_segment_control_item_count_get(const Evas_Object *obj); - -/** - * Get the selected item. - * - * @param obj The segment control object. - * @return The selected item or @c NULL if none of segment items is - * selected. - * - * The selected item can be unselected with function - * elm_segment_control_item_selected_set(). - * - * The selected item always will be highlighted on segment control. - * - * @ingroup SegmentControl - */ -EAPI Elm_Object_Item *elm_segment_control_item_selected_get(const Evas_Object *obj); - -/** - * Get the item placed at specified index. - * - * @param obj The segment control object. - * @param index The index of the segment item. - * @return The segment control item or @c NULL on failure. - * - * Index is the position of an item in segment control widget. Its - * range is from @c 0 to count - 1 . - * Count is the number of items, that can be get with - * elm_segment_control_item_count_get(). - * - * @ingroup SegmentControl - */ -EAPI Elm_Object_Item *elm_segment_control_item_get(const Evas_Object *obj, int index); +#include "elm_segment_control.eo.legacy.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elm_separator_eo.h b/legacy/elementary/src/lib/elm_separator_eo.h index 4738873758..d7b1346dfc 100644 --- a/legacy/elementary/src/lib/elm_separator_eo.h +++ b/legacy/elementary/src/lib/elm_separator_eo.h @@ -1,48 +1 @@ -#include "elm_separator.eo.h" - -#if 0 -#define ELM_OBJ_SEPARATOR_CLASS elm_obj_separator_class_get() - -const Eo_Class *elm_obj_separator_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_SEPARATOR_BASE_ID; - -enum -{ - ELM_OBJ_SEPARATOR_SUB_ID_HORIZONTAL_SET, - ELM_OBJ_SEPARATOR_SUB_ID_HORIZONTAL_GET, - ELM_OBJ_SEPARATOR_SUB_ID_LAST -}; - -#define ELM_OBJ_SEPARATOR_ID(sub_id) (ELM_OBJ_SEPARATOR_BASE_ID + sub_id) - - -/** - * @def elm_obj_separator_horizontal_set - * @since 1.8 - * - * @brief Set the horizontal mode of a separator object - * - * @param[in] horizontal - * - * @see elm_separator_horizontal_set - * - * @ingroup Separator - */ -#define elm_obj_separator_horizontal_set(horizontal) ELM_OBJ_SEPARATOR_ID(ELM_OBJ_SEPARATOR_SUB_ID_HORIZONTAL_SET), EO_TYPECHECK(Eina_Bool, horizontal) - -/** - * @def elm_obj_separator_horizontal_get - * @since 1.8 - * - * @brief Get the horizontal mode of a separator object - * - * @param[out] ret - * - * @see elm_separator_horizontal_get - * - * @ingroup Separator - */ -#define elm_obj_separator_horizontal_get(ret) ELM_OBJ_SEPARATOR_ID(ELM_OBJ_SEPARATOR_SUB_ID_HORIZONTAL_GET), EO_TYPECHECK(Eina_Bool *, ret) -#endif - +#include "elm_separator.eo.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elm_separator_legacy.h b/legacy/elementary/src/lib/elm_separator_legacy.h index b9d7604d49..2ab53bb4c1 100644 --- a/legacy/elementary/src/lib/elm_separator_legacy.h +++ b/legacy/elementary/src/lib/elm_separator_legacy.h @@ -9,24 +9,4 @@ */ EAPI Evas_Object *elm_separator_add(Evas_Object *parent); -/** - * @brief Set the horizontal mode of a separator object - * - * @param obj The separator object - * @param horizontal If true, the separator is horizontal - * - * @ingroup Separator - */ -EAPI void elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal); - -/** - * @brief Get the horizontal mode of a separator object - * - * @param obj The separator object - * @return If true, the separator is horizontal - * - * @see elm_separator_horizontal_set() - * - * @ingroup Separator - */ -EAPI Eina_Bool elm_separator_horizontal_get(const Evas_Object *obj); +#include "elm_separator.eo.legacy.h" \ No newline at end of file