From: Yossi Kantor Date: Thu, 10 Apr 2014 06:13:16 +0000 (+0300) Subject: Eolian: Eo header clean and legacy integration. X-Git-Tag: v1.10.0-alpha1~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9012a3ba94385e3e17ca3d9aee0d60b7a061112b;p=platform%2Fupstream%2Felementary.git Eolian: Eo header clean and legacy integration. Elementary Interface File Selector Elementary Multibuttonentry Elementary Naviframe Elementary Inwin Elementary Label Elementary List Elementary Map Elementary Map Buffer Elementary Menu Elementary Notify Elementary Panel --- diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 8f7e8b9..287e86e 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -668,26 +668,36 @@ BUILT_SOURCES = \ elm_interface_fileselector.eo.h \ elm_inwin.eo.c \ elm_inwin.eo.h \ + elm_inwin.eo.legacy.h \ elm_label.eo.c \ elm_label.eo.h \ + elm_label.eo.legacy.h \ elm_list.eo.c \ elm_list.eo.h \ + elm_list.eo.legacy.h \ elm_map_pan.eo.c \ elm_map_pan.eo.h \ elm_map.eo.c \ elm_map.eo.h \ + elm_map.eo.legacy.h \ elm_menu.eo.c \ elm_menu.eo.h \ + elm_menu.eo.legacy.h \ elc_multibuttonentry.eo.c \ elc_multibuttonentry.eo.h \ + elc_multibuttonentry.eo.legacy.h \ elc_naviframe.eo.c \ elc_naviframe.eo.h \ + elc_naviframe.eo.legacy.h \ elm_panel.eo.c \ elm_panel.eo.h \ + elm_panel.eo.legacy.h \ elm_mapbuf.eo.c \ elm_mapbuf.eo.h \ + elm_mapbuf.eo.legacy.h \ elm_notify.eo.c \ elm_notify.eo.h \ + elm_notify.eo.legacy.h \ elm_panes.eo.c \ elm_panes.eo.h \ elm_photocam.eo.c \ @@ -945,4 +955,14 @@ nodist_includesunstable_HEADERS = \ elc_hoversel.eo.legacy.h \ elm_image.eo.legacy.h \ elm_icon.eo.legacy.h \ - elm_index.eo.legacy.h \ No newline at end of file + elm_index.eo.legacy.h \ + elm_inwin.eo.legacy.h \ + elm_label.eo.legacy.h \ + elm_list.eo.legacy.h \ + elm_map.eo.legacy.h \ + elm_menu.eo.legacy.h \ + elc_multibuttonentry.eo.legacy.h \ + 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 diff --git a/src/lib/elc_multibuttonentry_eo.h b/src/lib/elc_multibuttonentry_eo.h index cfe3063..e242848 100644 --- a/src/lib/elc_multibuttonentry_eo.h +++ b/src/lib/elc_multibuttonentry_eo.h @@ -1,308 +1 @@ -#include "elc_multibuttonentry.eo.h" - -#if 0 -#define ELM_OBJ_MULTIBUTTONENTRY_CLASS elm_obj_multibuttonentry_class_get() - -const Eo_Class *elm_obj_multibuttonentry_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_MULTIBUTTONENTRY_BASE_ID; - -enum -{ - ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_ENTRY_GET, - ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_EXPANDED_GET, - ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_EXPANDED_SET, - ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_EDITABLE_SET, - ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_EDITABLE_GET, - ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_ITEM_PREPEND, - ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_ITEM_APPEND, - ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_ITEM_INSERT_BEFORE, - ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_ITEM_INSERT_AFTER, - ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_ITEMS_GET, - ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_FIRST_ITEM_GET, - ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_LAST_ITEM_GET, - ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_SELECTED_ITEM_GET, - ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_CLEAR, - ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_ITEM_FILTER_APPEND, - ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_ITEM_FILTER_PREPEND, - ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_ITEM_FILTER_REMOVE, - ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_FORMAT_FUNCTION_SET, - ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_LAST -}; - -#define ELM_OBJ_MULTIBUTTONENTRY_ID(sub_id) (ELM_OBJ_MULTIBUTTONENTRY_BASE_ID + sub_id) - - -/** - * @def elm_obj_multibuttonentry_entry_get - * @since 1.8 - * - * Get the entry of the multibuttonentry object - * - * @param[out] ret - * - * @see elm_multibuttonentry_entry_get - * - * @ingroup Multibuttonentry - */ -#define elm_obj_multibuttonentry_entry_get(ret) ELM_OBJ_MULTIBUTTONENTRY_ID(ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_ENTRY_GET), EO_TYPECHECK(Evas_Object **, ret) - -/** - * @def elm_obj_multibuttonentry_expanded_get - * @since 1.8 - * - * Get the value of expanded state. - * - * @param[out] ret - * - * @see elm_multibuttonentry_expanded_get - * - * @ingroup Multibuttonentry - */ -#define elm_obj_multibuttonentry_expanded_get(ret) ELM_OBJ_MULTIBUTTONENTRY_ID(ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_EXPANDED_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_multibuttonentry_expanded_set - * @since 1.8 - * - * Set/Unset the multibuttonentry to expanded state. - * - * @param[in] expanded - * - * @see elm_multibuttonentry_expanded_set - * - * @ingroup Multibuttonentry - */ -#define elm_obj_multibuttonentry_expanded_set(expanded) ELM_OBJ_MULTIBUTTONENTRY_ID(ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_EXPANDED_SET), EO_TYPECHECK(Eina_Bool, expanded) - -/** - * @def elm_obj_multibuttonentry_editable_set - * @since 1.8 - * - * Sets if the multibuttonentry is to be editable or not. - * - * @param[in] editable - * - * @see elm_multibuttonentry_editable_set - * - * @ingroup Multibuttonentry - */ -#define elm_obj_multibuttonentry_editable_set(editable) ELM_OBJ_MULTIBUTTONENTRY_ID(ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_EDITABLE_SET), EO_TYPECHECK(Eina_Bool, editable) - -/** - * @def elm_obj_multibuttonentry_editable_get - * @since 1.8 - * - * Get whether the multibuttonentry is editable or not. - * - * @param[out] ret - * - * @see elm_multibuttonentry_editable_get - * - * @ingroup Multibuttonentry - */ -#define elm_obj_multibuttonentry_editable_get(ret) ELM_OBJ_MULTIBUTTONENTRY_ID(ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_EDITABLE_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_multibuttonentry_item_prepend - * @since 1.8 - * - * Prepend a new item to the multibuttonentry - * - * @param[in] label - * @param[in] func - * @param[in] data - * @param[out] ret - * - * @see elm_multibuttonentry_item_prepend - * - * @ingroup Multibuttonentry - */ -#define elm_obj_multibuttonentry_item_prepend(label, func, data, ret) ELM_OBJ_MULTIBUTTONENTRY_ID(ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_ITEM_PREPEND), EO_TYPECHECK(const char *, label), EO_TYPECHECK(Evas_Smart_Cb, func), EO_TYPECHECK(void *, data), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_multibuttonentry_item_append - * @since 1.8 - * - * Append a new item to the multibuttonentry - * - * @param[in] label - * @param[in] func - * @param[in] data - * @param[out] ret - * - * @see elm_multibuttonentry_item_append - * - * @ingroup Multibuttonentry - */ -#define elm_obj_multibuttonentry_item_append(label, func, data, ret) ELM_OBJ_MULTIBUTTONENTRY_ID(ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_ITEM_APPEND), EO_TYPECHECK(const char *, label), EO_TYPECHECK(Evas_Smart_Cb, func), EO_TYPECHECK(void *, data), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_multibuttonentry_item_insert_before - * @since 1.8 - * - * Add a new item to the multibuttonentry before the indicated object - * - * @param[in] before - * @param[in] label - * @param[in] func - * @param[in] data - * @param[out] ret - * - * @see elm_multibuttonentry_item_insert_before - * - * @ingroup Multibuttonentry - */ -#define elm_obj_multibuttonentry_item_insert_before(before, label, func, data, ret) ELM_OBJ_MULTIBUTTONENTRY_ID(ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_ITEM_INSERT_BEFORE), EO_TYPECHECK(Elm_Object_Item *, before), EO_TYPECHECK(const char *, label), EO_TYPECHECK(Evas_Smart_Cb, func), EO_TYPECHECK(void *, data), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_multibuttonentry_item_insert_after - * @since 1.8 - * - * Add a new item to the multibuttonentry after the indicated object - * - * @param[in] after - * @param[in] label - * @param[in] func - * @param[in] data - * @param[out] ret - * - * @see elm_multibuttonentry_item_insert_after - * - * @ingroup Multibuttonentry - */ -#define elm_obj_multibuttonentry_item_insert_after(after, label, func, data, ret) ELM_OBJ_MULTIBUTTONENTRY_ID(ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_ITEM_INSERT_AFTER), EO_TYPECHECK(Elm_Object_Item *, after), EO_TYPECHECK(const char *, label), EO_TYPECHECK(Evas_Smart_Cb, func), EO_TYPECHECK(void *, data), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_multibuttonentry_items_get - * @since 1.8 - * - * Get a list of items in the multibuttonentry - * - * @param[out] ret - * - * @see elm_multibuttonentry_items_get - * - * @ingroup Multibuttonentry - */ -#define elm_obj_multibuttonentry_items_get(ret) ELM_OBJ_MULTIBUTTONENTRY_ID(ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_ITEMS_GET), EO_TYPECHECK(const Eina_List **, ret) - -/** - * @def elm_obj_multibuttonentry_first_item_get - * @since 1.8 - * - * Get the first item in the multibuttonentry - * - * @param[out] ret - * - * @see elm_multibuttonentry_first_item_get - * - * @ingroup Multibuttonentry - */ -#define elm_obj_multibuttonentry_first_item_get(ret) ELM_OBJ_MULTIBUTTONENTRY_ID(ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_FIRST_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_multibuttonentry_last_item_get - * @since 1.8 - * - * Get the last item in the multibuttonentry - * - * @param[out] ret - * - * @see elm_multibuttonentry_last_item_get - * - * @ingroup Multibuttonentry - */ -#define elm_obj_multibuttonentry_last_item_get(ret) ELM_OBJ_MULTIBUTTONENTRY_ID(ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_LAST_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_multibuttonentry_selected_item_get - * @since 1.8 - * - * Get the selected item in the multibuttonentry - * - * @param[out] ret - * - * @see elm_multibuttonentry_selected_item_get - * - * @ingroup Multibuttonentry - */ -#define elm_obj_multibuttonentry_selected_item_get(ret) ELM_OBJ_MULTIBUTTONENTRY_ID(ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_SELECTED_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_multibuttonentry_clear - * @since 1.8 - * - * Remove all items in the multibuttonentry. - * - * - * @see elm_multibuttonentry_clear - * - * @ingroup Multibuttonentry - */ -#define elm_obj_multibuttonentry_clear() ELM_OBJ_MULTIBUTTONENTRY_ID(ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_CLEAR) - -/** - * @def elm_obj_multibuttonentry_item_filter_append - * @since 1.8 - * - * Append an item filter function for text inserted in the Multibuttonentry - * - * @param[in] func - * @param[in] data - * - * @see elm_multibuttonentry_item_filter_append - * - * @ingroup Multibuttonentry - */ -#define elm_obj_multibuttonentry_item_filter_append(func, data) ELM_OBJ_MULTIBUTTONENTRY_ID(ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_ITEM_FILTER_APPEND), EO_TYPECHECK(Elm_Multibuttonentry_Item_Filter_Cb, func), EO_TYPECHECK(void *, data) - -/** - * @def elm_obj_multibuttonentry_item_filter_prepend - * @since 1.8 - * - * Prepend a filter function for text inserted in the Multibuttonentry - * - * @param[in] func - * @param[in] data - * - * @see elm_multibuttonentry_item_filter_prepend - * - * @ingroup Multibuttonentry - */ -#define elm_obj_multibuttonentry_item_filter_prepend(func, data) ELM_OBJ_MULTIBUTTONENTRY_ID(ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_ITEM_FILTER_PREPEND), EO_TYPECHECK(Elm_Multibuttonentry_Item_Filter_Cb, func), EO_TYPECHECK(void *, data) - -/** - * @def elm_obj_multibuttonentry_item_filter_remove - * @since 1.8 - * - * Remove a filter from the list - * - * @param[in] func - * @param[in] data - * - * @see elm_multibuttonentry_item_filter_remove - * - * @ingroup Multibuttonentry - */ -#define elm_obj_multibuttonentry_item_filter_remove(func, data) ELM_OBJ_MULTIBUTTONENTRY_ID(ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_ITEM_FILTER_REMOVE), EO_TYPECHECK(Elm_Multibuttonentry_Item_Filter_Cb, func), EO_TYPECHECK(void *, data) - -/** - * @def elm_obj_multibuttonentry_format_function_set - * @since 1.9 - * - * Set a function to format the string that will be used to display - * the hidden items counter. - * - * @param[in] format_function The actual format function - * @param[in] data User data to passed to @a format_function - * - * If @a format_function is @c NULL, the default format will be used, - * which is @c "... + %d". - * - * @see elm_multibuttonentry_format_function_set - * - * @ingroup Multibuttonentry - */ -#define elm_obj_multibuttonentry_format_function_set(format_function, data) ELM_OBJ_MULTIBUTTONENTRY_ID(ELM_OBJ_MULTIBUTTONENTRY_SUB_ID_FORMAT_FUNCTION_SET), EO_TYPECHECK(Elm_Multibuttonentry_Format_Cb, format_function), EO_TYPECHECK(const void *, data) -#endif +#include "elc_multibuttonentry.eo.h" \ No newline at end of file diff --git a/src/lib/elc_multibuttonentry_legacy.h b/src/lib/elc_multibuttonentry_legacy.h index e96db0c..f9ab282 100644 --- a/src/lib/elc_multibuttonentry_legacy.h +++ b/src/lib/elc_multibuttonentry_legacy.h @@ -10,145 +10,6 @@ EAPI Evas_Object *elm_multibuttonentry_add(Evas_Object *parent); /** - * Get the entry of the multibuttonentry object - * - * @param obj The multibuttonentry object - * @return The entry object, or NULL if none - * - * @ingroup Multibuttonentry - */ -EAPI Evas_Object *elm_multibuttonentry_entry_get(const Evas_Object *obj); - -/** - * Get the value of expanded state. - * In expanded state, the complete entry will be displayed. - * Otherwise, only single line of the entry will be displayed. - * - * @param obj The multibuttonentry object - * @return @c EINA_TRUE if the widget is in expanded state. @c EINA_FALSE if not. - * - * @ingroup Multibuttonentry - */ -EAPI Eina_Bool elm_multibuttonentry_expanded_get(const Evas_Object *obj); - -/** - * Set/Unset the multibuttonentry to expanded state. - * In expanded state, the complete entry will be displayed. - * Otherwise, only single line of the entry will be displayed. - * - * @param obj The multibuttonentry object - * @param expanded the value of expanded state. - * Set this to @c EINA_TRUE for expanded state. - * Set this to EINA_FALSE for single line state. - * - * @ingroup Multibuttonentry - */ -EAPI void elm_multibuttonentry_expanded_set(Evas_Object *obj, Eina_Bool expanded); - -/** - * Prepend a new item to the multibuttonentry - * - * @param obj The multibuttonentry object - * @param label The label of new item - * @param func The callback function to be invoked when this item is pressed. - * @param data The pointer to the data to be attached - * @return A handle to the item added or NULL if not possible - * - * @see Use elm_object_item_del() to delete the item. - * - * @ingroup Multibuttonentry - */ -EAPI Elm_Object_Item *elm_multibuttonentry_item_prepend(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data); - -/** - * Append a new item to the multibuttonentry - * - * @param obj The multibuttonentry object - * @param label The label of new item - * @param func The callback function to be invoked when this item is pressed. - * @param data The pointer to the data to be attached - * @return A handle to the item added or NULL if not possible - * - * @see Use elm_object_item_del() to delete the item. - * - * @ingroup Multibuttonentry - */ -EAPI Elm_Object_Item *elm_multibuttonentry_item_append(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data); - -/** - * Add a new item to the multibuttonentry before the indicated object - * - * reference. - * @param obj The multibuttonentry object - * @param before The item before which to add it - * @param label The label of new item - * @param func The callback function to be invoked when this item is pressed. - * @param data The pointer to the data to be attached - * @return A handle to the item added or NULL if not possible - * - * @see Use elm_object_item_del() to delete the item. - * - * @ingroup Multibuttonentry - */ -EAPI Elm_Object_Item *elm_multibuttonentry_item_insert_before(Evas_Object *obj, Elm_Object_Item *before, const char *label, Evas_Smart_Cb func, void *data); - -/** - * Add a new item to the multibuttonentry after the indicated object - * - * @param obj The multibuttonentry object - * @param after The item after which to add it - * @param label The label of new item - * @param func The callback function to be invoked when this item is pressed. - * @param data The pointer to the data to be attached - * @return A handle to the item added or NULL if not possible - * - * @see Use elm_object_item_del() to delete the item. - * - * @ingroup Multibuttonentry - */ -EAPI Elm_Object_Item *elm_multibuttonentry_item_insert_after(Evas_Object *obj, Elm_Object_Item *after, const char *label, Evas_Smart_Cb func, void *data); - -/** - * Get a list of items in the multibuttonentry - * - * @param obj The multibuttonentry object - * @return The list of items, or NULL if none - * - * @ingroup Multibuttonentry - */ -EAPI const Eina_List *elm_multibuttonentry_items_get(const Evas_Object *obj); - -/** - * Get the first item in the multibuttonentry - * - * @param obj The multibuttonentry object - * @return The first item, or NULL if none - * - * @ingroup Multibuttonentry - */ -EAPI Elm_Object_Item *elm_multibuttonentry_first_item_get(const Evas_Object *obj); - -/** - * Get the last item in the multibuttonentry - * - * @param obj The multibuttonentry object - * @return The last item, or NULL if none - * - * @ingroup Multibuttonentry - */ -EAPI Elm_Object_Item *elm_multibuttonentry_last_item_get(const Evas_Object *obj); - -/** - * Get the selected item in the multibuttonentry - * - * @param obj The multibuttonentry object - * @return The selected item, or NULL if none - * - * @ingroup Multibuttonentry - */ -EAPI Elm_Object_Item *elm_multibuttonentry_selected_item_get(const Evas_Object *obj); - -/** * Set the selected state of an item * * @param it The item @@ -158,7 +19,6 @@ EAPI Elm_Object_Item *elm_multibuttonentry_selected_item_get(const Evas_Object * */ EAPI void elm_multibuttonentry_item_selected_set(Elm_Object_Item *it, Eina_Bool selected); - /** * Get the selected state of an item * @@ -170,15 +30,6 @@ EAPI void elm_multibuttonentry_item_selected_set(Elm_Objec EAPI Eina_Bool elm_multibuttonentry_item_selected_get(const Elm_Object_Item *it); /** - * Remove all items in the multibuttonentry. - * - * @param obj The multibuttonentry object - * - * @ingroup Multibuttonentry - */ -EAPI void elm_multibuttonentry_clear(Evas_Object *obj); - -/** * Get the previous item in the multibuttonentry * * @param it The item @@ -198,94 +49,4 @@ EAPI Elm_Object_Item *elm_multibuttonentry_item_prev_get(const Elm_Object_Item * */ EAPI Elm_Object_Item *elm_multibuttonentry_item_next_get(const Elm_Object_Item *it); -/** - * Append an item filter function for text inserted in the Multibuttonentry - * - * Append the given callback to the list. This functions will be called - * whenever any text is inserted into the Multibuttonentry, with the text to be inserted - * as a parameter. The callback function is free to alter the text in any way - * it wants, but it must remember to free the given pointer and update it. - * If the new text is to be discarded, the function can free it and set it text - * parameter to NULL. This will also prevent any following filters from being - * called. - * - * @param obj The multibuttonentry object - * @param func The function to use as item filter - * @param data User data to pass to @p func - * - * @ingroup Multibuttonentry - */ -EAPI void elm_multibuttonentry_item_filter_append(Evas_Object *obj, Elm_Multibuttonentry_Item_Filter_Cb func, void *data); - -/** - * Prepend a filter function for text inserted in the Multibuttonentry - * - * Prepend the given callback to the list. See elm_multibuttonentry_item_filter_append() - * for more information - * - * @param obj The multibuttonentry object - * @param func The function to use as text filter - * @param data User data to pass to @p func - * - * @ingroup Multibuttonentry - */ -EAPI void elm_multibuttonentry_item_filter_prepend(Evas_Object *obj, Elm_Multibuttonentry_Item_Filter_Cb func, void *data); - -/** - * Remove a filter from the list - * - * Removes the given callback from the filter list. See elm_multibuttonentry_item_filter_append() - * for more information. - * - * @param obj The multibuttonentry object - * @param func The filter function to remove - * @param data The user data passed when adding the function - * - * @ingroup Multibuttonentry - */ -EAPI void elm_multibuttonentry_item_filter_remove(Evas_Object *obj, Elm_Multibuttonentry_Item_Filter_Cb func, void *data); - -/** - * Set a function to format the string that will be used to display - * the hidden items counter. - * - * @param[in] obj The multi button entry to get format function changed - * @param[in] format_function The actual format function - * @param[in] data User data to passed to @a format_function - * - * If @a format_function is @c NULL, the default format will be used, - * which is @c "... + %d". - * - * @see elm_multibuttonentry_format_function_set - * @since 1.9 - * - * @ingroup Multibuttonentry - */ -EAPI void -elm_multibuttonentry_format_function_set(Evas_Object *obj, - Elm_Multibuttonentry_Format_Cb f_func, - const void *data); - -/** - * Sets if the multibuttonentry is to be editable or not. - * - * @param obj The multibuttonentry object - * @param editable If @c EINA_TRUE, user can add/delete item in multibuttonentry, if not, the multibuttonentry is non-editable. - * - * @ingroup Multibuttonentry - * - * @since 1.7 - */ -EAPI void elm_multibuttonentry_editable_set(Evas_Object *obj, Eina_Bool editable); - -/** - * Get whether the multibuttonentry is editable or not. - * - * @param obj The multibuttonentry object - * @return @c EINA_TRUE if the multibuttonentry is editable by the user. @c EINA_FALSE if not. - * - * @ingroup Multibuttonentry - * - * @since 1.7 - */ -EAPI Eina_Bool elm_multibuttonentry_editable_get(const Evas_Object *obj); +#include "elc_multibuttonentry.eo.legacy.h" \ No newline at end of file diff --git a/src/lib/elc_naviframe_eo.h b/src/lib/elc_naviframe_eo.h index cfb27b6..42336c8 100644 --- a/src/lib/elc_naviframe_eo.h +++ b/src/lib/elc_naviframe_eo.h @@ -3,221 +3,9 @@ * * @{ */ -#include "elc_naviframe.eo.h" -#if 0 -#define ELM_OBJ_NAVIFRAME_CLASS elm_obj_naviframe_class_get() - -const Eo_Class *elm_obj_naviframe_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_NAVIFRAME_BASE_ID; - -enum -{ - ELM_OBJ_NAVIFRAME_SUB_ID_ITEM_PUSH, - ELM_OBJ_NAVIFRAME_SUB_ID_ITEM_INSERT_BEFORE, - ELM_OBJ_NAVIFRAME_SUB_ID_ITEM_INSERT_AFTER, - ELM_OBJ_NAVIFRAME_SUB_ID_ITEM_POP, - ELM_OBJ_NAVIFRAME_SUB_ID_ITEM_SIMPLE_PROMOTE, - ELM_OBJ_NAVIFRAME_SUB_ID_CONTENT_PRESERVE_ON_POP_SET, - ELM_OBJ_NAVIFRAME_SUB_ID_CONTENT_PRESERVE_ON_POP_GET, - ELM_OBJ_NAVIFRAME_SUB_ID_TOP_ITEM_GET, - ELM_OBJ_NAVIFRAME_SUB_ID_BOTTOM_ITEM_GET, - ELM_OBJ_NAVIFRAME_SUB_ID_PREV_BTN_AUTO_PUSHED_SET, - ELM_OBJ_NAVIFRAME_SUB_ID_PREV_BTN_AUTO_PUSHED_GET, - ELM_OBJ_NAVIFRAME_SUB_ID_ITEMS_GET, - ELM_OBJ_NAVIFRAME_SUB_ID_EVENT_ENABLED_SET, - ELM_OBJ_NAVIFRAME_SUB_ID_EVENT_ENABLED_GET, - ELM_OBJ_NAVIFRAME_SUB_ID_LAST -}; - -#define ELM_OBJ_NAVIFRAME_ID(sub_id) (ELM_OBJ_NAVIFRAME_BASE_ID + sub_id) - - -/** - * @def elm_obj_naviframe_item_push - * @since 1.8 - * - * @brief Push a new item to the top of the naviframe stack (and show it). - * - * @param[in] title_label - * @param[in] prev_btn - * @param[in] next_btn - * @param[in] content - * @param[in] item_style - * @param[out] ret - * - * @see elm_naviframe_item_push - */ -#define elm_obj_naviframe_item_push(title_label, prev_btn, next_btn, content, item_style, ret) ELM_OBJ_NAVIFRAME_ID(ELM_OBJ_NAVIFRAME_SUB_ID_ITEM_PUSH), EO_TYPECHECK(const char *, title_label), EO_TYPECHECK(Evas_Object *, prev_btn), EO_TYPECHECK(Evas_Object *, next_btn), EO_TYPECHECK(Evas_Object *, content), EO_TYPECHECK(const char *, item_style), EO_TYPECHECK(Elm_Object_Item **, ret) -/** - * @def elm_obj_naviframe_item_insert_before - * @since 1.8 - * - * @brief Insert a new item into the naviframe before item before. - * - * @param[in] before - * @param[in] title_label - * @param[in] prev_btn - * @param[in] next_btn - * @param[in] content - * @param[in] item_style - * @param[out] ret - * - * @see elm_naviframe_item_insert_before - */ -#define elm_obj_naviframe_item_insert_before(before, title_label, prev_btn, next_btn, content, item_style, ret) ELM_OBJ_NAVIFRAME_ID(ELM_OBJ_NAVIFRAME_SUB_ID_ITEM_INSERT_BEFORE), EO_TYPECHECK(Elm_Object_Item *, before), EO_TYPECHECK(const char *, title_label), EO_TYPECHECK(Evas_Object *, prev_btn), EO_TYPECHECK(Evas_Object *, next_btn), EO_TYPECHECK(Evas_Object *, content), EO_TYPECHECK(const char *, item_style), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_naviframe_item_insert_after - * @since 1.8 - * - * @brief Insert a new item into the naviframe after item after. - * - * @param[in] after - * @param[in] title_label - * @param[in] prev_btn - * @param[in] next_btn - * @param[in] content - * @param[in] item_style - * @param[out] ret - * - * @see elm_naviframe_item_insert_after - */ -#define elm_obj_naviframe_item_insert_after(after, title_label, prev_btn, next_btn, content, item_style, ret) ELM_OBJ_NAVIFRAME_ID(ELM_OBJ_NAVIFRAME_SUB_ID_ITEM_INSERT_AFTER), EO_TYPECHECK(Elm_Object_Item *, after), EO_TYPECHECK(const char *, title_label), EO_TYPECHECK(Evas_Object *, prev_btn), EO_TYPECHECK(Evas_Object *, next_btn), EO_TYPECHECK(Evas_Object *, content), EO_TYPECHECK(const char *, item_style), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_naviframe_item_pop - * @since 1.8 - * - * @brief Pop an item that is on top of the stack - * - * @param[out] ret - * - * @see elm_naviframe_item_pop - */ -#define elm_obj_naviframe_item_pop(ret) ELM_OBJ_NAVIFRAME_ID(ELM_OBJ_NAVIFRAME_SUB_ID_ITEM_POP), EO_TYPECHECK(Evas_Object **, ret) - -/** - * @def elm_obj_naviframe_item_simple_promote - * @since 1.8 - * - * @brief Simple version of item_promote. - * - * @param[in] content - * - * @see elm_naviframe_item_simple_promote - */ -#define elm_obj_naviframe_item_simple_promote(content) ELM_OBJ_NAVIFRAME_ID(ELM_OBJ_NAVIFRAME_SUB_ID_ITEM_SIMPLE_PROMOTE), EO_TYPECHECK(Evas_Object *, content) - -/** - * @def elm_obj_naviframe_content_preserve_on_pop_set - * @since 1.8 - * - * @brief preserve the content objects when items are popped. - * - * @param[in] preserve - * - * @see elm_naviframe_content_preserve_on_pop_set - */ -#define elm_obj_naviframe_content_preserve_on_pop_set(preserve) ELM_OBJ_NAVIFRAME_ID(ELM_OBJ_NAVIFRAME_SUB_ID_CONTENT_PRESERVE_ON_POP_SET), EO_TYPECHECK(Eina_Bool, preserve) - -/** - * @def elm_obj_naviframe_content_preserve_on_pop_get - * @since 1.8 - * - * @brief Get a value whether preserve mode is enabled or not. - * - * @param[out] ret - * - * @see elm_naviframe_content_preserve_on_pop_get - */ -#define elm_obj_naviframe_content_preserve_on_pop_get(ret) ELM_OBJ_NAVIFRAME_ID(ELM_OBJ_NAVIFRAME_SUB_ID_CONTENT_PRESERVE_ON_POP_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_naviframe_top_item_get - * @since 1.8 - * - * @brief Get a top item on the naviframe stack - * - * @param[out] ret - * - * @see elm_naviframe_top_item_get - */ -#define elm_obj_naviframe_top_item_get(ret) ELM_OBJ_NAVIFRAME_ID(ELM_OBJ_NAVIFRAME_SUB_ID_TOP_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_naviframe_bottom_item_get - * @since 1.8 - * - * @brief Get a bottom item on the naviframe stack - * - * @param[out] ret - * - * @see elm_naviframe_bottom_item_get - */ -#define elm_obj_naviframe_bottom_item_get(ret) ELM_OBJ_NAVIFRAME_ID(ELM_OBJ_NAVIFRAME_SUB_ID_BOTTOM_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_naviframe_prev_btn_auto_pushed_set - * @since 1.8 - * - * @brief Set creating prev button automatically or not - * - * @param[in] auto_pushed - * - * @see elm_naviframe_prev_btn_auto_pushed_set - */ -#define elm_obj_naviframe_prev_btn_auto_pushed_set(auto_pushed) ELM_OBJ_NAVIFRAME_ID(ELM_OBJ_NAVIFRAME_SUB_ID_PREV_BTN_AUTO_PUSHED_SET), EO_TYPECHECK(Eina_Bool, auto_pushed) - -/** - * @def elm_obj_naviframe_prev_btn_auto_pushed_get - * @since 1.8 - * - * @brief Get a value whether prev button(back button) will be auto pushed or - * - * @param[out] ret - * - * @see elm_naviframe_prev_btn_auto_pushed_get - */ -#define elm_obj_naviframe_prev_btn_auto_pushed_get(ret) ELM_OBJ_NAVIFRAME_ID(ELM_OBJ_NAVIFRAME_SUB_ID_PREV_BTN_AUTO_PUSHED_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_naviframe_items_get - * @since 1.8 - * - * @brief Get a list of all the naviframe items. - * - * @param[out] ret - * - * @see elm_naviframe_items_get - */ -#define elm_obj_naviframe_items_get(ret) ELM_OBJ_NAVIFRAME_ID(ELM_OBJ_NAVIFRAME_SUB_ID_ITEMS_GET), EO_TYPECHECK(Eina_List **, ret) - -/** - * @def elm_obj_naviframe_event_enabled_set - * @since 1.8 - * - * @brief Set the event enabled when pushing/popping items - * - * @param[in] enabled - * - * @see elm_naviframe_event_enabled_set - */ -#define elm_obj_naviframe_event_enabled_set(enabled) ELM_OBJ_NAVIFRAME_ID(ELM_OBJ_NAVIFRAME_SUB_ID_EVENT_ENABLED_SET), EO_TYPECHECK(Eina_Bool, enabled) +#include "elc_naviframe.eo.h" /** - * @def elm_obj_naviframe_event_enabled_get - * @since 1.8 - * - * @brief Get the value of event enabled status. - * - * @param[out] ret - * - * @see elm_naviframe_event_enabled_get - */ -#define elm_obj_naviframe_event_enabled_get(ret) ELM_OBJ_NAVIFRAME_ID(ELM_OBJ_NAVIFRAME_SUB_ID_EVENT_ENABLED_GET), EO_TYPECHECK(Eina_Bool *, ret) -#endif -/** * @} */ diff --git a/src/lib/elc_naviframe_legacy.h b/src/lib/elc_naviframe_legacy.h index 2921205..2357881 100644 --- a/src/lib/elc_naviframe_legacy.h +++ b/src/lib/elc_naviframe_legacy.h @@ -1,238 +1 @@ -/** - * @brief Push a new item to the top of the naviframe stack (and show it). - * - * @param obj The naviframe object - * @param title_label The label in the title area. The name of the title - * label part is "elm.text.title" - * @param prev_btn The button to go to the previous item. If it is NULL, - * then naviframe will create a back button automatically. The name of - * the prev_btn part is "elm.swallow.prev_btn" - * @param next_btn The button to go to the next item. Or It could be just an - * extra function button. The name of the next_btn part is - * "elm.swallow.next_btn" - * @param content The main content object. The name of content part is - * "elm.swallow.content" - * @param item_style The current item style name. @c NULL would be default. - * @return The created item or @c NULL upon failure. - * - * The item pushed becomes one page of the naviframe, this item will be - * deleted when it is popped. - * - * @see also elm_naviframe_item_style_set() - * @see also elm_naviframe_item_insert_before() - * @see also elm_naviframe_item_insert_after() - * - * The following styles are available for this item: - * @li @c "default" - * - * @ingroup Naviframe - */ -EAPI Elm_Object_Item *elm_naviframe_item_push(Evas_Object *obj, const char *title_label, Evas_Object *prev_btn, Evas_Object *next_btn, Evas_Object *content, const char *item_style); - -/** - * @brief Insert a new item into the naviframe before item @p before. - * - * @param obj The naviframe object - * @param before The naviframe item to insert before. - * @param title_label The label in the title area. The name of the title - * label part is "elm.text.title" - * @param prev_btn The button to go to the previous item. If it is NULL, - * then naviframe will create a back button automatically. The name of - * the prev_btn part is "elm.swallow.prev_btn" - * @param next_btn The button to go to the next item. Or It could be just an - * extra function button. The name of the next_btn part is - * "elm.swallow.next_btn" - * @param content The main content object. The name of content part is - * "elm.swallow.content" - * @param item_style The current item style name. @c NULL would be default. - * @return The created item or @c NULL upon failure. - * - * The item is inserted into the naviframe straight away without any - * transition operations. This item will be deleted when it is popped. - * - * @see also elm_naviframe_item_style_set() - * @see also elm_naviframe_item_push() - * @see also elm_naviframe_item_insert_after() - * - * The following styles are available for this item: - * @li @c "default" - * - * @ingroup Naviframe - */ -EAPI Elm_Object_Item *elm_naviframe_item_insert_before(Evas_Object *obj, Elm_Object_Item *before, const char *title_label, Evas_Object *prev_btn, Evas_Object *next_btn, Evas_Object *content, const char *item_style); - -/** - * @brief Insert a new item into the naviframe after item @p after. - * - * @param obj The naviframe object - * @param after The naviframe item to insert after. - * @param title_label The label in the title area. The name of the title - * label part is "elm.text.title" - * @param prev_btn The button to go to the previous item. If it is NULL, - * then naviframe will create a back button automatically. The name of - * the prev_btn part is "elm.swallow.prev_btn" - * @param next_btn The button to go to the next item. Or It could be just an - * extra function button. The name of the next_btn part is - * "elm.swallow.next_btn" - * @param content The main content object. The name of content part is - * "elm.swallow.content" - * @param item_style The current item style name. @c NULL would be default. - * @return The created item or @c NULL upon failure. - * - * The item is inserted into the naviframe straight away without any - * transition operations. This item will be deleted when it is popped. - * - * @see also elm_naviframe_item_style_set() - * @see also elm_naviframe_item_push() - * @see also elm_naviframe_item_insert_before() - * - * The following styles are available for this item: - * @li @c "default" - * - * @ingroup Naviframe - */ -EAPI Elm_Object_Item *elm_naviframe_item_insert_after(Evas_Object *obj, Elm_Object_Item *after, const char *title_label, Evas_Object *prev_btn, Evas_Object *next_btn, Evas_Object *content, const char *item_style); - -/** - * @brief Pop an item that is on top of the stack - * - * @param obj The naviframe object - * @return @c NULL or the content object(if the - * elm_naviframe_content_preserve_on_pop_get is true). - * - * This pops an item that is on the top(visible) of the naviframe, makes it - * disappear, then deletes the item. The item that was underneath it on the - * stack will become visible. - * - * @see also elm_naviframe_content_preserve_on_pop_get() - * @see also elm_naviframe_item_pop_cb_set() - * - * @ingroup Naviframe - */ -EAPI Evas_Object *elm_naviframe_item_pop(Evas_Object *obj); - -/** - * @brief Simple version of item_promote. - * - * @see elm_naviframe_item_promote - */ -EAPI void elm_naviframe_item_simple_promote(Evas_Object *obj, Evas_Object *content); - -/** - * @brief preserve the content objects when items are popped. - * - * @param obj The naviframe object - * @param preserve Enable the preserve mode if @c EINA_TRUE, disable otherwise - * - * @see also elm_naviframe_content_preserve_on_pop_get() - * - * @ingroup Naviframe - */ -EAPI void elm_naviframe_content_preserve_on_pop_set(Evas_Object *obj, Eina_Bool preserve); - -/** - * @brief Get a value whether preserve mode is enabled or not. - * - * @param obj The naviframe object - * @return If @c EINA_TRUE, preserve mode is enabled - * - * @see also elm_naviframe_content_preserve_on_pop_set() - * - * @ingroup Naviframe - */ -EAPI Eina_Bool elm_naviframe_content_preserve_on_pop_get(const Evas_Object *obj); - -/** - * @brief Get a top item on the naviframe stack - * - * @param obj The naviframe object - * @return The top item on the naviframe stack or @c NULL, if the stack is - * empty - * - * @ingroup Naviframe - */ -EAPI Elm_Object_Item *elm_naviframe_top_item_get(const Evas_Object *obj); - -/** - * @brief Get a bottom item on the naviframe stack - * - * @param obj The naviframe object - * @return The bottom item on the naviframe stack or @c NULL, if the stack is - * empty - * - * @ingroup Naviframe - */ -EAPI Elm_Object_Item *elm_naviframe_bottom_item_get(const Evas_Object *obj); - -/** - * @brief Set creating prev button automatically or not - * - * @param obj The naviframe object - * @param auto_pushed If @c EINA_TRUE, the previous button(back button) will - * be created internally when you pass the @c NULL to the prev_btn - * parameter in elm_naviframe_item_push - * - * @see also elm_naviframe_item_push() - * - * @ingroup Naviframe - */ -EAPI void elm_naviframe_prev_btn_auto_pushed_set(Evas_Object *obj, Eina_Bool auto_pushed); - -/** - * @brief Get a value whether prev button(back button) will be auto pushed or - * not. - * - * @param obj The naviframe object - * @return If @c EINA_TRUE, prev button will be auto pushed. - * - * @see also elm_naviframe_item_push() - * elm_naviframe_prev_btn_auto_pushed_set() - * - * @ingroup Naviframe - */ -EAPI Eina_Bool elm_naviframe_prev_btn_auto_pushed_get(const Evas_Object *obj); - -/** - * @brief Get a list of all the naviframe items. - * - * @param obj The naviframe object - * @return An Eina_List of naviframe items, #Elm_Object_Item, - * or @c NULL on failure. - * @note The returned list MUST be freed. - * - * @ingroup Naviframe - */ -EAPI Eina_List *elm_naviframe_items_get(const Evas_Object *obj) EINA_MALLOC EINA_WARN_UNUSED_RESULT; - -/** - * @brief Set the event enabled when pushing/popping items - * - * If @p enabled is @c EINA_TRUE, the contents of the naviframe item will - * receives events from mouse and keyboard during view changing such as - * item push/pop. - * - * @param obj The naviframe object - * @param enabled Events are received when enabled is @c EINA_TRUE, and - * ignored otherwise. - * - * @warning Events will be blocked by calling evas_object_freeze_events_set() - * internally. So don't call the API whiling pushing/popping items. - * - * @see elm_naviframe_event_enabled_get() - * @see evas_object_freeze_events_set() - * - * @ingroup Naviframe - */ -EAPI void elm_naviframe_event_enabled_set(Evas_Object *obj, Eina_Bool enabled); - -/** - * @brief Get the value of event enabled status. - * - * @param obj The naviframe object - * @return @c EINA_TRUE, when event is enabled - * - * @see elm_naviframe_event_enabled_set() - * - * @ingroup Naviframe - */ -EAPI Eina_Bool elm_naviframe_event_enabled_get(const Evas_Object *obj); +#include "elc_naviframe.eo.legacy.h" \ No newline at end of file diff --git a/src/lib/elm_interface_fileselector.h b/src/lib/elm_interface_fileselector.h index 28a76a4..defb7d6 100644 --- a/src/lib/elm_interface_fileselector.h +++ b/src/lib/elm_interface_fileselector.h @@ -2,371 +2,6 @@ #define ELM_INTEFARCE_FILESELECTOR_H #include "elm_interface_fileselector.eo.h" -#if 0 -#define ELM_FILESELECTOR_INTERFACE elm_fileselector_interface_get() - -const Eo_Class *elm_fileselector_interface_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_FILESELECTOR_INTERFACE_BASE_ID; - -enum -{ - ELM_FILESELECTOR_INTERFACE_SUB_ID_IS_SAVE_SET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_IS_SAVE_GET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_FOLDER_ONLY_SET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_FOLDER_ONLY_GET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_EXPANDABLE_SET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_EXPANDABLE_GET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_PATH_SET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_PATH_GET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_MODE_SET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_MODE_GET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_MULTI_SELECT_SET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_MULTI_SELECT_GET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_SELECTED_GET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_SELECTED_SET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_SELECTED_PATHS_GET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_MIME_TYPES_FILTER_APPEND, - ELM_FILESELECTOR_INTERFACE_SUB_ID_CUSTOM_FILTER_APPEND, - ELM_FILESELECTOR_INTERFACE_SUB_ID_FILTERS_CLEAR, - ELM_FILESELECTOR_INTERFACE_SUB_ID_HIDDEN_VISIBLE_SET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_HIDDEN_VISIBLE_GET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_THUMBNAIL_SIZE_SET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_THUMBNAIL_SIZE_GET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_SORT_METHOD_SET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_SORT_METHOD_GET, - ELM_FILESELECTOR_INTERFACE_SUB_ID_LAST -}; - -#define ELM_FILESELECTOR_INTERFACE_ID(sub_id) (ELM_FILESELECTOR_INTERFACE_BASE_ID + sub_id) - -/** - * @def elm_fileselector_interface_is_save_set - * @since 1.9 - * - * Enable/disable the file name entry box where the user can type - * in a name for a file, in a given file selector widget - * - * @param[in] is_save - * - * @see elm_fileselector_is_save_set - */ -#define elm_fileselector_interface_is_save_set(is_save) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_IS_SAVE_SET), EO_TYPECHECK(Eina_Bool, is_save) - -/** - * @def elm_fileselector_interface_is_save_get - * @since 1.9 - * - * Get whether the given file selector is in "saving dialog" mode - * - * @param[out] ret - * - * @see elm_fileselector_is_save_get - */ -#define elm_fileselector_interface_is_save_get(ret) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_IS_SAVE_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_fileselector_interface_folder_only_set - * @since 1.9 - * - * Enable/disable folder-only view for a given file selector widget - * - * @param[in] only - * - * @see elm_fileselector_folder_only_set - */ -#define elm_fileselector_interface_folder_only_set(only) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_FOLDER_ONLY_SET), EO_TYPECHECK(Eina_Bool, only) - -/** - * @def elm_fileselector_interface_folder_only_get - * @since 1.9 - * - * Get whether folder-only view is set for a given file selector - * - * @param[out] ret - * - * @see elm_fileselector_folder_only_get - */ -#define elm_fileselector_interface_folder_only_get(ret) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_FOLDER_ONLY_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_fileselector_interface_buttons_ok_cancel_set - * @since 1.9 - * - * Enable/disable the "ok" and "cancel" buttons on a given file - * - * @param[in] visible - * - * @see elm_fileselector_buttons_ok_cancel_set - */ -#define elm_fileselector_interface_buttons_ok_cancel_set(visible) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_BUTTONS_OK_CANCEL_SET), EO_TYPECHECK(Eina_Bool, visible) - -/** - * @def elm_fileselector_interface_buttons_ok_cancel_get - * @since 1.9 - * - * Get whether the "ok" and "cancel" buttons on a given file - * - * @param[out] ret - * - * @see elm_fileselector_buttons_ok_cancel_get - */ -#define elm_fileselector_interface_buttons_ok_cancel_get(ret) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_BUTTONS_OK_CANCEL_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_fileselector_interface_expandable_set - * @since 1.9 - * - * Enable/disable a tree view in the given file selector widget, - * if it's in @c #ELM_FILESELECTOR_LIST mode - * - * @param[in] expand - * - * @see elm_fileselector_expandable_set - */ -#define elm_fileselector_interface_expandable_set(expand) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_EXPANDABLE_SET), EO_TYPECHECK(Eina_Bool, expand) - -/** - * @def elm_fileselector_interface_expandable_get - * @since 1.9 - * - * Get whether tree view is enabled for the given file selector - * - * @param[out] ret - * - * @see elm_fileselector_expandable_get - */ -#define elm_fileselector_interface_expandable_get(ret) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_EXPANDABLE_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_fileselector_interface_path_set - * @since 1.9 - * - * Set, programmatically, the directory that a given file - * selector widget will display contents from - * - * @param[in] path - * - * @see elm_fileselector_path_set - */ -#define elm_fileselector_interface_path_set(path) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_PATH_SET), EO_TYPECHECK(const char *, path) - -/** - * @def elm_fileselector_interface_path_get - * @since 1.9 - * - * Get the parent directory's path that a given file selector - * selector widget will display contents from - * - * @param[out] ret - * - * @see elm_fileselector_path_get - */ -#define elm_fileselector_interface_path_get(ret) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_PATH_GET), EO_TYPECHECK(const char **, ret) - -/** - * @def elm_fileselector_interface_mode_set - * @since 1.9 - * - * Set the mode in which a given file selector widget will display - * (layout) file system entries in its view - * - * @param[in] mode - * - * @see elm_fileselector_mode_set - */ -#define elm_fileselector_interface_mode_set(mode) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_MODE_SET), EO_TYPECHECK(Elm_Fileselector_Mode, mode) - -/** - * @def elm_fileselector_interface_mode_get - * @since 1.9 - * - * Get the mode in which a given file selector widget is displaying - * - * @param[out] ret - * - * @see elm_fileselector_mode_get - */ -#define elm_fileselector_interface_mode_get(ret) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_MODE_GET), EO_TYPECHECK(Elm_Fileselector_Mode *, ret) - -/** - * @def elm_fileselector_interface_multi_select_set - * @since 1.9 - * - * Enable or disable multi-selection in the fileselector - * - * @param[in] multi - * - * @see elm_fileselector_multi_select_set - */ -#define elm_fileselector_interface_multi_select_set(multi) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_MULTI_SELECT_SET), EO_TYPECHECK(Eina_Bool, multi) - -/** - * @def elm_fileselector_interface_multi_select_get - * @since 1.9 - * - * Gets if multi-selection in fileselector is enabled or disabled. - * - * @param[out] multi - * - * @see elm_fileselector_multi_select_get - */ -#define elm_fileselector_interface_multi_select_get(ret) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_MULTI_SELECT_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_fileselector_interface_selected_get - * @since 1.9 - * - * Get the currently selected item's (full) path, in the given file - * the given file selector widget - * - * @param[out] ret - * - * @see elm_fileselector_selected_get - */ -#define elm_fileselector_interface_selected_get(ret) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_SELECTED_GET), EO_TYPECHECK(const char **, ret) - -/** - * @def elm_fileselector_interface_selected_set - * @since 1.9 - * - * Set, programmatically, the currently selected file/directory in - * the given file selector widget - * - * @param[in] path - * @param[out] ret - * - * @see elm_fileselector_selected_set - */ -#define elm_fileselector_interface_selected_set(path, ret) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_SELECTED_SET), EO_TYPECHECK(const char *, path), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_fileselector_interface_selected_paths_get - * @since 1.9 - * - * Get a list of selected paths in the fileselector. - * - * @param[out] ret - * - * @see elm_fileselector_selected_paths_get - */ -#define elm_fileselector_interface_selected_paths_get(ret) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_SELECTED_PATHS_GET), EO_TYPECHECK(const Eina_List **, ret) - -/** - * @def elm_fileselector_interface_mime_types_filter_append - * @since 1.9 - * - * Append mime type based filter into filter list - * - * @param[in] mime_types - * @param[in] filter_name - * @param[out] ret - * - * @see elm_fileselector_mime_types_filter_append - */ -#define elm_fileselector_interface_mime_types_filter_append(mime_types, filter_name, ret) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_MIME_TYPES_FILTER_APPEND), EO_TYPECHECK(const char *, mime_types), EO_TYPECHECK(const char *, filter_name), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_fileselector_interface_custom_filter_append - * @since 1.9 - * - * Append custom filter into filter list - * - * @param[in] filter function - * @param[in] data - * @param[in] filter_name - * @param[out] ret - * - * @see elm_fileselector_custom_filter_append - */ -#define elm_fileselector_interface_custom_filter_append(func, data, filter_name, ret) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_CUSTOM_FILTER_APPEND), EO_TYPECHECK(Elm_Fileselector_Filter_Func, func), EO_TYPECHECK(void *, data), EO_TYPECHECK(const char *, filter_name), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_fileselector_interface_filters_clear - * @since 1.9 - * - * Clear all filters registered - * - * - * @see elm_fileselector_mime_type_filter_append - */ -#define elm_fileselector_interface_filters_clear() ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_FILTERS_CLEAR) - -/** - * @def elm_fileselector_interface_hidden_visible_set - * @since 1.9 - * - * Enable or disable visibility of hidden files/directories - * in the file selector widget. - * - * @param[in] visible - * - * @see elm_fileselector_hidden_visible_get - */ -#define elm_fileselector_interface_hidden_visible_set(multi) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_HIDDEN_VISIBLE_SET), EO_TYPECHECK(Eina_Bool, multi) - -/** - * @def elm_fileselector_interface_hidden_visible_get - * @since 1.9 - * - * Get if hiden files/directories in the file selector are visible or not. - * - * @param[out] visible - * - * @see elm_fileselector_hidden_visible_set - */ -#define elm_fileselector_interface_hidden_visible_get(ret) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_HIDDEN_VISIBLE_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_fileselector_interface_thumbnail_size_get - * @since 1.9 - * - * Get the size for the thumbnail of a given file selector widget - * - * @param[out] w - * @param[out] h - * - * @see elm_fileselector_thumbnail_size_get - */ -#define elm_fileselector_interface_thumbnail_size_get(w, h) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_THUMBNAIL_SIZE_GET), EO_TYPECHECK(Evas_Coord *, w), EO_TYPECHECK(Evas_Coord *, h) - -/** - * @def elm_fileselector_interface_thumbnail_size_set - * @since 1.9 - * - * Set the size for the thumbnail of the file selector widget's view. - * - * @param[in] w - * @param[in] h - * - * @see elm_fileselector_thumbnail_size_set - */ -#define elm_fileselector_interface_thumbnail_size_set(w, h) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_THUMBNAIL_SIZE_SET), EO_TYPECHECK(Evas_Coord, w), EO_TYPECHECK(Evas_Coord, h) - -/** - * @def elm_fileselector_interface_sort_method_get - * @since 1.9 - * - * Get the sort method of the file selector widget. - * - * @param[out] ret - * - * @see elm_fileselector_sort_method_get - */ -#define elm_fileselector_interface_sort_method_get(ret) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_SORT_METHOD_GET), EO_TYPECHECK(Elm_Fileselector_Sort *, ret) - -/** - * @def elm_fileselector_interface_sort_method_set - * @since 1.9 - * - * Set the sort method of the file selector widget. - * - * @param[in] sort - * - * @see elm_fileselector_sort_method_set - */ -#define elm_fileselector_interface_sort_method_set(sort) ELM_FILESELECTOR_INTERFACE_ID(ELM_FILESELECTOR_INTERFACE_SUB_ID_SORT_METHOD_SET), EO_TYPECHECK(Elm_Fileselector_Sort, sort) -#endif #define ELM_FILESELECTOR_INTERFACE_CHECK(obj, ...) \ if (EINA_UNLIKELY(!eo_isa(obj, ELM_INTERFACE_FILESELECTOR_CLASS))) \ diff --git a/src/lib/elm_inwin_eo.h b/src/lib/elm_inwin_eo.h index c3a86f3..768cd27 100644 --- a/src/lib/elm_inwin_eo.h +++ b/src/lib/elm_inwin_eo.h @@ -1,27 +1 @@ -#include "elm_inwin.eo.h" - -#if 0 -#define ELM_OBJ_WIN_INWIN_CLASS elm_obj_win_inwin_class_get() - -const Eo_Class *elm_obj_win_inwin_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_WIN_INWIN_BASE_ID; - -enum -{ - ELM_OBJ_WIN_INWIN_SUB_ID_ACTIVATE, - ELM_OBJ_WIN_INWIN_SUB_ID_LAST -}; - -#define ELM_OBJ_WIN_INWIN_ID(sub_id) (ELM_OBJ_WIN_INWIN_BASE_ID + sub_id) - -/** - * @def elm_obj_win_inwin_activate - * @since 1.8 - * - * No description supplied by the EAPI. - * - * @ingroup Inwin - */ -#define elm_obj_win_inwin_activate() ELM_OBJ_WIN_INWIN_ID(ELM_OBJ_WIN_INWIN_SUB_ID_ACTIVATE) -#endif +#include "elm_inwin.eo.h" \ No newline at end of file diff --git a/src/lib/elm_inwin_legacy.h b/src/lib/elm_inwin_legacy.h index abe0f4b..20698c0 100644 --- a/src/lib/elm_inwin_legacy.h +++ b/src/lib/elm_inwin_legacy.h @@ -19,23 +19,6 @@ EAPI Evas_Object *elm_win_inwin_add(Evas_Object *parent); /** - * Activates an inwin object, ensuring its visibility - * - * This function will make sure that the inwin @p obj is completely visible - * by calling evas_object_show() and evas_object_raise() on it, to bring it - * to the front. It also sets the keyboard focus to it, which will be passed - * onto its content. - * - * The object's theme will also receive the signal "elm,action,show" with - * source "elm". - * - * @param obj The inwin to activate - * - * @ingroup Inwin - */ -EAPI void elm_win_inwin_activate(Evas_Object *obj); - -/** * Set the content of an inwin object. * * Once the content object is set, a previously set one will be deleted. @@ -80,3 +63,4 @@ EAPI Evas_Object *elm_win_inwin_content_get(const Evas_Object *obj); */ EAPI Evas_Object *elm_win_inwin_content_unset(Evas_Object *obj); +#include "elm_inwin.eo.legacy.h" diff --git a/src/lib/elm_label_eo.h b/src/lib/elm_label_eo.h index 8fd6170..1355127 100644 --- a/src/lib/elm_label_eo.h +++ b/src/lib/elm_label_eo.h @@ -3,215 +3,8 @@ * * @{ */ -#include "elm_label.eo.h" -#if 0 -#define ELM_OBJ_LABEL_CLASS elm_obj_label_class_get() - -const Eo_Class *elm_obj_label_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_LABEL_BASE_ID; - -enum -{ - ELM_OBJ_LABEL_SUB_ID_LINE_WRAP_SET, - ELM_OBJ_LABEL_SUB_ID_LINE_WRAP_GET, - ELM_OBJ_LABEL_SUB_ID_WRAP_WIDTH_SET, - ELM_OBJ_LABEL_SUB_ID_WRAP_WIDTH_GET, - ELM_OBJ_LABEL_SUB_ID_ELLIPSIS_SET, - ELM_OBJ_LABEL_SUB_ID_ELLIPSIS_GET, - ELM_OBJ_LABEL_SUB_ID_SLIDE_MODE_SET, - ELM_OBJ_LABEL_SUB_ID_SLIDE_MODE_GET, - ELM_OBJ_LABEL_SUB_ID_SLIDE_DURATION_SET, - ELM_OBJ_LABEL_SUB_ID_SLIDE_DURATION_GET, - ELM_OBJ_LABEL_SUB_ID_SLIDE_GO, - ELM_OBJ_LABEL_SUB_ID_SLIDE_SPEED_SET, - ELM_OBJ_LABEL_SUB_ID_SLIDE_SPEED_GET, - ELM_OBJ_LABEL_SUB_ID_LAST -}; - -#define ELM_OBJ_LABEL_ID(sub_id) (ELM_OBJ_LABEL_BASE_ID + sub_id) - - -/** - * @def elm_obj_label_line_wrap_set - * @since 1.8 - * - * @brief Set the wrapping behavior of the label - * - * @param[in] wrap - * - * @see elm_label_line_wrap_set - * - * @ingroup Label - */ -#define elm_obj_label_line_wrap_set(wrap) ELM_OBJ_LABEL_ID(ELM_OBJ_LABEL_SUB_ID_LINE_WRAP_SET), EO_TYPECHECK(Elm_Wrap_Type, wrap) -/** - * @def elm_obj_label_line_wrap_get - * @since 1.8 - * - * @brief Get the wrapping behavior of the label - * - * @param[out] ret - * - * @see elm_label_line_wrap_get - * - * @ingroup Label - */ -#define elm_obj_label_line_wrap_get(ret) ELM_OBJ_LABEL_ID(ELM_OBJ_LABEL_SUB_ID_LINE_WRAP_GET), EO_TYPECHECK(Elm_Wrap_Type *, ret) - -/** - * @def elm_obj_label_wrap_width_set - * @since 1.8 - * - * @brief Set wrap width of the label - * - * @param[in] w - * - * @see elm_label_wrap_width_set - * - * @ingroup Label - */ -#define elm_obj_label_wrap_width_set(w) ELM_OBJ_LABEL_ID(ELM_OBJ_LABEL_SUB_ID_WRAP_WIDTH_SET), EO_TYPECHECK(Evas_Coord, w) - -/** - * @def elm_obj_label_wrap_width_get - * @since 1.8 - * - * @brief Get wrap width of the label - * - * @param[out] ret - * - * @see elm_label_wrap_width_get - * - * @ingroup Label - */ -#define elm_obj_label_wrap_width_get(ret) ELM_OBJ_LABEL_ID(ELM_OBJ_LABEL_SUB_ID_WRAP_WIDTH_GET), EO_TYPECHECK(Evas_Coord *, ret) - -/** - * @def elm_obj_label_ellipsis_set - * @since 1.8 - * - * @brief Set the ellipsis behavior of the label - * - * @param[in] ellipsis - * - * @see elm_label_ellipsis_set - * - * @ingroup Label - */ -#define elm_obj_label_ellipsis_set(ellipsis) ELM_OBJ_LABEL_ID(ELM_OBJ_LABEL_SUB_ID_ELLIPSIS_SET), EO_TYPECHECK(Eina_Bool, ellipsis) - -/** - * @def elm_obj_label_ellipsis_get - * @since 1.8 - * - * @brief Get the ellipsis behavior of the label - * - * @param[out] ret - * - * @see elm_label_ellipsis_get - * - * @ingroup Label - */ -#define elm_obj_label_ellipsis_get(ret) ELM_OBJ_LABEL_ID(ELM_OBJ_LABEL_SUB_ID_ELLIPSIS_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_label_slide_mode_set - * @since 1.8 - * - * @brief Set slide effect mode of label widget. - * - * @param[in] mode - * - * @see elm_label_slide_mode_set - * - * @ingroup Label - */ -#define elm_obj_label_slide_mode_set(mode) ELM_OBJ_LABEL_ID(ELM_OBJ_LABEL_SUB_ID_SLIDE_MODE_SET), EO_TYPECHECK(Elm_Label_Slide_Mode, mode) - -/** - * @def elm_obj_label_slide_mode_get - * @since 1.8 - * - * @brief Get current slide effect mode. - * - * @param[out] ret - * - * @see elm_label_slide_mode_get - * - * @ingroup Label - */ -#define elm_obj_label_slide_mode_get(ret) ELM_OBJ_LABEL_ID(ELM_OBJ_LABEL_SUB_ID_SLIDE_MODE_GET), EO_TYPECHECK(Elm_Label_Slide_Mode *, ret) - -/** - * @def elm_obj_label_slide_duration_set - * @since 1.8 - * - * @brief Set the slide duration of the label - * - * @param[in] duration - * - * @see elm_label_slide_duration_set - * - * @ingroup Label - */ -#define elm_obj_label_slide_duration_set(duration) ELM_OBJ_LABEL_ID(ELM_OBJ_LABEL_SUB_ID_SLIDE_DURATION_SET), EO_TYPECHECK(double, duration) - -/** - * @def elm_obj_label_slide_duration_get - * @since 1.8 - * - * @brief Get the slide duration of the label - * - * @param[out] ret - * - * @see elm_label_slide_duration_get - * - * @ingroup Label - */ -#define elm_obj_label_slide_duration_get(ret) ELM_OBJ_LABEL_ID(ELM_OBJ_LABEL_SUB_ID_SLIDE_DURATION_GET), EO_TYPECHECK(double *, ret) - -/** - * @def elm_obj_label_slide_speed_set - * @since 1.9 - * - * @brief Set the slide speed of the label - * - * @param[in] speed - * - * @see elm_label_slide_speed_set - * - * @ingroup Label - */ -#define elm_obj_label_slide_speed_set(speed) ELM_OBJ_LABEL_ID(ELM_OBJ_LABEL_SUB_ID_SLIDE_SPEED_SET), EO_TYPECHECK(double, speed) - -/** - * @def elm_obj_label_slide_speed_get - * @since 1.9 - * - * @brief Get the slide speed of the label - * - * @param[out] ret - * - * @see elm_label_slide_speed_get - * - * @ingroup Label - */ -#define elm_obj_label_slide_speed_get(ret) ELM_OBJ_LABEL_ID(ELM_OBJ_LABEL_SUB_ID_SLIDE_SPEED_GET), EO_TYPECHECK(double *, ret) - -/** - * @def elm_obj_label_slide_go - * @since 1.8 - * - * @brief Start slide effect - * - * @see elm_label_slide_mode_set - * - * @ingroup Label - */ -#define elm_obj_label_slide_go() ELM_OBJ_LABEL_ID(ELM_OBJ_LABEL_SUB_ID_SLIDE_GO) -#endif +#include "elm_label.eo.h" /** * @} diff --git a/src/lib/elm_label_legacy.h b/src/lib/elm_label_legacy.h index 1f99b14..dd48b82 100644 --- a/src/lib/elm_label_legacy.h +++ b/src/lib/elm_label_legacy.h @@ -8,192 +8,4 @@ */ EAPI Evas_Object *elm_label_add(Evas_Object *parent); -/** - * @brief Set the wrapping behavior of the label - * - * @param obj The label object - * @param wrap To wrap text or not - * - * By default no wrapping is done. Possible values for @p wrap are: - * @li ELM_WRAP_NONE - No wrapping - * @li ELM_WRAP_CHAR - wrap between characters - * @li ELM_WRAP_WORD - wrap between words - * @li ELM_WRAP_MIXED - Word wrap, and if that fails, char wrap - * - * @ingroup Label - */ -EAPI void elm_label_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap); - -/** - * @brief Get the wrapping behavior of the label - * - * @param obj The label object - * @return Wrap type - * - * @see elm_label_line_wrap_set() - * - * @ingroup Label - */ -EAPI Elm_Wrap_Type elm_label_line_wrap_get(const Evas_Object *obj); - -/** - * @brief Set wrap width of the label - * - * @param obj The label object - * @param w The wrap width in pixels at a minimum where words need to wrap - * - * This function sets the maximum width size hint of the label. - * - * @warning This is only relevant if the label is inside a container. - * - * @ingroup Label - */ -EAPI void elm_label_wrap_width_set(Evas_Object *obj, Evas_Coord w); - -/** - * @brief Get wrap width of the label - * - * @param obj The label object - * @return The wrap width in pixels at a minimum where words need to wrap - * - * @see elm_label_wrap_width_set() - * - * @ingroup Label - */ -EAPI Evas_Coord elm_label_wrap_width_get(const Evas_Object *obj); - -/** - * @brief Set the ellipsis behavior of the label - * - * @param obj The label object - * @param ellipsis To ellipsis text or not - * - * If set to true and the text doesn't fit in the label an ellipsis("...") - * will be shown at the end of the widget. - * - * @warning This doesn't work with slide(elm_label_slide_set()) or if the - * chosen wrap method was #ELM_WRAP_WORD. - * - * @ingroup Label - */ -EAPI void elm_label_ellipsis_set(Evas_Object *obj, Eina_Bool ellipsis); - -/** - * @brief Get the ellipsis behavior of the label - * - * @param obj The label object - * @return If true, an ellipsis will be shown at the end of the label area. - * - * @see elm_label_ellipsis_set() - * - * @ingroup Label - */ -EAPI Eina_Bool elm_label_ellipsis_get(const Evas_Object *obj); - -/** - * @brief Set the slide mode of the label widget. - * - * @param obj The label object - * @param mode The slide mode - * - * elm_label_slide_mode_set() changes label slide mode. - * By default, slide mode is none. Possible values for @p mode are: - * @li ELM_LABEL_SLIDE_MODE_NONE - no slide effect - * @li ELM_LABEL_SLIDE_MODE_AUTO - slide only if the label area is bigger than - * the text width length - * @li ELM_LABEL_SLIDE_MODE_ALWAYS -slide always - * - * @warning ELM_LABEL_SLIDE_MODE_AUTO, ELM_LABEL_SLIDE_MODE_ALWAYS only work - * with the themes "slide_short", "slide_long" and "slide_bounce". - * @warning ELM_LABEL_SLIDE_MODE_AUTO, ELM_LABEL_SLIDE_MODE_ALWAYS don't work - * if the line wrap(elm_label_line_wrap_set()) or - * ellipsis(elm_label_ellipsis_set()) is set. - * - * @see elm_label_slide_mode_get(). - * @since 1.8 - * - * @ingroup Label - */ -EAPI void elm_label_slide_mode_set(Evas_Object *obj, Elm_Label_Slide_Mode mode); - -/** - * @brief Get the slide mode of the label widget. - * - * @param obj The label object - * @return The slide mode - * - * @see elm_label_slide_mode_set() - * @since 1.8 - * - * @ingroup Label - */ -EAPI Elm_Label_Slide_Mode elm_label_slide_mode_get(const Evas_Object *obj); - -/** - * @brief Set the slide duration of the label - * - * @param obj The label object - * @param duration The duration in seconds in moving text from slide begin position - * to slide end position - * - * @see elm_label_slide_speed_set() - * - * @ingroup Label - */ -EAPI void elm_label_slide_duration_set(Evas_Object *obj, double duration); - -/** - * @brief Get the slide duration of the label - * - * @param obj The label object - * @return The duration time in moving text from slide begin position to slide end position - * - * @note If you set the speed of the slide using elm_label_slide_speed_set() - * you cannot get the correct duration using this function until the label - * is actually rendered and resized. - * - * @see elm_label_slide_duration_set() - * - * @ingroup Label - */ -EAPI double elm_label_slide_duration_get(const Evas_Object *obj); - -/** - * @brief Set the slide speed of the label - * - * @param obj The label object - * @param speed The speed of the slide animation in px per seconds - * - * @see elm_label_slide_duration_set() - * - * @ingroup Label - */ -EAPI void elm_label_slide_speed_set(Evas_Object *obj, double speed); - -/** - * @brief Get the slide speed of the label - * - * @param obj The label object - * @return The slide animation speed in px per seconds - * - * @note If you set the duration of the slide using elm_label_slide_duration_set() - * you cannot get the correct speed using this function until the label - * is actually rendered and resized. - * - * @see elm_label_slide_speed_set() - * - * @ingroup Label - */ -EAPI double elm_label_slide_speed_get(const Evas_Object *obj); - -/** - * @brief Start slide effect. - * - * @param obj The label object - * - * @see elm_label_slide_mode_set() - * @since 1.8 - * - * @ingroup Label - */ -EAPI void elm_label_slide_go(Evas_Object *obj); +#include "elm_label.eo.legacy.h" diff --git a/src/lib/elm_list_eo.h b/src/lib/elm_list_eo.h index cc17f0f..7d91a30 100644 --- a/src/lib/elm_list_eo.h +++ b/src/lib/elm_list_eo.h @@ -3,439 +3,9 @@ * * @{ */ -#include "elm_list.eo.h" -#if 0 -#define ELM_OBJ_LIST_CLASS elm_obj_list_class_get() - - const Eo_Class *elm_obj_list_class_get(void) EINA_CONST; - - extern EAPI Eo_Op ELM_OBJ_LIST_BASE_ID; - - enum -{ - ELM_OBJ_LIST_SUB_ID_GO, - ELM_OBJ_LIST_SUB_ID_MULTI_SELECT_SET, - ELM_OBJ_LIST_SUB_ID_MULTI_SELECT_GET, - ELM_OBJ_LIST_SUB_ID_MULTI_SELECT_MODE_SET, - ELM_OBJ_LIST_SUB_ID_MULTI_SELECT_MODE_GET, - ELM_OBJ_LIST_SUB_ID_MODE_SET, - ELM_OBJ_LIST_SUB_ID_MODE_GET, - ELM_OBJ_LIST_SUB_ID_HORIZONTAL_SET, - ELM_OBJ_LIST_SUB_ID_HORIZONTAL_GET, - ELM_OBJ_LIST_SUB_ID_SELECT_MODE_SET, - ELM_OBJ_LIST_SUB_ID_SELECT_MODE_GET, - ELM_OBJ_LIST_SUB_ID_CLEAR, - ELM_OBJ_LIST_SUB_ID_ITEMS_GET, - ELM_OBJ_LIST_SUB_ID_SELECTED_ITEM_GET, - ELM_OBJ_LIST_SUB_ID_SELECTED_ITEMS_GET, - ELM_OBJ_LIST_SUB_ID_ITEM_APPEND, - ELM_OBJ_LIST_SUB_ID_ITEM_PREPEND, - ELM_OBJ_LIST_SUB_ID_ITEM_INSERT_BEFORE, - ELM_OBJ_LIST_SUB_ID_ITEM_INSERT_AFTER, - ELM_OBJ_LIST_SUB_ID_ITEM_SORTED_INSERT, - ELM_OBJ_LIST_SUB_ID_FIRST_ITEM_GET, - ELM_OBJ_LIST_SUB_ID_LAST_ITEM_GET, - ELM_OBJ_LIST_SUB_ID_AT_XY_ITEM_GET, - ELM_OBJ_LIST_SUB_ID_FOCUS_ON_SELECTION_SET, - ELM_OBJ_LIST_SUB_ID_FOCUS_ON_SELECTION_GET, - ELM_OBJ_LIST_SUB_ID_LAST -}; - -#define ELM_OBJ_LIST_ID(sub_id) (ELM_OBJ_LIST_BASE_ID + sub_id) - - -/** - * @def elm_obj_list_go - * @since 1.8 - * - * Starts the list. - * - * - * @see elm_list_go - */ -#define elm_obj_list_go() ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_GO) - -/** - * @def elm_obj_list_multi_select_set - * @since 1.8 - * - * Enable or disable multiple items selection on the list object. - * - * @param[in] multi - * - * @see elm_list_multi_select_set - */ -#define elm_obj_list_multi_select_set(multi) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_MULTI_SELECT_SET), EO_TYPECHECK(Eina_Bool, multi) - -/** - * @def elm_obj_list_multi_select_get - * @since 1.8 - * - * Get a value whether multiple items selection is enabled or not. - * - * @param[out] ret - * - * @see elm_list_multi_select_get - */ -#define elm_obj_list_multi_select_get(ret) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_MULTI_SELECT_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_list_multi_select_mode_set - * @since 1.8 - * - * Set the list multi select mode. - * - * @param[in] mode - * - * - ELM_OBJECT_MULTI_SELECT_MODE_DEFAULT : select/unselect items whenever each - * item is clicked. - * - ELM_OBJECT_MULTI_SELECT_MODE_WITH_CONTROL : Only one item will be selected - * although multi-selection is enabled, if clicked without pressing control - * key. This mode is only available with multi-selection. - * - * @see elm_list_multi_select_set() - * @see elm_list_multi_select_mode_get() - */ -#define elm_obj_list_multi_select_mode_set(mode) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_MULTI_SELECT_MODE_SET), EO_TYPECHECK(Elm_Object_Multi_Select_Mode, mode) - -/** - * @def elm_obj_list_multi_select_mode_get - * @since 1.8 - * - * Get the list multi select mode. - * - * @param[out] ret - * - * (If getting mode is failed, it returns ELM_OBJECT_MULTI_SELECT_MODE_MAX) - * - * @see elm_list_multi_select_set() - * @see elm_list_multi_select_mode_set() - */ -#define elm_obj_list_multi_select_mode_get(ret) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_MULTI_SELECT_MODE_GET), EO_TYPECHECK(Elm_Object_Multi_Select_Mode *, ret) - -/** - * @def elm_obj_list_mode_set - * @since 1.8 - * - * Set which mode to use for the list object. - * - * @param[in] mode - * - * @see elm_list_mode_set - */ -#define elm_obj_list_mode_set(mode) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_MODE_SET), EO_TYPECHECK(Elm_List_Mode, mode) - -/** - * @def elm_obj_list_mode_get - * @since 1.8 - * - * Get the mode the list is at. - * - * @param[out] ret - * - * @see elm_list_mode_get - */ -#define elm_obj_list_mode_get(ret) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_MODE_GET), EO_TYPECHECK(Elm_List_Mode *, ret) - -/** - * @def elm_obj_list_horizontal_set - * @since 1.8 - * - * Enable or disable horizontal mode on the list object. - * - * @param[in] horizontal - * - * @see elm_list_horizontal_set - */ -#define elm_obj_list_horizontal_set(horizontal) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_HORIZONTAL_SET), EO_TYPECHECK(Eina_Bool, horizontal) - -/** - * @def elm_obj_list_horizontal_get - * @since 1.8 - * - * Get a value whether horizontal mode is enabled or not. - * - * @param[out] ret - * - * @see elm_list_horizontal_get - */ -#define elm_obj_list_horizontal_get(ret) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_HORIZONTAL_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_list_select_mode_set - * @since 1.8 - * - * No description supplied by the EAPI. - * - * @param[in] mode - * - * @see elm_list_select_mode_set - */ -#define elm_obj_list_select_mode_set(mode) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_SELECT_MODE_SET), EO_TYPECHECK(Elm_Object_Select_Mode, mode) - -/** - * @def elm_obj_list_select_mode_get - * @since 1.8 - * - * No description supplied by the EAPI. - * - * @param[out] ret - * - * @see elm_list_select_mode_get - */ -#define elm_obj_list_select_mode_get(ret) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_SELECT_MODE_GET), EO_TYPECHECK(Elm_Object_Select_Mode *, ret) - -/** - * @def elm_obj_list_bounce_set - * @since 1.8 - * - * Set bouncing behaviour when the scrolled content reaches an edge. - * - * @param[in] h_bounce - * @param[in] v_bounce - * - * @see elm_list_bounce_set - */ -#define elm_obj_list_bounce_set(h_bounce, v_bounce) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_BOUNCE_SET), EO_TYPECHECK(Eina_Bool, h_bounce), EO_TYPECHECK(Eina_Bool, v_bounce) - -/** - * @def elm_obj_list_bounce_get - * @since 1.8 - * - * Get the bouncing behaviour of the internal scroller. - * - * @param[out] h_bounce - * @param[out] v_bounce - * - * @see elm_list_bounce_get - */ -#define elm_obj_list_bounce_get(h_bounce, v_bounce) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_BOUNCE_GET), EO_TYPECHECK(Eina_Bool *, h_bounce), EO_TYPECHECK(Eina_Bool *, v_bounce) - -/** - * @def elm_obj_list_scroller_policy_set - * @since 1.8 - * - * Set the scrollbar policy. - * - * @param[in] policy_h - * @param[in] policy_v - * - * @see elm_list_scroller_policy_set - */ -#define elm_obj_list_scroller_policy_set(policy_h, policy_v) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_SCROLLER_POLICY_SET), EO_TYPECHECK(Elm_Scroller_Policy, policy_h), EO_TYPECHECK(Elm_Scroller_Policy, policy_v) - -/** - * @def elm_obj_list_scroller_policy_get - * @since 1.8 - * - * Get the scrollbar policy. - * - * @param[out] policy_h - * @param[out] policy_v - * - * @see elm_list_scroller_policy_get - */ -#define elm_obj_list_scroller_policy_get(policy_h, policy_v) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_SCROLLER_POLICY_GET), EO_TYPECHECK(Elm_Scroller_Policy *, policy_h), EO_TYPECHECK(Elm_Scroller_Policy *, policy_v) - -/** - * @def elm_obj_list_clear - * @since 1.8 - * - * Remove all list's items. - * - * - * @see elm_list_clear - */ -#define elm_obj_list_clear() ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_CLEAR) - -/** - * @def elm_obj_list_items_get - * @since 1.8 - * - * Get a list of all the list items. - * - * @param[out] ret - * - * @see elm_list_items_get - */ -#define elm_obj_list_items_get(ret) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_ITEMS_GET), EO_TYPECHECK(const Eina_List **, ret) - -/** - * @def elm_obj_list_selected_item_get - * @since 1.8 - * - * Get the selected item. - * - * @param[out] ret - * - * @see elm_list_selected_item_get - */ -#define elm_obj_list_selected_item_get(ret) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_SELECTED_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_list_selected_items_get - * @since 1.8 - * - * Return a list of the currently selected list items. - * - * @param[out] ret - * - * @see elm_list_selected_items_get - */ -#define elm_obj_list_selected_items_get(ret) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_SELECTED_ITEMS_GET), EO_TYPECHECK(const Eina_List **, ret) -/** - * @def elm_obj_list_item_append - * @since 1.8 - * - * Append a new item to the list object. - * - * @param[in] label - * @param[in] icon - * @param[in] end - * @param[in] func - * @param[in] data - * @param[out] ret - * - * @see elm_list_item_append - */ -#define elm_obj_list_item_append(label, icon, end, func, data, ret) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_ITEM_APPEND), EO_TYPECHECK(const char *, label), EO_TYPECHECK(Evas_Object *, icon), EO_TYPECHECK(Evas_Object *, end), EO_TYPECHECK(Evas_Smart_Cb, func), EO_TYPECHECK(const void *, data), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_list_item_prepend - * @since 1.8 - * - * Prepend a new item to the list object. - * - * @param[in] label - * @param[in] icon - * @param[in] end - * @param[in] func - * @param[in] data - * @param[out] ret - * - * @see elm_list_item_prepend - */ -#define elm_obj_list_item_prepend(label, icon, end, func, data, ret) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_ITEM_PREPEND), EO_TYPECHECK(const char *, label), EO_TYPECHECK(Evas_Object *, icon), EO_TYPECHECK(Evas_Object *, end), EO_TYPECHECK(Evas_Smart_Cb, func), EO_TYPECHECK(const void *, data), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_list_item_insert_before - * @since 1.8 - * - * Insert a new item into the list object before item before. - * - * @param[in] before - * @param[in] label - * @param[in] icon - * @param[in] end - * @param[in] func - * @param[in] data - * @param[out] ret - * - * @see elm_list_item_insert_before - */ -#define elm_obj_list_item_insert_before(before, label, icon, end, func, data, ret) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_ITEM_INSERT_BEFORE), EO_TYPECHECK(Elm_Object_Item *, before), EO_TYPECHECK(const char *, label), EO_TYPECHECK(Evas_Object *, icon), EO_TYPECHECK(Evas_Object *, end), EO_TYPECHECK(Evas_Smart_Cb, func), EO_TYPECHECK(const void *, data), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_list_item_insert_after - * @since 1.8 - * - * Insert a new item into the list object after item after. - * - * @param[in] after - * @param[in] label - * @param[in] icon - * @param[in] end - * @param[in] func - * @param[in] data - * @param[out] ret - * - * @see elm_list_item_insert_after - */ -#define elm_obj_list_item_insert_after(after, label, icon, end, func, data, ret) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_ITEM_INSERT_AFTER), EO_TYPECHECK(Elm_Object_Item *, after), EO_TYPECHECK(const char *, label), EO_TYPECHECK(Evas_Object *, icon), EO_TYPECHECK(Evas_Object *, end), EO_TYPECHECK(Evas_Smart_Cb, func), EO_TYPECHECK(const void *, data), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_list_item_sorted_insert - * @since 1.8 - * - * Insert a new item into the sorted list object. - * - * @param[in] label - * @param[in] icon - * @param[in] end - * @param[in] func - * @param[in] data - * @param[in] cmp_func - * @param[out] ret - * - * @see elm_list_item_sorted_insert - */ -#define elm_obj_list_item_sorted_insert(label, icon, end, func, data, cmp_func, ret) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_ITEM_SORTED_INSERT), EO_TYPECHECK(const char *, label), EO_TYPECHECK(Evas_Object *, icon), EO_TYPECHECK(Evas_Object *, end), EO_TYPECHECK(Evas_Smart_Cb, func), EO_TYPECHECK(const void *, data), EO_TYPECHECK(Eina_Compare_Cb, cmp_func), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_list_first_item_get - * @since 1.8 - * - * Get the first item in the list - * - * @param[out] ret - * - * @see elm_list_first_item_get - */ -#define elm_obj_list_first_item_get(ret) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_FIRST_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_list_last_item_get - * @since 1.8 - * - * Get the last item in the list - * - * @param[out] ret - * - * @see elm_list_last_item_get - */ -#define elm_obj_list_last_item_get(ret) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_LAST_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_list_at_xy_item_get - * @since 1.8 - * - * Get the item that is at the x, y canvas coords. - * - * @param[in] x - * @param[in] y - * @param[out] posret - * @param[out] ret - * - * @see elm_list_at_xy_item_get - */ -#define elm_obj_list_at_xy_item_get(x, y, posret, ret) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_AT_XY_ITEM_GET), EO_TYPECHECK(Evas_Coord, x), EO_TYPECHECK(Evas_Coord, y), EO_TYPECHECK(int *, posret), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_list_focus_on_selection_set - * @since 1.8 - * - * Set focus to a first from left focusable widget upon item selection. - * - * @param[in] enabled - * - * @see elm_obj_list_focus_on_selection_get - */ -#define elm_obj_list_focus_on_selection_set(enabled) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_FOCUS_ON_SELECTION_SET), EO_TYPECHECK(Eina_Bool, enabled) - -/** - * @def elm_obj_list_focus_on_selection_get - * @since 1.8 - * - * Get whether the focus will be set to a widget on an item upon it's selection. - * - * @param[out] ret - * - * @see elm_obj_list_focus_on_selection_set - */ -#define elm_obj_list_focus_on_selection_get(ret) ELM_OBJ_LIST_ID(ELM_OBJ_LIST_SUB_ID_FOCUS_ON_SELECTION_GET), EO_TYPECHECK(Eina_Bool *, ret) +#include "elm_list.eo.h" -#endif /** * @} */ diff --git a/src/lib/elm_list_legacy.h b/src/lib/elm_list_legacy.h index 1c4818a..484cc8c 100644 --- a/src/lib/elm_list_legacy.h +++ b/src/lib/elm_list_legacy.h @@ -11,578 +11,4 @@ */ EAPI Evas_Object *elm_list_add(Evas_Object *parent); -/** - * Starts the list. - * - * @param obj The list object - * - * @note Call before running show() on the list object. - * @warning If not called, it won't display the list properly. - * - * @code - * li = elm_list_add(win); - * elm_list_item_append(li, "First", NULL, NULL, NULL, NULL); - * elm_list_item_append(li, "Second", NULL, NULL, NULL, NULL); - * elm_list_go(li); - * evas_object_show(li); - * @endcode - * - * @ingroup List - */ -EAPI void elm_list_go(Evas_Object *obj); - -/** - * Enable or disable multiple items selection on the list object. - * - * @param obj The list object - * @param multi @c EINA_TRUE to enable multi selection or @c EINA_FALSE to - * disable it. - * - * Disabled by default. If disabled, the user can select a single item of - * the list each time. Selected items are highlighted on list. - * If enabled, many items can be selected. - * - * If a selected item is selected again, it will be unselected. - * - * @see elm_list_multi_select_get() - * - * @ingroup List - */ -EAPI void elm_list_multi_select_set(Evas_Object *obj, Eina_Bool multi); - -/** - * Get a value whether multiple items selection is enabled or not. - * - * @see elm_list_multi_select_set() for details. - * - * @param obj The list object. - * @return @c EINA_TRUE means multiple items selection is enabled. - * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL, - * @c EINA_FALSE is returned. - * - * @ingroup List - */ -EAPI Eina_Bool elm_list_multi_select_get(const Evas_Object *obj); - -/** - * Set the list multi select mode. - * - * @param obj The list object - * @param mode The multi select mode - * - * - ELM_OBJECT_MULTI_SELECT_MODE_DEFAULT : select/unselect items whenever each - * item is clicked. - * - ELM_OBJECT_MULTI_SELECT_MODE_WITH_CONTROL : Only one item will be selected - * although multi-selection is enabled, if clicked without pressing control - * key. This mode is only available with multi-selection. - * - * @see elm_list_multi_select_set() - * @see elm_list_multi_select_mode_get() - * - * @ingroup List - * @since 1.8 - */ -EAPI void elm_list_multi_select_mode_set(Evas_Object *obj, Elm_Object_Multi_Select_Mode mode); - -/** - * Get the list multi select mode. - * - * @param obj The list object - * @return The multi select mode - * (If getting mode is failed, it returns ELM_OBJECT_MULTI_SELECT_MODE_MAX) - * - * @see elm_list_multi_select_set() - * @see elm_list_multi_select_mode_set() - * - * @ingroup List - * @since 1.8 - */ -EAPI Elm_Object_Multi_Select_Mode elm_list_multi_select_mode_get(const Evas_Object *obj); - -/** - * Set which mode to use for the list object. - * - * @param obj The list object - * @param mode One of #Elm_List_Mode: #ELM_LIST_COMPRESS, - * #ELM_LIST_SCROLL, #ELM_LIST_LIMIT or #ELM_LIST_EXPAND. - * - * Set list's resize behavior, transverse axis scroll and - * items cropping. See each mode's description for more details. - * - * @note Default value is #ELM_LIST_SCROLL. - * - * Only one mode at a time can be set. If a previous one was set, it - * will be changed by the new mode after this call. Bitmasks won't - * work here as well. - * - * @warning This function's behavior will clash with those of - * elm_scroller_content_min_limit(), so use either one of them, but - * not both. - * - * @see elm_list_mode_get() - * - * @ingroup List - */ -EAPI void elm_list_mode_set(Evas_Object *obj, Elm_List_Mode mode); - -/** - * Get the mode the list is at. - * - * @param obj The list object - * @return One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL, #ELM_LIST_LIMIT, #ELM_LIST_EXPAND or #ELM_LIST_LAST on errors. - * - * @note see elm_list_mode_set() for more information. - * - * @ingroup List - */ -EAPI Elm_List_Mode elm_list_mode_get(const Evas_Object *obj); - -/** - * Enable or disable horizontal mode on the list object. - * - * @param obj The list object. - * @param horizontal @c EINA_TRUE to enable horizontal or @c EINA_FALSE to - * disable it, i.e., to enable vertical mode. - * - * @note Vertical mode is set by default. - * - * On horizontal mode items are displayed on list from left to right, - * instead of from top to bottom. Also, the list will scroll horizontally. - * Each item will presents left icon on top and right icon, or end, at - * the bottom. - * - * @see elm_list_horizontal_get() - * - * @ingroup List - */ -EAPI void elm_list_horizontal_set(Evas_Object *obj, Eina_Bool horizontal); - -/** - * Get a value whether horizontal mode is enabled or not. - * - * @param obj The list object. - * @return @c EINA_TRUE means horizontal mode selection is enabled. - * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL, - * @c EINA_FALSE is returned. - * - * @see elm_list_horizontal_set() for details. - * - * @ingroup List - */ -EAPI Eina_Bool elm_list_horizontal_get(const Evas_Object *obj); - -/** - * Set the list select mode. - * - * @param obj The list object - * @param mode The select mode - * - * elm_list_select_mode_set() changes item select mode in the list widget. - * - ELM_OBJECT_SELECT_MODE_DEFAULT : Items will only call their selection func and - * callback when first becoming selected. Any further clicks will - * do nothing, unless you set always select mode. - * - ELM_OBJECT_SELECT_MODE_ALWAYS : This means that, even if selected, - * every click will make the selected callbacks be called. - * - ELM_OBJECT_SELECT_MODE_NONE : This will turn off the ability to select items - * entirely and they will neither appear selected nor call selected - * callback functions. - * - * @see elm_list_select_mode_get() - * - * @ingroup List - */ -EAPI void elm_list_select_mode_set(Evas_Object *obj, Elm_Object_Select_Mode mode); - -/** - * Get the list select mode. - * - * @param obj The list object - * @return The select mode - * (If getting mode is failed, it returns ELM_OBJECT_SELECT_MODE_MAX) - * - * @see elm_list_select_mode_set() - * - * @ingroup List - */ -EAPI Elm_Object_Select_Mode elm_list_select_mode_get(const Evas_Object *obj); - -/** - * Append a new item to the list object. - * - * @param obj The list object. - * @param label The label of the list item. - * @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 end The icon object to use for the right side of the item. An - * icon can be any Evas object. - * @param func The function to call when the item is clicked. - * @param data The data to associate with the item for related callbacks. - * - * @return The created item or @c NULL upon failure. - * - * A new item will be created and appended to the list, i.e., will - * be set as @b last item. - * - * Items created with this method can be deleted with elm_object_item_del(). - * - * Associated @p data can be properly freed when item is deleted if a - * callback function is set with elm_object_item_del_cb_set(). - * - * If a function is passed as argument, it will be called every time this item - * is selected, i.e., the user clicks over an unselected item. - * If always select is enabled it will call this function every time - * user clicks over an item (already selected or not). - * If such function isn't needed, just passing - * @c NULL as @p func is enough. The same should be done for @p data. - * - * @note Remember that the label parameter is copied inside the list. So if an - * application dynamically allocated the label, the application should free the - * label after this call. - * - * Simple example (with no function callback or data associated): - * @code - * li = elm_list_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_list_item_append(li, "label", ic, NULL, NULL, NULL); - * elm_list_go(li); - * evas_object_show(li); - * @endcode - * - * @see elm_list_select_mode_set() - * @see elm_object_item_del() - * @see elm_object_item_del_cb_set() - * @see elm_list_clear() - * @see elm_icon_add() - * - * @ingroup List - */ -EAPI Elm_Object_Item *elm_list_item_append(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data); - -/** - * Prepend a new item to the list object. - * - * @param obj The list object. - * @param label The label of the list item. - * @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 end The icon object to use for the right side of the item. An - * icon can be any Evas object. - * @param func The function to call when the item is clicked. - * @param data The data to associate with the item for related callbacks. - * - * @return The created item or @c NULL upon failure. - * - * A new item will be created and prepended to the list, i.e., will - * be set as @b first item. - * - * Items created with this method can be deleted with elm_object_item_del(). - * - * Associated @p data can be properly freed when item is deleted if a - * callback function is set with elm_object_item_del_cb_set(). - * - * If a function is passed as argument, it will be called every time this item - * is selected, i.e., the user clicks over an unselected item. - * If always select is enabled it will call this function every time - * user clicks over an item (already selected or not). - * If such function isn't needed, just passing - * @c NULL as @p func is enough. The same should be done for @p data. - * - * @note Remember that the label parameter is copied inside the list. So if an - * application dynamically allocated the label, the application should free the - * label after this call. - * - * @see elm_list_item_append() for a simple code example. - * @see elm_list_select_mode_set() - * @see elm_object_item_del() - * @see elm_object_item_del_cb_set() - * @see elm_list_clear() - * @see elm_icon_add() - * - * @ingroup List - */ -EAPI Elm_Object_Item *elm_list_item_prepend(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data); - -/** - * Insert a new item into the list object before item @p before. - * - * @param obj The list object. - * @param before The list item to insert before. - * @param label The label of the list item. - * @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 end The icon object to use for the right side of the item. An - * icon can be any Evas object. - * @param func The function to call when the item is clicked. - * @param data The data to associate with the item for related callbacks. - * - * @return The created item or @c NULL upon failure. - * - * A new item will be created and added to the list. Its position in - * this list will be just before item @p before. - * - * Items created with this method can be deleted with elm_object_item_del(). - * - * Associated @p data can be properly freed when item is deleted if a - * callback function is set with elm_object_item_del_cb_set(). - * - * If a function is passed as argument, it will be called every time this item - * is selected, i.e., the user clicks over an unselected item. - * If always select is enabled it will call this function every time - * user clicks over an item (already selected or not). - * If such function isn't needed, just passing - * @c NULL as @p func is enough. The same should be done for @p data. - * - * @note Remember that the label parameter is copied inside the list. So if an - * application dynamically allocated the label, the application should free the - * label after this call. - * - * @see elm_list_item_append() for a simple code example. - * @see elm_list_select_mode_set() - * @see elm_object_item_del() - * @see elm_object_item_del_cb_set() - * @see elm_list_clear() - * @see elm_icon_add() - * - * @ingroup List - */ -EAPI Elm_Object_Item *elm_list_item_insert_before(Evas_Object *obj, Elm_Object_Item *before, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data); - -/** - * Insert a new item into the list object after item @p after. - * - * @param obj The list object. - * @param after The list item to insert after. - * @param label The label of the list item. - * @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 end The icon object to use for the right side of the item. An - * icon can be any Evas object. - * @param func The function to call when the item is clicked. - * @param data The data to associate with the item for related callbacks. - * - * @return The created item or @c NULL upon failure. - * - * A new item will be created and added to the list. Its position in - * this list will be just after item @p after. - * - * Items created with this method can be deleted with elm_object_item_del(). - * - * Associated @p data can be properly freed when item is deleted if a - * callback function is set with elm_object_item_del_cb_set(). - * - * If a function is passed as argument, it will be called every time this item - * is selected, i.e., the user clicks over an unselected item. - * If always select is enabled it will call this function every time - * user clicks over an item (already selected or not). - * If such function isn't needed, just passing - * @c NULL as @p func is enough. The same should be done for @p data. - * - * @note Remember that the label parameter is copied inside the list. So if an - * application dynamically allocated the label, the application should free the - * label after this call. - * - * @see elm_list_item_append() for a simple code example. - * @see elm_list_select_mode_set() - * @see elm_object_item_del() - * @see elm_object_item_del_cb_set() - * @see elm_list_clear() - * @see elm_icon_add() - * - * @ingroup List - */ -EAPI Elm_Object_Item *elm_list_item_insert_after(Evas_Object *obj, Elm_Object_Item *after, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data); - -/** - * Insert a new item into the sorted list object. - * - * @param obj The list object. - * @param label The label of the list item. - * @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 end The icon object to use for the right side of the item. An - * icon can be any Evas object. - * @param func The function to call when the item is clicked. - * @param data The data to associate with the item for related callbacks. - * @param cmp_func The comparing function to be used to sort list - * items by #Elm_Object_Item item handles. This function will - * receive two items and compare them, returning a non-negative integer - * if the second item should be place after the first, or negative value - * if should be placed before. - * - * @return The created item or @c NULL upon failure. - * - * @note This function inserts values into a list object assuming it was - * sorted and the result will be sorted. - * - * A new item will be created and added to the list. Its position in - * this list will be found comparing the new item with previously inserted - * items using function @p cmp_func. - * - * Items created with this method can be deleted with elm_object_item_del(). - * - * Associated @p data can be properly freed when item is deleted if a - * callback function is set with elm_object_item_del_cb_set(). - * - * If a function is passed as argument, it will be called every time this item - * is selected, i.e., the user clicks over an unselected item. - * If always select is enabled it will call this function every time - * user clicks over an item (already selected or not). - * If such function isn't needed, just passing - * @c NULL as @p func is enough. The same should be done for @p data. - * - * @note Remember that the label parameter is copied inside the list. So if an - * application dynamically allocated the label, the application should free the - * label after this call. - * - * @see elm_list_item_append() for a simple code example. - * @see elm_list_select_mode_set() - * @see elm_object_item_del() - * @see elm_object_item_del_cb_set() - * @see elm_list_clear() - * @see elm_icon_add() - * - * @ingroup List - */ -EAPI Elm_Object_Item *elm_list_item_sorted_insert(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data, Eina_Compare_Cb cmp_func); - -/** - * Remove all list's items. - * - * @param obj The list object - * - * @see elm_object_item_del() - * @see elm_list_item_append() - * - * @ingroup List - */ -EAPI void elm_list_clear(Evas_Object *obj); - -/** - * Get a list of all the list items. - * - * @param obj The list object - * @return An @c Eina_List of list items, #Elm_Object_Item, - * or @c NULL on failure. - * - * @see elm_list_item_append() - * @see elm_object_item_del() - * @see elm_list_clear() - * - * @ingroup List - */ -EAPI const Eina_List *elm_list_items_get(const Evas_Object *obj); - -/** - * Get the selected item. - * - * @param obj The list object. - * @return The selected list item. - * - * The selected item can be unselected with function - * elm_list_item_selected_set(). - * - * The selected item always will be highlighted on list. - * - * @see elm_list_selected_items_get() - * - * @ingroup List - */ -EAPI Elm_Object_Item *elm_list_selected_item_get(const Evas_Object *obj); - -/** - * Return a list of the currently selected list items. - * - * @param obj The list object. - * @return An @c Eina_List of list items, #Elm_Object_Item, - * or @c NULL on failure. - * - * Multiple items can be selected if multi select is enabled. It can be - * done with elm_list_multi_select_set(). - * - * @see elm_list_selected_item_get() - * @see elm_list_multi_select_set() - * - * @ingroup List - */ -EAPI const Eina_List *elm_list_selected_items_get(const Evas_Object *obj); - -/** - * Get the first item in the list - * - * This returns the first item in the list. - * - * @param obj The list object - * @return The first item, or NULL if none - * - * @ingroup List - */ -EAPI Elm_Object_Item *elm_list_first_item_get(const Evas_Object *obj); - -/** - * Get the last item in the list - * - * This returns the last item in the list. - * - * @return The last item, or NULL if none - * - * @ingroup List - */ -EAPI Elm_Object_Item *elm_list_last_item_get(const Evas_Object *obj); - -/** - * Get the item that is at the x, y canvas coords. - * - * @param obj The list object. - * @param x The input x coordinate - * @param y The input y coordinate - * @param posret The position relative to the item returned here - * @return The item at the coordinates or NULL if none - * - * This returns the item at the given coordinates (which are canvas - * relative, not object-relative). If an item is at that coordinate, - * that item handle is returned, and if @p posret is not NULL, the - * integer pointed to is set to a value of -1, 0 or 1, depending if - * the coordinate is on the upper portion of that item (-1), on the - * middle section (0) or on the lower part (1). If NULL is returned as - * an item (no item found there), then posret may indicate -1 or 1 - * based if the coordinate is above or below all items respectively in - * the list. - * - * - * @ingroup List - */ -EAPI Elm_Object_Item *elm_list_at_xy_item_get(const Evas_Object *obj, Evas_Coord x, Evas_Coord y, int *posret); - -/** - * Set focus upon items selection mode - * - * @param obj The genlist object - * @param enabled The tree effect status - * (EINA_TRUE = enabled, EINA_FALSE = disabled) - * - * When enabled, every selection of an item inside the genlist will automatically set focus to - * its first focusable widget from the left. This is true of course if the selection was made by - * clicking an unfocusable area in an item or selecting it with a key movement. Clicking on a - * focusable widget inside an item will couse this particular item to get focus as usual. - * - * @ingroup List - */ -EAPI void elm_list_focus_on_selection_set(Evas_Object *obj, Eina_Bool enabled); - -/** - * Get whether focus upon item's selection mode is enabled. - * - * @param obj The genlist object - * @return The tree effect status - * (EINA_TRUE = enabled, EINA_FALSE = disabled) - * - * @ingroup List - */ -EAPI Eina_Bool elm_list_focus_on_selection_get(const Evas_Object *obj); +#include "elm_list.eo.legacy.h" \ No newline at end of file diff --git a/src/lib/elm_map_eo.h b/src/lib/elm_map_eo.h index ff0fb77..db53755 100644 --- a/src/lib/elm_map_eo.h +++ b/src/lib/elm_map_eo.h @@ -1,635 +1,2 @@ #include "elm_map_pan.eo.h" -#include "elm_map.eo.h" - -#if 0 -#define ELM_OBJ_MAP_PAN_CLASS elm_obj_map_pan_class_get() - -const Eo_Class *elm_obj_map_pan_class_get(void) EINA_CONST; - -#define ELM_OBJ_MAP_CLASS elm_obj_map_class_get() - -const Eo_Class *elm_obj_map_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_MAP_BASE_ID; - -enum -{ - ELM_OBJ_MAP_SUB_ID_ZOOM_SET, - ELM_OBJ_MAP_SUB_ID_ZOOM_GET, - ELM_OBJ_MAP_SUB_ID_ZOOM_MODE_SET, - ELM_OBJ_MAP_SUB_ID_ZOOM_MODE_GET, - ELM_OBJ_MAP_SUB_ID_ZOOM_MAX_SET, - ELM_OBJ_MAP_SUB_ID_ZOOM_MAX_GET, - ELM_OBJ_MAP_SUB_ID_ZOOM_MIN_SET, - ELM_OBJ_MAP_SUB_ID_ZOOM_MIN_GET, - ELM_OBJ_MAP_SUB_ID_REGION_BRING_IN, - ELM_OBJ_MAP_SUB_ID_REGION_SHOW, - ELM_OBJ_MAP_SUB_ID_REGION_GET, - ELM_OBJ_MAP_SUB_ID_PAUSED_SET, - ELM_OBJ_MAP_SUB_ID_PAUSED_GET, - ELM_OBJ_MAP_SUB_ID_ROTATE_SET, - ELM_OBJ_MAP_SUB_ID_ROTATE_GET, - ELM_OBJ_MAP_SUB_ID_WHEEL_DISABLED_SET, - ELM_OBJ_MAP_SUB_ID_WHEEL_DISABLED_GET, - ELM_OBJ_MAP_SUB_ID_TILE_LOAD_STATUS_GET, - ELM_OBJ_MAP_SUB_ID_CANVAS_TO_REGION_CONVERT, - ELM_OBJ_MAP_SUB_ID_REGION_TO_CANVAS_CONVERT, - ELM_OBJ_MAP_SUB_ID_USER_AGENT_SET, - ELM_OBJ_MAP_SUB_ID_USER_AGENT_GET, - ELM_OBJ_MAP_SUB_ID_SOURCE_SET, - ELM_OBJ_MAP_SUB_ID_SOURCE_GET, - ELM_OBJ_MAP_SUB_ID_SOURCES_GET, - ELM_OBJ_MAP_SUB_ID_ROUTE_ADD, - ELM_OBJ_MAP_SUB_ID_NAME_ADD, - ELM_OBJ_MAP_SUB_ID_OVERLAY_ADD, - ELM_OBJ_MAP_SUB_ID_OVERLAYS_GET, - ELM_OBJ_MAP_SUB_ID_OVERLAY_CLASS_ADD, - ELM_OBJ_MAP_SUB_ID_OVERLAY_BUBBLE_ADD, - ELM_OBJ_MAP_SUB_ID_OVERLAY_ROUTE_ADD, - ELM_OBJ_MAP_SUB_ID_OVERLAY_LINE_ADD, - ELM_OBJ_MAP_SUB_ID_OVERLAY_POLYGON_ADD, - ELM_OBJ_MAP_SUB_ID_OVERLAY_CIRCLE_ADD, - ELM_OBJ_MAP_SUB_ID_OVERLAY_SCALE_ADD, - ELM_OBJ_MAP_SUB_ID_TRACK_ADD, - ELM_OBJ_MAP_SUB_ID_TRACK_REMOVE, - ELM_OBJ_MAP_SUB_ID_LAST -}; - -#define ELM_OBJ_MAP_ID(sub_id) (ELM_OBJ_MAP_BASE_ID + sub_id) - - -/** - * @def elm_obj_map_zoom_set - * @since 1.8 - * - * Set the zoom level of the map. - * - * @param[in] zoom - * - * @see elm_map_zoom_set - * - * @ingroup Map - */ -#define elm_obj_map_zoom_set(zoom) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_ZOOM_SET), EO_TYPECHECK(int, zoom) - -/** - * @def elm_obj_map_zoom_get - * @since 1.8 - * - * Get the zoom level of the map. - * - * @param[out] ret - * - * @see elm_map_zoom_get - * - * @ingroup Map - */ -#define elm_obj_map_zoom_get(ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_ZOOM_GET), EO_TYPECHECK(int *, ret) - -/** - * @def elm_obj_map_zoom_mode_set - * @since 1.8 - * - * Set the zoom mode used by the map object. - * - * @param[in] mode - * - * @see elm_map_zoom_mode_set - * - * @ingroup Map - */ -#define elm_obj_map_zoom_mode_set(mode) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_ZOOM_MODE_SET), EO_TYPECHECK(Elm_Map_Zoom_Mode, mode) - -/** - * @def elm_obj_map_zoom_mode_get - * @since 1.8 - * - * Get the zoom mode used by the map object. - * - * @param[out] ret - * - * @see elm_map_zoom_mode_get - * - * @ingroup Map - */ -#define elm_obj_map_zoom_mode_get(ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_ZOOM_MODE_GET), EO_TYPECHECK(Elm_Map_Zoom_Mode *, ret) - -/** - * @def elm_obj_map_zoom_max_set - * @since 1.8 - * - * Set the maximum zoom of the source. - * - * @param[in] zoom - * - * @see elm_map_zoom_max_set - * - * @ingroup Map - */ -#define elm_obj_map_zoom_max_set(zoom) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_ZOOM_MAX_SET), EO_TYPECHECK(int, zoom) - -/** - * @def elm_obj_map_zoom_max_get - * @since 1.8 - * - * Get the maximum zoom of the source. - * - * @param[out] ret - * - * @see elm_map_zoom_max_get - * - * @ingroup Map - */ -#define elm_obj_map_zoom_max_get(ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_ZOOM_MAX_GET), EO_TYPECHECK(int *, ret) - -/** - * @def elm_obj_map_zoom_min_set - * @since 1.8 - * - * Set the minimum zoom of the source. - * - * @param[in] zoom - * - * @see elm_map_zoom_min_set - * - * @ingroup Map - */ -#define elm_obj_map_zoom_min_set(zoom) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_ZOOM_MIN_SET), EO_TYPECHECK(int, zoom) - -/** - * @def elm_obj_map_zoom_min_get - * @since 1.8 - * - * Get the minimum zoom of the source. - * - * @param[out] ret - * - * @see elm_map_zoom_min_get - * - * @ingroup Map - */ -#define elm_obj_map_zoom_min_get(ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_ZOOM_MIN_GET), EO_TYPECHECK(int *, ret) - -/** - * @def elm_obj_map_region_bring_in - * @since 1.8 - * - * Animatedly bring in given coordinates to the center of the map. - * - * @param[in] lon - * @param[in] lat - * - * @see elm_map_region_bring_in - * - * @ingroup Map - */ -#define elm_obj_map_region_bring_in(lon, lat) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_REGION_BRING_IN), EO_TYPECHECK(double, lon), EO_TYPECHECK(double, lat) - -/** - * @def elm_obj_map_region_show - * @since 1.8 - * - * Show the given coordinates at the center of the map, immediately. - * - * @param[in] lon - * @param[in] lat - * - * @see elm_map_region_show - * - * @ingroup Map - */ -#define elm_obj_map_region_show(lon, lat) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_REGION_SHOW), EO_TYPECHECK(double, lon), EO_TYPECHECK(double, lat) - -/** - * @def elm_obj_map_region_get - * @since 1.8 - * - * Get the current geographic coordinates of the map. - * - * @param[out] lon - * @param[out] lat - * - * @see elm_map_region_get - * - * @ingroup Map - */ -#define elm_obj_map_region_get(lon, lat) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_REGION_GET), EO_TYPECHECK(double *, lon), EO_TYPECHECK(double *, lat) - -/** - * @def elm_obj_map_paused_set - * @since 1.8 - * - * Pause or unpause the map. - * - * @param[in] paused - * - * @see elm_map_paused_set - * - * @ingroup Map - */ -#define elm_obj_map_paused_set(paused) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_PAUSED_SET), EO_TYPECHECK(Eina_Bool, paused) - -/** - * @def elm_obj_map_paused_get - * @since 1.8 - * - * Get a value whether map is paused or not. - * - * @param[out] ret - * - * @see elm_map_paused_get - * - * @ingroup Map - */ -#define elm_obj_map_paused_get(ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_PAUSED_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_map_rotate_set - * @since 1.8 - * - * Rotate the map. - * - * @param[in] degree - * @param[in] cx - * @param[in] cy - * - * @see elm_map_rotate_set - * - * @ingroup Map - */ -#define elm_obj_map_rotate_set(degree, cx, cy) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_ROTATE_SET), EO_TYPECHECK(double, degree), EO_TYPECHECK(Evas_Coord, cx), EO_TYPECHECK(Evas_Coord, cy) - -/** - * @def elm_obj_map_rotate_get - * @since 1.8 - * - * Get the rotate degree of the map - * - * @param[out] degree - * @param[out] cx - * @param[out] cy - * - * @see elm_map_rotate_get - * - * @ingroup Map - */ -#define elm_obj_map_rotate_get(degree, cx, cy) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_ROTATE_GET), EO_TYPECHECK(double *, degree), EO_TYPECHECK(Evas_Coord *, cx), EO_TYPECHECK(Evas_Coord *, cy) - -/** - * @def elm_obj_map_wheel_disabled_set - * @since 1.8 - * - * Enable or disable mouse wheel to be used to zoom in / out the map. - * - * @param[in] disabled - * - * @see elm_map_wheel_disabled_set - * - * @ingroup Map - */ -#define elm_obj_map_wheel_disabled_set(disabled) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_WHEEL_DISABLED_SET), EO_TYPECHECK(Eina_Bool, disabled) - -/** - * @def elm_obj_map_wheel_disabled_get - * @since 1.8 - * - * Get a value whether mouse wheel is enabled or not. - * - * @param[out] ret - * - * @see elm_map_wheel_disabled_get - * - * @ingroup Map - */ -#define elm_obj_map_wheel_disabled_get(ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_WHEEL_DISABLED_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_map_tile_load_status_get - * @since 1.8 - * - * Get the information of tile load status. - * - * @param[out] try_num - * @param[out] finish_num - * - * @see elm_map_tile_load_status_get - * - * @ingroup Map - */ -#define elm_obj_map_tile_load_status_get(try_num, finish_num) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_TILE_LOAD_STATUS_GET), EO_TYPECHECK(int *, try_num), EO_TYPECHECK(int *, finish_num) - -/** - * @def elm_obj_map_canvas_to_region_convert - * @since 1.8 - * - * Convert canvas coordinates into geographic coordinates - * - * @param[in] x - * @param[in] y - * @param[out] lon - * @param[out] lat - * - * @see elm_map_canvas_to_region_convert - * - * @ingroup Map - */ -#define elm_obj_map_canvas_to_region_convert(x, y, lon, lat) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_CANVAS_TO_REGION_CONVERT), EO_TYPECHECK(Evas_Coord, x), EO_TYPECHECK(Evas_Coord, y), EO_TYPECHECK(double *, lon), EO_TYPECHECK(double *, lat) - -/** - * @def elm_obj_map_region_to_canvas_convert - * @since 1.8 - * - * Convert geographic coordinates (longitude, latitude) - * - * @param[in] lon - * @param[in] lat - * @param[out] x - * @param[out] y - * - * @see elm_map_region_to_canvas_convert - * - * @ingroup Map - */ -#define elm_obj_map_region_to_canvas_convert(lon, lat, x, y) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_REGION_TO_CANVAS_CONVERT), EO_TYPECHECK(double, lon), EO_TYPECHECK(double, lat), EO_TYPECHECK(Evas_Coord *, x), EO_TYPECHECK(Evas_Coord *, y) - -/** - * @def elm_obj_map_user_agent_set - * @since 1.8 - * - * Set the user agent used by the map object to access routing services. - * - * @param[in] user_agent - * - * @see elm_map_user_agent_set - * - * @ingroup Map - */ -#define elm_obj_map_user_agent_set(user_agent) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_USER_AGENT_SET), EO_TYPECHECK(const char *, user_agent) - -/** - * @def elm_obj_map_user_agent_get - * @since 1.8 - * - * Get the user agent used by the map object. - * - * @param[out] ret - * - * @see elm_map_user_agent_get - * - * @ingroup Map - */ -#define elm_obj_map_user_agent_get(ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_USER_AGENT_GET), EO_TYPECHECK(const char **, ret) - -/** - * @def elm_obj_map_source_set - * @since 1.8 - * - * Set the current source of the map for a specific type. - * - * @param[in] type - * @param[in] source_name - * - * @see elm_map_source_set - * - * @ingroup Map - */ -#define elm_obj_map_source_set(type, source_name) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_SOURCE_SET), EO_TYPECHECK(Elm_Map_Source_Type, type), EO_TYPECHECK(const char *, source_name) - -/** - * @def elm_obj_map_source_get - * @since 1.8 - * - * Get the name of currently used source for a specific type. - * - * @param[in] type - * @param[out] ret - * - * @see elm_map_source_get - * - * @ingroup Map - */ -#define elm_obj_map_source_get(type, ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_SOURCE_GET), EO_TYPECHECK(Elm_Map_Source_Type, type), EO_TYPECHECK(const char **, ret) - -/** - * @def elm_obj_map_sources_get - * @since 1.8 - * - * Get the names of available sources for a specific type. - * - * @param[in] type - * @param[out] ret - * - * @see elm_map_sources_get - * - * @ingroup Map - */ -#define elm_obj_map_sources_get(type, ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_SOURCES_GET), EO_TYPECHECK(Elm_Map_Source_Type, type), EO_TYPECHECK(const char ***, ret) - -/** - * @def elm_obj_map_route_add - * @since 1.8 - * - * Add a new route to the map object. - * - * @param[in] type - * @param[in] method - * @param[in] flon - * @param[in] flat - * @param[in] tlon - * @param[in] tlat - * @param[in] route_cb - * @param[in] data - * @param[out] ret - * - * @see elm_map_route_add - * - * @ingroup Map - */ -#define elm_obj_map_route_add(type, method, flon, flat, tlon, tlat, route_cb, data, ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_ROUTE_ADD), EO_TYPECHECK(Elm_Map_Route_Type, type), EO_TYPECHECK(Elm_Map_Route_Method, method), EO_TYPECHECK(double, flon), EO_TYPECHECK(double, flat), EO_TYPECHECK(double, tlon), EO_TYPECHECK(double, tlat), EO_TYPECHECK(Elm_Map_Route_Cb, route_cb), EO_TYPECHECK(void *, data), EO_TYPECHECK(Elm_Map_Route **, ret) - -/** - * @def elm_obj_map_name_add - * @since 1.8 - * - * Request a address or geographic coordinates(longitude, latitude) - * - * @param[in] address - * @param[in] lon - * @param[in] lat - * @param[in] name_cb - * @param[in] data - * @param[out] ret - * - * @see elm_map_name_add - * - * @ingroup Map - */ -#define elm_obj_map_name_add(address, lon, lat, name_cb, data, ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_NAME_ADD), EO_TYPECHECK(const char *, address), EO_TYPECHECK(double, lon), EO_TYPECHECK(double, lat), EO_TYPECHECK(Elm_Map_Name_Cb, name_cb), EO_TYPECHECK(void *, data), EO_TYPECHECK(Elm_Map_Name **, ret) - -/** - * @def elm_obj_map_overlay_add - * @since 1.8 - * - * Add a new overlay to the map object. This overlay has a default type. - * - * @param[in] lon - * @param[in] lat - * @param[out] ret - * - * @see elm_map_overlay_add - * - * @ingroup Map - */ -#define elm_obj_map_overlay_add(lon, lat, ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_OVERLAY_ADD), EO_TYPECHECK(double, lon), EO_TYPECHECK(double, lat), EO_TYPECHECK(Elm_Map_Overlay **, ret) - -/** - * @def elm_obj_map_overlays_get - * @since 1.8 - * - * Return all overlays in the map object. - * - * @param[out] ret - * - * @see elm_map_overlays_get - * - * @ingroup Map - */ -#define elm_obj_map_overlays_get(ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_OVERLAYS_GET), EO_TYPECHECK(Eina_List **, ret) - -/** - * @def elm_obj_map_overlay_class_add - * @since 1.8 - * - * Add a new class overlay to the map object. - * - * @param[out] ret - * - * @see elm_map_overlay_class_add - * - * @ingroup Map - */ -#define elm_obj_map_overlay_class_add(ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_OVERLAY_CLASS_ADD), EO_TYPECHECK(Elm_Map_Overlay **, ret) - -/** - * @def elm_obj_map_overlay_bubble_add - * @since 1.8 - * - * Add a new bubble overlay to the map object. - * - * @param[out] ret - * - * @see elm_map_overlay_bubble_add - * - * @ingroup Map - */ -#define elm_obj_map_overlay_bubble_add(ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_OVERLAY_BUBBLE_ADD), EO_TYPECHECK(Elm_Map_Overlay **, ret) - -/** - * @def elm_obj_map_overlay_route_add - * @since 1.8 - * - * Add a new route overlay to the map object. - * - * @param[in] route - * @param[out] ret - * - * @see elm_map_overlay_route_add - * - * @ingroup Map - */ -#define elm_obj_map_overlay_route_add(route, ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_OVERLAY_ROUTE_ADD), EO_TYPECHECK(const Elm_Map_Route *, route), EO_TYPECHECK(Elm_Map_Overlay **, ret) - -/** - * @def elm_obj_map_overlay_line_add - * @since 1.8 - * - * Add a new line overlay to the map object. - * - * @param[in] flon - * @param[in] flat - * @param[in] tlon - * @param[in] tlat - * @param[out] ret - * - * @see elm_map_overlay_line_add - * - * @ingroup Map - */ -#define elm_obj_map_overlay_line_add(flon, flat, tlon, tlat, ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_OVERLAY_LINE_ADD), EO_TYPECHECK(double, flon), EO_TYPECHECK(double, flat), EO_TYPECHECK(double, tlon), EO_TYPECHECK(double, tlat), EO_TYPECHECK(Elm_Map_Overlay **, ret) - -/** - * @def elm_obj_map_overlay_polygon_add - * @since 1.8 - * - * Add a new polygon overlay to the map object. - * - * @param[out] ret - * - * @see elm_map_overlay_polygon_add - * - * @ingroup Map - */ -#define elm_obj_map_overlay_polygon_add(ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_OVERLAY_POLYGON_ADD), EO_TYPECHECK(Elm_Map_Overlay **, ret) - -/** - * @def elm_obj_map_overlay_circle_add - * @since 1.8 - * - * Add a new circle overlay to the map object. - * - * @param[in] lon - * @param[in] lat - * @param[in] radius - * @param[out] ret - * - * @see elm_map_overlay_circle_add - * - * @ingroup Map - */ -#define elm_obj_map_overlay_circle_add(lon, lat, radius, ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_OVERLAY_CIRCLE_ADD), EO_TYPECHECK(double, lon), EO_TYPECHECK(double, lat), EO_TYPECHECK(double, radius), EO_TYPECHECK(Elm_Map_Overlay **, ret) - -/** - * @def elm_obj_map_overlay_scale_add - * @since 1.8 - * - * Add a new scale overlay to the map object. - * - * @param[in] x - * @param[in] y - * @param[out] ret - * - * @see elm_map_overlay_scale_add - * - * @ingroup Map - */ -#define elm_obj_map_overlay_scale_add(x, y, ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_OVERLAY_SCALE_ADD), EO_TYPECHECK(Evas_Coord, x), EO_TYPECHECK(Evas_Coord, y), EO_TYPECHECK(Elm_Map_Overlay **, ret) - -/** - * @def elm_obj_map_track_add - * @since 1.8 - * - * Add a track on the map - * - * @param[in] emap - * @param[out] ret - * - * @see elm_map_track_add - * - * @ingroup Map - */ -#define elm_obj_map_track_add(emap, ret) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_TRACK_ADD), EO_TYPECHECK(void *, emap), EO_TYPECHECK(Evas_Object **, ret) - -/** - * @def elm_obj_map_track_remove - * @since 1.8 - * - * Remove a track from the map - * - * @param[in] route - * - * @see elm_map_track_remove - * - * @ingroup Map - */ -#define elm_obj_map_track_remove(route) ELM_OBJ_MAP_ID(ELM_OBJ_MAP_SUB_ID_TRACK_REMOVE), EO_TYPECHECK(Evas_Object *, route) -#endif +#include "elm_map.eo.h" \ No newline at end of file diff --git a/src/lib/elm_map_legacy.h b/src/lib/elm_map_legacy.h index 6c74b69..ca34589 100644 --- a/src/lib/elm_map_legacy.h +++ b/src/lib/elm_map_legacy.h @@ -10,726 +10,4 @@ */ EAPI Evas_Object *elm_map_add(Evas_Object *parent); -/** - * Set the zoom level of the map. - * - * @param obj The map object. - * @param zoom The zoom level to set. - * - * This sets the zoom level. - * - * It will respect limits defined by elm_map_zoom_min_set() and - * elm_map_zoom_max_set(). - * - * By default these values are 0 (world map) and 18 (maximum zoom). - * - * This function should be used when zoom mode is set to #ELM_MAP_ZOOM_MODE_MANUAL. - * This is the default mode, and can be set with elm_map_zoom_mode_set(). - * - * @see elm_map_zoom_mode_set() - * @see elm_map_zoom_get() - * - * @ingroup Map - */ -EAPI void elm_map_zoom_set(Evas_Object *obj, int zoom); - -/** - * Get the zoom level of the map. - * - * @param obj The map object. - * @return The current zoom level. - * - * This returns the current zoom level of the map object. - * - * Note that if you set the fill mode to other than #ELM_MAP_ZOOM_MODE_MANUAL - * (which is the default), the zoom level may be changed at any time by the - * map object itself to account for map size and map viewport size. - * - * @see elm_map_zoom_set() for details. - * - * @ingroup Map - */ -EAPI int elm_map_zoom_get(const Evas_Object *obj); - -/** - * Set the zoom mode used by the map object. - * - * @param obj The map object. - * @param mode The zoom mode of the map, being it one of #ELM_MAP_ZOOM_MODE_MANUAL - * (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT, or #ELM_MAP_ZOOM_MODE_AUTO_FILL. - * - * This sets the zoom mode to manual or one of the automatic levels. - * Manual (#ELM_MAP_ZOOM_MODE_MANUAL) means that zoom is set manually by - * elm_map_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 map object to automatically - * adjust zoom mode based on properties. #ELM_MAP_ZOOM_MODE_AUTO_FIT will - * adjust zoom so the map fits inside the scroll frame with no pixels - * outside this area. #ELM_MAP_ZOOM_MODE_AUTO_FILL will be similar but - * ensure no pixels within the frame are left unfilled. Do not forget that - * the valid sizes are 2^zoom, consequently the map may be smaller than - * the scroller view. - * - * @see elm_map_zoom_set() - * - * @ingroup Map - */ -EAPI void elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode); - -/** - * Get the zoom mode used by the map object. - * - * @param obj The map object. - * @return The zoom mode of the map, being it one of #ELM_MAP_ZOOM_MODE_MANUAL - * (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT, or #ELM_MAP_ZOOM_MODE_AUTO_FILL. - * - * This function returns the current zoom mode used by the map object. - * - * @see elm_map_zoom_mode_set() for more details. - * - * @ingroup Map - */ -EAPI Elm_Map_Zoom_Mode elm_map_zoom_mode_get(const Evas_Object *obj); - -/** - * Set the maximum zoom of the source. - * - * @param obj The map object. - * @param zoom New maximum zoom value to be used. - * - * @see elm_map_zoom_max_get() for details. - * - * @ingroup Map - */ -EAPI void elm_map_zoom_max_set(Evas_Object *obj, int zoom); - -/** - * Get the maximum zoom of the source. - * - * @param obj The map object. - * @return Returns the maximum zoom of the source. - * - * @see elm_map_zoom_max_set() for details. - * - * @ingroup Map - */ -EAPI int elm_map_zoom_max_get(const Evas_Object *obj); - -/** - * Set the minimum zoom of the source. - * - * @param obj The map object. - * @param zoom New minimum zoom value to be used. - * - * @see elm_map_zoom_min_get() for details. - * - * @ingroup Map - */ -EAPI void elm_map_zoom_min_set(Evas_Object *obj, int zoom); - -/** - * Get the minimum zoom of the source. - * - * @param obj The map object. - * @return Returns the minimum zoom of the source. - * - * @see elm_map_zoom_min_set() for details. - * - * @ingroup Map - */ -EAPI int elm_map_zoom_min_get(const Evas_Object *obj); - -/** - * Animatedly bring in given coordinates to the center of the map. - * - * @param obj The map object. - * @param lon Longitude to center at. - * @param lat Latitude to center at. - * - * This causes map to jump to the given @p lat and @p lon coordinates - * and show it (by scrolling) in the center of the viewport, if it is not - * already centered. This will use animation to do so and take a period - * of time to complete. - * - * @see elm_map_region_show() for a function to avoid animation. - * @see elm_map_region_get() - * - * @ingroup Map - */ -EAPI void elm_map_region_bring_in(Evas_Object *obj, double lon, double lat); - -/** - * Show the given coordinates at the center of the map, @b immediately. - * - * @param obj The map object. - * @param lon Longitude to center at. - * @param lat Latitude to center at. - * - * This causes map to @b redraw its viewport's contents to the - * region containing the given @p lat and @p lon, that will be moved to the - * center of the map. - * - * @see elm_map_region_bring_in() for a function to move with animation. - * @see elm_map_region_get() - * - * @ingroup Map - */ -EAPI void elm_map_region_show(Evas_Object *obj, double lon, double lat); - -/** - * Get the current geographic coordinates of the map. - * - * @param obj The map object. - * @param lon Pointer to store longitude. - * @param lat Pointer to store latitude. - * - * This gets the current center coordinates of the map object. It can be - * set by elm_map_region_bring_in() and elm_map_region_show(). - * - * @see elm_map_region_bring_in() - * @see elm_map_region_show() - * - * @ingroup Map - */ -EAPI void elm_map_region_get(const Evas_Object *obj, double *lon, double *lat); - -/** - * Pause or unpause the map. - * - * @param obj The map object. - * @param paused Use @c EINA_TRUE to pause the map @p obj or @c EINA_FALSE - * to unpause it. - * - * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE) - * for map. - * - * The default is off. - * - * This will stop zooming using animation, changing zoom levels will - * change instantly. This will stop any existing animations that are running. - * - * @see elm_map_paused_get() - * - * @ingroup Map - */ -EAPI void elm_map_paused_set(Evas_Object *obj, Eina_Bool paused); - -/** - * Get a value whether map is paused or not. - * - * @param obj The map object. - * @return @c EINA_TRUE means map is pause. @c EINA_FALSE indicates - * it is not. - * - * This gets the current paused state for the map object. - * - * @see elm_map_paused_set() for details. - * - * @ingroup Map - */ -EAPI Eina_Bool elm_map_paused_get(const Evas_Object *obj); - -/** - * Rotate the map. - * - * @param obj The map object. - * @param degree Angle from 0.0 to 360.0 to rotate around Z axis. - * @param cx Rotation's center horizontal position. - * @param cy Rotation's center vertical position. - * - * @see elm_map_rotate_get() - * - * @ingroup Map - */ -EAPI void elm_map_rotate_set(Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy); - -/** - * Get the rotate degree of the map - * - * @param obj The map object - * @param degree Pointer to store degrees from 0.0 to 360.0 - * to rotate around Z axis. - * @param cx Pointer to store rotation's center horizontal position. - * @param cy Pointer to store rotation's center vertical position. - * - * @see elm_map_rotate_set() to set map rotation. - * - * @ingroup Map - */ -EAPI void elm_map_rotate_get(const Evas_Object *obj, double *degree, Evas_Coord *cx, Evas_Coord *cy); - -/** - * Enable or disable mouse wheel to be used to zoom in / out the map. - * - * @param obj The map object. - * @param disabled Use @c EINA_TRUE to disable mouse wheel or @c EINA_FALSE - * to enable it. - * - * Mouse wheel can be used for the user to zoom in or zoom out the map. - * - * It's disabled by default. - * - * @see elm_map_wheel_disabled_get() - * - * @ingroup Map - */ -EAPI void elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled); - -/** - * Get a value whether mouse wheel is enabled or not. - * - * @param obj The map object. - * @return @c EINA_TRUE means map is disabled. @c EINA_FALSE indicates - * it is enabled. - * - * Mouse wheel can be used for the user to zoom in or zoom out the map. - * - * @see elm_map_wheel_disabled_set() for details. - * - * @ingroup Map - */ -EAPI Eina_Bool elm_map_wheel_disabled_get(const Evas_Object *obj); - -/** - * Get the information of tile load status. - * - * @param obj The map object. - * @param try_num Pointer to store number of tiles download requested. - * @param finish_num Pointer to store number of tiles successfully downloaded. - * - * This gets the current tile loaded status for the map object. - * - * @ingroup Map - */ -EAPI void elm_map_tile_load_status_get(const Evas_Object *obj, int *try_num, int *finish_num); - -/** - * Convert canvas coordinates into geographic coordinates - * (longitude, latitude). - * - * @param obj The map object. - * @param x horizontal coordinate of the point to convert. - * @param y vertical coordinate of the point to convert. - * @param lon A pointer to the longitude. - * @param lat A pointer to the latitude. - * - * This gets longitude and latitude from canvas x, y coordinates. The canvas - * coordinates mean x, y coordinate from current viewport. - * - * see elm_map_region_to_canvas_convert() - * - * @ingroup Map - */ -EAPI void elm_map_canvas_to_region_convert(const Evas_Object *obj, const Evas_Coord x, const Evas_Coord y, double *lon, double *lat); - -/** - * Convert geographic coordinates (longitude, latitude) - * into canvas coordinates. - * - * @param obj The map object. - * @param lon The longitude to convert. - * @param lat The latitude to convert. - * @param x A pointer to horizontal coordinate. - * @param y A pointer to vertical coordinate. - * - * This gets canvas x, y coordinates from longitude and latitude. The canvas - * coordinates mean x, y coordinate from current viewport. - * - * see elm_map_canvas_to_region_convert() - * - * @ingroup Map - */ -EAPI void elm_map_region_to_canvas_convert(const Evas_Object *obj, double lon, double lat, Evas_Coord *x, Evas_Coord *y); - -/** - * Set the user agent used by the map object to access routing services. - * - * @param obj The map object. - * @param user_agent The user agent to be used by the map. - * - * User agent is a client application implementing a network protocol used - * in communications within a client–server distributed computing system - * - * The @p user_agent identification string will transmitted in a header - * field @c User-Agent. - * - * @see elm_map_user_agent_get() - * - * @ingroup Map - */ -EAPI void elm_map_user_agent_set(Evas_Object *obj, const char *user_agent); - -/** - * Get the user agent used by the map object. - * - * @param obj The map object. - * @return The user agent identification string used by the map. - * - * @see elm_map_user_agent_set() for details. - * - * @ingroup Map - */ -EAPI const char *elm_map_user_agent_get(const Evas_Object *obj); - -/** - * Set the current source of the map for a specific type. - * - * @param obj The map object. - * @param type source type. - * @param source_name The source to be used. - * - * Map widget retrieves tile images that composes the map from a web service. - * This web service can be set with this method - * for ELM_MAP_SOURCE_TYPE_TILE type. - * A different service can return a different maps with different - * information and it can use different zoom values. - * - * Map widget provides route data based on a external web service. - * This web service can be set with this method - * for ELM_MAP_SOURCE_TYPE_ROUTE type. - * - * Map widget also provide geoname data based on a external web service. - * This web service can be set with this method - * for ELM_MAP_SOURCE_TYPE_NAME type. - * - * The @p source_name need to match one of the names provided by - * elm_map_sources_get(). - * - * The current source can be get using elm_map_source_get(). - * - * @see elm_map_sources_get() - * @see elm_map_source_get() - * - * @ingroup Map - */ -EAPI void elm_map_source_set(Evas_Object *obj, Elm_Map_Source_Type type, const char *source_name); - -/** - * Get the name of currently used source for a specific type. - * - * @param obj The map object. - * @param type source type. - * @return Returns the name of the source in use. - * - * @see elm_map_sources_get() - * @see elm_map_source_set() - * - * @ingroup Map - */ -EAPI const char *elm_map_source_get(const Evas_Object *obj, Elm_Map_Source_Type type); - -/** - * Get the names of available sources for a specific type. - * - * @param obj The map object. - * @param type source type. - * @return The char pointer array of source names. - * - * It will provide a list with all available sources. - * Current source can be set by elm_map_source_set(), or get with - * elm_map_source_get(). - * - * At least available sources of tile type: - * @li "Mapnik" - * @li "Osmarender" - * @li "CycleMap" - * @li "Maplint" - * - * At least available sources of route type: - * @li "Yours" - * - * At least available sources of name type: - * @li "Nominatim" - * - * @see elm_map_source_set() - * @see elm_map_source_get() - * - * @ingroup Map - */ -EAPI const char **elm_map_sources_get(const Evas_Object *obj, Elm_Map_Source_Type type); - -/** - * Add a new route to the map object. - * - * @param obj The map object. - * @param type The type of transport to be considered when tracing a route. - * @param method The routing method, what should be prioritized. - * @param flon The start longitude. - * @param flat The start latitude. - * @param tlon The destination longitude. - * @param tlat The destination latitude. - * @param route_cb The route to be traced. - * @param data A pointer of user data. - * - * @return The created route or @c NULL upon failure. - * - * A route will be traced by point on coordinates (@p flat, @p flon) - * to point on coordinates (@p tlat, @p tlon), using the route service - * set with elm_map_source_set(). - * - * It will take @p type on consideration to define the route, - * depending if the user will be walking or driving, the route may vary. - * One of #ELM_MAP_ROUTE_TYPE_MOTOCAR, #ELM_MAP_ROUTE_TYPE_BICYCLE, - * or #ELM_MAP_ROUTE_TYPE_FOOT need to be used. - * - * Another parameter is what the route should prioritize, the minor distance - * or the less time to be spend on the route. So @p method should be one - * of #ELM_MAP_ROUTE_METHOD_SHORTEST or #ELM_MAP_ROUTE_METHOD_FASTEST. - * - * Routes created with this method can be deleted with - * elm_map_route_del(), - * and distance can be get with elm_map_route_distance_get(). - * - * @see elm_map_route_del() - * @see elm_map_route_distance_get() - * @see elm_map_source_set() - * - * @ingroup Map - */ -EAPI Elm_Map_Route *elm_map_route_add(Evas_Object *obj, Elm_Map_Route_Type type, Elm_Map_Route_Method method, double flon, double flat, double tlon, double tlat, Elm_Map_Route_Cb route_cb, void *data); - -/** - * Request a address or geographic coordinates(longitude, latitude) - * from a given address or geographic coordinate(longitude, latitude). - * - * @param obj The map object. - * @param address The address. - * @param lon The longitude. - * @param lat The latitude. - * @param name_cb The callback function. - * @param data The user callback data. - * @return name A #Elm_Map_Name handle for this coordinate. - * - * If you want to get address from geographic coordinates, set input @p address - * as @c NULL and set @p lon, @p lat as you want to convert. - * If address is set except NULL, @p lon and @p lat are checked. - * - * To get the string for this address, elm_map_name_address_get() - * should be used after callback or "name,loaded" signal is called. - * - * To get the longitude and latitude, elm_map_name_region_get() - * should be used. - * - * @ingroup Map - */ -EAPI Elm_Map_Name *elm_map_name_add(const Evas_Object *obj, const char *address, double lon, double lat, Elm_Map_Name_Cb name_cb, void *data); - -/** - * Add a new overlay to the map object. This overlay has a default type. - * - * @param obj The map object to add a new overlay. - * @param lon The longitude of the overlay. - * @param lat The latitude of the overlay. - * @return The created overlay or @c NULL upon failure. - * - * A overlay will be created and shown in a specific point of the map, defined - * by @p lon and @p lat. - * - * The created overlay has a default style layout before content or - * icon is set. - * If content or icon is set, those are displayed instead of default style - * layout. - * You can set by using elm_map_overlay_content_set() or - * elm_map_overlay_icon_set(). If NULL is set, default style - * is shown again. - * - * Overlay created with this method can be deleted by elm_map_overlay_del(). - * - * @see elm_map_overlay_del() - * @see elm_map_overlay_class_add() - * @see elm_map_overlay_bubble_add() - * @see elm_map_overlay_content_set() - * @see elm_map_overlay_icon_set() - * - * @ingroup Map - */ -EAPI Elm_Map_Overlay * elm_map_overlay_add(Evas_Object *obj, double lon, double lat); - -/** - * Return all overlays in the map object. - * - * @param obj The map object to return overlays. - * @return The list of all overlays or @c NULL upon failure. - * - * This list includes group overlays also. - * So this can be changed dynamically while zooming and panning. - * - * @since 1.7 - * - * @ingroup Map - */ -EAPI EAPI Eina_List * elm_map_overlays_get(const Evas_Object *obj); - -/** - * Add a new class overlay to the map object. - * This overlay has a class type. - * - * @param obj The map object to add a new overlay. - * @return The created overlay or @c NULL upon failure. - * - * This overlay is not shown before overlay members are appended. - * if overlay members in the same class are close, group overlays - * are created. If they are far away, group overlays are hidden. - * When group overlays are shown, they have default style layouts at first. - * - * You can change the state (hidden, paused, etc.) or set the content - * or icon of the group overlays by chaning the state of the class overlay. - * Do not modify the group overlay itself. - * - * Also these changes have a influence on the overlays in the same class - * even if each overlay is alone and is not grouped. - * - * @see elm_map_overlay_del() - * @see elm_map_overlay_add() - * @see elm_map_overlay_bubble_add() - * - * @ingroup Map - */ -EAPI Elm_Map_Overlay * elm_map_overlay_class_add(Evas_Object *obj); - -/** - * Add a new bubble overlay to the map object. - * This overlay has a bubble type. - * - * @param obj The map object to add a new overlay. - * @return The created overlay or @c NULL upon failure. - * - * A bubble will not be displayed before geographic coordinates are set or - * any other overlays are followed. - * - * This overlay has a bubble style layout and icon or content can not - * be set. - * - * Overlay created with this method can be deleted with elm_map_overlay_del(). - * - * @see elm_map_overlay_del() - * @see elm_map_overlay_add() - * @see elm_map_overlay_class_add() - * @see elm_map_overlay_region_set() - * @see elm_map_overlay_bubble_follow() - * - * @ingroup Map - */ -EAPI Elm_Map_Overlay * elm_map_overlay_bubble_add(Evas_Object *obj); - -/** - * Add a new route overlay to the map object. - * This overlay has a route type. - * - * @param obj The map object to add a new overlay. - * @param route The route object to make a overlay. - * @return The created overlay or @c NULL upon failure. - * - * This overlay has a route style layout and icon or content can not - * be set. - * - * The color scheme can be changed by elm_map_overlay_content_set(). - * - * Overlay created with this method can be deleted with elm_map_overlay_del(). - * - * @see elm_map_overlay_del() - * @see elm_map_overlay_class_add() - * @see elm_map_overlay_content_set() - * @see elm_map_overlay_content_get() - * - * @ingroup Map - */ -EAPI Elm_Map_Overlay * elm_map_overlay_route_add(Evas_Object *obj, const Elm_Map_Route *route); - -/** - * Add a new line overlay to the map object. - * This overlay has a line type. - * - * @param obj The map object to add a new overlay. - * @param flon The start longitude. - * @param flat The start latitude. - * @param tlon The destination longitude. - * @param tlat The destination latitude. - * @return The created overlay or @c NULL upon failure. - * - * Overlay created with this method can be deleted with elm_map_overlay_del(). - * - * @see elm_map_overlay_del() - * - * @ingroup Map - */ -EAPI Elm_Map_Overlay * elm_map_overlay_line_add(Evas_Object *obj, double flon, double flat, double tlon, double tlat); - -/** - * Add a new polygon overlay to the map object. - * This overlay has a polygon type. - * - * @param obj The map object to add a new overlay. - * @return The created overlay or @c NULL upon failure. - * - * At least 3 regions should be added to show the polygon overlay. - * - * Overlay created with this method can be deleted with elm_map_overlay_del(). - * - * @see elm_map_overlay_polygon_region_add() - * @see elm_map_overlay_del() - * - * @ingroup Map - */ -EAPI Elm_Map_Overlay * elm_map_overlay_polygon_add(Evas_Object *obj); - -/** - * Add a new circle overlay to the map object. - * This overlay has a circle type. - * - * @param obj The map object to add a new overlay. - * @param lon The center longitude. - * @param lat The center latitude. - * @param radius The pixel length of radius. - * @return The created overlay or @c NULL upon failure. - * - * Overlay created with this method can be deleted with elm_map_overlay_del(). - * - * @see elm_map_overlay_del() - * - * @ingroup Map - */ -EAPI Elm_Map_Overlay * elm_map_overlay_circle_add(Evas_Object *obj, double lon, double lat, double radius); - -/** - * Add a new scale overlay to the map object. - * This overlay has a scale type. - * - * @param obj The map object to add a new overlay. - * @param x horizontal pixel coordinate. - * @param y vertical pixel coordinate - * @return The created overlay or @c NULL upon failure. - * - * The scale overlay shows the ratio of a distance on the map to the corresponding distance. - * - * Overlay created with this method can be deleted with elm_map_overlay_del(). - * - * @see elm_map_overlay_del() - * - * @ingroup Map - */ -EAPI Elm_Map_Overlay * elm_map_overlay_scale_add(Evas_Object *obj, Evas_Coord x, Evas_Coord y); - -/** - * Add a track on the map - * - * @param obj The map object. - * @param emap The emap route object. - * @return The route object. This is an elm object of type Route. - * - * @see elm_route_add() for details. - * - * @ingroup Map - */ -EAPI Evas_Object *elm_map_track_add(Evas_Object *obj, void *emap); - -/** - * Remove a track from the map - * - * @param obj The map object. - * @param route The track to remove. - * - * @ingroup Map - */ -EAPI void elm_map_track_remove(Evas_Object *obj, Evas_Object *route); +#include "elm_map.eo.legacy.h" \ No newline at end of file diff --git a/src/lib/elm_mapbuf_eo.h b/src/lib/elm_mapbuf_eo.h index e3ce4f6..05862c4 100644 --- a/src/lib/elm_mapbuf_eo.h +++ b/src/lib/elm_mapbuf_eo.h @@ -3,161 +3,8 @@ * * @{ */ -#include "elm_mapbuf.eo.h" - -#if 0 -#define ELM_OBJ_MAPBUF_CLASS elm_obj_mapbuf_class_get() - -const Eo_Class *elm_obj_mapbuf_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_MAPBUF_BASE_ID; - -enum -{ - ELM_OBJ_MAPBUF_SUB_ID_ENABLED_SET, - ELM_OBJ_MAPBUF_SUB_ID_ENABLED_GET, - ELM_OBJ_MAPBUF_SUB_ID_SMOOTH_SET, - ELM_OBJ_MAPBUF_SUB_ID_SMOOTH_GET, - ELM_OBJ_MAPBUF_SUB_ID_ALPHA_SET, - ELM_OBJ_MAPBUF_SUB_ID_ALPHA_GET, - ELM_OBJ_MAPBUF_SUB_ID_AUTO_SET, - ELM_OBJ_MAPBUF_SUB_ID_AUTO_GET, - ELM_OBJ_MAPBUF_SUB_ID_POINT_COLOR_SET, - ELM_OBJ_MAPBUF_SUB_ID_POINT_COLOR_GET, - ELM_OBJ_MAPBUF_SUB_ID_LAST -}; - -#define ELM_OBJ_MAPBUF_ID(sub_id) (ELM_OBJ_MAPBUF_BASE_ID + sub_id) - - -/** - * @def elm_obj_mapbuf_enabled_set - * @since 1.8 - * - * Enable or disable the map. - * - * @param[in] enabled - * - * @see elm_mapbuf_enabled_set - */ -#define elm_obj_mapbuf_enabled_set(enabled) ELM_OBJ_MAPBUF_ID(ELM_OBJ_MAPBUF_SUB_ID_ENABLED_SET), EO_TYPECHECK(Eina_Bool, enabled) - -/** - * @def elm_obj_mapbuf_enabled_get - * @since 1.8 - * - * Get a value whether map is enabled or not. - * - * @param[out] ret - * - * @see elm_mapbuf_enabled_get - */ -#define elm_obj_mapbuf_enabled_get(ret) ELM_OBJ_MAPBUF_ID(ELM_OBJ_MAPBUF_SUB_ID_ENABLED_GET), EO_TYPECHECK(Eina_Bool *, ret) -/** - * @def elm_obj_mapbuf_smooth_set - * @since 1.8 - * - * Enable or disable smooth map rendering. - * - * @param[in] smooth - * - * @see elm_mapbuf_smooth_set - */ -#define elm_obj_mapbuf_smooth_set(smooth) ELM_OBJ_MAPBUF_ID(ELM_OBJ_MAPBUF_SUB_ID_SMOOTH_SET), EO_TYPECHECK(Eina_Bool, smooth) - -/** - * @def elm_obj_mapbuf_smooth_get - * @since 1.8 - * - * Get a value whether smooth map rendering is enabled or not. - * - * @param[out] ret - * - * @see elm_mapbuf_smooth_get - */ -#define elm_obj_mapbuf_smooth_get(ret) ELM_OBJ_MAPBUF_ID(ELM_OBJ_MAPBUF_SUB_ID_SMOOTH_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_mapbuf_alpha_set - * @since 1.8 - * - * Set or unset alpha flag for map rendering. - * - * @param[in] alpha - * - * @see elm_mapbuf_alpha_set - */ -#define elm_obj_mapbuf_alpha_set(alpha) ELM_OBJ_MAPBUF_ID(ELM_OBJ_MAPBUF_SUB_ID_ALPHA_SET), EO_TYPECHECK(Eina_Bool, alpha) - -/** - * @def elm_obj_mapbuf_alpha_get - * @since 1.8 - * - * Get a value whether alpha blending is enabled or not. - * - * @param[out] ret - * - * @see elm_mapbuf_alpha_get - */ -#define elm_obj_mapbuf_alpha_get(ret) ELM_OBJ_MAPBUF_ID(ELM_OBJ_MAPBUF_SUB_ID_ALPHA_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_mapbuf_auto_set - * @since 1.8 - * - * Set or unset automatic flag for map rendering. - * - * @param[in] on - * - * @see elm_mapbuf_auto_set - */ -#define elm_obj_mapbuf_auto_set(on) ELM_OBJ_MAPBUF_ID(ELM_OBJ_MAPBUF_SUB_ID_AUTO_SET), EO_TYPECHECK(Eina_Bool, on) - -/** - * @def elm_obj_mapbuf_auto_get - * @since 1.8 - * - * Get a value automatic map mode is enabled ore not. - * - * @param[out] ret - * - * @see elm_mapbuf_auto_get - */ -#define elm_obj_mapbuf_auto_get(ret) ELM_OBJ_MAPBUF_ID(ELM_OBJ_MAPBUF_SUB_ID_AUTO_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_mapbuf_point_color_set - * @since 1.9 - * - * Set a vertex color of the mapbuf - * - * @param[in] idx - * @param[in] r - * @param[in] g - * @param[in] b - * @param[in] a - * - * @see elm_mapbuf_point_color_set - */ -#define elm_obj_mapbuf_point_color_set(idx, r, g, b, a) ELM_OBJ_MAPBUF_ID(ELM_OBJ_MAPBUF_SUB_ID_POINT_COLOR_SET), EO_TYPECHECK(int, idx), EO_TYPECHECK(int, r), EO_TYPECHECK(int, g), EO_TYPECHECK(int, b), EO_TYPECHECK(int, a) - -/** - * @def elm_obj_mapbuf_point_color_get - * @since 1.9 - * - * get a vertex color of the mapbuf - * - * @param[in] idx - * @param[out] r - * @param[out] g - * @param[out] b - * @param[out] a - * - * @see elm_mapbuf_point_color_get - */ -#define elm_obj_mapbuf_point_color_get(idx, r, g, b, a) ELM_OBJ_MAPBUF_ID(ELM_OBJ_MAPBUF_SUB_ID_POINT_COLOR_GET), EO_TYPECHECK(int, idx), EO_TYPECHECK(int *, r), EO_TYPECHECK(int *, g), EO_TYPECHECK(int *, b), EO_TYPECHECK(int *, a) -#endif +#include "elm_mapbuf.eo.h" /** * @} diff --git a/src/lib/elm_mapbuf_legacy.h b/src/lib/elm_mapbuf_legacy.h index af919d0..6308956 100644 --- a/src/lib/elm_mapbuf_legacy.h +++ b/src/lib/elm_mapbuf_legacy.h @@ -11,176 +11,4 @@ */ EAPI Evas_Object *elm_mapbuf_add(Evas_Object *parent); -/** - * Enable or disable the map. - * - * @param obj The mapbuf object. - * @param enabled @c EINA_TRUE to enable map or @c EINA_FALSE to disable it. - * - * This enables the map that is set or disables it. On enable, the object - * geometry will be saved, and the new geometry will change (position and - * size) to reflect the map geometry set. - * - * Also, when enabled, alpha and smooth states will be used, so if the - * content isn't solid, alpha should be enabled, for example, otherwise - * a black rectangle will fill the content. - * - * When disabled, the stored map will be freed and geometry prior to - * enabling the map will be restored. - * - * It's disabled by default. - * - * @see elm_mapbuf_alpha_set() - * @see elm_mapbuf_smooth_set() - * - * @ingroup Mapbuf - */ -EAPI void elm_mapbuf_enabled_set(Evas_Object *obj, Eina_Bool enabled); - -/** - * Get a value whether map is enabled or not. - * - * @param obj The mapbuf object. - * @return @c EINA_TRUE means map is enabled. @c EINA_FALSE indicates - * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned. - * - * @see elm_mapbuf_enabled_set() for details. - * - * @ingroup Mapbuf - */ -EAPI Eina_Bool elm_mapbuf_enabled_get(const Evas_Object *obj); - -/** - * Enable or disable smooth map rendering. - * - * @param obj The mapbuf object. - * @param smooth @c EINA_TRUE to enable smooth map rendering or @c EINA_FALSE - * to disable it. - * - * This sets smoothing for map rendering. If the object is a type that has - * its own smoothing settings, then both the smooth settings for this object - * and the map must be turned off. - * - * By default smooth maps are enabled. - * - * @ingroup Mapbuf - */ -EAPI void elm_mapbuf_smooth_set(Evas_Object *obj, Eina_Bool smooth); - -/** - * Get a value whether smooth map rendering is enabled or not. - * - * @param obj The mapbuf object. - * @return @c EINA_TRUE means smooth map rendering is enabled. @c EINA_FALSE - * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned. - * - * @see elm_mapbuf_smooth_set() for details. - * - * @ingroup Mapbuf - */ -EAPI Eina_Bool elm_mapbuf_smooth_get(const Evas_Object *obj); - -/** - * Set or unset alpha flag for map rendering. - * - * @param obj The mapbuf object. - * @param alpha @c EINA_TRUE to enable alpha blending or @c EINA_FALSE - * to disable it. - * - * This sets alpha flag for map rendering. If the object is a type that has - * its own alpha settings, then this will take precedence. Only image objects - * have this currently. It stops alpha blending of the map area, and is - * useful if you know the object and/or all sub-objects is 100% solid. - * - * Alpha is enabled by default. - * - * @ingroup Mapbuf - */ -EAPI void elm_mapbuf_alpha_set(Evas_Object *obj, Eina_Bool alpha); - -/** - * Get a value whether alpha blending is enabled or not. - * - * @param obj The mapbuf object. - * @return @c EINA_TRUE means alpha blending is enabled. @c EINA_FALSE - * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned. - * - * @see elm_mapbuf_alpha_set() for details. - * - * @ingroup Mapbuf - */ -EAPI Eina_Bool elm_mapbuf_alpha_get(const Evas_Object *obj); - -/** - * Set or unset auto flag for map rendering. - * - * @param obj The mapbuf object. - * @param on @c EINA_TRUE to enable auto mode or @c EINA_FALSE - * to disable it. - * - * When a ampbuf object has "auto mode" enabled, then it will enable and - * disable map mode based on current visibility. Mapbuf will track if you show - * or hide it AND if the object is inside the canvas viewport or not when it - * is moved or resized. Note that if you turn automode off, then map mode - * will be in a disabled state at this point. When you turn it on for the - * first time, the current state will be evaluated base on current properties - * of the mapbuf object. - * - * Auto mode is disabled by default. - * - * @ingroup Mapbuf - */ -EAPI void elm_mapbuf_auto_set(Evas_Object *obj, Eina_Bool on); - -/** - * Get a value whether auto mode is enabled or not. - * - * @param obj The mapbuf object. - * @return @c EINA_TRUE means autso mode is enabled. @c EINA_FALSE - * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned. - * - * @see elm_mapbuf_auto_set() for details. - * - * @ingroup Mapbuf - */ -EAPI Eina_Bool elm_mapbuf_auto_get(const Evas_Object *obj); - -/** - * Set the color of a vertex in the mapbuf - * - * This sets the color of the vertex in the mapbuf. Colors will be linearly - * interpolated between vertex points through the mapbuf. Color will multiply - * the "texture" pixels (like GL_MODULATE in OpenGL). The default color of - * a vertex in a mapbuf is white solid (255, 255, 255, 255) which means it will - * have no affect on modifying the texture pixels. - * - * @param obj The mapbuf object. - * @param idx index of point to change. Must be smaller than mapbuf size. - * @param r red (0 - 255) - * @param g green (0 - 255) - * @param b blue (0 - 255) - * @param a alpha (0 - 255) - * - * @see evas_object_map_set() - * @since 1.9 - */ -EAPI void elm_mapbuf_point_color_set(Evas_Object *obj, int idx, int r, int g, int b, int a); - -/** - * Get the color set on a vertex in the mapbuf - * - * This gets the color set by elm_mapbuf_point_color_set() on the given vertex - * of the mapbuf. - * - * @param obj The mapbuf object. - * @param idx index of point get. Must be smaller than map size. - * @param r pointer to red return - * @param g pointer to green return - * @param b pointer to blue return - * @param a pointer to alpha return - * - * @see elm_mapbuf_point_color_set() - * - * @since 1.9 - */ -EAPI void elm_mapbuf_point_color_get(Evas_Object *obj, int idx, int *r, int *g, int *b, int *a); +#include "elm_mapbuf.eo.legacy.h" \ No newline at end of file diff --git a/src/lib/elm_menu_eo.h b/src/lib/elm_menu_eo.h index 475c3dd..091a3a1 100644 --- a/src/lib/elm_menu_eo.h +++ b/src/lib/elm_menu_eo.h @@ -1,144 +1 @@ -#include "elm_menu.eo.h" - -#if 0 -#define ELM_OBJ_MENU_CLASS elm_obj_menu_class_get() - -const Eo_Class *elm_obj_menu_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_MENU_BASE_ID; - -enum -{ - ELM_OBJ_MENU_SUB_ID_MOVE, - ELM_OBJ_MENU_SUB_ID_CLOSE, - ELM_OBJ_MENU_SUB_ID_ITEM_ADD, - ELM_OBJ_MENU_SUB_ID_ITEM_SEPARATOR_ADD, - ELM_OBJ_MENU_SUB_ID_ITEMS_GET, - ELM_OBJ_MENU_SUB_ID_FIRST_ITEM_GET, - ELM_OBJ_MENU_SUB_ID_LAST_ITEM_GET, - ELM_OBJ_MENU_SUB_ID_SELECTED_ITEM_GET, - ELM_OBJ_MENU_SUB_ID_LAST -}; - -#define ELM_OBJ_MENU_ID(sub_id) (ELM_OBJ_MENU_BASE_ID + sub_id) - - -/** - * @def elm_obj_menu_move - * @since 1.8 - * - * @brief Move the menu to a new position - * - * @param[in] x - * @param[in] y - * - * @see elm_menu_move - * - * @ingroup Menu - */ -#define elm_obj_menu_move(x, y) ELM_OBJ_MENU_ID(ELM_OBJ_MENU_SUB_ID_MOVE), EO_TYPECHECK(Evas_Coord, x), EO_TYPECHECK(Evas_Coord, y) - -/** - * @def elm_obj_menu_close - * @since 1.8 - * - * @brief Close a opened menu - * - * - * @see elm_menu_close - * - * @ingroup Menu - */ -#define elm_obj_menu_close() ELM_OBJ_MENU_ID(ELM_OBJ_MENU_SUB_ID_CLOSE) - -/** - * @def elm_obj_menu_item_add - * @since 1.8 - * - * @brief Add an item at the end of the given menu widget - * - * @param[in] parent - * @param[in] icon - * @param[in] label - * @param[in] func - * @param[in] data - * @param[out] ret - * - * @see elm_menu_item_add - * - * @ingroup Menu - */ -#define elm_obj_menu_item_add(parent, icon, label, func, data, ret) ELM_OBJ_MENU_ID(ELM_OBJ_MENU_SUB_ID_ITEM_ADD), EO_TYPECHECK(Elm_Object_Item *, parent), EO_TYPECHECK(const char *, icon), EO_TYPECHECK(const char *, label), EO_TYPECHECK(Evas_Smart_Cb, func), EO_TYPECHECK(const void *, data), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_menu_item_separator_add - * @since 1.8 - * - * @brief Add a separator item to menu obj under @p parent. - * - * @param[in] parent - * @param[out] ret - * - * @see elm_menu_item_separator_add - * - * @ingroup Menu - */ -#define elm_obj_menu_item_separator_add(parent, ret) ELM_OBJ_MENU_ID(ELM_OBJ_MENU_SUB_ID_ITEM_SEPARATOR_ADD), EO_TYPECHECK(Elm_Object_Item *, parent), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_menu_items_get - * @since 1.8 - * - * @brief Returns a list of item's items. - * - * @param[out] ret - * - * @see elm_menu_items_get - * - * @ingroup Menu - */ -#define elm_obj_menu_items_get(ret) ELM_OBJ_MENU_ID(ELM_OBJ_MENU_SUB_ID_ITEMS_GET), EO_TYPECHECK(const Eina_List **, ret) - -/** - * @def elm_obj_menu_first_item_get - * @since 1.8 - * - * @brief Get the first item in the menu - * - * @param[out] ret - * - * @see elm_menu_first_item_get - * - * @ingroup Menu - */ -#define elm_obj_menu_first_item_get(ret) ELM_OBJ_MENU_ID(ELM_OBJ_MENU_SUB_ID_FIRST_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_menu_last_item_get - * @since 1.8 - * - * @brief Get the last item in the menu - * - * @param[out] ret - * - * @see elm_menu_last_item_get - * - * @ingroup Menu - */ -#define elm_obj_menu_last_item_get(ret) ELM_OBJ_MENU_ID(ELM_OBJ_MENU_SUB_ID_LAST_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_menu_selected_item_get - * @since 1.8 - * - * @brief Get the selected item in the menu - * - * @param[out] ret - * - * @see elm_menu_selected_item_get - * - * @ingroup Menu - */ -#define elm_obj_menu_selected_item_get(ret) ELM_OBJ_MENU_ID(ELM_OBJ_MENU_SUB_ID_SELECTED_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret) -#endif - +#include "elm_menu.eo.h" \ No newline at end of file diff --git a/src/lib/elm_menu_legacy.h b/src/lib/elm_menu_legacy.h index 0282273..ada6285 100644 --- a/src/lib/elm_menu_legacy.h +++ b/src/lib/elm_menu_legacy.h @@ -30,102 +30,4 @@ EAPI void elm_menu_parent_set(Evas_Object *obj, Evas_Obj */ EAPI Evas_Object *elm_menu_parent_get(const Evas_Object *obj); -/** - * @brief Move the menu to a new position - * - * @param obj The menu object. - * @param x The new position. - * @param y The new position. - * - * Sets the top-left position of the menu to (@p x,@p y). - * - * @note @p x and @p y coordinates are relative to parent. - * - * @ingroup Menu - */ -EAPI void elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y); - -/** - * @brief Close a opened menu - * - * @param obj the menu object - * @return void - * - * Hides the menu and all it's sub-menus. - * - * @ingroup Menu - */ -EAPI void elm_menu_close(Evas_Object *obj); - -/** - * @brief Add an item at the end of the given menu widget - * - * @param obj The menu object. - * @param parent The parent menu item (optional) - * @param icon An icon display on the item. The icon will be destroyed by the menu. - * @param label The label of the item. - * @param func Function called when the user select the item. - * @param data Data sent by the callback. - * @return Returns the new item. - * - * @note This function does not accept relative icon path. - * - * @ingroup Menu - */ -EAPI Elm_Object_Item *elm_menu_item_add(Evas_Object *obj, Elm_Object_Item *parent, const char *icon, const char *label, Evas_Smart_Cb func, const void *data); - -/** - * @brief Add a separator item to menu @p obj under @p parent. - * - * @param obj The menu object - * @param parent The item to add the separator under - * @return The created item or NULL on failure - * - * This is item is a @ref Separator. - * - * @ingroup Menu - */ -EAPI Elm_Object_Item *elm_menu_item_separator_add(Evas_Object *obj, Elm_Object_Item *parent); - -/** - * @brief Returns a list of @p item's items. - * - * @param obj The menu object - * @return An Eina_List* of @p item's items - * - * @ingroup Menu - */ -EAPI const Eina_List *elm_menu_items_get(const Evas_Object *obj); - -/** - * @brief Get the first item in the menu - * - * @param obj The menu object - * @return The first item, or NULL if none - * - * @ingroup Menu - */ -EAPI Elm_Object_Item *elm_menu_first_item_get(const Evas_Object *obj); - -/** - * @brief Get the last item in the menu - * - * @param obj The menu object - * @return The last item, or NULL if none - * - * @ingroup Menu - */ -EAPI Elm_Object_Item *elm_menu_last_item_get(const Evas_Object *obj); - -/** - * @brief Get the selected item in the menu - * - * @param obj The menu object - * @return The selected item, or NULL if none - * - * @see elm_menu_item_selected_get() - * @see elm_menu_item_selected_set() - * - * @ingroup Menu - */ -EAPI Elm_Object_Item *elm_menu_selected_item_get(const Evas_Object *obj); +#include "elm_menu.eo.legacy.h" \ No newline at end of file diff --git a/src/lib/elm_notify_eo.h b/src/lib/elm_notify_eo.h index 63ddaed..cc35dff 100644 --- a/src/lib/elm_notify_eo.h +++ b/src/lib/elm_notify_eo.h @@ -3,102 +3,8 @@ * * @{ */ -#include "elm_notify.eo.h" -#if 0 -#define ELM_OBJ_NOTIFY_CLASS elm_obj_notify_class_get() - -const Eo_Class *elm_obj_notify_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_NOTIFY_BASE_ID; - -enum -{ - ELM_OBJ_NOTIFY_SUB_ID_TIMEOUT_SET, - ELM_OBJ_NOTIFY_SUB_ID_TIMEOUT_GET, - ELM_OBJ_NOTIFY_SUB_ID_ALLOW_EVENTS_SET, - ELM_OBJ_NOTIFY_SUB_ID_ALLOW_EVENTS_GET, - ELM_OBJ_NOTIFY_SUB_ID_ALIGN_SET, - ELM_OBJ_NOTIFY_SUB_ID_ALIGN_GET, - ELM_OBJ_NOTIFY_SUB_ID_LAST -}; - -#define ELM_OBJ_NOTIFY_ID(sub_id) (ELM_OBJ_NOTIFY_BASE_ID + sub_id) - -/** - * @def elm_obj_notify_timeout_set - * @since 1.8 - * - * @brief Set the time interval after which the notify window is going to be - * - * @param[in] timeout - * - * @see elm_notify_timeout_set - */ -#define elm_obj_notify_timeout_set(timeout) ELM_OBJ_NOTIFY_ID(ELM_OBJ_NOTIFY_SUB_ID_TIMEOUT_SET), EO_TYPECHECK(double, timeout) - -/** - * @def elm_obj_notify_timeout_get - * @since 1.8 - * - * @brief Return the timeout value (in seconds) - * - * @param[out] ret - * - * @see elm_notify_timeout_get - */ -#define elm_obj_notify_timeout_get(ret) ELM_OBJ_NOTIFY_ID(ELM_OBJ_NOTIFY_SUB_ID_TIMEOUT_GET), EO_TYPECHECK(double *, ret) - -/** - * @def elm_obj_notify_allow_events_set - * @since 1.8 - * - * @brief Sets whether events should be passed to by a click outside - * - * @param[in] allow - * - * @see elm_notify_allow_events_set - */ -#define elm_obj_notify_allow_events_set(allow) ELM_OBJ_NOTIFY_ID(ELM_OBJ_NOTIFY_SUB_ID_ALLOW_EVENTS_SET), EO_TYPECHECK(Eina_Bool, allow) -/** - * @def elm_obj_notify_allow_events_get - * @since 1.8 - * - * @brief Return true if events are allowed below the notify object - * - * @param[out] ret - * - * @see elm_notify_allow_events_get - */ -#define elm_obj_notify_allow_events_get(ret) ELM_OBJ_NOTIFY_ID(ELM_OBJ_NOTIFY_SUB_ID_ALLOW_EVENTS_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_notify_align_set - * @since 1.8 - * - * @brief Set the alignment of the notify object - * - * @param[in] horizontal - * @param[in] vertical - * - * @see elm_notify_align_set - */ -#define elm_obj_notify_align_set(horizontal, vertical) ELM_OBJ_NOTIFY_ID(ELM_OBJ_NOTIFY_SUB_ID_ALIGN_SET), EO_TYPECHECK(double, horizontal), EO_TYPECHECK(double, vertical) - -/** - * @def elm_obj_notify_align_get - * @since 1.8 - * - * @brief Return the alignment of the notify object - * - * @param[out] horizontal - * @param[out] vertical - * - * @see elm_notify_align_get - */ -#define elm_obj_notify_align_get(horizontal, vertical) ELM_OBJ_NOTIFY_ID(ELM_OBJ_NOTIFY_SUB_ID_ALIGN_GET), EO_TYPECHECK(double *, horizontal), EO_TYPECHECK(double *, vertical) - -#endif +#include "elm_notify.eo.h" /** * @} diff --git a/src/lib/elm_notify_legacy.h b/src/lib/elm_notify_legacy.h index 594718a..fed3b98 100644 --- a/src/lib/elm_notify_legacy.h +++ b/src/lib/elm_notify_legacy.h @@ -33,91 +33,4 @@ EAPI void elm_notify_parent_set(Evas_Object *obj, Evas_O */ EAPI Evas_Object *elm_notify_parent_get(const Evas_Object *obj); -/** - * @brief Set the time interval after which the notify window is going to be - * hidden. - * - * @param obj The notify object - * @param timeout The timeout in seconds - * - * This function sets a timeout and starts the timer controlling when the - * notify is hidden. Since calling evas_object_show() on a notify restarts - * the timer controlling when the notify is hidden, setting this before the - * notify is shown will in effect mean starting the timer when the notify is - * shown. - * - * @note Set a value <= 0.0 to disable a running timer. - * - * @note If the value > 0.0 and the notify is previously visible, the - * timer will be started with this value, canceling any running timer. - * - * @ingroup Notify - */ -EAPI void elm_notify_timeout_set(Evas_Object *obj, double timeout); - -/** - * @brief Return the timeout value (in seconds) - * @param obj the notify object - * - * @see elm_notify_timeout_set() - * - * @ingroup Notify - */ -EAPI double elm_notify_timeout_get(const Evas_Object *obj); - -/** - * @brief Sets whether events should be passed to by a click outside - * its area. - * - * @param obj The notify object - * @param allow EINA_TRUE If events are allowed, otherwise not - * - * When true if the user clicks outside the window the events will be caught - * by the others widgets, else the events are blocked. - * - * @note The default value is EINA_TRUE. - * - * @ingroup Notify - */ -EAPI void elm_notify_allow_events_set(Evas_Object *obj, Eina_Bool allow); - -/** - * @brief Return true if events are allowed below the notify object - * @param obj the notify object - * - * @see elm_notify_allow_events_set() - * - * @ingroup Notify - */ -EAPI Eina_Bool elm_notify_allow_events_get(const Evas_Object *obj); - -/** - * @brief Set the alignment of the notify object - * - * @param obj The notify object - * @param horizontal The horizontal alignment of the notification - * @param vertical The vertical alignment of the notification - * - * Sets the alignment in which the notify will appear in its parent. - * - * @note To fill the notify box in the parent area, please pass the - * @c ELM_NOTIFY_ALIGN_FILL to @p horizontal, @p vertical. - * - * @since 1.8 - * @ingroup Notify - */ -EAPI void elm_notify_align_set(Evas_Object *obj, double horizontal, double vertical); - -/** - * @brief Get the alignment of the notify object - * @param obj The notify object - * @param horizontal The horizontal alignment of the notification - * @param vertical The vertical alignment of the notification - * - * @see elm_notify_align_set() - * - * @since 1.8 - * @ingroup Notify - */ -EAPI void elm_notify_align_get(const Evas_Object *obj, double *horizontal, double *vertical); - +#include "elm_notify.eo.legacy.h" \ No newline at end of file diff --git a/src/lib/elm_panel_eo.h b/src/lib/elm_panel_eo.h index d37ee14..25846a3 100644 --- a/src/lib/elm_panel_eo.h +++ b/src/lib/elm_panel_eo.h @@ -1,91 +1 @@ -#include "elm_panel.eo.h" - -#if 0 -#define ELM_OBJ_PANEL_CLASS elm_obj_panel_class_get() - -const Eo_Class *elm_obj_panel_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_PANEL_BASE_ID; - -enum -{ - ELM_OBJ_PANEL_SUB_ID_ORIENT_SET, - ELM_OBJ_PANEL_SUB_ID_ORIENT_GET, - ELM_OBJ_PANEL_SUB_ID_HIDDEN_SET, - ELM_OBJ_PANEL_SUB_ID_HIDDEN_GET, - ELM_OBJ_PANEL_SUB_ID_TOGGLE, - ELM_OBJ_PANEL_SUB_ID_LAST -}; - -#define ELM_OBJ_PANEL_ID(sub_id) (ELM_OBJ_PANEL_BASE_ID + sub_id) - - -/** - * @def elm_obj_panel_orient_set - * @since 1.8 - * - * @brief Sets the orientation of the panel - * - * @param[in] orient - * - * @see elm_panel_orient_set - * - * @ingroup Panel - */ -#define elm_obj_panel_orient_set(orient) ELM_OBJ_PANEL_ID(ELM_OBJ_PANEL_SUB_ID_ORIENT_SET), EO_TYPECHECK(Elm_Panel_Orient, orient) - -/** - * @def elm_obj_panel_orient_get - * @since 1.8 - * - * @brief Get the orientation of the panel. - * - * @param[out] ret - * - * @see elm_panel_orient_get - * - * @ingroup Panel - */ -#define elm_obj_panel_orient_get(ret) ELM_OBJ_PANEL_ID(ELM_OBJ_PANEL_SUB_ID_ORIENT_GET), EO_TYPECHECK(Elm_Panel_Orient *, ret) - -/** - * @def elm_obj_panel_hidden_set - * @since 1.8 - * - * @brief Set the state of the panel. - * - * @param[in] hidden - * - * @see elm_panel_hidden_set - * - * @ingroup Panel - */ -#define elm_obj_panel_hidden_set(hidden) ELM_OBJ_PANEL_ID(ELM_OBJ_PANEL_SUB_ID_HIDDEN_SET), EO_TYPECHECK(Eina_Bool, hidden) - -/** - * @def elm_obj_panel_hidden_get - * @since 1.8 - * - * @brief Get the state of the panel. - * - * @param[out] ret - * - * @see elm_panel_hidden_get - * - * @ingroup Panel - */ -#define elm_obj_panel_hidden_get(ret) ELM_OBJ_PANEL_ID(ELM_OBJ_PANEL_SUB_ID_HIDDEN_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_panel_toggle - * @since 1.8 - * - * @brief Toggle the hidden state of the panel from code - * - * - * @see elm_panel_toggle - * - * @ingroup Panel - */ -#define elm_obj_panel_toggle() ELM_OBJ_PANEL_ID(ELM_OBJ_PANEL_SUB_ID_TOGGLE) -#endif +#include "elm_panel.eo.h" \ No newline at end of file diff --git a/src/lib/elm_panel_legacy.h b/src/lib/elm_panel_legacy.h index e4ece27..dd5d416 100644 --- a/src/lib/elm_panel_legacy.h +++ b/src/lib/elm_panel_legacy.h @@ -9,56 +9,4 @@ */ EAPI Evas_Object *elm_panel_add(Evas_Object *parent); -/** - * @brief Sets the orientation of the panel - * - * @param obj The panel object - * @param orient The panel orientation. Can be one of the following: - * @li ELM_PANEL_ORIENT_TOP - * @li ELM_PANEL_ORIENT_LEFT - * @li ELM_PANEL_ORIENT_RIGHT - * - * Sets from where the panel will (dis)appear. - * - * @ingroup Panel - */ -EAPI void elm_panel_orient_set(Evas_Object *obj, Elm_Panel_Orient orient); - -/** - * @brief Get the orientation of the panel. - * - * @param obj The panel object - * @return The Elm_Panel_Orient, or ELM_PANEL_ORIENT_LEFT on failure. - * - * @ingroup Panel - */ -EAPI Elm_Panel_Orient elm_panel_orient_get(const Evas_Object *obj); - -/** - * @brief Set the state of the panel. - * - * @param obj The panel object - * @param hidden If true, the panel will run the animation to disappear. - * - * @ingroup Panel - */ -EAPI void elm_panel_hidden_set(Evas_Object *obj, Eina_Bool hidden); - -/** - * @brief Get the state of the panel. - * - * @param obj The panel object - * @return EINA_TRUE if it is hidden state - * - * @ingroup Panel - */ -EAPI Eina_Bool elm_panel_hidden_get(const Evas_Object *obj); - -/** - * @brief Toggle the hidden state of the panel from code - * - * @param obj The panel object - * - * @ingroup Panel - */ -EAPI void elm_panel_toggle(Evas_Object *obj); +#include "elm_panel.eo.legacy.h" \ No newline at end of file