3 * vim:ts=8:sw=3:sts=3:expandtab:cino=>5n-3f0^-2{2(0W1st0
8 @brief Elementary Widget Library
13 @image html elementary.png
14 @version @PACKAGE_VERSION@
15 @author Carsten Haitzler <raster@@rasterman.com>
16 @author Gustavo Sverzut Barbieri <barbieri@@profusion.mobi>
17 @author Cedric Bail <cedric.bail@@free.fr>
18 @author Vincent Torri <vtorri@@univ-evry.fr>
19 @author Daniel Kolesa <quaker66@@gmail.com>
20 @author Jaime Thomas <avi.thomas@@gmail.com>
21 @author Swisscom - http://www.swisscom.ch/
22 @author Christopher Michael <devilhorns@@comcast.net>
23 @author Marco Trevisan (Treviño) <mail@@3v1n0.net>
24 @author Michael Bouchaud <michael.bouchaud@@gmail.com>
25 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
26 @author Brian Wang <brian.wang.0721@@gmail.com>
27 @author Mike Blumenkrantz (zmike) <mike@@zentific.com>
28 @author Samsung Electronics <tbd>
29 @author Samsung SAIT <tbd>
30 @author Brett Nash <nash@@nash.id.au>
31 @author Bruno Dilly <bdilly@@profusion.mobi>
32 @author Rafael Fonseca <rfonseca@@profusion.mobi>
33 @author Chuneon Park <hermet@@hermet.pe.kr>
34 @author Woohyun Jung <wh0705.jung@@samsung.com>
35 @author Jaehwan Kim <jae.hwan.kim@@samsung.com>
36 @author Wonguk Jeong <wonguk.jeong@@samsung.com>
37 @author Leandro A. F. Pereira <leandro@@profusion.mobi>
38 @author Helen Fornazier <helen.fornazier@@profusion.mobi>
39 @author Gustavo Lima Chaves <glima@@profusion.mobi>
40 @author Fabiano Fidêncio <fidencio@@profusion.mobi>
41 @author Tiago Falcão <tiago@@profusion.mobi>
42 @author Otavio Pontes <otavio@@profusion.mobi>
43 @author Viktor Kojouharov <vkojouharov@@gmail.com>
44 @author Daniel Juyung Seo (SeoZ) <juyung.seo@@samsung.com> <seojuyung2@@gmail.com>
45 @author Sangho Park <sangho.g.park@@samsung.com> <gouache95@@gmail.com>
46 @author Rajeev Ranjan (Rajeev) <rajeev.r@@samsung.com> <rajeev.jnnce@@gmail.com>
47 @author Seunggyun Kim <sgyun.kim@@samsung.com> <tmdrbs@@gmail.com>
48 @author Sohyun Kim <anna1014.kim@@samsung.com> <sohyun.anna@@gmail.com>
49 @author Jihoon Kim <jihoon48.kim@@samsung.com>
50 @author Jeonghyun Yun (arosis) <jh0506.yun@@samsung.com>
51 @author Tom Hacohen <tom@@stosb.com>
52 @author Aharon Hillel <a.hillel@@partner.samsung.com>
53 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
54 @author Shinwoo Kim <kimcinoo@@gmail.com>
55 @author Govindaraju SM <govi.sm@@samsung.com> <govism@@gmail.com>
56 @author Prince Kumar Dubey <prince.dubey@@samsung.com> <prince.dubey@@gmail.com>
59 @section intro What is Elementary?
61 This is a VERY SIMPLE toolkit. It is not meant for writing extensive desktop
62 applications (yet). Small simple ones with simple needs.
64 It is meant to make the programmers work almost brainless but give them lots
67 License: LGPL v2 (see COPYING in the base of Elementary's source). This
68 applies to all files in the source here.
70 Acknowledgements: There is a lot that goes into making a widget set, and
71 they don't happen out of nothing. It's like trying to make everyone
72 everywhere happy, regardless of age, gender, race or nationality - and
73 that is really tough. So thanks to people and organisations behind this,
74 aslisted in the Authors section above.
86 * @brief Elementary's API
91 @ELM_UNIX_DEF@ ELM_UNIX
92 @ELM_WIN32_DEF@ ELM_WIN32
93 @ELM_WINCE_DEF@ ELM_WINCE
94 @ELM_EDBUS_DEF@ ELM_EDBUS
95 @ELM_EFREET_DEF@ ELM_EFREET
96 @ELM_ETHUMB_DEF@ ELM_ETHUMB
97 @ELM_EMAP_DEF@ ELM_EMAP
98 @ELM_DEBUG_DEF@ ELM_DEBUG
99 @ELM_ALLOCA_H_DEF@ ELM_ALLOCA_H
100 @ELM_LIBINTL_H_DEF@ ELM_LIBINTL_H
102 /* Standard headers for standard system calls etc. */
107 #include <sys/types.h>
108 #include <sys/stat.h>
109 #include <sys/time.h>
110 #include <sys/param.h>
123 # ifdef ELM_LIBINTL_H
124 # include <libintl.h>
135 #if defined (ELM_WIN32) || defined (ELM_WINCE)
138 # define alloca _alloca
149 #include <Ecore_Evas.h>
150 #include <Ecore_File.h>
151 #include <Ecore_IMF.h>
160 # include <Efreet_Mime.h>
161 # include <Efreet_Trash.h>
165 # include <Ethumb_Client.h>
177 # ifdef ELEMENTARY_BUILD
179 # define EAPI __declspec(dllexport)
182 # endif /* ! DLL_EXPORT */
184 # define EAPI __declspec(dllimport)
185 # endif /* ! EFL_EVAS_BUILD */
189 # define EAPI __attribute__ ((visibility("default")))
196 #endif /* ! _WIN32 */
199 /* allow usage from c++ */
204 #define ELM_VERSION_MAJOR @VMAJ@
205 #define ELM_VERSION_MINOR @VMIN@
207 typedef struct _Elm_Version
215 EAPI extern Elm_Version *elm_version;
218 #define ELM_RECTS_INTERSECT(x, y, w, h, xx, yy, ww, hh) (((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && (((x) + (w)) > (xx)) && (((y) + (h)) > (yy)))
219 #define ELM_PI 3.14159265358979323846
222 * @defgroup General General
224 * @brief General Elementary API. Functions that don't relate to
225 * Elementary objects specifically.
227 * Here are documented functions which init/shutdown the library,
228 * that apply to generic Elementary objects, that deal with
229 * configuration, et cetera.
231 * @ref general_functions_example_page "This" example contemplates
232 * some of these functions.
236 * @addtogroup General
241 * Defines couple of standard Evas_Object layers to be used
242 * with evas_object_layer_set().
244 * @note whenever extending with new values, try to keep some padding
245 * to siblings so there is room for further extensions.
247 typedef enum _Elm_Object_Layer
249 ELM_OBJECT_LAYER_BACKGROUND = EVAS_LAYER_MIN + 64, /**< where to place backgrounds */
250 ELM_OBJECT_LAYER_DEFAULT = 0, /**< Evas_Object default layer (and thus for Elementary) */
251 ELM_OBJECT_LAYER_FOCUS = EVAS_LAYER_MAX - 128, /**< where focus object visualization is */
252 ELM_OBJECT_LAYER_TOOLTIP = EVAS_LAYER_MAX - 64, /**< where to show tooltips */
253 ELM_OBJECT_LAYER_CURSOR = EVAS_LAYER_MAX - 32, /**< where to show cursors */
254 ELM_OBJECT_LAYER_LAST /**< last layer known by Elementary */
257 /**************************************************************************/
258 EAPI extern int ELM_ECORE_EVENT_ETHUMB_CONNECT;
261 * Emitted when any Elementary's policy value is changed.
263 EAPI extern int ELM_EVENT_POLICY_CHANGED;
266 * @typedef Elm_Event_Policy_Changed
268 * Data on the event when an Elementary policy has changed
270 typedef struct _Elm_Event_Policy_Changed Elm_Event_Policy_Changed;
273 * @struct _Elm_Event_Policy_Changed
275 * Data on the event when an Elementary policy has changed
277 struct _Elm_Event_Policy_Changed
279 unsigned int policy; /**< the policy identifier */
280 int new_value; /**< value the policy had before the change */
281 int old_value; /**< new value the policy got */
285 * Policy identifiers.
287 typedef enum _Elm_Policy
289 ELM_POLICY_QUIT, /**< under which circunstances the application
290 * should quit automatically. @see
294 } Elm_Policy; /**< Elementary policy identifiers/groups enumeration. @see elm_policy_set()
297 typedef enum _Elm_Policy_Quit
299 ELM_POLICY_QUIT_NONE = 0, /**< never quit the application
301 ELM_POLICY_QUIT_LAST_WINDOW_CLOSED /**< quit when the
303 * window is closed */
304 } Elm_Policy_Quit; /**< Possible values for the #ELM_POLICY_QUIT policy */
306 typedef enum _Elm_Focus_Direction
310 } Elm_Focus_Direction;
312 typedef enum _Elm_Text_Format
314 ELM_TEXT_FORMAT_PLAIN_UTF8,
315 ELM_TEXT_FORMAT_MARKUP_UTF8
319 * Line wrapping types.
321 typedef enum _Elm_Wrap_Type
323 ELM_WRAP_NONE = 0, /**< No wrap - value is zero */
324 ELM_WRAP_CHAR, /**< Char wrap - wrap between graphmes */
325 ELM_WRAP_WORD, /**< Word wrap - wrap in allowed wrapping points (as defined in the unicode standard) */
326 ELM_WRAP_MIXED, /**< Mixed wrap - Word wrap, and if that fails, char wrap. */
332 * @typedef Elm_Object_Item
333 * An Elementary Object item handle.
336 typedef struct _Elm_Object_Item Elm_Object_Item;
340 * Called back when a widget's tooltip is activated and needs content.
341 * @param data user-data given to elm_object_tooltip_content_cb_set()
342 * @param obj owner widget.
344 typedef Evas_Object *(*Elm_Tooltip_Content_Cb) (void *data, Evas_Object *obj);
347 * Called back when a widget's item tooltip is activated and needs content.
348 * @param data user-data given to elm_object_tooltip_content_cb_set()
349 * @param obj owner widget.
350 * @param item context dependent item. As an example, if tooltip was
351 * set on Elm_List_Item, then it is of this type.
353 typedef Evas_Object *(*Elm_Tooltip_Item_Content_Cb) (void *data, Evas_Object *obj, void *item);
355 typedef Eina_Bool (*Elm_Event_Cb) (void *data, Evas_Object *obj, Evas_Object *src, Evas_Callback_Type type, void *event_info);
357 #ifndef ELM_LIB_QUICKLAUNCH
358 #define ELM_MAIN() int main(int argc, char **argv) {elm_init(argc, argv); return elm_main(argc, argv);} /**< macro to be used after the elm_main() function */
360 #define ELM_MAIN() int main(int argc, char **argv) {return elm_quicklaunch_fallback(argc, argv);} /**< macro to be used after the elm_main() function */
363 /**************************************************************************/
367 * Initialize Elementary
369 * @param[in] argc System's argument count value
370 * @param[in] argv System's pointer to array of argument strings
371 * @return The init counter value.
373 * This function initializes Elementary and increments a counter of
374 * the number of calls to it. It returs the new counter's value.
376 * @warning This call is exported only for use by the @c ELM_MAIN()
377 * macro. There is no need to use this if you use this macro (which
378 * is highly advisable). An elm_main() should contain the entry
379 * point code for your application, having the same prototype as
380 * elm_init(), and @b not being static (putting the @c EAPI symbol
381 * in front of its type declaration is advisable). The @c
382 * ELM_MAIN() call should be placed just after it.
385 * @dontinclude bg_example_01.c
389 * See the full @ref bg_example_01_c "example".
391 * @see elm_shutdown().
394 EAPI int elm_init(int argc, char **argv);
397 * Shut down Elementary
399 * @return The init counter value.
401 * This should be called at the end of your application, just
402 * before it ceases to do any more processing. This will clean up
403 * any permanent resources your application may have allocated via
404 * Elementary that would otherwise persist.
406 * @see elm_init() for an example
410 EAPI int elm_shutdown(void);
413 * Run Elementary's main loop
415 * This call should be issued just after all initialization is
416 * completed. This function will not return until elm_exit() is
417 * called. It will keep looping, running the main
418 * (event/processing) loop for Elementary.
420 * @see elm_init() for an example
424 EAPI void elm_run(void);
427 * Exit Elementary's main loop
429 * If this call is issued, it will flag the main loop to cease
430 * processing and return back to its parent function (usually your
431 * elm_main() function).
433 * @see elm_init() for an example. There, just after a request to
434 * close the window comes, the main loop will be left.
436 * @note By using the #ELM_POLICY_QUIT on your Elementary
437 * applications, you'll this function called automatically for you.
441 EAPI void elm_exit(void);
444 * Provide information in order to make Elementary determine the @b
445 * run time location of the software in question, so other data files
446 * such as images, sound files, executable utilities, libraries,
447 * modules and locale files can be found.
449 * @param mainfunc This is your application's main function name,
450 * whose binary's location is to be found. Providing @c NULL
451 * will make Elementary not to use it
452 * @param dom This will be used as the application's "domain", in the
453 * form of a prefix to any environment variables that may
454 * override prefix detection and the directory name, inside the
455 * standard share or data directories, where the software's
456 * data files will be looked for.
457 * @param checkfile This is an (optional) magic file's path to check
458 * for existence (and it must be located in the data directory,
459 * under the share directory provided above). Its presence will
460 * help determine the prefix found was correct. Pass @c NULL if
461 * the check is not to be done.
463 * This function allows one to re-locate the application somewhere
464 * else after compilation, if the developer wishes for easier
465 * distribution of pre-compiled binaries.
467 * The prefix system is designed to locate where the given software is
468 * installed (under a common path prefix) at run time and then report
469 * specific locations of this prefix and common directories inside
470 * this prefix like the binary, library, data and locale directories,
471 * through the @c elm_app_*_get() family of functions.
473 * Call elm_app_info_set() early on before you change working
474 * directory or anything about @c argv[0], so it gets accurate
477 * It will then try and trace back which file @p mainfunc comes from,
478 * if provided, to determine the application's prefix directory.
480 * The @p dom parameter provides a string prefix to prepend before
481 * environment variables, allowing a fallback to @b specific
482 * environment variables to locate the software. You would most
483 * probably provide a lowercase string there, because it will also
484 * serve as directory domain, explained next. For environment
485 * variables purposes, this string is made uppercase. For example if
486 * @c "myapp" is provided as the prefix, then the program would expect
487 * @c "MYAPP_PREFIX" as a master environment variable to specify the
488 * exact install prefix for the software, or more specific environment
489 * variables like @c "MYAPP_BIN_DIR", @c "MYAPP_LIB_DIR", @c
490 * "MYAPP_DATA_DIR" and @c "MYAPP_LOCALE_DIR", which could be set by
491 * the user or scripts before launching. If not provided (@c NULL),
492 * environment variables will not be used to override compiled-in
493 * defaults or auto detections.
495 * The @p dom string also provides a subdirectory inside the system
496 * shared data directory for data files. For example, if the system
497 * directory is @c /usr/local/share, then this directory name is
498 * appended, creating @c /usr/local/share/myapp, if it @p was @c
499 * "myapp". It is expected the application installs data files in
502 * The @p checkfile is a file name or path of something inside the
503 * share or data directory to be used to test that the prefix
504 * detection worked. For example, your app will install a wallpaper
505 * image as @c /usr/local/share/myapp/images/wallpaper.jpg and so to
506 * check that this worked, provide @c "images/wallpaper.jpg" as the @p
509 * @see elm_app_compile_bin_dir_set()
510 * @see elm_app_compile_lib_dir_set()
511 * @see elm_app_compile_data_dir_set()
512 * @see elm_app_compile_locale_set()
513 * @see elm_app_prefix_dir_get()
514 * @see elm_app_bin_dir_get()
515 * @see elm_app_lib_dir_get()
516 * @see elm_app_data_dir_get()
517 * @see elm_app_locale_dir_get()
519 EAPI void elm_app_info_set(void *mainfunc, const char *dom, const char *checkfile);
522 * Provide information on the @b fallback application's binaries
523 * directory, on scenarios where they get overriden by
524 * elm_app_info_set().
526 * @param dir The path to the default binaries directory (compile time
529 * @note Elementary will as well use this path to determine actual
530 * names of binaries' directory paths, maybe changing it to be @c
531 * something/local/bin instead of @c something/bin, only, for
534 * @warning You should call this function @b before
535 * elm_app_info_set().
537 EAPI void elm_app_compile_bin_dir_set(const char *dir);
540 * Provide information on the @b fallback application's libraries
541 * directory, on scenarios where they get overriden by
542 * elm_app_info_set().
544 * @param dir The path to the default libraries directory (compile
547 * @note Elementary will as well use this path to determine actual
548 * names of libraries' directory paths, maybe changing it to be @c
549 * something/lib32 or @c something/lib64 instead of @c something/lib,
552 * @warning You should call this function @b before
553 * elm_app_info_set().
555 EAPI void elm_app_compile_lib_dir_set(const char *dir);
558 * Provide information on the @b fallback application's data
559 * directory, on scenarios where they get overriden by
560 * elm_app_info_set().
562 * @param dir The path to the default data directory (compile time
565 * @note Elementary will as well use this path to determine actual
566 * names of data directory paths, maybe changing it to be @c
567 * something/local/share instead of @c something/share, only, for
570 * @warning You should call this function @b before
571 * elm_app_info_set().
573 EAPI void elm_app_compile_data_dir_set(const char *dir);
576 * Provide information on the @b fallback application's locale
577 * directory, on scenarios where they get overriden by
578 * elm_app_info_set().
580 * @param dir The path to the default locale directory (compile time
583 * @warning You should call this function @b before
584 * elm_app_info_set().
586 EAPI void elm_app_compile_locale_set(const char *dir);
589 * Retrieve the application's run time prefix directory, as set by
590 * elm_app_info_set() and the way (environment) the application was
593 * @return The directory prefix the application is actually using
595 EAPI const char *elm_app_prefix_dir_get(void);
598 * Retrieve the application's run time binaries prefix directory, as
599 * set by elm_app_info_set() and the way (environment) the application
602 * @return The binaries directory prefix the application is actually
605 EAPI const char *elm_app_bin_dir_get(void);
608 * Retrieve the application's run time libraries prefix directory, as
609 * set by elm_app_info_set() and the way (environment) the application
612 * @return The libraries directory prefix the application is actually
615 EAPI const char *elm_app_lib_dir_get(void);
618 * Retrieve the application's run time data prefix directory, as
619 * set by elm_app_info_set() and the way (environment) the application
622 * @return The data directory prefix the application is actually
625 EAPI const char *elm_app_data_dir_get(void);
628 * Retrieve the application's run time locale prefix directory, as
629 * set by elm_app_info_set() and the way (environment) the application
632 * @return The locale directory prefix the application is actually
635 EAPI const char *elm_app_locale_dir_get(void);
637 EAPI void elm_quicklaunch_mode_set(Eina_Bool ql_on);
638 EAPI Eina_Bool elm_quicklaunch_mode_get(void);
639 EAPI int elm_quicklaunch_init(int argc, char **argv);
640 EAPI int elm_quicklaunch_sub_init(int argc, char **argv);
641 EAPI int elm_quicklaunch_sub_shutdown(void);
642 EAPI int elm_quicklaunch_shutdown(void);
643 EAPI void elm_quicklaunch_seed(void);
644 EAPI Eina_Bool elm_quicklaunch_prepare(int argc, char **argv);
645 EAPI Eina_Bool elm_quicklaunch_fork(int argc, char **argv, char *cwd, void (postfork_func) (void *data), void *postfork_data);
646 EAPI void elm_quicklaunch_cleanup(void);
647 EAPI int elm_quicklaunch_fallback(int argc, char **argv);
648 EAPI char *elm_quicklaunch_exe_path_get(const char *exe);
650 EAPI Eina_Bool elm_need_efreet(void);
651 EAPI Eina_Bool elm_need_e_dbus(void);
652 EAPI Eina_Bool elm_need_ethumb(void);
655 * Set a new policy's value (for a given policy group/identifier).
657 * @param policy policy identifier, as in @ref Elm_Policy.
658 * @param value policy value, which depends on the identifier
660 * @return @c EINA_TRUE on success or @c EINA_FALSE, on error.
662 * Elementary policies define applications' behavior,
663 * somehow. These behaviors are divided in policy groups (see
664 * #Elm_Policy enumeration). This call will emit the Ecore event
665 * #ELM_EVENT_POLICY_CHANGED, which can be hooked at with
666 * handlers. An #Elm_Event_Policy_Changed struct will be passed,
669 * @note Currently, we have only one policy identifier/group
670 * (#ELM_POLICY_QUIT), which has two possible values.
674 EAPI Eina_Bool elm_policy_set(unsigned int policy, int value);
677 * Gets the policy value set for given policy identifier.
679 * @param policy policy identifier, as in #Elm_Policy.
680 * @return The currently set policy value, for that
681 * identifier. Will be @c 0 if @p policy passed is invalid.
685 EAPI int elm_policy_get(unsigned int policy);
688 * Set a label of an object
690 * @param obj The Elementary object
691 * @param part The text part name to set (NULL for the default label)
692 * @param label The new text of the label
694 * @note Elementary objects may have many labels (e.g. Action Slider)
698 EAPI void elm_object_text_part_set(Evas_Object *obj, const char *part, const char *label);
700 #define elm_object_text_set(obj, label) elm_object_text_part_set((obj), NULL, (label))
703 * Get a label of an object
705 * @param obj The Elementary object
706 * @param part The text part name to get (NULL for the default label)
707 * @return text of the label or NULL for any error
709 * @note Elementary objects may have many labels (e.g. Action Slider)
713 EAPI const char *elm_object_text_part_get(const Evas_Object *obj, const char *part);
715 #define elm_object_text_get(obj) elm_object_text_part_get((obj), NULL)
718 * Set a content of an object
720 * @param obj The Elementary object
721 * @param part The content part name to set (NULL for the default content)
722 * @param content The new content of the object
724 * @note Elementary objects may have many contents
728 EAPI void elm_object_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content);
730 #define elm_object_content_set(obj, content) elm_object_content_part_set((obj), NULL, (content))
733 * Get a content of an object
735 * @param obj The Elementary object
736 * @param item The content part name to get (NULL for the default content)
737 * @return content of the object or NULL for any error
739 * @note Elementary objects may have many contents
743 EAPI Evas_Object *elm_object_content_part_get(const Evas_Object *obj, const char *part);
745 #define elm_object_content_get(obj) elm_object_content_part_get((obj), NULL)
748 * Unset a content of an object
750 * @param obj The Elementary object
751 * @param item The content part name to unset (NULL for the default content)
753 * @note Elementary objects may have many contents
757 EAPI Evas_Object *elm_object_content_part_unset(Evas_Object *obj, const char *part);
759 #define elm_object_content_unset(obj) elm_object_content_part_unset((obj), NULL)
762 * Set a content of an object item
764 * @param it The Elementary object item
765 * @param part The content part name to set (NULL for the default content)
766 * @param content The new content of the object item
768 * @note Elementary object items may have many contents
772 EAPI void elm_object_item_content_part_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
774 #define elm_object_item_content_set(it, content) elm_object_item_content_part_set((it), NULL, (content))
777 * Get a content of an object item
779 * @param it The Elementary object item
780 * @param part The content part name to unset (NULL for the default content)
781 * @return content of the object item or NULL for any error
783 * @note Elementary object items may have many contents
787 EAPI Evas_Object *elm_object_item_content_part_get(const Elm_Object_Item *it, const char *item);
789 #define elm_object_item_content_get(it) elm_object_item_content_part_get((it), NULL)
792 * Unset a content of an object item
794 * @param it The Elementary object item
795 * @param part The content part name to unset (NULL for the default content)
797 * @note Elementary object items may have many contents
801 EAPI Evas_Object *elm_object_item_content_part_unset(Elm_Object_Item *it, const char *part);
803 #define elm_object_item_content_unset(it, content) elm_object_item_content_part_unset((it), (content))
806 * Set a label of an objec itemt
808 * @param it The Elementary object item
809 * @param part The text part name to set (NULL for the default label)
810 * @param label The new text of the label
812 * @note Elementary object items may have many labels
816 EAPI void elm_object_item_text_part_set(Elm_Object_Item *it, const char *part, const char *label);
818 #define elm_object_item_text_set(it, label) elm_object_item_text_part_set((it), NULL, (label))
821 * Get a label of an object
823 * @param it The Elementary object item
824 * @param part The text part name to get (NULL for the default label)
825 * @return text of the label or NULL for any error
827 * @note Elementary object items may have many labels
831 EAPI const char *elm_object_item_text_part_get(const Elm_Object_Item *it, const char *part);
834 * Set the text to read out when in accessibility mode
836 * @param obj The object which is to be described
837 * @param txt The text that describes the widget to people with poor or no vision
841 EAPI void elm_object_access_info_set(Evas_Object *obj, const char *txt);
844 * Set the text to read out when in accessibility mode
846 * @param it The object item which is to be described
847 * @param txt The text that describes the widget to people with poor or no vision
851 EAPI void elm_object_item_access_info_set(Elm_Object_Item *it, const char *txt);
854 #define elm_object_item_text_get(it) elm_object_item_text_part_get((it), NULL)
857 * Get the data associated with an object item
858 * @param it The object item
859 * @return The data associated with @p it
863 EAPI void *elm_object_item_data_get(const Elm_Object_Item *it);
866 * Set the data associated with an object item
867 * @param it The object item
868 * @param data The data to be associated with @p it
872 EAPI void elm_object_item_data_set(Elm_Object_Item *it, void *data);
875 * Send a signal to the edje object of the widget item.
877 * This function sends a signal to the edje object of the obj item. An
878 * edje program can respond to a signal by specifying matching
879 * 'signal' and 'source' fields.
881 * @param it The Elementary object item
882 * @param emission The signal's name.
883 * @param source The signal's source.
886 EAPI void elm_object_item_signal_emit(Elm_Object_Item *it, const char *emission, const char *source) EINA_ARG_NONNULL(1);
892 EAPI void elm_all_flush(void);
893 EAPI int elm_cache_flush_interval_get(void);
894 EAPI void elm_cache_flush_interval_set(int size);
895 EAPI void elm_cache_flush_interval_all_set(int size);
896 EAPI Eina_Bool elm_cache_flush_enabled_get(void);
897 EAPI void elm_cache_flush_enabled_set(Eina_Bool enabled);
898 EAPI void elm_cache_flush_enabled_all_set(Eina_Bool enabled);
899 EAPI int elm_font_cache_get(void);
900 EAPI void elm_font_cache_set(int size);
901 EAPI void elm_font_cache_all_set(int size);
902 EAPI int elm_image_cache_get(void);
903 EAPI void elm_image_cache_set(int size);
904 EAPI void elm_image_cache_all_set(int size);
905 EAPI int elm_edje_file_cache_get(void);
906 EAPI void elm_edje_file_cache_set(int size);
907 EAPI void elm_edje_file_cache_all_set(int size);
908 EAPI int elm_edje_collection_cache_get(void);
909 EAPI void elm_edje_collection_cache_set(int size);
910 EAPI void elm_edje_collection_cache_all_set(int size);
913 * @defgroup Scaling Selective Widget Scaling
915 * Different widgets can be scaled independently. These functions
916 * allow you to manipulate this scaling on a per-widget basis. The
917 * object and all its children get their scaling factors multiplied
918 * by the scale factor set. This is multiplicative, in that if a
919 * child also has a scale size set it is in turn multiplied by its
920 * parent's scale size. @c 1.0 means “don't scale”, @c 2.0 is
921 * double size, @c 0.5 is half, etc.
923 * @ref general_functions_example_page "This" example contemplates
924 * some of these functions.
928 * Set the scaling factor for a given Elementary object
930 * @param obj The Elementary to operate on
931 * @param scale Scale factor (from @c 0.0 up, with @c 1.0 meaning
936 EAPI void elm_object_scale_set(Evas_Object *obj, double scale) EINA_ARG_NONNULL(1);
939 * Get the scaling factor for a given Elementary object
941 * @param obj The object
942 * @return The scaling factor set by elm_object_scale_set()
946 EAPI double elm_object_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
949 * @defgroup Password_last_show Password last input show
951 * Last show feature of password mode enables user to view
952 * the last input entered for few seconds before masking it.
953 * These functions allow to set this feature in password mode
954 * of entry widget and also allow to manipulate the duration
955 * for which the input has to be visible.
961 * Get show last setting of password mode.
963 * This gets the show last input setting of password mode which might be
964 * enabled or disabled.
966 * @return @c EINA_TRUE, if the last input show setting is enabled, @c EINA_FALSE
968 * @ingroup Password_last_show
970 EAPI Eina_Bool elm_password_show_last_get(void);
973 * Set show last setting in password mode.
975 * This enables or disables show last setting of password mode.
977 * @param password_show_last If EINA_TRUE enable's last input show in password mode.
978 * @see elm_password_show_last_timeout_set()
979 * @ingroup Password_last_show
981 EAPI void elm_password_show_last_set(Eina_Bool password_show_last);
984 * Get's the timeout value in last show password mode.
986 * This gets the time out value for which the last input entered in password
987 * mode will be visible.
989 * @return The timeout value of last show password mode.
990 * @ingroup Password_last_show
992 EAPI double elm_password_show_last_timeout_get(void);
995 * Set's the timeout value in last show password mode.
997 * This sets the time out value for which the last input entered in password
998 * mode will be visible.
1000 * @param password_show_last_timeout The timeout value.
1001 * @see elm_password_show_last_set()
1002 * @ingroup Password_last_show
1004 EAPI void elm_password_show_last_timeout_set(double password_show_last_timeout);
1010 EAPI Eina_Bool elm_object_mirrored_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1011 EAPI void elm_object_mirrored_set(Evas_Object *obj, Eina_Bool mirrored) EINA_ARG_NONNULL(1);
1012 EAPI Eina_Bool elm_object_mirrored_automatic_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1013 EAPI void elm_object_mirrored_automatic_set(Evas_Object *obj, Eina_Bool automatic) EINA_ARG_NONNULL(1);
1015 * Set the style to use by a widget
1017 * Sets the style name that will define the appearance of a widget. Styles
1018 * vary from widget to widget and may also be defined by other themes
1019 * by means of extensions and overlays.
1021 * @param obj The Elementary widget to style
1022 * @param style The style name to use
1024 * @see elm_theme_extension_add()
1025 * @see elm_theme_overlay_add()
1029 EAPI void elm_object_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
1031 * Get the style used by the widget
1033 * This gets the style being used for that widget. Note that the string
1034 * pointer is only valid as longas the object is valid and the style doesn't
1037 * @param obj The Elementary widget to query for its style
1038 * @return The style name used
1040 * @see elm_object_style_set()
1044 EAPI const char *elm_object_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1047 * @defgroup Styles Styles
1049 * Widgets can have different styles of look. These generic API's
1050 * set styles of widgets, if they support them (and if the theme(s)
1053 * @ref general_functions_example_page "This" example contemplates
1054 * some of these functions.
1058 * Set the disabled state of an Elementary object.
1060 * @param obj The Elementary object to operate on
1061 * @param disabled The state to put in in: @c EINA_TRUE for
1062 * disabled, @c EINA_FALSE for enabled
1064 * Elementary objects can be @b disabled, in which state they won't
1065 * receive input and, in general, will be themed differently from
1066 * their normal state, usually greyed out. Useful for contexts
1067 * where you don't want your users to interact with some of the
1068 * parts of you interface.
1070 * This sets the state for the widget, either disabling it or
1075 EAPI void elm_object_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
1078 * Get the disabled state of an Elementary object.
1080 * @param obj The Elementary object to operate on
1081 * @return @c EINA_TRUE, if the widget is disabled, @c EINA_FALSE
1082 * if it's enabled (or on errors)
1084 * This gets the state of the widget, which might be enabled or disabled.
1088 EAPI Eina_Bool elm_object_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1091 * @defgroup WidgetNavigation Widget Tree Navigation.
1093 * How to check if an Evas Object is an Elementary widget? How to
1094 * get the first elementary widget that is parent of the given
1095 * object? These are all covered in widget tree navigation.
1097 * @ref general_functions_example_page "This" example contemplates
1098 * some of these functions.
1101 EAPI Eina_Bool elm_object_widget_check(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1104 * Get the first parent of the given object that is an Elementary
1107 * @param obj the Elementary object to query parent from.
1108 * @return the parent object that is an Elementary widget, or @c
1109 * NULL, if it was not found.
1111 * Use this to query for an object's parent widget.
1113 * @note Most of Elementary users wouldn't be mixing non-Elementary
1114 * smart objects in the objects tree of an application, as this is
1115 * an advanced usage of Elementary with Evas. So, except for the
1116 * application's window, which is the root of that tree, all other
1117 * objects would have valid Elementary widget parents.
1119 * @ingroup WidgetNavigation
1121 EAPI Evas_Object *elm_object_parent_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1122 EAPI Evas_Object *elm_object_top_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1123 EAPI const char *elm_object_widget_type_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1125 EAPI double elm_scale_get(void);
1126 EAPI void elm_scale_set(double scale);
1127 EAPI void elm_scale_all_set(double scale);
1129 EAPI Eina_Bool elm_mirrored_get(void);
1130 EAPI void elm_mirrored_set(Eina_Bool mirrored);
1132 EAPI Eina_Bool elm_config_save(void);
1133 EAPI void elm_config_reload(void);
1135 EAPI const char *elm_profile_current_get(void);
1136 EAPI const char *elm_profile_dir_get(const char *profile, Eina_Bool is_user);
1137 EAPI void elm_profile_dir_free(const char *p_dir);
1138 EAPI Eina_List *elm_profile_list_get(void);
1139 EAPI void elm_profile_list_free(Eina_List *l);
1140 EAPI void elm_profile_set(const char *profile);
1141 EAPI void elm_profile_all_set(const char *profile);
1143 EAPI const char *elm_engine_current_get(void);
1144 EAPI void elm_engine_set(const char *engine);
1146 typedef struct _Elm_Text_Class
1152 typedef struct _Elm_Font_Overlay
1154 const char *text_class;
1156 Evas_Font_Size size;
1159 typedef struct _Elm_Font_Properties
1163 } Elm_Font_Properties;
1165 EAPI const Eina_List *elm_text_classes_list_get(void);
1166 EAPI void elm_text_classes_list_free(const Eina_List *list);
1168 EAPI const Eina_List *elm_font_overlay_list_get(void);
1169 EAPI void elm_font_overlay_set(const char *text_class, const char *font, Evas_Font_Size size);
1170 EAPI void elm_font_overlay_unset(const char *text_class);
1171 EAPI void elm_font_overlay_apply(void);
1172 EAPI void elm_font_overlay_all_apply(void);
1174 EAPI Elm_Font_Properties *elm_font_properties_get(const char *font) EINA_ARG_NONNULL(1);
1175 EAPI void elm_font_properties_free(Elm_Font_Properties *efp) EINA_ARG_NONNULL(1);
1176 EAPI const char *elm_font_fontconfig_name_get(const char *name, const char *style) EINA_ARG_NONNULL(1);
1177 EAPI void elm_font_fontconfig_name_free(const char *name) EINA_ARG_NONNULL(1);
1178 EAPI Eina_Hash *elm_font_available_hash_add(Eina_List *list);
1179 EAPI void elm_font_available_hash_del(Eina_Hash *hash);
1182 * @defgroup Fingers Fingers
1184 * Elementary is designed to be finger-friendly for touchscreens,
1185 * and so in addition to scaling for display resolution, it can
1186 * also scale based on finger "resolution" (or size). You can then
1187 * customize the granularity of the areas meant to receive clicks
1190 * Different profiles may have pre-set values for finger sizes.
1192 * @ref general_functions_example_page "This" example contemplates
1193 * some of these functions.
1197 * Get the configured "finger size"
1199 * @return The finger size
1201 * This gets the globally configured finger size, <b>in pixels</b>
1205 EAPI Evas_Coord elm_finger_size_get(void);
1206 EAPI void elm_finger_size_set(Evas_Coord size);
1207 EAPI void elm_finger_size_all_set(Evas_Coord size);
1210 * @defgroup Focus Focus
1212 * An Elementary application has, at all times, one (and only one)
1213 * @b focused object. This is what determines where the input
1214 * events go to within the application's window. Also, focused
1215 * objects can be decorated differently, in order to signal to the
1216 * user where the input is, at a given moment.
1218 * Elementary applications also have the concept of <b>focus
1219 * chain</b>: one can cycle through all the windows' focusable
1220 * objects by input (tab key) or programmatically. The default
1221 * focus chain for an application is the one define by the order in
1222 * which the widgets where added in code. One will cycle through
1223 * top level widgets, and, for each one containg sub-objects, cycle
1224 * through them all, before returning to the level
1225 * above. Elementary also allows one to set @b custom focus chains
1226 * for their applications.
1228 * Besides the focused decoration a widget may exhibit, when it
1229 * gets focus, Elementary has a @b global focus highlight object
1230 * that can be enabled for a window. If one chooses to do so, this
1231 * extra highlight effect will surround the current focused object,
1234 * @note Some Elementary widgets are @b unfocusable, after
1235 * creation, by their very nature: they are not meant to be
1236 * interacted with input events, but are there just for visual
1239 * @ref general_functions_example_page "This" example contemplates
1240 * some of these functions.
1243 EAPI Eina_Bool elm_focus_highlight_enabled_get(void);
1244 EAPI void elm_focus_highlight_enabled_set(Eina_Bool enable);
1245 EAPI Eina_Bool elm_focus_highlight_animate_get(void);
1246 EAPI void elm_focus_highlight_animate_set(Eina_Bool animate);
1249 * Get the whether an Elementary object has the focus or not.
1251 * @param obj The Elementary object to get the information from
1252 * @return @c EINA_TRUE, if the object is focused, @c EINA_FALSE if
1253 * not (and on errors).
1255 * @see elm_object_focus()
1259 EAPI Eina_Bool elm_object_focus_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1262 * Make a given Elementary object the focused one.
1264 * @param obj The Elementary object to make focused.
1266 * @note This object, if it can handle focus, will take the focus
1267 * away from the one who had it previously and will, for now on, be
1268 * the one receiving input events.
1270 * @see elm_object_focus_get()
1274 EAPI void elm_object_focus(Evas_Object *obj) EINA_ARG_NONNULL(1);
1277 * Remove the focus from an Elementary object
1279 * @param obj The Elementary to take focus from
1281 * This removes the focus from @p obj, passing it back to the
1282 * previous element in the focus chain list.
1284 * @see elm_object_focus() and elm_object_focus_custom_chain_get()
1288 EAPI void elm_object_unfocus(Evas_Object *obj) EINA_ARG_NONNULL(1);
1291 * Set the ability for an Element object to be focused
1293 * @param obj The Elementary object to operate on
1294 * @param enable @c EINA_TRUE if the object can be focused, @c
1295 * EINA_FALSE if not (and on errors)
1297 * This sets whether the object @p obj is able to take focus or
1298 * not. Unfocusable objects do nothing when programmatically
1299 * focused, being the nearest focusable parent object the one
1300 * really getting focus. Also, when they receive mouse input, they
1301 * will get the event, but not take away the focus from where it
1306 EAPI void elm_object_focus_allow_set(Evas_Object *obj, Eina_Bool enable) EINA_ARG_NONNULL(1);
1309 * Get whether an Elementary object is focusable or not
1311 * @param obj The Elementary object to operate on
1312 * @return @c EINA_TRUE if the object is allowed to be focused, @c
1313 * EINA_FALSE if not (and on errors)
1315 * @note Objects which are meant to be interacted with by input
1316 * events are created able to be focused, by default. All the
1321 EAPI Eina_Bool elm_object_focus_allow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1323 EAPI void elm_object_focus_custom_chain_set(Evas_Object *obj, Eina_List *objs) EINA_ARG_NONNULL(1);
1324 EAPI void elm_object_focus_custom_chain_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
1325 EAPI const Eina_List *elm_object_focus_custom_chain_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1326 EAPI void elm_object_focus_custom_chain_append(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
1327 EAPI void elm_object_focus_custom_chain_prepend(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
1328 EAPI void elm_object_focus_cycle(Evas_Object *obj, Elm_Focus_Direction dir) EINA_ARG_NONNULL(1);
1329 EAPI void elm_object_focus_direction_go(Evas_Object *obj, int x, int y) EINA_ARG_NONNULL(1);
1332 * Make the elementary object and its children to be unfocusable (or focusable).
1334 * @param obj The Elementary object to operate on
1335 * @param tree_unfocusable @c EINA_TRUE for unfocusable,
1336 * @c EINA_FALSE for focusable.
1338 * This sets whether the object @p obj and its children objects
1339 * able to take focus or not. If the tree is unfocusable,
1340 * newest focused object which is not in this tree will get focus.
1341 * This API can be helpful for an object to be deleted.
1342 * When an object will be deleted soon, it and its children may not
1343 * want to get focus (by focus reverting or by other focus controls).
1344 * Then, just use this API before deleting.
1346 * @see elm_object_tree_unfocusable_get()
1350 EAPI void elm_object_tree_unfocusable_set(Evas_Object *obj, Eina_Bool tree_unfocusable); EINA_ARG_NONNULL(1);
1353 * Get whether an Elementary object and its children are unfocusable or not.
1355 * @param obj The Elementary object to get the information from
1356 * @return @c EINA_TRUE, if the tree is unfocussable,
1357 * @c EINA_FALSE if not (and on errors).
1359 * @see elm_object_tree_unfocusable_set()
1363 EAPI Eina_Bool elm_object_tree_unfocusable_get(const Evas_Object *obj); EINA_ARG_NONNULL(1);
1365 EAPI Eina_Bool elm_scroll_bounce_enabled_get(void);
1366 EAPI void elm_scroll_bounce_enabled_set(Eina_Bool enabled);
1367 EAPI void elm_scroll_bounce_enabled_all_set(Eina_Bool enabled);
1368 EAPI double elm_scroll_bounce_friction_get(void);
1369 EAPI void elm_scroll_bounce_friction_set(double friction);
1370 EAPI void elm_scroll_bounce_friction_all_set(double friction);
1371 EAPI double elm_scroll_page_scroll_friction_get(void);
1372 EAPI void elm_scroll_page_scroll_friction_set(double friction);
1373 EAPI void elm_scroll_page_scroll_friction_all_set(double friction);
1374 EAPI double elm_scroll_bring_in_scroll_friction_get(void);
1375 EAPI void elm_scroll_bring_in_scroll_friction_set(double friction);
1376 EAPI void elm_scroll_bring_in_scroll_friction_all_set(double friction);
1377 EAPI double elm_scroll_zoom_friction_get(void);
1378 EAPI void elm_scroll_zoom_friction_set(double friction);
1379 EAPI void elm_scroll_zoom_friction_all_set(double friction);
1380 EAPI Eina_Bool elm_scroll_thumbscroll_enabled_get(void);
1381 EAPI void elm_scroll_thumbscroll_enabled_set(Eina_Bool enabled);
1382 EAPI void elm_scroll_thumbscroll_enabled_all_set(Eina_Bool enabled);
1383 EAPI unsigned int elm_scroll_thumbscroll_threshold_get(void);
1384 EAPI void elm_scroll_thumbscroll_threshold_set(unsigned int threshold);
1385 EAPI void elm_scroll_thumbscroll_threshold_all_set(unsigned int threshold);
1386 EAPI double elm_scroll_thumbscroll_momentum_threshold_get(void);
1387 EAPI void elm_scroll_thumbscroll_momentum_threshold_set(double threshold);
1388 EAPI void elm_scroll_thumbscroll_momentum_threshold_all_set(double threshold);
1389 EAPI double elm_scroll_thumbscroll_friction_get(void);
1390 EAPI void elm_scroll_thumbscroll_friction_set(double friction);
1391 EAPI void elm_scroll_thumbscroll_friction_all_set(double friction);
1392 EAPI double elm_scroll_thumbscroll_border_friction_get(void);
1393 EAPI void elm_scroll_thumbscroll_border_friction_set(double friction);
1394 EAPI void elm_scroll_thumbscroll_border_friction_all_set(double friction);
1397 * Get the sensitivity amount which is be multiplied by the length of
1400 * @return the thumb scroll sensitivity friction
1402 * @ingroup Scrolling
1404 EAPI double elm_scroll_thumbscroll_sensitivity_friction_get(void);
1407 * Set the sensitivity amount which is be multiplied by the length of
1410 * @param friction the thumb scroll sensitivity friction. @c 0.1 for
1411 * minimun sensitivity, @c 1.0 for maximum sensitivity. 0.25
1414 * @see elm_thumbscroll_sensitivity_friction_get()
1415 * @note parameter value will get bound to 0.1 - 1.0 interval, always
1417 * @ingroup Scrolling
1419 EAPI void elm_scroll_thumbscroll_sensitivity_friction_set(double friction);
1422 * Set the sensitivity amount which is be multiplied by the length of
1423 * mouse dragging, for all Elementary application windows.
1425 * @param friction the thumb scroll sensitivity friction. @c 0.1 for
1426 * minimun sensitivity, @c 1.0 for maximum sensitivity. 0.25
1429 * @see elm_thumbscroll_sensitivity_friction_get()
1430 * @note parameter value will get bound to 0.1 - 1.0 interval, always
1432 * @ingroup Scrolling
1434 EAPI void elm_scroll_thumbscroll_sensitivity_friction_all_set(double friction);
1440 EAPI void elm_object_scroll_hold_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
1441 EAPI void elm_object_scroll_hold_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
1442 EAPI void elm_object_scroll_freeze_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
1443 EAPI void elm_object_scroll_freeze_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
1444 EAPI void elm_object_scroll_lock_x_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
1445 EAPI void elm_object_scroll_lock_y_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
1446 EAPI Eina_Bool elm_object_scroll_lock_x_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1447 EAPI Eina_Bool elm_object_scroll_lock_y_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1449 EAPI void elm_object_signal_emit(Evas_Object *obj, const char *emission, const char *source) EINA_ARG_NONNULL(1);
1450 EAPI void elm_object_signal_callback_add(Evas_Object *obj, const char *emission, const char *source, void (*func) (void *data, Evas_Object *o, const char *emission, const char *source), void *data) EINA_ARG_NONNULL(1, 4);
1451 EAPI void *elm_object_signal_callback_del(Evas_Object *obj, const char *emission, const char *source, void (*func) (void *data, Evas_Object *o, const char *emission, const char *source)) EINA_ARG_NONNULL(1, 4);
1453 EAPI void elm_object_event_callback_add(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
1454 EAPI void *elm_object_event_callback_del(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
1457 * Adjust size of an element for finger usage.
1459 * @param times_w How many fingers should fit horizontally
1460 * @param w Pointer to the width size to adjust
1461 * @param times_h How many fingers should fit vertically
1462 * @param h Pointer to the height size to adjust
1464 * This takes width and height sizes (in pixels) as input and a
1465 * size multiple (which is how many fingers you want to place
1466 * within the area, being "finger" the size set by
1467 * elm_finger_size_set()), and adjusts the size to be large enough
1468 * to accommodate the resulting size -- if it doesn't already
1469 * accommodate it. On return the @p w and @p h sizes pointed to by
1470 * these parameters will be modified, on those conditions.
1472 * @note This is kind of a low level Elementary call, most useful
1473 * on size evaluation times for widgets. An external user wouldn't
1474 * be calling, most of the time.
1478 EAPI void elm_coords_finger_size_adjust(int times_w, Evas_Coord *w, int times_h, Evas_Coord *h);
1480 EAPI double elm_longpress_timeout_get(void);
1481 EAPI void elm_longpress_timeout_set(double longpress_timeout);
1484 * don't use it unless you are sure
1486 EAPI void elm_object_tree_dump(const Evas_Object *top);
1487 EAPI void elm_object_tree_dot_dump(const Evas_Object *top, const char *file);
1489 EAPI void elm_autocapitalization_allow_all_set(Eina_Bool autocap);
1490 EAPI void elm_autoperiod_allow_all_set(Eina_Bool autoperiod);
1495 * @defgroup Theme Theme
1497 * Elementary uses Edje to theme its widgets, naturally. But for the most
1498 * part this is hidden behind a simpler interface that lets the user set
1499 * extensions and choose the style of widgets in a much easier way.
1501 * Instead of thinking in terms of paths to Edje files and their groups
1502 * each time you want to change the appearance of a widget, Elementary
1503 * works so you can add any theme file with extensions or replace the
1504 * main theme at one point in the application, and then just set the style
1505 * of widgets with elm_object_style_set() and related functions. Elementary
1506 * will then look in its list of themes for a matching group and apply it,
1507 * and when the theme changes midway through the application, all widgets
1508 * will be updated accordingly.
1510 * There are three concepts you need to know to understand how Elementary
1511 * theming works: default theme, extensions and overlays.
1513 * Default theme, obviously enough, is the one that provides the default
1514 * look of all widgets. End users can change the theme used by Elementary
1515 * by setting the @c ELM_THEME environment variable before running an
1516 * application, or globally for all programs using the @c elementary_config
1517 * utility. Applications can change the default theme using elm_theme_set(),
1518 * but this can go against the user wishes, so it's not an adviced practice.
1520 * Ideally, applications should find everything they need in the already
1521 * provided theme, but there may be occasions when that's not enough and
1522 * custom styles are required to correctly express the idea. For this
1523 * cases, Elementary has extensions.
1525 * Extensions allow the application developer to write styles of its own
1526 * to apply to some widgets. This requires knowledge of how each widget
1527 * is themed, as extensions will always replace the entire group used by
1528 * the widget, so important signals and parts need to be there for the
1529 * object to behave properly (see documentation of Edje for details).
1530 * Once the theme for the extension is done, the application needs to add
1531 * it to the list of themes Elementary will look into, using
1532 * elm_theme_extension_add(), and set the style of the desired widgets as
1533 * he would normally with elm_object_style_set().
1535 * Overlays, on the other hand, can replace the look of all widgets by
1536 * overriding the default style. Like extensions, it's up to the application
1537 * developer to write the theme for the widgets it wants, the difference
1538 * being that when looking for the theme, Elementary will check first the
1539 * list of overlays, then the set theme and lastly the list of extensions,
1540 * so with overlays it's possible to replace the default view and every
1541 * widget will be affected. This is very much alike to setting the whole
1542 * theme for the application and will probably clash with the end user
1543 * options, not to mention the risk of ending up with not matching styles
1544 * across the program. Unless there's a very special reason to use them,
1545 * overlays should be avoided for the resons exposed before.
1547 * All these theme lists are handled by ::Elm_Theme instances. Elementary
1548 * keeps one default internally and every function that receives one of
1549 * these can be called with NULL to refer to this default (except for
1550 * elm_theme_free()). It's possible to create a new instance of a
1551 * ::Elm_Theme to set other theme for a specific widget (and all of its
1552 * children), but this is as discouraged, if not even more so, than using
1553 * overlays. Don't use this unless you really know what you are doing.
1555 * But to be less negative about things, you can look at the following
1557 * @li @ref theme_example_01 "Using extensions"
1558 * @li @ref theme_example_02 "Using overlays"
1563 * @typedef Elm_Theme
1565 * Opaque handler for the list of themes Elementary looks for when
1566 * rendering widgets.
1568 * Stay out of this unless you really know what you are doing. For most
1569 * cases, sticking to the default is all a developer needs.
1571 typedef struct _Elm_Theme Elm_Theme;
1574 * Create a new specific theme
1576 * This creates an empty specific theme that only uses the default theme. A
1577 * specific theme has its own private set of extensions and overlays too
1578 * (which are empty by default). Specific themes do not fall back to themes
1579 * of parent objects. They are not intended for this use. Use styles, overlays
1580 * and extensions when needed, but avoid specific themes unless there is no
1581 * other way (example: you want to have a preview of a new theme you are
1582 * selecting in a "theme selector" window. The preview is inside a scroller
1583 * and should display what the theme you selected will look like, but not
1584 * actually apply it yet. The child of the scroller will have a specific
1585 * theme set to show this preview before the user decides to apply it to all
1588 EAPI Elm_Theme *elm_theme_new(void);
1590 * Free a specific theme
1592 * @param th The theme to free
1594 * This frees a theme created with elm_theme_new().
1596 EAPI void elm_theme_free(Elm_Theme *th);
1598 * Copy the theme fom the source to the destination theme
1600 * @param th The source theme to copy from
1601 * @param thdst The destination theme to copy data to
1603 * This makes a one-time static copy of all the theme config, extensions
1604 * and overlays from @p th to @p thdst. If @p th references a theme, then
1605 * @p thdst is also set to reference it, with all the theme settings,
1606 * overlays and extensions that @p th had.
1608 EAPI void elm_theme_copy(Elm_Theme *th, Elm_Theme *thdst);
1610 * Tell the source theme to reference the ref theme
1612 * @param th The theme that will do the referencing
1613 * @param thref The theme that is the reference source
1615 * This clears @p th to be empty and then sets it to refer to @p thref
1616 * so @p th acts as an override to @p thref, but where its overrides
1617 * don't apply, it will fall through to @pthref for configuration.
1619 EAPI void elm_theme_ref_set(Elm_Theme *th, Elm_Theme *thref);
1621 * Return the theme referred to
1623 * @param th The theme to get the reference from
1624 * @return The referenced theme handle
1626 * This gets the theme set as the reference theme by elm_theme_ref_set().
1627 * If no theme is set as a reference, NULL is returned.
1629 EAPI Elm_Theme *elm_theme_ref_get(Elm_Theme *th);
1631 * Return the default theme
1633 * @return The default theme handle
1635 * This returns the internal default theme setup handle that all widgets
1636 * use implicitly unless a specific theme is set. This is also often use
1637 * as a shorthand of NULL.
1639 EAPI Elm_Theme *elm_theme_default_get(void);
1641 * Prepends a theme overlay to the list of overlays
1643 * @param th The theme to add to, or if NULL, the default theme
1644 * @param item The Edje file path to be used
1646 * Use this if your application needs to provide some custom overlay theme
1647 * (An Edje file that replaces some default styles of widgets) where adding
1648 * new styles, or changing system theme configuration is not possible. Do
1649 * NOT use this instead of a proper system theme configuration. Use proper
1650 * configuration files, profiles, environment variables etc. to set a theme
1651 * so that the theme can be altered by simple confiugration by a user. Using
1652 * this call to achieve that effect is abusing the API and will create lots
1655 * @see elm_theme_extension_add()
1657 EAPI void elm_theme_overlay_add(Elm_Theme *th, const char *item);
1659 * Delete a theme overlay from the list of overlays
1661 * @param th The theme to delete from, or if NULL, the default theme
1662 * @param item The name of the theme overlay
1664 * @see elm_theme_overlay_add()
1666 EAPI void elm_theme_overlay_del(Elm_Theme *th, const char *item);
1668 * Appends a theme extension to the list of extensions.
1670 * @param th The theme to add to, or if NULL, the default theme
1671 * @param item The Edje file path to be used
1673 * This is intended when an application needs more styles of widgets or new
1674 * widget themes that the default does not provide (or may not provide). The
1675 * application has "extended" usage by coming up with new custom style names
1676 * for widgets for specific uses, but as these are not "standard", they are
1677 * not guaranteed to be provided by a default theme. This means the
1678 * application is required to provide these extra elements itself in specific
1679 * Edje files. This call adds one of those Edje files to the theme search
1680 * path to be search after the default theme. The use of this call is
1681 * encouraged when default styles do not meet the needs of the application.
1682 * Use this call instead of elm_theme_overlay_add() for almost all cases.
1684 * @see elm_object_style_set()
1686 EAPI void elm_theme_extension_add(Elm_Theme *th, const char *item);
1688 * Deletes a theme extension from the list of extensions.
1690 * @param th The theme to delete from, or if NULL, the default theme
1691 * @param item The name of the theme extension
1693 * @see elm_theme_extension_add()
1695 EAPI void elm_theme_extension_del(Elm_Theme *th, const char *item);
1697 * Set the theme search order for the given theme
1699 * @param th The theme to set the search order, or if NULL, the default theme
1700 * @param theme Theme search string
1702 * This sets the search string for the theme in path-notation from first
1703 * theme to search, to last, delimited by the : character. Example:
1705 * "shiny:/path/to/file.edj:default"
1707 * See the ELM_THEME environment variable for more information.
1709 * @see elm_theme_get()
1710 * @see elm_theme_list_get()
1712 EAPI void elm_theme_set(Elm_Theme *th, const char *theme);
1714 * Return the theme search order
1716 * @param th The theme to get the search order, or if NULL, the default theme
1717 * @return The internal search order path
1719 * This function returns a colon separated string of theme elements as
1720 * returned by elm_theme_list_get().
1722 * @see elm_theme_set()
1723 * @see elm_theme_list_get()
1725 EAPI const char *elm_theme_get(Elm_Theme *th);
1727 * Return a list of theme elements to be used in a theme.
1729 * @param th Theme to get the list of theme elements from.
1730 * @return The internal list of theme elements
1732 * This returns the internal list of theme elements (will only be valid as
1733 * long as the theme is not modified by elm_theme_set() or theme is not
1734 * freed by elm_theme_free(). This is a list of strings which must not be
1735 * altered as they are also internal. If @p th is NULL, then the default
1736 * theme element list is returned.
1738 * A theme element can consist of a full or relative path to a .edj file,
1739 * or a name, without extension, for a theme to be searched in the known
1740 * theme paths for Elemementary.
1742 * @see elm_theme_set()
1743 * @see elm_theme_get()
1745 EAPI const Eina_List *elm_theme_list_get(const Elm_Theme *th);
1747 * Return the full patrh for a theme element
1749 * @param f The theme element name
1750 * @param in_search_path Pointer to a boolean to indicate if item is in the search path or not
1751 * @return The full path to the file found.
1753 * This returns a string you should free with free() on success, NULL on
1754 * failure. This will search for the given theme element, and if it is a
1755 * full or relative path element or a simple searchable name. The returned
1756 * path is the full path to the file, if searched, and the file exists, or it
1757 * is simply the full path given in the element or a resolved path if
1758 * relative to home. The @p in_search_path boolean pointed to is set to
1759 * EINA_TRUE if the file was a searchable file andis in the search path,
1760 * and EINA_FALSE otherwise.
1762 EAPI char *elm_theme_list_item_path_get(const char *f, Eina_Bool *in_search_path);
1764 * Flush the current theme.
1766 * @param th Theme to flush
1768 * This flushes caches that let elementary know where to find theme elements
1769 * in the given theme. If @p th is NULL, then the default theme is flushed.
1770 * Call this function if source theme data has changed in such a way as to
1771 * make any caches Elementary kept invalid.
1773 EAPI void elm_theme_flush(Elm_Theme *th);
1775 * This flushes all themes (default and specific ones).
1777 * This will flush all themes in the current application context, by calling
1778 * elm_theme_flush() on each of them.
1780 EAPI void elm_theme_full_flush(void);
1782 * Set the theme for all elementary using applications on the current display
1784 * @param theme The name of the theme to use. Format same as the ELM_THEME
1785 * environment variable.
1787 EAPI void elm_theme_all_set(const char *theme);
1789 * Return a list of theme elements in the theme search path
1791 * @return A list of strings that are the theme element names.
1793 * This lists all available theme files in the standard Elementary search path
1794 * for theme elements, and returns them in alphabetical order as theme
1795 * element names in a list of strings. Free this with
1796 * elm_theme_name_available_list_free() when you are done with the list.
1798 EAPI Eina_List *elm_theme_name_available_list_new(void);
1800 * Free the list returned by elm_theme_name_available_list_new()
1802 * This frees the list of themes returned by
1803 * elm_theme_name_available_list_new(). Once freed the list should no longer
1804 * be used. a new list mys be created.
1806 EAPI void elm_theme_name_available_list_free(Eina_List *list);
1808 * Set a specific theme to be used for this object and its children
1810 * @param obj The object to set the theme on
1811 * @param th The theme to set
1813 * This sets a specific theme that will be used for the given object and any
1814 * child objects it has. If @p th is NULL then the theme to be used is
1815 * cleared and the object will inherit its theme from its parent (which
1816 * ultimately will use the default theme if no specific themes are set).
1818 * Use special themes with great care as this will annoy users and make
1819 * configuration difficult. Avoid any custom themes at all if it can be
1822 EAPI void elm_object_theme_set(Evas_Object *obj, Elm_Theme *th) EINA_ARG_NONNULL(1);
1824 * Get the specific theme to be used
1826 * @param obj The object to get the specific theme from
1827 * @return The specifc theme set.
1829 * This will return a specific theme set, or NULL if no specific theme is
1830 * set on that object. It will not return inherited themes from parents, only
1831 * the specific theme set for that specific object. See elm_object_theme_set()
1832 * for more information.
1834 EAPI Elm_Theme *elm_object_theme_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1840 typedef enum _Elm_Win_Type
1843 ELM_WIN_DIALOG_BASIC,
1850 ELM_WIN_DROPDOWN_MENU,
1853 ELM_WIN_NOTIFICATION,
1856 ELM_WIN_INLINED_IMAGE,
1859 typedef enum _Elm_Win_Keyboard_Mode
1861 ELM_WIN_KEYBOARD_UNKNOWN,
1862 ELM_WIN_KEYBOARD_OFF,
1863 ELM_WIN_KEYBOARD_ON,
1864 ELM_WIN_KEYBOARD_ALPHA,
1865 ELM_WIN_KEYBOARD_NUMERIC,
1866 ELM_WIN_KEYBOARD_PIN,
1867 ELM_WIN_KEYBOARD_PHONE_NUMBER,
1868 ELM_WIN_KEYBOARD_HEX,
1869 ELM_WIN_KEYBOARD_TERMINAL,
1870 ELM_WIN_KEYBOARD_PASSWORD,
1871 ELM_WIN_KEYBOARD_IP,
1872 ELM_WIN_KEYBOARD_HOST,
1873 ELM_WIN_KEYBOARD_FILE,
1874 ELM_WIN_KEYBOARD_URL,
1875 ELM_WIN_KEYBOARD_KEYPAD,
1876 ELM_WIN_KEYBOARD_J2ME
1877 } Elm_Win_Keyboard_Mode;
1879 typedef enum _Elm_Illume_Command
1881 ELM_ILLUME_COMMAND_FOCUS_BACK,
1882 ELM_ILLUME_COMMAND_FOCUS_FORWARD,
1883 ELM_ILLUME_COMMAND_FOCUS_HOME,
1884 ELM_ILLUME_COMMAND_CLOSE
1885 } Elm_Illume_Command;
1887 EAPI Evas_Object *elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type);
1888 EAPI void elm_win_resize_object_add(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
1889 EAPI void elm_win_resize_object_del(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
1890 EAPI void elm_win_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
1891 EAPI const char *elm_win_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1892 EAPI void elm_win_autodel_set(Evas_Object *obj, Eina_Bool autodel) EINA_ARG_NONNULL(1);
1893 EAPI Eina_Bool elm_win_autodel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1894 EAPI void elm_win_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
1895 EAPI void elm_win_lower(Evas_Object *obj) EINA_ARG_NONNULL(1);
1896 EAPI void elm_win_raise(Evas_Object *obj) EINA_ARG_NONNULL(1);
1897 EAPI void elm_win_borderless_set(Evas_Object *obj, Eina_Bool borderless) EINA_ARG_NONNULL(1);
1898 EAPI Eina_Bool elm_win_borderless_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1899 EAPI void elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped) EINA_ARG_NONNULL(1);
1900 EAPI Eina_Bool elm_win_shaped_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1901 EAPI void elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
1902 EAPI Eina_Bool elm_win_transparent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1903 EAPI void elm_win_transparent_set(Evas_Object *obj, Eina_Bool transparent) EINA_ARG_NONNULL(1);
1904 EAPI Eina_Bool elm_win_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1905 EAPI void elm_win_override_set(Evas_Object *obj, Eina_Bool override) EINA_ARG_NONNULL(1);
1906 EAPI Eina_Bool elm_win_override_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1907 EAPI void elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen) EINA_ARG_NONNULL(1);
1908 EAPI Eina_Bool elm_win_fullscreen_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1909 EAPI void elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized) EINA_ARG_NONNULL(1);
1910 EAPI Eina_Bool elm_win_maximized_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1911 EAPI void elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified) EINA_ARG_NONNULL(1);
1912 EAPI Eina_Bool elm_win_iconified_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1913 EAPI void elm_win_layer_set(Evas_Object *obj, int layer) EINA_ARG_NONNULL(1);
1914 EAPI int elm_win_layer_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1915 EAPI void elm_win_rotation_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
1916 EAPI void elm_win_rotation_with_resize_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
1917 EAPI int elm_win_rotation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1918 EAPI void elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky) EINA_ARG_NONNULL(1);
1919 EAPI Eina_Bool elm_win_sticky_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1920 EAPI void elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant) EINA_ARG_NONNULL(1);
1921 EAPI Eina_Bool elm_win_conformant_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1922 EAPI void elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel) EINA_ARG_NONNULL(1);
1923 EAPI Eina_Bool elm_win_quickpanel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1924 EAPI void elm_win_quickpanel_priority_major_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
1925 EAPI int elm_win_quickpanel_priority_major_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1926 EAPI void elm_win_quickpanel_priority_minor_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
1927 EAPI int elm_win_quickpanel_priority_minor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1928 EAPI void elm_win_quickpanel_zone_set(Evas_Object *obj, int zone) EINA_ARG_NONNULL(1);
1929 EAPI int elm_win_quickpanel_zone_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1930 EAPI void elm_win_prop_focus_skip_set(Evas_Object *obj, Eina_Bool skip) EINA_ARG_NONNULL(1);
1931 EAPI void elm_win_illume_command_send(Evas_Object *obj, Elm_Illume_Command command, void *params) EINA_ARG_NONNULL(1);
1932 EAPI Evas_Object *elm_win_inlined_image_object_get(Evas_Object *obj);
1933 EAPI void elm_win_focus_highlight_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
1934 EAPI Eina_Bool elm_win_focus_highlight_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1935 EAPI void elm_win_focus_highlight_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
1936 EAPI const char *elm_win_focus_highlight_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1937 EAPI void elm_win_indicator_state_set(Evas_Object *obj, int show_state);
1938 EAPI int elm_win_indicator_state_get(Evas_Object *obj);
1940 * ecore_x_icccm_hints_set -> accepts_focus (add to ecore_evas)
1941 * ecore_x_icccm_hints_set -> window_group (add to ecore_evas)
1942 * ecore_x_icccm_size_pos_hints_set -> request_pos (add to ecore_evas)
1943 * ecore_x_icccm_client_leader_set -> l (add to ecore_evas)
1944 * ecore_x_icccm_window_role_set -> role (add to ecore_evas)
1945 * ecore_x_icccm_transient_for_set -> forwin (add to ecore_evas)
1946 * ecore_x_netwm_window_type_set -> type (add to ecore_evas)
1948 * (add to ecore_x) set netwm argb icon! (add to ecore_evas)
1949 * (blank mouse, private mouse obj, defaultmouse)
1952 EAPI void elm_win_keyboard_mode_set(Evas_Object *obj, Elm_Win_Keyboard_Mode mode) EINA_ARG_NONNULL(1);
1953 EAPI Elm_Win_Keyboard_Mode elm_win_keyboard_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1954 EAPI void elm_win_keyboard_win_set(Evas_Object *obj, Eina_Bool is_keyboard) EINA_ARG_NONNULL(1);
1955 EAPI Eina_Bool elm_win_keyboard_win_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1957 EAPI void elm_win_screen_position_get(const Evas_Object *obj, int *x, int *y) EINA_ARG_NONNULL(1);
1959 EAPI Evas_Object *elm_win_inwin_add(Evas_Object *obj) EINA_ARG_NONNULL(1);
1960 EAPI void elm_win_inwin_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
1961 EAPI void elm_win_inwin_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
1962 EAPI Evas_Object *elm_win_inwin_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1963 EAPI Evas_Object *elm_win_inwin_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
1964 /* available styles:
1969 /* X specific calls - won't work on non-x engines (return 0) */
1970 EAPI Ecore_X_Window elm_win_xwindow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1971 /* smart callbacks called:
1972 * "delete,request" - the user requested to delete the window
1973 * "focus,in" - window got focus
1974 * "focus,out" - window lost focus
1975 * "moved" - window that holds the canvas was moved
1981 * @brief Background object, used for setting a solid color, image or Edje
1982 * group as background to a window or any container object.
1984 * The bg object is used for setting a solid background to a window or
1985 * packing into any container object. It works just like an image, but has
1986 * some properties useful to a background, like setting it to tiled,
1987 * centered, scaled or stretched.
1989 * Here is some sample code using it:
1990 * @li @ref bg_01_example_page
1991 * @li @ref bg_02_example_page
1992 * @li @ref bg_03_example_page
1996 typedef enum _Elm_Bg_Option
1998 ELM_BG_OPTION_CENTER, /**< center the background */
1999 ELM_BG_OPTION_SCALE, /**< scale the background retaining aspect ratio */
2000 ELM_BG_OPTION_STRETCH, /**< stretch the background to fill */
2001 ELM_BG_OPTION_TILE /**< tile background at its original size */
2005 * Add a new background to the parent
2007 * @param parent The parent object
2008 * @return The new object or NULL if it cannot be created
2012 EAPI Evas_Object *elm_bg_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
2015 * Set the file (image or edje) used for the background
2017 * @param obj The bg object
2018 * @param file The file path
2019 * @param group Optional key (group in Edje) within the file
2021 * This sets the image file used in the background object. The image (or edje)
2022 * will be stretched (retaining aspect if its an image file) to completely fill
2023 * the bg object. This may mean some parts are not visible.
2025 * @note Once the image of @p obj is set, a previously set one will be deleted,
2026 * even if @p file is NULL.
2030 EAPI void elm_bg_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
2033 * Get the file (image or edje) used for the background
2035 * @param obj The bg object
2036 * @param file The file path
2037 * @param group Optional key (group in Edje) within the file
2041 EAPI void elm_bg_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
2044 * Set the option used for the background image
2046 * @param obj The bg object
2047 * @param option The desired background option (TILE, SCALE)
2049 * This sets the option used for manipulating the display of the background
2050 * image. The image can be tiled or scaled.
2054 EAPI void elm_bg_option_set(Evas_Object *obj, Elm_Bg_Option option) EINA_ARG_NONNULL(1);
2057 * Get the option used for the background image
2059 * @param obj The bg object
2060 * @return The desired background option (CENTER, SCALE, STRETCH or TILE)
2064 EAPI Elm_Bg_Option elm_bg_option_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2066 * Set the option used for the background color
2068 * @param obj The bg object
2073 * This sets the color used for the background rectangle. Its range goes
2078 EAPI void elm_bg_color_set(Evas_Object *obj, int r, int g, int b) EINA_ARG_NONNULL(1);
2080 * Get the option used for the background color
2082 * @param obj The bg object
2089 EAPI void elm_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b) EINA_ARG_NONNULL(1);
2092 * Set the overlay object used for the background object.
2094 * @param obj The bg object
2095 * @param overlay The overlay object
2097 * This provides a way for elm_bg to have an 'overlay' that will be on top
2098 * of the bg. Once the over object is set, a previously set one will be
2099 * deleted, even if you set the new one to NULL. If you want to keep that
2100 * old content object, use the elm_bg_overlay_unset() function.
2105 EAPI void elm_bg_overlay_set(Evas_Object *obj, Evas_Object *overlay) EINA_ARG_NONNULL(1);
2108 * Get the overlay object used for the background object.
2110 * @param obj The bg object
2111 * @return The content that is being used
2113 * Return the content object which is set for this widget
2117 EAPI Evas_Object *elm_bg_overlay_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2120 * Get the overlay object used for the background object.
2122 * @param obj The bg object
2123 * @return The content that was being used
2125 * Unparent and return the overlay object which was set for this widget
2129 EAPI Evas_Object *elm_bg_overlay_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
2132 * Set the size of the pixmap representation of the image.
2134 * This option just makes sense if an image is going to be set in the bg.
2136 * @param obj The bg object
2137 * @param w The new width of the image pixmap representation.
2138 * @param h The new height of the image pixmap representation.
2140 * This function sets a new size for pixmap representation of the given bg
2141 * image. It allows the image to be loaded already in the specified size,
2142 * reducing the memory usage and load time when loading a big image with load
2143 * size set to a smaller size.
2145 * NOTE: this is just a hint, the real size of the pixmap may differ
2146 * depending on the type of image being loaded, being bigger than requested.
2150 EAPI void elm_bg_load_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
2151 /* smart callbacks called:
2155 typedef enum _Elm_Icon_Lookup_Order
2157 ELM_ICON_LOOKUP_FDO_THEME, /**< icon look up order: freedesktop, theme */
2158 ELM_ICON_LOOKUP_THEME_FDO, /**< icon look up order: theme, freedesktop */
2159 ELM_ICON_LOOKUP_FDO, /**< icon look up order: freedesktop */
2160 ELM_ICON_LOOKUP_THEME /**< icon look up order: theme */
2161 } Elm_Icon_Lookup_Order;
2163 EAPI Evas_Object *elm_icon_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
2164 EAPI Eina_Bool elm_icon_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
2165 EAPI void elm_icon_thumb_set(const Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
2166 EAPI void elm_icon_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
2167 EAPI Eina_Bool elm_icon_standard_set(Evas_Object *obj, const char *name) EINA_ARG_NONNULL(1);
2168 EAPI const char *elm_icon_standard_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2169 EAPI void elm_icon_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
2170 EAPI Eina_Bool elm_icon_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2171 EAPI void elm_icon_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
2172 EAPI Eina_Bool elm_icon_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2173 EAPI void elm_icon_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
2174 EAPI void elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
2175 EAPI void elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
2176 EAPI Eina_Bool elm_icon_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2177 EAPI void elm_icon_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
2178 EAPI int elm_icon_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2179 EAPI void elm_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
2180 EAPI Elm_Icon_Lookup_Order elm_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2181 EAPI Eina_Bool elm_icon_anim_available_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2182 EAPI void elm_icon_anim_set(Evas_Object *obj, Eina_Bool anim) EINA_ARG_NONNULL(1);
2183 EAPI Eina_Bool elm_icon_anim_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2184 EAPI void elm_icon_anim_play_set(Evas_Object *obj, Eina_Bool play) EINA_ARG_NONNULL(1);
2185 EAPI Eina_Bool elm_icon_anim_play_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2187 /* smart callbacks called:
2188 * "clicked" - the user clicked the icon
2192 typedef enum _Elm_Image_Orient
2194 ELM_IMAGE_ORIENT_NONE,
2195 ELM_IMAGE_ROTATE_90_CW,
2196 ELM_IMAGE_ROTATE_180_CW,
2197 ELM_IMAGE_ROTATE_90_CCW,
2198 ELM_IMAGE_FLIP_HORIZONTAL,
2199 ELM_IMAGE_FLIP_VERTICAL,
2200 ELM_IMAGE_FLIP_TRANSPOSE,
2201 ELM_IMAGE_FLIP_TRANSVERSE
2203 EAPI Evas_Object *elm_image_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
2204 EAPI Eina_Bool elm_image_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
2205 EAPI void elm_image_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
2206 EAPI void elm_image_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
2207 EAPI Eina_Bool elm_image_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2208 EAPI void elm_image_object_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
2209 EAPI void elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
2210 EAPI Eina_Bool elm_image_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2211 EAPI void elm_image_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
2212 EAPI void elm_image_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
2213 EAPI void elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
2214 EAPI Eina_Bool elm_image_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2215 EAPI void elm_image_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
2216 EAPI int elm_image_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2217 EAPI void elm_image_orient_set(Evas_Object *obj, Elm_Image_Orient orient) EINA_ARG_NONNULL(1);
2218 EAPI Elm_Image_Orient elm_image_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2219 EAPI void elm_image_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
2220 EAPI Eina_Bool elm_image_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2221 EAPI Evas_Object *elm_image_object_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2222 EAPI void elm_image_aspect_ratio_retained_set(Evas_Object *obj, Eina_Bool retained) EINA_ARG_NONNULL(1);
2223 EAPI Eina_Bool elm_image_aspect_ratio_retained_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2225 /* smart callbacks called:
2226 * "clicked" - the user clicked the image
2230 typedef void (*Elm_GLView_Func)(Evas_Object *obj);
2232 typedef enum _Elm_GLView_Mode
2234 ELM_GLVIEW_ALPHA = 1,
2235 ELM_GLVIEW_DEPTH = 2,
2236 ELM_GLVIEW_STENCIL = 4
2240 * Defines a policy for the glview resizing.
2242 * @note Default is ELM_GLVIEW_RESIZE_POLICY_RECREATE
2244 typedef enum _Elm_GLView_Resize_Policy
2246 ELM_GLVIEW_RESIZE_POLICY_RECREATE = 1, /**< Resize the internal surface along with the image */
2247 ELM_GLVIEW_RESIZE_POLICY_SCALE = 2 /**< Only reize the internal image and not the surface */
2248 } Elm_GLView_Resize_Policy;
2250 typedef enum _Elm_GLView_Render_Policy
2252 ELM_GLVIEW_RENDER_POLICY_ON_DEMAND = 1, /**< Render only when there is a need for redrawing */
2253 ELM_GLVIEW_RENDER_POLICY_ALWAYS = 2 /**< Render always even when it is not visible */
2254 } Elm_GLView_Render_Policy;
2257 EAPI Evas_Object *elm_glview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
2258 EAPI void elm_glview_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
2259 EAPI void elm_glview_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
2260 EAPI Evas_GL_API *elm_glview_gl_api_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2261 EAPI Eina_Bool elm_glview_mode_set(Evas_Object *obj, Elm_GLView_Mode mode) EINA_ARG_NONNULL(1);
2262 EAPI Eina_Bool elm_glview_resize_policy_set(Evas_Object *obj, Elm_GLView_Resize_Policy policy) EINA_ARG_NONNULL(1);
2263 EAPI Eina_Bool elm_glview_render_policy_set(Evas_Object *obj, Elm_GLView_Render_Policy policy) EINA_ARG_NONNULL(1);
2264 EAPI void elm_glview_init_func_set(Evas_Object *obj, Elm_GLView_Func func) EINA_ARG_NONNULL(1);
2265 EAPI void elm_glview_del_func_set(Evas_Object *obj, Elm_GLView_Func func) EINA_ARG_NONNULL(1);
2266 EAPI void elm_glview_resize_func_set(Evas_Object *obj, Elm_GLView_Func func) EINA_ARG_NONNULL(1);
2267 EAPI void elm_glview_render_func_set(Evas_Object *obj, Elm_GLView_Func func) EINA_ARG_NONNULL(1);
2268 EAPI void elm_glview_changed_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
2274 * A box arranges objects in a linear fashion, governed by a layout function
2275 * that defines the details of this arrangement.
2277 * By default, the box will use an internal function to set the layout to
2278 * a single row, either vertical or horizontal. This layout is affected
2279 * by a number of parameters, such as the homogeneous flag set by
2280 * elm_box_homogeneous_set(), the values given by elm_box_padding_set() and
2281 * elm_box_align_set() and the hints set to each object in the box.
2283 * For this default layout, it's possible to change the orientation with
2284 * elm_box_horizontal_set(). The box will start in the vertical orientation,
2285 * placing its elements ordered from top to bottom. When horizontal is set,
2286 * the order will go from left to right. If the box is set to be
2287 * homogeneous, every object in it will be assigned the same space, that
2288 * of the largest object. Padding can be used to set some spacing between
2289 * the cell given to each object. The alignment of the box, set with
2290 * elm_box_align_set(), determines how the bounding box of all the elements
2291 * will be placed within the space given to the box widget itself.
2293 * The size hints of each object also affect how they are placed and sized
2294 * within the box. evas_object_size_hint_min_set() will give the minimum
2295 * size the object can have, and the box will use it as the basis for all
2296 * latter calculations. Elementary widgets set their own minimum size as
2297 * needed, so there's rarely any need to use it manually.
2299 * evas_object_size_hint_weight_set(), when not in homogeneous mode, is
2300 * used to tell whether the object will be allocated the minimum size it
2301 * needs or if the space given to it should be expanded. It's important
2302 * to realize that expanding the size given to the object is not the same
2303 * thing as resizing the object. It could very well end being a small
2304 * widget floating in a much larger empty space. If not set, the weight
2305 * for objects will normally be 0.0 for both axis, meaning the widget will
2306 * not be expanded. To take as much space possible, set the weight to
2307 * EVAS_HINT_EXPAND (defined to 1.0) for the desired axis to expand.
2309 * Besides how much space each object is allocated, it's possible to control
2310 * how the widget will be placed within that space using
2311 * evas_object_size_hint_align_set(). By default, this value will be 0.5
2312 * for both axis, meaning the object will be centered, but any value from
2313 * 0.0 (left or top, for the @c x and @c y axis, respectively) to 1.0
2314 * (right or bottom) can be used. The special value EVAS_HINT_FILL, which
2315 * is -1.0, means the object will be resized to fill the entire space it
2318 * In addition, customized functions to define the layout can be set, which
2319 * allow the application developer to organize the objects within the box
2320 * in any number of ways.
2322 * The special elm_box_layout_transition() function can be used
2323 * to switch from one layout to another, animating the motion of the
2324 * children of the box.
2326 * @note Objects should not be added to box objects using _add() calls.
2328 * Some examples on how to use boxes follow:
2329 * @li @ref box_example_01
2330 * @li @ref box_example_02
2335 * @typedef Elm_Box_Transition
2337 * Opaque handler containing the parameters to perform an animated
2338 * transition of the layout the box uses.
2340 * @see elm_box_transition_new()
2341 * @see elm_box_layout_set()
2342 * @see elm_box_layout_transition()
2344 typedef struct _Elm_Box_Transition Elm_Box_Transition;
2347 * Add a new box to the parent
2349 * By default, the box will be in vertical mode and non-homogeneous.
2351 * @param parent The parent object
2352 * @return The new object or NULL if it cannot be created
2354 EAPI Evas_Object *elm_box_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
2356 * Set the horizontal orientation
2358 * By default, box object arranges their contents vertically from top to
2360 * By calling this function with @p horizontal as EINA_TRUE, the box will
2361 * become horizontal, arranging contents from left to right.
2363 * @note This flag is ignored if a custom layout function is set.
2365 * @param obj The box object
2366 * @param horizontal The horizontal flag (EINA_TRUE = horizontal,
2367 * EINA_FALSE = vertical)
2369 EAPI void elm_box_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
2371 * Get the horizontal orientation
2373 * @param obj The box object
2374 * @return EINA_TRUE if the box is set to horizintal mode, EINA_FALSE otherwise
2376 EAPI Eina_Bool elm_box_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2378 * Set the box to arrange its children homogeneously
2380 * If enabled, homogeneous layout makes all items the same size, according
2381 * to the size of the largest of its children.
2383 * @note This flag is ignored if a custom layout function is set.
2385 * @param obj The box object
2386 * @param homogeneous The homogeneous flag
2388 EAPI void elm_box_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
2390 * Get whether the box is using homogeneous mode or not
2392 * @param obj The box object
2393 * @return EINA_TRUE if it's homogeneous, EINA_FALSE otherwise
2395 EAPI Eina_Bool elm_box_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2396 EINA_DEPRECATED EAPI void elm_box_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
2397 EINA_DEPRECATED EAPI Eina_Bool elm_box_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2399 * Add an object to the beginning of the pack list
2401 * Pack @p subobj into the box @p obj, placing it first in the list of
2402 * children objects. The actual position the object will get on screen
2403 * depends on the layout used. If no custom layout is set, it will be at
2404 * the top or left, depending if the box is vertical or horizontal,
2407 * @param obj The box object
2408 * @param subobj The object to add to the box
2410 * @see elm_box_pack_end()
2411 * @see elm_box_pack_before()
2412 * @see elm_box_pack_after()
2413 * @see elm_box_unpack()
2414 * @see elm_box_unpack_all()
2415 * @see elm_box_clear()
2417 EAPI void elm_box_pack_start(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
2419 * Add an object at the end of the pack list
2421 * Pack @p subobj into the box @p obj, placing it last in the list of
2422 * children objects. The actual position the object will get on screen
2423 * depends on the layout used. If no custom layout is set, it will be at
2424 * the bottom or right, depending if the box is vertical or horizontal,
2427 * @param obj The box object
2428 * @param subobj The object to add to the box
2430 * @see elm_box_pack_start()
2431 * @see elm_box_pack_before()
2432 * @see elm_box_pack_after()
2433 * @see elm_box_unpack()
2434 * @see elm_box_unpack_all()
2435 * @see elm_box_clear()
2437 EAPI void elm_box_pack_end(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
2439 * Adds an object to the box before the indicated object
2441 * This will add the @p subobj to the box indicated before the object
2442 * indicated with @p before. If @p before is not already in the box, results
2443 * are undefined. Before means either to the left of the indicated object or
2444 * above it depending on orientation.
2446 * @param obj The box object
2447 * @param subobj The object to add to the box
2448 * @param before The object before which to add it
2450 * @see elm_box_pack_start()
2451 * @see elm_box_pack_end()
2452 * @see elm_box_pack_after()
2453 * @see elm_box_unpack()
2454 * @see elm_box_unpack_all()
2455 * @see elm_box_clear()
2457 EAPI void elm_box_pack_before(Evas_Object *obj, Evas_Object *subobj, Evas_Object *before) EINA_ARG_NONNULL(1);
2459 * Adds an object to the box after the indicated object
2461 * This will add the @p subobj to the box indicated after the object
2462 * indicated with @p after. If @p after is not already in the box, results
2463 * are undefined. After means either to the right of the indicated object or
2464 * below it depending on orientation.
2466 * @param obj The box object
2467 * @param subobj The object to add to the box
2468 * @param after The object after which to add it
2470 * @see elm_box_pack_start()
2471 * @see elm_box_pack_end()
2472 * @see elm_box_pack_before()
2473 * @see elm_box_unpack()
2474 * @see elm_box_unpack_all()
2475 * @see elm_box_clear()
2477 EAPI void elm_box_pack_after(Evas_Object *obj, Evas_Object *subobj, Evas_Object *after) EINA_ARG_NONNULL(1);
2479 * Clear the box of all children
2481 * Remove all the elements contained by the box, deleting the respective
2484 * @param obj The box object
2486 * @see elm_box_unpack()
2487 * @see elm_box_unpack_all()
2489 EAPI void elm_box_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
2493 * Remove the object given by @p subobj from the box @p obj without
2496 * @param obj The box object
2498 * @see elm_box_unpack_all()
2499 * @see elm_box_clear()
2501 EAPI void elm_box_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
2503 * Remove all items from the box, without deleting them
2505 * Clear the box from all children, but don't delete the respective objects.
2506 * If no other references of the box children exist, the objects will never
2507 * be deleted, and thus the application will leak the memory. Make sure
2508 * when using this function that you hold a reference to all the objects
2509 * in the box @p obj.
2511 * @param obj The box object
2513 * @see elm_box_clear()
2514 * @see elm_box_unpack()
2516 EAPI void elm_box_unpack_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
2518 * Retrieve a list of the objects packed into the box
2520 * Returns a new @c Eina_List with a pointer to @c Evas_Object in its nodes.
2521 * The order of the list corresponds to the packing order the box uses.
2523 * You must free this list with eina_list_free() once you are done with it.
2525 * @param obj The box object
2527 EAPI const Eina_List *elm_box_children_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2529 * Set the space (padding) between the box's elements.
2531 * Extra space in pixels that will be added between a box child and its
2532 * neighbors after its containing cell has been calculated. This padding
2533 * is set for all elements in the box, besides any possible padding that
2534 * individual elements may have through their size hints.
2536 * @param obj The box object
2537 * @param horizontal The horizontal space between elements
2538 * @param vertical The vertical space between elements
2540 EAPI void elm_box_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
2542 * Get the space (padding) between the box's elements.
2544 * @param obj The box object
2545 * @param horizontal The horizontal space between elements
2546 * @param vertical The vertical space between elements
2548 * @see elm_box_padding_set()
2550 EAPI void elm_box_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
2552 * Set the alignment of the whole bouding box of contents.
2554 * Sets how the bounding box containing all the elements of the box, after
2555 * their sizes and position has been calculated, will be aligned within
2556 * the space given for the whole box widget.
2558 * @param obj The box object
2559 * @param horizontal The horizontal alignment of elements
2560 * @param vertical The vertical alignment of elements
2562 EAPI void elm_box_align_set(Evas_Object *obj, double horizontal, double vertical) EINA_ARG_NONNULL(1);
2564 * Get the alignment of the whole bouding box of contents.
2566 * @param obj The box object
2567 * @param horizontal The horizontal alignment of elements
2568 * @param vertical The vertical alignment of elements
2570 * @see elm_box_align_set()
2572 EAPI void elm_box_align_get(const Evas_Object *obj, double *horizontal, double *vertical) EINA_ARG_NONNULL(1);
2575 * Set the layout defining function to be used by the box
2577 * Whenever anything changes that requires the box in @p obj to recalculate
2578 * the size and position of its elements, the function @p cb will be called
2579 * to determine what the layout of the children will be.
2581 * Once a custom function is set, everything about the children layout
2582 * is defined by it. The flags set by elm_box_horizontal_set() and
2583 * elm_box_homogeneous_set() no longer have any meaning, and the values
2584 * given by elm_box_padding_set() and elm_box_align_set() are up to this
2585 * layout function to decide if they are used and how. These last two
2586 * will be found in the @c priv parameter, of type @c Evas_Object_Box_Data,
2587 * passed to @p cb. The @c Evas_Object the function receives is not the
2588 * Elementary widget, but the internal Evas Box it uses, so none of the
2589 * functions described here can be used on it.
2591 * Any of the layout functions in @c Evas can be used here, as well as the
2592 * special elm_box_layout_transition().
2594 * The final @p data argument received by @p cb is the same @p data passed
2595 * here, and the @p free_data function will be called to free it
2596 * whenever the box is destroyed or another layout function is set.
2598 * Setting @p cb to NULL will revert back to the default layout function.
2600 * @param obj The box object
2601 * @param cb The callback function used for layout
2602 * @param data Data that will be passed to layout function
2603 * @param free_data Function called to free @p data
2605 * @see elm_box_layout_transition()
2607 EAPI void elm_box_layout_set(Evas_Object *obj, Evas_Object_Box_Layout cb, const void *data, void (*free_data)(void *data)) EINA_ARG_NONNULL(1);
2609 * Special layout function that animates the transition from one layout to another
2611 * Normally, when switching the layout function for a box, this will be
2612 * reflected immediately on screen on the next render, but it's also
2613 * possible to do this through an animated transition.
2615 * This is done by creating an ::Elm_Box_Transition and setting the box
2616 * layout to this function.
2620 * Elm_Box_Transition *t = elm_box_transition_new(1.0,
2621 * evas_object_box_layout_vertical, // start
2622 * NULL, // data for initial layout
2623 * NULL, // free function for initial data
2624 * evas_object_box_layout_horizontal, // end
2625 * NULL, // data for final layout
2626 * NULL, // free function for final data
2627 * anim_end, // will be called when animation ends
2628 * NULL); // data for anim_end function\
2629 * elm_box_layout_set(box, elm_box_layout_transition, t,
2630 * elm_box_transition_free);
2633 * @note This function can only be used with elm_box_layout_set(). Calling
2634 * it directly will not have the expected results.
2636 * @see elm_box_transition_new
2637 * @see elm_box_transition_free
2638 * @see elm_box_layout_set
2640 EAPI void elm_box_layout_transition(Evas_Object *obj, Evas_Object_Box_Data *priv, void *data);
2642 * Create a new ::Elm_Box_Transition to animate the switch of layouts
2644 * If you want to animate the change from one layout to another, you need
2645 * to set the layout function of the box to elm_box_layout_transition(),
2646 * passing as user data to it an instance of ::Elm_Box_Transition with the
2647 * necessary information to perform this animation. The free function to
2648 * set for the layout is elm_box_transition_free().
2650 * The parameters to create an ::Elm_Box_Transition sum up to how long
2651 * will it be, in seconds, a layout function to describe the initial point,
2652 * another for the final position of the children and one function to be
2653 * called when the whole animation ends. This last function is useful to
2654 * set the definitive layout for the box, usually the same as the end
2655 * layout for the animation, but could be used to start another transition.
2657 * @param start_layout The layout function that will be used to start the animation
2658 * @param start_layout_data The data to be passed the @p start_layout function
2659 * @param start_layout_free_data Function to free @p start_layout_data
2660 * @param end_layout The layout function that will be used to end the animation
2661 * @param end_layout_free_data The data to be passed the @p end_layout function
2662 * @param end_layout_free_data Function to free @p end_layout_data
2663 * @param transition_end_cb Callback function called when animation ends
2664 * @param transition_end_data Data to be passed to @p transition_end_cb
2665 * @return An instance of ::Elm_Box_Transition
2667 * @see elm_box_transition_new
2668 * @see elm_box_layout_transition
2670 EAPI Elm_Box_Transition *elm_box_transition_new(const double duration, Evas_Object_Box_Layout start_layout, void *start_layout_data, void(*start_layout_free_data)(void *data), Evas_Object_Box_Layout end_layout, void *end_layout_data, void(*end_layout_free_data)(void *data), void(*transition_end_cb)(void *data), void *transition_end_data) EINA_ARG_NONNULL(2, 5);
2672 * Free a Elm_Box_Transition instance created with elm_box_transition_new().
2674 * This function is mostly useful as the @c free_data parameter in
2675 * elm_box_layout_set() when elm_box_layout_transition().
2677 * @param data The Elm_Box_Transition instance to be freed.
2679 * @see elm_box_transition_new
2680 * @see elm_box_layout_transition
2682 EAPI void elm_box_transition_free(void *data);
2689 * @defgroup Button Button
2691 * @image html widget/button/preview-00.png
2692 * @image html widget/button/preview-01.png
2693 * @image html widget/button/preview-02.png
2695 * This is a push-button. Press it and run some function. It can contain
2696 * a simple label and icon object and it also has an autorepeat feature.
2698 * This widgets emits the following signals:
2699 * @li "clicked": the user clicked the button (press/release).
2700 * @li "repeated": the user pressed the button without releasing it.
2701 * @li "pressed": button was pressed.
2702 * @li "unpressed": button was released after being pressed.
2703 * In all three cases, the @c event parameter of the callback will be
2706 * Also, defined in the default theme, the button has the following styles
2708 * @li default: a normal button.
2709 * @li anchor: Like default, but the button fades away when the mouse is not
2710 * over it, leaving only the text or icon.
2711 * @li hoversel_vertical: Internally used by @ref Hoversel to give a
2712 * continuous look across its options.
2713 * @li hoversel_vertical_entry: Another internal for @ref Hoversel.
2715 * Follow through a complete example @ref button_example_01 "here".
2721 UIControlStateDefault,
2722 UIControlStateHighlighted,
2723 UIControlStateDisabled,
2724 UIControlStateFocused,
2725 UIControlStateReserved
2729 * Add a new button to the parent's canvas
2731 * @param parent The parent object
2732 * @return The new object or NULL if it cannot be created
2734 EAPI Evas_Object *elm_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
2736 * Set the label used in the button
2738 * The passed @p label can be NULL to clean any existing text in it and
2739 * leave the button as an icon only object.
2741 * @param obj The button object
2742 * @param label The text will be written on the button
2743 * @deprecated use elm_object_text_set() instead.
2745 EINA_DEPRECATED EAPI void elm_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
2747 * Get the label set for the button
2749 * The string returned is an internal pointer and should not be freed or
2750 * altered. It will also become invalid when the button is destroyed.
2751 * The string returned, if not NULL, is a stringshare, so if you need to
2752 * keep it around even after the button is destroyed, you can use
2753 * eina_stringshare_ref().
2755 * @param obj The button object
2756 * @return The text set to the label, or NULL if nothing is set
2757 * @deprecated use elm_object_text_set() instead.
2759 EINA_DEPRECATED EAPI const char *elm_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2761 * Set the label for each state of button
2763 * The passed @p label can be NULL to clean any existing text in it and
2764 * leave the button as an icon only object for the state.
2766 * @param obj The button object
2767 * @param label The text will be written on the button
2768 * @param state The state of button
2772 EINA_DEPRECATED EAPI void elm_button_label_set_for_state(Evas_Object *obj, const char *label, UIControlState state) EINA_ARG_NONNULL(1);
2774 * Get the label of button for each state
2776 * The string returned is an internal pointer and should not be freed or
2777 * altered. It will also become invalid when the button is destroyed.
2778 * The string returned, if not NULL, is a stringshare, so if you need to
2779 * keep it around even after the button is destroyed, you can use
2780 * eina_stringshare_ref().
2782 * @param obj The button object
2783 * @param state The state of button
2784 * @return The title of button for state
2788 EINA_DEPRECATED EAPI const char *elm_button_label_get_for_state(const Evas_Object *obj, UIControlState state) EINA_ARG_NONNULL(1);
2790 * Set the icon used for the button
2792 * Setting a new icon will delete any other that was previously set, making
2793 * any reference to them invalid. If you need to maintain the previous
2794 * object alive, unset it first with elm_button_icon_unset().
2796 * @param obj The button object
2797 * @param icon The icon object for the button
2799 EAPI void elm_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
2801 * Get the icon used for the button
2803 * Return the icon object which is set for this widget. If the button is
2804 * destroyed or another icon is set, the returned object will be deleted
2805 * and any reference to it will be invalid.
2807 * @param obj The button object
2808 * @return The icon object that is being used
2810 * @see elm_button_icon_unset()
2812 EAPI Evas_Object *elm_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2814 * Remove the icon set without deleting it and return the object
2816 * This function drops the reference the button holds of the icon object
2817 * and returns this last object. It is used in case you want to remove any
2818 * icon, or set another one, without deleting the actual object. The button
2819 * will be left without an icon set.
2821 * @param obj The button object
2822 * @return The icon object that was being used
2824 EAPI Evas_Object *elm_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
2826 * Turn on/off the autorepeat event generated when the button is kept pressed
2828 * When off, no autorepeat is performed and buttons emit a normal @c clicked
2829 * signal when they are clicked.
2831 * When on, keeping a button pressed will continuously emit a @c repeated
2832 * signal until the button is released. The time it takes until it starts
2833 * emitting the signal is given by
2834 * elm_button_autorepeat_initial_timeout_set(), and the time between each
2835 * new emission by elm_button_autorepeat_gap_timeout_set().
2837 * @param obj The button object
2838 * @param on A bool to turn on/off the event
2840 EAPI void elm_button_autorepeat_set(Evas_Object *obj, Eina_Bool on) EINA_ARG_NONNULL(1);
2842 * Get whether the autorepeat feature is enabled
2844 * @param obj The button object
2845 * @return EINA_TRUE if autorepeat is on, EINA_FALSE otherwise
2847 * @see elm_button_autorepeat_set()
2849 EAPI Eina_Bool elm_button_autorepeat_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2851 * Set the initial timeout before the autorepeat event is generated
2853 * Sets the timeout, in seconds, since the button is pressed until the
2854 * first @c repeated signal is emitted. If @p t is 0.0 or less, there
2855 * won't be any delay and the even will be fired the moment the button is
2858 * @param obj The button object
2859 * @param t Timeout in seconds
2861 * @see elm_button_autorepeat_set()
2862 * @see elm_button_autorepeat_gap_timeout_set()
2864 EAPI void elm_button_autorepeat_initial_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
2866 * Get the initial timeout before the autorepeat event is generated
2868 * @param obj The button object
2869 * @return Timeout in seconds
2871 * @see elm_button_autorepeat_initial_timeout_set()
2873 EAPI double elm_button_autorepeat_initial_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2875 * Set the interval between each generated autorepeat event
2877 * After the first @c repeated event is fired, all subsequent ones will
2878 * follow after a delay of @p t seconds for each.
2880 * @param obj The button object
2881 * @param t Interval in seconds
2883 * @see elm_button_autorepeat_initial_timeout_set()
2885 EAPI void elm_button_autorepeat_gap_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
2887 * Get the interval between each generated autorepeat event
2889 * @param obj The button object
2890 * @return Interval in seconds
2892 EAPI double elm_button_autorepeat_gap_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2898 EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
2899 EINA_DEPRECATED EAPI void elm_fileselector_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
2900 EINA_DEPRECATED EAPI const char *elm_fileselector_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2901 EAPI void elm_fileselector_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
2902 EAPI Evas_Object *elm_fileselector_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2903 EAPI Evas_Object *elm_fileselector_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
2904 EAPI void elm_fileselector_button_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
2905 EAPI const char *elm_fileselector_button_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2906 EAPI void elm_fileselector_button_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
2907 EAPI void elm_fileselector_button_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
2908 EAPI void elm_fileselector_button_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
2909 EAPI const char *elm_fileselector_button_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2910 EAPI void elm_fileselector_button_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
2911 EAPI Eina_Bool elm_fileselector_button_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2912 EAPI void elm_fileselector_button_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
2913 EAPI Eina_Bool elm_fileselector_button_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2914 EAPI void elm_fileselector_button_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
2915 EAPI Eina_Bool elm_fileselector_button_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2916 EAPI void elm_fileselector_button_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
2917 EAPI Eina_Bool elm_fileselector_button_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2918 /* available styles:
2922 * hoversel_vertical_entry
2924 /* smart callbacks called:
2925 * "file,chosen" - the user has selected a path, whose string pointer comes
2929 EAPI Evas_Object *elm_fileselector_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
2930 EINA_DEPRECATED EAPI void elm_fileselector_entry_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
2931 EINA_DEPRECATED EAPI const char *elm_fileselector_entry_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2932 EAPI void elm_fileselector_entry_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
2933 EAPI Evas_Object *elm_fileselector_entry_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2934 EAPI Evas_Object *elm_fileselector_entry_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
2935 EAPI void elm_fileselector_entry_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
2936 EAPI const char *elm_fileselector_entry_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2937 EAPI void elm_fileselector_entry_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
2938 EAPI void elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
2939 EAPI void elm_fileselector_entry_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
2940 EAPI const char *elm_fileselector_entry_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2941 EAPI void elm_fileselector_entry_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
2942 EAPI Eina_Bool elm_fileselector_entry_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2943 EAPI void elm_fileselector_entry_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
2944 EAPI Eina_Bool elm_fileselector_entry_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2945 EAPI void elm_fileselector_entry_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
2946 EAPI Eina_Bool elm_fileselector_entry_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2947 EAPI void elm_fileselector_entry_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
2948 EAPI Eina_Bool elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2949 EAPI void elm_fileselector_entry_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
2950 EAPI const char *elm_fileselector_entry_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2952 /* scroller policy */
2953 typedef enum _Elm_Scroller_Policy
2955 ELM_SCROLLER_POLICY_AUTO = 0,
2956 ELM_SCROLLER_POLICY_ON,
2957 ELM_SCROLLER_POLICY_OFF,
2958 ELM_SCROLLER_POLICY_LAST
2959 } Elm_Scroller_Policy;
2961 EAPI Evas_Object *elm_scroller_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
2962 EAPI void elm_scroller_content_set(Evas_Object *obj, Evas_Object *child) EINA_ARG_NONNULL(1);
2963 EAPI Evas_Object *elm_scroller_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2964 EAPI Evas_Object *elm_scroller_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
2965 EAPI void elm_scroller_custom_widget_base_theme_set(Evas_Object *obj, const char *widget, const char *base) EINA_ARG_NONNULL(1, 2, 3);
2966 EAPI void elm_scroller_content_min_limit(Evas_Object *obj, Eina_Bool w, Eina_Bool h) EINA_ARG_NONNULL(1);
2967 EAPI void elm_scroller_region_show(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
2968 EAPI void elm_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
2969 EAPI void elm_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
2970 EAPI void elm_scroller_region_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
2971 EAPI void elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
2972 EAPI void elm_scroller_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
2973 EAPI void elm_scroller_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
2974 EAPI void elm_scroller_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
2975 EAPI void elm_scroller_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
2976 EAPI void elm_scroller_region_bring_in(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
2977 EAPI void elm_scroller_propagate_events_set(Evas_Object *obj, Eina_Bool propagation);
2978 EAPI Eina_Bool elm_scroller_propagate_events_get(const Evas_Object *obj);
2979 EAPI void elm_scroller_gravity_set(Evas_Object *obj, double x, double y) EINA_ARG_NONNULL(1);
2980 EAPI void elm_scroller_gravity_get(const Evas_Object *obj, double *x, double *y) EINA_ARG_NONNULL(1);
2981 EINA_DEPRECATED EAPI void elm_scroller_page_move_set(Evas_Object *obj, Eina_Bool set);
2982 /* smart callbacks called:
2983 * "edge,left" - the left edge of the content has been reached
2984 * "edge,right" - the right edge of the content has been reached
2985 * "edge,top" - the top edge of the content has been reached
2986 * "edge,bottom" - the bottom edge of the content has been reached
2987 * "scroll" - the content has been scrolled (moved)
2988 * "scroll,anim,start" - scrolling animation has started
2989 * "scroll,anim,stop" - scrolling animation has stopped
2990 * "scroll,drag,start" - dragging the contents around has started
2991 * "scroll,drag,stop" - dragging the contents around has stopped
2995 EAPI Evas_Object *elm_label_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
2996 EINA_DEPRECATED EAPI void elm_label_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1); /* deprecated, use elm_object_text_set instead */
2997 EINA_DEPRECATED EAPI const char *elm_label_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); /* deprecated, use elm_object_text_get instead */
2998 EAPI void elm_label_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
2999 EAPI Elm_Wrap_Type elm_label_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3000 EAPI void elm_label_wrap_width_set(Evas_Object *obj, Evas_Coord w) EINA_ARG_NONNULL(1);
3001 EAPI Evas_Coord elm_label_wrap_width_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3002 EAPI void elm_label_wrap_height_set(Evas_Object *obj, Evas_Coord h) EINA_ARG_NONNULL(1);
3003 EAPI Evas_Coord elm_label_wrap_height_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3004 EAPI void elm_label_fontsize_set(Evas_Object *obj, int fontsize) EINA_ARG_NONNULL(1);
3005 EAPI void elm_label_text_color_set(Evas_Object *obj, unsigned int r, unsigned int g, unsigned int b, unsigned int a) EINA_ARG_NONNULL(1);
3006 EAPI void elm_label_text_align_set(Evas_Object *obj, const char *alignmode) EINA_ARG_NONNULL(1);
3007 EAPI void elm_label_background_color_set(Evas_Object *obj, unsigned int r, unsigned int g, unsigned int b, unsigned int a) EINA_ARG_NONNULL(1);
3008 EAPI void elm_label_ellipsis_set(Evas_Object *obj, Eina_Bool ellipsis) EINA_ARG_NONNULL(1);
3009 EINA_DEPRECATED EAPI void elm_label_wrap_mode_set(Evas_Object *obj, Eina_Bool wrapmode) EINA_ARG_NONNULL(1);
3010 EAPI void elm_label_slide_set(Evas_Object *obj, Eina_Bool slide) EINA_ARG_NONNULL(1);
3011 EAPI Eina_Bool elm_label_slide_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
3012 EAPI void elm_label_slide_duration_set(Evas_Object *obj, double duration) EINA_ARG_NONNULL(1);
3013 EAPI double elm_label_slide_duration_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
3014 /* available styles:
3018 /* smart callbacks called:
3022 EAPI Evas_Object *elm_toggle_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
3023 EINA_DEPRECATED EAPI void elm_toggle_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
3024 EINA_DEPRECATED EAPI const char *elm_toggle_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3025 EAPI void elm_toggle_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
3026 EAPI Evas_Object *elm_toggle_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3027 EAPI Evas_Object *elm_toggle_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
3028 EAPI void elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel) EINA_ARG_NONNULL(1);
3029 EAPI void elm_toggle_states_labels_get(const Evas_Object *obj, const char **onlabel, const char **offlabel) EINA_ARG_NONNULL(1);
3030 EAPI void elm_toggle_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
3031 EAPI Eina_Bool elm_toggle_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3032 EAPI void elm_toggle_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
3033 /* smart callbacks called:
3034 * "changed" - Whenever the toggle value has been changed. Is not called
3035 * until the toggle is released by the cursor (assuming it has been triggered
3036 * by the cursor in the first place).
3040 * @page tutorial_frame Frame example
3041 * @dontinclude frame_example_01.c
3043 * In this example we are going to create 4 Frames with different styles and
3044 * add a rectangle of different color in each.
3046 * We start we the usual setup code:
3049 * And then create one rectangle:
3052 * To add it in our first frame, which since it doesn't have it's style
3053 * specifically set uses the default style:
3056 * And then create another rectangle:
3059 * To add it in our second frame, which uses the "pad_small" style, note that
3060 * even tough we are setting a text for this frame it won't be show, only the
3061 * default style shows the Frame's title:
3063 * @note The "pad_small", "pad_medium", "pad_large" and "pad_huge" styles are
3064 * very similar, their only difference is the size of the empty area around
3065 * the content of the frame.
3067 * And then create yet another rectangle:
3070 * To add it in our third frame, which uses the "outdent_top" style, note
3071 * that even tough we are setting a text for this frame it won't be show,
3072 * only the default style shows the Frame's title:
3075 * And then create one last rectangle:
3078 * To add it in our fourth and final frame, which uses the "outdent_bottom"
3079 * style, note that even tough we are setting a text for this frame it won't
3080 * be show, only the default style shows the Frame's title:
3083 * And now we are left with just some more setup code:
3086 * Our example will look like this:
3087 * @image html screenshots/frame_example_01.png
3088 * @image latex screenshots/frame_example_01.eps
3090 * @example frame_example_01.c
3093 * @defgroup Frame Frame
3095 * @brief Frame is a widget that holds some content and has a title.
3097 * The default look is a frame with a title, but Frame supports multple
3105 * @li outdent_bottom
3107 * Of all this styles only default shows the title. Frame emits no signals.
3109 * For a detailed example see the @ref tutorial_frame.
3114 * @brief Add a new frame to the parent
3116 * @param parent The parent object
3117 * @return The new object or NULL if it cannot be created
3119 EAPI Evas_Object *elm_frame_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
3121 * @brief Set the frame label
3123 * @param obj The frame object
3124 * @param label The label of this frame object
3126 * @deprecated use elm_object_text_set() instead.
3128 EINA_DEPRECATED EAPI void elm_frame_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
3130 * @brief Get the frame label
3132 * @param obj The frame object
3134 * @return The label of this frame objet or NULL if unable to get frame
3136 * @deprecated use elm_object_text_get() instead.
3138 EINA_DEPRECATED EAPI const char *elm_frame_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3140 * @brief Set the content of the frame widget
3142 * Once the content object is set, a previously set one will be deleted.
3143 * If you want to keep that old content object, use the
3144 * elm_frame_content_unset() function.
3146 * @param obj The frame object
3147 * @param content The content will be filled in this frame object
3149 EAPI void elm_frame_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
3151 * @brief Get the content of the frame widget
3153 * Return the content object which is set for this widget
3155 * @param obj The frame object
3156 * @return The content that is being used
3158 EAPI Evas_Object *elm_frame_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3160 * @brief Unset the content of the frame widget
3162 * Unparent and return the content object which was set for this widget
3164 * @param obj The frame object
3165 * @return The content that was being used
3167 EAPI Evas_Object *elm_frame_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
3173 EAPI Evas_Object *elm_table_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
3174 EAPI void elm_table_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
3175 EAPI Eina_Bool elm_table_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3176 EINA_DEPRECATED EAPI void elm_table_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
3177 EINA_DEPRECATED EAPI Eina_Bool elm_table_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3178 EAPI void elm_table_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
3179 EAPI void elm_table_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
3180 EAPI void elm_table_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
3181 EAPI void elm_table_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
3182 EAPI void elm_table_clear(Evas_Object *obj, Eina_Bool clear) EINA_ARG_NONNULL(1);
3183 EAPI void elm_table_pack_set(Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
3184 EAPI void elm_table_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
3187 typedef struct _Elm_Gengrid_Item_Class Elm_Gengrid_Item_Class;
3188 typedef struct _Elm_Gengrid_Item_Class_Func Elm_Gengrid_Item_Class_Func;
3189 typedef struct _Elm_Gengrid_Item Elm_Gengrid_Item; /**< Item of Elm_Gengrid. Sub-type of Elm_Widget_Item */
3190 typedef char *(*GridItemLabelGetFunc) (void *data, Evas_Object *obj, const char *part);
3191 typedef Evas_Object *(*GridItemIconGetFunc) (void *data, Evas_Object *obj, const char *part);
3192 typedef Eina_Bool (*GridItemStateGetFunc) (void *data, Evas_Object *obj, const char *part);
3193 typedef void (*GridItemDelFunc) (void *data, Evas_Object *obj);
3195 struct _Elm_Gengrid_Item_Class
3197 const char *item_style;
3198 struct _Elm_Gengrid_Item_Class_Func
3200 GridItemLabelGetFunc label_get;
3201 GridItemIconGetFunc icon_get;
3202 GridItemStateGetFunc state_get;
3203 GridItemDelFunc del;
3207 EAPI Evas_Object *elm_gengrid_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
3208 EAPI void elm_gengrid_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
3209 EAPI void elm_gengrid_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
3210 EAPI void elm_gengrid_align_set(Evas_Object *obj, double align_x, double align_y) EINA_ARG_NONNULL(1);
3211 EAPI void elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y) EINA_ARG_NONNULL(1);
3213 EAPI void elm_gengrid_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
3214 EAPI Eina_Bool elm_gengrid_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3215 EAPI void elm_gengrid_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
3216 EAPI Eina_Bool elm_gengrid_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3217 EAPI void elm_gengrid_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
3218 EAPI Eina_Bool elm_gengrid_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3219 EAPI void elm_gengrid_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
3220 EAPI Eina_Bool elm_gengrid_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3221 EAPI void elm_gengrid_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
3222 EAPI void elm_gengrid_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
3223 EAPI void elm_gengrid_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
3224 EAPI void elm_gengrid_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel) EINA_ARG_NONNULL(1);
3225 EAPI void elm_gengrid_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
3226 EAPI void elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
3227 EAPI Eina_Bool elm_gengrid_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3229 EAPI Elm_Gengrid_Item *elm_gengrid_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3230 EAPI Elm_Gengrid_Item *elm_gengrid_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3232 EAPI Elm_Gengrid_Item *elm_gengrid_item_next_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
3233 EAPI Elm_Gengrid_Item *elm_gengrid_item_prev_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
3234 EAPI Evas_Object *elm_gengrid_item_gengrid_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
3235 EAPI void elm_gengrid_item_del(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
3236 EAPI void elm_gengrid_item_update(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
3237 EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
3238 EAPI void elm_gengrid_item_item_class_set(Elm_Gengrid_Item *item, const Elm_Gengrid_Item_Class *gic) EINA_ARG_NONNULL(1, 2);
3239 EAPI void *elm_gengrid_item_data_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
3240 EAPI void elm_gengrid_item_data_set(Elm_Gengrid_Item *item, const void *data) EINA_ARG_NONNULL(1);
3241 EAPI void elm_gengrid_item_pos_get(const Elm_Gengrid_Item *item, unsigned int *x, unsigned int *y) EINA_ARG_NONNULL(1);
3242 EAPI void elm_gengrid_item_selected_set(Elm_Gengrid_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
3243 EAPI Eina_Bool elm_gengrid_item_selected_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
3244 EAPI const Evas_Object *elm_gengrid_item_object_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
3245 EAPI void elm_gengrid_item_show(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
3246 EAPI void elm_gengrid_item_bring_in(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
3247 EAPI void elm_gengrid_item_disabled_set(Elm_Gengrid_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
3248 EAPI Eina_Bool elm_gengrid_item_disabled_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
3250 EAPI void elm_gengrid_item_tooltip_text_set(Elm_Gengrid_Item *item, const char *text) EINA_ARG_NONNULL(1);
3251 EAPI void elm_gengrid_item_tooltip_content_cb_set(Elm_Gengrid_Item *item, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
3252 EAPI void elm_gengrid_item_tooltip_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
3253 EAPI void elm_gengrid_item_tooltip_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
3254 EAPI const char *elm_gengrid_item_tooltip_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
3255 EAPI void elm_gengrid_item_cursor_set(Elm_Gengrid_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
3256 EAPI const char *elm_gengrid_item_cursor_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
3257 EAPI void elm_gengrid_item_cursor_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
3258 EAPI void elm_gengrid_item_cursor_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
3259 EAPI const char *elm_gengrid_item_cursor_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
3260 EAPI void elm_gengrid_item_cursor_engine_only_set(Elm_Gengrid_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
3261 EAPI Eina_Bool elm_gengrid_item_cursor_engine_only_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
3263 EAPI void elm_gengrid_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
3264 EAPI Elm_Gengrid_Item *elm_gengrid_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3265 EAPI const Eina_List *elm_gengrid_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3267 EAPI Elm_Gengrid_Item *elm_gengrid_item_append(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
3268 EAPI Elm_Gengrid_Item *elm_gengrid_item_prepend(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
3269 EAPI Elm_Gengrid_Item *elm_gengrid_item_insert_before(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Elm_Gengrid_Item *relative, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
3270 EAPI Elm_Gengrid_Item *elm_gengrid_item_insert_after(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Elm_Gengrid_Item *relative, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
3271 EAPI Elm_Gengrid_Item *elm_gengrid_item_sorted_insert(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
3272 EAPI Elm_Gengrid_Item *elm_gengrid_item_direct_sorted_insert(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data);
3273 /* smart callbacks called:
3275 * selected - User has selected an item.
3276 * unselected - User has unselected an item.
3277 * clicked,double - User has double-clicked or pressed enter on an item.
3278 * realized - An evas object for an item was built.
3279 * unrealized - An evas object for an item was deleted.
3280 * changed - An item has been added, removed, resized or moved,
3281 * or gengrid has been resized or horizontal property has been changed.
3282 * scroll - the content has been scrolled (moved).
3283 * "scroll,drag,start" - dragging the contents around has started.
3284 * "scroll,drag,stop" - dragging the contents around has stopped.
3285 * drag - Gengrid is being dragged.
3286 * "drag,start,up" - Gengrid has been dragged (not scrolled) up.
3287 * "drag,start,down" - Gengrid has been dragged (not scrolled) down.
3288 * "drag,start,left" - Gengrid has been dragged (not scrolled) left.
3289 * "drag,start,rigth" - Gengrid has been dragged (nto scrolled) right.
3290 * "drag,stop" - Gengrid is not being dragged.
3294 * @defgroup Clock Clock
3296 * This is a @b digital clock widget. In its default theme, it has a
3297 * vintage "flipping numbers clock" appearance, which will animate
3298 * sheets of individual algarisms individually as time goes by.
3300 * A newly created clock will fetch system's time (already
3301 * considering local time adjustments) to start with, and will tick
3302 * accondingly. It may or may not show seconds.
3304 * Clocks have an @b edition mode. When in it, the sheets will
3305 * display extra arrow indications on the top and bottom and the
3306 * user may click on them to raise or lower the time values. After
3307 * it's told to exit edition mode, it will keep ticking with that
3308 * new time set (it keeps the difference from local time).
3310 * Also, when under edition mode, user clicks on the cited arrows
3311 * which are @b held for some time will make the clock to flip the
3312 * sheet, thus editing the time, continuosly and automatically for
3313 * the user. The interval between sheet flips will keep growing in
3314 * time, so that it helps the user to reach a time which is distant
3317 * The time display is, by default, in military mode (24h), but an
3318 * am/pm indicator may be optionally shown, too, when it will
3321 * Smart callbacks one can register to:
3322 * - "changed" - the clock's user changed the time
3324 * Here is an example on its usage:
3325 * @li @ref clock_example
3334 * Identifiers for which clock digits should be editable, when a
3335 * clock widget is in edition mode. Values may be ORed together to
3336 * make a mask, naturally.
3338 * @see elm_clock_edit_set()
3339 * @see elm_clock_digit_edit_set()
3341 typedef enum _Elm_Clock_Digedit
3343 ELM_CLOCK_NONE = 0, /**< Default value. Means that all digits are editable, when in edition mode. */
3344 ELM_CLOCK_HOUR_DECIMAL = 1 << 0, /**< Decimal algarism of hours value should be editable */
3345 ELM_CLOCK_HOUR_UNIT = 1 << 1, /**< Unit algarism of hours value should be editable */
3346 ELM_CLOCK_MIN_DECIMAL = 1 << 2, /**< Decimal algarism of minutes value should be editable */
3347 ELM_CLOCK_MIN_UNIT = 1 << 3, /**< Unit algarism of minutes value should be editable */
3348 ELM_CLOCK_SEC_DECIMAL = 1 << 4, /**< Decimal algarism of seconds value should be editable */
3349 ELM_CLOCK_SEC_UNIT = 1 << 5, /**< Unit algarism of seconds value should be editable */
3350 ELM_CLOCK_ALL = (1 << 6) - 1 /**< All digits should be editable */
3351 } Elm_Clock_Digedit;
3354 * Add a new clock widget to the given parent Elementary
3355 * (container) object
3357 * @param parent The parent object
3358 * @return a new clock widget handle or @c NULL, on errors
3360 * This function inserts a new clock widget on the canvas.
3364 EAPI Evas_Object *elm_clock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
3367 * Set a clock widget's time, programmatically
3369 * @param obj The clock widget object
3370 * @param hrs The hours to set
3371 * @param min The minutes to set
3372 * @param sec The secondes to set
3374 * This function updates the time that is showed by the clock
3377 * Values @b must be set within the following ranges:
3378 * - 0 - 23, for hours
3379 * - 0 - 59, for minutes
3380 * - 0 - 59, for seconds,
3382 * even if the clock is not in "military" mode.
3384 * @warning The behavior for values set out of those ranges is @b
3389 EAPI void elm_clock_time_set(Evas_Object *obj, int hrs, int min, int sec) EINA_ARG_NONNULL(1);
3392 * Get a clock widget's time values
3394 * @param obj The clock object
3395 * @param[out] hrs Pointer to the variable to get the hours value
3396 * @param[out] min Pointer to the variable to get the minutes value
3397 * @param[out] sec Pointer to the variable to get the seconds value
3399 * This function gets the time set for @p obj, returning
3400 * it on the variables passed as the arguments to function
3402 * @note Use @c NULL pointers on the time values you're not
3403 * interested in: they'll be ignored by the function.
3407 EAPI void elm_clock_time_get(const Evas_Object *obj, int *hrs, int *min, int *sec) EINA_ARG_NONNULL(1);
3410 * Set whether a given clock widget is under <b>edition mode</b> or
3411 * under (default) displaying-only mode.
3413 * @param obj The clock object
3414 * @param edit @c EINA_TRUE to put it in edition, @c EINA_FALSE to
3415 * put it back to "displaying only" mode
3417 * This function makes a clock's time to be editable or not <b>by
3418 * user interaction</b>. When in edition mode, clocks @b stop
3419 * ticking, until one brings them back to canonical mode. The
3420 * elm_clock_digit_edit_set() function will influence which digits
3421 * of the clock will be editable. By default, all of them will be
3422 * (#ELM_CLOCK_NONE).
3424 * @note am/pm sheets, if being shown, will @b always be editable
3425 * under edition mode.
3427 * @see elm_clock_edit_get()
3431 EAPI void elm_clock_edit_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
3434 * Retrieve whether a given clock widget is under <b>edition
3435 * mode</b> or under (default) displaying-only mode.
3437 * @param obj The clock object
3438 * @param edit @c EINA_TRUE, if it's in edition mode, @c EINA_FALSE
3441 * This function retrieves whether the clock's time can be edited
3442 * or not by user interaction.
3444 * @see elm_clock_edit_set() for more details
3448 EAPI Eina_Bool elm_clock_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3451 * Set what digits of the given clock widget should be editable
3452 * when in edition mode.
3454 * @param obj The clock object
3455 * @param digedit Bit mask indicating the digits to be editable
3456 * (values in #Elm_Clock_Digedit).
3458 * If the @p digedit param is #ELM_CLOCK_NONE, editing will be
3459 * disabled on @p obj (same effect as elm_clock_edit_set(), with @c
3462 * @see elm_clock_digit_edit_get()
3466 EAPI void elm_clock_digit_edit_set(Evas_Object *obj, Elm_Clock_Digedit digedit) EINA_ARG_NONNULL(1);
3469 * Retrieve what digits of the given clock widget should be
3470 * editable when in edition mode.
3472 * @param obj The clock object
3473 * @return Bit mask indicating the digits to be editable
3474 * (values in #Elm_Clock_Digedit).
3476 * @see elm_clock_digit_edit_set() for more details
3480 EAPI Elm_Clock_Digedit elm_clock_digit_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3483 * Set if the given clock widget must show hours in military or
3486 * @param obj The clock object
3487 * @param am_pm @c EINA_TRUE to put it in am/pm mode, @c EINA_FALSE
3490 * This function sets if the clock must show hours in military or
3491 * am/pm mode. In some countries like Brazil the military mode
3492 * (00-24h-format) is used, in opposition to the USA, where the
3493 * am/pm mode is more commonly used.
3495 * @see elm_clock_show_am_pm_get()
3499 EAPI void elm_clock_show_am_pm_set(Evas_Object *obj, Eina_Bool am_pm) EINA_ARG_NONNULL(1);
3502 * Get if the given clock widget shows hours in military or am/pm
3505 * @param obj The clock object
3506 * @return @c EINA_TRUE, if in am/pm mode, @c EINA_FALSE if in
3509 * This function gets if the clock shows hours in military or am/pm
3512 * @see elm_clock_show_am_pm_set() for more details
3516 EAPI Eina_Bool elm_clock_show_am_pm_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3519 * Set if the given clock widget must show time with seconds or not
3521 * @param obj The clock object
3522 * @param seconds @c EINA_TRUE to show seconds, @c EINA_FALSE otherwise
3524 * This function sets if the given clock must show or not elapsed
3525 * seconds. By default, they are @b not shown.
3527 * @see elm_clock_show_seconds_get()
3531 EAPI void elm_clock_show_seconds_set(Evas_Object *obj, Eina_Bool seconds) EINA_ARG_NONNULL(1);
3534 * Get whether the given clock widget is showing time with seconds
3537 * @param obj The clock object
3538 * @return @c EINA_TRUE if it's showing seconds, @c EINA_FALSE otherwise
3540 * This function gets whether @p obj is showing or not the elapsed
3543 * @see elm_clock_show_seconds_set()
3547 EAPI Eina_Bool elm_clock_show_seconds_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3550 * Set the interval on time updates for an user mouse button hold
3551 * on clock widgets' time edition.
3553 * @param obj The clock object
3554 * @param interval The (first) interval value in seconds
3556 * This interval value is @b decreased while the user holds the
3557 * mouse pointer either incrementing or decrementing a given the
3558 * clock digit's value.
3560 * This helps the user to get to a given time distant from the
3561 * current one easier/faster, as it will start to flip quicker and
3562 * quicker on mouse button holds.
3564 * The calculation for the next flip interval value, starting from
3565 * the one set with this call, is the previous interval divided by
3566 * 1.05, so it decreases a little bit.
3568 * The default starting interval value for automatic flips is
3571 * @see elm_clock_interval_get()
3575 EAPI void elm_clock_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
3578 * Get the interval on time updates for an user mouse button hold
3579 * on clock widgets' time edition.
3581 * @param obj The clock object
3582 * @return The (first) interval value, in seconds, set on it
3584 * @see elm_clock_interval_set() for more details
3588 EAPI double elm_clock_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3595 EAPI Evas_Object *elm_layout_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
3596 EAPI Eina_Bool elm_layout_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
3597 EAPI Eina_Bool elm_layout_theme_set(Evas_Object *obj, const char *clas, const char *group, const char *style) EINA_ARG_NONNULL(1);
3598 EAPI void elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
3599 EAPI Evas_Object *elm_layout_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
3600 EAPI Evas_Object *elm_layout_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
3601 EINA_DEPRECATED EAPI void elm_layout_text_set(Evas_Object *obj, const char *part, const char *text) EINA_ARG_NONNULL(1);
3602 EINA_DEPRECATED EAPI const char *elm_layout_text_get(const Evas_Object *obj, const char *part) EINA_ARG_NONNULL(1);
3603 EAPI void elm_layout_box_append(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
3604 EAPI void elm_layout_box_prepend(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
3605 EAPI void elm_layout_box_insert_before(Evas_Object *obj, const char *part, Evas_Object *child, const Evas_Object *reference) EINA_ARG_NONNULL(1);
3606 EAPI void elm_layout_box_insert_at(Evas_Object *obj, const char *part, Evas_Object *child, unsigned int pos) EINA_ARG_NONNULL(1);
3607 EAPI Evas_Object *elm_layout_box_remove(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1, 2, 3);
3608 EAPI void elm_layout_box_remove_all(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
3609 EAPI void elm_layout_table_pack(Evas_Object *obj, const char *part, Evas_Object *child_obj, unsigned short col, unsigned short row, unsigned short colspan, unsigned short rowspan) EINA_ARG_NONNULL(1);
3610 EAPI Evas_Object *elm_layout_table_unpack(Evas_Object *obj, const char *part, Evas_Object *child_obj) EINA_ARG_NONNULL(1, 2, 3);
3611 EAPI void elm_layout_table_clear(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
3612 EAPI Evas_Object *elm_layout_edje_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3613 EAPI const char *elm_layout_data_get(const Evas_Object *obj, const char *key) EINA_ARG_NONNULL(1, 2);
3614 EAPI void elm_layout_sizing_eval(Evas_Object *obj) EINA_ARG_NONNULL(1);
3615 EAPI Eina_Bool elm_layout_part_cursor_set(Evas_Object *obj, const char *part_name, const char *cursor) EINA_ARG_NONNULL(1, 2);
3616 EAPI const char *elm_layout_part_cursor_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
3617 EAPI void elm_layout_part_cursor_unset(Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
3618 EAPI Eina_Bool elm_layout_part_cursor_style_set(Evas_Object *obj, const char *part_name, const char *style) EINA_ARG_NONNULL(1, 2);
3619 EAPI const char *elm_layout_part_cursor_style_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
3620 EAPI Eina_Bool elm_layout_part_cursor_engine_only_set(Evas_Object *obj, const char *part_name, Eina_Bool engine_only) EINA_ARG_NONNULL(1, 2);
3621 EAPI Eina_Bool elm_layout_part_cursor_engine_only_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
3623 * @def elm_layout_icon_set
3624 * Convienience macro to set the icon object in a layout that follows the
3625 * Elementary naming convention for its parts.
3629 #define elm_layout_icon_set(_ly, _obj) \
3632 elm_layout_content_set((_ly), "elm.swallow.icon", (_obj)); \
3633 if ((_obj)) sig = "elm,state,icon,visible"; \
3634 else sig = "elm,state,icon,hidden"; \
3635 elm_object_signal_emit((_ly), sig, "elm"); \
3639 * @def elm_layout_icon_get
3640 * Convienience macro to get the icon object from a layout that follows the
3641 * Elementary naming convention for its parts.
3645 #define elm_layout_icon_get(_ly) \
3646 elm_layout_content_get((_ly), "elm.swallow.icon")
3649 * @def elm_layout_end_set
3650 * Convienience macro to set the end object in a layout that follows the
3651 * Elementary naming convention for its parts.
3655 #define elm_layout_end_set(_ly, _obj) \
3658 elm_layout_content_set((_ly), "elm.swallow.end", (_obj)); \
3659 if ((_obj)) sig = "elm,state,end,visible"; \
3660 else sig = "elm,state,end,hidden"; \
3661 elm_object_signal_emit((_ly), sig, "elm"); \
3665 * @def elm_layout_end_get
3666 * Convienience macro to get the end object in a layout that follows the
3667 * Elementary naming convention for its parts.
3671 #define elm_layout_end_get(_ly) \
3672 elm_layout_content_get((_ly), "elm.swallow.end")
3675 * @def elm_layout_label_set
3676 * Convienience macro to set the label in a layout that follows the
3677 * Elementary naming convention for its parts.
3680 * @deprecate use elm_object_text_* instead.
3682 #define elm_layout_label_set(_ly, _txt) \
3683 elm_layout_text_set((_ly), "elm.text", (_txt))
3686 * @def elm_layout_label_get
3687 * Convienience macro to get the label in a layout that follows the
3688 * Elementary naming convention for its parts.
3691 * @deprecate use elm_object_text_* instead.
3693 #define elm_layout_label_get(_ly) \
3694 elm_layout_text_get((_ly), "elm.text")
3696 /* smart callbacks called:
3700 typedef enum _Elm_Notify_Orient
3702 ELM_NOTIFY_ORIENT_TOP,
3703 ELM_NOTIFY_ORIENT_CENTER,
3704 ELM_NOTIFY_ORIENT_BOTTOM,
3705 ELM_NOTIFY_ORIENT_LEFT,
3706 ELM_NOTIFY_ORIENT_RIGHT,
3707 ELM_NOTIFY_ORIENT_TOP_LEFT,
3708 ELM_NOTIFY_ORIENT_TOP_RIGHT,
3709 ELM_NOTIFY_ORIENT_BOTTOM_LEFT,
3710 ELM_NOTIFY_ORIENT_BOTTOM_RIGHT,
3711 ELM_NOTIFY_ORIENT_LAST
3712 } Elm_Notify_Orient;
3713 EAPI Evas_Object *elm_notify_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
3714 EAPI void elm_notify_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
3715 EAPI Evas_Object *elm_notify_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
3716 EAPI Evas_Object *elm_notify_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3717 EAPI void elm_notify_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
3718 EAPI Evas_Object *elm_notify_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3719 EAPI void elm_notify_orient_set(Evas_Object *obj, Elm_Notify_Orient orient) EINA_ARG_NONNULL(1);
3720 EAPI Elm_Notify_Orient elm_notify_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3721 EAPI void elm_notify_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
3722 EAPI double elm_notify_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3723 EAPI void elm_notify_repeat_events_set(Evas_Object *obj, Eina_Bool repeat) EINA_ARG_NONNULL(1);
3724 EAPI Eina_Bool elm_notify_repeat_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3725 /* smart callbacks called:
3726 * "timeout" - when timeout happens on notify and it's hidden
3727 * "block,clicked" - when it's hidden by a click outside of the notify's view
3731 typedef enum _Elm_Hover_Axis
3733 ELM_HOVER_AXIS_NONE,
3734 ELM_HOVER_AXIS_HORIZONTAL,
3735 ELM_HOVER_AXIS_VERTICAL,
3738 EAPI Evas_Object *elm_hover_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
3739 EAPI void elm_hover_target_set(Evas_Object *obj, Evas_Object *target) EINA_ARG_NONNULL(1);
3740 EAPI Evas_Object *elm_hover_target_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3741 EAPI void elm_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
3742 EAPI Evas_Object *elm_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3743 EAPI void elm_hover_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
3744 EAPI Evas_Object *elm_hover_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
3745 EAPI Evas_Object *elm_hover_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
3746 EAPI const char *elm_hover_best_content_location_get(const Evas_Object *obj, Elm_Hover_Axis pref_axis) EINA_ARG_NONNULL(1);
3747 /* available styles:
3753 /* smart callbacks called:
3754 * "clicked" - the user clicked the empty space in the hover to dismiss
3755 * "smart,changed" - a content object placed under the "smart"
3756 * policy was replaced to a new slot direction.
3760 typedef struct _Elm_Entry_Anchor_Info Elm_Entry_Anchor_Info;
3761 struct _Elm_Entry_Anchor_Info
3765 Evas_Coord x, y, w, h;
3767 typedef enum _Elm_Icon_Type
3774 typedef enum _Elm_Input_Panel_Layout
3776 ELM_INPUT_PANEL_LAYOUT_NORMAL, /**< Default 4x4 layout */
3777 ELM_INPUT_PANEL_LAYOUT_NUMBER, /**< Number layout */
3778 ELM_INPUT_PANEL_LAYOUT_EMAIL, /**< Email layout */
3779 ELM_INPUT_PANEL_LAYOUT_URL, /**< URL layout */
3780 ELM_INPUT_PANEL_LAYOUT_PHONENUMBER, /**< Phone Number layout */
3781 ELM_INPUT_PANEL_LAYOUT_IP, /**< IP layout */
3782 ELM_INPUT_PANEL_LAYOUT_MONTH, /**< Month layout */
3783 ELM_INPUT_PANEL_LAYOUT_NUMBERONLY, /**< Number Only layout */
3784 ELM_INPUT_PANEL_LAYOUT_CUSTOM_1 = 100, /* Reserved for future use */
3785 ELM_INPUT_PANEL_LAYOUT_CUSTOM_2,
3786 ELM_INPUT_PANEL_LAYOUT_CUSTOM_3,
3787 ELM_INPUT_PANEL_LAYOUT_CUSTOM_4,
3788 ELM_INPUT_PANEL_LAYOUT_CUSTOM_5,
3789 ELM_INPUT_PANEL_LAYOUT_CUSTOM_6,
3790 ELM_INPUT_PANEL_LAYOUT_CUSTOM_7,
3791 ELM_INPUT_PANEL_LAYOUT_CUSTOM_8,
3792 ELM_INPUT_PANEL_LAYOUT_CUSTOM_9,
3793 ELM_INPUT_PANEL_LAYOUT_CUSTOM_10
3794 } Elm_Input_Panel_Layout;
3796 typedef struct _Elm_Hoversel_Item Elm_Hoversel_Item; /**< Item of Elm_Hoversel. Sub-type of Elm_Widget_Item */
3798 EAPI Evas_Object *elm_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
3799 EAPI void elm_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
3800 EAPI Eina_Bool elm_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3801 EAPI void elm_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
3802 EAPI Eina_Bool elm_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3803 EAPI void elm_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
3804 EAPI const char *elm_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3805 EAPI void elm_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
3806 EAPI Eina_Bool elm_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3807 EAPI const char *elm_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3808 EAPI void elm_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
3809 EAPI void elm_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
3810 EINA_DEPRECATED EAPI void elm_entry_line_char_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
3811 EAPI Elm_Wrap_Type elm_entry_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3812 EAPI void elm_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
3813 EAPI Eina_Bool elm_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3814 EAPI void elm_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
3815 EAPI void elm_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
3816 EAPI Eina_Bool elm_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
3817 EAPI Eina_Bool elm_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
3818 EAPI Eina_Bool elm_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
3819 EAPI Eina_Bool elm_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
3820 EAPI void elm_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
3821 EAPI void elm_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
3822 EAPI void elm_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
3823 EAPI void elm_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
3824 EAPI void elm_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
3825 EAPI void elm_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
3826 EAPI Eina_Bool elm_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3827 EAPI Eina_Bool elm_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3828 EAPI const char *elm_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3829 EAPI Eina_Bool elm_entry_cursor_geometry_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
3830 EAPI void elm_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
3831 EAPI int elm_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3832 EAPI void elm_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
3833 EAPI void elm_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
3834 EAPI void elm_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
3835 EAPI void elm_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
3836 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) EINA_ARG_NONNULL(1);
3837 EAPI void elm_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
3838 EAPI Eina_Bool elm_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3839 EAPI void elm_entry_item_provider_append(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *entry, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
3840 EAPI void elm_entry_item_provider_prepend(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *entry, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
3841 EAPI void elm_entry_item_provider_remove(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *entry, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
3842 EAPI void elm_entry_text_filter_append(Evas_Object *obj, void (*func) (void *data, Evas_Object *entry, char **text), void *data) EINA_ARG_NONNULL(1, 2);
3843 EAPI void elm_entry_text_filter_prepend(Evas_Object *obj, void (*func) (void *data, Evas_Object *entry, char **text), void *data) EINA_ARG_NONNULL(1, 2);
3844 EAPI void elm_entry_text_filter_remove(Evas_Object *obj, void (*func) (void *data, Evas_Object *entry, char **text), void *data) EINA_ARG_NONNULL(1, 2);
3845 EAPI char *elm_entry_markup_to_utf8(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
3846 EAPI char *elm_entry_utf8_to_markup(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
3847 EAPI void elm_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
3848 EAPI void elm_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
3849 EAPI void elm_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
3850 EAPI void elm_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
3851 EAPI Eina_Bool elm_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3852 EAPI void elm_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
3853 EAPI Eina_Bool elm_entry_cnp_textonly_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3854 EAPI void elm_entry_scrollable_set(Evas_Object *obj, Eina_Bool scroll);
3855 EAPI Eina_Bool elm_entry_scrollable_get(const Evas_Object *obj);
3856 EAPI void elm_entry_icon_set(Evas_Object *obj, Evas_Object *icon);
3857 EAPI Evas_Object *elm_entry_icon_get(const Evas_Object *obj);
3858 EAPI Evas_Object *elm_entry_icon_unset(Evas_Object *obj);
3859 EAPI void elm_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting);
3860 EAPI void elm_entry_end_set(Evas_Object *obj, Evas_Object *end);
3861 EAPI Evas_Object *elm_entry_end_get(const Evas_Object *obj);
3862 EAPI Evas_Object *elm_entry_end_unset(Evas_Object *obj);
3863 EAPI void elm_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting);
3864 EAPI void elm_entry_scrollbar_policy_set(Evas_Object *obj, Elm_Scroller_Policy h, Elm_Scroller_Policy v);
3865 EAPI void elm_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
3866 EAPI void elm_entry_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
3868 /* pre-made filters for entries */
3869 typedef struct _Elm_Entry_Filter_Limit_Size Elm_Entry_Filter_Limit_Size;
3870 struct _Elm_Entry_Filter_Limit_Size
3875 EAPI void elm_entry_filter_limit_size(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 2, 3);
3876 typedef struct _Elm_Entry_Filter_Accept_Set Elm_Entry_Filter_Accept_Set;
3877 struct _Elm_Entry_Filter_Accept_Set
3879 const char *accepted;
3880 const char *rejected;
3882 EAPI void elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 3);
3883 EAPI void elm_entry_background_color_set(Evas_Object *obj, unsigned int r, unsigned int g, unsigned int b, unsigned int a);
3884 EAPI void elm_entry_autocapitalization_set(Evas_Object *obj, Eina_Bool autocap);
3885 EAPI void elm_entry_autoperiod_set(Evas_Object *obj, Eina_Bool autoperiod);
3886 EAPI void elm_entry_autoenable_returnkey_set(Evas_Object *obj, Eina_Bool on);
3887 EAPI void elm_entry_input_panel_enabled_set(Evas_Object *obj, Eina_Bool enabled);
3888 EAPI void elm_entry_input_panel_layout_set(Evas_Object *obj, Elm_Input_Panel_Layout layout);
3889 EAPI Ecore_IMF_Context *elm_entry_imf_context_get(Evas_Object *obj);
3890 EAPI void elm_entry_matchlist_set(Evas_Object *obj, Eina_List *match_list, Eina_Bool case_sensitive);
3891 EAPI void elm_entry_magnifier_type_set(Evas_Object *obj, int type) EINA_ARG_NONNULL(1);
3893 EINA_DEPRECATED EAPI void elm_entry_wrap_width_set(Evas_Object *obj, Evas_Coord w);
3894 EINA_DEPRECATED EAPI Evas_Coord elm_entry_wrap_width_get(const Evas_Object *obj);
3895 EINA_DEPRECATED EAPI void elm_entry_fontsize_set(Evas_Object *obj, int fontsize);
3896 EINA_DEPRECATED EAPI void elm_entry_text_color_set(Evas_Object *obj, unsigned int r, unsigned int g, unsigned int b, unsigned int a);
3897 EINA_DEPRECATED EAPI void elm_entry_text_align_set(Evas_Object *obj, const char *alignmode);
3899 /* smart callbacks called:
3900 * "changed" - the text content changed
3901 * "selection,start" - the user started selecting text
3902 * "selection,changed" - the user modified the selection size/location
3903 * "selection,cleared" - the user cleared the selection
3904 * "selection,paste" - the user requested a paste of text
3905 * "selection,copy" - the user copied the text
3906 * "selection,cut" - the user cut the text
3907 * "cursor,changed" - the cursor changed position
3908 * "anchor,clicked" - achor called was clicked | event_info = Elm_Entry_Anchor_Info
3909 * "activated" - when the enter key is pressed (useful for single line)
3910 * "press" - when finger/mouse is pressed down
3911 * "clicked" - when finger/mouse is pressed and released (without a drag etc.)
3912 * "clicked,double" - when finger/mouse is double-pressed
3913 * "longpressed" - the entry has been longpressed
3914 * "focused" - the entry has received keyboard focus
3915 * "unfocused" - keyboard focus is gone
3918 /* composite widgets - these basically put together basic widgets above
3919 * in convenient packages that do more than basic stuff */
3923 * @defgroup Anchorview Anchorview
3925 * Anchorview is for displaying text that contains markup with anchors
3926 * like <c>\<a href=1234\>something\</\></c> in it.
3928 * Besides being styled differently, the anchorview widget provides the
3929 * necessary functionality so that clicking on these anchors brings up a
3930 * popup with user defined content such as "call", "add to contacts" or
3931 * "open web page". This popup is provided using the @ref Hover widget.
3933 * This widget is very similar to @ref Anchorblock, so refer to that
3934 * widget for an example. The only difference Anchorview has is that the
3935 * widget is already provided with scrolling functionality, so if the
3936 * text set to it is too large to fit in the given space, it will scroll,
3937 * whereas the @ref Anchorblock widget will keep growing to ensure all the
3938 * text can be displayed.
3940 * This widget emits the following signals:
3941 * @li "anchor,clicked": will be called when an anchor is clicked. The
3942 * @p event_info parameter on the callback will be a pointer of type
3943 * ::Elm_Entry_Anchorview_Info.
3945 * See @ref Anchorblock for an example on how to use both of them.
3954 * @typedef Elm_Entry_Anchorview_Info
3956 * The info sent in the callback for "anchor,clicked" signals emitted by
3957 * the Anchorview widget.
3959 typedef struct _Elm_Entry_Anchorview_Info Elm_Entry_Anchorview_Info;
3961 * @struct _Elm_Entry_Anchorview_Info
3963 * The info sent in the callback for "anchor,clicked" signals emitted by
3964 * the Anchorview widget.
3966 struct _Elm_Entry_Anchorview_Info
3968 const char *name; /**< Name of the anchor, as indicated in its href
3970 int button; /**< The mouse button used to click on it */
3971 Evas_Object *hover; /**< The hover object to use for the popup */
3973 Evas_Coord x, y, w, h;
3974 } anchor, /**< Geometry selection of text used as anchor */
3975 hover_parent; /**< Geometry of the object used as parent by the
3977 Eina_Bool hover_left : 1; /**< Hint indicating if there's space
3978 for content on the left side of
3979 the hover. Before calling the
3980 callback, the widget will make the
3981 necessary calculations to check
3982 which sides are fit to be set with
3983 content, based on the position the
3984 hover is activated and its distance
3985 to the edges of its parent object
3987 Eina_Bool hover_right : 1; /**< Hint indicating content fits on
3988 the right side of the hover.
3989 See @ref hover_left */
3990 Eina_Bool hover_top : 1; /**< Hint indicating content fits on top
3991 of the hover. See @ref hover_left */
3992 Eina_Bool hover_bottom : 1; /**< Hint indicating content fits
3993 below the hover. See @ref
3997 * Add a new Anchorview object
3999 * @param parent The parent object
4000 * @return The new object or NULL if it cannot be created
4002 EAPI Evas_Object *elm_anchorview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4004 * Set the text to show in the anchorview
4006 * Sets the text of the anchorview to @p text. This text can include markup
4007 * format tags, including <c>\<a href=anchorname\></c> to begin a segment of
4008 * text that will be specially styled and react to click events, ended with
4009 * either of \</a\> or \</\>. When clicked, the anchor will emit an
4010 * "anchor,clicked" signal that you can attach a callback to with
4011 * evas_object_smart_callback_add(). The name of the anchor given in the
4012 * event info struct will be the one set in the href attribute, in this
4015 * Other markup can be used to style the text in different ways, but it's
4016 * up to the style defined in the theme which tags do what.
4017 * @deprecated use elm_object_text_set() instead.
4019 EINA_DEPRECATED EAPI void elm_anchorview_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
4021 * Get the markup text set for the anchorview
4023 * Retrieves the text set on the anchorview, with markup tags included.
4025 * @param obj The anchorview object
4026 * @return The markup text set or @c NULL if nothing was set or an error
4028 * @deprecated use elm_object_text_set() instead.
4030 EINA_DEPRECATED EAPI const char *elm_anchorview_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4032 * Set the parent of the hover popup
4034 * Sets the parent object to use by the hover created by the anchorview
4035 * when an anchor is clicked. See @ref Hover for more details on this.
4036 * If no parent is set, the same anchorview object will be used.
4038 * @param obj The anchorview object
4039 * @param parent The object to use as parent for the hover
4041 EAPI void elm_anchorview_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
4043 * Get the parent of the hover popup
4045 * Get the object used as parent for the hover created by the anchorview
4046 * widget. See @ref Hover for more details on this.
4048 * @param obj The anchorview object
4049 * @return The object used as parent for the hover, NULL if none is set.
4051 EAPI Evas_Object *elm_anchorview_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4053 * Set the style that the hover should use
4055 * When creating the popup hover, anchorview will request that it's
4056 * themed according to @p style.
4058 * @param obj The anchorview object
4059 * @param style The style to use for the underlying hover
4061 * @see elm_object_style_set()
4063 EAPI void elm_anchorview_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
4065 * Get the style that the hover should use
4067 * Get the style the hover created by anchorview will use.
4069 * @param obj The anchorview object
4070 * @return The style to use by the hover. NULL means the default is used.
4072 * @see elm_object_style_set()
4074 EAPI const char *elm_anchorview_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4076 * Ends the hover popup in the anchorview
4078 * When an anchor is clicked, the anchorview widget will create a hover
4079 * object to use as a popup with user provided content. This function
4080 * terminates this popup, returning the anchorview to its normal state.
4082 * @param obj The anchorview object
4084 EAPI void elm_anchorview_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
4086 * Set bouncing behaviour when the scrolled content reaches an edge
4088 * Tell the internal scroller object whether it should bounce or not
4089 * when it reaches the respective edges for each axis.
4091 * @param obj The anchorview object
4092 * @param h_bounce Whether to bounce or not in the horizontal axis
4093 * @param v_bounce Whether to bounce or not in the vertical axis
4095 * @see elm_scroller_bounce_set()
4097 EAPI void elm_anchorview_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
4099 * Get the set bouncing behaviour of the internal scroller
4101 * Get whether the internal scroller should bounce when the edge of each
4102 * axis is reached scrolling.
4104 * @param obj The anchorview object
4105 * @param h_bounce Pointer where to store the bounce state of the horizontal
4107 * @param v_bounce Pointer where to store the bounce state of the vertical
4110 * @see elm_scroller_bounce_get()
4112 EAPI void elm_anchorview_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
4114 * Appends a custom item provider to the given anchorview
4116 * Appends the given function to the list of items providers. This list is
4117 * called, one function at a time, with the given @p data pointer, the
4118 * anchorview object and, in the @p item parameter, the item name as
4119 * referenced in its href string. Following functions in the list will be
4120 * called in order until one of them returns something different to NULL,
4121 * which should be an Evas_Object which will be used in place of the item
4124 * Items in the markup text take the form \<item relsize=16x16 vsize=full
4125 * href=item/name\>\</item\>
4127 * @param obj The anchorview object
4128 * @param func The function to add to the list of providers
4129 * @param data User data that will be passed to the callback function
4131 * @see elm_entry_item_provider_append()
4133 EAPI void elm_anchorview_item_provider_append(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *anchorview, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
4135 * Prepend a custom item provider to the given anchorview
4137 * Like elm_anchorview_item_provider_append(), but it adds the function
4138 * @p func to the beginning of the list, instead of the end.
4140 * @param obj The anchorview object
4141 * @param func The function to add to the list of providers
4142 * @param data User data that will be passed to the callback function
4144 EAPI void elm_anchorview_item_provider_prepend(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *anchorview, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
4146 * Remove a custom item provider from the list of the given anchorview
4148 * Removes the function and data pairing that matches @p func and @p data.
4149 * That is, unless the same function and same user data are given, the
4150 * function will not be removed from the list. This allows us to add the
4151 * same callback several times, with different @p data pointers and be
4152 * able to remove them later without conflicts.
4154 * @param obj The anchorview object
4155 * @param func The function to remove from the list
4156 * @param data The data matching the function to remove from the list
4158 EAPI void elm_anchorview_item_provider_remove(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *anchorview, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
4165 * @defgroup Anchorblock Anchorblock
4167 * Anchorblock is for displaying text that contains markup with anchors
4168 * like <c>\<a href=1234\>something\</\></c> in it.
4170 * Besides being styled differently, the anchorblock widget provides the
4171 * necessary functionality so that clicking on these anchors brings up a
4172 * popup with user defined content such as "call", "add to contacts" or
4173 * "open web page". This popup is provided using the @ref Hover widget.
4175 * This widget emits the following signals:
4176 * @li "anchor,clicked": will be called when an anchor is clicked. The
4177 * @p event_info parameter on the callback will be a pointer of type
4178 * ::Elm_Entry_Anchorblock_Info.
4184 * Since examples are usually better than plain words, we might as well
4185 * try @ref tutorial_anchorblock_example "one".
4188 * @page tutorial_anchorblock_example Anchorblock/Anchorview example
4189 * This exampel will show both Anchorblock and @ref Anchorview,
4190 * since both are very similar and it's easier to show them once and side
4191 * by side, so the difference is more clear.
4193 * We'll show the relevant snippets of the code here, but the full example
4194 * can be found here... sorry, @ref anchorblock_example_01.c "here".
4196 * As for the actual example, it's just a simple window with an anchorblock
4197 * and an anchorview, both containing the same text. After including
4198 * Elementary.h and declaring some functions we'll need, we jump to our
4199 * elm_main (see ELM_MAIN) and create our window.
4200 * @dontinclude anchorblock_example_01.c
4205 * With the needed variables declared, we'll create the window and a box to
4206 * hold our widgets, but we don't need to go through that here.
4208 * In order to make clear where the anchorblock ends and the anchorview
4209 * begins, they'll be each inside a @ref Frame. After creating the frame,
4210 * the anchorblock follows.
4211 * @skip elm_frame_add
4212 * @until elm_frame_content_set
4214 * Nothing out of the ordinary there. What's worth mentioning is the call
4215 * to elm_anchorblock_hover_parent_set(). We are telling our widget that
4216 * when an anchor is clicked, the hover for the popup will cover the entire
4217 * window. This affects the area that will be obscured by the hover and
4218 * where clicking will dismiss it, as well as the calculations it does to
4219 * inform the best locations where to insert the popups content.
4220 * Other than that, the code is pretty standard. We also need to set our
4221 * callback for when an anchor is clicked, since it's our task to populate
4222 * the popup. There's no default for it.
4224 * The anchorview is no different, we only change a few things so it looks
4226 * @until elm_frame_content_set
4228 * Then we run, so stuff works and close our main function in the usual way.
4231 * Now, a little note. Normally you would use either one of anchorblock or
4232 * anchorview, set your one callback to clicks and do your stuff in there.
4233 * In this example, however, there are a few tricks to make it easier to
4234 * show both widgets in one go (and to save me some typing). So we have
4235 * two callbacks, one per widget, that will call a common function to do
4236 * the rest. The trick is using ::Elm_Entry_Anchorblock_Info for the
4237 * anchorview too, since both are equal, and passing a callback to use
4238 * for our buttons to end the hover, because each widget has a different
4240 * @until _anchorview_clicked_cb
4243 * The meat of our popup is in the following function. We check what kind
4244 * of menu we need to show, based on the name set to the anchor in the
4245 * markup text. If there's no type (something went wrong, no valid contact
4246 * in the address list) we are just putting a button that does nothing, but
4247 * it's perfectly reasonable to just end the hover and call it quits.
4249 * Our popup will consist of one main button in the middle of our hover,
4250 * and possibly a secondary button and a list of other options. We'll create
4251 * first our main button and check what kind of popup we need afterwards.
4254 * @until eina_stringshare_add
4257 * Each button has two callbacks, one is our hack to close the hover
4258 * properly based on which widget it belongs to, the other a simple
4259 * printf that will show the action with the anchors own data. This is
4260 * not how you would usually do it. Instead, the common case is to have
4261 * one callback for the button that will know which function to call to end
4262 * things, but since we are doing it this way it's worth noting that
4263 * smart callbacks will be called in reverse in respect to the order they
4264 * were added, and since our @c btn_end_cb will close the hover, and thus
4265 * delete our buttons, the other callback wouldn't be called if we had
4268 * After our telephone popup, there are a few others that are practically
4269 * the same, so they won't be shown here.
4271 * Once we are done with that, it's time to place our actions into our
4272 * hover. Main button goes in the middle without much questioning, and then
4273 * we see if we have a secondary button and a box of extra options.
4274 * Because I said so, secondary button goes on either side and box of
4275 * options either on top or below the main one, but to choose which
4276 * exactly, we use the hints our callback info has, which saves us from
4277 * having to do the math and see which side has more space available, with
4278 * a little special case where we delete our extra stuff if there's nowhere
4282 * @skip evas_object_smart
4283 * @until evas_object_del(box)
4287 * The example will look like this:
4288 * @image html screenshots/anchorblock_01.png
4289 * @image latex screenshots/anchorblock_01.eps
4291 * @example anchorblock_example_01.c
4294 * @addtogroup Anchorblock
4298 * @typedef Elm_Entry_Anchorblock_Info
4300 * The info sent in the callback for "anchor,clicked" signals emitted by
4301 * the Anchorblock widget.
4303 typedef struct _Elm_Entry_Anchorblock_Info Elm_Entry_Anchorblock_Info;
4305 * @struct _Elm_Entry_Anchorblock_Info
4307 * The info sent in the callback for "anchor,clicked" signals emitted by
4308 * the Anchorblock widget.
4310 struct _Elm_Entry_Anchorblock_Info
4312 const char *name; /**< Name of the anchor, as indicated in its href
4314 int button; /**< The mouse button used to click on it */
4315 Evas_Object *hover; /**< The hover object to use for the popup */
4317 Evas_Coord x, y, w, h;
4318 } anchor, /**< Geometry selection of text used as anchor */
4319 hover_parent; /**< Geometry of the object used as parent by the
4321 Eina_Bool hover_left : 1; /**< Hint indicating if there's space
4322 for content on the left side of
4323 the hover. Before calling the
4324 callback, the widget will make the
4325 necessary calculations to check
4326 which sides are fit to be set with
4327 content, based on the position the
4328 hover is activated and its distance
4329 to the edges of its parent object
4331 Eina_Bool hover_right : 1; /**< Hint indicating content fits on
4332 the right side of the hover.
4333 See @ref hover_left */
4334 Eina_Bool hover_top : 1; /**< Hint indicating content fits on top
4335 of the hover. See @ref hover_left */
4336 Eina_Bool hover_bottom : 1; /**< Hint indicating content fits
4337 below the hover. See @ref
4341 * Add a new Anchorblock object
4343 * @param parent The parent object
4344 * @return The new object or NULL if it cannot be created
4346 EAPI Evas_Object *elm_anchorblock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4348 * Set the text to show in the anchorblock
4350 * Sets the text of the anchorblock to @p text. This text can include markup
4351 * format tags, including <c>\<a href=anchorname\></a></c> to begin a segment
4352 * of text that will be specially styled and react to click events, ended
4353 * with either of \</a\> or \</\>. When clicked, the anchor will emit an
4354 * "anchor,clicked" signal that you can attach a callback to with
4355 * evas_object_smart_callback_add(). The name of the anchor given in the
4356 * event info struct will be the one set in the href attribute, in this
4359 * Other markup can be used to style the text in different ways, but it's
4360 * up to the style defined in the theme which tags do what.
4361 * @deprecated use elm_object_text_set() instead.
4363 EINA_DEPRECATED EAPI void elm_anchorblock_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
4365 * Get the markup text set for the anchorblock
4367 * Retrieves the text set on the anchorblock, with markup tags included.
4369 * @param obj The anchorblock object
4370 * @return The markup text set or @c NULL if nothing was set or an error
4372 * @deprecated use elm_object_text_set() instead.
4374 EINA_DEPRECATED EAPI const char *elm_anchorblock_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4376 * Set the parent of the hover popup
4378 * Sets the parent object to use by the hover created by the anchorblock
4379 * when an anchor is clicked. See @ref Hover for more details on this.
4381 * @param obj The anchorblock object
4382 * @param parent The object to use as parent for the hover
4384 EAPI void elm_anchorblock_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
4386 * Get the parent of the hover popup
4388 * Get the object used as parent for the hover created by the anchorblock
4389 * widget. See @ref Hover for more details on this.
4390 * If no parent is set, the same anchorblock object will be used.
4392 * @param obj The anchorblock object
4393 * @return The object used as parent for the hover, NULL if none is set.
4395 EAPI Evas_Object *elm_anchorblock_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4397 * Set the style that the hover should use
4399 * When creating the popup hover, anchorblock will request that it's
4400 * themed according to @p style.
4402 * @param obj The anchorblock object
4403 * @param style The style to use for the underlying hover
4405 * @see elm_object_style_set()
4407 EAPI void elm_anchorblock_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
4409 * Get the style that the hover should use
4411 * Get the style the hover created by anchorblock will use.
4413 * @param obj The anchorblock object
4414 * @return The style to use by the hover. NULL means the default is used.
4416 * @see elm_object_style_set()
4418 EAPI const char *elm_anchorblock_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4420 * Ends the hover popup in the anchorblock
4422 * When an anchor is clicked, the anchorblock widget will create a hover
4423 * object to use as a popup with user provided content. This function
4424 * terminates this popup, returning the anchorblock to its normal state.
4426 * @param obj The anchorblock object
4428 EAPI void elm_anchorblock_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
4430 * Appends a custom item provider to the given anchorblock
4432 * Appends the given function to the list of items providers. This list is
4433 * called, one function at a time, with the given @p data pointer, the
4434 * anchorblock object and, in the @p item parameter, the item name as
4435 * referenced in its href string. Following functions in the list will be
4436 * called in order until one of them returns something different to NULL,
4437 * which should be an Evas_Object which will be used in place of the item
4440 * Items in the markup text take the form \<item relsize=16x16 vsize=full
4441 * href=item/name\>\</item\>
4443 * @param obj The anchorblock object
4444 * @param func The function to add to the list of providers
4445 * @param data User data that will be passed to the callback function
4447 * @see elm_entry_item_provider_append()
4449 EAPI void elm_anchorblock_item_provider_append(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *anchorblock, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
4451 * Prepend a custom item provider to the given anchorblock
4453 * Like elm_anchorblock_item_provider_append(), but it adds the function
4454 * @p func to the beginning of the list, instead of the end.
4456 * @param obj The anchorblock object
4457 * @param func The function to add to the list of providers
4458 * @param data User data that will be passed to the callback function
4460 EAPI void elm_anchorblock_item_provider_prepend(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *anchorblock, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
4462 * Remove a custom item provider from the list of the given anchorblock
4464 * Removes the function and data pairing that matches @p func and @p data.
4465 * That is, unless the same function and same user data are given, the
4466 * function will not be removed from the list. This allows us to add the
4467 * same callback several times, with different @p data pointers and be
4468 * able to remove them later without conflicts.
4470 * @param obj The anchorblock object
4471 * @param func The function to remove from the list
4472 * @param data The data matching the function to remove from the list
4474 EAPI void elm_anchorblock_item_provider_remove(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *anchorblock, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
4480 * @defgroup Bubble Bubble
4482 * @brief The Bubble is a widget to show text similarly to how speech is
4483 * represented in comics.
4485 * The bubble widget contains 5 important visual elements:
4486 * @li The frame is a rectangle with rounded rectangles and an "arrow".
4487 * @li The @p icon is an image to which the frame's arrow points to.
4488 * @li The @p label is a text which appears to the right of the icon if the
4489 * corner is "top_left" or "bottom_left" and is right aligned to the frame
4491 * @li The @p info is a text which appears to the right of the label. Info's
4492 * font is of a ligther color than label.
4493 * @li The @p content is an evas object that is shown inside the frame.
4495 * The position of the arrow, icon, label and info depends on which corner is
4496 * selected. The four available corners are:
4497 * @li "top_left" - Default
4500 * @li "bottom_right"
4502 * Signals that you can add callbacks for are:
4503 * @li "clicked" - This is called when a user has clicked the bubble.
4505 * For an example of using a buble see @ref bubble_01_example_page "this".
4510 * Add a new bubble to the parent
4512 * @param parent The parent object
4513 * @return The new object or NULL if it cannot be created
4515 * This function adds a text bubble to the given parent evas object.
4517 EAPI Evas_Object *elm_bubble_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4519 * Set the label of the bubble
4521 * @param obj The bubble object
4522 * @param label The string to set in the label
4524 * This function sets the title of the bubble. Where this appears depends on
4525 * the selected corner.
4526 * @deprecated use elm_object_text_set() instead.
4528 EINA_DEPRECATED EAPI void elm_bubble_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
4530 * Get the label of the bubble
4532 * @param obj The bubble object
4533 * @return The string of set in the label
4535 * This function gets the title of the bubble.
4536 * @deprecated use elm_object_text_set() instead.
4538 EINA_DEPRECATED EAPI const char *elm_bubble_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4540 * Set the info of the bubble
4542 * @param obj The bubble object
4543 * @param info The given info about the bubble
4545 * This function sets the info of the bubble. Where this appears depends on
4546 * the selected corner.
4547 * @deprecated use elm_object_text_set() instead.
4549 EINA_DEPRECATED EAPI void elm_bubble_info_set(Evas_Object *obj, const char *info) EINA_ARG_NONNULL(1);
4551 * Get the info of the bubble
4553 * @param obj The bubble object
4555 * @return The "info" string of the bubble
4557 * This function gets the info text.
4558 * @deprecated use elm_object_text_set() instead.
4560 EINA_DEPRECATED EAPI const char *elm_bubble_info_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4562 * Set the content to be shown in the bubble
4564 * Once the content object is set, a previously set one will be deleted.
4565 * If you want to keep the old content object, use the
4566 * elm_bubble_content_unset() function.
4568 * @param obj The bubble object
4569 * @param content The given content of the bubble
4571 * This function sets the content shown on the middle of the bubble.
4573 EAPI void elm_bubble_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
4575 * Get the content shown in the bubble
4577 * Return the content object which is set for this widget.
4579 * @param obj The bubble object
4580 * @return The content that is being used
4582 EAPI Evas_Object *elm_bubble_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4584 * Unset the content shown in the bubble
4586 * Unparent and return the content object which was set for this widget.
4588 * @param obj The bubble object
4589 * @return The content that was being used
4591 EAPI Evas_Object *elm_bubble_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4593 * Set the icon of the bubble
4595 * Once the icon object is set, a previously set one will be deleted.
4596 * If you want to keep the old content object, use the
4597 * elm_icon_content_unset() function.
4599 * @param obj The bubble object
4600 * @param icon The given icon for the bubble
4602 EAPI void elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
4604 * Get the icon of the bubble
4606 * @param obj The bubble object
4607 * @return The icon for the bubble
4609 * This function gets the icon shown on the top left of bubble.
4611 EAPI Evas_Object *elm_bubble_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4613 * Unset the icon of the bubble
4615 * Unparent and return the icon object which was set for this widget.
4617 * @param obj The bubble object
4618 * @return The icon that was being used
4620 EAPI Evas_Object *elm_bubble_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4622 * Set the corner of the bubble
4624 * @param obj The bubble object.
4625 * @param corner The given corner for the bubble.
4627 * This function sets the corner of the bubble. The corner will be used to
4628 * determine where the arrow in the frame points to and where label, icon and
4631 * Possible values for corner are:
4632 * @li "top_left" - Default
4635 * @li "bottom_right"
4637 EAPI void elm_bubble_corner_set(Evas_Object *obj, const char *corner) EINA_ARG_NONNULL(1, 2);
4639 * Get the corner of the bubble
4641 * @param obj The bubble object.
4642 * @return The given corner for the bubble.
4644 * This function gets the selected corner of the bubble.
4646 EAPI const char *elm_bubble_corner_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4648 EINA_DEPRECATED EAPI void elm_bubble_sweep_layout_set(Evas_Object *obj, Evas_Object *sweep) EINA_ARG_NONNULL(1);
4649 EINA_DEPRECATED EAPI Evas_Object *elm_bubble_sweep_layout_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4656 EAPI Evas_Object *elm_photo_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4657 EAPI Eina_Bool elm_photo_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
4658 EAPI void elm_photo_size_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
4659 EAPI void elm_photo_fill_inside_set(Evas_Object *obj, Eina_Bool fill) EINA_ARG_NONNULL(1);
4660 EAPI void elm_photo_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
4661 /* smart callbacks called:
4662 * "clicked" - the user clicked the icon
4663 * "drag,start" - Someone started dragging the image out of the object
4664 * "drag,end" - Dragged item was dropped (somewhere)
4668 /** @defgroup Elm_Gesture_Layer Gesture Layer */
4670 * @enum _Elm_Gesture_Types
4671 * Emum of supported gesture types.
4672 * @ingroup Elm_Gesture_Layer
4674 enum _Elm_Gesture_Types
4676 ELM_GESTURE_FIRST = 0,
4678 ELM_GESTURE_N_TAPS, /**< N fingers single taps */
4679 ELM_GESTURE_N_DOUBLE_TAPS, /**< N fingers double-single taps */
4680 ELM_GESTURE_N_TRIPLE_TAPS, /**< N fingers triple-single taps */
4682 ELM_GESTURE_MOMENTUM, /**< Reports momentum in the dircetion of move */
4684 ELM_GESTURE_N_LINES, /**< N fingers line gesture */
4685 ELM_GESTURE_N_FLICKS, /**< N fingers flick gesture */
4687 ELM_GESTURE_ZOOM, /**< Zoom */
4688 ELM_GESTURE_ROTATE, /**< Rotate */
4694 * @typedef Elm_Gesture_Types
4695 * Type for Emum of supported gesture types.
4696 * @ingroup Elm_Gesture_Layer
4698 typedef enum _Elm_Gesture_Types Elm_Gesture_Types;
4701 * @enum _Elm_Gesture_State
4702 * Emum of gesture states.
4703 * @ingroup Elm_Gesture_Layer
4705 enum _Elm_Gesture_State
4707 ELM_GESTURE_STATE_UNDEFINED = -1, /**< Gesture not STARTed */
4708 ELM_GESTURE_STATE_START, /**< Gesture STARTed */
4709 ELM_GESTURE_STATE_MOVE, /**< Gesture is ongoing */
4710 ELM_GESTURE_STATE_END, /**< Gesture completed */
4711 ELM_GESTURE_STATE_ABORT /**< Onging gesture was ABORTed */
4714 * @typedef Elm_Gesture_State
4716 * @ingroup Elm_Gesture_Layer
4718 typedef enum _Elm_Gesture_State Elm_Gesture_State;
4721 * @struct _Elm_Gesture_Taps_Info
4722 * Struct holds taps info for user
4723 * @ingroup Elm_Gesture_Layer
4725 struct _Elm_Gesture_Taps_Info
4727 Evas_Coord x, y; /**< Holds center point between fingers */
4728 unsigned int n; /**< Number of fingers tapped */
4729 unsigned int timestamp; /**< event timestamp */
4733 * @typedef Elm_Gesture_Taps_Info
4734 * holds taps info for user
4735 * @ingroup Elm_Gesture_Layer
4737 typedef struct _Elm_Gesture_Taps_Info Elm_Gesture_Taps_Info;
4740 * @struct _Elm_Gesture_Momentum_Info
4741 * Struct holds momentum info for user
4742 * x1 and y1 are not necessarily in sync
4743 * x1 holds x value of x direction starting point
4744 * and same holds for y1.
4745 * This is noticeable when doing V-shape movement
4746 * @ingroup Elm_Gesture_Layer
4748 struct _Elm_Gesture_Momentum_Info
4749 { /* Report line ends, timestamps, and momentum computed */
4750 Evas_Coord x1; /**< Final-swipe direction starting point on X */
4751 Evas_Coord y1; /**< Final-swipe direction starting point on Y */
4752 Evas_Coord x2; /**< Final-swipe direction ending point on X */
4753 Evas_Coord y2; /**< Final-swipe direction ending point on Y */
4755 unsigned int tx; /**< Timestamp of start of final x-swipe */
4756 unsigned int ty; /**< Timestamp of start of final y-swipe */
4758 Evas_Coord mx; /**< Momentum on X */
4759 Evas_Coord my; /**< Momentum on Y */
4763 * @typedef Elm_Gesture_Momentum_Info
4764 * holds momentum info for user
4765 * @ingroup Elm_Gesture_Layer
4767 typedef struct _Elm_Gesture_Momentum_Info Elm_Gesture_Momentum_Info;
4770 * @struct _Elm_Gesture_Line_Info
4771 * Struct holds line info for user
4772 * @ingroup Elm_Gesture_Layer
4774 struct _Elm_Gesture_Line_Info
4775 { /* Report line ends, timestamps, and momentum computed */
4776 Elm_Gesture_Momentum_Info momentum; /**< Line momentum info */
4777 unsigned int n; /**< Number of fingers (lines) */
4778 /* FIXME should be radians, bot degrees */
4779 double angle; /**< Angle (direction) of lines */
4783 * @typedef _Elm_Gesture_Line_Info
4784 * Holds line info for user
4785 * @ingroup Elm_Gesture_Layer
4787 typedef struct _Elm_Gesture_Line_Info Elm_Gesture_Line_Info;
4790 * @struct _Elm_Gesture_Zoom_Info
4791 * Struct holds zoom info for user
4792 * @ingroup Elm_Gesture_Layer
4794 struct _Elm_Gesture_Zoom_Info
4796 Evas_Coord x, y; /**< Holds zoom center point reported to user */
4797 Evas_Coord radius; /**< Holds radius between fingers reported to user */
4798 float zoom; /**< Zoom value: 1.0 means no zoom */
4799 float momentum; /**< Zoom momentum: zoom growth per second (NOT YET SUPPORTED) */
4803 * @typedef Elm_Gesture_Zoom_Info
4804 * Holds zoom info for user
4805 * @ingroup Elm_Gesture_Layer
4807 typedef struct _Elm_Gesture_Zoom_Info Elm_Gesture_Zoom_Info;
4810 * @struct _Elm_Gesture_Rotate_Info
4811 * Struct holds rotation info for user
4812 * @ingroup Elm_Gesture_Layer
4814 struct _Elm_Gesture_Rotate_Info
4816 Evas_Coord x, y; /**< Holds zoom center point reported to user */
4817 Evas_Coord radius; /**< Holds radius between fingers reported to user */
4818 double base_angle; /**< Holds start-angle */
4819 double angle; /**< Rotation value: 0.0 means no rotation */
4820 double momentum; /**< Rotation momentum: rotation done per second (NOT YET SUPPORTED) */
4824 * @typedef Elm_Gesture_Rotate_Info
4825 * Holds rotation info for user
4826 * @ingroup Elm_Gesture_Layer
4828 typedef struct _Elm_Gesture_Rotate_Info Elm_Gesture_Rotate_Info;
4831 * @typedef Elm_Gesture_Event_Cb
4832 * User callback used to stream gesture info from gesture layer
4833 * @param data user data
4834 * @param event_info gesture report info
4835 * Returns a flag field to be applied on the causing event.
4836 * You should probably return EVAS_EVENT_FLAG_ON_HOLD if your widget acted
4837 * upon the event, in an irreversible way.
4839 * @ingroup Elm_Gesture_Layer
4841 typedef Evas_Event_Flags (*Elm_Gesture_Event_Cb) (void *data, void *event_info);
4844 * Use function to set callbacks to be notified about
4845 * change of state of gesture.
4846 * When a user registers a callback with this function
4847 * this means this gesture has to be tested.
4849 * When ALL callbacks for a gesture are set to NULL
4850 * it means user isn't interested in gesture-state
4851 * and it will not be tested.
4853 * @param obj Pointer to gesture-layer.
4854 * @param idx The gesture you would like to track its state.
4855 * @param cb callback function pointer.
4856 * @param cb_type what event this callback tracks: START, MOVE, END, ABORT.
4857 * @param data user info to be sent to callback (usually, Smart Data)
4859 * @ingroup Elm_Gesture_Layer
4861 EAPI void elm_gesture_layer_cb_set(Evas_Object *obj, Elm_Gesture_Types idx, Elm_Gesture_State cb_type, Elm_Gesture_Event_Cb cb, void *data) EINA_ARG_NONNULL(1);
4864 * Call this function to get repeat-events settings.
4866 * @param obj Pointer to gesture-layer.
4868 * @return repeat events settings.
4869 * @see elm_gesture_layer_hold_events_set()
4870 * @ingroup Elm_Gesture_Layer
4872 EAPI Eina_Bool elm_gesture_layer_hold_events_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
4875 * This function called in order to make gesture-layer repeat events.
4876 * Set this of you like to get the raw events only if gestures were not detected.
4877 * Clear this if you like gesture layer to fwd events as testing gestures.
4879 * @param obj Pointer to gesture-layer.
4880 * @param r Repeat: TRUE/FALSE
4882 * @ingroup Elm_Gesture_Layer
4884 EAPI void elm_gesture_layer_hold_events_set(Evas_Object *obj, Eina_Bool r) EINA_ARG_NONNULL(1);
4887 * This function sets step-value for zoom action.
4888 * Set step to any positive value.
4889 * Cancel step setting by setting to 0.0
4891 * @param obj Pointer to gesture-layer.
4892 * @param s new zoom step value.
4894 * @ingroup Elm_Gesture_Layer
4896 EAPI void elm_gesture_layer_zoom_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
4899 * This function sets step-value for rotate action.
4900 * Set step to any positive value.
4901 * Cancel step setting by setting to 0.0
4903 * @param obj Pointer to gesture-layer.
4904 * @param s new roatate step value.
4906 * @ingroup Elm_Gesture_Layer
4908 EAPI void elm_gesture_layer_rotate_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
4911 * This function called to attach gesture-layer to an Evas_Object.
4912 * @param obj Pointer to gesture-layer.
4913 * @param t Pointer to underlying object (AKA Target)
4915 * @return TRUE, FALSE on success, failure.
4917 * @ingroup Elm_Gesture_Layer
4919 EAPI Eina_Bool elm_gesture_layer_attach(Evas_Object *obj, Evas_Object *t) EINA_ARG_NONNULL(1, 2);
4922 * Call this function to construct a new gesture-layer object.
4923 * This does not activate the gesture layer. You have to
4924 * call elm_gesture_layer_attach in order to 'activate' gesture-layer.
4926 * @param parent the parent object.
4928 * @return Pointer to new gesture-layer object.
4930 * @ingroup Elm_Gesture_Layer
4932 EAPI Evas_Object *elm_gesture_layer_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4935 typedef enum _Elm_Thumb_Animation_Setting
4937 ELM_THUMB_ANIMATION_START = 0, /* Play animation once */
4938 ELM_THUMB_ANIMATION_LOOP, /* Keep playing animation until stop is requested */
4939 ELM_THUMB_ANIMATION_STOP,
4940 ELM_THUMB_ANIMATION_LAST
4941 } Elm_Thumb_Animation_Setting;
4943 EAPI Evas_Object *elm_thumb_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4944 EAPI void elm_thumb_reload(Evas_Object *obj) EINA_ARG_NONNULL(1);
4945 EAPI void elm_thumb_file_set(Evas_Object *obj, const char *file, const char *key) EINA_ARG_NONNULL(1);
4946 EAPI void elm_thumb_file_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
4947 EAPI void elm_thumb_path_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
4948 EAPI void elm_thumb_animate_set(Evas_Object *obj, Elm_Thumb_Animation_Setting s) EINA_ARG_NONNULL(1);
4949 EAPI Elm_Thumb_Animation_Setting elm_thumb_animate_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4950 EAPI void *elm_thumb_ethumb_client_get(void);
4951 EAPI Eina_Bool elm_thumb_ethumb_client_connected(void);
4952 EAPI Eina_Bool elm_thumb_editable_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
4953 EAPI Eina_Bool elm_thumb_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4954 /* available styles:
4958 /* smart callbacks called:
4959 * "clicked" - This is called when a user has clicked the thumb without dragging around.
4960 * "clicked,double" - This is called when a user has double-clicked the thumb.
4961 * "press" - This is called when a user has pressed down the thumb.
4962 * "generate,start" - The thumbnail generation started.
4963 * "generate,stop" - The generation process stopped.
4964 * "generate,error" - The generation failed.
4965 * "load,error" - The thumbnail image loading failed.
4969 EAPI Evas_Object *elm_hoversel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4970 EAPI void elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
4971 EAPI Eina_Bool elm_hoversel_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4972 EAPI void elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
4973 EAPI Evas_Object *elm_hoversel_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4974 EINA_DEPRECATED EAPI void elm_hoversel_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
4975 EINA_DEPRECATED EAPI const char *elm_hoversel_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4976 EAPI void elm_hoversel_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
4977 EAPI Evas_Object *elm_hoversel_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4978 EAPI Evas_Object *elm_hoversel_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4979 EAPI void elm_hoversel_hover_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
4980 EAPI void elm_hoversel_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
4981 EAPI Eina_Bool elm_hoversel_expanded_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4982 EAPI void elm_hoversel_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
4983 EAPI const Eina_List *elm_hoversel_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4984 EAPI Elm_Hoversel_Item *elm_hoversel_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
4985 EAPI void elm_hoversel_item_del(Elm_Hoversel_Item *item) EINA_ARG_NONNULL(1);
4986 EAPI void elm_hoversel_item_del_cb_set(Elm_Hoversel_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
4987 EAPI void *elm_hoversel_item_data_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
4988 EAPI const char *elm_hoversel_item_label_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
4989 EAPI void elm_hoversel_item_icon_set(Elm_Hoversel_Item *it, const char *icon_file, const char *icon_group, Elm_Icon_Type icon_type) EINA_ARG_NONNULL(1);
4990 EAPI void elm_hoversel_item_icon_get(const Elm_Hoversel_Item *it, const char **icon_file, const char **icon_group, Elm_Icon_Type *icon_type) EINA_ARG_NONNULL(1);
4991 /* smart callbacks called:
4992 * "clicked" - the user clicked the hoversel button and popped up the sel
4993 * "selected" - an item in the hoversel list is selected
4994 * "dismissed" - the hover is dismissed
4998 typedef enum _Elm_Toolbar_Shrink_Mode
5000 ELM_TOOLBAR_SHRINK_NONE, /**< set toolbar minimun size to fit all the items */
5001 ELM_TOOLBAR_SHRINK_HIDE, /**< hide excess items */
5002 ELM_TOOLBAR_SHRINK_SCROLL, /**< allow accessing excess items through a scroller */
5003 ELM_TOOLBAR_SHRINK_MENU /**< inserts a button to pop up a menu with excess items */
5004 } Elm_Toolbar_Shrink_Mode;
5006 typedef struct _Elm_Toolbar_Item Elm_Toolbar_Item; /**< Item of Elm_Toolbar. Sub-type of Elm_Widget_Item */
5007 typedef struct _Elm_Toolbar_Item_State Elm_Toolbar_Item_State; /** State of a Elm_Toolbar_Item */
5009 EAPI Evas_Object *elm_toolbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5010 EAPI void elm_toolbar_icon_size_set(Evas_Object *obj, int icon_size) EINA_ARG_NONNULL(1);
5011 EAPI int elm_toolbar_icon_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5012 EAPI void elm_toolbar_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
5013 EAPI Elm_Icon_Lookup_Order elm_toolbar_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5014 EAPI void elm_toolbar_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
5015 EAPI Eina_Bool elm_toolbar_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5016 EAPI Elm_Toolbar_Item *elm_toolbar_item_append(Evas_Object *obj, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
5017 EAPI Elm_Toolbar_Item *elm_toolbar_item_prepend(Evas_Object *obj, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
5018 EAPI Elm_Toolbar_Item *elm_toolbar_item_insert_before(Evas_Object *obj, Elm_Toolbar_Item *before, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
5019 EAPI Elm_Toolbar_Item *elm_toolbar_item_insert_after(Evas_Object *obj, Elm_Toolbar_Item *after, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
5020 EAPI Elm_Toolbar_Item *elm_toolbar_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5021 EAPI Elm_Toolbar_Item *elm_toolbar_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5022 EAPI Elm_Toolbar_Item *elm_toolbar_item_next_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
5023 EAPI Elm_Toolbar_Item *elm_toolbar_item_prev_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
5024 EAPI Evas_Object *elm_toolbar_item_toolbar_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
5025 EAPI void elm_toolbar_item_priority_set(Elm_Toolbar_Item *item, int priority) EINA_ARG_NONNULL(1);
5026 EAPI int elm_toolbar_item_priority_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
5027 EAPI const char *elm_toolbar_item_icon_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
5028 EAPI const char *elm_toolbar_item_label_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
5029 EAPI void elm_toolbar_item_label_set(Elm_Toolbar_Item *item, const char *label) EINA_ARG_NONNULL(1);
5030 EAPI void *elm_toolbar_item_data_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
5031 EAPI void elm_toolbar_item_data_set(Elm_Toolbar_Item *item, const void *data) EINA_ARG_NONNULL(1);
5032 EAPI Elm_Toolbar_Item *elm_toolbar_item_find_by_label(const Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
5033 EAPI Eina_Bool elm_toolbar_item_selected_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
5034 EAPI void elm_toolbar_item_selected_set(Elm_Toolbar_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
5035 EAPI Elm_Toolbar_Item *elm_toolbar_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5036 EAPI void elm_toolbar_item_icon_set(Elm_Toolbar_Item *item, const char *icon) EINA_ARG_NONNULL(1);
5037 EAPI void elm_toolbar_item_del(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
5038 EAPI void elm_toolbar_item_del_cb_set(Elm_Toolbar_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
5039 EAPI Eina_Bool elm_toolbar_item_disabled_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
5040 EAPI void elm_toolbar_item_disabled_set(Elm_Toolbar_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
5041 EAPI void elm_toolbar_item_separator_set(Elm_Toolbar_Item *item, Eina_Bool separator) EINA_ARG_NONNULL(1);
5042 EAPI Eina_Bool elm_toolbar_item_separator_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
5043 EAPI void elm_toolbar_mode_shrink_set(Evas_Object *obj, Elm_Toolbar_Shrink_Mode shrink_mode) EINA_ARG_NONNULL(1);
5044 EAPI Elm_Toolbar_Shrink_Mode elm_toolbar_mode_shrink_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5045 EAPI void elm_toolbar_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
5046 EAPI Eina_Bool elm_toolbar_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5047 EINA_DEPRECATED EAPI void elm_toolbar_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
5048 EINA_DEPRECATED EAPI Eina_Bool elm_toolbar_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5049 EAPI void elm_toolbar_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
5050 EAPI Evas_Object *elm_toolbar_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5051 EAPI void elm_toolbar_align_set(Evas_Object *obj, double align) EINA_ARG_NONNULL(1);
5052 EAPI double elm_toolbar_align_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5053 EAPI void elm_toolbar_item_menu_set(Elm_Toolbar_Item *item, Eina_Bool menu) EINA_ARG_NONNULL(1);
5054 EAPI Evas_Object *elm_toolbar_item_menu_get(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
5055 EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_add(Elm_Toolbar_Item *item, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
5056 EAPI Eina_Bool elm_toolbar_item_state_del(Elm_Toolbar_Item *item, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
5057 EAPI Eina_Bool elm_toolbar_item_state_set(Elm_Toolbar_Item *it, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
5058 EAPI void elm_toolbar_item_state_unset(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
5059 EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_get(const Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
5060 EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_next(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
5061 EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_prev(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
5062 EAPI void elm_toolbar_item_tooltip_text_set(Elm_Toolbar_Item *item, const char *text) EINA_ARG_NONNULL(1);
5063 EAPI void elm_toolbar_item_tooltip_content_cb_set(Elm_Toolbar_Item *item, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
5064 EAPI void elm_toolbar_item_tooltip_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
5065 EAPI void elm_toolbar_item_tooltip_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
5066 EAPI const char *elm_toolbar_item_tooltip_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
5067 EAPI void elm_toolbar_item_cursor_set(Elm_Toolbar_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
5068 EAPI const char *elm_toolbar_item_cursor_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
5069 EAPI void elm_toolbar_item_cursor_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
5070 EAPI void elm_toolbar_item_cursor_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
5071 EAPI const char *elm_toolbar_item_cursor_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
5072 EAPI void elm_toolbar_item_cursor_engine_only_set(Elm_Toolbar_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
5073 EAPI Eina_Bool elm_toolbar_item_cursor_engine_only_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
5074 /* smart callbacks called:
5075 * "clicked" - when the user clicks on a toolbar item and becomes selected
5077 /* available styles:
5079 * transparent (no background or shadow, just show the provided content)
5083 EAPI double elm_tooltip_delay_get(void);
5084 EAPI Eina_Bool elm_tooltip_delay_set(double delay);
5085 EAPI void elm_object_tooltip_show(Evas_Object *obj) EINA_ARG_NONNULL(1);
5086 EAPI void elm_object_tooltip_hide(Evas_Object *obj) EINA_ARG_NONNULL(1);
5087 EAPI void elm_object_tooltip_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1, 2);
5088 EAPI void elm_object_tooltip_content_cb_set(Evas_Object *obj, Elm_Tooltip_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
5089 EAPI void elm_object_tooltip_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
5090 EAPI void elm_object_tooltip_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
5091 EAPI const char *elm_object_tooltip_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5092 EAPI void elm_object_cursor_set(Evas_Object *obj, const char *cursor) EINA_ARG_NONNULL(1);
5093 EAPI const char *elm_object_cursor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5094 EAPI void elm_object_cursor_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
5095 EAPI void elm_object_cursor_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
5096 EAPI const char *elm_object_cursor_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5097 EAPI void elm_object_cursor_engine_only_set(Evas_Object *obj, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
5098 EAPI Eina_Bool elm_object_cursor_engine_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5101 EAPI int elm_cursor_engine_only_get(void);
5102 EAPI Eina_Bool elm_cursor_engine_only_set(int engine_only);
5105 typedef struct _Elm_Menu_Item Elm_Menu_Item; /**< Item of Elm_Menu. Sub-type of Elm_Widget_Item */
5106 EAPI Evas_Object *elm_menu_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5107 EAPI void elm_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
5108 EAPI Evas_Object *elm_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5109 EAPI void elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
5110 EAPI void elm_menu_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
5111 EAPI const Eina_List *elm_menu_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5112 EAPI Evas_Object *elm_menu_item_object_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
5113 EAPI Elm_Menu_Item *elm_menu_item_add(Evas_Object *obj, Elm_Menu_Item *parent, const char *icon, const char *label, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
5114 EAPI void elm_menu_item_label_set(Elm_Menu_Item *item, const char *label) EINA_ARG_NONNULL(1);
5115 EAPI const char *elm_menu_item_label_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
5116 EAPI void elm_menu_item_icon_set(Elm_Menu_Item *item, const char *icon) EINA_ARG_NONNULL(1, 2);
5117 EAPI const char *elm_menu_item_icon_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
5118 EAPI const Evas_Object *elm_menu_item_object_icon_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
5119 EAPI void elm_menu_item_selected_set(Elm_Menu_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
5120 EAPI Eina_Bool elm_menu_item_selected_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
5121 EAPI void elm_menu_item_disabled_set(Elm_Menu_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
5122 EAPI Eina_Bool elm_menu_item_disabled_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
5123 EAPI Elm_Menu_Item *elm_menu_item_separator_add(Evas_Object *obj, Elm_Menu_Item *parent) EINA_ARG_NONNULL(1);
5124 EAPI Eina_Bool elm_menu_item_is_separator(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
5125 EAPI void elm_menu_item_del(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
5126 EAPI void elm_menu_item_del_cb_set(Elm_Menu_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
5127 EAPI void *elm_menu_item_data_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
5128 EAPI void elm_menu_item_data_set(Elm_Menu_Item *item, const void *data) EINA_ARG_NONNULL(1);
5129 EAPI const Eina_List *elm_menu_item_subitems_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
5130 EAPI const Elm_Menu_Item *elm_menu_selected_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
5131 EAPI const Elm_Menu_Item *elm_menu_last_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
5132 EAPI const Elm_Menu_Item *elm_menu_first_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
5133 EAPI const Elm_Menu_Item *elm_menu_item_next_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
5134 EAPI const Elm_Menu_Item *elm_menu_item_prev_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
5136 /* smart callbacks called:
5137 * "clicked" - the user clicked the empty space in the menu to dismiss. event_info is NULL.
5141 typedef enum _Elm_List_Mode
5143 ELM_LIST_COMPRESS = 0,
5149 typedef struct _Elm_List_Item Elm_List_Item; /**< Item of Elm_List. Sub-type of Elm_Widget_Item */
5150 EAPI Evas_Object *elm_list_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5151 EAPI Elm_List_Item *elm_list_item_append(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
5152 EAPI Elm_List_Item *elm_list_item_prepend(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
5153 EAPI Elm_List_Item *elm_list_item_insert_before(Evas_Object *obj, Elm_List_Item *before, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
5154 EAPI Elm_List_Item *elm_list_item_insert_after(Evas_Object *obj, Elm_List_Item *after, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
5155 EAPI Elm_List_Item *elm_list_item_sorted_insert(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, Evas_Smart_Cb func, const void *data, Eina_Compare_Cb cmp_func) EINA_ARG_NONNULL(1);
5156 EAPI void elm_list_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
5157 EAPI void elm_list_go(Evas_Object *obj) EINA_ARG_NONNULL(1);
5158 EAPI void elm_list_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
5159 EAPI Eina_Bool elm_list_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5160 EAPI void elm_list_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
5161 EAPI Elm_List_Mode elm_list_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5162 EAPI void elm_list_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
5163 EAPI Eina_Bool elm_list_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5164 EAPI void elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
5165 EAPI Eina_Bool elm_list_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5166 EAPI const Eina_List *elm_list_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5167 EAPI Elm_List_Item *elm_list_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5168 EAPI const Eina_List *elm_list_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5169 EAPI void elm_list_item_separator_set(Elm_List_Item *it, Eina_Bool setting) EINA_ARG_NONNULL(1);
5170 EAPI Eina_Bool elm_list_item_separator_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
5171 EAPI void elm_list_item_selected_set(Elm_List_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
5172 EAPI Eina_Bool elm_list_item_selected_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
5173 EAPI void elm_list_item_show(Elm_List_Item *item) EINA_ARG_NONNULL(1);
5174 EAPI void elm_list_item_bring_in(Elm_List_Item *item) EINA_ARG_NONNULL(1);
5175 EAPI void elm_list_item_del(Elm_List_Item *item) EINA_ARG_NONNULL(1);
5176 EAPI void elm_list_item_del_cb_set(Elm_List_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
5177 EAPI void *elm_list_item_data_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
5178 EAPI Evas_Object *elm_list_item_icon_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
5179 EAPI void elm_list_item_icon_set(Elm_List_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
5180 EAPI Evas_Object *elm_list_item_end_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
5181 EAPI void elm_list_item_end_set(Elm_List_Item *item, Evas_Object *end) EINA_ARG_NONNULL(1);
5182 EAPI Evas_Object *elm_list_item_base_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
5183 EAPI const char *elm_list_item_label_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
5184 EAPI void elm_list_item_label_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
5185 EAPI Elm_List_Item *elm_list_item_prev(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
5186 EAPI Elm_List_Item *elm_list_item_next(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
5187 EAPI void elm_list_item_tooltip_text_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
5188 EAPI void elm_list_item_tooltip_content_cb_set(Elm_List_Item *item, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
5189 EAPI void elm_list_item_tooltip_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
5190 EAPI void elm_list_item_tooltip_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
5191 EAPI const char *elm_list_item_tooltip_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
5192 EAPI void elm_list_item_cursor_set(Elm_List_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
5193 EAPI const char *elm_list_item_cursor_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
5194 EAPI void elm_list_item_cursor_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
5195 EAPI void elm_list_item_cursor_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
5196 EAPI const char *elm_list_item_cursor_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
5197 EAPI void elm_list_item_cursor_engine_only_set(Elm_List_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
5198 EAPI Eina_Bool elm_list_item_cursor_engine_only_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
5199 EAPI void elm_list_item_disabled_set(Elm_List_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
5200 EAPI Eina_Bool elm_list_item_disabled_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
5201 EAPI void elm_list_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
5202 EAPI void elm_list_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
5203 EAPI void elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
5204 EAPI void elm_list_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
5205 /* smart callbacks called:
5206 * "clicked,double" - when the user double-clicked an item
5207 * "selected" - when the user selected an item
5208 * "unselected" - when the user selected an item
5209 * "longpressed" - an item in the hoversel list is long-pressed
5210 * "scroll,edge,top" - the list is scrolled until the top edge
5211 * "scroll,edge,bottom" - the list is scrolled until the bottom edge
5212 * "scroll,edge,left" - the list is scrolled until the left edge
5213 * "scroll,edge,right" - the list is scrolled until the right edge
5217 EAPI Evas_Object *elm_slider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5218 EINA_DEPRECATED EAPI void elm_slider_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
5219 EINA_DEPRECATED EAPI const char *elm_slider_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5220 EAPI void elm_slider_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
5221 EAPI Evas_Object *elm_slider_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
5222 EAPI Evas_Object *elm_slider_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5223 EAPI void elm_slider_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1);
5224 EAPI Evas_Object *elm_slider_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
5225 EAPI Evas_Object *elm_slider_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5226 EAPI void elm_slider_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
5227 EAPI Evas_Coord elm_slider_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5228 EAPI void elm_slider_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
5229 EAPI const char *elm_slider_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5230 EAPI void elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator) EINA_ARG_NONNULL(1);
5231 EAPI const char *elm_slider_indicator_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5232 EAPI void elm_slider_indicator_format_function_set(Evas_Object *obj, const char *(*func)(double val), void (*free_func)(const char *str)) EINA_ARG_NONNULL(1);
5233 EAPI void elm_slider_units_format_function_set(Evas_Object *obj, const char *(*func)(double val), void (*free_func)(const char *str)) EINA_ARG_NONNULL(1);
5234 EAPI void elm_slider_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
5235 EAPI Eina_Bool elm_slider_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5236 EAPI void elm_slider_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
5237 EAPI void elm_slider_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
5238 EAPI void elm_slider_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
5239 EAPI double elm_slider_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5240 EAPI void elm_slider_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
5241 EAPI Eina_Bool elm_slider_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5242 EAPI void elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show) EINA_ARG_NONNULL(1);
5243 EAPI Eina_Bool elm_slider_indicator_show_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5244 /* smart callbacks called:
5245 * "changed" - Whenever the slider value is changed by the user.
5246 * "slider,drag,start" - dragging the slider indicator around has started
5247 * "slider,drag,stop" - dragging the slider indicator around has stopped
5248 * "delay,changed" - A short time after the value is changed by the user.
5249 * This will be called only when the user stops dragging for a very short
5250 * period or when they release their finger/mouse, so it avoids possibly
5251 * expensive reactions to the value change.
5258 * @addtogroup Actionslider Actionslider
5260 * A actionslider is a switcher for 2 or 3 labels with customizable magnet
5261 * properties. The indicator is the element the user drags to choose a label.
5262 * When the position is set with magnet, when released the indicator will be
5263 * moved to it if it's nearest the magnetized position.
5265 * @note By default all positions are set as enabled.
5267 * Signals that you can add callbacks for are:
5269 * "selected" - when user selects an enabled position (the label is passed
5272 * "pos_changed" - when the indicator reaches any of the positions("left",
5273 * "right" or "center").
5275 * See an example of actionslider usage @ref actionslider_example_page "here"
5279 typedef enum _Elm_Actionslider_Indicator_Pos
5281 ELM_ACTIONSLIDER_INDICATOR_NONE,
5282 ELM_ACTIONSLIDER_INDICATOR_LEFT,
5283 ELM_ACTIONSLIDER_INDICATOR_RIGHT,
5284 ELM_ACTIONSLIDER_INDICATOR_CENTER
5285 } Elm_Actionslider_Indicator_Pos;
5287 typedef enum _Elm_Actionslider_Magnet_Pos
5289 ELM_ACTIONSLIDER_MAGNET_NONE = 0,
5290 ELM_ACTIONSLIDER_MAGNET_LEFT = 1 << 0,
5291 ELM_ACTIONSLIDER_MAGNET_CENTER = 1 << 1,
5292 ELM_ACTIONSLIDER_MAGNET_RIGHT= 1 << 2,
5293 ELM_ACTIONSLIDER_MAGNET_ALL = (1 << 3) -1,
5294 ELM_ACTIONSLIDER_MAGNET_BOTH = (1 << 3)
5295 } Elm_Actionslider_Magnet_Pos;
5297 typedef enum _Elm_Actionslider_Label_Pos
5299 ELM_ACTIONSLIDER_LABEL_LEFT,
5300 ELM_ACTIONSLIDER_LABEL_RIGHT,
5301 ELM_ACTIONSLIDER_LABEL_CENTER,
5302 ELM_ACTIONSLIDER_LABEL_BUTTON
5303 } Elm_Actionslider_Label_Pos;
5305 /* smart callbacks called:
5306 * "indicator,position" - when a button reaches to the special position like "left", "right" and "center".
5310 * Add a new actionslider to the parent.
5312 * @param parent The parent object
5313 * @return The new actionslider object or NULL if it cannot be created
5315 EAPI Evas_Object *elm_actionslider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5318 * Set actionslider label.
5320 * @param[in] obj The actionslider object
5321 * @param[in] pos The position of the label.
5322 * (ELM_ACTIONSLIDER_LABEL_LEFT, ELM_ACTIONSLIDER_LABEL_RIGHT)
5323 * @param label The label which is going to be set.
5325 EAPI void elm_actionslider_label_set(Evas_Object *obj, Elm_Actionslider_Label_Pos pos, const char *label) EINA_ARG_NONNULL(1);
5327 * Get actionslider labels.
5329 * @param obj The actionslider object
5330 * @param left_label A char** to place the left_label of @p obj into.
5331 * @param center_label A char** to place the center_label of @p obj into.
5332 * @param right_label A char** to place the right_label of @p obj into.
5334 EAPI void elm_actionslider_labels_get(const Evas_Object *obj, const char **left_label, const char **center_label, const char **right_label) EINA_ARG_NONNULL(1);
5336 * Get actionslider selected label.
5338 * @param obj The actionslider object
5339 * @return The selected label
5341 EAPI const char *elm_actionslider_selected_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5343 * Set actionslider indicator position.
5345 * @param obj The actionslider object.
5346 * @param pos The position of the indicator.
5348 EAPI void elm_actionslider_indicator_pos_set(Evas_Object *obj, Elm_Actionslider_Indicator_Pos pos) EINA_ARG_NONNULL(1);
5350 * Get actionslider indicator position.
5352 * @param obj The actionslider object.
5353 * @return The position of the indicator.
5355 EAPI Elm_Actionslider_Indicator_Pos elm_actionslider_indicator_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5357 * Set actionslider magnet position. To make multiple positions magnets @c or
5358 * them together(e.g.: ELM_ACTIONSLIDER_MAGNET_LEFT | ELM_ACTIONSLIDER_MAGNET_RIGHT)
5360 * @param obj The actionslider object.
5361 * @param pos Bit mask indicating the magnet positions.
5363 EAPI void elm_actionslider_magnet_pos_set(Evas_Object *obj, Elm_Actionslider_Magnet_Pos pos) EINA_ARG_NONNULL(1);
5365 * Get actionslider magnet position.
5367 * @param obj The actionslider object.
5368 * @return The positions with magnet property.
5370 EAPI Elm_Actionslider_Magnet_Pos elm_actionslider_magnet_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5372 * Set actionslider enabled position. To set multiple positions as enabled @c or
5373 * them together(e.g.: ELM_ACTIONSLIDER_MAGNET_LEFT | ELM_ACTIONSLIDER_MAGNET_RIGHT).
5375 * @note All the positions are enabled by default.
5377 * @param obj The actionslider object.
5378 * @param pos Bit mask indicating the enabled positions.
5380 EAPI void elm_actionslider_enabled_pos_set(Evas_Object *obj, Elm_Actionslider_Magnet_Pos pos) EINA_ARG_NONNULL(1);
5382 * Get actionslider enabled position.
5384 * @param obj The actionslider object.
5385 * @return The enabled positions.
5387 EAPI Elm_Actionslider_Magnet_Pos elm_actionslider_enabled_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5389 * Set the label used on the indicator.
5391 * @param obj The actionslider object
5392 * @param label The label to be set on the indicator.
5393 * @deprecated use elm_object_text_set() instead.
5395 EINA_DEPRECATED EAPI void elm_actionslider_indicator_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
5397 * Get the label used on the indicator object.
5399 * @param obj The actionslider object
5400 * @return The indicator label
5401 * @deprecated use elm_object_text_get() instead.
5403 EINA_DEPRECATED EAPI const char *elm_actionslider_indicator_label_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
5406 * Hold actionslider object movement.
5408 * @param[in] obj The actionslider object
5409 * @param[in] flag Actionslider hold/release
5410 * (EINA_TURE = hold/EIN_FALSE = release)
5412 * @ingroup Actionslider
5414 EAPI void elm_actionslider_hold(Evas_Object *obj, Eina_Bool flag) EINA_ARG_NONNULL(1);
5422 typedef enum _Elm_Genlist_Item_Flags
5424 ELM_GENLIST_ITEM_NONE = 0,
5425 ELM_GENLIST_ITEM_SUBITEMS = (1 << 0),
5426 ELM_GENLIST_ITEM_GROUP = (1 << 1)
5427 } Elm_Genlist_Item_Flags;
5428 typedef struct _Elm_Genlist_Item_Class Elm_Genlist_Item_Class;
5429 typedef struct _Elm_Genlist_Item Elm_Genlist_Item; /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
5430 typedef struct _Elm_Genlist_Item_Class_Func Elm_Genlist_Item_Class_Func;
5431 typedef char *(*GenlistItemLabelGetFunc) (void *data, Evas_Object *obj, const char *part);
5432 typedef Evas_Object *(*GenlistItemIconGetFunc) (void *data, Evas_Object *obj, const char *part);
5433 typedef Eina_Bool (*GenlistItemStateGetFunc) (void *data, Evas_Object *obj, const char *part);
5434 typedef void (*GenlistItemDelFunc) (void *data, Evas_Object *obj);
5435 typedef void (*GenlistItemMovedFunc) ( Evas_Object *genlist, Elm_Genlist_Item *item, Elm_Genlist_Item *rel_item, Eina_Bool move_after);
5437 struct _Elm_Genlist_Item_Class
5439 const char *item_style;
5441 GenlistItemLabelGetFunc label_get;
5442 GenlistItemIconGetFunc icon_get;
5443 GenlistItemStateGetFunc state_get;
5444 GenlistItemDelFunc del;
5445 GenlistItemMovedFunc moved;
5447 const char *edit_item_style;
5448 const char *mode_item_style;
5450 EAPI Evas_Object *elm_genlist_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5451 EAPI void elm_genlist_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
5452 EAPI void elm_genlist_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
5453 EAPI Eina_Bool elm_genlist_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5454 EAPI void elm_genlist_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
5455 EAPI Elm_List_Mode elm_genlist_horizontal_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5456 EAPI void elm_genlist_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
5457 EAPI Eina_Bool elm_genlist_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5458 EAPI void elm_genlist_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
5459 EAPI Eina_Bool elm_genlist_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5460 EAPI void elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress) EINA_ARG_NONNULL(1);
5461 EAPI Eina_Bool elm_genlist_compress_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5462 EAPI void elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width) EINA_ARG_NONNULL(1);
5463 EAPI Eina_Bool elm_genlist_height_for_width_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5464 EAPI void elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
5465 EAPI void elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
5466 EAPI void elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
5467 EAPI Eina_Bool elm_genlist_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5468 EAPI void elm_genlist_block_count_set(Evas_Object *obj, int n) EINA_ARG_NONNULL(1);
5469 EAPI int elm_genlist_block_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5470 EAPI void elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
5471 EAPI double elm_genlist_longpress_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5472 /* operations to add items */
5473 EAPI Elm_Genlist_Item *elm_genlist_item_append(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Genlist_Item *parent, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
5474 EAPI Elm_Genlist_Item *elm_genlist_item_prepend(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Genlist_Item *parent, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1);
5475 EAPI Elm_Genlist_Item *elm_genlist_item_insert_before(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Genlist_Item *parent, Elm_Genlist_Item *before, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1, 5);
5476 EAPI Elm_Genlist_Item *elm_genlist_item_insert_after(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Genlist_Item *parent, Elm_Genlist_Item *after, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data) EINA_ARG_NONNULL(1, 5);
5477 /* operations to retrieve existing items */
5478 EAPI Elm_Genlist_Item *elm_genlist_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5479 EAPI const Eina_List *elm_genlist_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5480 EAPI Eina_List *elm_genlist_realized_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5481 EAPI Elm_Genlist_Item *elm_genlist_at_xy_item_get(const Evas_Object *obj, Evas_Coord x, Evas_Coord y, int *posret) EINA_ARG_NONNULL(1);
5482 EAPI Elm_Genlist_Item *elm_genlist_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5483 EAPI Elm_Genlist_Item *elm_genlist_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5484 EAPI void elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
5485 EAPI void elm_genlist_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
5486 /* available item styles:
5488 * default_style - The text part is a textblock
5490 * icon_top_text_bottom
5492 /* Genlist Item operation */
5493 EAPI Elm_Genlist_Item *elm_genlist_item_next_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5494 EAPI Elm_Genlist_Item *elm_genlist_item_prev_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5495 EAPI Evas_Object *elm_genlist_item_genlist_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5496 EAPI Elm_Genlist_Item *elm_genlist_item_parent_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
5497 EAPI void elm_genlist_item_subitems_clear(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5498 EAPI void elm_genlist_item_selected_set(Elm_Genlist_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
5499 EAPI Eina_Bool elm_genlist_item_selected_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5500 EAPI void elm_genlist_item_expanded_set(Elm_Genlist_Item *item, Eina_Bool expanded) EINA_ARG_NONNULL(1);
5501 EAPI Eina_Bool elm_genlist_item_expanded_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5502 EAPI int elm_genlist_item_expanded_depth_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
5503 EAPI void elm_genlist_item_disabled_set(Elm_Genlist_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
5504 EAPI Eina_Bool elm_genlist_item_disabled_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5505 EAPI void elm_genlist_item_display_only_set(Elm_Genlist_Item *it, Eina_Bool display_only) EINA_ARG_NONNULL(1);
5506 EAPI Eina_Bool elm_genlist_item_display_only_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
5507 EAPI void elm_genlist_item_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5508 EAPI void elm_genlist_item_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5509 EAPI void elm_genlist_item_top_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5510 EAPI void elm_genlist_item_top_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5511 EAPI void elm_genlist_item_middle_show(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
5512 EAPI void elm_genlist_item_middle_bring_in(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
5513 EAPI void elm_genlist_item_del(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5514 EAPI void *elm_genlist_item_data_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5515 EAPI void elm_genlist_item_data_set(Elm_Genlist_Item *it, const void *data) EINA_ARG_NONNULL(1);
5516 EAPI void elm_genlist_item_icons_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
5517 EAPI const Evas_Object *elm_genlist_item_object_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
5518 EAPI void elm_genlist_item_update(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5519 EAPI void elm_genlist_item_item_class_update(Elm_Genlist_Item *it, const Elm_Genlist_Item_Class *itc) EINA_ARG_NONNULL(1, 2);
5520 EAPI const Elm_Genlist_Item_Class *elm_genlist_item_item_class_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
5521 EAPI void elm_genlist_item_tooltip_text_set(Elm_Genlist_Item *item, const char *text) EINA_ARG_NONNULL(1);
5522 EAPI void elm_genlist_item_tooltip_content_cb_set(Elm_Genlist_Item *item, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
5523 EAPI void elm_genlist_item_tooltip_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5524 EAPI void elm_genlist_item_tooltip_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
5525 EAPI const char *elm_genlist_item_tooltip_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5526 EAPI void elm_genlist_item_cursor_set(Elm_Genlist_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
5527 EAPI const char *elm_genlist_item_cursor_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5528 EAPI void elm_genlist_item_cursor_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5529 EAPI void elm_genlist_item_cursor_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
5530 EAPI const char *elm_genlist_item_cursor_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5531 EAPI void elm_genlist_item_cursor_engine_only_set(Elm_Genlist_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
5532 EAPI Eina_Bool elm_genlist_item_cursor_engine_only_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5533 EAPI void elm_genlist_realized_items_update(Evas_Object *obj) EINA_ARG_NONNULL(1);
5534 EAPI void elm_genlist_item_mode_set(Elm_Genlist_Item *it, const char *mode_type, Eina_Bool mode_set) EINA_ARG_NONNULL(1, 2);
5535 EAPI const char *elm_genlist_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5536 EAPI const Elm_Genlist_Item *elm_genlist_mode_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5537 EAPI void elm_genlist_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
5538 EAPI Eina_Bool elm_genlist_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5539 /* Signals that you can add callbacks for are:
5540 * "clicked,double" - This is called when a user has double-clicked an item.
5541 * The event_info parameter is the genlist item that was
5543 * "selected" - This is called when a user has made an item selected. The
5544 * event_info parameter is the genlist item that was selected.
5545 * "unselected" - This is called when a user has made an item unselected. The
5546 * event_info parameter is the genlist item that was unselected.
5547 * "expanded" - This is called when elm_genlist_item_expanded_set() is called
5548 * and the item is now meant to be expanded. The event_info parameter is the
5549 * genlist item that was indicated to expand. It is the job of this callback
5550 * to then fill in the child items.
5551 * "contracted" - This is called when elm_genlist_item_expanded_set() is called
5552 * and the item is now meant to be contracted. The event_info parameter is
5553 * the genlist item that was indicated to contract. It is the job of this
5554 * callback to then delete the child items.
5555 * "expand,request" - This is called when a user has indicated they want to
5556 * expand a tree branch item. The callback should decide if the item can
5557 * expand (has any children) and then call elm_genlist_item_expanded_set()
5558 * appropriately to set the state. The event_info parameter is the genlist
5559 * item that was indicated to expand.
5560 * "contract,request" - This is called when a user has indicated they want to
5561 * contract a tree branch item. The callback should decide if the item can
5562 * contract (has any children) and then call elm_genlist_item_expanded_set()
5563 * appropriately to set the state. The event_info parameter is the genlist
5564 * item that was indicated to contract.
5565 * "realized" - This is called when the item in the list is created as a real
5566 * evas object. event_info parameter is the genlist item that was created.
5567 * The object may be deleted at any time, so it is up to the caller to
5568 * not use the object pointer from elm_genlist_item_object_get() in a way
5569 * where it may point to freed objects.
5570 * "unrealized" - This is called just before an item is unrealized. After
5571 * this call icon objects provided will be deleted and the item object
5572 * itself delete or be put into a floating cache.
5573 * "drag,start,up" - This is called when the item in the list has been dragged
5574 * (not scrolled) up.
5575 * "drag,start,down" - This is called when the item in the list has been dragged
5576 * (not scrolled) down.
5577 * "drag,start,left" - This is called when the item in the list has been dragged i
5578 * (not scrolled) left.
5579 * "drag,start,right" - This is called when the item in the list has been dragged
5580 * (not scrolled) right.
5581 * "drag,stop" - This is called when the item in the list has stopped being
5583 * "drag" - This is called when the item in the list is being dragged.
5584 * "longpressed" - This is called when the item is pressed for a certain amount
5585 * of time. By default it's 1 second.
5586 * "scroll,edge,top" - This is called when the genlist is scrolled until the
5588 * "scroll,edge,bottom" - This is called when the genlist is scrolled until the
5590 * "scroll,edge,left" - This is called when the genlist is scrolled until the
5592 * "scroll,edge,right" - This is called when the genlist is scrolled until the
5594 * "multi,swipe,left" - This is called when the genlist is multi-touch swiped
5596 * "multi,swipe,right" - This is called when the genlist is multi-touch swiped
5598 * "multi,swipe,up" - This is called when the genlist is multi-touch swiped up.
5599 * "multi,swipe,down" - This is called when the genlist is multi-touch swiped
5601 * "multi,pinch,out" - This is called when the genlist is multi-touch pinched
5603 * "multi,pinch,in" - This is called when the genlist is multi-touch pinched in.
5606 EAPI void elm_genlist_edit_mode_set(Evas_Object *obj, Eina_Bool edit_mode) EINA_ARG_NONNULL(1);
5607 EAPI Eina_Bool elm_genlist_edit_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5608 EAPI void elm_genlist_item_rename_mode_set(Elm_Genlist_Item *it, Eina_Bool renamed) EINA_ARG_NONNULL(1);
5609 EAPI Eina_Bool elm_genlist_item_rename_mode_get(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
5610 EAPI void elm_genlist_item_move_after(Elm_Genlist_Item *it, Elm_Genlist_Item *after ) EINA_ARG_NONNULL(1, 2);
5611 EAPI void elm_genlist_item_move_before(Elm_Genlist_Item *it, Elm_Genlist_Item *before) EINA_ARG_NONNULL(1, 2);
5612 EAPI void elm_genlist_effect_set(const Evas_Object *obj, Eina_Bool emode) EINA_ARG_NONNULL(1);
5613 EAPI void elm_genlist_pinch_zoom_set(Evas_Object *obj, Eina_Bool emode) EINA_ARG_NONNULL(1);
5614 EAPI void elm_genlist_pinch_zoom_mode_set(Evas_Object *obj, Eina_Bool emode) EINA_ARG_NONNULL(1);
5615 EAPI Eina_Bool elm_genlist_pinch_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5618 * @page tutorial_check Check example
5619 * @dontinclude check_example_01.c
5621 * This example will show 2 checkboxes, one with just a label and the second
5622 * one with both a label and an icon. This example also ilustrates how to
5623 * have the checkbox change the value of a variable and how to react to those
5626 * We will start with the usual setup code:
5629 * And now we create our first checkbox, set its label, tell it to change
5630 * the value of @p value when the checkbox stats is changed and ask to be
5631 * notified of state changes:
5634 * For our second checkbox we are going to set an icon so we need to create
5637 * @note For simplicity we are using a rectangle as icon, but any evas object
5640 * And for our second checkbox we set the label, icon and state to true:
5643 * We now do some more setup:
5646 * And finally implement the callback that will be called when the first
5647 * checkbox's state changes. This callback will use @p data to print a
5650 * @note This work because @p data is @p value(from the main function) and @p
5651 * value is changed when the checkbox is changed.
5653 * Our example will look like this:
5654 * @image html screenshots/check_example_01.png
5655 * @image latex screenshots/check_example_01.eps
5657 * @example check_example_01.c
5660 * @defgroup Check Check
5662 * @brief The check widget allows for toggling a value between true and
5665 * Check objects are a lot like radio objects in layout and functionality
5666 * except they do not work as a group, but independently and only toggle the
5667 * value of a boolean from false to true (0 or 1). elm_check_state_set() sets
5668 * the boolean state (1 for true, 0 for false), and elm_check_state_get()
5669 * returns the current state. For convenience, like the radio objects, you
5670 * can set a pointer to a boolean directly with elm_check_state_pointer_set()
5673 * Signals that you can add callbacks for are:
5674 * "changed" - This is called whenever the user changes the state of one of
5675 * the check object(event_info is NULL).
5677 * @ref tutorial_check should give you a firm grasp of how to use this widget.
5681 * @brief Add a new Check object
5683 * @param parent The parent object
5684 * @return The new object or NULL if it cannot be created
5686 EAPI Evas_Object *elm_check_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5688 * @brief Set the text label of the check object
5690 * @param obj The check object
5691 * @param label The text label string in UTF-8
5693 * @deprecated use elm_object_text_set() instead.
5695 EINA_DEPRECATED EAPI void elm_check_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
5697 * @brief Get the text label of the check object
5699 * @param obj The check object
5700 * @return The text label string in UTF-8
5702 * @deprecated use elm_object_text_get() instead.
5704 EINA_DEPRECATED EAPI const char *elm_check_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5706 * @brief Set the icon object of the check object
5708 * @param obj The check object
5709 * @param icon The icon object
5711 * Once the icon object is set, a previously set one will be deleted.
5712 * If you want to keep that old content object, use the
5713 * elm_check_icon_unset() function.
5715 EAPI void elm_check_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
5717 * @brief Get the icon object of the check object
5719 * @param obj The check object
5720 * @return The icon object
5722 EAPI Evas_Object *elm_check_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5724 * @brief Unset the icon used for the check object
5726 * @param obj The check object
5727 * @return The icon object that was being used
5729 * Unparent and return the icon object which was set for this widget.
5731 EAPI Evas_Object *elm_check_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
5733 * @brief Set the on/off state of the check object
5735 * @param obj The check object
5736 * @param state The state to use (1 == on, 0 == off)
5738 * This sets the state of the check. If set
5739 * with elm_check_state_pointer_set() the state of that variable is also
5740 * changed. Calling this @b doesn't cause the "changed" signal to be emited.
5742 EAPI void elm_check_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
5744 * @brief Get the state of the check object
5746 * @param obj The check object
5747 * @return The boolean state
5749 EAPI Eina_Bool elm_check_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5751 * @brief Set a convenience pointer to a boolean to change
5753 * @param obj The check object
5754 * @param statep Pointer to the boolean to modify
5756 * This sets a pointer to a boolean, that, in addition to the check objects
5757 * state will also be modified directly. To stop setting the object pointed
5758 * to simply use NULL as the @p statep parameter. If @p statep is not NULL,
5759 * then when this is called, the check objects state will also be modified to
5760 * reflect the value of the boolean @p statep points to, just like calling
5761 * elm_check_state_set().
5763 EAPI void elm_check_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
5769 EAPI Evas_Object *elm_radio_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5770 EINA_DEPRECATED EAPI void elm_radio_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
5771 EINA_DEPRECATED EAPI const char *elm_radio_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5772 EAPI void elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
5773 EAPI Evas_Object *elm_radio_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5774 EAPI Evas_Object *elm_radio_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
5775 EAPI void elm_radio_group_add(Evas_Object *obj, Evas_Object *group) EINA_ARG_NONNULL(1);
5776 EAPI void elm_radio_state_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
5777 EAPI int elm_radio_state_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5778 EAPI void elm_radio_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
5779 EAPI int elm_radio_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5780 EAPI void elm_radio_value_pointer_set(Evas_Object *obj, int *valuep) EINA_ARG_NONNULL(1);
5781 /* smart callbacks called:
5782 * "changed" - when the radio status is changed
5786 EAPI Evas_Object *elm_pager_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5787 EAPI void elm_pager_content_push(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
5788 EAPI void elm_pager_content_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
5789 EAPI void elm_pager_content_promote(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
5790 EAPI Evas_Object *elm_pager_content_bottom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5791 EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5792 EAPI void elm_pager_to_content_pop(Evas_Object *obj, Evas_Object *content); EINA_ARG_NONNULL(1);
5793 EAPI void elm_pager_animation_disabled_set(Evas_Object *obj, Eina_Bool disable); EINA_ARG_NONNULL(1);
5795 /* available item styles:
5801 /* smart callbacks called:
5802 * "hide,finished" - when the previous page is hided
5805 typedef struct _Elm_Slideshow_Item_Class Elm_Slideshow_Item_Class;
5806 typedef struct _Elm_Slideshow_Item_Class_Func Elm_Slideshow_Item_Class_Func;
5807 typedef struct _Elm_Slideshow_Item Elm_Slideshow_Item; /**< Item of Elm_Slideshow. Sub-type of Elm_Widget_Item */
5808 typedef Evas_Object *(*SlideshowItemGetFunc) (void *data, Evas_Object *obj);
5809 typedef void (*SlideshowItemDelFunc) (void *data, Evas_Object *obj);
5811 struct _Elm_Slideshow_Item_Class
5813 struct _Elm_Slideshow_Item_Class_Func
5815 SlideshowItemGetFunc get;
5816 SlideshowItemDelFunc del;
5820 EAPI Evas_Object *elm_slideshow_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5821 EAPI Elm_Slideshow_Item *elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data) EINA_ARG_NONNULL(1);
5822 EAPI Elm_Slideshow_Item *elm_slideshow_item_sorted_insert(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data, Eina_Compare_Cb func) EINA_ARG_NONNULL(1);
5823 EAPI void elm_slideshow_show(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
5824 EAPI void elm_slideshow_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
5825 EAPI void elm_slideshow_previous(Evas_Object *obj) EINA_ARG_NONNULL(1);
5826 EAPI const Eina_List *elm_slideshow_transitions_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5827 EAPI void elm_slideshow_transition_set(Evas_Object *obj, const char *transition) EINA_ARG_NONNULL(1);
5828 EAPI const char *elm_slideshow_transition_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5829 EAPI void elm_slideshow_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
5830 EAPI double elm_slideshow_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5831 EAPI void elm_slideshow_loop_set(Evas_Object *obj, Eina_Bool loop) EINA_ARG_NONNULL(1);
5832 EAPI Eina_Bool elm_slideshow_loop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5833 EAPI void elm_slideshow_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
5834 EAPI const Eina_List *elm_slideshow_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5835 EAPI void elm_slideshow_item_del(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
5836 EAPI void *elm_slideshow_item_data_get(const Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
5837 EAPI Elm_Slideshow_Item *elm_slideshow_item_current_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5838 EAPI Evas_Object* elm_slideshow_item_object_get(const Elm_Slideshow_Item* item) EINA_ARG_NONNULL(1);
5839 EAPI Elm_Slideshow_Item *elm_slideshow_item_nth_get(const Evas_Object *obj, unsigned int nth) EINA_ARG_NONNULL(1);
5840 EAPI const char *elm_slideshow_layout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5841 EAPI void elm_slideshow_layout_set(Evas_Object *obj, const char *layout) EINA_ARG_NONNULL(1);
5842 EAPI const Eina_List *elm_slideshow_layouts_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5843 EAPI void elm_slideshow_cache_before_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
5844 EAPI int elm_slideshow_cache_before_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5845 EAPI void elm_slideshow_cache_after_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
5846 EAPI int elm_slideshow_cache_after_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5847 EAPI unsigned int elm_slideshow_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5848 /* smart callbacks called:
5849 * "changed" - when the slideshow switch to another item
5853 typedef enum _Elm_Fileselector_Mode
5855 ELM_FILESELECTOR_LIST = 0,
5856 ELM_FILESELECTOR_GRID,
5857 ELM_FILESELECTOR_LAST
5858 } Elm_Fileselector_Mode;
5860 EAPI Evas_Object *elm_fileselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5861 EAPI void elm_fileselector_is_save_set(Evas_Object *obj, Eina_Bool is_save) EINA_ARG_NONNULL(1);
5862 EAPI Eina_Bool elm_fileselector_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5863 EAPI void elm_fileselector_folder_only_set(Evas_Object *obj, Eina_Bool only) EINA_ARG_NONNULL(1);
5864 EAPI Eina_Bool elm_fileselector_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5865 EAPI void elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool buttons) EINA_ARG_NONNULL(1);
5866 EAPI Eina_Bool elm_fileselector_buttons_ok_cancel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5867 EAPI Eina_Bool elm_fileselector_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5868 EAPI void elm_fileselector_expandable_set(Evas_Object *obj, Eina_Bool expand) EINA_ARG_NONNULL(1);
5869 EAPI void elm_fileselector_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
5870 EAPI const char *elm_fileselector_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5871 EAPI const char *elm_fileselector_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5872 EAPI Eina_Bool elm_fileselector_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
5873 EAPI void elm_fileselector_mode_set(Evas_Object *obj, Elm_Fileselector_Mode mode) EINA_ARG_NONNULL(1);
5874 EAPI Elm_Fileselector_Mode elm_fileselector_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5875 /* smart callbacks called:
5876 * "selected" - the user click on a file
5877 * "directory,open" - the list is populate with a new content. event_info is a directory.
5878 * "done" - the user click on the ok or cancel buttons
5882 EAPI Evas_Object *elm_progressbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5883 EAPI void elm_progressbar_pulse_set(Evas_Object *obj, Eina_Bool pulse) EINA_ARG_NONNULL(1);
5884 EAPI Eina_Bool elm_progressbar_pulse_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5885 EAPI void elm_progressbar_pulse(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
5886 EAPI void elm_progressbar_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
5887 EAPI double elm_progressbar_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5888 EINA_DEPRECATED EAPI void elm_progressbar_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
5889 EINA_DEPRECATED EAPI const char *elm_progressbar_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5890 EAPI void elm_progressbar_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
5891 EAPI Evas_Object *elm_progressbar_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5892 EAPI Evas_Object *elm_progressbar_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
5893 EAPI void elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
5894 EAPI Evas_Coord elm_progressbar_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5895 EAPI void elm_progressbar_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
5896 EAPI const char *elm_progressbar_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5897 EAPI void elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
5898 EAPI Eina_Bool elm_progressbar_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5899 EAPI void elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
5900 EAPI Eina_Bool elm_progressbar_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5901 /* smart callbacks called:
5903 /* available item styles:
5905 * wheel (simple style, no text, no progression, only pulse is available)
5909 EAPI Evas_Object *elm_separator_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5910 EAPI void elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
5911 EAPI Eina_Bool elm_separator_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5912 /* smart callbacks called:
5916 EAPI Evas_Object *elm_spinner_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5917 EAPI void elm_spinner_label_format_set(Evas_Object *obj, const char *fmt) EINA_ARG_NONNULL(1);
5918 EAPI const char *elm_spinner_label_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5919 EAPI void elm_spinner_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
5920 EAPI void elm_spinner_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
5921 EAPI void elm_spinner_step_set(Evas_Object *obj, double step) EINA_ARG_NONNULL(1);
5922 EAPI double elm_spinner_step_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5923 EAPI void elm_spinner_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
5924 EAPI double elm_spinner_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5925 EAPI void elm_spinner_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
5926 EAPI Eina_Bool elm_spinner_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5927 EAPI void elm_spinner_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
5928 EAPI Eina_Bool elm_spinner_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5929 EAPI void elm_spinner_special_value_add(Evas_Object *obj, double value, const char *label) EINA_ARG_NONNULL(1);
5930 EAPI void elm_spinner_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
5931 EAPI double elm_spinner_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5932 /* smart callbacks called:
5933 * "changed" - when the spinner value changes
5934 * "delay,changed" - when the spinner value changed, but a small time after a change (use this if you only want to respond to a change once the spinner is held still for a short while).
5936 /* available item styles:
5938 * vertical (two up/down buttons at the right side and text left aligned)
5942 typedef struct _Elm_Index_Item Elm_Index_Item; /**< Item of Elm_Index. Sub-type of Elm_Widget_Item */
5944 EAPI Evas_Object *elm_index_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5945 EAPI void elm_index_active_set(Evas_Object *obj, Eina_Bool active) EINA_ARG_NONNULL(1);
5946 EAPI Eina_Bool elm_index_active_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5947 EAPI void elm_index_item_level_set(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
5948 EAPI int elm_index_item_level_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5949 EAPI void *elm_index_item_selected_get(const Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
5950 EAPI void elm_index_item_append(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
5951 EAPI void elm_index_item_prepend(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
5952 EAPI void elm_index_item_append_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
5953 EAPI void elm_index_item_prepend_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
5954 EAPI void elm_index_item_sorted_insert(Evas_Object *obj, const char *letter, const void *item, Eina_Compare_Cb cmp_func, Eina_Compare_Cb cmp_data_func) EINA_ARG_NONNULL(1);
5955 EAPI void elm_index_item_del(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
5956 EAPI Elm_Index_Item *elm_index_item_find(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
5957 EAPI void elm_index_item_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
5958 EAPI void elm_index_item_go(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
5959 EAPI void *elm_index_item_data_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
5960 EAPI void elm_index_item_data_set(Elm_Index_Item *it, const void *data) EINA_ARG_NONNULL(1);
5961 EAPI void elm_index_item_del_cb_set(Elm_Index_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
5962 EAPI const char *elm_index_item_letter_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
5963 EAPI void elm_index_button_image_invisible_set(Evas_Object *obj, Eina_Bool invisible) EINA_ARG_NONNULL(1);
5964 /* smart callbacks called:
5965 * "changed" - when the selected index item changes
5966 * "delay,changed" - when the selected index item changes, but after some small idle period
5967 * "selected" - when the user releases a finger and selects an item
5968 * "level,up" - when the user moves a finger from the first level to the second level
5969 * "level,down" - when the user moves a finger from the second level to the first level
5973 typedef enum _Elm_Photocam_Zoom_Mode
5975 ELM_PHOTOCAM_ZOOM_MODE_MANUAL = 0,
5976 ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT,
5977 ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL,
5978 ELM_PHOTOCAM_ZOOM_MODE_LAST
5979 } Elm_Photocam_Zoom_Mode;
5981 EAPI Evas_Object *elm_photocam_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5982 EAPI Evas_Load_Error elm_photocam_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
5983 EAPI const char *elm_photocam_file_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5984 EAPI void elm_photocam_zoom_set(Evas_Object *obj, double zoom) EINA_ARG_NONNULL(1);
5985 EAPI double elm_photocam_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5986 EAPI void elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode) EINA_ARG_NONNULL(1);
5987 EAPI Elm_Photocam_Zoom_Mode elm_photocam_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5988 EAPI void elm_photocam_image_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
5989 EAPI void elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
5990 EAPI void elm_photocam_image_region_show(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
5991 EAPI void elm_photocam_image_region_bring_in(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
5992 EAPI void elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
5993 EAPI Eina_Bool elm_photocam_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5994 EAPI Evas_Object *elm_photocam_internal_image_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5995 EAPI void elm_photocam_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
5996 EAPI void elm_photocam_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
5997 /* smart callbacks called:
5998 * "clicked" - when image clicked
5999 * "press" - when mouse/finger held down initially on image
6000 * "longpressed" - when mouse/finger held for long time on image
6001 * "clicked,double" - when mouse/finger double-clicked
6002 * "load" - when photo load begins
6003 * "loaded" - when photo load done
6004 * "load,detail" - when detailed image load begins
6005 * "loaded,detail" - when detailed image load done
6006 * "zoom,start" - when zooming started
6007 * "zoom,stop" - when zooming stopped
6008 * "zoom,change" - when auto zoom mode changed zoom level
6009 * "scroll - the content has been scrolled (moved)
6010 * "scroll,anim,start" - scrolling animation has started
6011 * "scroll,anim,stop" - scrolling animation has stopped
6012 * "scroll,drag,start" - dragging the contents around has started
6013 * "scroll,drag,stop" - dragging the contents around has stopped
6017 typedef enum _Elm_Map_Zoom_Mode
6019 ELM_MAP_ZOOM_MODE_MANUAL,
6020 ELM_MAP_ZOOM_MODE_AUTO_FIT,
6021 ELM_MAP_ZOOM_MODE_AUTO_FILL,
6022 ELM_MAP_ZOOM_MODE_LAST
6023 } Elm_Map_Zoom_Mode;
6025 typedef enum _Elm_Map_Route_Sources
6027 ELM_MAP_ROUTE_SOURCE_YOURS,
6028 ELM_MAP_ROUTE_SOURCE_MONAV,
6029 ELM_MAP_ROUTE_SOURCE_ORS,
6030 ELM_MAP_ROUTE_SOURCE_LAST
6031 } Elm_Map_Route_Sources;
6033 typedef enum _Elm_Map_Name_Sources
6035 ELM_MAP_NAME_SOURCE_NOMINATIM,
6036 ELM_MAP_NAME_SOURCE_LAST
6037 } Elm_Map_Name_Sources;
6039 typedef enum _Elm_Map_Route_Type
6041 ELM_MAP_ROUTE_TYPE_MOTOCAR,
6042 ELM_MAP_ROUTE_TYPE_BICYCLE,
6043 ELM_MAP_ROUTE_TYPE_FOOT,
6044 ELM_MAP_ROUTE_TYPE_LAST
6045 } Elm_Map_Route_Type;
6047 typedef enum _Elm_Map_Route_Method
6049 ELM_MAP_ROUTE_METHOD_FASTEST,
6050 ELM_MAP_ROUTE_METHOD_SHORTEST,
6051 ELM_MAP_ROUTE_METHOD_LAST
6052 } Elm_Map_Route_Method;
6054 typedef enum _Elm_Map_Name_Method
6056 ELM_MAP_NAME_METHOD_SEARCH,
6057 ELM_MAP_NAME_METHOD_REVERSE,
6058 ELM_MAP_NAME_METHOD_LAST
6059 } Elm_Map_Name_Method;
6061 typedef struct _Elm_Map_Marker Elm_Map_Marker;
6062 typedef struct _Elm_Map_Marker_Class Elm_Map_Marker_Class;
6063 typedef struct _Elm_Map_Group_Class Elm_Map_Group_Class;
6064 typedef struct _Elm_Map_Route Elm_Map_Route;
6065 typedef struct _Elm_Map_Name Elm_Map_Name;
6066 typedef struct _Elm_Map_Track Elm_Map_Track;
6068 typedef Evas_Object *(*ElmMapMarkerGetFunc) (Evas_Object *obj, Elm_Map_Marker *marker, void *data);
6069 typedef void (*ElmMapMarkerDelFunc) (Evas_Object *obj, Elm_Map_Marker *marker, void *data, Evas_Object *o);
6070 typedef Evas_Object *(*ElmMapMarkerIconGetFunc) (Evas_Object *obj, Elm_Map_Marker *marker, void *data);
6071 typedef Evas_Object *(*ElmMapGroupIconGetFunc) (Evas_Object *obj, void *data);
6073 typedef char *(*ElmMapModuleSourceFunc) (void);
6074 typedef int (*ElmMapModuleZoomMinFunc) (void);
6075 typedef int (*ElmMapModuleZoomMaxFunc) (void);
6076 typedef char *(*ElmMapModuleUrlFunc) (Evas_Object *obj, int x, int y, int zoom);
6077 typedef int (*ElmMapModuleRouteSourceFunc) (void);
6078 typedef char *(*ElmMapModuleRouteUrlFunc) (Evas_Object *obj, char *type_name, int method, double flon, double flat, double tlon, double tlat);
6079 typedef char *(*ElmMapModuleNameUrlFunc) (Evas_Object *obj, int method, char *name, double lon, double lat);
6080 typedef Eina_Bool (*ElmMapModuleGeoIntoCoordFunc) (const Evas_Object *obj, int zoom, double lon, double lat, int size, int *x, int *y);
6081 typedef Eina_Bool (*ElmMapModuleCoordIntoGeoFunc) (const Evas_Object *obj, int zoom, int x, int y, int size, double *lon, double *lat);
6083 EAPI Evas_Object *elm_map_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6084 EAPI void elm_map_zoom_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
6085 EAPI int elm_map_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6086 EAPI void elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode) EINA_ARG_NONNULL(1);
6087 EAPI Elm_Map_Zoom_Mode elm_map_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6088 EAPI void elm_map_geo_region_get(const Evas_Object *obj, double *lon, double *lat) EINA_ARG_NONNULL(1);
6089 EAPI void elm_map_geo_region_bring_in(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
6090 EAPI void elm_map_geo_region_show(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
6091 EAPI void elm_map_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
6092 EAPI Eina_Bool elm_map_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6093 EAPI void elm_map_paused_markers_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
6094 EAPI Eina_Bool elm_map_paused_markers_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6095 EAPI void elm_map_utils_downloading_status_get(const Evas_Object *obj, int *try_num, int *finish_num) EINA_ARG_NONNULL(1, 2, 3);
6096 EAPI void elm_map_utils_convert_coord_into_geo(const Evas_Object *obj, int x, int y, int size, double *lon, double *lat) EINA_ARG_NONNULL(1, 5, 6);
6097 EAPI void elm_map_utils_convert_geo_into_coord(const Evas_Object *obj, double lon, double lat, int size, int *x, int *y) EINA_ARG_NONNULL(1, 5, 6);
6098 EAPI Elm_Map_Name *elm_map_utils_convert_coord_into_name(const Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
6099 EAPI Elm_Map_Name *elm_map_utils_convert_name_into_coord(const Evas_Object *obj, char *address) EINA_ARG_NONNULL(1, 2);
6100 EAPI void elm_map_utils_rotate_coord(const Evas_Object *obj, const Evas_Coord x, const Evas_Coord y, const Evas_Coord cx, const Evas_Coord cy, const double degree, Evas_Coord *xx, Evas_Coord *yy) EINA_ARG_NONNULL(1);
6101 EAPI Elm_Map_Marker *elm_map_marker_add(Evas_Object *obj, double lon, double lat, Elm_Map_Marker_Class *clas, Elm_Map_Group_Class *clas_group, void *data) EINA_ARG_NONNULL(1, 4, 5);
6102 EAPI void elm_map_max_marker_per_group_set(Evas_Object *obj, int max) EINA_ARG_NONNULL(1);
6103 EAPI void elm_map_marker_remove(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
6104 EAPI void elm_map_marker_region_get(const Elm_Map_Marker *marker, double *lon, double *lat) EINA_ARG_NONNULL(1);
6105 EAPI void elm_map_marker_bring_in(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
6106 EAPI void elm_map_marker_show(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
6107 EAPI void elm_map_markers_list_show(Eina_List *markers) EINA_ARG_NONNULL(1);
6108 EAPI Evas_Object *elm_map_marker_object_get(const Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
6109 EAPI void elm_map_marker_update(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
6110 EAPI void elm_map_bubbles_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
6111 EAPI Elm_Map_Group_Class *elm_map_group_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
6112 EAPI void elm_map_group_class_style_set(Elm_Map_Group_Class *clas, const char *style) EINA_ARG_NONNULL(1);
6113 EAPI void elm_map_group_class_icon_cb_set(Elm_Map_Group_Class *clas, ElmMapGroupIconGetFunc icon_get) EINA_ARG_NONNULL(1);
6114 EAPI void elm_map_group_class_data_set(Elm_Map_Group_Class *clas, void *data) EINA_ARG_NONNULL(1);
6115 EAPI void elm_map_group_class_zoom_displayed_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
6116 EAPI void elm_map_group_class_zoom_grouped_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
6117 EAPI void elm_map_group_class_hide_set(Evas_Object *obj, Elm_Map_Group_Class *clas, Eina_Bool hide) EINA_ARG_NONNULL(1, 2);
6118 EAPI Elm_Map_Marker_Class *elm_map_marker_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
6119 EAPI void elm_map_marker_class_style_set(Elm_Map_Marker_Class *clas, const char *style) EINA_ARG_NONNULL(1);
6120 EAPI void elm_map_marker_class_icon_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerIconGetFunc icon_get) EINA_ARG_NONNULL(1);
6121 EAPI void elm_map_marker_class_get_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerGetFunc get) EINA_ARG_NONNULL(1);
6122 EAPI void elm_map_marker_class_del_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerDelFunc del) EINA_ARG_NONNULL(1);
6123 EAPI const char **elm_map_source_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6124 EAPI void elm_map_source_name_set(Evas_Object *obj, const char *source_name) EINA_ARG_NONNULL(1);
6125 EAPI const char *elm_map_source_name_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6126 EAPI void elm_map_route_source_set(Evas_Object *obj, Elm_Map_Route_Sources source) EINA_ARG_NONNULL(1);
6127 EAPI Elm_Map_Route_Sources elm_map_route_source_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6128 EAPI void elm_map_source_zoom_min_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
6129 EAPI int elm_map_source_zoom_min_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6130 EAPI void elm_map_source_zoom_max_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
6131 EAPI int elm_map_source_zoom_max_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6132 EAPI void elm_map_user_agent_set(Evas_Object *obj, const char *user_agent) EINA_ARG_NONNULL(1, 2);
6133 EAPI const char *elm_map_user_agent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6134 EAPI Elm_Map_Route *elm_map_route_add(Evas_Object *obj, Elm_Map_Route_Type type, Elm_Map_Route_Method method, double flon, double flat, double tlon, double tlat) EINA_ARG_NONNULL(1);
6135 EAPI void elm_map_route_remove(Elm_Map_Route *route) EINA_ARG_NONNULL(1);
6136 EAPI void elm_map_route_color_set(Elm_Map_Route *route, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
6137 EAPI void elm_map_route_color_get(const Elm_Map_Route *route, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
6138 EAPI double elm_map_route_distance_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
6139 EAPI const char *elm_map_route_node_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
6140 EAPI const char *elm_map_route_waypoint_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
6141 EAPI const char *elm_map_name_address_get(const Elm_Map_Name *name) EINA_ARG_NONNULL(1);
6142 EAPI void elm_map_name_region_get(const Elm_Map_Name *name, double *lon, double *lat) EINA_ARG_NONNULL(1);
6143 EAPI void elm_map_name_remove(Elm_Map_Name *name) EINA_ARG_NONNULL(1);
6144 EAPI void elm_map_rotate_set(Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy) EINA_ARG_NONNULL(1);
6145 EAPI void elm_map_rotate_get(const Evas_Object *obj, double *degree, Evas_Coord *cx, Evas_Coord *cy) EINA_ARG_NONNULL(1, 2, 3, 4);
6146 EAPI void elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
6147 EAPI Eina_Bool elm_map_wheel_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6149 EAPI Evas_Object *elm_map_track_add(Evas_Object *obj, EMap_Route *emap) EINA_ARG_NONNULL(1);
6151 EAPI void elm_map_track_remove(Evas_Object *obj, Evas_Object *route) EINA_ARG_NONNULL(1);
6153 /* smart callbacks called:
6154 * "clicked" - when image clicked
6155 * "press" - when mouse/finger held down initially on image
6156 * "longpressed" - when mouse/finger held for long time on image
6157 * "clicked,double" - when mouse/finger double-clicked
6158 * "load,details" - when detailed image load begins
6159 * "loaded,details" - when detailed image load done
6160 * "zoom,start" - when zooming started
6161 * "zoom,stop" - when zooming stopped
6162 * "zoom,change" - when auto zoom mode changed zoom level
6163 * "scroll - the content has been scrolled (moved)
6164 * "scroll,anim,start" - scrolling animation has started
6165 * "scroll,anim,stop" - scrolling animation has stopped
6166 * "scroll,drag,start" - dragging the contents around has started
6167 * "scroll,drag,stop" - dragging the contents around has stopped
6171 EAPI Evas_Object *elm_route_add(Evas_Object *parent);
6173 EAPI void elm_route_emap_set(Evas_Object *obj, EMap_Route *emap);
6175 EAPI double elm_route_lon_min_get(Evas_Object *obj);
6176 EAPI double elm_route_lat_min_get(Evas_Object *obj);
6177 EAPI double elm_route_lon_max_get(Evas_Object *obj);
6178 EAPI double elm_route_lat_max_get(Evas_Object *obj);
6182 typedef enum _Elm_Panel_Orient
6184 ELM_PANEL_ORIENT_TOP,
6185 ELM_PANEL_ORIENT_BOTTOM,
6186 ELM_PANEL_ORIENT_LEFT,
6187 ELM_PANEL_ORIENT_RIGHT,
6190 EAPI Evas_Object *elm_panel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6191 EAPI void elm_panel_orient_set(Evas_Object *obj, Elm_Panel_Orient orient) EINA_ARG_NONNULL(1);
6192 EAPI Elm_Panel_Orient elm_panel_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6193 EAPI void elm_panel_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
6194 EAPI Evas_Object *elm_panel_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6195 EAPI Evas_Object *elm_panel_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6196 EAPI void elm_panel_hidden_set(Evas_Object *obj, Eina_Bool hidden) EINA_ARG_NONNULL(1);
6197 EAPI Eina_Bool elm_panel_hidden_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6198 EAPI void elm_panel_toggle(Evas_Object *obj) EINA_ARG_NONNULL(1);
6204 * Update the minimun height of the bar in the theme. No minimun should be set in the vertical theme
6205 * Add events (move, start ...)
6207 EAPI Evas_Object *elm_panes_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6208 EAPI void elm_panes_content_left_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
6209 EAPI void elm_panes_content_right_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
6210 EAPI Evas_Object *elm_panes_content_left_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6211 EAPI Evas_Object *elm_panes_content_right_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6212 EAPI Evas_Object *elm_panes_content_left_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6213 EAPI Evas_Object *elm_panes_content_right_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6214 EAPI double elm_panes_content_left_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6215 EAPI void elm_panes_content_left_size_set(Evas_Object *obj, double size) EINA_ARG_NONNULL(1);
6216 EAPI void elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
6217 EAPI Eina_Bool elm_panes_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6218 EAPI void elm_panes_fixed_set(Evas_Object *obj, Eina_Bool fixed) EINA_ARG_NONNULL(1);
6219 EAPI Eina_Bool elm_panes_fixed_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6222 typedef enum _Elm_Flip_Mode
6224 ELM_FLIP_ROTATE_Y_CENTER_AXIS,
6225 ELM_FLIP_ROTATE_X_CENTER_AXIS,
6226 ELM_FLIP_ROTATE_XZ_CENTER_AXIS,
6227 ELM_FLIP_ROTATE_YZ_CENTER_AXIS,
6229 ELM_FLIP_CUBE_RIGHT,
6233 ELM_FLIP_PAGE_RIGHT,
6237 typedef enum _Elm_Flip_Interaction
6239 ELM_FLIP_INTERACTION_NONE,
6240 ELM_FLIP_INTERACTION_ROTATE,
6241 ELM_FLIP_INTERACTION_CUBE,
6242 ELM_FLIP_INTERACTION_PAGE
6243 } Elm_Flip_Interaction;
6244 typedef enum _Elm_Flip_Direction
6246 ELM_FLIP_DIRECTION_UP,
6247 ELM_FLIP_DIRECTION_DOWN,
6248 ELM_FLIP_DIRECTION_LEFT,
6249 ELM_FLIP_DIRECTION_RIGHT
6250 } Elm_Flip_Direction;
6252 EAPI Evas_Object *elm_flip_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6253 EAPI void elm_flip_content_front_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
6254 EAPI void elm_flip_content_back_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
6255 EAPI Evas_Object *elm_flip_content_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6256 EAPI Evas_Object *elm_flip_content_back_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6257 EAPI Evas_Object *elm_flip_content_front_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6258 EAPI Evas_Object *elm_flip_content_back_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6259 EAPI Eina_Bool elm_flip_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6260 EAPI void elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
6261 EAPI void elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode) EINA_ARG_NONNULL(1);
6262 EAPI void elm_flip_interaction_set(Evas_Object *obj, Elm_Flip_Interaction mode);
6263 EAPI Elm_Flip_Interaction elm_flip_interaction_get(const Evas_Object *obj);
6264 EAPI void elm_flip_interacton_direction_enabled_set(Evas_Object *obj, Elm_Flip_Direction dir, Eina_Bool enabled);
6265 EAPI Eina_Bool elm_flip_interacton_direction_enabled_get(Evas_Object *obj, Elm_Flip_Direction dir);
6266 EAPI void elm_flip_interacton_direction_hitsize_set(Evas_Object *obj, Elm_Flip_Direction dir, double hitsize);
6267 EAPI double elm_flip_interacton_direction_hitsize_get(Evas_Object *obj, Elm_Flip_Direction dir);
6268 /* smart callbacks called:
6269 * "animate,begin" - when a flip animation was started
6270 * "animate,done" - when a flip animation is finished
6274 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6275 EINA_DEPRECATED EAPI void elm_scrolled_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
6276 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6277 EINA_DEPRECATED EAPI void elm_scrolled_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
6278 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6279 EINA_DEPRECATED EAPI void elm_scrolled_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
6280 EINA_DEPRECATED EAPI const char *elm_scrolled_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6281 EINA_DEPRECATED EAPI void elm_scrolled_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
6282 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6283 EINA_DEPRECATED EAPI const char *elm_scrolled_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6284 EINA_DEPRECATED EAPI void elm_scrolled_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
6285 EINA_DEPRECATED EAPI void elm_scrolled_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
6286 EINA_DEPRECATED EAPI void elm_scrolled_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
6287 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6288 EINA_DEPRECATED EAPI void elm_scrolled_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
6289 EINA_DEPRECATED EAPI void elm_scrolled_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
6290 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
6291 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
6292 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
6293 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
6294 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
6295 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
6296 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
6297 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
6298 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
6299 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
6300 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6301 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6302 EINA_DEPRECATED EAPI const char *elm_scrolled_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6303 EINA_DEPRECATED EAPI void elm_scrolled_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
6304 EINA_DEPRECATED EAPI int elm_scrolled_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6305 EINA_DEPRECATED EAPI void elm_scrolled_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
6306 EINA_DEPRECATED EAPI void elm_scrolled_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
6307 EINA_DEPRECATED EAPI void elm_scrolled_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
6308 EINA_DEPRECATED EAPI void elm_scrolled_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
6309 EINA_DEPRECATED EAPI void elm_scrolled_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) EINA_ARG_NONNULL(1);
6310 EINA_DEPRECATED EAPI void elm_scrolled_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
6311 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6312 EINA_DEPRECATED EAPI void elm_scrolled_entry_scrollbar_policy_set(Evas_Object *obj, Elm_Scroller_Policy h, Elm_Scroller_Policy v) EINA_ARG_NONNULL(1);
6313 EINA_DEPRECATED EAPI void elm_scrolled_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
6314 EINA_DEPRECATED EAPI void elm_scrolled_entry_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
6315 EINA_DEPRECATED EAPI void elm_scrolled_entry_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1, 2);
6316 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6317 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6318 EINA_DEPRECATED EAPI void elm_scrolled_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
6319 EINA_DEPRECATED EAPI void elm_scrolled_entry_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1, 2);
6320 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6321 EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6322 EINA_DEPRECATED EAPI void elm_scrolled_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
6323 EINA_DEPRECATED EAPI void elm_scrolled_entry_item_provider_append(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *entry, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
6324 EINA_DEPRECATED EAPI void elm_scrolled_entry_item_provider_prepend(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *entry, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
6325 EINA_DEPRECATED EAPI void elm_scrolled_entry_item_provider_remove(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *entry, const char *item), void *data) EINA_ARG_NONNULL(1, 2);
6326 EINA_DEPRECATED EAPI void elm_scrolled_entry_text_filter_append(Evas_Object *obj, void (*func) (void *data, Evas_Object *entry, char **text), void *data) EINA_ARG_NONNULL(1, 2);
6327 EINA_DEPRECATED EAPI void elm_scrolled_entry_text_filter_prepend(Evas_Object *obj, void (*func) (void *data, Evas_Object *entry, char **text), void *data) EINA_ARG_NONNULL(1, 2);
6328 EINA_DEPRECATED EAPI void elm_scrolled_entry_text_filter_remove(Evas_Object *obj, void (*func) (void *data, Evas_Object *entry, char **text), void *data) EINA_ARG_NONNULL(1, 2);
6329 EINA_DEPRECATED EAPI void elm_scrolled_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
6330 EINA_DEPRECATED EAPI void elm_scrolled_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
6331 EINA_DEPRECATED EAPI void elm_scrolled_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
6332 EINA_DEPRECATED EAPI void elm_scrolled_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
6333 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6334 EINA_DEPRECATED EAPI void elm_scrolled_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
6335 EINA_DEPRECATED EAPI Eina_Bool elm_scrolled_entry_cnp_textonly_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
6336 EINA_DEPRECATED EAPI void elm_scrolled_entry_line_char_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
6337 EINA_DEPRECATED EAPI void elm_scrolled_entry_input_panel_enabled_set(Evas_Object *obj, Eina_Bool enabled);
6338 EINA_DEPRECATED EAPI void elm_scrolled_entry_input_panel_layout_set(Evas_Object *obj, Elm_Input_Panel_Layout layout);
6339 EINA_DEPRECATED EAPI Ecore_IMF_Context *elm_scrolled_entry_imf_context_get(Evas_Object *obj);
6340 EINA_DEPRECATED EAPI void elm_scrolled_entry_autocapitalization_set(Evas_Object *obj, Eina_Bool autocap);
6341 EINA_DEPRECATED EAPI void elm_scrolled_entry_autoperiod_set(Evas_Object *obj, Eina_Bool autoperiod);
6344 EAPI Evas_Object *elm_conformant_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6345 EAPI void elm_conformant_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
6346 EAPI Evas_Object *elm_conformant_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6347 EAPI Evas_Object *elm_conformant_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6348 EAPI Evas_Object *elm_conformant_content_area_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6351 EAPI Evas_Object *elm_mapbuf_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6352 EAPI void elm_mapbuf_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
6353 EAPI Evas_Object *elm_mapbuf_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6354 EAPI Evas_Object *elm_mapbuf_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6355 EAPI void elm_mapbuf_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
6356 EAPI Eina_Bool elm_mapbuf_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6357 EAPI void elm_mapbuf_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
6358 EAPI Eina_Bool elm_mapbuf_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6359 EAPI void elm_mapbuf_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
6360 EAPI Eina_Bool elm_mapbuf_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6363 * @defgroup Flipselector Flip Selector
6365 * A flip selector is a widget to show a set of @b text items, one
6366 * at a time, with the same sheet switching style as the @ref Clock
6367 * "clock" widget, when one changes the current displaying sheet
6368 * (thus, the "flip" in the name).
6370 * User clicks to flip sheets which are @b held for some time will
6371 * make the flip selector to flip continuosly and automatically for
6372 * the user. The interval between flips will keep growing in time,
6373 * so that it helps the user to reach an item which is distant from
6374 * the current selection.
6376 * Smart callbacks one can register to:
6377 * - @c "selected" - when the widget's selected text item is changed
6378 * - @c "overflowed" - when the widget's current selection is changed
6379 * from the first item in its list to the last
6380 * - @c "underflowed" - when the widget's current selection is changed
6381 * from the last item in its list to the first
6383 * Available styles for it:
6386 * Here is an example on its usage:
6387 * @li @ref flipselector_example
6391 * @addtogroup Flipselector
6395 typedef struct _Elm_Flipselector_Item Elm_Flipselector_Item; /**< Item handle for a flip selector widget. */
6398 * Add a new flip selector widget to the given parent Elementary
6399 * (container) widget
6401 * @param parent The parent object
6402 * @return a new flip selector widget handle or @c NULL, on errors
6404 * This function inserts a new flip selector widget on the canvas.
6406 * @ingroup Flipselector
6408 EAPI Evas_Object *elm_flipselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6411 * Programmatically select the next item of a flip selector widget
6413 * @param obj The flipselector object
6415 * @note The selection will be animated. Also, if it reaches the
6416 * end of its list of member items, it will continue with the first
6419 * @ingroup Flipselector
6421 EAPI void elm_flipselector_flip_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
6424 * Programmatically select the previous item of a flip selector
6427 * @param obj The flipselector object
6429 * @note The selection will be animated. Also, if it reaches the
6430 * beginning of its list of member items, it will continue with the
6431 * last one backwards.
6433 * @ingroup Flipselector
6435 EAPI void elm_flipselector_flip_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
6438 * Append a (text) item to a flip selector widget
6440 * @param obj The flipselector object
6441 * @param label The (text) label of the new item
6442 * @param func Convenience callback function to take place when
6444 * @param data Data passed to @p func, above
6445 * @return A handle to the item added or @c NULL, on errors
6447 * The widget's list of labels to show will be appended with the
6448 * given value. If the user wishes so, a callback function pointer
6449 * can be passed, which will get called when this same item is
6452 * @note The current selection @b won't be modified by appending an
6453 * element to the list.
6455 * @note The maximum length of the text label is going to be
6456 * determined <b>by the widget's theme</b>. Strings larger than
6457 * that value are going to be @b truncated.
6459 * @ingroup Flipselector
6461 EAPI Elm_Flipselector_Item *elm_flipselector_item_append(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
6464 * Prepend a (text) item to a flip selector widget
6466 * @param obj The flipselector object
6467 * @param label The (text) label of the new item
6468 * @param func Convenience callback function to take place when
6470 * @param data Data passed to @p func, above
6471 * @return A handle to the item added or @c NULL, on errors
6473 * The widget's list of labels to show will be prepended with the
6474 * given value. If the user wishes so, a callback function pointer
6475 * can be passed, which will get called when this same item is
6478 * @note The current selection @b won't be modified by prepending
6479 * an element to the list.
6481 * @note The maximum length of the text label is going to be
6482 * determined <b>by the widget's theme</b>. Strings larger than
6483 * that value are going to be @b truncated.
6485 * @ingroup Flipselector
6487 EAPI Elm_Flipselector_Item *elm_flipselector_item_prepend(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
6490 * Get the internal list of items in a given flip selector widget.
6492 * @param obj The flipselector object
6493 * @return The list of items (#Elm_Flipselector_Item as data) or @c
6496 * This list is @b not to be modified in any way and must not be
6497 * freed. Use the list members with functions like
6498 * elm_flipselector_item_label_set(),
6499 * elm_flipselector_item_label_get(), elm_flipselector_item_del(),
6500 * elm_flipselector_item_del(),
6501 * elm_flipselector_item_selected_get(),
6502 * elm_flipselector_item_selected_set().
6504 * @warning This list is only valid until @p obj object's internal
6505 * items list is changed. It should be fetched again with another
6506 * call to this function when changes happen.
6508 * @ingroup Flipselector
6510 EAPI const Eina_List *elm_flipselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6513 * Get the first item in the given flip selector widget's list of
6516 * @param obj The flipselector object
6517 * @return The first item or @c NULL, if it has no items (and on
6520 * @see elm_flipselector_item_append()
6521 * @see elm_flipselector_last_item_get()
6523 * @ingroup Flipselector
6525 EAPI Elm_Flipselector_Item *elm_flipselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6528 * Get the last item in the given flip selector widget's list of
6531 * @param obj The flipselector object
6532 * @return The last item or @c NULL, if it has no items (and on
6535 * @see elm_flipselector_item_prepend()
6536 * @see elm_flipselector_first_item_get()
6538 * @ingroup Flipselector
6540 EAPI Elm_Flipselector_Item *elm_flipselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6543 * Get the currently selected item in a flip selector widget.
6545 * @param obj The flipselector object
6546 * @return The selected item or @c NULL, if the widget has no items
6549 * @ingroup Flipselector
6551 EAPI Elm_Flipselector_Item *elm_flipselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6554 * Set whether a given flip selector widget's item should be the
6555 * currently selected one.
6557 * @param item The flip selector item
6558 * @param selected @c EINA_TRUE to select it, @c EINA_FALSE to unselect.
6560 * This sets whether @p item is or not the selected (thus, under
6561 * display) one. If @p item is different than one under display,
6562 * the latter will be unselected. If the @p item is set to be
6563 * unselected, on the other hand, the @b first item in the widget's
6564 * internal members list will be the new selected one.
6566 * @see elm_flipselector_item_selected_get()
6568 * @ingroup Flipselector
6570 EAPI void elm_flipselector_item_selected_set(Elm_Flipselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
6573 * Get whether a given flip selector widget's item is the currently
6576 * @param item The flip selector item
6577 * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
6580 * @see elm_flipselector_item_selected_set()
6582 * @ingroup Flipselector
6584 EAPI Eina_Bool elm_flipselector_item_selected_get(const Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
6587 * Delete a given item from a flip selector widget.
6589 * @param item The item to delete
6591 * @ingroup Flipselector
6593 EAPI void elm_flipselector_item_del(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
6596 * Get the label of a given flip selector widget's item.
6598 * @param item The item to get label from
6599 * @return The text label of @p item or @c NULL, on errors
6601 * @see elm_flipselector_item_label_set()
6603 * @ingroup Flipselector
6605 EAPI const char *elm_flipselector_item_label_get(const Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
6608 * Set the label of a given flip selector widget's item.
6610 * @param item The item to set label on
6611 * @param label The text label string, in UTF-8 encoding
6613 * @see elm_flipselector_item_label_get()
6615 * @ingroup Flipselector
6617 EAPI void elm_flipselector_item_label_set(Elm_Flipselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
6620 * Gets the item before @p item in a flip selector widget's
6621 * internal list of items.
6623 * @param item The item to fetch previous from
6624 * @return The item before the @p item, in its parent's list. If
6625 * there is no previous item for @p item or there's an
6626 * error, @c NULL is returned.
6628 * @see elm_flipselector_item_next_get()
6630 * @ingroup Flipselector
6632 EAPI Elm_Flipselector_Item *elm_flipselector_item_prev_get(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
6635 * Gets the item after @p item in a flip selector widget's
6636 * internal list of items.
6638 * @param item The item to fetch next from
6639 * @return The item after the @p item, in its parent's list. If
6640 * there is no next item for @p item or there's an
6641 * error, @c NULL is returned.
6643 * @see elm_flipselector_item_next_get()
6645 * @ingroup Flipselector
6647 EAPI Elm_Flipselector_Item *elm_flipselector_item_next_get(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
6650 * Set the interval on time updates for an user mouse button hold
6651 * on a flip selector widget.
6653 * @param obj The flip selector object
6654 * @param interval The (first) interval value in seconds
6656 * This interval value is @b decreased while the user holds the
6657 * mouse pointer either flipping up or flipping doww a given flip
6660 * This helps the user to get to a given item distant from the
6661 * current one easier/faster, as it will start to flip quicker and
6662 * quicker on mouse button holds.
6664 * The calculation for the next flip interval value, starting from
6665 * the one set with this call, is the previous interval divided by
6666 * 1.05, so it decreases a little bit.
6668 * The default starting interval value for automatic flips is
6671 * @see elm_flipselector_interval_get()
6673 * @ingroup Flipselector
6675 EAPI void elm_flipselector_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
6678 * Get the interval on time updates for an user mouse button hold
6679 * on a flip selector widget.
6681 * @param obj The flip selector object
6682 * @return The (first) interval value, in seconds, set on it
6684 * @see elm_flipselector_interval_set() for more details
6686 * @ingroup Flipselector
6688 EAPI double elm_flipselector_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6695 * @addtogroup Animator Animator
6696 * @ingroup Elementary
6698 * @brief Functions to ease creation of animations.
6700 * elm_animator is designed to provide an easy way to create animations.
6701 * Creating an animation with elm_animator is as simple as setting a
6702 * duration, an operating callback and telling it to run the animation.
6703 * However that is not the full extent of elm_animator's ability, animations
6704 * can be paused and resumed, reversed and the animation need not be linear.
6706 * To run an animation you must specify at least a duration and operation
6707 * callback, not setting any other properties will create a linear animation
6708 * that runs once and is not reversed.
6710 * @ref elm_animator_example_page_01 "This" example should make all of that
6713 * @warning elm_animator is @b not a widget.
6717 * @brief Type of curve desired for animation.
6719 * The speed in which an animation happens doesn't have to be linear, some
6720 * animations will look better if they're accelerating or decelerating, so
6721 * elm_animator provides four options in this regard:
6722 * @image html elm_animator_curve_style.png
6723 * @image latex elm_animator_curve_style.eps width=\textwidth
6724 * As can be seen in the image the speed of the animation will be:
6725 * @li ELM_ANIMATOR_CURVE_LINEAR constant
6726 * @li ELM_ANIMATOR_CURVE_IN_OUT start slow, speed up and then slow down
6727 * @li ELM_ANIMATOR_CURVE_IN start slow and then speed up
6728 * @li ELM_ANIMATOR_CURVE_OUT start fast and then slow down
6732 ELM_ANIMATOR_CURVE_LINEAR,
6733 ELM_ANIMATOR_CURVE_IN_OUT,
6734 ELM_ANIMATOR_CURVE_IN,
6735 ELM_ANIMATOR_CURVE_OUT
6736 } Elm_Animator_Curve_Style;
6737 typedef struct _Elm_Animator Elm_Animator;
6739 * Called back per loop of an elementary animators cycle
6740 * @param data user-data given to elm_animator_operation_callback_set()
6741 * @param animator the animator being run
6742 * @param double the position in the animation
6744 typedef void (*Elm_Animator_Operation_Cb) (void *data, Elm_Animator *animator, double frame);
6746 * Called back when an elementary animator finishes
6747 * @param data user-data given to elm_animator_completion_callback_set()
6749 typedef void (*Elm_Animator_Completion_Cb) (void *data);
6752 * @brief Create a new animator.
6754 * @param[in] parent Parent object
6756 * The @a parent argument can be set to NULL for no parent. If a parent is set
6757 * there is no need to call elm_animator_del(), when the parent is deleted it
6758 * will delete the animator.
6759 * @deprecated Use @ref Transit instead.
6762 EINA_DEPRECATED EAPI Elm_Animator* elm_animator_add(Evas_Object *parent);
6764 * Deletes the animator freeing any resources it used. If the animator was
6765 * created with a NULL parent this must be called, otherwise it will be
6766 * automatically called when the parent is deleted.
6768 * @param[in] animator Animator object
6769 * @deprecated Use @ref Transit instead.
6771 EINA_DEPRECATED EAPI void elm_animator_del(Elm_Animator *animator) EINA_ARG_NONNULL(1);
6773 * Set the duration of the animation.
6775 * @param[in] animator Animator object
6776 * @param[in] duration Duration in second
6777 * @deprecated Use @ref Transit instead.
6779 EINA_DEPRECATED EAPI void elm_animator_duration_set(Elm_Animator *animator, double duration) EINA_ARG_NONNULL(1);
6781 * @brief Set the callback function for animator operation.
6783 * @param[in] animator Animator object
6784 * @param[in] func @ref Elm_Animator_Operation_Cb "Callback" function pointer
6785 * @param[in] data Callback function user argument
6787 * The @p func callback will be called with a frame value in range [0, 1] which
6788 * indicates how far along the animation should be. It is the job of @p func to
6789 * actually change the state of any object(or objects) that are being animated.
6790 * @deprecated Use @ref Transit instead.
6792 EINA_DEPRECATED EAPI void elm_animator_operation_callback_set(Elm_Animator *animator, Elm_Animator_Operation_Cb func, void *data) EINA_ARG_NONNULL(1);
6794 * Set the callback function for the when the animation ends.
6796 * @param[in] animator Animator object
6797 * @param[in] func Callback function pointe
6798 * @param[in] data Callback function user argument
6800 * @warning @a func will not be executed if elm_animator_stop() is called.
6801 * @deprecated Use @ref Transit instead.
6803 EINA_DEPRECATED EAPI void elm_animator_completion_callback_set(Elm_Animator *animator, Elm_Animator_Completion_Cb func, void *data) EINA_ARG_NONNULL(1);
6805 * @brief Stop animator.
6807 * @param[in] animator Animator object
6809 * If called before elm_animator_animate() it does nothing. If there is an
6810 * animation in progress the animation will be stopped(the operation callback
6811 * will not be executed again) and it can't be restarted using
6812 * elm_animator_resume().
6813 * @deprecated Use @ref Transit instead.
6815 EINA_DEPRECATED EAPI void elm_animator_stop(Elm_Animator *animator) EINA_ARG_NONNULL(1);
6817 * Set the animator repeat count.
6819 * @param[in] animator Animator object
6820 * @param[in] repeat_cnt Repeat count
6821 * @deprecated Use @ref Transit instead.
6823 EINA_DEPRECATED EAPI void elm_animator_repeat_set(Elm_Animator *animator, unsigned int repeat_cnt) EINA_ARG_NONNULL(1);
6825 * @brief Start animation.
6827 * @param[in] animator Animator object
6829 * This function starts the animation if the nescessary properties(duration
6830 * and operation callback) have been set. Once started the animation will
6831 * run until complete or elm_animator_stop() is called.
6832 * @deprecated Use @ref Transit instead.
6834 EINA_DEPRECATED EAPI void elm_animator_animate(Elm_Animator *animator) EINA_ARG_NONNULL(1);
6836 * Sets the animation @ref Elm_Animator_Curve_Style "acceleration style".
6838 * @param[in] animator Animator object
6839 * @param[in] cs Curve style. Default is ELM_ANIMATOR_CURVE_LINEAR
6840 * @deprecated Use @ref Transit instead.
6842 EINA_DEPRECATED EAPI void elm_animator_curve_style_set(Elm_Animator *animator, Elm_Animator_Curve_Style cs) EINA_ARG_NONNULL(1);
6844 * Gets the animation @ref Elm_Animator_Curve_Style "acceleration style".
6846 * @param[in] animator Animator object
6847 * @param[in] cs Curve style. Default is ELM_ANIMATOR_CURVE_LINEAR
6848 * @deprecated Use @ref Transit instead.
6850 EINA_DEPRECATED EAPI Elm_Animator_Curve_Style elm_animator_curve_style_get(const Elm_Animator *animator) EINA_ARG_NONNULL(1);
6852 * @brief Sets wether the animation should be automatically reversed.
6854 * @param[in] animator Animator object
6855 * @param[in] reverse Reverse or not
6857 * This controls wether the animation will be run on reverse imediately after
6858 * running forward. When this is set together with repetition the animation
6859 * will run in reverse once for each time it ran forward.@n
6860 * Runnin an animation in reverse is accomplished by calling the operation
6861 * callback with a frame value starting at 1 and diminshing until 0.
6862 * @deprecated Use @ref Transit instead.
6864 EINA_DEPRECATED EAPI void elm_animator_auto_reverse_set(Elm_Animator *animator, Eina_Bool reverse) EINA_ARG_NONNULL(1);
6866 * Gets wether the animation will automatically reversed
6868 * @param[in] animator Animator object
6869 * @deprecated Use @ref Transit instead.
6871 EINA_DEPRECATED EAPI Eina_Bool elm_animator_auto_reverse_get(const Elm_Animator *animator) EINA_ARG_NONNULL(1);
6873 * Gets the status for the animator operation. The status of the animator @b
6874 * doesn't take in to account elm_animator_pause() or elm_animator_resume(), it
6875 * only informs if the animation was started and has not ended(either normally
6876 * or through elm_animator_stop()).
6878 * @param[in] animator Animator object
6879 * @deprecated Use @ref Transit instead.
6881 EINA_DEPRECATED EAPI Eina_Bool elm_animator_operating_get(const Elm_Animator *animator) EINA_ARG_NONNULL(1);
6883 * Gets how many times the animation will be repeated
6885 * @param[in] animator Animator object
6886 * @deprecated Use @ref Transit instead.
6888 EINA_DEPRECATED EAPI unsigned int elm_animator_repeat_get(const Elm_Animator *animator) EINA_ARG_NONNULL(1);
6890 * Pause the animator.
6892 * @param[in] animator Animator object
6894 * This causes the animation to be temporarily stopped(the operation callback
6895 * will not be called). If the animation is not yet running this is a no-op.
6896 * Once an animation has been paused with this function it can be resumed
6897 * using elm_animator_resume().
6898 * @deprecated Use @ref Transit instead.
6900 EINA_DEPRECATED EAPI void elm_animator_pause(Elm_Animator *animator) EINA_ARG_NONNULL(1);
6902 * @brief Resumes the animator.
6904 * @param[in] animator Animator object
6906 * Resumes an animation that was paused using elm_animator_pause(), after
6907 * calling this function calls to the operation callback will happen
6908 * normally. If an animation is stopped by means of elm_animator_stop it
6909 * @b can't be restarted with this function.@n
6911 * @warning When an animation is resumed it doesn't start from where it was paused, it
6912 * will go to where it would have been if it had not been paused. If an
6913 * animation with a duration of 3 seconds is paused after 1 second for 1 second
6914 * it will resume as if it had ben animating for 2 seconds, the operating
6915 * callback will be called with a frame value of aproximately 2/3.
6916 * @deprecated Use @ref Transit instead.
6918 EINA_DEPRECATED EAPI void elm_animator_resume(Elm_Animator *animator) EINA_ARG_NONNULL(1);
6926 ELM_CALENDAR_UNIQUE,
6928 ELM_CALENDAR_WEEKLY,
6929 ELM_CALENDAR_MONTHLY,
6930 ELM_CALENDAR_ANNUALLY
6931 } Elm_Calendar_Mark_Repeat;
6932 typedef struct _Elm_Calendar_Mark Elm_Calendar_Mark;
6934 EAPI Evas_Object *elm_calendar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6935 EAPI const char **elm_calendar_weekdays_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6936 EAPI void elm_calendar_weekdays_names_set(Evas_Object *obj, const char *weekdays[]) EINA_ARG_NONNULL(1, 2);
6937 EAPI double elm_calendar_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6938 EAPI void elm_calendar_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
6939 EAPI void elm_calendar_min_max_year_get(const Evas_Object *obj, int *min, int *max) EINA_ARG_NONNULL(1);
6940 EAPI void elm_calendar_min_max_year_set(Evas_Object *obj, int min, int max) EINA_ARG_NONNULL(1);
6941 EAPI Eina_Bool elm_calendar_day_selection_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6942 EAPI void elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
6943 EAPI Eina_Bool elm_calendar_selected_time_get(const Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1, 2);
6944 EAPI void elm_calendar_selected_time_set(Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1);
6945 EAPI void elm_calendar_format_function_set(Evas_Object *obj, char * (*format_function) (struct tm *stime)) EINA_ARG_NONNULL(1);
6946 EAPI Elm_Calendar_Mark *elm_calendar_mark_add(Evas_Object *obj, const char *mark_type, struct tm *mark_time, Elm_Calendar_Mark_Repeat repeat) EINA_ARG_NONNULL(1);
6947 EAPI void elm_calendar_mark_del(Elm_Calendar_Mark *mark) EINA_ARG_NONNULL(1);
6948 EAPI void elm_calendar_marks_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
6949 EAPI const Eina_List *elm_calendar_marks_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6950 EAPI void elm_calendar_marks_draw(Evas_Object *obj) EINA_ARG_NONNULL(1);
6951 EINA_DEPRECATED EAPI void elm_calendar_text_saturday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
6952 EINA_DEPRECATED EAPI void elm_calendar_text_sunday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
6953 EINA_DEPRECATED EAPI void elm_calendar_text_weekday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
6954 /* smart callbacks called:
6955 * changed - emitted when the user select a day or change the displayed
6960 typedef struct _Elm_Diskselector_Item Elm_Diskselector_Item;
6962 EAPI Evas_Object *elm_diskselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6963 EAPI Eina_Bool elm_diskselector_round_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6964 EAPI void elm_diskselector_round_set(Evas_Object *obj, Eina_Bool round) EINA_ARG_NONNULL(1);
6965 EINA_DEPRECATED EAPI int elm_diskselector_side_label_lenght_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6966 EINA_DEPRECATED EAPI void elm_diskselector_side_label_lenght_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
6967 EAPI int elm_diskselector_side_label_length_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6968 EAPI void elm_diskselector_side_label_length_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
6969 EAPI void elm_diskselector_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
6970 EAPI void elm_diskselector_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
6971 EAPI void elm_diskselector_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
6972 EAPI void elm_diskselector_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
6973 EAPI void elm_diskselector_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
6974 EAPI const Eina_List *elm_diskselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6975 EAPI Elm_Diskselector_Item *elm_diskselector_item_append(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
6976 EAPI void elm_diskselector_item_del(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
6977 EAPI void elm_diskselector_item_del_cb_set(Elm_Diskselector_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
6978 EAPI void *elm_diskselector_item_data_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
6979 EAPI Evas_Object *elm_diskselector_item_icon_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
6980 EAPI void elm_diskselector_item_icon_set(Elm_Diskselector_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
6981 EAPI const char *elm_diskselector_item_label_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
6982 EAPI void elm_diskselector_item_label_set(Elm_Diskselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
6983 EAPI Elm_Diskselector_Item *elm_diskselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6984 EAPI void elm_diskselector_item_selected_set(Elm_Diskselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
6985 EAPI Eina_Bool elm_diskselector_item_selected_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
6986 EAPI Elm_Diskselector_Item *elm_diskselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6987 EAPI Elm_Diskselector_Item *elm_diskselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6988 EAPI Elm_Diskselector_Item *elm_diskselector_item_prev_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
6989 EAPI Elm_Diskselector_Item *elm_diskselector_item_next_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
6990 EAPI void elm_diskselector_item_tooltip_text_set(Elm_Diskselector_Item *item, const char *text) EINA_ARG_NONNULL(1);
6991 EAPI void elm_diskselector_item_tooltip_content_cb_set(Elm_Diskselector_Item *item, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) EINA_ARG_NONNULL(1);
6992 EAPI void elm_diskselector_item_tooltip_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
6993 EAPI void elm_diskselector_item_tooltip_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
6994 EAPI const char *elm_diskselector_item_tooltip_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
6995 EAPI void elm_diskselector_item_cursor_set(Elm_Diskselector_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
6996 EAPI const char *elm_diskselector_item_cursor_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
6997 EAPI void elm_diskselector_item_cursor_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
6998 EAPI void elm_diskselector_item_cursor_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
6999 EAPI const char *elm_diskselector_item_cursor_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
7000 EAPI void elm_diskselector_item_cursor_engine_only_set(Elm_Diskselector_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
7001 EAPI Eina_Bool elm_diskselector_item_cursor_engine_only_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
7002 EAPI void elm_diskselector_display_item_num_set(Evas_Object *obj, int num) EINA_ARG_NONNULL(1);
7003 /* smart callbacks called:
7004 * "selected" - when item is selected (scroller stops)
7008 * @page tutorial_colorselector Color selector example
7009 * @dontinclude colorselector_example_01.c
7011 * This example shows how to change the color of a rectangle using a color
7012 * selector. We aren't going to explain a lot of the code since it's the
7016 * Now that we have a window with background and a rectangle we can create
7017 * our color_selector and set it's initial color to fully opaque blue:
7020 * Next we tell ask to be notified whenever the color changes:
7023 * We follow that we some more run of the mill setup code:
7026 * And now get to the callback that sets the color of the rectangle:
7029 * This example will look like this:
7030 * @image html screenshots/colorselector_example_01.png
7031 * @image latex screenshots/colorselector_example_01.eps
7033 * @example colorselector_example_01.c
7036 * @defgroup Colorselector Colorselector
7040 * @brief Widget for user to select a color.
7042 * Signals that you can add callbacks for are:
7043 * "changed" - When the color value changes(event_info is NULL).
7045 * See @ref tutorial_colorselector.
7048 * @brief Add a new colorselector to the parent
7050 * @param parent The parent object
7051 * @return The new object or NULL if it cannot be created
7053 * @ingroup Colorselector
7055 EAPI Evas_Object *elm_colorselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7057 * Set a color for the colorselector
7059 * @param obj Colorselector object
7060 * @param r r-value of color
7061 * @param g g-value of color
7062 * @param b b-value of color
7063 * @param a a-value of color
7065 * @ingroup Colorselector
7067 EAPI void elm_colorselector_color_set(Evas_Object *obj, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
7069 * Get a color from the colorselector
7071 * @param obj Colorselector object
7072 * @param r integer pointer for r-value of color
7073 * @param g integer pointer for g-value of color
7074 * @param b integer pointer for b-value of color
7075 * @param a integer pointer for a-value of color
7077 * @ingroup Colorselector
7079 EAPI void elm_colorselector_color_get(const Evas_Object *obj, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
7084 /* Contextual Popup */
7085 typedef struct _Elm_Ctxpopup_Item Elm_Ctxpopup_Item;
7087 typedef enum _Elm_Ctxpopup_Direction
7089 ELM_CTXPOPUP_DIRECTION_DOWN,
7090 ELM_CTXPOPUP_DIRECTION_RIGHT,
7091 ELM_CTXPOPUP_DIRECTION_LEFT,
7092 ELM_CTXPOPUP_DIRECTION_UP,
7093 ELM_CTXPOPUP_DIRECTION_UNKNOWN, /**< ctxpopup does not determine it's direction yet*/
7094 } Elm_Ctxpopup_Direction;
7096 EAPI Evas_Object *elm_ctxpopup_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7097 EAPI Evas_Object *elm_ctxpopup_item_icon_get(const Elm_Ctxpopup_Item *item) EINA_ARG_NONNULL(1);
7098 EAPI void elm_ctxpopup_item_icon_set(Elm_Ctxpopup_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
7099 EAPI const char *elm_ctxpopup_item_label_get(const Elm_Ctxpopup_Item *item) EINA_ARG_NONNULL(1);
7100 EAPI void elm_ctxpopup_item_label_set(Elm_Ctxpopup_Item *item, const char *label) EINA_ARG_NONNULL(1);
7101 EAPI void elm_ctxpopup_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1, 2);
7102 EAPI Evas_Object *elm_ctxpopup_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7103 EAPI void elm_ctxpopup_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
7104 EAPI void elm_ctxpopup_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
7105 EAPI Eina_Bool elm_ctxpopup_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7106 Elm_Ctxpopup_Item *elm_ctxpopup_item_append(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
7107 EAPI void elm_ctxpopup_item_del(Elm_Ctxpopup_Item *item) EINA_ARG_NONNULL(1);
7108 EAPI void elm_ctxpopup_item_disabled_set(Elm_Ctxpopup_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
7109 EAPI Eina_Bool elm_ctxpopup_item_disabled_get(const Elm_Ctxpopup_Item *item) EINA_ARG_NONNULL(1);
7110 EAPI void elm_ctxpopup_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1, 2);
7111 EAPI Evas_Object *elm_ctxpopup_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7112 EAPI void elm_ctxpopup_direction_priority_set(Evas_Object *obj, Elm_Ctxpopup_Direction first, Elm_Ctxpopup_Direction second, Elm_Ctxpopup_Direction third, Elm_Ctxpopup_Direction fourth) EINA_ARG_NONNULL(1);
7113 EAPI void elm_ctxpopup_direction_priority_get(Evas_Object *obj, Elm_Ctxpopup_Direction *first, Elm_Ctxpopup_Direction *second, Elm_Ctxpopup_Direction *third, Elm_Ctxpopup_Direction *fourth) EINA_ARG_NONNULL(1);
7114 EAPI Elm_Ctxpopup_Direction elm_ctxpopup_direction_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7115 /* smart callbacks called:
7116 * "dismissed" - the ctxpopup was dismissed
7122 * @defgroup Transit Transit
7123 * @ingroup Elementary
7125 * Transit is designed to apply various animated transition effects to @c
7126 * Evas_Object, such like translation, rotation, etc. For using these
7127 * effects, create an @ref Elm_Transit and add the desired transition effects.
7129 * Once the effects are added into transit, they will be automatically
7130 * managed (their callback will be called until the duration is ended, and
7131 * they will be deleted on completion).
7135 * Elm_Transit *trans = elm_transit_add();
7136 * elm_transit_object_add(trans, obj);
7137 * elm_transit_effect_translation_add(trans, 0, 0, 280, 280
7138 * elm_transit_duration_set(transit, 1);
7139 * elm_transit_auto_reverse_set(transit, EINA_TRUE);
7140 * elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
7141 * elm_transit_repeat_times_set(transit, 3);
7144 * Some transition effects are used to change the properties of objects. They
7146 * @li @ref elm_transit_effect_translation_add
7147 * @li @ref elm_transit_effect_color_add
7148 * @li @ref elm_transit_effect_rotation_add
7149 * @li @ref elm_transit_effect_wipe_add
7150 * @li @ref elm_transit_effect_zoom_add
7151 * @li @ref elm_transit_effect_resizing_add
7153 * Other transition effects are used to make one object disappear and another
7154 * object appear on its old place. These effects are:
7156 * @li @ref elm_transit_effect_flip_add
7157 * @li @ref elm_transit_effect_resizable_flip_add
7158 * @li @ref elm_transit_effect_fade_add
7159 * @li @ref elm_transit_effect_blend_add
7161 * It's also possible to make a transition chain with @ref
7162 * elm_transit_chain_transit_add.
7164 * @warning We strongly recommend to use elm_transit just when edje can not do
7165 * the trick. Edje has more advantage than Elm_Transit, it has more flexibility and
7166 * animations can be manipulated inside the theme.
7169 * @li @ref transit_example_01_explained
7170 * @li @ref transit_example_02_explained
7171 * @li @ref transit_example_03_c
7172 * @li @ref transit_example_04_c
7178 * @enum Elm_Transit_Tween_Mode
7180 * The type of acceleration used in the transition.
7184 ELM_TRANSIT_TWEEN_MODE_LINEAR, /**< Constant speed */
7185 ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL, /**< Starts slow, increase speed
7186 over time, then decrease again
7188 ELM_TRANSIT_TWEEN_MODE_DECELERATE, /**< Starts fast and decrease
7190 ELM_TRANSIT_TWEEN_MODE_ACCELERATE /**< Starts slow and increase speed
7192 } Elm_Transit_Tween_Mode;
7195 * @enum Elm_Transit_Effect_Flip_Axis
7197 * The axis where flip effect should be applied.
7201 ELM_TRANSIT_EFFECT_FLIP_AXIS_X, /**< Flip on X axis */
7202 ELM_TRANSIT_EFFECT_FLIP_AXIS_Y /**< Flip on Y axis */
7203 } Elm_Transit_Effect_Flip_Axis;
7205 * @enum Elm_Transit_Effect_Wipe_Dir
7207 * The direction where the wipe effect should occur.
7211 ELM_TRANSIT_EFFECT_WIPE_DIR_LEFT, /**< Wipe to the left */
7212 ELM_TRANSIT_EFFECT_WIPE_DIR_RIGHT, /**< Wipe to the right */
7213 ELM_TRANSIT_EFFECT_WIPE_DIR_UP, /**< Wipe up */
7214 ELM_TRANSIT_EFFECT_WIPE_DIR_DOWN /**< Wipe down */
7215 } Elm_Transit_Effect_Wipe_Dir;
7216 /** @enum Elm_Transit_Effect_Wipe_Type
7218 * Whether the wipe effect should show or hide the object.
7222 ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE, /**< Hide the object during the
7224 ELM_TRANSIT_EFFECT_WIPE_TYPE_SHOW /**< Show the object during the
7226 } Elm_Transit_Effect_Wipe_Type;
7229 * @typedef Elm_Transit
7231 * The Transit created with elm_transit_add(). This type has the information
7232 * about the objects which the transition will be applied, and the
7233 * transition effects that will be used. It also contains info about
7234 * duration, number of repetitions, auto-reverse, etc.
7236 typedef struct _Elm_Transit Elm_Transit;
7237 typedef void Elm_Transit_Effect;
7239 * @typedef Elm_Transit_Effect_Transition_Cb
7241 * Transition callback called for this effect on each transition iteration.
7243 typedef void (*Elm_Transit_Effect_Transition_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit, double progress);
7245 * Elm_Transit_Effect_End_Cb
7247 * Transition callback called for this effect when the transition is over.
7249 typedef void (*Elm_Transit_Effect_End_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit);
7252 * Elm_Transit_Del_Cb
7254 * A callback called when the transit is deleted.
7256 typedef void (*Elm_Transit_Del_Cb) (void *data, Elm_Transit *transit);
7261 * @note Is not necessary to delete the transit object, it will be deleted at
7262 * the end of its operation.
7263 * @note The transit will start playing when the program enter in the main loop, is not
7264 * necessary to give a start to the transit.
7266 * @return The transit object.
7270 EAPI Elm_Transit *elm_transit_add(void);
7273 * Stops the animation and delete the @p transit object.
7275 * Call this function if you wants to stop the animation before the duration
7276 * time. Make sure the @p transit object is still alive with
7277 * elm_transit_del_cb_set() function.
7278 * All added effects will be deleted, calling its repective data_free_cb
7279 * functions. The function setted by elm_transit_del_cb_set() will be called.
7281 * @see elm_transit_del_cb_set()
7283 * @param transit The transit object to be deleted.
7286 * @warning Just call this function if you are sure the transit is alive.
7288 EAPI void elm_transit_del(Elm_Transit *transit) EINA_ARG_NONNULL(1);
7291 * Add a new effect to the transit.
7293 * @note The cb function and the data are the key to the effect. If you try to
7294 * add an already added effect, nothing is done.
7295 * @note After the first addition of an effect in @p transit, if its
7296 * effect list become empty again, the @p transit will be killed by
7297 * elm_transit_del(transit) function.
7301 * Elm_Transit *transit = elm_transit_add();
7302 * elm_transit_effect_add(transit,
7303 * elm_transit_effect_blend_op,
7304 * elm_transit_effect_blend_context_new(),
7305 * elm_transit_effect_blend_context_free);
7308 * @param transit The transit object.
7309 * @param transition_cb The operation function. It is called when the
7310 * animation begins, it is the function that actually performs the animation.
7311 * It is called with the @p data, @p transit and the time progression of the
7312 * animation (a double value between 0.0 and 1.0).
7313 * @param effect The context data of the effect.
7314 * @param end_cb The function to free the context data, it will be called
7315 * at the end of the effect, it must finalize the animation and free the
7319 * @warning The transit free the context data at the and of the transition with
7320 * the data_free_cb function, do not use the context data in another transit.
7322 EAPI void elm_transit_effect_add(Elm_Transit *transit, Elm_Transit_Effect_Transition_Cb transition_cb, Elm_Transit_Effect *effect, Elm_Transit_Effect_End_Cb end_cb) EINA_ARG_NONNULL(1, 2);
7325 * Delete an added effect.
7327 * This function will remove the effect from the @p transit, calling the
7328 * data_free_cb to free the @p data.
7330 * @see elm_transit_effect_add()
7332 * @note If the effect is not found, nothing is done.
7333 * @note If the effect list become empty, this function will call
7334 * elm_transit_del(transit), that is, it will kill the @p transit.
7336 * @param transit The transit object.
7337 * @param transition_cb The operation function.
7338 * @param effect The context data of the effect.
7342 EAPI void elm_transit_effect_del(Elm_Transit *transit, Elm_Transit_Effect_Transition_Cb transition_cb, Elm_Transit_Effect *effect) EINA_ARG_NONNULL(1, 2);
7345 * Add new object to apply the effects.
7347 * @note After the first addition of an object in @p transit, if its
7348 * object list become empty again, the @p transit will be killed by
7349 * elm_transit_del(transit) function.
7350 * @note If the @p obj belongs to another transit, the @p obj will be
7351 * removed from it and it will only belong to the @p transit. If the old
7352 * transit stays without objects, it will die.
7353 * @note When you add an object into the @p transit, its state from
7354 * evas_object_pass_events_get(obj) is saved, and it is applied when the
7355 * transit ends, if you change this state whith evas_object_pass_events_set()
7356 * after add the object, this state will change again when @p transit stops to
7359 * @param transit The transit object.
7360 * @param obj Object to be animated.
7363 * @warning It is not allowed to add a new object after transit begins to go.
7365 EAPI void elm_transit_object_add(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
7368 * Removes an added object from the transit.
7370 * @note If the @p obj is not in the @p transit, nothing is done.
7371 * @note If the list become empty, this function will call
7372 * elm_transit_del(transit), that is, it will kill the @p transit.
7374 * @param transit The transit object.
7375 * @param obj Object to be removed from @p transit.
7378 * @warning It is not allowed to remove objects after transit begins to go.
7380 EAPI void elm_transit_object_remove(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
7383 * Get the objects of the transit.
7385 * @param transit The transit object.
7386 * @return a Eina_List with the objects from the transit.
7390 EAPI const Eina_List *elm_transit_objects_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
7393 * Enable/disable keeping up the objects states.
7394 * If it is not kept, the objects states will be reset when transition ends.
7396 * @note @p transit can not be NULL.
7397 * @note One state includes geometry, color, map data.
7399 * @param transit The transit object.
7400 * @param state_keep Keeping or Non Keeping.
7404 EAPI void elm_transit_objects_final_state_keep_set(Elm_Transit *transit, Eina_Bool state_keep) EINA_ARG_NONNULL(1);
7407 * Get a value whether the objects states will be reset or not.
7409 * @note @p transit can not be NULL
7411 * @see elm_transit_objects_final_state_keep_set()
7413 * @param transit The transit object.
7414 * @return EINA_TRUE means the states of the objects will be reset.
7415 * If @p transit is NULL, EINA_FALSE is returned
7419 EAPI Eina_Bool elm_transit_objects_final_state_keep_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
7422 * Set the event enabled when transit is operating.
7424 * If @p enabled is EINA_TRUE, the objects of the transit will receives
7425 * events from mouse and keyboard during the animation.
7426 * @note When you add an object with elm_transit_object_add(), its state from
7427 * evas_object_pass_events_get(obj) is saved, and it is applied when the
7428 * transit ends, if you change this state with evas_object_pass_events_set()
7429 * after adding the object, this state will change again when @p transit stops
7432 * @param transit The transit object.
7433 * @param enabled Events are received when enabled is @c EINA_TRUE, and
7434 * ignored otherwise.
7438 EAPI void elm_transit_event_enabled_set(Elm_Transit *transit, Eina_Bool enabled) EINA_ARG_NONNULL(1);
7441 * Get the value of event enabled status.
7443 * @see elm_transit_event_enabled_set()
7445 * @param transit The Transit object
7446 * @return EINA_TRUE, when event is enabled. If @p transit is NULL
7447 * EINA_FALSE is returned
7451 EAPI Eina_Bool elm_transit_event_enabled_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
7454 * Set the user-callback function when the transit is deleted.
7456 * @note Using this function twice will overwrite the first function setted.
7457 * @note the @p transit object will be deleted after call @p cb function.
7459 * @param transit The transit object.
7460 * @param cb Callback function pointer. This function will be called before
7461 * the deletion of the transit.
7462 * @param data Callback funtion user data. It is the @p op parameter.
7466 EAPI void elm_transit_del_cb_set(Elm_Transit *transit, Elm_Transit_Del_Cb cb, void *data) EINA_ARG_NONNULL(1);
7469 * Set reverse effect automatically.
7471 * If auto reverse is setted, after running the effects with the progress
7472 * parameter from 0 to 1, it will call the effecs again with the progress
7473 * from 1 to 0. The transit will last for a time iqual to (2 * duration * repeat),
7474 * where the duration was setted with the function elm_transit_add and
7475 * the repeat with the function elm_transit_repeat_times_set().
7477 * @param transit The transit object.
7478 * @param reverse EINA_TRUE means the auto_reverse is on.
7482 EAPI void elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse) EINA_ARG_NONNULL(1);
7485 * Get if the auto reverse is on.
7487 * @see elm_transit_auto_reverse_set()
7489 * @param transit The transit object.
7490 * @return EINA_TRUE means auto reverse is on. If @p transit is NULL
7491 * EINA_FALSE is returned
7495 EAPI Eina_Bool elm_transit_auto_reverse_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
7498 * Set the transit repeat count. Effect will be repeated by repeat count.
7500 * This function sets the number of repetition the transit will run after
7501 * the first one, that is, if @p repeat is 1, the transit will run 2 times.
7502 * If the @p repeat is a negative number, it will repeat infinite times.
7504 * @note If this function is called during the transit execution, the transit
7505 * will run @p repeat times, ignoring the times it already performed.
7507 * @param transit The transit object
7508 * @param repeat Repeat count
7512 EAPI void elm_transit_repeat_times_set(Elm_Transit *transit, int repeat) EINA_ARG_NONNULL(1);
7515 * Get the transit repeat count.
7517 * @see elm_transit_repeat_times_set()
7519 * @param transit The Transit object.
7520 * @return The repeat count. If @p transit is NULL
7525 EAPI int elm_transit_repeat_times_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
7528 * Set the transit animation acceleration type.
7530 * This function sets the tween mode of the transit that can be:
7531 * ELM_TRANSIT_TWEEN_MODE_LINEAR - The default mode.
7532 * ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL - Starts in accelerate mode and ends decelerating.
7533 * ELM_TRANSIT_TWEEN_MODE_DECELERATE - The animation will be slowed over time.
7534 * ELM_TRANSIT_TWEEN_MODE_ACCELERATE - The animation will accelerate over time.
7536 * @param transit The transit object.
7537 * @param tween_mode The tween type.
7541 EAPI void elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mode) EINA_ARG_NONNULL(1);
7544 * Get the transit animation acceleration type.
7546 * @note @p transit can not be NULL
7548 * @param transit The transit object.
7549 * @return The tween type. If @p transit is NULL
7550 * ELM_TRANSIT_TWEEN_MODE_LINEAR is returned.
7554 EAPI Elm_Transit_Tween_Mode elm_transit_tween_mode_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
7557 * Set the transit animation time
7559 * @note @p transit can not be NULL
7561 * @param transit The transit object.
7562 * @param duration The animation time.
7566 EAPI void elm_transit_duration_set(Elm_Transit *transit, double duration) EINA_ARG_NONNULL(1);
7569 * Get the transit animation time
7571 * @note @p transit can not be NULL
7573 * @param transit The transit object.
7575 * @return The transit animation time.
7579 EAPI double elm_transit_duration_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
7582 * Starts the transition.
7583 * Once this API is called, the transit begins to measure the time.
7585 * @note @p transit can not be NULL
7587 * @param transit The transit object.
7591 EAPI void elm_transit_go(Elm_Transit *transit) EINA_ARG_NONNULL(1);
7594 * Pause/Resume the transition.
7596 * If you call elm_transit_go again, the transit will be started from the
7597 * beginning, and will be unpaused.
7599 * @note @p transit can not be NULL
7601 * @param transit The transit object.
7602 * @param paused Whether the transition should be paused or not.
7606 EAPI void elm_transit_paused_set(Elm_Transit *transit, Eina_Bool paused) EINA_ARG_NONNULL(1);
7609 * Get the value of paused status.
7611 * @see elm_transit_paused_set()
7613 * @note @p transit can not be NULL
7615 * @param transit The transit object.
7616 * @return EINA_TRUE means transition is paused. If @p transit is NULL
7617 * EINA_FALSE is returned
7621 EAPI Eina_Bool elm_transit_paused_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
7624 * Get the time progression of the animation (a double value between 0.0 and 1.0).
7626 * The value returned is a fraction (current time / total time). It
7627 * represents the progression position relative to the total.
7629 * @note @p transit can not be NULL
7631 * @param transit The transit object.
7633 * @return The time progression value. If @p transit is NULL
7638 EAPI double elm_transit_progress_value_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
7641 * Makes the chain relationship between two transits.
7643 * @note @p transit can not be NULL. Transit would have multiple chain transits.
7644 * @note @p chain_transit can not be NULL. Chain transits could be chained to the only one transit.
7646 * @param transit The transit object.
7647 * @param chain_transit The chain transit object. This transit will be operated
7648 * after transit is done.
7650 * This function adds @p chain_transit transition to a chain after the @p
7651 * transit, and will be started as soon as @p transit ends. See @ref
7652 * transit_example_02_explained for a full example.
7656 EAPI void elm_transit_chain_transit_add(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1, 2);
7659 * Cut off the chain relationship between two transits.
7661 * @note @p transit can not be NULL. Transit would have the chain relationship with @p chain transit.
7662 * @note @p chain_transit can not be NULL. Chain transits should be chained to the @p transit.
7664 * @param transit The transit object.
7665 * @param chain_transit The chain transit object.
7667 * This function remove the @p chain_transit transition from the @p transit.
7671 EAPI void elm_transit_chain_transit_del(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1,2);
7674 * Get the current chain transit list.
7676 * @note @p transit can not be NULL.
7678 * @param transit The transit object.
7679 * @return chain transit list.
7683 EAPI Eina_List *elm_transit_chain_transits_get(const Elm_Transit *transit);
7686 * Add the Resizing Effect to Elm_Transit.
7688 * @note This API is one of the facades. It creates resizing effect context
7689 * and add it's required APIs to elm_transit_effect_add.
7691 * @see elm_transit_effect_add()
7693 * @param transit Transit object.
7694 * @param from_w Object width size when effect begins.
7695 * @param from_h Object height size when effect begins.
7696 * @param to_w Object width size when effect ends.
7697 * @param to_h Object height size when effect ends.
7698 * @return Resizing effect context data.
7702 EAPI Elm_Transit_Effect *elm_transit_effect_resizing_add(Elm_Transit* transit, Evas_Coord from_w, Evas_Coord from_h, Evas_Coord to_w, Evas_Coord to_h);
7705 * Add the Translation Effect to Elm_Transit.
7707 * @note This API is one of the facades. It creates translation effect context
7708 * and add it's required APIs to elm_transit_effect_add.
7710 * @see elm_transit_effect_add()
7712 * @param transit Transit object.
7713 * @param from_dx X Position variation when effect begins.
7714 * @param from_dy Y Position variation when effect begins.
7715 * @param to_dx X Position variation when effect ends.
7716 * @param to_dy Y Position variation when effect ends.
7717 * @return Translation effect context data.
7720 * @warning It is highly recommended just create a transit with this effect when
7721 * the window that the objects of the transit belongs has already been created.
7722 * This is because this effect needs the geometry information about the objects,
7723 * and if the window was not created yet, it can get a wrong information.
7725 EAPI Elm_Transit_Effect *elm_transit_effect_translation_add(Elm_Transit* transit, Evas_Coord from_dx, Evas_Coord from_dy, Evas_Coord to_dx, Evas_Coord to_dy);
7728 * Add the Zoom Effect to Elm_Transit.
7730 * @note This API is one of the facades. It creates zoom effect context
7731 * and add it's required APIs to elm_transit_effect_add.
7733 * @see elm_transit_effect_add()
7735 * @param transit Transit object.
7736 * @param from_rate Scale rate when effect begins (1 is current rate).
7737 * @param to_rate Scale rate when effect ends.
7738 * @return Zoom effect context data.
7741 * @warning It is highly recommended just create a transit with this effect when
7742 * the window that the objects of the transit belongs has already been created.
7743 * This is because this effect needs the geometry information about the objects,
7744 * and if the window was not created yet, it can get a wrong information.
7746 EAPI Elm_Transit_Effect *elm_transit_effect_zoom_add(Elm_Transit *transit, float from_rate, float to_rate);
7749 * Add the Flip Effect to Elm_Transit.
7751 * @note This API is one of the facades. It creates flip effect context
7752 * and add it's required APIs to elm_transit_effect_add.
7753 * @note This effect is applied to each pair of objects in the order they are listed
7754 * in the transit list of objects. The first object in the pair will be the
7755 * "front" object and the second will be the "back" object.
7757 * @see elm_transit_effect_add()
7759 * @param transit Transit object.
7760 * @param axis Flipping Axis(X or Y).
7761 * @param cw Flipping Direction. EINA_TRUE is clock-wise.
7762 * @return Flip effect context data.
7765 * @warning It is highly recommended just create a transit with this effect when
7766 * the window that the objects of the transit belongs has already been created.
7767 * This is because this effect needs the geometry information about the objects,
7768 * and if the window was not created yet, it can get a wrong information.
7770 EAPI Elm_Transit_Effect *elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
7773 * Add the Resizable Flip Effect to Elm_Transit.
7775 * @note This API is one of the facades. It creates resizable flip effect context
7776 * and add it's required APIs to elm_transit_effect_add.
7777 * @note This effect is applied to each pair of objects in the order they are listed
7778 * in the transit list of objects. The first object in the pair will be the
7779 * "front" object and the second will be the "back" object.
7781 * @see elm_transit_effect_add()
7783 * @param transit Transit object.
7784 * @param axis Flipping Axis(X or Y).
7785 * @param cw Flipping Direction. EINA_TRUE is clock-wise.
7786 * @return Resizable flip effect context data.
7789 * @warning It is highly recommended just create a transit with this effect when
7790 * the window that the objects of the transit belongs has already been created.
7791 * This is because this effect needs the geometry information about the objects,
7792 * and if the window was not created yet, it can get a wrong information.
7794 EAPI Elm_Transit_Effect *elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
7797 * Add the Wipe Effect to Elm_Transit.
7799 * @note This API is one of the facades. It creates wipe effect context
7800 * and add it's required APIs to elm_transit_effect_add.
7802 * @see elm_transit_effect_add()
7804 * @param transit Transit object.
7805 * @param type Wipe type. Hide or show.
7806 * @param dir Wipe Direction.
7807 * @return Wipe effect context data.
7810 * @warning It is highly recommended just create a transit with this effect when
7811 * the window that the objects of the transit belongs has already been created.
7812 * This is because this effect needs the geometry information about the objects,
7813 * and if the window was not created yet, it can get a wrong information.
7815 EAPI Elm_Transit_Effect *elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Transit_Effect_Wipe_Type type, Elm_Transit_Effect_Wipe_Dir dir);
7818 * Add the Color Effect to Elm_Transit.
7820 * @note This API is one of the facades. It creates color effect context
7821 * and add it's required APIs to elm_transit_effect_add.
7823 * @see elm_transit_effect_add()
7825 * @param transit Transit object.
7826 * @param from_r RGB R when effect begins.
7827 * @param from_g RGB G when effect begins.
7828 * @param from_b RGB B when effect begins.
7829 * @param from_a RGB A when effect begins.
7830 * @param to_r RGB R when effect ends.
7831 * @param to_g RGB G when effect ends.
7832 * @param to_b RGB B when effect ends.
7833 * @param to_a RGB A when effect ends.
7834 * @return Color effect context data.
7838 EAPI Elm_Transit_Effect *elm_transit_effect_color_add(Elm_Transit *transit, unsigned int from_r, unsigned int from_g, unsigned int from_b, unsigned int from_a, unsigned int to_r, unsigned int to_g, unsigned int to_b, unsigned int to_a);
7841 * Add the Fade Effect to Elm_Transit.
7843 * @note This API is one of the facades. It creates fade effect context
7844 * and add it's required APIs to elm_transit_effect_add.
7845 * @note This effect is applied to each pair of objects in the order they are listed
7846 * in the transit list of objects. The first object in the pair will be the
7847 * "before" object and the second will be the "after" object.
7849 * @see elm_transit_effect_add()
7851 * @param transit Transit object.
7852 * @return Fade effect context data.
7855 * @warning It is highly recommended just create a transit with this effect when
7856 * the window that the objects of the transit belongs has already been created.
7857 * This is because this effect needs the color information about the objects,
7858 * and if the window was not created yet, it can get a wrong information.
7860 EAPI Elm_Transit_Effect *elm_transit_effect_fade_add(Elm_Transit *transit);
7863 * Add the Blend Effect to Elm_Transit.
7865 * @note This API is one of the facades. It creates blend effect context
7866 * and add it's required APIs to elm_transit_effect_add.
7867 * @note This effect is applied to each pair of objects in the order they are listed
7868 * in the transit list of objects. The first object in the pair will be the
7869 * "before" object and the second will be the "after" object.
7871 * @see elm_transit_effect_add()
7873 * @param transit Transit object.
7874 * @return Blend effect context data.
7877 * @warning It is highly recommended just create a transit with this effect when
7878 * the window that the objects of the transit belongs has already been created.
7879 * This is because this effect needs the color information about the objects,
7880 * and if the window was not created yet, it can get a wrong information.
7882 EAPI Elm_Transit_Effect *elm_transit_effect_blend_add(Elm_Transit *transit);
7885 * Add the Rotation Effect to Elm_Transit.
7887 * @note This API is one of the facades. It creates rotation effect context
7888 * and add it's required APIs to elm_transit_effect_add.
7890 * @see elm_transit_effect_add()
7892 * @param transit Transit object.
7893 * @param from_degree Degree when effect begins.
7894 * @param to_degree Degree when effect is ends.
7895 * @return Rotation effect context data.
7898 * @warning It is highly recommended just create a transit with this effect when
7899 * the window that the objects of the transit belongs has already been created.
7900 * This is because this effect needs the geometry information about the objects,
7901 * and if the window was not created yet, it can get a wrong information.
7903 EAPI Elm_Transit_Effect *elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float to_degree);
7906 * Add the ImageAnimation Effect to Elm_Transit.
7908 * @note This API is one of the facades. It creates image animation effect context
7909 * and add it's required APIs to elm_transit_effect_add.
7910 * The @p images parameter is a list images paths. This list and
7911 * its contents will be deleted at the end of the effect by
7912 * elm_transit_effect_image_animation_context_free() function.
7916 * char buf[PATH_MAX];
7917 * Eina_List *images = NULL;
7918 * Elm_Transit *transi = elm_transit_add();
7920 * snprintf(buf, sizeof(buf), "%s/images/icon_11.png", PACKAGE_DATA_DIR);
7921 * images = eina_list_append(images, eina_stringshare_add(buf));
7923 * snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
7924 * images = eina_list_append(images, eina_stringshare_add(buf));
7925 * elm_transit_effect_image_animation_add(transi, images);
7929 * @see elm_transit_effect_add()
7931 * @param transit Transit object.
7932 * @param images Eina_List of images file paths. This list and
7933 * its contents will be deleted at the end of the effect by
7934 * elm_transit_effect_image_animation_context_free() function.
7935 * @return Image Animation effect context data.
7939 EAPI Elm_Transit_Effect *elm_transit_effect_image_animation_add(Elm_Transit *transit, Eina_List *images);
7945 typedef struct _Elm_Store Elm_Store;
7946 typedef struct _Elm_Store_DBsystem Elm_Store_DBsystem;
7947 typedef struct _Elm_Store_Filesystem Elm_Store_Filesystem;
7948 typedef struct _Elm_Store_Item Elm_Store_Item;
7949 typedef struct _Elm_Store_Item_DBsystem Elm_Store_Item_DBsystem;
7950 typedef struct _Elm_Store_Item_Filesystem Elm_Store_Item_Filesystem;
7951 typedef struct _Elm_Store_Item_Info Elm_Store_Item_Info;
7952 typedef struct _Elm_Store_Item_Info_Filesystem Elm_Store_Item_Info_Filesystem;
7953 typedef struct _Elm_Store_Item_Mapping Elm_Store_Item_Mapping;
7954 typedef struct _Elm_Store_Item_Mapping_Empty Elm_Store_Item_Mapping_Empty;
7955 typedef struct _Elm_Store_Item_Mapping_Icon Elm_Store_Item_Mapping_Icon;
7956 typedef struct _Elm_Store_Item_Mapping_Photo Elm_Store_Item_Mapping_Photo;
7957 typedef struct _Elm_Store_Item_Mapping_Custom Elm_Store_Item_Mapping_Custom;
7959 typedef Eina_Bool (*Elm_Store_Item_List_Cb) (void *data, Elm_Store_Item_Info *info);
7960 typedef void (*Elm_Store_Item_Fetch_Cb) (void *data, Elm_Store_Item *sti, Elm_Store_Item_Info *info);
7961 typedef void (*Elm_Store_Item_Unfetch_Cb) (void *data, Elm_Store_Item *sti, Elm_Store_Item_Info *info);
7962 typedef void (*Elm_Store_Item_Select_Cb) (void *data, Elm_Store_Item *sti);
7963 typedef int (*Elm_Store_Item_Sort_Cb) (void *data, Elm_Store_Item_Info *info1, Elm_Store_Item_Info *info2);
7964 typedef void (*Elm_Store_Item_Free_Cb) (void *data, Elm_Store_Item_Info *info);
7965 typedef void *(*Elm_Store_Item_Mapping_Cb) (void *data, Elm_Store_Item *sti, const char *part);
7969 ELM_STORE_ITEM_MAPPING_NONE = 0,
7970 ELM_STORE_ITEM_MAPPING_LABEL, // const char * -> label
7971 ELM_STORE_ITEM_MAPPING_STATE, // Eina_Bool -> state
7972 ELM_STORE_ITEM_MAPPING_ICON, // char * -> icon path
7973 ELM_STORE_ITEM_MAPPING_PHOTO, // char * -> photo path
7974 ELM_STORE_ITEM_MAPPING_CUSTOM, // item->custom(it->data, it, part) -> void * (-> any)
7975 // can add more here as needed by common apps
7976 ELM_STORE_ITEM_MAPPING_LAST
7977 } Elm_Store_Item_Mapping_Type;
7979 struct _Elm_Store_Item_Mapping_Icon
7981 // FIXME: allow edje file icons
7983 Elm_Icon_Lookup_Order lookup_order;
7984 Eina_Bool standard_name : 1;
7985 Eina_Bool no_scale : 1;
7986 Eina_Bool smooth : 1;
7987 Eina_Bool scale_up : 1;
7988 Eina_Bool scale_down : 1;
7991 struct _Elm_Store_Item_Mapping_Empty
7996 struct _Elm_Store_Item_Mapping_Photo
8001 struct _Elm_Store_Item_Mapping_Custom
8003 Elm_Store_Item_Mapping_Cb func;
8006 struct _Elm_Store_Item_Mapping
8008 Elm_Store_Item_Mapping_Type type;
8012 Elm_Store_Item_Mapping_Empty empty;
8013 Elm_Store_Item_Mapping_Icon icon;
8014 Elm_Store_Item_Mapping_Photo photo;
8015 Elm_Store_Item_Mapping_Custom custom;
8016 // add more types here
8020 struct _Elm_Store_Item_Info
8026 int pre_group_index;
8028 Elm_Genlist_Item_Class *item_class;
8029 const Elm_Store_Item_Mapping *mapping;
8034 struct _Elm_Store_Item_Info_Filesystem
8036 Elm_Store_Item_Info base;
8040 #define ELM_STORE_ITEM_MAPPING_END { ELM_STORE_ITEM_MAPPING_NONE, NULL, 0, { .empty = { EINA_TRUE } } }
8041 #define ELM_STORE_ITEM_MAPPING_OFFSET(st, it) offsetof(st, it)
8043 EAPI Elm_Store *elm_store_dbsystem_new(void);
8044 EAPI void elm_store_item_count_set(Elm_Store *st, int count) EINA_ARG_NONNULL(1);
8045 EAPI void elm_store_item_select_func_set(Elm_Store *st, Elm_Store_Item_Select_Cb func, const void *data) EINA_ARG_NONNULL(1);
8046 EAPI void elm_store_item_sort_func_set(Elm_Store *st, Elm_Store_Item_Sort_Cb func, const void *data) EINA_ARG_NONNULL(1);
8047 EAPI void elm_store_item_free_func_set(Elm_Store *st, Elm_Store_Item_Free_Cb func, const void *data) EINA_ARG_NONNULL(1);
8048 EAPI int elm_store_item_data_index_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
8049 EAPI void *elm_store_dbsystem_db_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
8050 EAPI void elm_store_dbsystem_db_set(Elm_Store *store, void *pDB) EINA_ARG_NONNULL(1);
8051 EAPI int elm_store_item_index_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
8052 EAPI Elm_Store_Item *elm_store_item_add(Elm_Store *st, Elm_Store_Item_Info *info) EINA_ARG_NONNULL(1);
8053 EAPI void elm_store_item_update(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
8054 EAPI void elm_store_visible_items_update(Elm_Store *st) EINA_ARG_NONNULL(1);
8055 EAPI void elm_store_item_del(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
8056 EAPI void elm_store_free(Elm_Store *st);
8057 EAPI Elm_Store *elm_store_filesystem_new(void);
8058 EAPI void elm_store_filesystem_directory_set(Elm_Store *st, const char *dir) EINA_ARG_NONNULL(1);
8059 EAPI const char *elm_store_filesystem_directory_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
8060 EAPI const char *elm_store_item_filesystem_path_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
8061 EAPI void elm_store_target_genlist_set(Elm_Store *st, Evas_Object *obj) EINA_ARG_NONNULL(1);
8062 EAPI void elm_store_cache_set(Elm_Store *st, int max) EINA_ARG_NONNULL(1);
8063 EAPI int elm_store_cache_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
8064 EAPI void elm_store_list_func_set(Elm_Store *st, Elm_Store_Item_List_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
8065 EAPI void elm_store_fetch_func_set(Elm_Store *st, Elm_Store_Item_Fetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
8066 EAPI void elm_store_fetch_thread_set(Elm_Store *st, Eina_Bool use_thread) EINA_ARG_NONNULL(1);
8067 EAPI Eina_Bool elm_store_fetch_thread_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
8068 EAPI void elm_store_unfetch_func_set(Elm_Store *st, Elm_Store_Item_Unfetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
8069 EAPI void elm_store_sorted_set(Elm_Store *st, Eina_Bool sorted) EINA_ARG_NONNULL(1);
8070 EAPI Eina_Bool elm_store_sorted_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
8071 EAPI void elm_store_item_data_set(Elm_Store_Item *sti, void *data) EINA_ARG_NONNULL(1);
8072 EAPI void *elm_store_item_data_get(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
8073 EAPI const Elm_Store *elm_store_item_store_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
8074 EAPI const Elm_Genlist_Item *elm_store_item_genlist_item_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
8076 /* SegmentControl */
8077 typedef struct _Elm_Segment_Item Elm_Segment_Item;
8078 EAPI Evas_Object *elm_segment_control_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8079 EAPI Elm_Segment_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label) EINA_ARG_NONNULL(1);
8080 EAPI Elm_Segment_Item *elm_segment_control_item_insert_at(Evas_Object *obj, Evas_Object *icon, const char *label, int index) EINA_ARG_NONNULL(1);
8081 EAPI void elm_segment_control_item_del(Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
8082 EAPI void elm_segment_control_item_del_at(Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
8083 EAPI int elm_segment_control_item_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8084 EAPI Elm_Segment_Item *elm_segment_control_item_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
8085 EAPI const char *elm_segment_control_item_label_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
8086 EAPI void elm_segment_control_item_label_set(Elm_Segment_Item* it, const char* label) EINA_ARG_NONNULL(1);
8087 EAPI Evas_Object *elm_segment_control_item_icon_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
8088 EAPI void elm_segment_control_item_icon_set(Elm_Segment_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
8089 EAPI int elm_segment_control_item_index_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
8090 EAPI Evas_Object *elm_segment_control_item_object_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
8091 EAPI Elm_Segment_Item *elm_segment_control_item_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8092 EAPI void elm_segment_control_item_selected_set(Elm_Segment_Item *it, Eina_Bool select) EINA_ARG_NONNULL(1);
8093 /* smart callbacks called:
8094 * "changed" -when the user clicks on a segment item which is not previously
8095 * selected and get selected. The event_info parameter is the
8096 * segment item index.
8099 EAPI Evas_Object *elm_grid_add(Evas_Object *parent);
8100 EAPI void elm_grid_size_set(Evas_Object *obj, int w, int h);
8101 EAPI void elm_grid_size_get(Evas_Object *obj, int *w, int *h);
8102 EAPI void elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h);
8103 EAPI void elm_grid_unpack(Evas_Object *obj, Evas_Object *subobj);
8104 EAPI void elm_grid_clear(Evas_Object *obj, Eina_Bool clear);
8105 EAPI void elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h);
8106 EAPI void elm_grid_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h);
8108 EAPI Evas_Object *elm_genscroller_add(Evas_Object *parent);
8109 EAPI void elm_genscroller_world_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h);
8111 EAPI Evas_Object *elm_video_add(Evas_Object *parent);
8112 EAPI void elm_video_file_set(Evas_Object *video, const char *filename);
8113 EAPI void elm_video_uri_set(Evas_Object *video, const char *uri);
8114 EAPI Evas_Object *elm_video_emotion_get(Evas_Object *video);
8115 EAPI void elm_video_play(Evas_Object *video);
8116 EAPI void elm_video_pause(Evas_Object *video);
8117 EAPI void elm_video_stop(Evas_Object *video);
8118 EAPI Eina_Bool elm_video_is_playing(Evas_Object *video);
8119 EAPI Eina_Bool elm_video_is_seekable(Evas_Object *video);
8120 EAPI Eina_Bool elm_video_audio_mute_get(Evas_Object *video);
8121 EAPI void elm_video_audio_mute_set(Evas_Object *video, Eina_Bool mute);
8122 EAPI double elm_video_audio_level_get(Evas_Object *video);
8123 EAPI void elm_video_audio_level_set(Evas_Object *video, double volume);
8124 EAPI double elm_video_play_position_get(Evas_Object *video);
8125 EAPI void elm_video_play_position_set(Evas_Object *video, double position);
8126 EAPI double elm_video_play_length_get(Evas_Object *video);
8127 EAPI void elm_video_remember_position_set(Evas_Object *video, Eina_Bool remember);
8128 EAPI Eina_Bool elm_video_remember_position_get(Evas_Object *video);
8129 EAPI const char *elm_video_title_get(Evas_Object *video);
8131 EAPI Evas_Object *elm_player_add(Evas_Object *parent);
8132 EAPI void elm_player_video_set(Evas_Object *player, Evas_Object *video);
8134 // FIXME: incomplete - carousel. don't use this until this comment is removed
8135 typedef struct _Elm_Carousel_Item Elm_Carousel_Item;
8136 EAPI Evas_Object *elm_carousel_add(Evas_Object *parent);
8137 EAPI Elm_Carousel_Item *elm_carousel_item_add(Evas_Object *obj, Evas_Object *icon, const char *label, Evas_Smart_Cb func, const void *data);
8138 EAPI void elm_carousel_item_del(Elm_Carousel_Item *item);
8139 EAPI void elm_carousel_item_select(Elm_Carousel_Item *item);
8140 /* smart callbacks called:
8141 * "clicked" - when the user clicks on a carousel item and becomes selected
8146 typedef enum _Elm_Datefield_ItemType
8148 ELM_DATEFIELD_YEAR = 0,
8149 ELM_DATEFIELD_MONTH,
8152 ELM_DATEFIELD_MINUTE,
8154 } Elm_Datefield_ItemType;
8156 EAPI Evas_Object *elm_datefield_add(Evas_Object *parent);
8157 EAPI void elm_datefield_format_set(Evas_Object *obj, const char *fmt);
8158 EAPI char *elm_datefield_format_get(const Evas_Object *obj);
8159 EAPI void elm_datefield_item_enabled_set(Evas_Object *obj, Elm_Datefield_ItemType itemtype, Eina_Bool enable);
8160 EAPI Eina_Bool elm_datefield_item_enabled_get(const Evas_Object *obj, Elm_Datefield_ItemType itemtype);
8161 EAPI void elm_datefield_item_value_set(Evas_Object *obj, Elm_Datefield_ItemType itemtype, int value);
8162 EAPI int elm_datefield_item_value_get(const Evas_Object *obj, Elm_Datefield_ItemType itemtype);
8163 EAPI void elm_datefield_item_min_set(Evas_Object *obj, Elm_Datefield_ItemType itemtype, int value, Eina_Bool abs_limit);
8164 EAPI int elm_datefield_item_min_get(const Evas_Object *obj, Elm_Datefield_ItemType itemtype);
8165 EAPI Eina_Bool elm_datefield_item_min_is_absolute(const Evas_Object *obj, Elm_Datefield_ItemType itemtype);
8166 EAPI void elm_datefield_item_max_set(Evas_Object *obj, Elm_Datefield_ItemType itemtype, int value, Eina_Bool abs_limit);
8167 EAPI int elm_datefield_item_max_get(const Evas_Object *obj, Elm_Datefield_ItemType itemtype);
8168 EAPI Eina_Bool elm_datefield_item_max_is_absolute(const Evas_Object *obj, Elm_Datefield_ItemType itemtype);
8170 /* smart callbacks called:
8171 * "changed" - when datefield value is changed, this signal is sent.
8174 ////////////////////// DEPRECATED ///////////////////////////////////
8176 typedef enum _Elm_Datefield_Layout
8178 ELM_DATEFIELD_LAYOUT_TIME,
8179 ELM_DATEFIELD_LAYOUT_DATE,
8180 ELM_DATEFIELD_LAYOUT_DATEANDTIME
8181 } Elm_Datefield_Layout;
8183 EINA_DEPRECATED EAPI void elm_datefield_layout_set(Evas_Object *obj, Elm_Datefield_Layout layout);
8184 EINA_DEPRECATED EAPI Elm_Datefield_Layout elm_datefield_layout_get(const Evas_Object *obj);
8185 EINA_DEPRECATED EAPI void elm_datefield_date_format_set(Evas_Object *obj, const char *fmt);
8186 EINA_DEPRECATED EAPI const char *elm_datefield_date_format_get(const Evas_Object *obj);
8187 EINA_DEPRECATED EAPI void elm_datefield_time_mode_set(Evas_Object *obj, Eina_Bool mode);
8188 EINA_DEPRECATED EAPI Eina_Bool elm_datefield_time_mode_get(const Evas_Object *obj);
8189 EINA_DEPRECATED EAPI void elm_datefield_date_set(Evas_Object *obj, int year, int month, int day, int hour, int min);
8190 EINA_DEPRECATED EAPI void elm_datefield_date_get(const Evas_Object *obj, int *year, int *month, int *day, int *hour, int *min);
8191 EINA_DEPRECATED EAPI Eina_Bool elm_datefield_date_max_set(Evas_Object *obj, int year, int month, int day);
8192 EINA_DEPRECATED EAPI void elm_datefield_date_max_get(const Evas_Object *obj, int *year, int *month, int *day);
8193 EINA_DEPRECATED EAPI Eina_Bool elm_datefield_date_min_set(Evas_Object *obj, int year, int month, int day);
8194 EINA_DEPRECATED EAPI void elm_datefield_date_min_get(const Evas_Object *obj, int *year, int *month, int *day);
8195 EINA_DEPRECATED EAPI void elm_datefield_input_panel_state_callback_add(Evas_Object *obj, void (*pEventCallbackFunc) (void *data, Evas_Object *obj, int value), void *data);
8196 EINA_DEPRECATED EAPI void elm_datefield_input_panel_state_callback_del(Evas_Object *obj, void (*pEventCallbackFunc) (void *data, Evas_Object *obj, int value));
8197 /////////////////////////////////////////////////////////////////////
8200 typedef enum _Elm_Popup_Response
8202 ELM_POPUP_RESPONSE_NONE = -1,
8203 ELM_POPUP_RESPONSE_TIMEOUT = -2,
8204 ELM_POPUP_RESPONSE_OK = -3,
8205 ELM_POPUP_RESPONSE_CANCEL = -4,
8206 ELM_POPUP_RESPONSE_CLOSE = -5
8207 } Elm_Popup_Response;
8209 typedef enum _Elm_Popup_Mode
8211 ELM_POPUP_TYPE_NONE = 0,
8212 ELM_POPUP_TYPE_ALERT = (1 << 0)
8215 typedef enum _Elm_Popup_Orient
8217 ELM_POPUP_ORIENT_TOP,
8218 ELM_POPUP_ORIENT_CENTER,
8219 ELM_POPUP_ORIENT_BOTTOM,
8220 ELM_POPUP_ORIENT_LEFT,
8221 ELM_POPUP_ORIENT_RIGHT,
8222 ELM_POPUP_ORIENT_TOP_LEFT,
8223 ELM_POPUP_ORIENT_TOP_RIGHT,
8224 ELM_POPUP_ORIENT_BOTTOM_LEFT,
8225 ELM_POPUP_ORIENT_BOTTOM_RIGHT
8228 /* smart callbacks called:
8229 * "response" - when ever popup is closed, this signal is sent with appropriate response id.".
8232 EAPI Evas_Object *elm_popup_add(Evas_Object *parent);
8233 EAPI void elm_popup_desc_set(Evas_Object *obj, const char *text);
8234 EAPI const char *elm_popup_desc_get(Evas_Object *obj);
8235 EAPI void elm_popup_title_label_set(Evas_Object *obj, const char *text);
8236 EAPI const char *elm_popup_title_label_get(Evas_Object *obj);
8237 EAPI void elm_popup_title_icon_set(Evas_Object *obj, Evas_Object *icon);
8238 EAPI Evas_Object *elm_popup_title_icon_get(Evas_Object *obj);
8239 EAPI void elm_popup_content_set(Evas_Object *obj, Evas_Object *content);
8240 EAPI Evas_Object *elm_popup_content_get(Evas_Object *obj);
8241 EAPI void elm_popup_buttons_add(Evas_Object *obj,int no_of_buttons, const char *first_button_text, ...);
8242 EAPI Evas_Object *elm_popup_with_buttons_add(Evas_Object *parent, const char *title, const char *desc_text,int no_of_buttons, const char *first_button_text, ... );
8243 EAPI void elm_popup_timeout_set(Evas_Object *obj, double timeout);
8244 EAPI void elm_popup_mode_set(Evas_Object *obj, Elm_Popup_Mode mode);
8245 EAPI void elm_popup_response(Evas_Object *obj, int response_id);
8246 EAPI void elm_popup_orient_set(Evas_Object *obj, Elm_Popup_Orient orient);
8247 EAPI int elm_popup_run(Evas_Object *obj);
8250 #define NAVIBAR_TITLEOBJ_INSTANT_HIDE "elm,state,hide,noanimate,title", "elm"
8251 #define NAVIBAR_TITLEOBJ_INSTANT_SHOW "elm,state,show,noanimate,title", "elm"
8255 ELM_NAVIGATIONBAR_FUNCTION_BUTTON1,
8256 ELM_NAVIGATIONBAR_FUNCTION_BUTTON2,
8257 ELM_NAVIGATIONBAR_FUNCTION_BUTTON3,
8258 ELM_NAVIGATIONBAR_BACK_BUTTON
8259 } Elm_Navi_Button_Type;
8261 EAPI Evas_Object *elm_navigationbar_add(Evas_Object *parent);
8262 EAPI void elm_navigationbar_push(Evas_Object *obj, const char *title, Evas_Object *fn_btn1, Evas_Object *fn_btn2, Evas_Object *fn_btn3, Evas_Object *content);
8263 EAPI void elm_navigationbar_pop(Evas_Object *obj);
8264 EAPI void elm_navigationbar_to_content_pop(Evas_Object *obj, Evas_Object *content);
8265 EAPI void elm_navigationbar_title_label_set(Evas_Object *obj, Evas_Object *content, const char *title);
8266 EAPI const char *elm_navigationbar_title_label_get(Evas_Object *obj, Evas_Object *content);
8267 EAPI void elm_navigationbar_title_object_add(Evas_Object *obj, Evas_Object *content, Evas_Object *title_obj);
8268 EAPI Evas_Object *elm_navigationbar_title_object_get(Evas_Object *obj, Evas_Object *content);
8269 EAPI Eina_List *elm_navigationbar_title_object_list_get(Evas_Object *obj, Evas_Object *content);
8270 EAPI Evas_Object *elm_navigationbar_content_top_get(Evas_Object *obj);
8271 EAPI Evas_Object *elm_navigationbar_content_bottom_get(Evas_Object *obj);
8272 EAPI void elm_navigationbar_hidden_set(Evas_Object *obj, Eina_Bool hidden);
8273 EAPI void elm_navigationbar_title_button_set(Evas_Object *obj, Evas_Object *content, Evas_Object *button, Elm_Navi_Button_Type button_type);
8274 EAPI Evas_Object *elm_navigationbar_title_button_get(Evas_Object *obj, Evas_Object *content, Elm_Navi_Button_Type button_type);
8275 EAPI const char *elm_navigationbar_subtitle_label_get(Evas_Object *obj, Evas_Object *content);
8276 EAPI void elm_navigationbar_subtitle_label_set(Evas_Object *obj, Evas_Object *content, const char *subtitle);
8277 EAPI void elm_navigationbar_title_object_list_unset(Evas_Object *obj, Evas_Object *content, Eina_List **list);
8278 EAPI void elm_navigationbar_animation_disabled_set(Evas_Object *obj, Eina_Bool disable);
8279 EAPI void elm_navigationbar_title_object_visible_set(Evas_Object *obj, Evas_Object *content, Eina_Bool visible);
8280 Eina_Bool elm_navigationbar_title_object_visible_get(Evas_Object *obj, Evas_Object *content);
8281 EAPI void elm_navigationbar_title_icon_set(Evas_Object *obj, Evas_Object *content, Evas_Object *icon);
8282 EAPI Evas_Object *elm_navigationbar_title_icon_get(Evas_Object *obj, Evas_Object *content);
8285 #define NAVIBAR_EX_TITLEOBJ_INSTANT_HIDE "elm,state,hide,noanimate,title", "elm"
8286 #define NAVIBAR_EX_TITLEOBJ_INSTANT_SHOW "elm,state,show,noanimate,title", "elm"
8290 ELM_NAVIGATIONBAR_EX_BACK_BUTTON,
8291 ELM_NAVIGATIONBAR_EX_FUNCTION_BUTTON1,
8292 ELM_NAVIGATIONBAR_EX_FUNCTION_BUTTON2,
8293 ELM_NAVIGATIONBAR_EX_FUNCTION_BUTTON3,
8294 ELM_NAVIGATIONBAR_EX_MAX
8295 } Elm_Navi_ex_Button_Type;
8296 typedef struct _Elm_Navigationbar_ex_Item Elm_Navigationbar_ex_Item;
8298 EAPI Evas_Object *elm_navigationbar_ex_add(Evas_Object *parent);
8299 EAPI Elm_Navigationbar_ex_Item *elm_navigationbar_ex_item_push(Evas_Object *obj, Evas_Object *content, const char *item_style);
8300 EAPI void elm_navigationbar_ex_item_pop(Evas_Object *obj);
8301 EAPI void elm_navigationbar_ex_item_promote(Elm_Navigationbar_ex_Item* item);
8302 EAPI void elm_navigationbar_ex_to_item_pop(Elm_Navigationbar_ex_Item* item);
8303 EAPI void elm_navigationbar_ex_item_title_label_set(Elm_Navigationbar_ex_Item *item, const char *title);
8304 EAPI const char *elm_navigationbar_ex_item_title_label_get(Elm_Navigationbar_ex_Item* item);
8305 EAPI Elm_Navigationbar_ex_Item *elm_navigationbar_ex_item_top_get(const Evas_Object *obj);
8306 EAPI Elm_Navigationbar_ex_Item *elm_navigationbar_ex_item_bottom_get(const Evas_Object *obj);
8307 EAPI void elm_navigationbar_ex_item_title_button_set(Elm_Navigationbar_ex_Item* item, char *btn_label, Evas_Object *icon, int button_type, Evas_Smart_Cb func, const void *data);
8308 EAPI Evas_Object *elm_navigationbar_ex_item_title_button_get(Elm_Navigationbar_ex_Item* item, int button_type);
8309 EAPI void elm_navigationbar_ex_item_title_object_set(Elm_Navigationbar_ex_Item* item, Evas_Object *title_obj);
8310 EAPI Evas_Object *elm_navigationbar_ex_item_title_object_unset(Elm_Navigationbar_ex_Item* item);
8311 EAPI void elm_navigationbar_ex_item_title_hidden_set(Elm_Navigationbar_ex_Item* item, Eina_Bool hidden);
8312 EAPI Evas_Object *elm_navigationbar_ex_item_title_object_get(Elm_Navigationbar_ex_Item* item);
8313 EAPI const char *elm_navigationbar_ex_item_subtitle_label_get(Elm_Navigationbar_ex_Item* item);
8314 EAPI void elm_navigationbar_ex_item_subtitle_label_set( Elm_Navigationbar_ex_Item* item, const char *subtitle);
8315 EAPI void elm_navigationbar_ex_item_style_set(Elm_Navigationbar_ex_Item* item, const char* item_style);
8316 EAPI const char *elm_navigationbar_ex_item_style_get(Elm_Navigationbar_ex_Item* item);
8317 EAPI Evas_Object *elm_navigationbar_ex_item_content_unset(Elm_Navigationbar_ex_Item* item);
8318 EAPI Evas_Object *elm_navigationbar_ex_item_content_get(Elm_Navigationbar_ex_Item* item);
8319 EAPI void elm_navigationbar_ex_delete_on_pop_set(Evas_Object *obj, Eina_Bool del_on_pop);
8320 EAPI Evas_Object *elm_navigationbar_ex_item_icon_get(Elm_Navigationbar_ex_Item* item);
8321 EAPI void elm_navigationbar_ex_item_icon_set(Elm_Navigationbar_ex_Item* item, Evas_Object *icon);
8322 EAPI Evas_Object *elm_navigationbar_ex_item_title_button_unset(Elm_Navigationbar_ex_Item* item, int button_type);
8323 EAPI void elm_navigationbar_ex_animation_disable_set(Evas_Object *obj, Eina_Bool disable);
8324 EAPI void elm_navigationbar_ex_title_object_visible_set(Elm_Navigationbar_ex_Item* item, Eina_Bool visible);
8325 Eina_Bool elm_navigationbar_ex_title_object_visible_get(Elm_Navigationbar_ex_Item* item);
8328 #define ELM_NAVIFRAME_ITEM_CONTENT "elm.swallow.content"
8329 #define ELM_NAVIFRAME_ITEM_ICON "elm.swallow.icon"
8330 #define ELM_NAVIFRAME_ITEM_OPTIONHEADER "elm.swallow.optionheader"
8331 #define ELM_NAVIFRAME_ITEM_OPTIONHEADER2 "elm.swallow.optionheader2"
8332 #define ELM_NAVIFRAME_ITEM_TITLE_LABEL "elm.text.title"
8333 #define ELM_NAVIFRAME_ITEM_PREV_BTN "elm.swallow.prev_btn"
8334 #define ELM_NAVIFRAME_ITEM_SIGNAL_OPTIONHEADER_CLOSE "elm,state,optionheader,close", ""
8335 #define ELM_NAVIFRAME_ITEM_SIGNAL_OPTIONHEADER_OPEN "elm,state,optionheader,open", ""
8336 #define ELM_NAVIFRAME_ITEM_SIGNAL_OPTIONHEADER_INSTANT_CLOSE "elm,state,optionheader,instant_close", ""
8337 #define ELM_NAVIFRAME_ITEM_SIGNAL_OPTIONHEADER_INSTANT_OPEN "elm,state,optionheader,instant_open", ""
8340 * @defgroup Naviframe Naviframe
8342 * @brief Naviframe is a kind of view manager for the applications.
8344 * Naviframe provides functions to switch different pages with stack
8345 * mechanism. It means if one page(item) needs to be changed to the new one,
8346 * then naviframe would push the new page to it's internal stack. Of course,
8347 * it can be back to the previous page by popping the top page. Naviframe
8348 * provides some transition effect while the pages are switching (same as
8351 * Since each item could keep the different styles, users could keep the
8352 * same look & feel for the pages or different styles for the items in it's
8355 * Signals that you can add callback for are:
8357 * @li "transition,finished" - When the transition is finished in changing
8359 * @li "title,clicked" - User clicked title area
8361 * Default contents parts for the naviframe items that you can use for are:
8363 * @li "elm.swallow.content" - The main content of the page
8364 * @li "elm.swallow.prev_btn" - The button to go to the previous page
8365 * @li "elm.swallow.next_btn" - The button to go to the next page
8367 * Default text parts of naviframe items that you can be used are:
8369 * @li "elm.text.title" - The title label in the title area
8371 * @ref tutorial_naviframe gives a good overview of the usage of the API.
8375 * @brief Add a new Naviframe object to the parent.
8377 * @param parent Parent object
8378 * @return New object or @c NULL, if it cannot be created
8380 EAPI Evas_Object *elm_naviframe_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8382 * @brief Push a new item to the top of the naviframe stack (and show it).
8384 * @param obj The naviframe object
8385 * @param title_label The label in the title area. The name of the title
8386 * label part is "elm.text.title"
8387 * @param prev_btn The button to go to the previous item. If it is NULL,
8388 * then naviframe will create a back button automatically. The name of
8389 * the prev_btn part is "elm.swallow.prev_btn"
8390 * @param next_btn The button to go to the next item. Or It could be just an
8391 * extra function button. The name of the next_btn part is
8392 * "elm.swallow.next_btn"
8393 * @param content The main content object. The name of content part is
8394 * "elm.swallow.content"
8395 * @param item_style The current item style name. @c NULL would be default.
8396 * @return The created item or @c NULL upon failure.
8398 * The item pushed becomes one page of the naviframe, this item will be
8399 * deleted when it is popped.
8401 * @see also elm_naviframe_item_style_set()
8403 * The following styles are available for this item:
8406 EAPI Elm_Object_Item *elm_naviframe_item_push(Evas_Object *obj, const char *title_label, Evas_Object *prev_btn, Evas_Object *next_btn, Evas_Object *content, const char *item_style) EINA_ARG_NONNULL(1, 5);
8408 * @brief Pop an item that is on top of the stack
8410 * @param obj The naviframe object
8411 * @return @c NULL or the content object(if the
8412 * elm_naviframe_content_preserve_on_pop_get is true).
8414 * This pops an item that is on the top(visible) of the naviframe, makes it
8415 * disappear, then deletes the item. The item that was underneath it on the
8416 * stack will become visible.
8418 * @see also elm_naviframe_content_preserve_on_pop_get()
8420 EAPI Evas_Object *elm_naviframe_item_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
8422 * @brief Pop the items between the top and the above one on the given item.
8424 * @param it The naviframe item
8426 EAPI void elm_naviframe_item_pop_to(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
8428 * @brief Delete the given item instantly.
8430 * @param it The naviframe item
8432 * This just deletes the given item from the naviframe item list instantly.
8433 * So this would not emit any signals for view transitions but just change
8434 * the current view if the given item is a top one.
8437 EAPI void elm_naviframe_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
8439 * @brief preserve the content objects when items are popped.
8441 * @param obj The naviframe object
8442 * @param preserve Enable the preserve mode if EINA_TRUE, disable otherwise
8444 * @see also elm_naviframe_content_preserve_on_pop_get()
8446 EAPI void elm_naviframe_content_preserve_on_pop_set(Evas_Object *obj, Eina_Bool preserve) EINA_ARG_NONNULL(1);
8448 * @brief Get a value whether preserve mode is enabled or not.
8450 * @param obj The naviframe object
8451 * @return If @c EINA_TRUE, preserve mode is enabled
8453 * @see also elm_naviframe_content_preserve_on_pop_set()
8455 EAPI Eina_Bool elm_naviframe_content_preserve_on_pop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8457 * @brief Get a top item on the naviframe stack
8459 * @param obj The naviframe object
8460 * @return The top item on the naviframe stack or @c NULL, if the stack is
8463 EAPI Elm_Object_Item *elm_naviframe_top_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8465 * @brief Get a bottom item on the naviframe stack
8467 * @param obj The naviframe object
8468 * @return The bottom item on the naviframe stack or @c NULL, if the stack is
8471 EAPI Elm_Object_Item *elm_naviframe_bottom_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8473 * @brief Set an item style
8475 * @param obj The naviframe item
8476 * @param item_style The current item style name. @c NULL would be default
8478 * The following styles are available for this item:
8481 * @see also elm_naviframe_item_style_get()
8483 EAPI void elm_naviframe_item_style_set(Elm_Object_Item *it, const char *item_style) EINA_ARG_NONNULL(1);
8485 * @brief Get an item style
8487 * @param obj The naviframe item
8488 * @return The current item style name
8490 * @see also elm_naviframe_item_style_set()
8492 EAPI const char *elm_naviframe_item_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
8494 * @brief Show/Hide the title area
8496 * @param it The naviframe item
8497 * @param visible If @c EINA_TRUE, title area will be visible, hidden
8500 * When the title area is invisible, then the controls would be hidden so as * to expand the content area to full-size.
8502 * @see also elm_naviframe_item_title_visible_get()
8504 EAPI void elm_naviframe_item_title_visible_set(Elm_Object_Item *it, Eina_Bool visible) EINA_ARG_NONNULL(1);
8506 * @brief Get a value whether title area is visible or not.
8508 * @param it The naviframe item
8509 * @return If @c EINA_TRUE, title area is visible
8511 * @see also elm_naviframe_item_title_visible_set()
8513 EAPI Eina_Bool elm_naviframe_item_title_visible_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
8515 * @brief Set creating prev button automatically or not
8517 * @param obj The naviframe object
8518 * @param auto_pushed If @c EINA_TRUE, the previous button(back button) will
8519 * be created internally when you pass the @c NULL to the prev_btn
8520 * parameter in elm_naviframe_item_push
8522 * @see also elm_naviframe_item_push()
8524 EAPI void elm_naviframe_prev_btn_auto_pushed_set(Evas_Object *obj, Eina_Bool auto_pushed) EINA_ARG_NONNULL(1);
8526 * @brief Get a value whether prev button(back button) will be auto pushed or
8529 * @param obj The naviframe object
8530 * @return If @c EINA_TRUE, prev button will be auto pushed.
8532 * @see also elm_naviframe_item_push()
8533 * elm_naviframe_prev_btn_auto_pushed_set()
8535 EAPI Eina_Bool elm_naviframe_prev_btn_auto_pushed_get(const Evas_Object *obj); EINA_ARG_NONNULL(1);
8538 #define CONTROLBAR_SYSTEM_ICON_ALBUMS "controlbar_albums"
8539 #define CONTROLBAR_SYSTEM_ICON_ARTISTS "controlbar_artists"
8540 #define CONTROLBAR_SYSTEM_ICON_SONGS "controlbar_songs"
8541 #define CONTROLBAR_SYSTEM_ICON_PLAYLIST "controlbar_playlist"
8542 #define CONTROLBAR_SYSTEM_ICON_MORE "controlbar_more"
8543 #define CONTROLBAR_SYSTEM_ICON_CONTACTS "controlbar_contacts"
8544 #define CONTROLBAR_SYSTEM_ICON_DIALER "controlbar_dialer"
8545 #define CONTROLBAR_SYSTEM_ICON_FAVORITES "controlbar_favorites"
8546 #define CONTROLBAR_SYSTEM_ICON_LOGS "controlbar_logs"
8548 typedef enum _Elm_Controlbar_Mode_Type
8550 ELM_CONTROLBAR_MODE_DEFAULT = 0,
8551 ELM_CONTROLBAR_MODE_TRANSLUCENCE,
8552 ELM_CONTROLBAR_MODE_TRANSPARENCY,
8553 ELM_CONTROLBAR_MODE_LARGE,
8554 ELM_CONTROLBAR_MODE_SMALL,
8555 ELM_CONTROLBAR_MODE_LEFT,
8556 ELM_CONTROLBAR_MODE_RIGHT
8557 } Elm_Controlbar_Mode_Type;
8559 typedef struct _Elm_Controlbar_Item Elm_Controlbar_Item;
8560 EAPI Evas_Object *elm_controlbar_add(Evas_Object *parent);
8561 EAPI Elm_Controlbar_Item *elm_controlbar_tab_item_append(Evas_Object *obj, const char *icon_path, const char *label, Evas_Object *view);
8562 EAPI Elm_Controlbar_Item *elm_controlbar_tab_item_prepend(Evas_Object *obj, const char *icon_path, const char *label, Evas_Object *view);
8563 EAPI Elm_Controlbar_Item *elm_controlbar_tab_item_insert_before(Evas_Object *obj, Elm_Controlbar_Item *before, const char *icon_path, const char *label, Evas_Object *view);
8564 EAPI Elm_Controlbar_Item *elm_controlbar_tab_item_insert_after(Evas_Object *obj, Elm_Controlbar_Item *after, const char *icon_path, const char *label, Evas_Object *view);
8565 EAPI Elm_Controlbar_Item *elm_controlbar_tool_item_append(Evas_Object *obj, const char *icon_path, const char *label, void (*func) (void *data, Evas_Object *obj, void *event_info), void *data);
8566 EAPI Elm_Controlbar_Item *elm_controlbar_tool_item_prepend(Evas_Object *obj, const char *icon_path, const char *label, void (*func) (void *data, Evas_Object *obj, void *event_info), void *data);
8567 EAPI Elm_Controlbar_Item *elm_controlbar_tool_item_insert_before(Evas_Object *obj, Elm_Controlbar_Item *before, const char *icon_path, const char *label, void (*func) (void *data, Evas_Object *obj, void *event_info), void *data);
8568 EAPI Elm_Controlbar_Item *elm_controlbar_tool_item_insert_after(Evas_Object *obj, Elm_Controlbar_Item *after, const char *icon_path, const char *label, void (*func) (void *data, Evas_Object *obj, void *event_info), void *data);
8569 EAPI Elm_Controlbar_Item *elm_controlbar_object_item_append(Evas_Object *obj, Evas_Object *obj_item, const int sel);
8570 EAPI Elm_Controlbar_Item *elm_controlbar_object_item_prepend(Evas_Object *obj, Evas_Object *obj_item, const int sel);
8571 EAPI Elm_Controlbar_Item *elm_controlbar_object_item_insert_before(Evas_Object *obj, Elm_Controlbar_Item *before, Evas_Object *obj_item, const int sel);
8572 EAPI Elm_Controlbar_Item *elm_controlbar_object_item_insert_after(Evas_Object *obj, Elm_Controlbar_Item *after, Evas_Object *obj_item, const int sel);
8573 EAPI Evas_Object *elm_controlbar_object_item_object_get(const Elm_Controlbar_Item *it);
8574 EAPI void elm_controlbar_item_del(Elm_Controlbar_Item *it);
8575 EAPI void elm_controlbar_item_select(Elm_Controlbar_Item *it);
8576 EAPI void elm_controlbar_item_visible_set(Elm_Controlbar_Item *it, Eina_Bool bar);
8577 EAPI Eina_Bool elm_controlbar_item_visible_get(const Elm_Controlbar_Item * it);
8578 EAPI void elm_controlbar_item_disabled_set(Elm_Controlbar_Item * it, Eina_Bool disabled);
8579 EAPI Eina_Bool elm_controlbar_item_disabled_get(const Elm_Controlbar_Item * it);
8580 EAPI void elm_controlbar_item_icon_set(Elm_Controlbar_Item *it, const char *icon_path);
8581 EAPI Evas_Object *elm_controlbar_item_icon_get(const Elm_Controlbar_Item *it);
8582 EAPI void elm_controlbar_item_label_set(Elm_Controlbar_Item *it, const char *label);
8583 EAPI const char *elm_controlbar_item_label_get(const Elm_Controlbar_Item *it);
8584 EAPI Elm_Controlbar_Item *elm_controlbar_selected_item_get(const Evas_Object *obj);
8585 EAPI Elm_Controlbar_Item *elm_controlbar_first_item_get(const Evas_Object *obj);
8586 EAPI Elm_Controlbar_Item *elm_controlbar_last_item_get(const Evas_Object *obj);
8587 EAPI const Eina_List *elm_controlbar_items_get(const Evas_Object *obj);
8588 EAPI Elm_Controlbar_Item *elm_controlbar_item_prev(Elm_Controlbar_Item *it);
8589 EAPI Elm_Controlbar_Item *elm_controlbar_item_next(Elm_Controlbar_Item *it);
8590 EAPI void elm_controlbar_item_view_set(Elm_Controlbar_Item *it, Evas_Object * view);
8591 EAPI Evas_Object *elm_controlbar_item_view_get(const Elm_Controlbar_Item *it);
8592 EAPI Evas_Object *elm_controlbar_item_view_unset(Elm_Controlbar_Item *it);
8593 EAPI Evas_Object *elm_controlbar_item_button_get(const Elm_Controlbar_Item *it);
8594 EAPI void elm_controlbar_mode_set(Evas_Object *obj, int mode);
8595 EAPI void elm_controlbar_alpha_set(Evas_Object *obj, int alpha);
8596 EAPI void elm_controlbar_item_auto_align_set(Evas_Object *obj, Eina_Bool auto_align);
8597 EAPI void elm_controlbar_vertical_set(Evas_Object *obj, Eina_Bool vertical);
8600 EAPI Evas_Object *elm_searchbar_add(Evas_Object *parent);
8601 EAPI void elm_searchbar_text_set(Evas_Object *obj, const char *entry);
8602 EAPI const char *elm_searchbar_text_get(Evas_Object *obj);
8603 EAPI Evas_Object *elm_searchbar_entry_get(Evas_Object *obj);
8604 EAPI Evas_Object *elm_searchbar_editfield_get(Evas_Object *obj);
8605 EAPI void elm_searchbar_cancel_button_animation_set(Evas_Object *obj, Eina_Bool cancel_btn_ani_flag);
8606 EAPI void elm_searchbar_cancel_button_set(Evas_Object *obj, Eina_Bool visible);
8607 EAPI void elm_searchbar_clear(Evas_Object *obj);
8608 EAPI void elm_searchbar_boundary_rect_set(Evas_Object *obj, Eina_Bool boundary);
8610 EAPI Evas_Object *elm_page_control_add(Evas_Object *parent);
8611 EAPI void elm_page_control_page_count_set(Evas_Object *obj, unsigned int page_count);
8612 EAPI void elm_page_control_page_id_set(Evas_Object *obj, unsigned int page_id);
8613 EAPI unsigned int elm_page_control_page_id_get(Evas_Object *obj);
8616 EAPI Evas_Object *elm_nocontents_add(Evas_Object *parent);
8617 EAPI void elm_nocontents_label_set(Evas_Object *obj, const char *label);
8618 EAPI const char *elm_nocontents_label_get(const Evas_Object *obj);
8619 EAPI void elm_nocontents_custom_set(const Evas_Object *obj, Evas_Object *custom);
8620 EAPI Evas_Object *elm_nocontents_custom_get(const Evas_Object *obj);
8625 ELM_TICKERNOTI_ORIENT_TOP = 0,
8626 ELM_TICKERNOTI_ORIENT_BOTTOM,
8627 ELM_TICKERNOTI_ORIENT_LAST
8628 } Elm_Tickernoti_Orient;
8630 EAPI Evas_Object *elm_tickernoti_add (Evas_Object *parent);
8631 EAPI void elm_tickernoti_orient_set (Evas_Object *obj, Elm_Tickernoti_Orient orient) EINA_ARG_NONNULL(1);
8632 EAPI Elm_Tickernoti_Orient elm_tickernoti_orient_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
8633 EAPI int elm_tickernoti_rotation_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
8634 EAPI void elm_tickernoti_rotation_set (Evas_Object *obj, int angle) EINA_ARG_NONNULL(1);
8635 EAPI Evas_Object *elm_tickernoti_win_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
8636 /* #### Below APIs and data structures are going to be deprecated, announcment will be made soon ####*/
8639 ELM_TICKERNOTI_DEFAULT,
8640 ELM_TICKERNOTI_DETAILVIEW
8641 } Elm_Tickernoti_Mode;
8642 EAPI void elm_tickernoti_detailview_label_set (Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
8643 EAPI const char *elm_tickernoti_detailview_label_get (const Evas_Object *obj)EINA_ARG_NONNULL(1);
8644 EAPI void elm_tickernoti_detailview_button_set (Evas_Object *obj, Evas_Object *button) EINA_ARG_NONNULL(2);
8645 EAPI Evas_Object *elm_tickernoti_detailview_button_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
8646 EAPI void elm_tickernoti_detailview_icon_set (Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
8647 EAPI Evas_Object *elm_tickernoti_detailview_icon_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
8648 EAPI Evas_Object *elm_tickernoti_detailview_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
8649 EAPI void elm_tickernoti_mode_set (Evas_Object *obj, Elm_Tickernoti_Mode mode) EINA_ARG_NONNULL(1);
8650 EAPI Elm_Tickernoti_Mode elm_tickernoti_mode_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
8651 EAPI void elm_tickernoti_orientation_set (Evas_Object *obj, Elm_Tickernoti_Orient orient) EINA_ARG_NONNULL(1);
8652 EAPI Elm_Tickernoti_Orient elm_tickernoti_orientation_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
8653 EAPI void elm_tickernoti_label_set (Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
8654 EAPI const char *elm_tickernoti_label_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
8655 EAPI void elm_tickernoti_icon_set (Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
8656 EAPI Evas_Object *elm_tickernoti_icon_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
8657 EAPI void elm_tickernoti_button_set (Evas_Object *obj, Evas_Object *button) EINA_ARG_NONNULL(1);
8658 EAPI Evas_Object *elm_tickernoti_button_get (const Evas_Object *obj) EINA_ARG_NONNULL(1);
8659 /* ############################################################################### */
8661 * Parts which can be used with elm_object_text_part_set() and
8662 * elm_object_text_part_get():
8664 * @li NULL/"default" - Operates on tickernoti content-text
8666 * Parts which can be used with elm_object_content_part_set() and
8667 * elm_object_content_part_get():
8669 * @li "icon" - Operates on tickernoti's icon
8670 * @li "button" - Operates on tickernoti's button
8672 * smart callbacks called:
8673 * @li "clicked" - emitted when tickernoti is clicked, except at the
8674 * swallow/button region, if any.
8675 * @li "hide" - emitted when the tickernoti is completely hidden. In case of
8676 * any hide animation, this signal is emitted after the animation.
8680 typedef struct _Colorpalette_Color Elm_Colorpalette_Color;
8682 struct _Colorpalette_Color
8684 unsigned int r, g, b;
8687 EAPI Evas_Object *elm_colorpalette_add(Evas_Object *parent);
8688 EAPI void elm_colorpalette_color_set(Evas_Object *obj, int color_num, Elm_Colorpalette_Color *color);
8689 EAPI void elm_colorpalette_row_column_set(Evas_Object *obj, int row, int col);
8690 /* smart callbacks called:
8691 * "clicked" - when image clicked
8695 EAPI Evas_Object *elm_editfield_add(Evas_Object *parent);
8696 EAPI void elm_editfield_label_set(Evas_Object *obj, const char *label);
8697 EAPI const char *elm_editfield_label_get(Evas_Object *obj);
8698 EAPI void elm_editfield_guide_text_set(Evas_Object *obj, const char *text);
8699 EAPI const char *elm_editfield_guide_text_get(Evas_Object *obj);
8700 EAPI Evas_Object *elm_editfield_entry_get(Evas_Object *obj);
8701 // EAPI Evas_Object *elm_editfield_clear_button_show(Evas_Object *obj, Eina_Bool show);
8702 EAPI void elm_editfield_right_icon_set(Evas_Object *obj, Evas_Object *icon);
8703 EAPI Evas_Object *elm_editfield_right_icon_get(Evas_Object *obj);
8704 EAPI void elm_editfield_left_icon_set(Evas_Object *obj, Evas_Object *icon);
8705 EAPI Evas_Object *elm_editfield_left_icon_get(Evas_Object *obj);
8706 EAPI void elm_editfield_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line);
8707 EAPI Eina_Bool elm_editfield_entry_single_line_get(Evas_Object *obj);
8708 EAPI void elm_editfield_eraser_set(Evas_Object *obj, Eina_Bool visible);
8709 EAPI Eina_Bool elm_editfield_eraser_get(Evas_Object *obj);
8710 /* smart callbacks called:
8711 * "clicked" - when an editfield is clicked
8712 * "unfocused" - when an editfield is unfocused
8716 /* Sliding Drawer */
8717 typedef enum _Elm_SlidingDrawer_Pos
8719 ELM_SLIDINGDRAWER_BOTTOM,
8720 ELM_SLIDINGDRAWER_LEFT,
8721 ELM_SLIDINGDRAWER_RIGHT,
8722 ELM_SLIDINGDRAWER_TOP
8723 } Elm_SlidingDrawer_Pos;
8725 typedef struct _Elm_SlidingDrawer_Drag_Value
8728 } Elm_SlidingDrawer_Drag_Value;
8730 EINA_DEPRECATED EAPI Evas_Object *elm_slidingdrawer_add(Evas_Object *parent);
8731 EINA_DEPRECATED EAPI void elm_slidingdrawer_content_set (Evas_Object *obj, Evas_Object *content);
8732 EINA_DEPRECATED EAPI Evas_Object *elm_slidingdrawer_content_unset(Evas_Object *obj);
8733 EINA_DEPRECATED EAPI void elm_slidingdrawer_pos_set(Evas_Object *obj, Elm_SlidingDrawer_Pos pos);
8734 EINA_DEPRECATED EAPI void elm_slidingdrawer_max_drag_value_set(Evas_Object *obj, double dw, double dh);
8735 EINA_DEPRECATED EAPI void elm_slidingdrawer_drag_value_set(Evas_Object *obj, double dx, double dy);
8737 /* multibuttonentry */
8738 typedef struct _Multibuttonentry_Item Elm_Multibuttonentry_Item;
8739 typedef Eina_Bool (*Elm_Multibuttonentry_Item_Verify_Callback) (Evas_Object *obj, const char *item_label, void *item_data, void *data);
8740 EAPI Evas_Object *elm_multibuttonentry_add(Evas_Object *parent);
8741 EAPI const char *elm_multibuttonentry_label_get(Evas_Object *obj);
8742 EAPI void elm_multibuttonentry_label_set(Evas_Object *obj, const char *label);
8743 EAPI Evas_Object *elm_multibuttonentry_entry_get(Evas_Object *obj);
8744 EAPI const char * elm_multibuttonentry_guide_text_get(Evas_Object *obj);
8745 EAPI void elm_multibuttonentry_guide_text_set(Evas_Object *obj, const char *guidetext);
8746 EAPI int elm_multibuttonentry_contracted_state_get(Evas_Object *obj);
8747 EAPI void elm_multibuttonentry_contracted_state_set(Evas_Object *obj, int contracted);
8748 EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_add_start(Evas_Object *obj, const char *label, void *data);
8749 EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_add_end(Evas_Object *obj, const char *label, void *data);
8750 EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_add_before(Evas_Object *obj, const char *label, Elm_Multibuttonentry_Item *before, void *data);
8751 EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_add_after(Evas_Object *obj, const char *label, Elm_Multibuttonentry_Item *after, void *data);
8752 EAPI const Eina_List *elm_multibuttonentry_items_get(Evas_Object *obj);
8753 EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_first_get(Evas_Object *obj);
8754 EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_last_get(Evas_Object *obj);
8755 EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_selected_get(Evas_Object *obj);
8756 EAPI void elm_multibuttonentry_item_selected_set(Elm_Multibuttonentry_Item *item);
8757 EAPI void elm_multibuttonentry_item_unselect_all(Evas_Object *obj);
8758 EAPI void elm_multibuttonentry_item_del(Elm_Multibuttonentry_Item *item);
8759 EAPI void elm_multibuttonentry_items_del(Evas_Object *obj);
8760 EAPI const char *elm_multibuttonentry_item_label_get(Elm_Multibuttonentry_Item *item);
8761 EAPI void elm_multibuttonentry_item_label_set(Elm_Multibuttonentry_Item *item, const char *str);
8762 EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_prev(Elm_Multibuttonentry_Item *item);
8763 EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_next(Elm_Multibuttonentry_Item *item);
8764 EAPI void *elm_multibuttonentry_item_data_get(Elm_Multibuttonentry_Item *item);
8765 EAPI void elm_multibuttonentry_item_data_set(Elm_Multibuttonentry_Item *item, void *data);
8766 EAPI void elm_multibuttonentry_item_verify_callback_set(Evas_Object *obj, Elm_Multibuttonentry_Item_Verify_Callback func, void *data);
8767 /* smart callback called:
8768 * "selected" - This signal is emitted when the selected item of multibuttonentry is changed.
8769 * "added" - This signal is emitted when a new multibuttonentry item is added.
8770 * "deleted" - This signal is emitted when a multibuttonentry item is deleted.
8771 * "expanded" - This signal is emitted when a multibuttonentry is expanded.
8772 * "contracted" - This signal is emitted when a multibuttonentry is contracted.
8773 * "contracted,state,changed" - This signal is emitted when the contracted state of multibuttonentry is changed.
8774 * "item,selected" - This signal is emitted when the selected item of multibuttonentry is changed.
8775 * "item,added" - This signal is emitted when a new multibuttonentry item is added.
8776 * "item,deleted" - This signal is emitted when a multibuttonentry item is deleted.
8777 * "item,clicked" - This signal is emitted when a multibuttonentry item is clicked.
8778 * "clicked" - This signal is emitted when a multibuttonentry is clicked.
8779 * "unfocused" - This signal is emitted when a multibuttonentry is unfocused.
8781 /* available styles:
8786 typedef struct _Stackedicon_Item Elm_Stackedicon_Item;
8787 EAPI Evas_Object *elm_stackedicon_add(Evas_Object *parent);
8788 EAPI Elm_Stackedicon_Item *elm_stackedicon_item_append(Evas_Object *obj, const char *path);
8789 EAPI Elm_Stackedicon_Item *elm_stackedicon_item_prepend(Evas_Object *obj, const char *path);
8790 EAPI void elm_stackedicon_item_del(Elm_Stackedicon_Item *it);
8791 EAPI Eina_List *elm_stackedicon_item_list_get(Evas_Object *obj);
8792 /* smart callback called:
8793 * "expanded" - This signal is emitted when a stackedicon is expanded.
8794 * "clicked" - This signal is emitted when a stackedicon is clicked.
8796 /* available styles:
8801 typedef struct _Dialogue_Item Dialogue_Item;
8803 typedef enum _Elm_Dialoguegourp_Item_Style
8805 ELM_DIALOGUEGROUP_ITEM_STYLE_DEFAULT = 0,
8806 ELM_DIALOGUEGROUP_ITEM_STYLE_EDITFIELD = (1 << 0),
8807 ELM_DIALOGUEGROUP_ITEM_STYLE_EDITFIELD_WITH_TITLE = (1 << 1),
8808 ELM_DIALOGUEGROUP_ITEM_STYLE_EDIT_TITLE = (1 << 2),
8809 ELM_DIALOGUEGROUP_ITEM_STYLE_HIDDEN = (1 << 3),
8810 ELM_DIALOGUEGROUP_ITEM_STYLE_DATAVIEW = (1 << 4),
8811 ELM_DIALOGUEGROUP_ITEM_STYLE_NO_BG = (1 << 5),
8812 ELM_DIALOGUEGROUP_ITEM_STYLE_SUB = (1 << 6),
8813 ELM_DIALOGUEGROUP_ITEM_STYLE_EDIT = (1 << 7),
8814 ELM_DIALOGUEGROUP_ITEM_STYLE_EDIT_MERGE = (1 << 8),
8815 ELM_DIALOGUEGROUP_ITEM_STYLE_LAST = (1 << 9)
8816 } Elm_Dialoguegroup_Item_Style;
8818 EINA_DEPRECATED EAPI Evas_Object *elm_dialoguegroup_add(Evas_Object *parent);
8819 EINA_DEPRECATED EAPI Dialogue_Item *elm_dialoguegroup_append(Evas_Object *obj, Evas_Object *subobj, Elm_Dialoguegroup_Item_Style style);
8820 EINA_DEPRECATED EAPI Dialogue_Item *elm_dialoguegroup_prepend(Evas_Object *obj, Evas_Object *subobj, Elm_Dialoguegroup_Item_Style style);
8821 EINA_DEPRECATED EAPI Dialogue_Item *elm_dialoguegroup_insert_after(Evas_Object *obj, Evas_Object *subobj, Dialogue_Item *after, Elm_Dialoguegroup_Item_Style style);
8822 EINA_DEPRECATED EAPI Dialogue_Item *elm_dialoguegroup_insert_before(Evas_Object *obj, Evas_Object *subobj, Dialogue_Item *before, Elm_Dialoguegroup_Item_Style style);
8823 EINA_DEPRECATED EAPI void elm_dialoguegroup_remove(Dialogue_Item *item);
8824 EINA_DEPRECATED EAPI void elm_dialoguegroup_remove_all(Evas_Object *obj);
8825 EINA_DEPRECATED EAPI void elm_dialoguegroup_title_set(Evas_Object *obj, const char *title);
8826 EINA_DEPRECATED EAPI const char *elm_dialoguegroup_title_get(Evas_Object *obj);
8827 EINA_DEPRECATED EAPI void elm_dialoguegroup_press_effect_set(Dialogue_Item *item, Eina_Bool press);
8828 EINA_DEPRECATED EAPI Eina_Bool elm_dialoguegroup_press_effect_get(Dialogue_Item *item);
8829 EINA_DEPRECATED EAPI Evas_Object *elm_dialoguegroup_item_content_get(Dialogue_Item *item);
8830 EINA_DEPRECATED EAPI void elm_dialoguegroup_item_style_set(Dialogue_Item *item, Elm_Dialoguegroup_Item_Style style);
8831 EINA_DEPRECATED EAPI Elm_Dialoguegroup_Item_Style elm_dialoguegroup_item_style_get(Dialogue_Item *item);
8832 EINA_DEPRECATED EAPI void elm_dialoguegroup_item_disabled_set(Dialogue_Item *item, Eina_Bool disabled);
8833 EINA_DEPRECATED EAPI Eina_Bool elm_dialoguegroup_item_disabled_get(Dialogue_Item *item);
8838 ELM_DAYSELECTOR_SUN,
8839 ELM_DAYSELECTOR_MON,
8840 ELM_DAYSELECTOR_TUE,
8841 ELM_DAYSELECTOR_WED,
8842 ELM_DAYSELECTOR_THU,
8843 ELM_DAYSELECTOR_FRI,
8845 } Elm_DaySelector_Day;
8847 EAPI Evas_Object *elm_dayselector_add(Evas_Object *parent);
8848 EAPI Eina_Bool elm_dayselector_check_state_get(Evas_Object *obj, Elm_DaySelector_Day day);
8849 EAPI void elm_dayselector_check_state_set(Evas_Object *obj, Elm_DaySelector_Day day, Eina_Bool checked);
8852 typedef struct _Imageslider_Item Elm_Imageslider_Item;
8853 typedef void (*Elm_Imageslider_Cb)(void *data, Evas_Object *obj, void *event_info);
8854 EAPI Evas_Object *elm_imageslider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8855 EAPI Elm_Imageslider_Item *elm_imageslider_item_append(Evas_Object *obj, const char *photo_file, Elm_Imageslider_Cb func, void *data) EINA_ARG_NONNULL(1);
8856 EAPI Elm_Imageslider_Item *elm_imageslider_item_append_relative(Evas_Object *obj, const char *photo_file, Elm_Imageslider_Cb func, unsigned int index, void *data) EINA_ARG_NONNULL(1);
8857 EAPI Elm_Imageslider_Item *elm_imageslider_item_prepend(Evas_Object *obj, const char *photo_file, Elm_Imageslider_Cb func, void *data) EINA_ARG_NONNULL(1);
8858 EAPI void elm_imageslider_item_del(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);
8859 EAPI Elm_Imageslider_Item *elm_imageslider_selected_item_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
8860 EAPI Eina_Bool elm_imageslider_item_selected_get(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);
8861 EAPI void elm_imageslider_item_selected_set(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);
8862 EAPI const char *elm_imageslider_item_photo_file_get(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);
8863 EAPI Elm_Imageslider_Item *elm_imageslider_item_prev(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);
8864 EAPI Elm_Imageslider_Item *elm_imageslider_item_next(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);
8865 EAPI void elm_imageslider_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
8866 EAPI void elm_imageslider_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
8867 EAPI void elm_imageslider_item_photo_file_set(Elm_Imageslider_Item *it, const char *photo_file) EINA_ARG_NONNULL(1,2);
8868 EAPI void elm_imageslider_item_update(Elm_Imageslider_Item *it) EINA_ARG_NONNULL(1);