From 40a65560f6d0ddc2bbf1dabc859e7582c74e3f2a Mon Sep 17 00:00:00 2001 From: Yossi Kantor Date: Wed, 9 Apr 2014 15:58:41 +0300 Subject: [PATCH] Eolian: Eo headers clean and legacy integration for: Elc File Selector Elc File Selector Entry Elc File Selector Button Elementary Datetime Elementary Day Selector Elementary Disk Selector Elementary Entry Elementary Flip Elementary Flip Selector --- legacy/elementary/src/lib/Makefile.am | 20 +- .../src/lib/elc_fileselector_button_eo.h | 116 +- .../src/lib/elc_fileselector_button_legacy.h | 99 +- .../src/lib/elc_fileselector_entry_eo.h | 112 +- .../src/lib/elc_fileselector_entry_legacy.h | 99 +- .../elementary/src/lib/elc_fileselector_eo.h | 41 +- .../src/lib/elc_fileselector_legacy.h | 33 +- legacy/elementary/src/lib/elm_datetime_eo.h | 210 +-- .../elementary/src/lib/elm_datetime_legacy.h | 369 +---- .../elementary/src/lib/elm_dayselector_eo.h | 169 -- .../src/lib/elm_dayselector_legacy.h | 155 +- .../elementary/src/lib/elm_diskselector_eo.h | 200 +-- .../src/lib/elm_diskselector_legacy.h | 228 +-- legacy/elementary/src/lib/elm_entry.eo | 1 + legacy/elementary/src/lib/elm_entry_eo.h | 1400 ----------------- legacy/elementary/src/lib/elm_entry_legacy.h | 1196 +------------- legacy/elementary/src/lib/elm_flip_eo.h | 159 +- legacy/elementary/src/lib/elm_flip_legacy.h | 231 +-- .../elementary/src/lib/elm_flipselector_eo.h | 174 +- .../src/lib/elm_flipselector_legacy.h | 184 +-- 20 files changed, 37 insertions(+), 5159 deletions(-) diff --git a/legacy/elementary/src/lib/Makefile.am b/legacy/elementary/src/lib/Makefile.am index 5f3589aab0..5d3a23e8fd 100644 --- a/legacy/elementary/src/lib/Makefile.am +++ b/legacy/elementary/src/lib/Makefile.am @@ -593,22 +593,31 @@ BUILT_SOURCES = \ elc_ctxpopup.eo.legacy.h \ elm_datetime.eo.c \ elm_datetime.eo.h \ + elm_datetime.eo.legacy.h \ elm_dayselector.eo.c \ elm_dayselector.eo.h \ + elm_dayselector.eo.legacy.h \ elm_diskselector.eo.c \ elm_diskselector.eo.h \ + elm_diskselector.eo.legacy.h \ elm_entry.eo.c \ elm_entry.eo.h \ + elm_entry.eo.legacy.h \ elc_fileselector.eo.c \ elc_fileselector.eo.h \ + elc_fileselector.eo.legacy.h \ elc_fileselector_button.eo.c \ elc_fileselector_button.eo.h \ + elc_fileselector_button.eo.legacy.h \ elc_fileselector_entry.eo.c \ elc_fileselector_entry.eo.h \ + elc_fileselector_entry.eo.legacy.h \ elm_flipselector.eo.c \ elm_flipselector.eo.h \ + elm_flipselector.eo.legacy.h \ elm_flip.eo.c \ elm_flip.eo.h \ + elm_flip.eo.legacy.h \ elm_gengrid.eo.c \ elm_gengrid.eo.h \ elm_gengrid_pan.eo.c \ @@ -904,4 +913,13 @@ nodist_includesunstable_HEADERS = \ elm_check.eo.legacy.h \ elm_clock.eo.legacy.h \ elm_colorselector.eo.legacy.h \ - elc_ctxpopup.eo.legacy.h + elc_ctxpopup.eo.legacy.h \ + elm_datetime.eo.legacy.h \ + elm_dayselector.eo.legacy.h \ + elm_diskselector.eo.legacy.h \ + elm_entry.eo.legacy.h \ + elc_fileselector.eo.legacy.h \ + elc_fileselector_button.eo.legacy.h \ + elc_fileselector_entry.eo.legacy.h \ + elm_flipselector.eo.legacy.h \ + elm_flip.eo.legacy.h diff --git a/legacy/elementary/src/lib/elc_fileselector_button_eo.h b/legacy/elementary/src/lib/elc_fileselector_button_eo.h index 92b74f8cc7..904396f475 100644 --- a/legacy/elementary/src/lib/elc_fileselector_button_eo.h +++ b/legacy/elementary/src/lib/elc_fileselector_button_eo.h @@ -1,115 +1 @@ -#include "elc_fileselector_button.eo.h" - -#if 0 -#define ELM_OBJ_FILESELECTOR_BUTTON_CLASS elm_obj_fileselector_button_class_get() - -const Eo_Class *elm_obj_fileselector_button_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_FILESELECTOR_BUTTON_BASE_ID; - -enum -{ - ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_WINDOW_TITLE_SET, - ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_WINDOW_TITLE_GET, - ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_WINDOW_SIZE_SET, - ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_WINDOW_SIZE_GET, - ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_INWIN_MODE_SET, - ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_INWIN_MODE_GET, - ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_LAST -}; - -#define ELM_OBJ_FILESELECTOR_BUTTON_ID(sub_id) (ELM_OBJ_FILESELECTOR_BUTTON_BASE_ID + sub_id) - - -/** - * @def elm_obj_fileselector_button_window_title_set - * @since 1.8 - * - * Set the title for a given file selector button widget's window - * - * @param[in] title - * - * @see elm_fileselector_button_window_title_set - * - * @ingroup File_Selector_Button - */ -#define elm_obj_fileselector_button_window_title_set(title) ELM_OBJ_FILESELECTOR_BUTTON_ID(ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_WINDOW_TITLE_SET), EO_TYPECHECK(const char *, title) - -/** - * @def elm_obj_fileselector_button_window_title_get - * @since 1.8 - * - * Get the title for a given file selector button widget's - * - * @param[out] ret - * - * @see elm_fileselector_button_window_title_get - * - * @ingroup File_Selector_Button - */ -#define elm_obj_fileselector_button_window_title_get(ret) ELM_OBJ_FILESELECTOR_BUTTON_ID(ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_WINDOW_TITLE_GET), EO_TYPECHECK(const char **, ret) - -/** - * @def elm_obj_fileselector_button_window_size_set - * @since 1.8 - * - * Set the size of a given file selector button widget's window, - * holding the file selector itself. - * - * @param[in] width - * @param[in] height - * - * @see elm_fileselector_button_window_size_set - * - * @ingroup File_Selector_Button - */ -#define elm_obj_fileselector_button_window_size_set(width, height) ELM_OBJ_FILESELECTOR_BUTTON_ID(ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_WINDOW_SIZE_SET), EO_TYPECHECK(Evas_Coord, width), EO_TYPECHECK(Evas_Coord, height) - -/** - * @def elm_obj_fileselector_button_window_size_get - * @since 1.8 - * - * Get the size of a given file selector button widget's window, - * holding the file selector itself. - * - * @param[out] width - * @param[out] height - * - * @see elm_fileselector_button_window_size_get - * - * @ingroup File_Selector_Button - */ -#define elm_obj_fileselector_button_window_size_get(width, height) ELM_OBJ_FILESELECTOR_BUTTON_ID(ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_WINDOW_SIZE_GET), EO_TYPECHECK(Evas_Coord *, width), EO_TYPECHECK(Evas_Coord *, height) - -/** - * @def elm_obj_fileselector_button_inwin_mode_set - * @since 1.8 - * - * Set whether a given file selector button widget's internal file - * selector will raise an Elementary "inner window", instead of a - * dedicated Elementary window. By default, it won't. - * - * @param[in] value - * - * @see elm_fileselector_button_inwin_mode_set - * - * @ingroup File_Selector_Button - */ -#define elm_obj_fileselector_button_inwin_mode_set(value) ELM_OBJ_FILESELECTOR_BUTTON_ID(ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_INWIN_MODE_SET), EO_TYPECHECK(Eina_Bool, value) - -/** - * @def elm_obj_fileselector_button_inwin_mode_get - * @since 1.8 - * - * Get whether a given file selector button widget's internal file - * selector will raise an Elementary "inner window", instead of a - * dedicated Elementary window. - * - * @param[out] ret - * - * @see elm_fileselector_button_inwin_mode_get - * - * @ingroup File_Selector_Button - */ -#define elm_obj_fileselector_button_inwin_mode_get(ret) ELM_OBJ_FILESELECTOR_BUTTON_ID(ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_INWIN_MODE_GET), EO_TYPECHECK(Eina_Bool *, ret) -#endif +#include "elc_fileselector_button.eo.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elc_fileselector_button_legacy.h b/legacy/elementary/src/lib/elc_fileselector_button_legacy.h index 820a69a503..0e52c2d083 100644 --- a/legacy/elementary/src/lib/elc_fileselector_button_legacy.h +++ b/legacy/elementary/src/lib/elc_fileselector_button_legacy.h @@ -10,101 +10,4 @@ */ EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent); -/** - * Set the title for a given file selector button widget's window - * - * @param obj The file selector button widget - * @param title The title string - * - * This will change the popup window's title, when the file selector pops - * out after a click on the button. Those windows have the default - * (unlocalized) value of @c "Select a file" as titles. - * - * @note It will only take effect if the file selector - * button widget is @b not under "inwin mode". - * - * @see elm_fileselector_button_window_title_get() - * - * @ingroup File_Selector_Button - */ -EAPI void elm_fileselector_button_window_title_set(Evas_Object *obj, const char *title); - -/** - * Get the title for a given file selector button widget's - * window - * - * @param obj The file selector button widget - * @return Title of the file selector button's window - * - * @see elm_fileselector_button_window_title_get() for more details - * - * @ingroup File_Selector_Button - */ -EAPI const char *elm_fileselector_button_window_title_get(const Evas_Object *obj); - -/** - * Set the size of a given file selector button widget's window, - * holding the file selector itself. - * - * @param obj The file selector button widget - * @param width The window's width - * @param height The window's height - * - * @note it will only take any effect if the file selector button - * widget is @b not under "inwin mode". The default size for the - * window (when applicable) is 400x400 pixels. - * - * @see elm_fileselector_button_window_size_get() - * - * @ingroup File_Selector_Button - */ -EAPI void elm_fileselector_button_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height); - -/** - * Get the size of a given file selector button widget's window, - * holding the file selector itself. - * - * @param obj The file selector button widget - * @param width Pointer into which to store the width value - * @param height Pointer into which to store the height value - * - * @note Use @c NULL pointers on the size values you're not - * interested in: they'll be ignored by the function. - * - * @see elm_fileselector_button_window_size_set(), for more details - * - * @ingroup File_Selector_Button - */ -EAPI void elm_fileselector_button_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height); - -/** - * Set whether a given file selector button widget's internal file - * selector will raise an Elementary "inner window", instead of a - * dedicated Elementary window. By default, it depends on the current - * profile. - * - * @param obj The file selector button widget - * @param value @c EINA_TRUE to make it use an inner window, @c - * EINA_FALSE to make it use a dedicated window - * - * @see elm_win_inwin_add() for more information on inner windows - * @see elm_fileselector_button_inwin_mode_get() - * - * @ingroup File_Selector_Button - */ -EAPI void elm_fileselector_button_inwin_mode_set(Evas_Object *obj, Eina_Bool value); - -/** - * Get whether a given file selector button widget's internal file - * selector will raise an Elementary "inner window", instead of a - * dedicated Elementary window. - * - * @param obj The file selector button widget - * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE - * if it will use a dedicated window - * - * @see elm_fileselector_button_inwin_mode_set() for more details - * - * @ingroup File_Selector_Button - */ -EAPI Eina_Bool elm_fileselector_button_inwin_mode_get(const Evas_Object *obj); +#include "elc_fileselector_button.eo.legacy.h" diff --git a/legacy/elementary/src/lib/elc_fileselector_entry_eo.h b/legacy/elementary/src/lib/elc_fileselector_entry_eo.h index b168eceb2e..a36d91ab21 100644 --- a/legacy/elementary/src/lib/elc_fileselector_entry_eo.h +++ b/legacy/elementary/src/lib/elc_fileselector_entry_eo.h @@ -1,111 +1 @@ -#include "elc_fileselector_entry.eo.h" - -#if 0 -#define ELM_OBJ_FILESELECTOR_ENTRY_CLASS elm_obj_fileselector_entry_class_get() - -const Eo_Class *elm_obj_fileselector_entry_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_FILESELECTOR_ENTRY_BASE_ID; - -enum -{ - ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_WINDOW_TITLE_SET, - ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_WINDOW_TITLE_GET, - ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_WINDOW_SIZE_SET, - ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_WINDOW_SIZE_GET, - ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_INWIN_MODE_SET, - ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_INWIN_MODE_GET, - ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_LAST -}; - -#define ELM_OBJ_FILESELECTOR_ENTRY_ID(sub_id) (ELM_OBJ_FILESELECTOR_ENTRY_BASE_ID + sub_id) - -/** - * @def elm_obj_fileselector_entry_window_title_set - * @since 1.8 - * - * Set the title for a given file selector entry widget's window - * - * @param[in] title - * - * @see elm_fileselector_entry_window_title_set - * - * @ingroup File_Selector_Entry - */ -#define elm_obj_fileselector_entry_window_title_set(title) ELM_OBJ_FILESELECTOR_ENTRY_ID(ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_WINDOW_TITLE_SET), EO_TYPECHECK(const char *, title) - -/** - * @def elm_obj_fileselector_entry_window_title_get - * @since 1.8 - * - * Get the title set for a given file selector entry widget's - * window - * - * @param[out] ret - * - * @see elm_fileselector_entry_window_title_get - * - * @ingroup File_Selector_Entry - */ -#define elm_obj_fileselector_entry_window_title_get(ret) ELM_OBJ_FILESELECTOR_ENTRY_ID(ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_WINDOW_TITLE_GET), EO_TYPECHECK(const char **, ret) - -/** - * @def elm_obj_fileselector_entry_window_size_set - * @since 1.8 - * - * Set the size of a given file selector entry widget's window, - * holding the file selector itself. - * - * @param[in] width - * @param[in] height - * - * @see elm_fileselector_entry_window_size_set - * - * @ingroup File_Selector_Entry - */ -#define elm_obj_fileselector_entry_window_size_set(width, height) ELM_OBJ_FILESELECTOR_ENTRY_ID(ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_WINDOW_SIZE_SET), EO_TYPECHECK(Evas_Coord, width), EO_TYPECHECK(Evas_Coord, height) - -/** - * @def elm_obj_fileselector_entry_window_size_get - * @since 1.8 - * - * Get the size of a given file selector entry widget's window, - * holding the file selector itself. - * - * @param[out] width - * @param[out] height - * - * @see elm_fileselector_entry_window_size_get - * - * @ingroup File_Selector_Entry - */ -#define elm_obj_fileselector_entry_window_size_get(width, height) ELM_OBJ_FILESELECTOR_ENTRY_ID(ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_WINDOW_SIZE_GET), EO_TYPECHECK(Evas_Coord *, width), EO_TYPECHECK(Evas_Coord *, height) - -/** - * @def elm_obj_fileselector_entry_inwin_mode_set - * @since 1.8 - * - * Set whether a given file selector entry widget's internal file - * - * @param[in] value - * - * @see elm_fileselector_entry_inwin_mode_set - * - * @ingroup File_Selector_Entry - */ -#define elm_obj_fileselector_entry_inwin_mode_set(value) ELM_OBJ_FILESELECTOR_ENTRY_ID(ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_INWIN_MODE_SET), EO_TYPECHECK(Eina_Bool, value) - -/** - * @def elm_obj_fileselector_entry_inwin_mode_get - * @since 1.8 - * - * Get whether a given file selector entry widget's internal file - * - * @param[out] ret - * - * @see elm_fileselector_entry_inwin_mode_get - * - * @ingroup File_Selector_Entry - */ -#define elm_obj_fileselector_entry_inwin_mode_get(ret) ELM_OBJ_FILESELECTOR_ENTRY_ID(ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_INWIN_MODE_GET), EO_TYPECHECK(Eina_Bool *, ret) -#endif +#include "elc_fileselector_entry.eo.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elc_fileselector_entry_legacy.h b/legacy/elementary/src/lib/elc_fileselector_entry_legacy.h index 92e59d5351..38100cba8a 100644 --- a/legacy/elementary/src/lib/elc_fileselector_entry_legacy.h +++ b/legacy/elementary/src/lib/elc_fileselector_entry_legacy.h @@ -11,101 +11,4 @@ */ EAPI Evas_Object *elm_fileselector_entry_add(Evas_Object *parent); -/** - * Set the title for a given file selector entry widget's window - * - * @param obj The file selector entry widget - * @param title The title string - * - * This will change the window's title, when the file selector pops - * out after a click on the entry's button. Those windows have the - * default (unlocalized) value of @c "Select a file" as titles. - * - * @note It will only take any effect if the file selector - * entry widget is @b not under "inwin mode". - * - * @see elm_fileselector_entry_window_title_get() - * - * @ingroup File_Selector_Entry - */ -EAPI void elm_fileselector_entry_window_title_set(Evas_Object *obj, const char *title); - -/** - * Get the title set for a given file selector entry widget's - * window - * - * @param obj The file selector entry widget - * @return Title of the file selector entry's window - * - * @see elm_fileselector_entry_window_title_get() for more details - * - * @ingroup File_Selector_Entry - */ -EAPI const char *elm_fileselector_entry_window_title_get(const Evas_Object *obj); - -/** - * Set the size of a given file selector entry widget's window, - * holding the file selector itself. - * - * @param obj The file selector entry widget - * @param width The window's width - * @param height The window's height - * - * @note it will only take any effect if the file selector entry - * widget is @b not under "inwin mode". The default size for the - * window (when applicable) is 400x400 pixels. - * - * @see elm_fileselector_entry_window_size_get() - * - * @ingroup File_Selector_Entry - */ -EAPI void elm_fileselector_entry_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height); - -/** - * Get the size of a given file selector entry widget's window, - * holding the file selector itself. - * - * @param obj The file selector entry widget - * @param width Pointer into which to store the width value - * @param height Pointer into which to store the height value - * - * @note Use @c NULL pointers on the size values you're not - * interested in: they'll be ignored by the function. - * - * @see elm_fileselector_entry_window_size_set(), for more details - * - * @ingroup File_Selector_Entry - */ -EAPI void elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height); - -/** - * Set whether a given file selector entry widget's internal file - * selector will raise an Elementary "inner window", instead of a - * dedicated Elementary window. By default, it depends on the current - * profile. - * - * @param obj The file selector entry widget - * @param value @c EINA_TRUE to make it use an inner window, @c - * EINA_FALSE to make it use a dedicated window - * - * @see elm_win_inwin_add() for more information on inner windows - * @see elm_fileselector_entry_inwin_mode_get() - * - * @ingroup File_Selector_Entry - */ -EAPI void elm_fileselector_entry_inwin_mode_set(Evas_Object *obj, Eina_Bool value); - -/** - * Get whether a given file selector entry widget's internal file - * selector will raise an Elementary "inner window", instead of a - * dedicated Elementary window. - * - * @param obj The file selector entry widget - * @return @c EINA_TRUE if will use an inner window, @c EINA_FALSE - * if it will use a dedicated window - * - * @see elm_fileselector_entry_inwin_mode_set() for more details - * - * @ingroup File_Selector_Entry - */ -EAPI Eina_Bool elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj); +#include "elc_fileselector_entry.eo.legacy.h" diff --git a/legacy/elementary/src/lib/elc_fileselector_eo.h b/legacy/elementary/src/lib/elc_fileselector_eo.h index 3b86d84583..35faf6f100 100644 --- a/legacy/elementary/src/lib/elc_fileselector_eo.h +++ b/legacy/elementary/src/lib/elc_fileselector_eo.h @@ -3,48 +3,9 @@ * * @{ */ + #include "elc_fileselector.eo.h" -#if 0 -#define ELM_OBJ_FILESELECTOR_CLASS elm_obj_fileselector_class_get() - -const Eo_Class *elm_obj_fileselector_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_FILESELECTOR_BASE_ID; - -enum -{ - ELM_OBJ_FILESELECTOR_SUB_ID_BUTTONS_OK_CANCEL_SET, - ELM_OBJ_FILESELECTOR_SUB_ID_BUTTONS_OK_CANCEL_GET, - ELM_OBJ_FILESELECTOR_SUB_ID_LAST -}; - -#define ELM_OBJ_FILESELECTOR_ID(sub_id) (ELM_OBJ_FILESELECTOR_BASE_ID + sub_id) - -/** - * @def elm_obj_fileselector_buttons_ok_cancel_set - * @since 1.8 - * - * Enable/disable the "ok" and "cancel" buttons on a given file - * - * @param[in] visible - * - * @see elm_fileselector_buttons_ok_cancel_set - */ -#define elm_obj_fileselector_buttons_ok_cancel_set(visible) ELM_OBJ_FILESELECTOR_ID(ELM_OBJ_FILESELECTOR_SUB_ID_BUTTONS_OK_CANCEL_SET), EO_TYPECHECK(Eina_Bool, visible) - -/** - * @def elm_obj_fileselector_buttons_ok_cancel_get - * @since 1.8 - * - * Get whether the "ok" and "cancel" buttons on a given file - * - * @param[out] ret - * - * @see elm_fileselector_buttons_ok_cancel_get - */ -#define elm_obj_fileselector_buttons_ok_cancel_get(ret) ELM_OBJ_FILESELECTOR_ID(ELM_OBJ_FILESELECTOR_SUB_ID_BUTTONS_OK_CANCEL_GET), EO_TYPECHECK(Eina_Bool *, ret) -#endif /** * @} */ diff --git a/legacy/elementary/src/lib/elc_fileselector_legacy.h b/legacy/elementary/src/lib/elc_fileselector_legacy.h index d8d7b8d336..2773bdb6de 100644 --- a/legacy/elementary/src/lib/elc_fileselector_legacy.h +++ b/legacy/elementary/src/lib/elc_fileselector_legacy.h @@ -75,37 +75,6 @@ EAPI void elm_fileselector_folder_only_set(Evas_Object *obj, Ei */ EAPI Eina_Bool elm_fileselector_folder_only_get(const Evas_Object *obj); -/** - * Enable/disable the "ok" and "cancel" buttons on a given file - * selector widget - * - * @param obj The file selector object - * @param buttons @c EINA_TRUE to show buttons, @c EINA_FALSE to hide. - * - * @note A file selector without those buttons will never emit the - * @c "done" smart event, and is only usable if one is just hooking - * to the other two events. - * - * @see elm_fileselector_buttons_ok_cancel_get() - * - * @ingroup Fileselector - */ -EAPI void elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool buttons); - -/** - * Get whether the "ok" and "cancel" buttons on a given file - * selector widget are being shown. - * - * @param obj The file selector object - * @return @c EINA_TRUE if they are being shown, @c EINA_FALSE - * otherwise (and on errors) - * - * @see elm_fileselector_buttons_ok_cancel_set() for more details - * - * @ingroup Fileselector - */ -EAPI Eina_Bool elm_fileselector_buttons_ok_cancel_get(const Evas_Object *obj); - /** * Enable/disable a tree view in the given file selector widget, * if it's in @c #ELM_FILESELECTOR_LIST mode @@ -437,3 +406,5 @@ EAPI Elm_Fileselector_Sort elm_fileselector_sort_method_get(const Evas_Object *o * @ingroup Fileselector */ EAPI void elm_fileselector_sort_method_set(Evas_Object *obj, Elm_Fileselector_Sort method); + +#include "elc_fileselector.eo.legacy.h" diff --git a/legacy/elementary/src/lib/elm_datetime_eo.h b/legacy/elementary/src/lib/elm_datetime_eo.h index 18b99e2b03..0bb9a70d89 100644 --- a/legacy/elementary/src/lib/elm_datetime_eo.h +++ b/legacy/elementary/src/lib/elm_datetime_eo.h @@ -1,209 +1 @@ -#include "elm_datetime.eo.h" - -#if 0 -#define ELM_OBJ_DATETIME_CLASS elm_obj_datetime_class_get() - -const Eo_Class *elm_obj_datetime_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_DATETIME_BASE_ID; - -enum -{ - ELM_OBJ_DATETIME_SUB_ID_FORMAT_GET, - ELM_OBJ_DATETIME_SUB_ID_FORMAT_SET, - ELM_OBJ_DATETIME_SUB_ID_FIELD_VISIBLE_GET, - ELM_OBJ_DATETIME_SUB_ID_FIELD_VISIBLE_SET, - ELM_OBJ_DATETIME_SUB_ID_FIELD_LIMIT_GET, - ELM_OBJ_DATETIME_SUB_ID_FIELD_LIMIT_SET, - ELM_OBJ_DATETIME_SUB_ID_VALUE_GET, - ELM_OBJ_DATETIME_SUB_ID_VALUE_SET, - ELM_OBJ_DATETIME_SUB_ID_VALUE_MIN_GET, - ELM_OBJ_DATETIME_SUB_ID_VALUE_MIN_SET, - ELM_OBJ_DATETIME_SUB_ID_VALUE_MAX_GET, - ELM_OBJ_DATETIME_SUB_ID_VALUE_MAX_SET, - ELM_OBJ_DATETIME_SUB_ID_LAST -}; - -#define ELM_OBJ_DATETIME_ID(sub_id) (ELM_OBJ_DATETIME_BASE_ID + sub_id) - - -/** - * @def elm_obj_datetime_format_get - * @since 1.8 - * - * Get the datetime format. - * - * @param[out] ret - * - * @see elm_datetime_format_get - * - * @ingroup Datetime - */ -#define elm_obj_datetime_format_get(ret) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_FORMAT_GET), EO_TYPECHECK(const char **, ret) - -/** - * @def elm_obj_datetime_format_set - * @since 1.8 - * - * Set the datetime format. - * - * @param[in] fmt - * - * @see elm_datetime_format_set - * - * @ingroup Datetime - */ -#define elm_obj_datetime_format_set(fmt) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_FORMAT_SET), EO_TYPECHECK(const char *, fmt) - -/** - * @def elm_obj_datetime_field_visible_get - * @since 1.8 - * - * @brief Get whether a field can be visible/not - * - * @param[in] fieldtype - * @param[out] ret - * - * @see elm_datetime_field_visible_get - * - * @ingroup Datetime - */ -#define elm_obj_datetime_field_visible_get(fieldtype, ret) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_FIELD_VISIBLE_GET), EO_TYPECHECK(Elm_Datetime_Field_Type, fieldtype), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_datetime_field_visible_set - * @since 1.8 - * - * @brief Set a field to be visible or not. - * - * @param[in] fieldtype - * @param[in] visible - * - * @see elm_datetime_field_visible_set - * - * @ingroup Datetime - */ -#define elm_obj_datetime_field_visible_set(fieldtype, visible) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_FIELD_VISIBLE_SET), EO_TYPECHECK(Elm_Datetime_Field_Type, fieldtype), EO_TYPECHECK(Eina_Bool, visible) - -/** - * @def elm_obj_datetime_field_limit_get - * @since 1.8 - * - * @brief Get the field limits of a field. - * - * @param[in] fieldtype - * @param[out] min - * @param[out] max - * - * @see elm_datetime_field_limit_get - * - * @ingroup Datetime - */ -#define elm_obj_datetime_field_limit_get(fieldtype, min, max) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_FIELD_LIMIT_GET), EO_TYPECHECK(Elm_Datetime_Field_Type, fieldtype), EO_TYPECHECK(int *, min), EO_TYPECHECK(int *, max) - -/** - * @def elm_obj_datetime_field_limit_set - * @since 1.8 - * - * @brief Set the field limits of a field. - * - * @param[in] fieldtype - * @param[in] min - * @param[in] max - * - * @see elm_datetime_field_limit_set - * - * @ingroup Datetime - */ -#define elm_obj_datetime_field_limit_set(fieldtype, min, max) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_FIELD_LIMIT_SET), EO_TYPECHECK(Elm_Datetime_Field_Type, fieldtype), EO_TYPECHECK(int, min), EO_TYPECHECK(int, max) - -/** - * @def elm_obj_datetime_value_get - * @since 1.8 - * - * @brief Get the current value of a Datetime object. - * - * @param[in,out] currtime - * @param[out] ret - * - * @see elm_datetime_value_get - * - * @ingroup Datetime - */ -#define elm_obj_datetime_value_get(currtime, ret) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_VALUE_GET), EO_TYPECHECK(struct tm *, currtime), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_datetime_value_set - * @since 1.8 - * - * @brief Set the current value of a Datetime object. - * - * @param[in] newtime - * @param[out] ret - * - * @see elm_datetime_value_set - * - * @ingroup Datetime - */ -#define elm_obj_datetime_value_set(newtime, ret) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_VALUE_SET), EO_TYPECHECK(const struct tm *, newtime), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_datetime_value_min_get - * @since 1.8 - * - * @brief Get the lower boundary of a field. - * - * @param[in,out] mintime - * @param[out] ret - * - * @see elm_datetime_value_min_get - * - * @ingroup Datetime - */ -#define elm_obj_datetime_value_min_get(mintime, ret) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_VALUE_MIN_GET), EO_TYPECHECK(struct tm *, mintime), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_datetime_value_min_set - * @since 1.8 - * - * @brief Set the lower boundary of a field. - * - * @param[in] mintime - * @param[out] ret - * - * @see elm_datetime_value_min_set - * - * @ingroup Datetime - */ -#define elm_obj_datetime_value_min_set(mintime, ret) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_VALUE_MIN_SET), EO_TYPECHECK(const struct tm *, mintime), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_datetime_value_max_get - * @since 1.8 - * - * @brief Get the upper boundary of a field. - * - * @param[in,out] maxtime - * @param[out] ret - * - * @see elm_datetime_value_max_get - * - * @ingroup Datetime - */ -#define elm_obj_datetime_value_max_get(maxtime, ret) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_VALUE_MAX_GET), EO_TYPECHECK(struct tm *, maxtime), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_datetime_value_max_set - * @since 1.8 - * - * @brief Set the upper boundary of a field. - * - * @param[in] maxtime - * @param[out] ret - * - * @see elm_datetime_value_max_set - * - * @ingroup Datetime - */ -#define elm_obj_datetime_value_max_set(maxtime, ret) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_VALUE_MAX_SET), EO_TYPECHECK(const struct tm *, maxtime), EO_TYPECHECK(Eina_Bool *, ret) -#endif +#include "elm_datetime.eo.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elm_datetime_legacy.h b/legacy/elementary/src/lib/elm_datetime_legacy.h index 2f52f60a33..9fb9eb9e2b 100644 --- a/legacy/elementary/src/lib/elm_datetime_legacy.h +++ b/legacy/elementary/src/lib/elm_datetime_legacy.h @@ -12,371 +12,4 @@ */ EAPI Evas_Object *elm_datetime_add(Evas_Object *parent); -/** - * Get the datetime format. Format is a combination of allowed Libc date format - * specifiers like: "%b %d, %Y %I : %M %p". - * - * Maximum allowed format length is 64 chars. - * - * Format can include separators for each individual datetime field except - * for AM/PM field. - * - * Each separator can be a maximum of 6 UTF-8 bytes. - * Space is also taken as a separator. - * - * Following are the allowed set of format specifiers for each datetime field. - * - * @b %%Y : The year as a decimal number including the century. - * - * @b %%y : The year as a decimal number without a century (range 00 to 99). - * - * @b %%m : The month as a decimal number (range 01 to 12). - * - * @b %%b : The abbreviated month name according to the current locale. - * - * @b %%B : The full month name according to the current locale. - * - * @b %%h : The abbreviated month name according to the current locale(same as %%b). - * - * @b %%d : The day of the month as a decimal number (range 01 to 31). - * - * @b %%e : The day of the month as a decimal number (range 1 to 31). single - * digits are preceded by a blank. - * - * @b %%I : The hour as a decimal number using a 12-hour clock (range 01 to 12). - * - * @b %%H : The hour as a decimal number using a 24-hour clock (range 00 to 23). - * - * @b %%k : The hour (24-hour clock) as a decimal number (range 0 to 23). single - * digits are preceded by a blank. - * - * @b %%l : The hour (12-hour clock) as a decimal number (range 1 to 12); single - * digits are preceded by a blank. - * - * @b %%M : The minute as a decimal number (range 00 to 59). - * - * @b %%p : Either 'AM' or 'PM' according to the given time value, or the - * corresponding strings for the current locale. Noon is treated as 'PM' - * and midnight as 'AM'. - * - * @b %%P : Like %p but in lower case: 'am' or 'pm' or a corresponding string for - * the current locale. - * - * @b %%c : The preferred date and time representation for the current locale. - * - * @b %%x : The preferred date representation for the current locale without the time. - * - * @b %%X : The preferred time representation for the current locale without the date. - * - * @b %%r : The complete calendar time using the AM/PM format of the current locale. - * - * @b %%R : The hour and minute in decimal numbers using the format %H:%M. - * - * @b %%T : The time of day in decimal numbers using the format %H:%M:%S. - * - * @b %%D : The date using the format %%m/%%d/%%y. - * - * @b %%F : The date using the format %%Y-%%m-%%d. - * - * These specifiers can be arranged in any order and the widget will display the - * fields accordingly. - * - * Default format is taken as per the system locale settings. - * - * @param obj The datetime object - * @return The datetime format string. Example: "%b %d, %Y %I : %M %p" - * - * @see elm_datetime_format_set() - * @ingroup Datetime - */ - EAPI const char *elm_datetime_format_get(const Evas_Object *obj); - -/** - * Set the datetime format. Format is a combination of allowed Libc date format - * specifiers like: "%b %d, %Y %I : %M %p". - * - * Maximum allowed format length is 64 chars. - * - * Format can include separators for each individual datetime field except - * for AM/PM field. - * - * Each separator can be a maximum of 6 UTF-8 bytes. - * Space is also taken as a separator. - * - * Following are the allowed set of format specifiers for each datetime field. - * - * @b %%Y : The year as a decimal number including the century. - * - * @b %%y : The year as a decimal number without a century (range 00 to 99). - * - * @b %%m : The month as a decimal number (range 01 to 12). - * - * @b %%b : The abbreviated month name according to the current locale. - * - * @b %%B : The full month name according to the current locale. - * - * @b %%h : The abbreviated month name according to the current locale(same as %%b). - * - * @b %%d : The day of the month as a decimal number (range 01 to 31). - * - * @b %%e : The day of the month as a decimal number (range 1 to 31). single - * digits are preceded by a blank. - * - * @b %%I : The hour as a decimal number using a 12-hour clock (range 01 to 12). - * - * @b %%H : The hour as a decimal number using a 24-hour clock (range 00 to 23). - * - * @b %%k : The hour (24-hour clock) as a decimal number (range 0 to 23). single - * digits are preceded by a blank. - * - * @b %%l : The hour (12-hour clock) as a decimal number (range 1 to 12); single - * digits are preceded by a blank. - * - * @b %%M : The minute as a decimal number (range 00 to 59). - * - * @b %%p : Either 'AM' or 'PM' according to the given time value, or the - * corresponding strings for the current locale. Noon is treated as 'PM' - * and midnight as 'AM'. - * - * @b %%P : Like %p but in lower case: 'am' or 'pm' or a corresponding string for - * the current locale. - * - * @b %%c : The preferred date and time representation for the current locale. - * - * @b %%x : The preferred date representation for the current locale without the time. - * - * @b %%X : The preferred time representation for the current locale without the date. - * - * @b %%r : The complete calendar time using the AM/PM format of the current locale. - * - * @b %%R : The hour and minute in decimal numbers using the format %H:%M. - * - * @b %%T : The time of day in decimal numbers using the format %H:%M:%S. - * - * @b %%D : The date using the format %%m/%%d/%%y. - * - * @b %%F : The date using the format %%Y-%%m-%%d. - * - * These specifiers can be arranged in any order and the widget will display the - * fields accordingly. - * - * Default format is taken as per the system locale settings. - * - * @param obj The datetime object - * @param fmt The datetime format - * - * @see elm_datetime_format_get() - * @ingroup Datetime - */ -EAPI void elm_datetime_format_set(Evas_Object *obj, const char *fmt); - -/** - * @brief Get whether a field can be visible/not - * - * @param obj The datetime object - * @param fieldtype Type of the field. ELM_DATETIME_YEAR etc - * @return bool @c EINA_TRUE, if field can be visible. @c EINA_FALSE otherwise. - * - * @see elm_datetime_field_visible_set() - * @ingroup Datetime - */ -EAPI Eina_Bool elm_datetime_field_visible_get(const Evas_Object *obj, Elm_Datetime_Field_Type fieldtype); - -/** - * @brief Set a field to be visible or not. - * Setting this API True does not ensure that the field is visible, apart from - * this, the field's format must be present in Datetime overall format. - * If a field's visibility is set to False then it won't appear even though - * its format is present in overall format. - * So if and only if this API is set true and the corresponding field's format - * is present in Datetime format, the field is visible. - * - * By default the field visibility is set to True. - * - * @param obj The datetime object - * @param fieldtype Type of the field. ELM_DATETIME_YEAR etc. - * @param visible @c EINA_TRUE field can be visible, @c EINA_FALSE otherwise. - * - * @see elm_datetime_field_visible_get() - * @ingroup Datetime - */ -EAPI void elm_datetime_field_visible_set(Evas_Object *obj, Elm_Datetime_Field_Type fieldtype, Eina_Bool visible); - -/** - * @brief Get the field limits of a field. - * - * Limits can be set to individual fields, independently, except for AM/PM field. - * Any field can display the values only in between these Minimum and Maximum limits unless - * the corresponding time value is restricted from MinTime to MaxTime. - * That is, Min/ Max field limits always works under the limitations of MinTime/ MaxTime. - * - * There is no provision to set the limits of AM/PM field. - * - * @param obj The datetime object - * @param fieldtype Type of the field. ELM_DATETIME_YEAR etc. - * @param min Reference to field's minimum value - * @param max Reference to field's maximum value - * - * @see elm_datetime_field_limit_set() - * @ingroup Datetime - */ -EAPI void elm_datetime_field_limit_get(const Evas_Object *obj, Elm_Datetime_Field_Type fieldtype, int *min, int *max); - -/** - * @brief Set the field limits of a field. - * - * Limits can be set to individual fields, independently, except for AM/PM field. - * Any field can display the values only in between these Minimum and Maximum limits unless - * the corresponding time value is restricted from MinTime to MaxTime. - * That is, Min/ Max field limits always works under the limitations of MinTime/ MaxTime. - * - * There is no provision to set the limits of AM/PM field. - * - * @param obj The datetime object - * @param fieldtype Type of the field. ELM_DATETIME_YEAR etc. - * @param min Reference to field's minimum value - * @param max Reference to field's maximum value - * - * @see elm_datetime_field_limit_set() - * @ingroup Datetime - */ -EAPI void elm_datetime_field_limit_set(Evas_Object *obj, Elm_Datetime_Field_Type fieldtype, int min, int max); - -/** - * @brief Get the current value of a Datetime object. - * - * Year: years since 1900. Negative value represents year below 1900 (year - * value -30 represents 1870). Year default range is from 70 to 137. - * - * Month: default value range is from 0 to 11. - * - * Date: default value range is from 1 to 31 according to the month value. - * - * Hour: default value will be in terms of 24 hr format (0~23) - * - * Minute: default value range is from 0 to 59. - * - * @param obj The datetime object. - * @param currtime Time structure. - * @return @c EINA_TRUE if current time is returned successfully. - * - * @see elm_datetime_value_set() - * @ingroup Datetime - */ -EAPI Eina_Bool elm_datetime_value_get(const Evas_Object *obj, struct tm *currtime); - -/** - * @brief Set the current value of a Datetime object. - * - * Year: years since 1900. Negative value represents year below 1900 (year - * value -30 represents 1870). Year default range is from 70 to 137. - * - * Month: default value range is from 0 to 11. - * - * Date: default value range is from 1 to 31 according to the month value. - * - * Hour: default value will be in terms of 24 hr format (0~23) - * - * Minute: default value range is from 0 to 59. - * - * - * @param obj The datetime object. - * @param newtime Time structure filled with values to be set. - * @return @c EINA_TRUE if current time is set successfully. - * - * @see elm_datetime_value_set() - * @ingroup Datetime - */ -EAPI Eina_Bool elm_datetime_value_set(Evas_Object *obj, const struct tm *newtime); - -/** - * @brief Get the lower boundary of a field. - * - * Year: years since 1900. Negative value represents year below 1900 (year - * value -30 represents 1870). Year default range is from 70 to 137. - * - * Month: default value range is from 0 to 11. - * - * Date: default value range is from 1 to 31 according to the month value. - * - * Hour: default value will be in terms of 24 hr format (0~23) - * - * Minute: default value range is from 0 to 59. - * - * @param obj The datetime object - * @param mintime Time structure. - * @return @c EINA_TRUE if minimum value is successfully returned. - * - * @see elm_datetime_value_min_set() - * @ingroup Datepicker - */ -EAPI Eina_Bool elm_datetime_value_min_get(const Evas_Object *obj, struct tm *mintime); - -/** - * @brief Set the lower boundary of a field. - * - * Year: years since 1900. Negative value represents year below 1900 (year - * value -30 represents 1870). Year default range is from 70 to 137. - * - * Month: default value range is from 0 to 11. - * - * Date: default value range is from 1 to 31 according to the month value. - * - * Hour: default value will be in terms of 24 hr format (0~23) - * - * Minute: default value range is from 0 to 59. - * - * @param obj The datetime object. - * @param mintime Time structure containing the minimum time value. - * @return @c EINA_TRUE if minimum value is accepted. - * - * @see elm_datetime_value_min_get() - * @ingroup Datetime - */ -EAPI Eina_Bool elm_datetime_value_min_set(Evas_Object *obj, const struct tm *mintime); - -/** - * @brief Get the upper boundary of a field. - * - * Year: years since 1900. Negative value represents year below 1900 (year - * value -30 represents 1870). Year default range is from 70 to 137. - * - * Month: default value range is from 0 to 11. - * - * Date: default value range is from 1 to 31 according to the month value. - * - * Hour: default value will be in terms of 24 hr format (0~23) - * - * Minute: default value range is from 0 to 59. - * - * @param obj The datetime object - * @param maxtime Time structure containing the maximum time value. - * @return @c EINA_TRUE if maximum value is returned successfully. - * - * @see elm_datetime_value_max_set() - * @ingroup Datetime - */ -EAPI Eina_Bool elm_datetime_value_max_get(const Evas_Object *obj, struct tm *maxtime); - -/** - * @brief Set the upper boundary of a field. - * - * Year: years since 1900. Negative value represents year below 1900 (year - * value -30 represents 1870). Year default range is from 70 to 137. - * - * Month: default value range is from 0 to 11. - * - * Date: default value range is from 1 to 31 according to the month value. - * - * Hour: default value will be in terms of 24 hr format (0~23) - * - * Minute: default value range is from 0 to 59. - * - * @param obj The datetime object - * @param maxtime Time structure containing the maximum time value. - * @return @c EINA_TRUE if maximum value is accepted. - * - * @see elm_datetime_value_max_get() - * @ingroup Datetime - */ -EAPI Eina_Bool elm_datetime_value_max_set(Evas_Object *obj, const struct tm *maxtime); +#include "elm_datetime.eo.legacy.h" diff --git a/legacy/elementary/src/lib/elm_dayselector_eo.h b/legacy/elementary/src/lib/elm_dayselector_eo.h index e84f76b919..c049b7b873 100644 --- a/legacy/elementary/src/lib/elm_dayselector_eo.h +++ b/legacy/elementary/src/lib/elm_dayselector_eo.h @@ -1,170 +1 @@ #include "elm_dayselector.eo.h" - -#if 0 -#define ELM_OBJ_DAYSELECTOR_CLASS elm_obj_dayselector_class_get() - -const Eo_Class *elm_obj_dayselector_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_DAYSELECTOR_BASE_ID; - -enum -{ - ELM_OBJ_DAYSELECTOR_SUB_ID_DAY_SELECTED_SET, - ELM_OBJ_DAYSELECTOR_SUB_ID_DAY_SELECTED_GET, - ELM_OBJ_DAYSELECTOR_SUB_ID_WEEK_START_SET, - ELM_OBJ_DAYSELECTOR_SUB_ID_WEEK_START_GET, - ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKEND_START_SET, - ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKEND_START_GET, - ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKEND_LENGTH_SET, - ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKEND_LENGTH_GET, - ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKDAYS_NAMES_SET, - ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKDAYS_NAMES_GET, - ELM_OBJ_DAYSELECTOR_SUB_ID_LAST -}; - -#define ELM_OBJ_DAYSELECTOR_ID(sub_id) (ELM_OBJ_DAYSELECTOR_BASE_ID + sub_id) - - -/** - * @def elm_obj_dayselector_day_selected_set - * @since 1.8 - * - * Set the state of given Dayselector_Day. - * - * @param[in] day - * @param[in] selected - * - * @see elm_dayselector_day_selected_set - * - * @ingroup Dayselector - */ -#define elm_obj_dayselector_day_selected_set(day, selected) ELM_OBJ_DAYSELECTOR_ID(ELM_OBJ_DAYSELECTOR_SUB_ID_DAY_SELECTED_SET), EO_TYPECHECK(Elm_Dayselector_Day, day), EO_TYPECHECK(Eina_Bool, selected) - -/** - * @def elm_obj_dayselector_day_selected_get - * @since 1.8 - * - * Get the state of given Dayselector_Day. - * - * @param[in] day - * @param[out] ret - * - * @see elm_dayselector_day_selected_get - * - * @ingroup Dayselector - */ -#define elm_obj_dayselector_day_selected_get(day, ret) ELM_OBJ_DAYSELECTOR_ID(ELM_OBJ_DAYSELECTOR_SUB_ID_DAY_SELECTED_GET), EO_TYPECHECK(Elm_Dayselector_Day, day), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_dayselector_week_start_set - * @since 1.8 - * - * Set the starting day of Dayselector. - * - * @param[in] day - * - * @see elm_dayselector_week_start_set - * - * @ingroup Dayselector - */ -#define elm_obj_dayselector_week_start_set(day) ELM_OBJ_DAYSELECTOR_ID(ELM_OBJ_DAYSELECTOR_SUB_ID_WEEK_START_SET), EO_TYPECHECK(Elm_Dayselector_Day, day) - -/** - * @def elm_obj_dayselector_week_start_get - * @since 1.8 - * - * Get the starting day of Dayselector. - * - * @param[out] ret - * - * @see elm_dayselector_week_start_get - * - * @ingroup Dayselector - */ -#define elm_obj_dayselector_week_start_get(ret) ELM_OBJ_DAYSELECTOR_ID(ELM_OBJ_DAYSELECTOR_SUB_ID_WEEK_START_GET), EO_TYPECHECK(Elm_Dayselector_Day *, ret) - -/** - * @def elm_obj_dayselector_weekend_start_set - * @since 1.8 - * - * Set the weekend starting day of Dayselector. - * - * @param[in] day - * - * @see elm_dayselector_weekend_start_set - * - * @ingroup Dayselector - */ -#define elm_obj_dayselector_weekend_start_set(day) ELM_OBJ_DAYSELECTOR_ID(ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKEND_START_SET), EO_TYPECHECK(Elm_Dayselector_Day, day) - -/** - * @def elm_obj_dayselector_weekend_start_get - * @since 1.8 - * - * Get the weekend starting day of Dayselector. - * - * @param[out] ret - * - * @see elm_dayselector_weekend_start_get - * - * @ingroup Dayselector - */ -#define elm_obj_dayselector_weekend_start_get(ret) ELM_OBJ_DAYSELECTOR_ID(ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKEND_START_GET), EO_TYPECHECK(Elm_Dayselector_Day *, ret) - -/** - * @def elm_obj_dayselector_weekend_length_set - * @since 1.8 - * - * Set the weekend length of Dayselector. - * - * @param[in] length - * - * @see elm_dayselector_weekend_length_set - * - * @ingroup Dayselector - */ -#define elm_obj_dayselector_weekend_length_set(length) ELM_OBJ_DAYSELECTOR_ID(ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKEND_LENGTH_SET), EO_TYPECHECK(unsigned int, length) - -/** - * @def elm_obj_dayselector_weekend_length_get - * @since 1.8 - * - * Get the weekend length of Dayselector. - * - * @param[out] ret - * - * @see elm_dayselector_weekend_length_get - * - * @ingroup Dayselector - */ -#define elm_obj_dayselector_weekend_length_get(ret) ELM_OBJ_DAYSELECTOR_ID(ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKEND_LENGTH_GET), EO_TYPECHECK(unsigned int *, ret) - -/** - * @def elm_obj_dayselector_weekdays_names_set - * @since 1.8 - * - * Set the weekdays's names - * - * @param[in] weekdays - * - * @see elm_dayselector_weekdays_names_set - * - * @ingroup Dayselector - */ -#define elm_obj_dayselector_weekdays_names_set(weekdays) ELM_OBJ_DAYSELECTOR_ID(ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKDAYS_NAMES_SET), EO_TYPECHECK(const char **, weekdays) - -/** - * @def elm_obj_dayselector_weekdays_names_get - * @since 1.8 - * - * Get the weekdays' names - * - * @param[out] ret - * - * @see elm_dayselector_weekdays_names_get - * - * @ingroup Dayselector - */ -#define elm_obj_dayselector_weekdays_names_get(ret) ELM_OBJ_DAYSELECTOR_ID(ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKDAYS_NAMES_GET), EO_TYPECHECK(Eina_List **, ret) -#endif - diff --git a/legacy/elementary/src/lib/elm_dayselector_legacy.h b/legacy/elementary/src/lib/elm_dayselector_legacy.h index ac648c30a1..68bc78b85d 100644 --- a/legacy/elementary/src/lib/elm_dayselector_legacy.h +++ b/legacy/elementary/src/lib/elm_dayselector_legacy.h @@ -8,157 +8,4 @@ */ EAPI Evas_Object *elm_dayselector_add(Evas_Object *parent); -/** - * Set the state of given Dayselector_Day. - * - * @param obj Dayselector object - * @param day Dayselector_Day that the user want to set state. - * @param selected state of the day. @c EINA_TRUE is selected. - * - * @see Elm_Dayselector_Day - * @see elm_dayselector_day_selected_get() - * - * @ingroup Dayselector - */ -EAPI void elm_dayselector_day_selected_set(Evas_Object *obj, Elm_Dayselector_Day day, Eina_Bool selected); - -/** - * Get the state of given Dayselector_Day. - * - * @param obj Dayselector object - * @param day Dayselector_Day that the user want to know state. - * @return @c EINA_TRUE, if the Day is selected - * - * @see Elm_Dayselector_Day - * @see elm_dayselector_day_selected_set() - * - * @ingroup Dayselector - */ -EAPI Eina_Bool elm_dayselector_day_selected_get(const Evas_Object *obj, Elm_Dayselector_Day day); - -/** - * Set the starting day of Dayselector. - * - * @param obj Dayselector object - * @param day Dayselector_Day the first day that the user wants to display. - * - * @see Elm_Dayselector_Day - * @see elm_dayselector_week_start_get() - * - * @ingroup Dayselector - */ -EAPI void elm_dayselector_week_start_set(Evas_Object *obj, Elm_Dayselector_Day day); - -/** - * Get the starting day of Dayselector. - * - * @param obj Dayselector object - * @return Day from where Dayselector displays all the weekdays in order. - * - * @see Elm_Dayselector_Day - * @see elm_dayselector_week_start_set() - * - * @ingroup Dayselector - */ -EAPI Elm_Dayselector_Day elm_dayselector_week_start_get(const Evas_Object *obj); - -/** - * Set the weekend starting day of Dayselector. - * - * @param obj Dayselector object - * @param day Dayselector_Day the first day from where weekend starts. - * - * @see Elm_Dayselector_Day - * @see elm_dayselector_weekend_start_get() - * - * @ingroup Dayselector - */ -EAPI void elm_dayselector_weekend_start_set(Evas_Object *obj, Elm_Dayselector_Day day); - -/** - * Get the weekend starting day of Dayselector. - * - * @param obj Dayselector object - * @return Elm_Dayselector_Day Day from where weekend starts. - * - * @see Elm_Dayselector_Day - * @see elm_dayselector_weekend_start_set() - * - * @ingroup Dayselector - */ -EAPI Elm_Dayselector_Day elm_dayselector_weekend_start_get(const Evas_Object *obj); - -/** - * Set the weekend length of Dayselector. - * - * @param obj Dayselector object - * @param length Weekend length, number of days as an integer. - * - * @see elm_dayselector_weekend_length_get() - * - * @ingroup Dayselector - */ -EAPI void elm_dayselector_weekend_length_set(Evas_Object *obj, unsigned int length); - -/** - * Get the weekend length of Dayselector. - * - * @param obj Dayselector object - * @return Number of days marked as a weekend. - * - * @see Elm_Dayselector_Day - * @see elm_dayselector_weekend_length_set() - * - * @ingroup Dayselector - */ -EAPI unsigned int elm_dayselector_weekend_length_get(const Evas_Object *obj); - -/** - * Set weekdays names to be displayed by the Dayselector. - * - * @param obj The Dayselector object. - * @param weekdays Array of seven strings to be used as weekday names. - * @warning It must have 7 elements, or it will access invalid memory. - * @warning The strings must be NULL terminated ('@\0'). - * - * By default or if @a weekdays is @c NULL, weekdays abbreviations get from system are displayed: - * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat" - * - * The first string should be related to Sunday, the second to Monday... - * - * The usage should be like this: - * @code - * const char *weekdays[] = - * { - * "Sunday", "Monday", "Tuesday", "Wednesday", - * "Thursday", "Friday", "Saturday" - * }; - * elm_dayselector_wekdays_names_set(calendar, weekdays); - * @endcode - * - * @see elm_dayselector_weekdays_name_get() - * @see elm_dayselector_weekend_start_set() - * - * @since 1.8 - * - * @ingroup Dayselector - */ -EAPI void elm_dayselector_weekdays_names_set(Evas_Object *obj, const char *weekdays[]); - -/** - * Get weekdays names displayed by the calendar. - * - * @param obj The Dayselector object. - * @return A list of seven strings to be used as weekday names. - * - * By default, weekdays abbreviations get from system are displayed: - * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat" - * The first string is related to Sunday, the second to Monday... - * - * @see elm_dayselector_weekdays_name_set() - * - * @since 1.8 - * - * @ingroup Dayselector - */ -EAPI Eina_List *elm_dayselector_weekdays_names_get(const Evas_Object *obj); +#include "elm_dayselector.eo.legacy.h" diff --git a/legacy/elementary/src/lib/elm_diskselector_eo.h b/legacy/elementary/src/lib/elm_diskselector_eo.h index 0719ff1f17..0c9b043b84 100644 --- a/legacy/elementary/src/lib/elm_diskselector_eo.h +++ b/legacy/elementary/src/lib/elm_diskselector_eo.h @@ -1,199 +1 @@ -#include "elm_diskselector.eo.h" - -#if 0 -#define ELM_OBJ_DISKSELECTOR_CLASS elm_obj_diskselector_class_get() - -const Eo_Class *elm_obj_diskselector_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_DISKSELECTOR_BASE_ID; - -enum -{ - ELM_OBJ_DISKSELECTOR_SUB_ID_ROUND_ENABLED_GET, - ELM_OBJ_DISKSELECTOR_SUB_ID_ROUND_ENABLED_SET, - ELM_OBJ_DISKSELECTOR_SUB_ID_SIDE_TEXT_MAX_LENGTH_GET, - ELM_OBJ_DISKSELECTOR_SUB_ID_SIDE_TEXT_MAX_LENGTH_SET, - ELM_OBJ_DISKSELECTOR_SUB_ID_CLEAR, - ELM_OBJ_DISKSELECTOR_SUB_ID_ITEMS_GET, - ELM_OBJ_DISKSELECTOR_SUB_ID_ITEM_APPEND, - ELM_OBJ_DISKSELECTOR_SUB_ID_SELECTED_ITEM_GET, - ELM_OBJ_DISKSELECTOR_SUB_ID_FIRST_ITEM_GET, - ELM_OBJ_DISKSELECTOR_SUB_ID_LAST_ITEM_GET, - ELM_OBJ_DISKSELECTOR_SUB_ID_DISPLAY_ITEM_NUM_SET, - ELM_OBJ_DISKSELECTOR_SUB_ID_DISPLAY_ITEM_NUM_GET, - ELM_OBJ_DISKSELECTOR_SUB_ID_LAST -}; - -#define ELM_OBJ_DISKSELECTOR_ID(sub_id) (ELM_OBJ_DISKSELECTOR_BASE_ID + sub_id) - - -/** - * @def elm_obj_diskselector_round_enabled_get - * @since 1.8 - * - * Get a value whether round mode is enabled or not. - * - * @param[out] ret - * - * @see elm_diskselector_round_enabled_get - */ -#define elm_obj_diskselector_round_enabled_get(ret) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_ROUND_ENABLED_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_diskselector_round_enabled_set - * @since 1.8 - * - * Enable or disable round mode. - * - * @param[in] enabled - * - * @see elm_diskselector_round_enabled_set - * - * @ingroup Diskselector - */ -#define elm_obj_diskselector_round_enabled_set(enabled) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_ROUND_ENABLED_SET), EO_TYPECHECK(Eina_Bool, enabled) - -/** - * @def elm_obj_diskselector_side_text_max_length_get - * @since 1.8 - * - * Get the side labels max length. - * - * @param[out] ret - * - * @see elm_diskselector_side_text_max_length_get - * - * @ingroup Diskselector - */ -#define elm_obj_diskselector_side_text_max_length_get(ret) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_SIDE_TEXT_MAX_LENGTH_GET), EO_TYPECHECK(int *, ret) - -/** - * @def elm_obj_diskselector_side_text_max_length_set - * @since 1.8 - * - * Set the side labels max length. - * - * @param[in] len - * - * @see elm_diskselector_side_text_max_length_set - * - * @ingroup Diskselector - */ -#define elm_obj_diskselector_side_text_max_length_set(len) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_SIDE_TEXT_MAX_LENGTH_SET), EO_TYPECHECK(int, len) - -/** - * @def elm_obj_diskselector_clear - * @since 1.8 - * - * Remove all diskselector's items. - * - * - * @see elm_diskselector_clear - * - * @ingroup Diskselector - */ -#define elm_obj_diskselector_clear() ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_CLEAR) - -/** - * @def elm_obj_diskselector_items_get - * @since 1.8 - * - * Get a list of all the diskselector items. - * - * @param[out] ret - * - * @see elm_diskselector_items_get - * - * @ingroup Diskselector - */ -#define elm_obj_diskselector_items_get(ret) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_ITEMS_GET), EO_TYPECHECK(const Eina_List **, ret) - -/** - * @def elm_obj_diskselector_item_append - * @since 1.8 - * - * Appends a new item to the diskselector object. - * - * @param[in] label - * @param[in] icon - * @param[in] func - * @param[in] data - * @param[out] ret - * - * @see elm_diskselector_item_append - * - * @ingroup Diskselector - */ -#define elm_obj_diskselector_item_append(label, icon, func, data, ret) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_ITEM_APPEND), EO_TYPECHECK(const char *, label), EO_TYPECHECK(Evas_Object *, icon), EO_TYPECHECK(Evas_Smart_Cb, func), EO_TYPECHECK(const void *, data), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_diskselector_selected_item_get - * @since 1.8 - * - * Get the selected item. - * - * @param[out] ret - * - * @see elm_diskselector_selected_item_get - * - * @ingroup Diskselector - */ -#define elm_obj_diskselector_selected_item_get(ret) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_SELECTED_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_diskselector_first_item_get - * @since 1.8 - * - * Get the first item of the diskselector. - * - * @param[out] ret - * - * @see elm_diskselector_first_item_get - * - * @ingroup Diskselector - */ -#define elm_obj_diskselector_first_item_get(ret) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_FIRST_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_diskselector_last_item_get - * @since 1.8 - * - * Get the last item of the diskselector. - * - * @param[out] ret - * - * @see elm_diskselector_last_item_get - * - * @ingroup Diskselector - */ -#define elm_obj_diskselector_last_item_get(ret) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_LAST_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_diskselector_display_item_num_set - * @since 1.8 - * - * Set the number of items to be displayed. - * - * @param[in] num - * - * @see elm_diskselector_display_item_num_set - * - * @ingroup Diskselector - */ -#define elm_obj_diskselector_display_item_num_set(num) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_DISPLAY_ITEM_NUM_SET), EO_TYPECHECK(int, num) - -/** - * @def elm_obj_diskselector_display_item_num_get - * @since 1.8 - * - * Get the number of items in the diskselector object. - * - * @param[out] ret - * - * @see elm_diskselector_display_item_num_get - * - * @ingroup Diskselector - */ -#define elm_obj_diskselector_display_item_num_get(ret) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_DISPLAY_ITEM_NUM_GET), EO_TYPECHECK(int *, ret) -#endif - +#include "elm_diskselector.eo.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elm_diskselector_legacy.h b/legacy/elementary/src/lib/elm_diskselector_legacy.h index 73f3425566..3596c897ee 100644 --- a/legacy/elementary/src/lib/elm_diskselector_legacy.h +++ b/legacy/elementary/src/lib/elm_diskselector_legacy.h @@ -11,230 +11,4 @@ */ EAPI Evas_Object *elm_diskselector_add(Evas_Object *parent); -/** - * Get a value whether round mode is enabled or not. - * - * @see elm_diskselector_round_enabled_set() for details. - * - * @param obj The diskselector object. - * @return @c EINA_TRUE means round mode is enabled. @c EINA_FALSE indicates - * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned. - * - * @ingroup Diskselector - */ -EAPI Eina_Bool elm_diskselector_round_enabled_get(const Evas_Object *obj); - -/** - * Enable or disable round mode. - * - * @param obj The diskselector object. - * @param enabled @c EINA_TRUE to enable round mode or @c EINA_FALSE to - * disable it. - * - * Disabled by default. If round mode is enabled the items list will - * work like a circular list, so when the user reaches the last item, - * the first one will popup. - * - * @see elm_diskselector_round_enabled_get() - * - * @ingroup Diskselector - */ -EAPI void elm_diskselector_round_enabled_set(Evas_Object *obj, Eina_Bool enabled); - -/** - * Get the side labels max length. - * - * @see elm_diskselector_side_text_max_length_set() for details. - * - * @param obj The diskselector object. - * @return The max length defined for side labels, or 0 if not a valid - * diskselector. - * - * @ingroup Diskselector - */ -EAPI int elm_diskselector_side_text_max_length_get(const Evas_Object *obj); - -/** - * Set the side labels max length. - * - * @param obj The diskselector object. - * @param len The max length defined for side labels. - * - * Length is the number of characters of items' label that will be - * visible when it's set on side positions. It will just crop - * the string after defined size. E.g.: - * - * An item with label "January" would be displayed on side position as - * "Jan" if max length is set to 3, or "Janu", if this property - * is set to 4. - * - * When it's selected, the entire label will be displayed, except for - * width restrictions. In this case label will be cropped and "..." - * will be concatenated. - * - * Default side label max length is 3. - * - * This property will be applied over all items, included before or - * later this function call. - * - * @ingroup Diskselector - */ -EAPI void elm_diskselector_side_text_max_length_set(Evas_Object *obj, int len); - -/** - * Remove all diskselector's items. - * - * @param obj The diskselector object. - * - * @see elm_object_item_del() - * @see elm_diskselector_item_append() - * - * @ingroup Diskselector - */ -EAPI void elm_diskselector_clear(Evas_Object *obj); - -/** - * Get a list of all the diskselector items. - * - * @param obj The diskselector object. - * @return An @c Eina_List of diskselector items, #Elm_Object_Item, - * or @c NULL on failure. - * - * @see elm_diskselector_item_append() - * @see elm_object_item_del() - * @see elm_diskselector_clear() - * - * @ingroup Diskselector - */ -EAPI const Eina_List *elm_diskselector_items_get(const Evas_Object *obj); - -/** - * Appends a new item to the diskselector object. - * - * @param obj The diskselector object. - * @param label The label of the diskselector item. - * @param icon The icon object to use at left side of the item. An - * icon can be any Evas object, but usually it is an icon created - * with elm_icon_add(). - * @param func The function to call when the item is selected. - * @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 diskselector, i.e., will - * be set as last item. Also, if there is no selected item, it will - * be selected. This will always happens for the first appended item. - * - * If no icon is set, label will be centered on item position, otherwise - * the icon will be placed at left of the label, that will be shifted - * to the right. - * - * 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 stops the diskselector with this - * item on center position. If such function isn't needed, just passing - * @c NULL as @p func is enough. The same should be done for @p data. - * - * Simple example (with no function callback or data associated): - * @code - * disk = elm_diskselector_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_diskselector_item_append(disk, "label", ic, NULL, NULL); - * @endcode - * - * @see elm_object_item_del() - * @see elm_diskselector_clear() - * @see elm_icon_add() - * - * @ingroup Diskselector - */ -EAPI Elm_Object_Item *elm_diskselector_item_append(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Smart_Cb func, const void *data); - -/** - * Get the selected item. - * - * @param obj The diskselector object. - * @return The selected diskselector item. - * - * The selected item can be unselected with function - * elm_diskselector_item_selected_set(), and the first item of - * diskselector will be selected. - * - * The selected item always will be centered on diskselector, with - * full label displayed, i.e., max length set to side labels won't - * apply on the selected item. More details on - * elm_diskselector_side_text_max_length_set(). - * - * @ingroup Diskselector - */ -EAPI Elm_Object_Item *elm_diskselector_selected_item_get(const Evas_Object *obj); - -/** - * Get the first item of the diskselector. - * - * @param obj The diskselector object. - * @return The first item, or @c NULL if none. - * - * The list of items follows append order. So it will return the first - * item appended to the widget that wasn't deleted. - * - * @see elm_diskselector_item_append() - * @see elm_diskselector_items_get() - * - * @ingroup Diskselector - */ -EAPI Elm_Object_Item *elm_diskselector_first_item_get(const Evas_Object *obj); - -/** - * Get the last item of the diskselector. - * - * @param obj The diskselector object. - * @return The last item, or @c NULL if none. - * - * The list of items follows append order. So it will return last first - * item appended to the widget that wasn't deleted. - * - * @see elm_diskselector_item_append() - * @see elm_diskselector_items_get() - * - * @ingroup Diskselector - */ -EAPI Elm_Object_Item *elm_diskselector_last_item_get(const Evas_Object *obj); - -/** - * Set the number of items to be displayed. - * - * @param obj The diskselector object. - * @param num The number of items the diskselector will display. - * - * Default value is 3, and also it's the minimum. If @p num is less - * than 3, it will be set to 3. - * - * Also, it can be set on theme, using data item @c display_item_num - * on group "elm/diskselector/item/X", where X is style set. - * E.g.: - * - * group { name: "elm/diskselector/item/X"; - * data { - * item: "display_item_num" "5"; - * } - * - * @ingroup Diskselector - */ -EAPI void elm_diskselector_display_item_num_set(Evas_Object *obj, int num); - -/** - * Get the number of items in the diskselector object. - * - * @param obj The diskselector object. - * - * @ingroup Diskselector - */ -EAPI int elm_diskselector_display_item_num_get(const Evas_Object *obj); +#include "elm_diskselector.eo.legacy.h" diff --git a/legacy/elementary/src/lib/elm_entry.eo b/legacy/elementary/src/lib/elm_entry.eo index 444c9d5222..32e00e393b 100644 --- a/legacy/elementary/src/lib/elm_entry.eo +++ b/legacy/elementary/src/lib/elm_entry.eo @@ -129,6 +129,7 @@ class Elm_Entry (Elm_Layout, Elm_Interface_Scrollable, Evas_Clickable_Interface) } get { /*@ This returns whether the entry's selection handlers are disabled. */ + legacy null; } values { Eina_Bool disabled; /*@ If true, the selection handlers are disabled. */ diff --git a/legacy/elementary/src/lib/elm_entry_eo.h b/legacy/elementary/src/lib/elm_entry_eo.h index 2629893207..8d7fab352c 100644 --- a/legacy/elementary/src/lib/elm_entry_eo.h +++ b/legacy/elementary/src/lib/elm_entry_eo.h @@ -1,1401 +1 @@ #include "elm_entry.eo.h" -#if 0 -#define ELM_OBJ_ENTRY_CLASS elm_obj_entry_class_get() - -const Eo_Class *elm_obj_entry_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_ENTRY_BASE_ID; - -enum -{ - ELM_OBJ_ENTRY_SUB_ID_TEXT_STYLE_USER_PUSH, - ELM_OBJ_ENTRY_SUB_ID_TEXT_STYLE_USER_POP, - ELM_OBJ_ENTRY_SUB_ID_TEXT_STYLE_USER_PEEK, - ELM_OBJ_ENTRY_SUB_ID_SINGLE_LINE_SET, - ELM_OBJ_ENTRY_SUB_ID_SINGLE_LINE_GET, - ELM_OBJ_ENTRY_SUB_ID_PASSWORD_SET, - ELM_OBJ_ENTRY_SUB_ID_PASSWORD_GET, - ELM_OBJ_ENTRY_SUB_ID_ENTRY_APPEND, - ELM_OBJ_ENTRY_SUB_ID_IS_EMPTY, - ELM_OBJ_ENTRY_SUB_ID_TEXTBLOCK_GET, - ELM_OBJ_ENTRY_SUB_ID_CALC_FORCE, - ELM_OBJ_ENTRY_SUB_ID_SELECTION_GET, - ELM_OBJ_ENTRY_SUB_ID_SELECTION_HANDLER_DISABLED_SET, - ELM_OBJ_ENTRY_SUB_ID_SELECTION_HANDLER_DISABLED_GET, - ELM_OBJ_ENTRY_SUB_ID_ENTRY_INSERT, - ELM_OBJ_ENTRY_SUB_ID_LINE_WRAP_SET, - ELM_OBJ_ENTRY_SUB_ID_LINE_WRAP_GET, - ELM_OBJ_ENTRY_SUB_ID_EDITABLE_SET, - ELM_OBJ_ENTRY_SUB_ID_EDITABLE_GET, - ELM_OBJ_ENTRY_SUB_ID_SELECT_NONE, - ELM_OBJ_ENTRY_SUB_ID_SELECT_ALL, - ELM_OBJ_ENTRY_SUB_ID_SELECT_REGION_SET, - ELM_OBJ_ENTRY_SUB_ID_CURSOR_GEOMETRY_GET, - ELM_OBJ_ENTRY_SUB_ID_CURSOR_NEXT, - ELM_OBJ_ENTRY_SUB_ID_CURSOR_PREV, - ELM_OBJ_ENTRY_SUB_ID_CURSOR_UP, - ELM_OBJ_ENTRY_SUB_ID_CURSOR_DOWN, - ELM_OBJ_ENTRY_SUB_ID_CURSOR_BEGIN_SET, - ELM_OBJ_ENTRY_SUB_ID_CURSOR_END_SET, - ELM_OBJ_ENTRY_SUB_ID_CURSOR_LINE_BEGIN_SET, - ELM_OBJ_ENTRY_SUB_ID_CURSOR_LINE_END_SET, - ELM_OBJ_ENTRY_SUB_ID_CURSOR_SELECTION_BEGIN, - ELM_OBJ_ENTRY_SUB_ID_CURSOR_SELECTION_END, - ELM_OBJ_ENTRY_SUB_ID_CURSOR_IS_FORMAT_GET, - ELM_OBJ_ENTRY_SUB_ID_CURSOR_IS_VISIBLE_FORMAT_GET, - ELM_OBJ_ENTRY_SUB_ID_CURSOR_CONTENT_GET, - ELM_OBJ_ENTRY_SUB_ID_CURSOR_POS_SET, - ELM_OBJ_ENTRY_SUB_ID_CURSOR_POS_GET, - ELM_OBJ_ENTRY_SUB_ID_SELECTION_CUT, - ELM_OBJ_ENTRY_SUB_ID_SELECTION_COPY, - ELM_OBJ_ENTRY_SUB_ID_SELECTION_PASTE, - ELM_OBJ_ENTRY_SUB_ID_CONTEXT_MENU_CLEAR, - ELM_OBJ_ENTRY_SUB_ID_CONTEXT_MENU_ITEM_ADD, - ELM_OBJ_ENTRY_SUB_ID_CONTEXT_MENU_DISABLED_SET, - ELM_OBJ_ENTRY_SUB_ID_CONTEXT_MENU_DISABLED_GET, - ELM_OBJ_ENTRY_SUB_ID_ITEM_PROVIDER_APPEND, - ELM_OBJ_ENTRY_SUB_ID_ITEM_PROVIDER_PREPEND, - ELM_OBJ_ENTRY_SUB_ID_ITEM_PROVIDER_REMOVE, - ELM_OBJ_ENTRY_SUB_ID_MARKUP_FILTER_APPEND, - ELM_OBJ_ENTRY_SUB_ID_MARKUP_FILTER_PREPEND, - ELM_OBJ_ENTRY_SUB_ID_MARKUP_FILTER_REMOVE, - ELM_OBJ_ENTRY_SUB_ID_FILE_SET, - ELM_OBJ_ENTRY_SUB_ID_FILE_GET, - ELM_OBJ_ENTRY_SUB_ID_FILE_SAVE, - ELM_OBJ_ENTRY_SUB_ID_AUTOSAVE_SET, - ELM_OBJ_ENTRY_SUB_ID_AUTOSAVE_GET, - ELM_OBJ_ENTRY_SUB_ID_CNP_MODE_SET, - ELM_OBJ_ENTRY_SUB_ID_CNP_MODE_GET, - ELM_OBJ_ENTRY_SUB_ID_SCROLLABLE_SET, - ELM_OBJ_ENTRY_SUB_ID_SCROLLABLE_GET, - ELM_OBJ_ENTRY_SUB_ID_ICON_VISIBLE_SET, - ELM_OBJ_ENTRY_SUB_ID_END_VISIBLE_SET, - ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_LAYOUT_SET, - ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_LAYOUT_GET, - ELM_OBJ_ENTRY_SUB_ID_AUTOCAPITAL_TYPE_SET, - ELM_OBJ_ENTRY_SUB_ID_AUTOCAPITAL_TYPE_GET, - ELM_OBJ_ENTRY_SUB_ID_PREDICTION_ALLOW_SET, - ELM_OBJ_ENTRY_SUB_ID_PREDICTION_ALLOW_GET, - ELM_OBJ_ENTRY_SUB_ID_IMF_CONTEXT_RESET, - ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_ENABLED_SET, - ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_ENABLED_GET, - ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_SHOW, - ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_HIDE, - ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_LANGUAGE_SET, - ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_LANGUAGE_GET, - ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_IMDATA_SET, - ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_IMDATA_GET, - ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_RETURN_KEY_TYPE_SET, - ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_RETURN_KEY_TYPE_GET, - ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_RETURN_KEY_DISABLED_SET, - ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_RETURN_KEY_DISABLED_GET, - ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_RETURN_KEY_AUTOENABLED_SET, - ELM_OBJ_ENTRY_SUB_ID_IMF_CONTEXT_GET, - ELM_OBJ_ENTRY_SUB_ID_ANCHOR_HOVER_PARENT_SET, - ELM_OBJ_ENTRY_SUB_ID_ANCHOR_HOVER_PARENT_GET, - ELM_OBJ_ENTRY_SUB_ID_ANCHOR_HOVER_STYLE_SET, - ELM_OBJ_ENTRY_SUB_ID_ANCHOR_HOVER_STYLE_GET, - ELM_OBJ_ENTRY_SUB_ID_ANCHOR_HOVER_END, - ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_LAYOUT_VARIATION_SET, - ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_LAYOUT_VARIATION_GET, - ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_SHOW_ON_DEMAND_SET, - ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_SHOW_ON_DEMAND_GET, - ELM_OBJ_ENTRY_SUB_ID_LAST -}; - -#define ELM_OBJ_ENTRY_ID(sub_id) (ELM_OBJ_ENTRY_BASE_ID + sub_id) - - -/** - * @def elm_obj_entry_text_style_user_push - * @since 1.8 - * - * Push the style to the top of user style stack. - * - * @param[in] style - * - * @see elm_entry_text_style_user_push - * - * @ingroup Entry - */ -#define elm_obj_entry_text_style_user_push(style) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_TEXT_STYLE_USER_PUSH), EO_TYPECHECK(const char *, style) - -/** - * @def elm_obj_entry_text_style_user_pop - * @since 1.8 - * - * Remove the style in the top of user style stack. - * - * - * @see elm_entry_text_style_user_pop - * - * @ingroup Entry - */ -#define elm_obj_entry_text_style_user_pop() ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_TEXT_STYLE_USER_POP) - -/** - * @def elm_obj_entry_text_style_user_peek - * @since 1.8 - * - * Retrieve the style on the top of user style stack. - * - * @param[out] ret - * - * @see elm_entry_text_style_user_peek - * - * @ingroup Entry - */ -#define elm_obj_entry_text_style_user_peek(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_TEXT_STYLE_USER_PEEK), EO_TYPECHECK(const char **, ret) - -/** - * @def elm_obj_entry_single_line_set - * @since 1.8 - * - * Sets the entry to single line mode. - * - * @param[in] single_line - * - * @see elm_entry_single_line_set - * - * @ingroup Entry - */ -#define elm_obj_entry_single_line_set(single_line) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_SINGLE_LINE_SET), EO_TYPECHECK(Eina_Bool, single_line) - -/** - * @def elm_obj_entry_single_line_get - * @since 1.8 - * - * Get whether the entry is set to be single line. - * - * @param[out] ret - * - * @see elm_entry_single_line_get - * - * @ingroup Entry - */ -#define elm_obj_entry_single_line_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_SINGLE_LINE_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_entry_password_set - * @since 1.8 - * - * Sets the entry to password mode. - * - * @param[in] password - * - * @see elm_entry_password_set - * - * @ingroup Entry - */ -#define elm_obj_entry_password_set(password) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_PASSWORD_SET), EO_TYPECHECK(Eina_Bool, password) - -/** - * @def elm_obj_entry_password_get - * @since 1.8 - * - * Get whether the entry is set to password mode. - * - * @param[out] ret - * - * @see elm_entry_password_get - * - * @ingroup Entry - */ -#define elm_obj_entry_password_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_PASSWORD_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_entry_entry_append - * @since 1.8 - * - * Appends entry to the text of the entry. - * - * @param[in] entry - * - * @see elm_entry_entry_append - * - * @ingroup Entry - */ -#define elm_obj_entry_entry_append(entry) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_ENTRY_APPEND), EO_TYPECHECK(const char *, entry) - -/** - * @def elm_obj_entry_is_empty - * @since 1.8 - * - * Get whether the entry is empty. - * - * @param[out] ret - * - * @see elm_entry_is_empty - * - * @ingroup Entry - */ -#define elm_obj_entry_is_empty(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_IS_EMPTY), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_entry_textblock_get - * @since 1.8 - * - * Returns the actual textblock object of the entry. - * - * @param[out] ret - * - * @see elm_entry_textblock_get - * - * @ingroup Entry - */ -#define elm_obj_entry_textblock_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_TEXTBLOCK_GET), EO_TYPECHECK(Evas_Object **, ret) - -/** - * @def elm_obj_entry_calc_force - * @since 1.8 - * - * Forces calculation of the entry size and text layouting. - * - * - * @see elm_entry_calc_force - * - * @ingroup Entry - */ -#define elm_obj_entry_calc_force() ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CALC_FORCE) - -/** - * @def elm_obj_entry_selection_get - * @since 1.8 - * - * Get any selected text within the entry. - * - * @param[out] ret - * - * @see elm_entry_selection_get - * - * @ingroup Entry - */ -#define elm_obj_entry_selection_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_SELECTION_GET), EO_TYPECHECK(const char **, ret) - -/** - * @def elm_obj_entry_selection_handler_disabled_set - * @since 1.8 - * - * This disables entry's selection handlers. - * - * @param[in] disabled - * - * @see elm_entry_selection_handler_disabled_set - * - * @ingroup Entry - */ -#define elm_obj_entry_selection_handler_disabled_set(disbaled) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_SELECTION_HANDLER_DISABLED_SET), EO_TYPECHECK(Eina_Bool, disabled) - -/** - * @def elm_obj_entry_selection_handler_disabled_get - * @since 1.8 - * - * This returns whether the entry's selection handlers are disabled. - * - * @param[out] ret - * - * @see elm_entry_selection_handler_disabled_get - * - * @ingroup Entry - */ -#define elm_obj_entry_selection_handler_disabled_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_SELECTION_HANDLER_DISABLED_GET), EO_TYPECHECK(Eina_Bool *, ret) - - -/** - * @def elm_obj_entry_entry_insert - * @since 1.8 - * - * Inserts the given text into the entry at the current cursor position. - * - * @param[in] entry - * - * @see elm_entry_entry_insert - * - * @ingroup Entry - */ -#define elm_obj_entry_entry_insert(entry) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_ENTRY_INSERT), EO_TYPECHECK(const char *, entry) - -/** - * @def elm_obj_entry_line_wrap_set - * @since 1.8 - * - * Set the line wrap type to use on multi-line entries. - * - * @param[in] wrap - * - * @see elm_entry_line_wrap_set - * - * @ingroup Entry - */ -#define elm_obj_entry_line_wrap_set(wrap) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_LINE_WRAP_SET), EO_TYPECHECK(Elm_Wrap_Type, wrap) - -/** - * @def elm_obj_entry_line_wrap_get - * @since 1.8 - * - * Get the wrap mode the entry was set to use. - * - * @param[out] ret - * - * @see elm_entry_line_wrap_get - * - * @ingroup Entry - */ -#define elm_obj_entry_line_wrap_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_LINE_WRAP_GET), EO_TYPECHECK(Elm_Wrap_Type *, ret) - -/** - * @def elm_obj_entry_editable_set - * @since 1.8 - * - * Sets if the entry is to be editable or not. - * - * @param[in] editable - * - * @see elm_entry_editable_set - * - * @ingroup Entry - */ -#define elm_obj_entry_editable_set(editable) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_EDITABLE_SET), EO_TYPECHECK(Eina_Bool, editable) - -/** - * @def elm_obj_entry_editable_get - * @since 1.8 - * - * Get whether the entry is editable or not. - * - * @param[out] ret - * - * @see elm_entry_editable_get - * - * @ingroup Entry - */ -#define elm_obj_entry_editable_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_EDITABLE_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_entry_select_none - * @since 1.8 - * - * This drops any existing text selection within the entry. - * - * - * @see elm_entry_select_none - * - * @ingroup Entry - */ -#define elm_obj_entry_select_none() ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_SELECT_NONE) - -/** - * @def elm_obj_entry_select_all - * @since 1.8 - * - * This selects all text within the entry. - * - * - * @see elm_entry_select_all - * - * @ingroup Entry - */ -#define elm_obj_entry_select_all() ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_SELECT_ALL) - -/** - * @def elm_obj_entry_select_region_set - * @since 1.9 - * - * This selects a region of text within the entry. - * - * @param[in] start - * @param[in] end - * - * @see elm_entry_select_region_set - * - * @ingroup Entry - */ -#define elm_obj_entry_select_region_set(start, end) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_SELECT_REGION_SET), EO_TYPECHECK(int, start), EO_TYPECHECK(int, end) - -/** - * @def elm_obj_entry_cursor_geometry_get - * @since 1.8 - * - * This function returns the geometry of the cursor. - * - * @param[out] x - * @param[out] y - * @param[out] w - * @param[out] h - * @param[out] ret - * - * @see elm_entry_cursor_geometry_get - * - * @ingroup Entry - */ -#define elm_obj_entry_cursor_geometry_get(x, y, w, h, ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CURSOR_GEOMETRY_GET), EO_TYPECHECK(Evas_Coord *, x), EO_TYPECHECK(Evas_Coord *, y), EO_TYPECHECK(Evas_Coord *, w), EO_TYPECHECK(Evas_Coord *, h), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_entry_cursor_next - * @since 1.8 - * - * This moves the cursor one place to the right within the entry. - * - * @param[out] ret - * - * @see elm_entry_cursor_next - * - * @ingroup Entry - */ -#define elm_obj_entry_cursor_next(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CURSOR_NEXT), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_entry_cursor_prev - * @since 1.8 - * - * This moves the cursor one place to the left within the entry. - * - * @param[out] ret - * - * @see elm_entry_cursor_prev - * - * @ingroup Entry - */ -#define elm_obj_entry_cursor_prev(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CURSOR_PREV), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_entry_cursor_up - * @since 1.8 - * - * This moves the cursor one line up within the entry. - * - * @param[out] ret - * - * @see elm_entry_cursor_up - * - * @ingroup Entry - */ -#define elm_obj_entry_cursor_up(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CURSOR_UP), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_entry_cursor_down - * @since 1.8 - * - * This moves the cursor one line down within the entry. - * - * @param[out] ret - * - * @see elm_entry_cursor_down - * - * @ingroup Entry - */ -#define elm_obj_entry_cursor_down(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CURSOR_DOWN), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_entry_cursor_begin_set - * @since 1.8 - * - * This moves the cursor to the beginning of the entry. - * - * - * @see elm_entry_cursor_begin_set - * - * @ingroup Entry - */ -#define elm_obj_entry_cursor_begin_set() ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CURSOR_BEGIN_SET) - -/** - * @def elm_obj_entry_cursor_end_set - * @since 1.8 - * - * This moves the cursor to the end of the entry. - * - * - * @see elm_entry_cursor_end_set - * - * @ingroup Entry - */ -#define elm_obj_entry_cursor_end_set() ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CURSOR_END_SET) - -/** - * @def elm_obj_entry_cursor_line_begin_set - * @since 1.8 - * - * This moves the cursor to the beginning of the current line. - * - * - * @see elm_entry_cursor_line_begin_set - * - * @ingroup Entry - */ -#define elm_obj_entry_cursor_line_begin_set() ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CURSOR_LINE_BEGIN_SET) - -/** - * @def elm_obj_entry_cursor_line_end_set - * @since 1.8 - * - * This moves the cursor to the end of the current line. - * - * - * @see elm_entry_cursor_line_end_set - * - * @ingroup Entry - */ -#define elm_obj_entry_cursor_line_end_set() ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CURSOR_LINE_END_SET) - -/** - * @def elm_obj_entry_cursor_selection_begin - * @since 1.8 - * - * This begins a selection within the entry as though - * - * - * @see elm_entry_cursor_selection_begin - * - * @ingroup Entry - */ -#define elm_obj_entry_cursor_selection_begin() ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CURSOR_SELECTION_BEGIN) - -/** - * @def elm_obj_entry_cursor_selection_end - * @since 1.8 - * - * This ends a selection within the entry as though - * - * - * @see elm_entry_cursor_selection_end - * - * @ingroup Entry - */ -#define elm_obj_entry_cursor_selection_end() ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CURSOR_SELECTION_END) - -/** - * @def elm_obj_entry_cursor_is_format_get - * @since 1.8 - * - * Get whether a format node exists at the current cursor position. - * - * @param[out] ret - * - * @see elm_entry_cursor_is_format_get - * - * @ingroup Entry - */ -#define elm_obj_entry_cursor_is_format_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CURSOR_IS_FORMAT_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_entry_cursor_is_visible_format_get - * @since 1.8 - * - * Get if the current cursor position holds a visible format node. - * - * @param[out] ret - * - * @see elm_entry_cursor_is_visible_format_get - * - * @ingroup Entry - */ -#define elm_obj_entry_cursor_is_visible_format_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CURSOR_IS_VISIBLE_FORMAT_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_entry_cursor_content_get - * @since 1.8 - * - * Get the character pointed by the cursor at its current position. - * - * @param[out] ret - * - * @see elm_entry_cursor_content_get - * - * @ingroup Entry - */ -#define elm_obj_entry_cursor_content_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CURSOR_CONTENT_GET), EO_TYPECHECK(char **, ret) - -/** - * @def elm_obj_entry_cursor_pos_set - * @since 1.8 - * - * Sets the cursor position in the entry to the given value - * - * @param[in] pos - * - * @see elm_entry_cursor_pos_set - * - * @ingroup Entry - */ -#define elm_obj_entry_cursor_pos_set(pos) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CURSOR_POS_SET), EO_TYPECHECK(int, pos) - -/** - * @def elm_obj_entry_cursor_pos_get - * @since 1.8 - * - * Retrieves the current position of the cursor in the entry - * - * @param[out] ret - * - * @see elm_entry_cursor_pos_get - * - * @ingroup Entry - */ -#define elm_obj_entry_cursor_pos_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CURSOR_POS_GET), EO_TYPECHECK(int *, ret) - -/** - * @def elm_obj_entry_selection_cut - * @since 1.8 - * - * This executes a "cut" action on the selected text in the entry. - * - * - * @see elm_entry_selection_cut - * - * @ingroup Entry - */ -#define elm_obj_entry_selection_cut() ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_SELECTION_CUT) - -/** - * @def elm_obj_entry_selection_copy - * @since 1.8 - * - * This executes a "copy" action on the selected text in the entry. - * - * - * @see elm_entry_selection_copy - * - * @ingroup Entry - */ -#define elm_obj_entry_selection_copy() ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_SELECTION_COPY) - -/** - * @def elm_obj_entry_selection_paste - * @since 1.8 - * - * This executes a "paste" action in the entry. - * - * - * @see elm_entry_selection_paste - * - * @ingroup Entry - */ -#define elm_obj_entry_selection_paste() ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_SELECTION_PASTE) - -/** - * @def elm_obj_entry_context_menu_clear - * @since 1.8 - * - * This clears and frees the items in a entry's contextual (longpress) - * - * - * @see elm_entry_context_menu_clear - * - * @ingroup Entry - */ -#define elm_obj_entry_context_menu_clear() ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CONTEXT_MENU_CLEAR) - -/** - * @def elm_obj_entry_context_menu_item_add - * @since 1.8 - * - * This adds an item to the entry's contextual menu. - * - * @param[in] label - * @param[in] icon_file - * @param[in] icon_type - * @param[in] func - * @param[in] data - * - * @see elm_entry_context_menu_item_add - * - * @ingroup Entry - */ -#define elm_obj_entry_context_menu_item_add(label, icon_file, icon_type, func, data) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CONTEXT_MENU_ITEM_ADD), EO_TYPECHECK(const char *, label), EO_TYPECHECK(const char *, icon_file), EO_TYPECHECK(Elm_Icon_Type, icon_type), EO_TYPECHECK(Evas_Smart_Cb, func), EO_TYPECHECK(const void *, data) - -/** - * @def elm_obj_entry_context_menu_disabled_set - * @since 1.8 - * - * This disables the entry's contextual (longpress) menu. - * - * @param[in] disabled - * - * @see elm_entry_context_menu_disabled_set - * - * @ingroup Entry - */ -#define elm_obj_entry_context_menu_disabled_set(disabled) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CONTEXT_MENU_DISABLED_SET), EO_TYPECHECK(Eina_Bool, disabled) - -/** - * @def elm_obj_entry_context_menu_disabled_get - * @since 1.8 - * - * This returns whether the entry's contextual (longpress) menu is - * disabled. - * - * @param[out] ret - * - * @see elm_entry_context_menu_disabled_get - * - * @ingroup Entry - */ -#define elm_obj_entry_context_menu_disabled_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CONTEXT_MENU_DISABLED_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_entry_item_provider_append - * @since 1.8 - * - * This appends a custom item provider to the list for that entry - * - * @param[in] func - * @param[in] data - * - * @see elm_entry_item_provider_append - * - * @ingroup Entry - */ -#define elm_obj_entry_item_provider_append(func, data) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_ITEM_PROVIDER_APPEND), EO_TYPECHECK(Elm_Entry_Item_Provider_Cb, func), EO_TYPECHECK(void *, data) - -/** - * @def elm_obj_entry_item_provider_prepend - * @since 1.8 - * - * This prepends a custom item provider to the list for that entry - * - * @param[in] func - * @param[in] data - * - * @see elm_entry_item_provider_prepend - * - * @ingroup Entry - */ -#define elm_obj_entry_item_provider_prepend(func, data) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_ITEM_PROVIDER_PREPEND), EO_TYPECHECK(Elm_Entry_Item_Provider_Cb, func), EO_TYPECHECK(void *, data) - -/** - * @def elm_obj_entry_item_provider_remove - * @since 1.8 - * - * This removes a custom item provider to the list for that entry - * - * @param[in] func - * @param[in] data - * - * @see elm_entry_item_provider_remove - * - * @ingroup Entry - */ -#define elm_obj_entry_item_provider_remove(func, data) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_ITEM_PROVIDER_REMOVE), EO_TYPECHECK(Elm_Entry_Item_Provider_Cb, func), EO_TYPECHECK(void *, data) - -/** - * @def elm_obj_entry_markup_filter_append - * @since 1.8 - * - * Append a markup filter function for text inserted in the entry - * - * @param[in] func - * @param[in] data - * - * @see elm_entry_markup_filter_append - * - * @ingroup Entry - */ -#define elm_obj_entry_markup_filter_append(func, data) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_MARKUP_FILTER_APPEND), EO_TYPECHECK(Elm_Entry_Filter_Cb, func), EO_TYPECHECK(void *, data) - -/** - * @def elm_obj_entry_markup_filter_prepend - * @since 1.8 - * - * Prepend a markup filter function for text inserted in the entry - * - * @param[in] func - * @param[in] data - * - * @see elm_entry_markup_filter_prepend - * - * @ingroup Entry - */ -#define elm_obj_entry_markup_filter_prepend(func, data) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_MARKUP_FILTER_PREPEND), EO_TYPECHECK(Elm_Entry_Filter_Cb, func), EO_TYPECHECK(void *, data) - -/** - * @def elm_obj_entry_markup_filter_remove - * @since 1.8 - * - * Remove a markup filter from the list - * - * @param[in] func - * @param[in] data - * - * @see elm_entry_markup_filter_remove - * - * @ingroup Entry - */ -#define elm_obj_entry_markup_filter_remove(func, data) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_MARKUP_FILTER_REMOVE), EO_TYPECHECK(Elm_Entry_Filter_Cb, func), EO_TYPECHECK(void *, data) - -/** - * @def elm_obj_entry_file_set - * @since 1.8 - * - * This sets the file (and implicitly loads it) for the text to display and - * then edit. All changes are written back to the file after a short delay if - * the entry object is set to autosave (which is the default). - * - * @param[in] file - * @param[in] format - * @param[out] ret - * - * @see elm_entry_file_set - * - * @ingroup Entry - */ -#define elm_obj_entry_file_set(file, format, ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_FILE_SET), EO_TYPECHECK(const char *, file), EO_TYPECHECK(Elm_Text_Format, format), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_entry_file_get - * @since 1.8 - * - * Get the file being edited by the entry. - * - * @param[out] file - * @param[out] format - * - * @see elm_entry_file_get - * - * @ingroup Entry - */ -#define elm_obj_entry_file_get(file, format) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_FILE_GET), EO_TYPECHECK(const char **, file), EO_TYPECHECK(Elm_Text_Format *, format) - -/** - * @def elm_obj_entry_file_save - * @since 1.8 - * - * This function writes any changes made to the file set with - * elm_entry_file_set() - * - * - * @see elm_entry_file_save - * - * @ingroup Entry - */ -#define elm_obj_entry_file_save() ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_FILE_SAVE) - -/** - * @def elm_obj_entry_autosave_set - * @since 1.8 - * - * This sets the entry object to 'autosave' the loaded text file or not. - * - * @param[in] auto_save - * - * @see elm_entry_autosave_set - * - * @ingroup Entry - */ -#define elm_obj_entry_autosave_set(auto_save) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_AUTOSAVE_SET), EO_TYPECHECK(Eina_Bool, auto_save) - -/** - * @def elm_obj_entry_autosave_get - * @since 1.8 - * - * This gets the entry object's 'autosave' status. - * - * @param[out] ret - * - * @see elm_entry_autosave_get - * - * @ingroup Entry - */ -#define elm_obj_entry_autosave_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_AUTOSAVE_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_entry_cnp_mode_set - * @since 1.8 - * - * Control pasting of text and images for the widget. - * - * @param[in] cnp_mode - * - * @see elm_entry_cnp_mode_set - * - * @ingroup Entry - */ -#define elm_obj_entry_cnp_mode_set(cnp_mode) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CNP_MODE_SET), EO_TYPECHECK(Elm_Cnp_Mode, cnp_mode) - -/** - * @def elm_obj_entry_cnp_mode_get - * @since 1.8 - * - * Getting elm_entry text paste/drop mode. - * - * @param[out] ret - * - * @see elm_entry_cnp_mode_get - * - * @ingroup Entry - */ -#define elm_obj_entry_cnp_mode_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_CNP_MODE_GET), EO_TYPECHECK(Elm_Cnp_Mode *, ret) - -/** - * @def elm_obj_entry_scrollable_set - * @since 1.8 - * - * Enable or disable scrolling in entry - * - * @param[in] scroll - * - * @see elm_entry_scrollable_set - * - * @ingroup Entry - */ -#define elm_obj_entry_scrollable_set(scroll) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_SCROLLABLE_SET), EO_TYPECHECK(Eina_Bool, scroll) - -/** - * @def elm_obj_entry_scrollable_get - * @since 1.8 - * - * Get the scrollable state of the entry - * - * @param[out] ret - * - * @see elm_entry_scrollable_get - * - * @ingroup Entry - */ -#define elm_obj_entry_scrollable_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_SCROLLABLE_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_entry_icon_visible_set - * @since 1.8 - * - * Sets the visibility of the left-side widget of the entry, - * set by elm_object_part_content_set(). - * - * @param[in] setting - * - * @see elm_entry_icon_visible_set - * - * @ingroup Entry - */ -#define elm_obj_entry_icon_visible_set(setting) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_ICON_VISIBLE_SET), EO_TYPECHECK(Eina_Bool, setting) - -/** - * @def elm_obj_entry_end_visible_set - * @since 1.8 - * - * Sets the visibility of the end widget of the entry, set by - * - * @param[in] setting - * - * @see elm_entry_end_visible_set - * - * @ingroup Entry - */ -#define elm_obj_entry_end_visible_set(setting) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_END_VISIBLE_SET), EO_TYPECHECK(Eina_Bool, setting) - -/** - * @def elm_obj_entry_input_panel_layout_set - * @since 1.8 - * - * Set the input panel layout of the entry - * - * @param[in] layout - * - * @see elm_entry_input_panel_layout_set - * - * @ingroup Entry - */ -#define elm_obj_entry_input_panel_layout_set(layout) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_LAYOUT_SET), EO_TYPECHECK(Elm_Input_Panel_Layout, layout) - -/** - * @def elm_obj_entry_input_panel_layout_get - * @since 1.8 - * - * Get the input panel layout of the entry - * - * @param[out] ret - * - * @see elm_entry_input_panel_layout_get - * - * @ingroup Entry - */ -#define elm_obj_entry_input_panel_layout_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_LAYOUT_GET), EO_TYPECHECK(Elm_Input_Panel_Layout *, ret) - -/** - * @def elm_obj_entry_input_panel_layout_variation_set - * @since 1.8 - * - * Set the input panel layout variation of the entry - * - * @param[in] layout variation - * - * @see elm_entry_input_panel_layout_variation_set - * - * @ingroup Entry - */ -#define elm_obj_entry_input_panel_layout_variation_set(variation) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_LAYOUT_VARIATION_SET), EO_TYPECHECK(int, variation) - -/** - * @def elm_obj_entry_input_panel_layout_variation_get - * @since 1.8 - * - * Get the input panel layout variation of the entry - * - * @param[out] ret - * - * @see elm_entry_input_panel_layout_variation_get - * - * @ingroup Entry - */ -#define elm_obj_entry_input_panel_layout_variation_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_LAYOUT_VARIATION_GET), EO_TYPECHECK(int *, ret) - -/** - * @def elm_obj_entry_autocapital_type_set - * @since 1.8 - * - * Set the autocapitalization type on the immodule. - * - * @param[in] autocapital_type - * - * @see elm_entry_autocapital_type_set - * - * @ingroup Entry - */ -#define elm_obj_entry_autocapital_type_set(autocapital_type) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_AUTOCAPITAL_TYPE_SET), EO_TYPECHECK(Elm_Autocapital_Type, autocapital_type) - -/** - * @def elm_obj_entry_autocapital_type_get - * @since 1.8 - * - * Retrieve the autocapitalization type on the immodule. - * - * @param[out] ret - * - * @see elm_entry_autocapital_type_get - * - * @ingroup Entry - */ -#define elm_obj_entry_autocapital_type_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_AUTOCAPITAL_TYPE_GET), EO_TYPECHECK(Elm_Autocapital_Type *, ret) - -/** - * @def elm_obj_entry_prediction_allow_set - * @since 1.8 - * - * Set whether the entry should allow to use the text prediction. - * - * @param[in] prediction - * - * @see elm_entry_prediction_allow_set - * - * @ingroup Entry - */ -#define elm_obj_entry_prediction_allow_set(prediction) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_PREDICTION_ALLOW_SET), EO_TYPECHECK(Eina_Bool, prediction) - -/** - * @def elm_obj_entry_prediction_allow_get - * @since 1.8 - * - * Get whether the entry should allow to use the text prediction. - * - * @param[out] ret - * - * @see elm_entry_prediction_allow_get - * - * @ingroup Entry - */ -#define elm_obj_entry_prediction_allow_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_PREDICTION_ALLOW_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_entry_imf_context_reset - * @since 1.8 - * - * Reset the input method context of the entry if needed. - * - * - * @see elm_entry_imf_context_reset - * - * @ingroup Entry - */ -#define elm_obj_entry_imf_context_reset() ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_IMF_CONTEXT_RESET) - -/** - * @def elm_obj_entry_input_panel_enabled_set - * @since 1.8 - * - * Sets the attribute to show the input panel automatically. - * - * @param[in] enabled - * - * @see elm_entry_input_panel_enabled_set - * - * @ingroup Entry - */ -#define elm_obj_entry_input_panel_enabled_set(enabled) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_ENABLED_SET), EO_TYPECHECK(Eina_Bool, enabled) - -/** - * @def elm_obj_entry_input_panel_enabled_get - * @since 1.8 - * - * Retrieve the attribute to show the input panel automatically. - * - * @param[out] ret - * - * @see elm_entry_input_panel_enabled_get - * - * @ingroup Entry - */ -#define elm_obj_entry_input_panel_enabled_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_ENABLED_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_entry_input_panel_show - * @since 1.8 - * - * Show the input panel (virtual keyboard) based on the input panel property of entry such as layout, autocapital types, and so on. - * - * - * @see elm_entry_input_panel_show - * - * @ingroup Entry - */ -#define elm_obj_entry_input_panel_show() ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_SHOW) - -/** - * @def elm_obj_entry_input_panel_hide - * @since 1.8 - * - * Hide the input panel (virtual keyboard). - * - * - * @see elm_entry_input_panel_hide - * - * @ingroup Entry - */ -#define elm_obj_entry_input_panel_hide() ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_HIDE) - -/** - * @def elm_obj_entry_input_panel_language_set - * @since 1.8 - * - * Set the language mode of the input panel. - * - * @param[in] lang - * - * @see elm_entry_input_panel_language_set - * - * @ingroup Entry - */ -#define elm_obj_entry_input_panel_language_set(lang) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_LANGUAGE_SET), EO_TYPECHECK(Elm_Input_Panel_Lang, lang) - -/** - * @def elm_obj_entry_input_panel_language_get - * @since 1.8 - * - * Get the language mode of the input panel. - * - * @param[out] ret - * - * @see elm_entry_input_panel_language_get - * - * @ingroup Entry - */ -#define elm_obj_entry_input_panel_language_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_LANGUAGE_GET), EO_TYPECHECK(Elm_Input_Panel_Lang *, ret) - -/** - * @def elm_obj_entry_input_panel_imdata_set - * @since 1.8 - * - * Set the input panel-specific data to deliver to the input panel. - * - * @param[in] data - * @param[in] len - * - * @see elm_entry_input_panel_imdata_set - * - * @ingroup Entry - */ -#define elm_obj_entry_input_panel_imdata_set(data, len) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_IMDATA_SET), EO_TYPECHECK(const void *, data), EO_TYPECHECK(int, len) - -/** - * @def elm_obj_entry_input_panel_imdata_get - * @since 1.8 - * - * Get the specific data of the current input panel. - * - * @param[out] data - * @param[out] len - * - * @see elm_entry_input_panel_imdata_get - * - * @ingroup Entry - */ -#define elm_obj_entry_input_panel_imdata_get(data, len) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_IMDATA_GET), EO_TYPECHECK(void *, data), EO_TYPECHECK(int *, len) - -/** - * @def elm_obj_entry_input_panel_return_key_type_set - * @since 1.8 - * - * Set the "return" key type. This type is used to set string or icon on the "return" key of the input panel. - * - * @param[in] return_key_type - * - * @see elm_entry_input_panel_return_key_type_set - * - * @ingroup Entry - */ -#define elm_obj_entry_input_panel_return_key_type_set(return_key_type) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_RETURN_KEY_TYPE_SET), EO_TYPECHECK(Elm_Input_Panel_Return_Key_Type, return_key_type) - -/** - * @def elm_obj_entry_input_panel_return_key_type_get - * @since 1.8 - * - * Get the "return" key type. - * - * @param[out] ret - * - * @see elm_entry_input_panel_return_key_type_get - * - * @ingroup Entry - */ -#define elm_obj_entry_input_panel_return_key_type_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_RETURN_KEY_TYPE_GET), EO_TYPECHECK(Elm_Input_Panel_Return_Key_Type *, ret) - -/** - * @def elm_obj_entry_input_panel_return_key_disabled_set - * @since 1.8 - * - * Set the return key on the input panel to be disabled. - * - * @param[in] disabled - * - * @see elm_entry_input_panel_return_key_disabled_set - * - * @ingroup Entry - */ -#define elm_obj_entry_input_panel_return_key_disabled_set(disabled) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_RETURN_KEY_DISABLED_SET), EO_TYPECHECK(Eina_Bool, disabled) - -/** - * @def elm_obj_entry_input_panel_return_key_disabled_get - * @since 1.8 - * - * Get whether the return key on the input panel should be disabled or not. - * - * @param[out] ret - * - * @see elm_entry_input_panel_return_key_disabled_get - * - * @ingroup Entry - */ -#define elm_obj_entry_input_panel_return_key_disabled_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_RETURN_KEY_DISABLED_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_entry_input_panel_return_key_autoenabled_set - * @since 1.8 - * - * Set whether the return key on the input panel is disabled automatically when entry has no text. - * - * @param[in] enabled - * - * @see elm_entry_input_panel_return_key_autoenabled_set - * - * @ingroup Entry - */ -#define elm_obj_entry_input_panel_return_key_autoenabled_set(enabled) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_RETURN_KEY_AUTOENABLED_SET), EO_TYPECHECK(Eina_Bool, enabled) - -/** - * @def elm_obj_entry_input_panel_show_on_demand_set - * @since 1.9 - * - * Set the attribute to show the input panel in case of only an user's explicit Mouse Up event. - * - * @param[in] ondemand - * - * @see elm_entry_input_panel_show_on_demand_set - * - * @ingroup Entry - */ -#define elm_obj_entry_input_panel_show_on_demand_set(ondemand) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_SHOW_ON_DEMAND_SET), EO_TYPECHECK(Eina_Bool, ondemand) - -/** - * @def elm_obj_entry_input_panel_show_on_demand_get - * @since 1.9 - * - * Get the attribute to show the input panel in case of only an user's explicit Mouse Up event. - * - * @param[out] ret - * - * @see elm_entry_input_panel_show_on_demand_get - * - * @ingroup Entry - */ -#define elm_obj_entry_input_panel_show_on_demand_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_INPUT_PANEL_SHOW_ON_DEMAND_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_entry_imf_context_get - * @since 1.8 - * - * Returns the input method context of the entry. - * - * @param[out] ret - * - * @see elm_entry_imf_context_get - * - * @ingroup Entry - */ -#define elm_obj_entry_imf_context_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_IMF_CONTEXT_GET), EO_TYPECHECK(void **, ret) - -/** - * @def elm_obj_entry_anchor_hover_parent_set - * @since 1.8 - * - * Set the parent of the hover popup - * - * @param[in] parent - * - * @see elm_entry_anchor_hover_parent_set - * - * @ingroup Entry - */ -#define elm_obj_entry_anchor_hover_parent_set(parent) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_ANCHOR_HOVER_PARENT_SET), EO_TYPECHECK(Evas_Object *, parent) - -/** - * @def elm_obj_entry_anchor_hover_parent_get - * @since 1.8 - * - * Get the parent of the hover popup - * - * @param[out] ret - * - * @see elm_entry_anchor_hover_parent_get - * - * @ingroup Entry - */ -#define elm_obj_entry_anchor_hover_parent_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_ANCHOR_HOVER_PARENT_GET), EO_TYPECHECK(Evas_Object **, ret) - -/** - * @def elm_obj_entry_anchor_hover_style_set - * @since 1.8 - * - * Set the style that the hover should use - * - * @param[in] style - * - * @see elm_entry_anchor_hover_style_set - * - * @ingroup Entry - */ -#define elm_obj_entry_anchor_hover_style_set(style) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_ANCHOR_HOVER_STYLE_SET), EO_TYPECHECK(const char *, style) - -/** - * @def elm_obj_entry_anchor_hover_style_get - * @since 1.8 - * - * Get the style that the hover should use - * - * @param[out] ret - * - * @see elm_entry_anchor_hover_style_get - */ -#define elm_obj_entry_anchor_hover_style_get(ret) ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_ANCHOR_HOVER_STYLE_GET), EO_TYPECHECK(const char **, ret) - -/** - * @def elm_obj_entry_anchor_hover_end - * @since 1.8 - * - * Ends the hover popup in the entry - * - * - * @see elm_entry_anchor_hover_end - * - * @ingroup Entry - */ -#define elm_obj_entry_anchor_hover_end() ELM_OBJ_ENTRY_ID(ELM_OBJ_ENTRY_SUB_ID_ANCHOR_HOVER_END) -#endif diff --git a/legacy/elementary/src/lib/elm_entry_legacy.h b/legacy/elementary/src/lib/elm_entry_legacy.h index cb79a76463..55e87e717b 100644 --- a/legacy/elementary/src/lib/elm_entry_legacy.h +++ b/legacy/elementary/src/lib/elm_entry_legacy.h @@ -37,1198 +37,4 @@ EAPI void elm_entry_entry_set(Evas_Object *obj, const char *entry) */ EAPI const char *elm_entry_entry_get(const Evas_Object *obj); -/** - * Push the style to the top of user style stack. - * If there is styles in the user style stack, the properties in the top style - * of user style stack will replace the properties in current theme. - * The input style is specified in format tag='property=value' (i.e. DEFAULT='font=Sans font_size=60'hilight=' + font_weight=Bold'). - * - * @param obj The entry object - * @param style The style user to push - * - * @ingroup Entry - * @since 1.7 - */ -EAPI void elm_entry_text_style_user_push(Evas_Object *obj, const char *style); - -/** - * Remove the style in the top of user style stack. - * - * @param obj The entry object - * - * @see elm_entry_text_style_user_push() - * - * @ingroup Entry - * @since 1.7 - */ -EAPI void elm_entry_text_style_user_pop(Evas_Object *obj); - -/** - * Retrieve the style on the top of user style stack. - * - * @param obj The entry object - * @return style on the top of user style stack if exist, otherwise NULL. - * - * @see elm_entry_text_style_user_push() - * - * @ingroup Entry - * @since 1.7 - */ -EAPI const char* elm_entry_text_style_user_peek(const Evas_Object *obj); - -/** - * Sets the entry to single line mode. - * - * In single line mode, entries don't ever wrap when the text reaches the - * edge, and instead they keep growing horizontally. Pressing the @c Enter - * key will generate an @c "activate" event instead of adding a new line. - * - * When @p single_line is @c EINA_FALSE, line wrapping takes effect again - * and pressing enter will break the text into a different line - * without generating any events. - * - * @param obj The entry object - * @param single_line If true, the text in the entry - * will be on a single line. - * - * @ingroup Entry - */ -EAPI void elm_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line); - -/** - * Get whether the entry is set to be single line. - * - * @param obj The entry object - * @return single_line If true, the text in the entry is set to display - * on a single line. - * - * @see elm_entry_single_line_set() - * - * @ingroup Entry - */ -EAPI Eina_Bool elm_entry_single_line_get(const Evas_Object *obj); - -/** - * Sets the entry to password mode. - * - * In password mode, entries are implicitly single line and the display of - * any text in them is replaced with asterisks (*). - * - * @param obj The entry object - * @param password If true, password mode is enabled. - * - * @ingroup Entry - */ -EAPI void elm_entry_password_set(Evas_Object *obj, Eina_Bool password); - -/** - * Get whether the entry is set to password mode. - * - * @param obj The entry object - * @return If true, the entry is set to display all characters - * as asterisks (*). - * - * @see elm_entry_password_set() - * - * @ingroup Entry - */ -EAPI Eina_Bool elm_entry_password_get(const Evas_Object *obj); - -/** - * Appends @p entry to the text of the entry. - * - * Adds the text in @p entry to the end of any text already present in the - * widget. - * - * The appended text is subject to any filters set for the widget. - * - * @param obj The entry object - * @param entry The text to be displayed - * - * @see elm_entry_markup_filter_append() - * - * @ingroup Entry - */ -EAPI void elm_entry_entry_append(Evas_Object *obj, const char *entry); - -/** - * Get whether the entry is empty. - * - * Empty means no text at all. If there are any markup tags, like an item - * tag for which no provider finds anything, and no text is displayed, this - * function still returns EINA_FALSE. - * - * @param obj The entry object - * @return EINA_TRUE if the entry is empty, EINA_FALSE otherwise. - * - * @ingroup Entry - */ -EAPI Eina_Bool elm_entry_is_empty(const Evas_Object *obj); - -/** - * Returns the actual textblock object of the entry. - * - * This function exposes the internal textblock object that actually - * contains and draws the text. This should be used for low-level - * manipulations that are otherwise not possible. - * - * Changing the textblock directly from here will not notify edje/elm to - * recalculate the textblock size automatically, so any modifications - * done to the textblock returned by this function should be followed by - * a call to elm_entry_calc_force(). - * - * The return value is marked as const as an additional warning. - * One should not use the returned object with any of the generic evas - * functions (geometry_get/resize/move and etc), but only with the textblock - * functions; The former will either not work at all, or break the correct - * functionality. - * - * IMPORTANT: Many functions may change (i.e delete and create a new one) - * the internal textblock object. Do NOT cache the returned object, and try - * not to mix calls on this object with regular elm_entry calls (which may - * change the internal textblock object). This applies to all cursors - * returned from textblock calls, and all the other derivative values. - * - * @param obj The entry object - * @return The textblock object. - * - * @ingroup Entry - */ -EAPI Evas_Object * elm_entry_textblock_get(const Evas_Object *obj); - -/** - * Forces calculation of the entry size and text layouting. - * - * This should be used after modifying the textblock object directly. See - * elm_entry_textblock_get() for more information. - * - * @param obj The entry object - * - * @see elm_entry_textblock_get() - * - * @ingroup Entry - */ -EAPI void elm_entry_calc_force(Evas_Object *obj); - -/** - * Get any selected text within the entry. - * - * If there's any selected text in the entry, this function returns it as - * a string in markup format. NULL is returned if no selection exists or - * if an error occurred. - * - * The returned value points to an internal string and should not be freed - * or modified in any way. If the @p entry object is deleted or its - * contents are changed, the returned pointer should be considered invalid. - * - * @param obj The entry object - * @return The selected text within the entry or NULL on failure - * - * @ingroup Entry - */ -EAPI const char *elm_entry_selection_get(const Evas_Object *obj); - -/** - * This disabled the entry's selection handlers. - * - * @param obj The entry object - * @param disabled If true, the selection handlers are disabled. - * - * @ingroup Entry - */ -EAPI void elm_entry_selection_handler_disabled_set(Evas_Object *obj, Eina_Bool disabled); - -/** - * This returns whether the entry's selection handlers are disabled. - * - * @param obj The entry object - * @return If true, the selection handlers are disabled. - * - * @ingroup Entry - */ -EAPI void elm_entry_selection_handler_disabled_set(Evas_Object *obj, Eina_Bool disabled); - - -/** - * Inserts the given text into the entry at the current cursor position. - * - * This inserts text at the cursor position as if it was typed - * by the user (note that this also allows markup which a user - * can't just "type" as it would be converted to escaped text, so this - * call can be used to insert things like emoticon items or bold push/pop - * tags, other font and color change tags etc.) - * - * If any selection exists, it will be replaced by the inserted text. - * - * The inserted text is subject to any filters set for the widget. - * - * @param obj The entry object - * @param entry The text to insert - * - * @see elm_entry_markup_filter_append() - * - * @ingroup Entry - */ -EAPI void elm_entry_entry_insert(Evas_Object *obj, const char *entry); - -/** - * Set the line wrap type to use on multi-line entries. - * - * Sets the wrap type used by the entry to any of the specified in - * Elm_Wrap_Type. This tells how the text will be implicitly cut into a new - * line (without inserting a line break or paragraph separator) when it - * reaches the far edge of the widget. - * - * Note that this only makes sense for multi-line entries. A widget set - * to be single line will never wrap. - * - * @param obj The entry object - * @param wrap The wrap mode to use. See Elm_Wrap_Type for details on them - * - * @ingroup Entry - */ -EAPI void elm_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap); - -/** - * Get the wrap mode the entry was set to use. - * - * @param obj The entry object - * @return Wrap type - * - * @see also elm_entry_line_wrap_set() - * - * @ingroup Entry - */ -EAPI Elm_Wrap_Type elm_entry_line_wrap_get(const Evas_Object *obj); - -/** - * Sets if the entry is to be editable or not. - * - * By default, entries are editable and when focused, any text input by the - * user will be inserted at the current cursor position. But calling this - * function with @p editable as EINA_FALSE will prevent the user from - * inputting text into the entry. - * - * The only way to change the text of a non-editable entry is to use - * elm_object_text_set(), elm_entry_entry_insert() and other related - * functions. - * - * @param obj The entry object - * @param editable If EINA_TRUE, user input will be inserted in the entry, - * if not, the entry is read-only and no user input is allowed. - * - * @ingroup Entry - */ -EAPI void elm_entry_editable_set(Evas_Object *obj, Eina_Bool editable); - -/** - * Get whether the entry is editable or not. - * - * @param obj The entry object - * @return If true, the entry is editable by the user. - * If false, it is not editable by the user - * - * @see elm_entry_editable_set() - * - * @ingroup Entry - */ -EAPI Eina_Bool elm_entry_editable_get(const Evas_Object *obj); - -/** - * This drops any existing text selection within the entry. - * - * @param obj The entry object - * - * @ingroup Entry - */ -EAPI void elm_entry_select_none(Evas_Object *obj); - -/** - * This selects all text within the entry. - * - * @param obj The entry object - * - * @ingroup Entry - */ -EAPI void elm_entry_select_all(Evas_Object *obj); - -/** - * This selects a region of text within the entry. - * - * @param obj The entry object - * @param start The starting position - * @param end The end position - * - * @ingroup Entry - * @since 1.9 - */ -EAPI void elm_entry_select_region_set(Evas_Object *obj, int start, int end); - -/** - * This function returns the geometry of the cursor. - * - * It's useful if you want to draw something on the cursor (or where it is), - * or for example in the case of scrolled entry where you want to show the - * cursor. - * - * @param obj The entry object - * @param x returned geometry - * @param y returned geometry - * @param w returned geometry - * @param h returned geometry - * @return EINA_TRUE upon success, EINA_FALSE upon failure - * - * @ingroup Entry - */ -EAPI Eina_Bool elm_entry_cursor_geometry_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h); - -/** - * This moves the cursor one place to the right within the entry. - * - * @param obj The entry object - * @return EINA_TRUE upon success, EINA_FALSE upon failure - * - * @ingroup Entry - */ -EAPI Eina_Bool elm_entry_cursor_next(Evas_Object *obj); - -/** - * This moves the cursor one place to the left within the entry. - * - * @param obj The entry object - * @return EINA_TRUE upon success, EINA_FALSE upon failure - * - * @ingroup Entry - */ -EAPI Eina_Bool elm_entry_cursor_prev(Evas_Object *obj); - -/** - * This moves the cursor one line up within the entry. - * - * @param obj The entry object - * @return EINA_TRUE upon success, EINA_FALSE upon failure - * - * @ingroup Entry - */ -EAPI Eina_Bool elm_entry_cursor_up(Evas_Object *obj); - -/** - * This moves the cursor one line down within the entry. - * - * @param obj The entry object - * @return EINA_TRUE upon success, EINA_FALSE upon failure - * - * @ingroup Entry - */ -EAPI Eina_Bool elm_entry_cursor_down(Evas_Object *obj); - -/** - * This moves the cursor to the beginning of the entry. - * - * @param obj The entry object - * - * @ingroup Entry - */ -EAPI void elm_entry_cursor_begin_set(Evas_Object *obj); - -/** - * This moves the cursor to the end of the entry. - * - * @param obj The entry object - * - * @ingroup Entry - */ -EAPI void elm_entry_cursor_end_set(Evas_Object *obj); - -/** - * This moves the cursor to the beginning of the current line. - * - * @param obj The entry object - * - * @ingroup Entry - */ -EAPI void elm_entry_cursor_line_begin_set(Evas_Object *obj); - -/** - * This moves the cursor to the end of the current line. - * - * @param obj The entry object - * - * @ingroup Entry - */ -EAPI void elm_entry_cursor_line_end_set(Evas_Object *obj); - -/** - * This begins a selection within the entry as though - * the user were holding down the mouse button to make a selection. - * - * @param obj The entry object - * - * @ingroup Entry - */ -EAPI void elm_entry_cursor_selection_begin(Evas_Object *obj); - -/** - * This ends a selection within the entry as though - * the user had just released the mouse button while making a selection. - * - * @param obj The entry object - * - * @ingroup Entry - */ -EAPI void elm_entry_cursor_selection_end(Evas_Object *obj); - -/** - * Get whether a format node exists at the current cursor position. - * - * A format node is anything that defines how the text is rendered. It can - * be a visible format node, such as a line break or a paragraph separator, - * or an invisible one, such as bold begin or end tag. - * This function returns whether any format node exists at the current - * cursor position. - * - * @param obj The entry object - * @return EINA_TRUE if the current cursor position contains a format node, - * EINA_FALSE otherwise. - * - * @see elm_entry_cursor_is_visible_format_get() - * - * @ingroup Entry - */ -EAPI Eina_Bool elm_entry_cursor_is_format_get(const Evas_Object *obj); - -/** - * Get if the current cursor position holds a visible format node. - * - * @param obj The entry object - * @return EINA_TRUE if the current cursor is a visible format, EINA_FALSE - * if it's an invisible one or no format exists. - * - * @see elm_entry_cursor_is_format_get() - * - * @ingroup Entry - */ -EAPI Eina_Bool elm_entry_cursor_is_visible_format_get(const Evas_Object *obj); - -/** - * Get the character pointed by the cursor at its current position. - * - * This function returns a string with the utf8 character stored at the - * current cursor position. - * Only the text is returned, any format that may exist will not be part - * of the return value. You must free the string when done with free(). - * - * @param obj The entry object - * @return The text pointed by the cursors. - * - * @ingroup Entry - */ -EAPI char *elm_entry_cursor_content_get(const Evas_Object *obj); - -/** - * Sets the cursor position in the entry to the given value - * - * The value in @p pos is the index of the character position within the - * contents of the string as returned by elm_entry_cursor_pos_get(). - * - * @param obj The entry object - * @param pos The position of the cursor - * - * @ingroup Entry - */ -EAPI void elm_entry_cursor_pos_set(Evas_Object *obj, int pos); - -/** - * Retrieves the current position of the cursor in the entry - * - * @param obj The entry object - * @return The cursor position - * - * @ingroup Entry - */ -EAPI int elm_entry_cursor_pos_get(const Evas_Object *obj); - -/** - * This executes a "cut" action on the selected text in the entry. - * - * @param obj The entry object - * - * @ingroup Entry - */ -EAPI void elm_entry_selection_cut(Evas_Object *obj); - -/** - * This executes a "copy" action on the selected text in the entry. - * - * @param obj The entry object - * - * @ingroup Entry - */ -EAPI void elm_entry_selection_copy(Evas_Object *obj); - -/** - * This executes a "paste" action in the entry. - * - * @param obj The entry object - * - * @ingroup Entry - */ -EAPI void elm_entry_selection_paste(Evas_Object *obj); - -/** - * This clears and frees the items in a entry's contextual (longpress) - * menu. - * - * @param obj The entry object - * - * @see elm_entry_context_menu_item_add() - * - * @ingroup Entry - */ -EAPI void elm_entry_context_menu_clear(Evas_Object *obj); - -/** - * This adds an item to the entry's contextual menu. - * - * A longpress on an entry will make the contextual menu show up, if this - * hasn't been disabled with elm_entry_context_menu_disabled_set(). - * By default, this menu provides a few options like enabling selection mode, - * which is useful on embedded devices that need to be explicit about it, - * and when a selection exists it also shows the copy and cut actions. - * - * With this function, developers can add other options to this menu to - * perform any action they deem necessary. - * - * @param obj The entry object - * @param label The item's text label - * @param icon_file The item's icon file - * @param icon_type The item's icon type - * @param func The callback to execute when the item is clicked - * @param data The data to associate with the item for related functions - * - * @ingroup Entry - */ -EAPI void elm_entry_context_menu_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, const void *data); - -/** - * This disables the entry's contextual (longpress) menu. - * - * @param obj The entry object - * @param disabled If true, the menu is disabled - * - * @ingroup Entry - */ -EAPI void elm_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled); - -/** - * This returns whether the entry's contextual (longpress) menu is - * disabled. - * - * @param obj The entry object - * @return If true, the menu is disabled - * - * @ingroup Entry - */ -EAPI Eina_Bool elm_entry_context_menu_disabled_get(const Evas_Object *obj); - -/** - * This appends a custom item provider to the list for that entry - * - * This appends the given callback. The list is walked from beginning to end - * with each function called given the item href string in the text. If the - * function returns an object handle other than NULL (it should create an - * object to do this), then this object is used to replace that item. If - * not the next provider is called until one provides an item object, or the - * default provider in entry does. - * - * @param obj The entry object - * @param func The function called to provide the item object - * @param data The data passed to @p func - * - * @see @ref entry-items - * - * @ingroup Entry - */ -EAPI void elm_entry_item_provider_append(Evas_Object *obj, Elm_Entry_Item_Provider_Cb func, void *data); - -/** - * This prepends a custom item provider to the list for that entry - * - * This prepends the given callback. See elm_entry_item_provider_append() for - * more information - * - * @param obj The entry object - * @param func The function called to provide the item object - * @param data The data passed to @p func - * - * @ingroup Entry - */ -EAPI void elm_entry_item_provider_prepend(Evas_Object *obj, Elm_Entry_Item_Provider_Cb func, void *data); - -/** - * This removes a custom item provider to the list for that entry - * - * This removes the given callback. See elm_entry_item_provider_append() for - * more information - * - * @param obj The entry object - * @param func The function called to provide the item object - * @param data The data passed to @p func - * - * @ingroup Entry - */ -EAPI void elm_entry_item_provider_remove(Evas_Object *obj, Elm_Entry_Item_Provider_Cb func, void *data); - -/** - * Append a markup filter function for text inserted in the entry - * - * Append the given callback to the list. This functions will be called - * whenever any text is inserted into the entry, with the text to be inserted - * as a parameter. The type of given text is always markup. - * 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 its - * text parameter to NULL. This will also prevent any following filters from - * being called. - * - * @param obj The entry object - * @param func The function to use as text filter - * @param data User data to pass to @p func - * - * @ingroup Entry - */ -EAPI void elm_entry_markup_filter_append(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data); - -/** - * Prepend a markup filter function for text inserted in the entry - * - * Prepend the given callback to the list. See elm_entry_markup_filter_append() - * for more information - * - * @param obj The entry object - * @param func The function to use as text filter - * @param data User data to pass to @p func - * - * @ingroup Entry - */ -EAPI void elm_entry_markup_filter_prepend(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data); - -/** - * Remove a markup filter from the list - * - * Removes the given callback from the filter list. See - * elm_entry_markup_filter_append() for more information. - * - * @param obj The entry object - * @param func The filter function to remove - * @param data The user data passed when adding the function - * - * @ingroup Entry - */ -EAPI void elm_entry_markup_filter_remove(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data); - -/** - * This sets the file (and implicitly loads it) for the text to display and - * then edit. All changes are written back to the file after a short delay if - * the entry object is set to autosave (which is the default). - * - * If the entry had any other file set previously, any changes made to it - * will be saved if the autosave feature is enabled, otherwise, the file - * will be silently discarded and any non-saved changes will be lost. - * - * @param obj The entry object - * @param file The path to the file to load and save - * @param format The file format - * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise - * - * @ingroup Entry - */ -EAPI Eina_Bool elm_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format); - -/** - * Get the file being edited by the entry. - * - * This function can be used to retrieve any file set on the entry for - * edition, along with the format used to load and save it. - * - * @param obj The entry object - * @param file The path to the file to load and save - * @param format The file format - * - * @ingroup Entry - */ -EAPI void elm_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format); - -/** - * This function writes any changes made to the file set with - * elm_entry_file_set() - * - * @param obj The entry object - * - * @ingroup Entry - */ -EAPI void elm_entry_file_save(Evas_Object *obj); - -/** - * This sets the entry object to 'autosave' the loaded text file or not. - * - * @param obj The entry object - * @param autosave Autosave the loaded file or not - * - * @see elm_entry_file_set() - * - * @ingroup Entry - */ -EAPI void elm_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave); - -/** - * This gets the entry object's 'autosave' status. - * - * @param obj The entry object - * @return Autosave the loaded file or not - * - * @see elm_entry_file_set() - * - * @ingroup Entry - */ -EAPI Eina_Bool elm_entry_autosave_get(const Evas_Object *obj); - -/** - * Control pasting of text and images for the widget. - * - * Normally the entry allows both text and images to be pasted. - * By setting cnp_mode to be #ELM_CNP_MODE_NO_IMAGE, this prevents images from being copy or past. - * By setting cnp_mode to be #ELM_CNP_MODE_PLAINTEXT, this remove all tags in text . - * - * @note this only changes the behaviour of text. - * - * @param obj The entry object - * @param cnp_mode One of #Elm_Cnp_Mode: #ELM_CNP_MODE_MARKUP, #ELM_CNP_MODE_NO_IMAGE, #ELM_CNP_MODE_PLAINTEXT. - * - * @ingroup Entry - */ -EAPI void elm_entry_cnp_mode_set(Evas_Object *obj, Elm_Cnp_Mode cnp_mode); - -/** - * Getting elm_entry text paste/drop mode. - * - * Normally the entry allows both text and images to be pasted. - * This gets the copy & paste mode of the entry. - * - * @param obj The entry object - * @return mode One of #Elm_Cnp_Mode: #ELM_CNP_MODE_MARKUP, #ELM_CNP_MODE_NO_IMAGE, #ELM_CNP_MODE_PLAINTEXT. - * - * @ingroup Entry - */ -EAPI Elm_Cnp_Mode elm_entry_cnp_mode_get(const Evas_Object *obj); - -/** - * Enable or disable scrolling in entry - * - * Normally the entry is not scrollable unless you enable it with this call. - * - * @param obj The entry object - * @param scroll EINA_TRUE if it is to be scrollable, EINA_FALSE otherwise - * - * @ingroup Entry - */ -EAPI void elm_entry_scrollable_set(Evas_Object *obj, Eina_Bool scroll); - -/** - * Get the scrollable state of the entry - * - * Normally the entry is not scrollable. This gets the scrollable state - * of the entry. See elm_entry_scrollable_set() for more information. - * - * @param obj The entry object - * @return The scrollable state - * - * @ingroup Entry - */ -EAPI Eina_Bool elm_entry_scrollable_get(const Evas_Object *obj); - -/** - * Sets the visibility of the left-side widget of the entry, - * set by elm_object_part_content_set(). - * - * @param obj The entry object - * @param setting EINA_TRUE if the object should be displayed, - * EINA_FALSE if not. - * - * @ingroup Entry - */ -EAPI void elm_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting); - -/** - * Sets the visibility of the end widget of the entry, set by - * elm_object_part_content_set(ent, "end", content). - * - * @param obj The entry object - * @param setting EINA_TRUE if the object should be displayed, - * EINA_FALSE if not. - * - * @ingroup Entry - */ -EAPI void elm_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting); - -/** - * Set the input panel layout of the entry - * - * @param obj The entry object - * @param layout layout type - * - * @ingroup Entry - */ -EAPI void elm_entry_input_panel_layout_set(Evas_Object *obj, Elm_Input_Panel_Layout layout); - -/** - * Get the input panel layout of the entry - * - * @param obj The entry object - * @return layout type - * - * @see elm_entry_input_panel_layout_set - * - * @ingroup Entry - */ -EAPI Elm_Input_Panel_Layout elm_entry_input_panel_layout_get(const Evas_Object *obj); - -/** - * Set the autocapitalization type on the immodule. - * - * @param obj The entry object - * @param autocapital_type The type of autocapitalization - * - * @ingroup Entry - */ -EAPI void elm_entry_autocapital_type_set(Evas_Object *obj, Elm_Autocapital_Type autocapital_type); - -/** - * Retrieve the autocapitalization type on the immodule. - * - * @param obj The entry object - * @return autocapitalization type - * - * @ingroup Entry - */ -EAPI Elm_Autocapital_Type elm_entry_autocapital_type_get(const Evas_Object *obj); - -/** - * Set whether the entry should allow to use the text prediction. - * - * @param obj The entry object - * @param prediction Whether the entry should allow to use the text prediction. - * - * @ingroup Entry - */ -EAPI void elm_entry_prediction_allow_set(Evas_Object *obj, Eina_Bool prediction); - -/** - * Get whether the entry should allow to use the text prediction. - * - * @param obj The entry object - * @return EINA_TRUE if it allows to use the text prediction, otherwise EINA_FALSE. - * - * @ingroup Entry - */ -EAPI Eina_Bool elm_entry_prediction_allow_get(const Evas_Object *obj); - -/** - * Reset the input method context of the entry if needed. - * - * This can be necessary in the case where modifying the buffer would confuse on-going input method behavior. - * This will typically cause the Input Method Context to clear the preedit state. - * @param obj The entry object - * - * @ingroup Entry - */ -EAPI void elm_entry_imf_context_reset(Evas_Object *obj); - -/** - * Sets the attribute to show the input panel automatically. - * - * @param obj The entry object - * @param enabled If true, the input panel is appeared when entry is clicked or has a focus - * - * @ingroup Entry - */ -EAPI void elm_entry_input_panel_enabled_set(Evas_Object *obj, Eina_Bool enabled); - -/** - * Retrieve the attribute to show the input panel automatically. - * - * @param obj The entry object - * @return EINA_TRUE if input panel will be appeared when the entry is clicked or has a focus, EINA_FALSE otherwise - * - * @ingroup Entry - */ -EAPI Eina_Bool elm_entry_input_panel_enabled_get(const Evas_Object *obj); - -/** - * Show the input panel (virtual keyboard) based on the input panel property of entry such as layout, autocapital types, and so on. - * - * Note that input panel is shown or hidden automatically according to the focus state of entry widget. - * This API can be used in the case of manually controlling by using elm_entry_input_panel_enabled_set(en, EINA_FALSE). - * - * @param obj The entry object - * - * @ingroup Entry - */ -EAPI void elm_entry_input_panel_show(Evas_Object *obj); - -/** - * Hide the input panel (virtual keyboard). - * - * Note that input panel is shown or hidden automatically according to the focus state of entry widget. - * This API can be used in the case of manually controlling by using elm_entry_input_panel_enabled_set(en, EINA_FALSE) - * - * @param obj The entry object - * - * @ingroup Entry - */ -EAPI void elm_entry_input_panel_hide(Evas_Object *obj); - -/** - * Set the language mode of the input panel. - * - * This API can be used if you want to show the alphabet keyboard mode. - * - * @param obj The entry object - * @param lang language to be set to the input panel. - * - * @ingroup Entry - */ -EAPI void elm_entry_input_panel_language_set(Evas_Object *obj, Elm_Input_Panel_Lang lang); - -/** - * Get the language mode of the input panel. - * - * See @ref elm_entry_input_panel_language_set for more details. - * - * @param obj The entry object - * @return input panel language type - * - * @ingroup Entry - */ -EAPI Elm_Input_Panel_Lang elm_entry_input_panel_language_get(const Evas_Object *obj); - -/** - * Set the input panel-specific data to deliver to the input panel. - * - * This API is used by applications to deliver specific data to the input panel. - * The data format MUST be negotiated by both application and the input panel. - * The size and format of data are defined by the input panel. - * - * @param obj The entry object - * @param data The specific data to be set to the input panel. - * @param len the length of data, in bytes, to send to the input panel - * - * @ingroup Entry - */ -EAPI void elm_entry_input_panel_imdata_set(Evas_Object *obj, const void *data, int len); - -/** - * Get the specific data of the current input panel. - * - * See @ref elm_entry_input_panel_imdata_set for more details. - * - * @param obj The entry object - * @param data The specific data to be got from the input panel - * @param len The length of data - * - * @ingroup Entry - */ -EAPI void elm_entry_input_panel_imdata_get(const Evas_Object *obj, void *data, int *len); - -/** - * Set the "return" key type. This type is used to set string or icon on the "return" key of the input panel. - * - * An input panel displays the string or icon associated with this type - * - * @param obj The entry object - * @param return_key_type The type of "return" key on the input panel - * - * @ingroup Entry - */ -EAPI void elm_entry_input_panel_return_key_type_set(Evas_Object *obj, Elm_Input_Panel_Return_Key_Type return_key_type); - -/** - * Get the "return" key type. - * - * @see elm_entry_input_panel_return_key_type_set() for more details - * - * @param obj The entry object - * @return The type of "return" key on the input panel - * - * @ingroup Entry - */ -EAPI Elm_Input_Panel_Return_Key_Type elm_entry_input_panel_return_key_type_get(const Evas_Object *obj); - -/** - * Set the return key on the input panel to be disabled. - * - * @param obj The entry object - * @param disabled The state to put in in: @c EINA_TRUE for - * disabled, @c EINA_FALSE for enabled - * - * @ingroup Entry - */ -EAPI void elm_entry_input_panel_return_key_disabled_set(Evas_Object *obj, Eina_Bool disabled); - -/** - * Get whether the return key on the input panel should be disabled or not. - * - * @param obj The entry object - * @return EINA_TRUE if it should be disabled - * - * @ingroup Entry - */ -EAPI Eina_Bool elm_entry_input_panel_return_key_disabled_get(const Evas_Object *obj); - -/** - * Set whether the return key on the input panel is disabled automatically when entry has no text. - * - * If @p enabled is EINA_TRUE, The return key on input panel is disabled when the entry has no text. - * The return key on the input panel is automatically enabled when the entry has text. - * The default value is EINA_FALSE. - * - * @param obj The entry object - * @param enabled If @p enabled is EINA_TRUE, the return key is automatically disabled when the entry has no text. - * - * @ingroup Entry - */ -EAPI void elm_entry_input_panel_return_key_autoenabled_set(Evas_Object *obj, Eina_Bool enabled); - -/** - * Returns the input method context of the entry. - * - * This function exposes the internal input method context. - * - * IMPORTANT: Many functions may change (i.e delete and create a new one) - * the internal input method context. Do NOT cache the returned object. - * - * @param obj The entry object - * @return The input method context (Ecore_IMF_Context *) in entry. - * - * @ingroup Entry - */ -EAPI void *elm_entry_imf_context_get(const Evas_Object *obj); - -/** - * Set the parent of the hover popup - * - * Sets the parent object to use by the hover created by the entry - * when an anchor is clicked. See @ref Hover for more details on this. - * - * @param obj The entry object - * @param parent The object to use as parent for the hover - * - * @ingroup Entry - */ -EAPI void elm_entry_anchor_hover_parent_set(Evas_Object *obj, Evas_Object *parent); - -/** - * Get the parent of the hover popup - * - * Get the object used as parent for the hover created by the entry - * widget. See @ref Hover for more details on this. - * If no parent is set, the same entry object will be used. - * - * @param obj The entry object - * @return The object used as parent for the hover, NULL if none is set. - * - * @ingroup Entry - */ -EAPI Evas_Object *elm_entry_anchor_hover_parent_get(const Evas_Object *obj); - -/** - * Set the style that the hover should use - * - * When creating the popup hover, entry will request that it's - * themed according to @p style. - * - * Setting style no @c NULL means disabling automatic hover. - * - * @param obj The entry object - * @param style The style to use for the underlying hover - * - * @see elm_object_style_set() - * - * @ingroup Entry - */ -EAPI void elm_entry_anchor_hover_style_set(Evas_Object *obj, const char *style); - -/** - * Get the style that the hover should use - * - * Get the style, the hover created by entry will use. - * - * @param obj The entry object - * @return The style to use by the hover. @c NULL means the default is used. - * - * @see elm_object_style_set() - * - * @ingroup Entry - */ -EAPI const char *elm_entry_anchor_hover_style_get(const Evas_Object *obj); - -/** - * Ends the hover popup in the entry - * - * When an anchor is clicked, the entry widget will create a hover - * object to use as a popup with user provided content. This function - * terminates this popup, returning the entry to its normal state. - * - * @param obj The entry object - * - * @ingroup Entry - */ -EAPI void elm_entry_anchor_hover_end(Evas_Object *obj); - -/** - * Set the input panel layout variation of the entry - * - * @param obj The entry object - * @param variation layout variation type - * - * @ingroup Entry - * @since 1.8 - */ -EAPI void elm_entry_input_panel_layout_variation_set(Evas_Object *obj, int variation); - -/** - * Get the input panel layout variation of the entry - * - * @param obj The entry object - * @return layout variation type - * - * @see elm_entry_input_panel_layout_variation_set - * - * @ingroup Entry - * @since 1.8 - */ -EAPI int elm_entry_input_panel_layout_variation_get(const Evas_Object *obj); - -/** - * Set the attribute to show the input panel in case of only an user's explicit Mouse Up event. - * It doesn't request to show the input panel even though it has focus. - * - * @param obj The entry object - * @param ondemand If true, the input panel will be shown in case of only Mouse up event. - * (Focus event will be ignored.) - * @since 1.9 - * - * @ingroup Entry - */ -EAPI void elm_entry_input_panel_show_on_demand_set(Evas_Object *obj, Eina_Bool ondemand); - -/** - * Get the attribute to show the input panel in case of only an user's explicit Mouse Up event. - * - * @param obj The entry object - * @return @c EINA_TRUE if the input panel will be shown in case of only Mouse up event. - * @since 1.9 - * - * @ingroup Entry - */ -EAPI Eina_Bool elm_entry_input_panel_show_on_demand_get(const Evas_Object *obj); +#include "elm_entry.eo.legacy.h" diff --git a/legacy/elementary/src/lib/elm_flip_eo.h b/legacy/elementary/src/lib/elm_flip_eo.h index efd1ea00da..171f8adb99 100644 --- a/legacy/elementary/src/lib/elm_flip_eo.h +++ b/legacy/elementary/src/lib/elm_flip_eo.h @@ -1,158 +1 @@ -#include "elm_flip.eo.h" - -#if 0 -#define ELM_OBJ_FLIP_CLASS elm_obj_flip_class_get() - -const Eo_Class *elm_obj_flip_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_FLIP_BASE_ID; - -enum -{ - ELM_OBJ_FLIP_SUB_ID_FRONT_VISIBLE_GET, - ELM_OBJ_FLIP_SUB_ID_PERSPECTIVE_SET, - ELM_OBJ_FLIP_SUB_ID_GO, - ELM_OBJ_FLIP_SUB_ID_GO_TO, - ELM_OBJ_FLIP_SUB_ID_INTERACTION_SET, - ELM_OBJ_FLIP_SUB_ID_INTERACTION_GET, - ELM_OBJ_FLIP_SUB_ID_INTERACTION_DIRECTION_ENABLED_SET, - ELM_OBJ_FLIP_SUB_ID_INTERACTION_DIRECTION_ENABLED_GET, - ELM_OBJ_FLIP_SUB_ID_INTERACTION_DIRECTION_HITSIZE_SET, - ELM_OBJ_FLIP_SUB_ID_INTERACTION_DIRECTION_HITSIZE_GET, - ELM_OBJ_FLIP_SUB_ID_LAST -}; - -#define ELM_OBJ_FLIP_ID(sub_id) (ELM_OBJ_FLIP_BASE_ID + sub_id) - - -/** - * @def elm_obj_flip_front_visible_get - * @since 1.8 - * - * @brief Get flip front visibility state - * - * @param[out] ret - * - * @see elm_flip_front_visible_get - * - * @ingroup Flip - */ -#define elm_obj_flip_front_visible_get(ret) ELM_OBJ_FLIP_ID(ELM_OBJ_FLIP_SUB_ID_FRONT_VISIBLE_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_flip_go_to - * @since 1.8 - * - * @brief Runs the flip animation to front or back. - * - * @param[in] front - * @param[in] mode - * - * @see elm_flip_go_to - * - * @ingroup Flip - */ -#define elm_obj_flip_go_to(front, mode) ELM_OBJ_FLIP_ID(ELM_OBJ_FLIP_SUB_ID_GO_TO), EO_TYPECHECK(Eina_Bool, front), EO_TYPECHECK(Elm_Flip_Mode, mode) - -/** - * @def elm_obj_flip_go - * @since 1.8 - * - * @brief Runs the flip animation - * - * @param[in] mode - * - * @see elm_flip_go - * - * @ingroup Flip - */ -#define elm_obj_flip_go(mode) ELM_OBJ_FLIP_ID(ELM_OBJ_FLIP_SUB_ID_GO), EO_TYPECHECK(Elm_Flip_Mode, mode) - -/** - * @def elm_obj_flip_interaction_set - * @since 1.8 - * - * @brief Set the interactive flip mode - * - * @param[in] mode - * - * @see elm_flip_interaction_set - * - * @ingroup Flip - */ -#define elm_obj_flip_interaction_set(mode) ELM_OBJ_FLIP_ID(ELM_OBJ_FLIP_SUB_ID_INTERACTION_SET), EO_TYPECHECK(Elm_Flip_Interaction, mode) - -/** - * @def elm_obj_flip_interaction_get - * @since 1.8 - * - * @brief Get the interactive flip mode - * - * @param[out] ret - * - * @see elm_flip_interaction_get - * - * @ingroup Flip - */ -#define elm_obj_flip_interaction_get(ret) ELM_OBJ_FLIP_ID(ELM_OBJ_FLIP_SUB_ID_INTERACTION_GET), EO_TYPECHECK(Elm_Flip_Interaction *, ret) - -/** - * @def elm_obj_flip_interaction_direction_enabled_set - * @since 1.8 - * - * @brief Set which directions of the flip respond to interactive flip - * - * @param[in] dir - * @param[in] enabled - * - * @see elm_flip_interaction_direction_enabled_set - * - * @ingroup Flip - */ -#define elm_obj_flip_interaction_direction_enabled_set(dir, enabled) ELM_OBJ_FLIP_ID(ELM_OBJ_FLIP_SUB_ID_INTERACTION_DIRECTION_ENABLED_SET), EO_TYPECHECK(Elm_Flip_Direction, dir), EO_TYPECHECK(Eina_Bool, enabled) - -/** - * @def elm_obj_flip_interaction_direction_enabled_get - * @since 1.8 - * - * @brief Get the enabled state of that flip direction - * - * @param[in] dir - * @param[out] ret - * - * @see elm_flip_interaction_direction_enabled_get - * - * @ingroup Flip - */ -#define elm_obj_flip_interaction_direction_enabled_get(dir, ret) ELM_OBJ_FLIP_ID(ELM_OBJ_FLIP_SUB_ID_INTERACTION_DIRECTION_ENABLED_GET), EO_TYPECHECK(Elm_Flip_Direction, dir), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_flip_interaction_direction_hitsize_set - * @since 1.8 - * - * @brief Set the amount of the flip that is sensitive to interactive flip - * - * @param[in] dir - * @param[in] hitsize - * - * @see elm_flip_interaction_direction_hitsize_set - * - * @ingroup Flip - */ -#define elm_obj_flip_interaction_direction_hitsize_set(dir, hitsize) ELM_OBJ_FLIP_ID(ELM_OBJ_FLIP_SUB_ID_INTERACTION_DIRECTION_HITSIZE_SET), EO_TYPECHECK(Elm_Flip_Direction, dir), EO_TYPECHECK(double, hitsize) - -/** - * @def elm_obj_flip_interaction_direction_hitsize_get - * @since 1.8 - * - * @brief Get the amount of the flip that is sensitive to interactive flip - * - * @param[in] dir - * @param[out] ret - * - * @see elm_flip_interaction_direction_hitsize_get - * - * @ingroup Flip - */ -#define elm_obj_flip_interaction_direction_hitsize_get(dir, ret) ELM_OBJ_FLIP_ID(ELM_OBJ_FLIP_SUB_ID_INTERACTION_DIRECTION_HITSIZE_GET), EO_TYPECHECK(Elm_Flip_Direction, dir), EO_TYPECHECK(double *, ret) -#endif +#include "elm_flip.eo.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elm_flip_legacy.h b/legacy/elementary/src/lib/elm_flip_legacy.h index 6fcf15e1cf..85e09b9785 100644 --- a/legacy/elementary/src/lib/elm_flip_legacy.h +++ b/legacy/elementary/src/lib/elm_flip_legacy.h @@ -8,17 +8,6 @@ */ EAPI Evas_Object *elm_flip_add(Evas_Object *parent); -/** - * @brief Get flip front visibility state - * - * @param obj The flip object - * @return EINA_TRUE if front front is showing, EINA_FALSE if the back is - * showing. - * - * @ingroup Flip - */ -EAPI Eina_Bool elm_flip_front_visible_get(const Evas_Object *obj); - /** * @brief Set flip perspective * @@ -33,222 +22,4 @@ EAPI Eina_Bool elm_flip_front_visible_get(const Evas_Object *obj); */ EAPI void elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y); -/** - * @brief Runs the flip animation - * - * @param obj The flip object - * @param mode The mode type - * - * Flips the front and back contents using the @p mode animation. This - * effectively hides the currently visible content and shows the hidden one. - * - * There a number of possible animations to use for the flipping: - * @li ELM_FLIP_ROTATE_X_CENTER_AXIS - Rotate the currently visible content - * around a horizontal axis in the middle of its height, the other content - * is shown as the other side of the flip. - * @li ELM_FLIP_ROTATE_Y_CENTER_AXIS - Rotate the currently visible content - * around a vertical axis in the middle of its width, the other content is - * shown as the other side of the flip. - * @li ELM_FLIP_ROTATE_XZ_CENTER_AXIS - Rotate the currently visible content - * around a diagonal axis in the middle of its width, the other content is - * shown as the other side of the flip. - * @li ELM_FLIP_ROTATE_YZ_CENTER_AXIS - Rotate the currently visible content - * around a diagonal axis in the middle of its height, the other content is - * shown as the other side of the flip. - * @li ELM_FLIP_CUBE_LEFT - Rotate the currently visible content to the left - * as if the flip was a cube, the other content is show as the right face of - * the cube. - * @li ELM_FLIP_CUBE_RIGHT - Rotate the currently visible content to the - * right as if the flip was a cube, the other content is show as the left - * face of the cube. - * @li ELM_FLIP_CUBE_UP - Rotate the currently visible content up as if the - * flip was a cube, the other content is show as the bottom face of the cube. - * @li ELM_FLIP_CUBE_DOWN - Rotate the currently visible content down as if - * the flip was a cube, the other content is show as the upper face of the - * cube. - * @li ELM_FLIP_PAGE_LEFT - Move the currently visible content to the left as - * if the flip was a book, the other content is shown as the page below that. - * @li ELM_FLIP_PAGE_RIGHT - Move the currently visible content to the right - * as if the flip was a book, the other content is shown as the page below - * that. - * @li ELM_FLIP_PAGE_UP - Move the currently visible content up as if the - * flip was a book, the other content is shown as the page below that. - * @li ELM_FLIP_PAGE_DOWN - Move the currently visible content down as if the - * flip was a book, the other content is shown as the page below that. - * - * @image html elm_flip.png - * @image latex elm_flip.eps width=\textwidth - * - * @see elm_flip_go_to() - * - * @ingroup Flip - */ -EAPI void elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode); - -/** - * @brief Runs the flip animation to front or back. - * - * @param obj The flip object - * @param front if @c EINA_TRUE, makes front visible, otherwise makes back. - * @param mode The mode type - * - * Flips the front and back contents using the @p mode animation. This - * effectively hides the currently visible content and shows the hidden one. - * - * There a number of possible animations to use for the flipping: - * @li ELM_FLIP_ROTATE_X_CENTER_AXIS - Rotate the currently visible content - * around a horizontal axis in the middle of its height, the other content - * is shown as the other side of the flip. - * @li ELM_FLIP_ROTATE_Y_CENTER_AXIS - Rotate the currently visible content - * around a vertical axis in the middle of its width, the other content is - * shown as the other side of the flip. - * @li ELM_FLIP_ROTATE_XZ_CENTER_AXIS - Rotate the currently visible content - * around a diagonal axis in the middle of its width, the other content is - * shown as the other side of the flip. - * @li ELM_FLIP_ROTATE_YZ_CENTER_AXIS - Rotate the currently visible content - * around a diagonal axis in the middle of its height, the other content is - * shown as the other side of the flip. - * @li ELM_FLIP_CUBE_LEFT - Rotate the currently visible content to the left - * as if the flip was a cube, the other content is show as the right face of - * the cube. - * @li ELM_FLIP_CUBE_RIGHT - Rotate the currently visible content to the - * right as if the flip was a cube, the other content is show as the left - * face of the cube. - * @li ELM_FLIP_CUBE_UP - Rotate the currently visible content up as if the - * flip was a cube, the other content is show as the bottom face of the cube. - * @li ELM_FLIP_CUBE_DOWN - Rotate the currently visible content down as if - * the flip was a cube, the other content is show as the upper face of the - * cube. - * @li ELM_FLIP_PAGE_LEFT - Move the currently visible content to the left as - * if the flip was a book, the other content is shown as the page below that. - * @li ELM_FLIP_PAGE_RIGHT - Move the currently visible content to the right - * as if the flip was a book, the other content is shown as the page below - * that. - * @li ELM_FLIP_PAGE_UP - Move the currently visible content up as if the - * flip was a book, the other content is shown as the page below that. - * @li ELM_FLIP_PAGE_DOWN - Move the currently visible content down as if the - * flip was a book, the other content is shown as the page below that. - * - * @image html elm_flip.png - * @image latex elm_flip.eps width=\textwidth - * - * @since 1.7 - * - * @ingroup Flip - */ -EAPI void elm_flip_go_to(Evas_Object *obj, Eina_Bool front, Elm_Flip_Mode mode); - -/** - * @brief Set the interactive flip mode - * - * @param obj The flip object - * @param mode The interactive flip mode to use - * - * This sets if the flip should be interactive (allow user to click and - * drag a side of the flip to reveal the back page and cause it to flip). - * By default a flip is not interactive. You may also need to set which - * sides of the flip are "active" for flipping and how much space they use - * (a minimum of a finger size) with elm_flip_interaction_direction_enabled_set() - * and elm_flip_interaction_direction_hitsize_set() - * - * The four available mode of interaction are: - * @li ELM_FLIP_INTERACTION_NONE - No interaction is allowed - * @li ELM_FLIP_INTERACTION_ROTATE - Interaction will cause rotate animation - * @li ELM_FLIP_INTERACTION_CUBE - Interaction will cause cube animation - * @li ELM_FLIP_INTERACTION_PAGE - Interaction will cause page animation - * - * @note ELM_FLIP_INTERACTION_ROTATE won't cause - * ELM_FLIP_ROTATE_XZ_CENTER_AXIS or ELM_FLIP_ROTATE_YZ_CENTER_AXIS to - * happen, those can only be achieved with elm_flip_go(); - * - * @ingroup Flip - */ -EAPI void elm_flip_interaction_set(Evas_Object *obj, Elm_Flip_Interaction mode); - -/** - * @brief Get the interactive flip mode - * - * @param obj The flip object - * @return The interactive flip mode - * - * Returns the interactive flip mode set by elm_flip_interaction_set() - * - * @ingroup Flip - */ -EAPI Elm_Flip_Interaction elm_flip_interaction_get(const Evas_Object *obj); - -/** - * @brief Set which directions of the flip respond to interactive flip - * - * @param obj The flip object - * @param dir The direction to change - * @param enabled If that direction is enabled or not - * - * By default all directions are disabled, so you may want to enable the - * desired directions for flipping if you need interactive flipping. You must - * call this function once for each direction that should be enabled. - * - * You can also set the appropriate hit area size by calling - * @c elm_flip_interaction_direction_hitsize_set(). By default, a minimum - * hit area will be created on the opposite edge of the flip. - * - * @see elm_flip_interaction_set() - * - * @ingroup Flip - */ -EAPI void elm_flip_interaction_direction_enabled_set(Evas_Object *obj, Elm_Flip_Direction dir, Eina_Bool enabled); - -/** - * @brief Get the enabled state of that flip direction - * - * @param obj The flip object - * @param dir The direction to check - * @return If that direction is enabled or not - * - * Get the enabled state set by elm_flip_interaction_direction_enabled_set() - * - * @see elm_flip_interaction_set() - * - * @ingroup Flip - */ -EAPI Eina_Bool elm_flip_interaction_direction_enabled_get(Evas_Object *obj, Elm_Flip_Direction dir); - -/** - * @brief Set the amount of the flip that is sensitive to interactive flip - * - * @param obj The flip object - * @param dir The hit area to set - * @param hitsize The amount of that dimension (0.0 to 1.0) to use - * - * Set the amount of the flip that is sensitive to interactive flip, with 0 - * representing no area in the flip and 1 representing the entire flip. There - * is however a consideration to be made in that the area will never be - * smaller than the finger size set (as set in your Elementary configuration), - * and dragging must always start from the opposite half of the flip (eg. right - * half of the flip when dragging to the left). - * - * Note that the @c dir parameter is not actually related to the direction of - * the drag, it only refers to the area in the flip where interaction can - * occur (top, bottom, left, right). - * - * Negative values of @c hitsize will disable this hit area. - * - * @see elm_flip_interaction_set() - * - * @ingroup Flip - */ -EAPI void elm_flip_interaction_direction_hitsize_set(Evas_Object *obj, Elm_Flip_Direction dir, double hitsize); - -/** - * @brief Get the amount of the flip that is sensitive to interactive flip - * - * @param obj The flip object - * @param dir The direction to check - * @return The size set for that direction - * - * Returns the amount of sensitive area set by - * elm_flip_interaction_direction_hitsize_set(). - * - * @ingroup Flip - */ -EAPI double elm_flip_interaction_direction_hitsize_get(Evas_Object *obj, Elm_Flip_Direction dir); +#include "elm_flip.eo.legacy.h" diff --git a/legacy/elementary/src/lib/elm_flipselector_eo.h b/legacy/elementary/src/lib/elm_flipselector_eo.h index ced54fefa5..2219554b4e 100644 --- a/legacy/elementary/src/lib/elm_flipselector_eo.h +++ b/legacy/elementary/src/lib/elm_flipselector_eo.h @@ -1,175 +1,3 @@ typedef void (*flipselector_func_type)(void *, Evas_Object *, void *); -#include "elm_flipselector.eo.h" - -#if 0 -#define ELM_OBJ_FLIPSELECTOR_CLASS elm_obj_flipselector_class_get() - -const Eo_Class *elm_obj_flipselector_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_FLIPSELECTOR_BASE_ID; - -enum -{ - ELM_OBJ_FLIPSELECTOR_SUB_ID_FLIP_NEXT, - ELM_OBJ_FLIPSELECTOR_SUB_ID_FLIP_PREV, - ELM_OBJ_FLIPSELECTOR_SUB_ID_ITEM_APPEND, - ELM_OBJ_FLIPSELECTOR_SUB_ID_ITEM_PREPEND, - ELM_OBJ_FLIPSELECTOR_SUB_ID_ITEMS_GET, - ELM_OBJ_FLIPSELECTOR_SUB_ID_FIRST_ITEM_GET, - ELM_OBJ_FLIPSELECTOR_SUB_ID_LAST_ITEM_GET, - ELM_OBJ_FLIPSELECTOR_SUB_ID_SELECTED_ITEM_GET, - ELM_OBJ_FLIPSELECTOR_SUB_ID_FIRST_INTERVAL_SET, - ELM_OBJ_FLIPSELECTOR_SUB_ID_FIRST_INTERVAL_GET, - ELM_OBJ_FLIPSELECTOR_SUB_ID_LAST -}; - -#define ELM_OBJ_FLIPSELECTOR_ID(sub_id) (ELM_OBJ_FLIPSELECTOR_BASE_ID + sub_id) - - -/** - * @def elm_obj_flipselector_flip_next - * @since 1.8 - * - * Programmatically select the next item of a flip selector widget - * - * - * @see elm_flipselector_flip_next - * - * @ingroup Flipselector - */ -#define elm_obj_flipselector_flip_next() ELM_OBJ_FLIPSELECTOR_ID(ELM_OBJ_FLIPSELECTOR_SUB_ID_FLIP_NEXT) - -/** - * @def elm_obj_flipselector_flip_prev - * @since 1.8 - * - * Programmatically select the previous item of a flip selector - * - * - * @see elm_flipselector_flip_prev - * - * @ingroup Flipselector - */ -#define elm_obj_flipselector_flip_prev() ELM_OBJ_FLIPSELECTOR_ID(ELM_OBJ_FLIPSELECTOR_SUB_ID_FLIP_PREV) - - -/** - * @def elm_obj_flipselector_item_append - * @since 1.8 - * - * Append a (text) item to a flip selector widget - * - * @param[in] label - * @param[in] func - * @param[in] data - * @param[out] ret - * - * @see elm_flipselector_item_append - * - * @ingroup Flipselector - */ -#define elm_obj_flipselector_item_append(label, func, data, ret) ELM_OBJ_FLIPSELECTOR_ID(ELM_OBJ_FLIPSELECTOR_SUB_ID_ITEM_APPEND), EO_TYPECHECK(const char *, label), EO_TYPECHECK(flipselector_func_type, func), EO_TYPECHECK(const void *, data), EO_TYPECHECK(Elm_Flipselector_Item **, ret) - -/** - * @def elm_obj_flipselector_item_prepend - * @since 1.8 - * - * Prepend a (text) item to a flip selector widget - * - * @param[in] label - * @param[in] func - * @param[in] data - * @param[out] ret - * - * @see elm_flipselector_item_prepend - * - * @ingroup Flipselector - */ -#define elm_obj_flipselector_item_prepend(label, func, data, ret) ELM_OBJ_FLIPSELECTOR_ID(ELM_OBJ_FLIPSELECTOR_SUB_ID_ITEM_PREPEND), EO_TYPECHECK(const char *, label), EO_TYPECHECK(flipselector_func_type, func), EO_TYPECHECK(void *, data), EO_TYPECHECK(Elm_Flipselector_Item **, ret) - - -/** - * @def elm_obj_flipselector_items_get - * @since 1.8 - * - * Get the internal list of items in a given flip selector widget. - * - * @param[out] ret - * - * @see elm_flipselector_items_get - * - * @ingroup Flipselector - */ -#define elm_obj_flipselector_items_get(ret) ELM_OBJ_FLIPSELECTOR_ID(ELM_OBJ_FLIPSELECTOR_SUB_ID_ITEMS_GET), EO_TYPECHECK(const Eina_List **, ret) - -/** - * @def elm_obj_flipselector_first_item_get - * @since 1.8 - * - * Get the first item in the given flip selector widget's list of - * - * @param[out] ret - * - * @see elm_flipselector_first_item_get - * - * @ingroup Flipselector - */ -#define elm_obj_flipselector_first_item_get(ret) ELM_OBJ_FLIPSELECTOR_ID(ELM_OBJ_FLIPSELECTOR_SUB_ID_FIRST_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_flipselector_last_item_get - * @since 1.8 - * - * Get the last item in the given flip selector widget's list of - * - * @param[out] ret - * - * @see elm_flipselector_last_item_get - * - * @ingroup Flipselector - */ -#define elm_obj_flipselector_last_item_get(ret) ELM_OBJ_FLIPSELECTOR_ID(ELM_OBJ_FLIPSELECTOR_SUB_ID_LAST_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_flipselector_selected_item_get - * @since 1.8 - * - * Get the currently selected item in a flip selector widget. - * - * @param[out] ret - * - * @see elm_flipselector_selected_item_get - * - * @ingroup Flipselector - */ -#define elm_obj_flipselector_selected_item_get(ret) ELM_OBJ_FLIPSELECTOR_ID(ELM_OBJ_FLIPSELECTOR_SUB_ID_SELECTED_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret) - -/** - * @def elm_obj_flipselector_first_interval_set - * @since 1.8 - * - * Set the interval on time updates for a user mouse button hold - * - * @param[in] interval - * - * @see elm_flipselector_first_interval_set - * - * @ingroup Flipselector - */ -#define elm_obj_flipselector_first_interval_set(interval) ELM_OBJ_FLIPSELECTOR_ID(ELM_OBJ_FLIPSELECTOR_SUB_ID_FIRST_INTERVAL_SET), EO_TYPECHECK(double, interval) - -/** - * @def elm_obj_flipselector_first_interval_get - * @since 1.8 - * - * Get the interval on time updates for an user mouse button hold - * - * @param[out] ret - * - * @see elm_flipselector_first_interval_get - * - * @ingroup Flipselector - */ -#define elm_obj_flipselector_first_interval_get(ret) ELM_OBJ_FLIPSELECTOR_ID(ELM_OBJ_FLIPSELECTOR_SUB_ID_FIRST_INTERVAL_GET), EO_TYPECHECK(double *, ret) -#endif +#include "elm_flipselector.eo.h" \ No newline at end of file diff --git a/legacy/elementary/src/lib/elm_flipselector_legacy.h b/legacy/elementary/src/lib/elm_flipselector_legacy.h index 74b3500c0c..bbd46aa967 100644 --- a/legacy/elementary/src/lib/elm_flipselector_legacy.h +++ b/legacy/elementary/src/lib/elm_flipselector_legacy.h @@ -11,186 +11,4 @@ */ EAPI Evas_Object *elm_flipselector_add(Evas_Object *parent); -/** - * Programmatically select the next item of a flip selector widget - * - * @param obj The flipselector object - * - * @note The selection will be animated. Also, if it reaches the - * end of its list of member items, it will continue with the first - * one onwards. - * - * @ingroup Flipselector - */ -EAPI void elm_flipselector_flip_next(Evas_Object *obj); - -/** - * Programmatically select the previous item of a flip selector - * widget - * - * @param obj The flipselector object - * - * @note The selection will be animated. Also, if it reaches the - * beginning of its list of member items, it will continue with the - * last one backwards. - * - * @ingroup Flipselector - */ -EAPI void elm_flipselector_flip_prev(Evas_Object *obj); - -/** - * Append a (text) item to a flip selector widget - * - * @param obj The flipselector object - * @param label The (text) label of the new item - * @param func Convenience callback function to take place when - * item is selected - * @param data Data passed to @p func, above - * @return A handle to the item added or @c NULL, on errors - * - * The widget's list of labels to show will be appended with the - * given value. If the user wishes so, a callback function pointer - * can be passed, which will get called when this same item is - * selected. - * - * @note The current selection @b won't be modified by appending an - * element to the list. - * - * @note The maximum length of the text label is going to be - * determined by the widget's theme. Strings larger than - * that value are going to be @b truncated. - * - * @ingroup Flipselector - */ -EAPI Elm_Object_Item *elm_flipselector_item_append(Evas_Object *obj, const char *label, Evas_Smart_Cb func, const void *data); - -/** - * Prepend a (text) item to a flip selector widget - * - * @param obj The flipselector object - * @param label The (text) label of the new item - * @param func Convenience callback function to take place when - * item is selected - * @param data Data passed to @p func, above - * @return A handle to the item added or @c NULL, on errors - * - * The widget's list of labels to show will be prepended with the - * given value. If the user wishes so, a callback function pointer - * can be passed, which will get called when this same item is - * selected. - * - * @note The current selection @b won't be modified by prepending - * an element to the list. - * - * @note The maximum length of the text label is going to be - * determined by the widget's theme. Strings larger than - * that value are going to be @b truncated. - * - * @ingroup Flipselector - */ -EAPI Elm_Object_Item *elm_flipselector_item_prepend(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data); - -/** - * Get the internal list of items in a given flip selector widget. - * - * @param obj The flipselector object - * @return The list of items (#Elm_Object_Item as data) or - * @c NULL on errors. - * - * This list is @b not to be modified in any way and must not be - * freed. Use the list members with functions like - * elm_object_item_text_set(), - * elm_object_item_text_get(), - * elm_object_item_del(), - * elm_flipselector_item_selected_get(), - * elm_flipselector_item_selected_set(). - * - * @warning This list is only valid until @p obj object's internal - * items list is changed. It should be fetched again with another - * call to this function when changes happen. - * - * @ingroup Flipselector - */ -EAPI const Eina_List *elm_flipselector_items_get(const Evas_Object *obj); - -/** - * Get the first item in the given flip selector widget's list of - * items. - * - * @param obj The flipselector object - * @return The first item or @c NULL, if it has no items (and on - * errors) - * - * @see elm_flipselector_item_append() - * @see elm_flipselector_last_item_get() - * - * @ingroup Flipselector - */ -EAPI Elm_Object_Item *elm_flipselector_first_item_get(const Evas_Object *obj); - -/** - * Get the last item in the given flip selector widget's list of - * items. - * - * @param obj The flipselector object - * @return The last item or @c NULL, if it has no items (and on - * errors) - * - * @see elm_flipselector_item_prepend() - * @see elm_flipselector_first_item_get() - * - * @ingroup Flipselector - */ -EAPI Elm_Object_Item *elm_flipselector_last_item_get(const Evas_Object *obj); - -/** - * Get the currently selected item in a flip selector widget. - * - * @param obj The flipselector object - * @return The selected item or @c NULL, if the widget has no items - * (and on errors) - * - * @ingroup Flipselector - */ -EAPI Elm_Object_Item *elm_flipselector_selected_item_get(const Evas_Object *obj); - -/** - * Set the interval on time updates for a user mouse button hold - * on a flip selector widget. - * - * @param obj The flip selector object - * @param interval The (first) interval value in seconds - * - * This interval value is @b decreased while the user holds the - * mouse pointer either flipping up or flipping down a given flip - * selector. - * - * This helps the user to get to a given item distant from the - * current one easier/faster, as it will start to flip quicker and - * quicker on mouse button holds. - * - * The calculation for the next flip interval value, starting from - * the one set with this call, is the previous interval divided by - * 1.05, so it decreases a little bit. - * - * The default starting interval value for automatic flips is - * @b 0.85 seconds. - * - * @see elm_flipselector_first_interval_get() - * - * @ingroup Flipselector - */ -EAPI void elm_flipselector_first_interval_set(Evas_Object *obj, double interval); - -/** - * Get the interval on time updates for an user mouse button hold - * on a flip selector widget. - * - * @param obj The flip selector object - * @return The (first) interval value, in seconds, set on it - * - * @see elm_flipselector_first_interval_set() for more details - * - * @ingroup Flipselector - */ -EAPI double elm_flipselector_first_interval_get(const Evas_Object *obj); +#include "elm_flipselector.eo.legacy.h"