elm factory... in, genscroller out.
[framework/uifw/elementary.git] / src / lib / Elementary.h.in
1 /*
2  *
3  * vim:ts=8:sw=3:sts=3:expandtab:cino=>5n-3f0^-2{2(0W1st0
4  */
5
6 /**
7 @file Elementary.h.in
8 @brief Elementary Widget Library
9 */
10
11 /**
12 @mainpage Elementary
13 @image html  elementary.png
14 @version @PACKAGE_VERSION@
15 @date 2008-2011
16
17 @section intro What is Elementary?
18
19 This is a VERY SIMPLE toolkit. It is not meant for writing extensive desktop
20 applications (yet). Small simple ones with simple needs.
21
22 It is meant to make the programmers work almost brainless but give them lots
23 of flexibility.
24
25 @section organization Organization
26
27 One can divide Elemementary into three main groups:
28 @li @ref infralist - These are modules that deal with Elementary as a whole.
29 @li @ref widgetslist - These are the widgets you'll compose your UI out of.
30 @li @ref containerslist - These are the containers in which the widgets will be
31                           layouted.
32
33 @section license License
34
35 LGPL v2 (see COPYING in the base of Elementary's source). This applies to
36 all files in the source tree.
37
38 @section ack Acknowledgements
39 There is a lot that goes into making a widget set, and they don't happen out of
40 nothing. It's like trying to make everyone everywhere happy, regardless of age,
41 gender, race or nationality - and that is really tough. So thanks to people and
42 organisations behind this, as listed in the @ref authors page.
43 */
44
45 /**
46 @page authors Authors
47 @author Carsten Haitzler <raster@@rasterman.com>
48 @author Gustavo Sverzut Barbieri <barbieri@@profusion.mobi>
49 @author Cedric Bail <cedric.bail@@free.fr>
50 @author Vincent Torri <vtorri@@univ-evry.fr>
51 @author Daniel Kolesa <quaker66@@gmail.com>
52 @author Jaime Thomas <avi.thomas@@gmail.com>
53 @author Swisscom - http://www.swisscom.ch/
54 @author Christopher Michael <devilhorns@@comcast.net>
55 @author Marco Trevisan (Treviño) <mail@@3v1n0.net>
56 @author Michael Bouchaud <michael.bouchaud@@gmail.com>
57 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
58 @author Brian Wang <brian.wang.0721@@gmail.com>
59 @author Mike Blumenkrantz (zmike) <mike@@zentific.com>
60 @author Samsung Electronics <tbd>
61 @author Samsung SAIT <tbd>
62 @author Brett Nash <nash@@nash.id.au>
63 @author Bruno Dilly <bdilly@@profusion.mobi>
64 @author Rafael Fonseca <rfonseca@@profusion.mobi>
65 @author Chuneon Park <hermet@@hermet.pe.kr>
66 @author Woohyun Jung <wh0705.jung@@samsung.com>
67 @author Jaehwan Kim <jae.hwan.kim@@samsung.com>
68 @author Wonguk Jeong <wonguk.jeong@@samsung.com>
69 @author Leandro A. F. Pereira <leandro@@profusion.mobi>
70 @author Helen Fornazier <helen.fornazier@@profusion.mobi>
71 @author Gustavo Lima Chaves <glima@@profusion.mobi>
72 @author Fabiano Fidêncio <fidencio@@profusion.mobi>
73 @author Tiago Falcão <tiago@@profusion.mobi>
74 @author Otavio Pontes <otavio@@profusion.mobi>
75 @author Viktor Kojouharov <vkojouharov@@gmail.com>
76 @author Daniel Juyung Seo (SeoZ) <juyung.seo@@samsung.com> <seojuyung2@@gmail.com>
77 @author Sangho Park <sangho.g.park@@samsung.com> <gouache95@@gmail.com>
78 @author Rajeev Ranjan (Rajeev) <rajeev.r@@samsung.com> <rajeev.jnnce@@gmail.com>
79 @author Seunggyun Kim <sgyun.kim@@samsung.com> <tmdrbs@@gmail.com>
80 @author Sohyun Kim <anna1014.kim@@samsung.com> <sohyun.anna@@gmail.com>
81 @author Jihoon Kim <jihoon48.kim@@samsung.com>
82 @author Jeonghyun Yun (arosis) <jh0506.yun@@samsung.com>
83 @author Tom Hacohen <tom@@stosb.com>
84 @author Aharon Hillel <a.hillel@@partner.samsung.com>
85 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
86 @author Shinwoo Kim <kimcinoo@@gmail.com>
87 @author Govindaraju SM <govi.sm@@samsung.com> <govism@@gmail.com>
88 @author Prince Kumar Dubey <prince.dubey@@samsung.com> <prince.dubey@@gmail.com>
89
90 Please contact <enlightenment-devel@lists.sourceforge.net> to get in
91 contact with the developers and maintainers.
92  */
93
94 #ifndef ELEMENTARY_H
95 #define ELEMENTARY_H
96
97 /**
98  * @file Elementary.h
99  * @brief Elementary's API
100  *
101  * Elementary API.
102  */
103
104 @ELM_UNIX_DEF@ ELM_UNIX
105 @ELM_WIN32_DEF@ ELM_WIN32
106 @ELM_WINCE_DEF@ ELM_WINCE
107 @ELM_EDBUS_DEF@ ELM_EDBUS
108 @ELM_EFREET_DEF@ ELM_EFREET
109 @ELM_ETHUMB_DEF@ ELM_ETHUMB
110 @ELM_EMAP_DEF@ ELM_EMAP
111 @ELM_DEBUG_DEF@ ELM_DEBUG
112 @ELM_ALLOCA_H_DEF@ ELM_ALLOCA_H
113 @ELM_LIBINTL_H_DEF@ ELM_LIBINTL_H
114
115 /* Standard headers for standard system calls etc. */
116 #include <stdio.h>
117 #include <stdlib.h>
118 #include <unistd.h>
119 #include <string.h>
120 #include <sys/types.h>
121 #include <sys/stat.h>
122 #include <sys/time.h>
123 #include <sys/param.h>
124 #include <dlfcn.h>
125 #include <math.h>
126 #include <fnmatch.h>
127 #include <limits.h>
128 #include <ctype.h>
129 #include <time.h>
130 #include <dirent.h>
131 #include <pwd.h>
132 #include <errno.h>
133
134 #ifdef ELM_UNIX
135 # include <locale.h>
136 # ifdef ELM_LIBINTL_H
137 #  include <libintl.h>
138 # endif
139 # include <signal.h>
140 # include <grp.h>
141 # include <glob.h>
142 #endif
143
144 #ifdef ELM_ALLOCA_H
145 # include <alloca.h>
146 #endif
147
148 #if defined (ELM_WIN32) || defined (ELM_WINCE)
149 # include <malloc.h>
150 # ifndef alloca
151 #  define alloca _alloca
152 # endif
153 #endif
154
155
156 /* EFL headers */
157 #include <Eina.h>
158 #include <Eet.h>
159 #include <Evas.h>
160 #include <Evas_GL.h>
161 #include <Ecore.h>
162 #include <Ecore_Evas.h>
163 #include <Ecore_File.h>
164 #include <Ecore_IMF.h>
165 #include <Ecore_Con.h>
166 #include <Edje.h>
167
168 #ifdef ELM_EDBUS
169 # include <E_DBus.h>
170 #endif
171
172 #ifdef ELM_EFREET
173 # include <Efreet.h>
174 # include <Efreet_Mime.h>
175 # include <Efreet_Trash.h>
176 #endif
177
178 #ifdef ELM_ETHUMB
179 # include <Ethumb_Client.h>
180 #endif
181
182 #ifdef ELM_EMAP
183 # include <EMap.h>
184 #endif
185
186 #ifdef EAPI
187 # undef EAPI
188 #endif
189
190 #ifdef _WIN32
191 # ifdef ELEMENTARY_BUILD
192 #  ifdef DLL_EXPORT
193 #   define EAPI __declspec(dllexport)
194 #  else
195 #   define EAPI
196 #  endif /* ! DLL_EXPORT */
197 # else
198 #  define EAPI __declspec(dllimport)
199 # endif /* ! EFL_EVAS_BUILD */
200 #else
201 # ifdef __GNUC__
202 #  if __GNUC__ >= 4
203 #   define EAPI __attribute__ ((visibility("default")))
204 #  else
205 #   define EAPI
206 #  endif
207 # else
208 #  define EAPI
209 # endif
210 #endif /* ! _WIN32 */
211
212
213 /* allow usage from c++ */
214 #ifdef __cplusplus
215 extern "C" {
216 #endif
217
218 #define ELM_VERSION_MAJOR @VMAJ@
219 #define ELM_VERSION_MINOR @VMIN@
220
221    typedef struct _Elm_Version
222      {
223         int major;
224         int minor;
225         int micro;
226         int revision;
227      } Elm_Version;
228
229    EAPI extern Elm_Version *elm_version;
230
231 /* handy macros */
232 #define ELM_RECTS_INTERSECT(x, y, w, h, xx, yy, ww, hh) (((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && (((x) + (w)) > (xx)) && (((y) + (h)) > (yy)))
233 #define ELM_PI 3.14159265358979323846
234
235    /**
236     * @defgroup General General
237     *
238     * @brief General Elementary API. Functions that don't relate to
239     * Elementary objects specifically.
240     *
241     * Here are documented functions which init/shutdown the library,
242     * that apply to generic Elementary objects, that deal with
243     * configuration, et cetera.
244     *
245     * @ref general_functions_example_page "This" example contemplates
246     * some of these functions.
247     */
248
249    /**
250     * @addtogroup General
251     * @{
252     */
253
254   /**
255    * Defines couple of standard Evas_Object layers to be used
256    * with evas_object_layer_set().
257    *
258    * @note whenever extending with new values, try to keep some padding
259    *       to siblings so there is room for further extensions.
260    */
261   typedef enum _Elm_Object_Layer
262     {
263        ELM_OBJECT_LAYER_BACKGROUND = EVAS_LAYER_MIN + 64, /**< where to place backgrounds */
264        ELM_OBJECT_LAYER_DEFAULT = 0, /**< Evas_Object default layer (and thus for Elementary) */
265        ELM_OBJECT_LAYER_FOCUS = EVAS_LAYER_MAX - 128, /**< where focus object visualization is */
266        ELM_OBJECT_LAYER_TOOLTIP = EVAS_LAYER_MAX - 64, /**< where to show tooltips */
267        ELM_OBJECT_LAYER_CURSOR = EVAS_LAYER_MAX - 32, /**< where to show cursors */
268        ELM_OBJECT_LAYER_LAST /**< last layer known by Elementary */
269     } Elm_Object_Layer;
270
271 /**************************************************************************/
272    EAPI extern int ELM_ECORE_EVENT_ETHUMB_CONNECT;
273
274    /**
275     * Emitted when any Elementary's policy value is changed.
276     */
277    EAPI extern int ELM_EVENT_POLICY_CHANGED;
278
279    /**
280     * @typedef Elm_Event_Policy_Changed
281     *
282     * Data on the event when an Elementary policy has changed
283     */
284     typedef struct _Elm_Event_Policy_Changed Elm_Event_Policy_Changed;
285
286    /**
287     * @struct _Elm_Event_Policy_Changed
288     *
289     * Data on the event when an Elementary policy has changed
290     */
291     struct _Elm_Event_Policy_Changed
292      {
293         unsigned int policy; /**< the policy identifier */
294         int          new_value; /**< value the policy had before the change */
295         int          old_value; /**< new value the policy got */
296     };
297
298    /**
299     * Policy identifiers.
300     */
301     typedef enum _Elm_Policy
302     {
303         ELM_POLICY_QUIT, /**< under which circunstances the application
304                           * should quit automatically. @see
305                           * Elm_Policy_Quit.
306                           */
307         ELM_POLICY_LAST
308     } Elm_Policy; /**< Elementary policy identifiers/groups enumeration.  @see elm_policy_set()
309  */
310
311    typedef enum _Elm_Policy_Quit
312      {
313         ELM_POLICY_QUIT_NONE = 0, /**< never quit the application
314                                    * automatically */
315         ELM_POLICY_QUIT_LAST_WINDOW_CLOSED /**< quit when the
316                                             * application's last
317                                             * window is closed */
318      } Elm_Policy_Quit; /**< Possible values for the #ELM_POLICY_QUIT policy */
319
320    typedef enum _Elm_Focus_Direction
321      {
322         ELM_FOCUS_PREVIOUS,
323         ELM_FOCUS_NEXT
324      } Elm_Focus_Direction;
325
326    typedef enum _Elm_Text_Format
327      {
328         ELM_TEXT_FORMAT_PLAIN_UTF8,
329         ELM_TEXT_FORMAT_MARKUP_UTF8
330      } Elm_Text_Format;
331
332    /**
333     * Line wrapping types.
334     */
335    typedef enum _Elm_Wrap_Type
336      {
337         ELM_WRAP_NONE = 0, /**< No wrap - value is zero */
338         ELM_WRAP_CHAR, /**< Char wrap - wrap between characters */
339         ELM_WRAP_WORD, /**< Word wrap - wrap in allowed wrapping points (as defined in the unicode standard) */
340         ELM_WRAP_MIXED, /**< Mixed wrap - Word wrap, and if that fails, char wrap. */
341         ELM_WRAP_LAST
342      } Elm_Wrap_Type;
343
344    /**
345     * @typedef Elm_Object_Item
346     * An Elementary Object item handle.
347     * @ingroup General
348     */
349    typedef struct _Elm_Object_Item Elm_Object_Item;
350
351
352    /**
353     * Called back when a widget's tooltip is activated and needs content.
354     * @param data user-data given to elm_object_tooltip_content_cb_set()
355     * @param obj owner widget.
356     * @param tooltip The tooltip object (affix content to this!)
357     */
358    typedef Evas_Object *(*Elm_Tooltip_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip);
359
360    /**
361     * Called back when a widget's item tooltip is activated and needs content.
362     * @param data user-data given to elm_object_tooltip_content_cb_set()
363     * @param obj owner widget.
364     * @param tooltip The tooltip object (affix content to this!)
365     * @param item context dependent item. As an example, if tooltip was
366     *        set on Elm_List_Item, then it is of this type.
367     */
368    typedef Evas_Object *(*Elm_Tooltip_Item_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip, void *item);
369
370    typedef Eina_Bool (*Elm_Event_Cb) (void *data, Evas_Object *obj, Evas_Object *src, Evas_Callback_Type type, void *event_info);
371
372 #ifndef ELM_LIB_QUICKLAUNCH
373 #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 */
374 #else
375 #define ELM_MAIN() int main(int argc, char **argv) {return elm_quicklaunch_fallback(argc, argv);} /**< macro to be used after the elm_main() function */
376 #endif
377
378 /**************************************************************************/
379    /* General calls */
380
381    /**
382     * Initialize Elementary
383     *
384     * @param[in] argc System's argument count value
385     * @param[in] argv System's pointer to array of argument strings
386     * @return The init counter value.
387     *
388     * This function initializes Elementary and increments a counter of
389     * the number of calls to it. It returs the new counter's value.
390     *
391     * @warning This call is exported only for use by the @c ELM_MAIN()
392     * macro. There is no need to use this if you use this macro (which
393     * is highly advisable). An elm_main() should contain the entry
394     * point code for your application, having the same prototype as
395     * elm_init(), and @b not being static (putting the @c EAPI symbol
396     * in front of its type declaration is advisable). The @c
397     * ELM_MAIN() call should be placed just after it.
398     *
399     * Example:
400     * @dontinclude bg_example_01.c
401     * @skip static void
402     * @until ELM_MAIN
403     *
404     * See the full @ref bg_example_01_c "example".
405     *
406     * @see elm_shutdown().
407     * @ingroup General
408     */
409    EAPI int          elm_init(int argc, char **argv);
410
411    /**
412     * Shut down Elementary
413     *
414     * @return The init counter value.
415     *
416     * This should be called at the end of your application, just
417     * before it ceases to do any more processing. This will clean up
418     * any permanent resources your application may have allocated via
419     * Elementary that would otherwise persist.
420     *
421     * @see elm_init() for an example
422     *
423     * @ingroup General
424     */
425    EAPI int          elm_shutdown(void);
426
427    /**
428     * Run Elementary's main loop
429     *
430     * This call should be issued just after all initialization is
431     * completed. This function will not return until elm_exit() is
432     * called. It will keep looping, running the main
433     * (event/processing) loop for Elementary.
434     *
435     * @see elm_init() for an example
436     *
437     * @ingroup General
438     */
439    EAPI void         elm_run(void);
440
441    /**
442     * Exit Elementary's main loop
443     *
444     * If this call is issued, it will flag the main loop to cease
445     * processing and return back to its parent function (usually your
446     * elm_main() function).
447     *
448     * @see elm_init() for an example. There, just after a request to
449     * close the window comes, the main loop will be left.
450     *
451     * @note By using the #ELM_POLICY_QUIT on your Elementary
452     * applications, you'll this function called automatically for you.
453     *
454     * @ingroup General
455     */
456    EAPI void         elm_exit(void);
457
458    /**
459     * Provide information in order to make Elementary determine the @b
460     * run time location of the software in question, so other data files
461     * such as images, sound files, executable utilities, libraries,
462     * modules and locale files can be found.
463     *
464     * @param mainfunc This is your application's main function name,
465     *        whose binary's location is to be found. Providing @c NULL
466     *        will make Elementary not to use it
467     * @param dom This will be used as the application's "domain", in the
468     *        form of a prefix to any environment variables that may
469     *        override prefix detection and the directory name, inside the
470     *        standard share or data directories, where the software's
471     *        data files will be looked for.
472     * @param checkfile This is an (optional) magic file's path to check
473     *        for existence (and it must be located in the data directory,
474     *        under the share directory provided above). Its presence will
475     *        help determine the prefix found was correct. Pass @c NULL if
476     *        the check is not to be done.
477     *
478     * This function allows one to re-locate the application somewhere
479     * else after compilation, if the developer wishes for easier
480     * distribution of pre-compiled binaries.
481     *
482     * The prefix system is designed to locate where the given software is
483     * installed (under a common path prefix) at run time and then report
484     * specific locations of this prefix and common directories inside
485     * this prefix like the binary, library, data and locale directories,
486     * through the @c elm_app_*_get() family of functions.
487     *
488     * Call elm_app_info_set() early on before you change working
489     * directory or anything about @c argv[0], so it gets accurate
490     * information.
491     *
492     * It will then try and trace back which file @p mainfunc comes from,
493     * if provided, to determine the application's prefix directory.
494     *
495     * The @p dom parameter provides a string prefix to prepend before
496     * environment variables, allowing a fallback to @b specific
497     * environment variables to locate the software. You would most
498     * probably provide a lowercase string there, because it will also
499     * serve as directory domain, explained next. For environment
500     * variables purposes, this string is made uppercase. For example if
501     * @c "myapp" is provided as the prefix, then the program would expect
502     * @c "MYAPP_PREFIX" as a master environment variable to specify the
503     * exact install prefix for the software, or more specific environment
504     * variables like @c "MYAPP_BIN_DIR", @c "MYAPP_LIB_DIR", @c
505     * "MYAPP_DATA_DIR" and @c "MYAPP_LOCALE_DIR", which could be set by
506     * the user or scripts before launching. If not provided (@c NULL),
507     * environment variables will not be used to override compiled-in
508     * defaults or auto detections.
509     *
510     * The @p dom string also provides a subdirectory inside the system
511     * shared data directory for data files. For example, if the system
512     * directory is @c /usr/local/share, then this directory name is
513     * appended, creating @c /usr/local/share/myapp, if it @p was @c
514     * "myapp". It is expected the application installs data files in
515     * this directory.
516     *
517     * The @p checkfile is a file name or path of something inside the
518     * share or data directory to be used to test that the prefix
519     * detection worked. For example, your app will install a wallpaper
520     * image as @c /usr/local/share/myapp/images/wallpaper.jpg and so to
521     * check that this worked, provide @c "images/wallpaper.jpg" as the @p
522     * checkfile string.
523     *
524     * @see elm_app_compile_bin_dir_set()
525     * @see elm_app_compile_lib_dir_set()
526     * @see elm_app_compile_data_dir_set()
527     * @see elm_app_compile_locale_set()
528     * @see elm_app_prefix_dir_get()
529     * @see elm_app_bin_dir_get()
530     * @see elm_app_lib_dir_get()
531     * @see elm_app_data_dir_get()
532     * @see elm_app_locale_dir_get()
533     */
534    EAPI void         elm_app_info_set(void *mainfunc, const char *dom, const char *checkfile);
535
536    /**
537     * Provide information on the @b fallback application's binaries
538     * directory, on scenarios where they get overriden by
539     * elm_app_info_set().
540     *
541     * @param dir The path to the default binaries directory (compile time
542     * one)
543     *
544     * @note Elementary will as well use this path to determine actual
545     * names of binaries' directory paths, maybe changing it to be @c
546     * something/local/bin instead of @c something/bin, only, for
547     * example.
548     *
549     * @warning You should call this function @b before
550     * elm_app_info_set().
551     */
552    EAPI void         elm_app_compile_bin_dir_set(const char *dir);
553
554    /**
555     * Provide information on the @b fallback application's libraries
556     * directory, on scenarios where they get overriden by
557     * elm_app_info_set().
558     *
559     * @param dir The path to the default libraries directory (compile
560     * time one)
561     *
562     * @note Elementary will as well use this path to determine actual
563     * names of libraries' directory paths, maybe changing it to be @c
564     * something/lib32 or @c something/lib64 instead of @c something/lib,
565     * only, for example.
566     *
567     * @warning You should call this function @b before
568     * elm_app_info_set().
569     */
570    EAPI void         elm_app_compile_lib_dir_set(const char *dir);
571
572    /**
573     * Provide information on the @b fallback application's data
574     * directory, on scenarios where they get overriden by
575     * elm_app_info_set().
576     *
577     * @param dir The path to the default data directory (compile time
578     * one)
579     *
580     * @note Elementary will as well use this path to determine actual
581     * names of data directory paths, maybe changing it to be @c
582     * something/local/share instead of @c something/share, only, for
583     * example.
584     *
585     * @warning You should call this function @b before
586     * elm_app_info_set().
587     */
588    EAPI void         elm_app_compile_data_dir_set(const char *dir);
589
590    /**
591     * Provide information on the @b fallback application's locale
592     * directory, on scenarios where they get overriden by
593     * elm_app_info_set().
594     *
595     * @param dir The path to the default locale directory (compile time
596     * one)
597     *
598     * @warning You should call this function @b before
599     * elm_app_info_set().
600     */
601    EAPI void         elm_app_compile_locale_set(const char *dir);
602
603    /**
604     * Retrieve the application's run time prefix directory, as set by
605     * elm_app_info_set() and the way (environment) the application was
606     * run from.
607     *
608     * @return The directory prefix the application is actually using
609     */
610    EAPI const char  *elm_app_prefix_dir_get(void);
611
612    /**
613     * Retrieve the application's run time binaries prefix directory, as
614     * set by elm_app_info_set() and the way (environment) the application
615     * was run from.
616     *
617     * @return The binaries directory prefix the application is actually
618     * using
619     */
620    EAPI const char  *elm_app_bin_dir_get(void);
621
622    /**
623     * Retrieve the application's run time libraries prefix directory, as
624     * set by elm_app_info_set() and the way (environment) the application
625     * was run from.
626     *
627     * @return The libraries directory prefix the application is actually
628     * using
629     */
630    EAPI const char  *elm_app_lib_dir_get(void);
631
632    /**
633     * Retrieve the application's run time data prefix directory, as
634     * set by elm_app_info_set() and the way (environment) the application
635     * was run from.
636     *
637     * @return The data directory prefix the application is actually
638     * using
639     */
640    EAPI const char  *elm_app_data_dir_get(void);
641
642    /**
643     * Retrieve the application's run time locale prefix directory, as
644     * set by elm_app_info_set() and the way (environment) the application
645     * was run from.
646     *
647     * @return The locale directory prefix the application is actually
648     * using
649     */
650    EAPI const char  *elm_app_locale_dir_get(void);
651
652    EAPI void         elm_quicklaunch_mode_set(Eina_Bool ql_on);
653    EAPI Eina_Bool    elm_quicklaunch_mode_get(void);
654    EAPI int          elm_quicklaunch_init(int argc, char **argv);
655    EAPI int          elm_quicklaunch_sub_init(int argc, char **argv);
656    EAPI int          elm_quicklaunch_sub_shutdown(void);
657    EAPI int          elm_quicklaunch_shutdown(void);
658    EAPI void         elm_quicklaunch_seed(void);
659    EAPI Eina_Bool    elm_quicklaunch_prepare(int argc, char **argv);
660    EAPI Eina_Bool    elm_quicklaunch_fork(int argc, char **argv, char *cwd, void (postfork_func) (void *data), void *postfork_data);
661    EAPI void         elm_quicklaunch_cleanup(void);
662    EAPI int          elm_quicklaunch_fallback(int argc, char **argv);
663    EAPI char        *elm_quicklaunch_exe_path_get(const char *exe);
664
665    EAPI Eina_Bool    elm_need_efreet(void);
666    EAPI Eina_Bool    elm_need_e_dbus(void);
667    EAPI Eina_Bool    elm_need_ethumb(void);
668
669    /**
670     * Set a new policy's value (for a given policy group/identifier).
671     *
672     * @param policy policy identifier, as in @ref Elm_Policy.
673     * @param value policy value, which depends on the identifier
674     *
675     * @return @c EINA_TRUE on success or @c EINA_FALSE, on error.
676     *
677     * Elementary policies define applications' behavior,
678     * somehow. These behaviors are divided in policy groups (see
679     * #Elm_Policy enumeration). This call will emit the Ecore event
680     * #ELM_EVENT_POLICY_CHANGED, which can be hooked at with
681     * handlers. An #Elm_Event_Policy_Changed struct will be passed,
682     * then.
683     *
684     * @note Currently, we have only one policy identifier/group
685     * (#ELM_POLICY_QUIT), which has two possible values.
686     *
687     * @ingroup General
688     */
689    EAPI Eina_Bool    elm_policy_set(unsigned int policy, int value);
690
691    /**
692     * Gets the policy value set for given policy identifier.
693     *
694     * @param policy policy identifier, as in #Elm_Policy.
695     * @return The currently set policy value, for that
696     * identifier. Will be @c 0 if @p policy passed is invalid.
697     *
698     * @ingroup General
699     */
700    EAPI int          elm_policy_get(unsigned int policy);
701
702    /**
703     * Set a label of an object
704     *
705     * @param obj The Elementary object
706     * @param part The text part name to set (NULL for the default label)
707     * @param label The new text of the label
708     *
709     * @note Elementary objects may have many labels (e.g. Action Slider)
710     *
711     * @ingroup General
712     */
713    EAPI void         elm_object_text_part_set(Evas_Object *obj, const char *part, const char *label);
714
715 #define elm_object_text_set(obj, label) elm_object_text_part_set((obj), NULL, (label))
716
717    /**
718     * Get a label of an object
719     *
720     * @param obj The Elementary object
721     * @param part The text part name to get (NULL for the default label)
722     * @return text of the label or NULL for any error
723     *
724     * @note Elementary objects may have many labels (e.g. Action Slider)
725     *
726     * @ingroup General
727     */
728    EAPI const char  *elm_object_text_part_get(const Evas_Object *obj, const char *part);
729
730 #define elm_object_text_get(obj) elm_object_text_part_get((obj), NULL)
731
732    /**
733     * Set a content of an object
734     *
735     * @param obj The Elementary object
736     * @param part The content part name to set (NULL for the default content)
737     * @param content The new content of the object
738     *
739     * @note Elementary objects may have many contents
740     *
741     * @ingroup General
742     */
743    EAPI void elm_object_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content);
744
745 #define elm_object_content_set(obj, content) elm_object_content_part_set((obj), NULL, (content))
746
747    /**
748     * Get a content of an object
749     *
750     * @param obj The Elementary object
751     * @param item The content part name to get (NULL for the default content)
752     * @return content of the object or NULL for any error
753     *
754     * @note Elementary objects may have many contents
755     *
756     * @ingroup General
757     */
758    EAPI Evas_Object *elm_object_content_part_get(const Evas_Object *obj, const char *part);
759
760 #define elm_object_content_get(obj) elm_object_content_part_get((obj), NULL)
761
762    /**
763     * Unset a content of an object
764     *
765     * @param obj The Elementary object
766     * @param item The content part name to unset (NULL for the default content)
767     *
768     * @note Elementary objects may have many contents
769     *
770     * @ingroup General
771     */
772    EAPI Evas_Object *elm_object_content_part_unset(Evas_Object *obj, const char *part);
773
774 #define elm_object_content_unset(obj) elm_object_content_part_unset((obj), NULL)
775
776    /**
777     * Set a content of an object item
778     *
779     * @param it The Elementary object item
780     * @param part The content part name to unset (NULL for the default content)
781     * @param content The new content of the object item
782     *
783     * @note Elementary object items may have many contents
784     *
785     * @ingroup General
786     */
787    EAPI void elm_object_item_content_part_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
788
789 #define elm_object_item_content_set(it, content) elm_object_item_content_part_set((it), NULL, (content))
790
791    /**
792     * Get a content of an object item
793     *
794     * @param it The Elementary object item
795     * @param part The content part name to unset (NULL for the default content)
796     * @return content of the object item or NULL for any error
797     *
798     * @note Elementary object items may have many contents
799     *
800     * @ingroup General
801     */
802    EAPI Evas_Object *elm_object_item_content_part_get(const Elm_Object_Item *it, const char *item);
803
804 #define elm_object_item_content_get(it, content) elm_object_item_content_part_get((it), NULL, (content))
805
806    /**
807     * Unset a content of an object item
808     *
809     * @param it The Elementary object item
810     * @param part The content part name to unset (NULL for the default content)
811     *
812     * @note Elementary object items may have many contents
813     *
814     * @ingroup General
815     */
816    EAPI Evas_Object *elm_object_item_content_part_unset(Elm_Object_Item *it, const char *part);
817
818 #define elm_object_item_content_unset(it, content) elm_object_item_content_part_unset((it), (content))
819
820    /**
821     * Set a label of an objec itemt
822     *
823     * @param it The Elementary object item
824     * @param part The text part name to set (NULL for the default label)
825     * @param label The new text of the label
826     *
827     * @note Elementary object items may have many labels
828     *
829     * @ingroup General
830     */
831    EAPI void elm_object_item_text_part_set(Elm_Object_Item *it, const char *part, const char *label);
832
833 #define elm_object_item_text_set(it, label) elm_object_item_text_part_set((it), NULL, (label))
834
835    /**
836     * Get a label of an object
837     *
838     * @param it The Elementary object item
839     * @param part The text part name to get (NULL for the default label)
840     * @return text of the label or NULL for any error
841     *
842     * @note Elementary object items may have many labels
843     *
844     * @ingroup General
845     */
846    EAPI const char *elm_object_item_text_part_get(const Elm_Object_Item *it, const char *part);
847
848 #define elm_object_item_text_get(it) elm_object_item_part_text_get((it), NULL)
849
850    /**
851     * @}
852     */
853
854    EAPI void         elm_all_flush(void);
855    EAPI int          elm_cache_flush_interval_get(void);
856    EAPI void         elm_cache_flush_interval_set(int size);
857    EAPI void         elm_cache_flush_interval_all_set(int size);
858    EAPI Eina_Bool    elm_cache_flush_enabled_get(void);
859    EAPI void         elm_cache_flush_enabled_set(Eina_Bool enabled);
860    EAPI void         elm_cache_flush_enabled_all_set(Eina_Bool enabled);
861    EAPI int          elm_font_cache_get(void);
862    EAPI void         elm_font_cache_set(int size);
863    EAPI void         elm_font_cache_all_set(int size);
864    EAPI int          elm_image_cache_get(void);
865    EAPI void         elm_image_cache_set(int size);
866    EAPI void         elm_image_cache_all_set(int size);
867    EAPI int          elm_edje_file_cache_get(void);
868    EAPI void         elm_edje_file_cache_set(int size);
869    EAPI void         elm_edje_file_cache_all_set(int size);
870    EAPI int          elm_edje_collection_cache_get(void);
871    EAPI void         elm_edje_collection_cache_set(int size);
872    EAPI void         elm_edje_collection_cache_all_set(int size);
873
874    /**
875     * @defgroup Scaling Selective Widget Scaling
876     *
877     * Different widgets can be scaled independently. These functions
878     * allow you to manipulate this scaling on a per-widget basis. The
879     * object and all its children get their scaling factors multiplied
880     * by the scale factor set. This is multiplicative, in that if a
881     * child also has a scale size set it is in turn multiplied by its
882     * parent's scale size. @c 1.0 means “don't scale”, @c 2.0 is
883     * double size, @c 0.5 is half, etc.
884     *
885     * @ref general_functions_example_page "This" example contemplates
886     * some of these functions.
887     */
888
889    /**
890     * Set the scaling factor for a given Elementary object
891     *
892     * @param obj The Elementary to operate on
893     * @param scale Scale factor (from @c 0.0 up, with @c 1.0 meaning
894     * no scaling)
895     *
896     * @ingroup Scaling
897     */
898    EAPI void         elm_object_scale_set(Evas_Object *obj, double scale) EINA_ARG_NONNULL(1);
899
900    /**
901     * Get the scaling factor for a given Elementary object
902     *
903     * @param obj The object
904     * @return The scaling factor set by elm_object_scale_set()
905     *
906     * @ingroup Scaling
907     */
908    EAPI double       elm_object_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
909    EAPI Eina_Bool    elm_object_mirrored_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
910    EAPI void         elm_object_mirrored_set(Evas_Object *obj, Eina_Bool mirrored) EINA_ARG_NONNULL(1);
911    EAPI Eina_Bool    elm_object_mirrored_automatic_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
912    EAPI void         elm_object_mirrored_automatic_set(Evas_Object *obj, Eina_Bool automatic) EINA_ARG_NONNULL(1);
913    /**
914     * Set the style to use by a widget
915     *
916     * Sets the style name that will define the appearance of a widget. Styles
917     * vary from widget to widget and may also be defined by other themes
918     * by means of extensions and overlays.
919     *
920     * @param obj The Elementary widget to style
921     * @param style The style name to use
922     *
923     * @see elm_theme_extension_add()
924     * @see elm_theme_overlay_add()
925     *
926     * @ingroup Theme
927     */
928    EAPI void         elm_object_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
929    /**
930     * Get the style used by the widget
931     *
932     * This gets the style being used for that widget. Note that the string
933     * pointer is only valid as longas the object is valid and the style doesn't
934     * change.
935     *
936     * @param obj The Elementary widget to query for its style
937     * @return The style name used
938     *
939     * @see elm_object_style_set()
940     *
941     * @ingroup Theme
942     */
943    EAPI const char  *elm_object_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
944
945    /**
946     * @defgroup Styles Styles
947     *
948     * Widgets can have different styles of look. These generic API's
949     * set styles of widgets, if they support them (and if the theme(s)
950     * do).
951     *
952     * @ref general_functions_example_page "This" example contemplates
953     * some of these functions.
954     */
955
956    /**
957     * Set the disabled state of an Elementary object.
958     *
959     * @param obj The Elementary object to operate on
960     * @param disabled The state to put in in: @c EINA_TRUE for
961     *        disabled, @c EINA_FALSE for enabled
962     *
963     * Elementary objects can be @b disabled, in which state they won't
964     * receive input and, in general, will be themed differently from
965     * their normal state, usually greyed out. Useful for contexts
966     * where you don't want your users to interact with some of the
967     * parts of you interface.
968     *
969     * This sets the state for the widget, either disabling it or
970     * enabling it back.
971     *
972     * @ingroup Styles
973     */
974    EAPI void         elm_object_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
975
976    /**
977     * Get the disabled state of an Elementary object.
978     *
979     * @param obj The Elementary object to operate on
980     * @return @c EINA_TRUE, if the widget is disabled, @c EINA_FALSE
981     *            if it's enabled (or on errors)
982     *
983     * This gets the state of the widget, which might be enabled or disabled.
984     *
985     * @ingroup Styles
986     */
987    EAPI Eina_Bool    elm_object_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
988
989    /**
990     * @defgroup WidgetNavigation Widget Tree Navigation.
991     *
992     * How to check if an Evas Object is an Elementary widget? How to
993     * get the first elementary widget that is parent of the given
994     * object?  These are all covered in widget tree navigation.
995     *
996     * @ref general_functions_example_page "This" example contemplates
997     * some of these functions.
998     */
999
1000    EAPI Eina_Bool    elm_object_widget_check(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1001
1002    /**
1003     * Get the first parent of the given object that is an Elementary
1004     * widget.
1005     *
1006     * @param obj the Elementary object to query parent from.
1007     * @return the parent object that is an Elementary widget, or @c
1008     *         NULL, if it was not found.
1009     *
1010     * Use this to query for an object's parent widget.
1011     *
1012     * @note Most of Elementary users wouldn't be mixing non-Elementary
1013     * smart objects in the objects tree of an application, as this is
1014     * an advanced usage of Elementary with Evas. So, except for the
1015     * application's window, which is the root of that tree, all other
1016     * objects would have valid Elementary widget parents.
1017     *
1018     * @ingroup WidgetNavigation
1019     */
1020    EAPI Evas_Object *elm_object_parent_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1021    EAPI Evas_Object *elm_object_top_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1022    EAPI const char  *elm_object_widget_type_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1023
1024    EAPI double       elm_scale_get(void);
1025    EAPI void         elm_scale_set(double scale);
1026    EAPI void         elm_scale_all_set(double scale);
1027
1028    EAPI Eina_Bool    elm_mirrored_get(void);
1029    EAPI void         elm_mirrored_set(Eina_Bool mirrored);
1030
1031    EAPI Eina_Bool    elm_config_save(void);
1032    EAPI void         elm_config_reload(void);
1033
1034    EAPI const char  *elm_profile_current_get(void);
1035    EAPI const char  *elm_profile_dir_get(const char *profile, Eina_Bool is_user);
1036    EAPI void         elm_profile_dir_free(const char *p_dir);
1037    EAPI Eina_List   *elm_profile_list_get(void);
1038    EAPI void         elm_profile_list_free(Eina_List *l);
1039    EAPI void         elm_profile_set(const char *profile);
1040    EAPI void         elm_profile_all_set(const char *profile);
1041
1042    EAPI const char  *elm_engine_current_get(void);
1043    EAPI void         elm_engine_set(const char *engine);
1044
1045   typedef struct _Elm_Text_Class
1046     {
1047        const char *name;
1048        const char *desc;
1049     } Elm_Text_Class;
1050
1051   typedef struct _Elm_Font_Overlay
1052     {
1053        const char     *text_class;
1054        const char     *font;
1055        Evas_Font_Size  size;
1056     } Elm_Font_Overlay;
1057
1058   typedef struct _Elm_Font_Properties
1059     {
1060        const char *name;
1061        Eina_List  *styles;
1062     } Elm_Font_Properties;
1063
1064    EAPI const Eina_List     *elm_text_classes_list_get(void);
1065    EAPI void                 elm_text_classes_list_free(const Eina_List *list);
1066
1067    EAPI const Eina_List     *elm_font_overlay_list_get(void);
1068    EAPI void                 elm_font_overlay_set(const char *text_class, const char *font, Evas_Font_Size size);
1069    EAPI void                 elm_font_overlay_unset(const char *text_class);
1070    EAPI void                 elm_font_overlay_apply(void);
1071    EAPI void                 elm_font_overlay_all_apply(void);
1072
1073    EAPI Elm_Font_Properties *elm_font_properties_get(const char *font) EINA_ARG_NONNULL(1);
1074    EAPI void                 elm_font_properties_free(Elm_Font_Properties *efp) EINA_ARG_NONNULL(1);
1075    EAPI const char          *elm_font_fontconfig_name_get(const char *name, const char *style) EINA_ARG_NONNULL(1);
1076    EAPI void                 elm_font_fontconfig_name_free(const char *name) EINA_ARG_NONNULL(1);
1077    EAPI Eina_Hash           *elm_font_available_hash_add(Eina_List *list);
1078    EAPI void                 elm_font_available_hash_del(Eina_Hash *hash);
1079
1080    /**
1081     * @defgroup Fingers Fingers
1082     *
1083     * Elementary is designed to be finger-friendly for touchscreens,
1084     * and so in addition to scaling for display resolution, it can
1085     * also scale based on finger "resolution" (or size). You can then
1086     * customize the granularity of the areas meant to receive clicks
1087     * on touchscreens.
1088     *
1089     * Different profiles may have pre-set values for finger sizes.
1090     *
1091     * @ref general_functions_example_page "This" example contemplates
1092     * some of these functions.
1093     */
1094
1095    /**
1096     * Get the configured "finger size"
1097     *
1098     * @return The finger size
1099     *
1100     * This gets the globally configured finger size, <b>in pixels</b>
1101     *
1102     * @ingroup Fingers
1103     */
1104    EAPI Evas_Coord       elm_finger_size_get(void);
1105    EAPI void             elm_finger_size_set(Evas_Coord size);
1106    EAPI void             elm_finger_size_all_set(Evas_Coord size);
1107
1108    /**
1109     * @defgroup Focus Focus
1110     *
1111     * An Elementary application has, at all times, one (and only one)
1112     * @b focused object. This is what determines where the input
1113     * events go to within the application's window. Also, focused
1114     * objects can be decorated differently, in order to signal to the
1115     * user where the input is, at a given moment.
1116     *
1117     * Elementary applications also have the concept of <b>focus
1118     * chain</b>: one can cycle through all the windows' focusable
1119     * objects by input (tab key) or programmatically. The default
1120     * focus chain for an application is the one define by the order in
1121     * which the widgets where added in code. One will cycle through
1122     * top level widgets, and, for each one containg sub-objects, cycle
1123     * through them all, before returning to the level
1124     * above. Elementary also allows one to set @b custom focus chains
1125     * for their applications.
1126     *
1127     * Besides the focused decoration a widget may exhibit, when it
1128     * gets focus, Elementary has a @b global focus highlight object
1129     * that can be enabled for a window. If one chooses to do so, this
1130     * extra highlight effect will surround the current focused object,
1131     * too.
1132     *
1133     * @note Some Elementary widgets are @b unfocusable, after
1134     * creation, by their very nature: they are not meant to be
1135     * interacted with input events, but are there just for visual
1136     * purposes.
1137     *
1138     * @ref general_functions_example_page "This" example contemplates
1139     * some of these functions.
1140     */
1141
1142    EAPI Eina_Bool        elm_focus_highlight_enabled_get(void);
1143    EAPI void             elm_focus_highlight_enabled_set(Eina_Bool enable);
1144    EAPI Eina_Bool        elm_focus_highlight_animate_get(void);
1145    EAPI void             elm_focus_highlight_animate_set(Eina_Bool animate);
1146
1147    /**
1148     * Get the whether an Elementary object has the focus or not.
1149     *
1150     * @param obj The Elementary object to get the information from
1151     * @return @c EINA_TRUE, if the object is focused, @c EINA_FALSE if
1152     *            not (and on errors).
1153     *
1154     * @see elm_object_focus()
1155     *
1156     * @ingroup Focus
1157     */
1158    EAPI Eina_Bool        elm_object_focus_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1159
1160    /**
1161     * Set/unset focus to a given Elementary object.
1162     *
1163     * @param obj The Elementary object to operate on.
1164     * @param enable @c EINA_TRUE Set focus to a given object,
1165     *               @c EINA_FALSE Unset focus to a given object.
1166     *
1167     * @note When you set focus to this object, if it can handle focus, will
1168     * take the focus away from the one who had it previously and will, for
1169     * now on, be the one receiving input events. Unsetting focus will remove
1170     * the focus from @p obj, passing it back to the previous element in the
1171     * focus chain list.
1172     *
1173     * @see elm_object_focus_get(), elm_object_focus_custom_chain_get()
1174     *
1175     * @ingroup Focus
1176     */
1177    EAPI void             elm_object_focus_set(Evas_Object *obj, Eina_Bool focus) EINA_ARG_NONNULL(1);
1178
1179    /**
1180     * Make a given Elementary object the focused one.
1181     *
1182     * @param obj The Elementary object to make focused.
1183     *
1184     * @note This object, if it can handle focus, will take the focus
1185     * away from the one who had it previously and will, for now on, be
1186     * the one receiving input events.
1187     *
1188     * @see elm_object_focus_get()
1189     * @deprecated use elm_object_focus_set() instead.
1190     *
1191     * @ingroup Focus
1192     */
1193    EINA_DEPRECATED EAPI void             elm_object_focus(Evas_Object *obj) EINA_ARG_NONNULL(1);
1194
1195    /**
1196     * Remove the focus from an Elementary object
1197     *
1198     * @param obj The Elementary to take focus from
1199     *
1200     * This removes the focus from @p obj, passing it back to the
1201     * previous element in the focus chain list.
1202     *
1203     * @see elm_object_focus() and elm_object_focus_custom_chain_get()
1204     * @deprecated use elm_object_focus_set() instead.
1205     *
1206     * @ingroup Focus
1207     */
1208    EINA_DEPRECATED EAPI void             elm_object_unfocus(Evas_Object *obj) EINA_ARG_NONNULL(1);
1209
1210    /**
1211     * Set the ability for an Element object to be focused
1212     *
1213     * @param obj The Elementary object to operate on
1214     * @param enable @c EINA_TRUE if the object can be focused, @c
1215     *        EINA_FALSE if not (and on errors)
1216     *
1217     * This sets whether the object @p obj is able to take focus or
1218     * not. Unfocusable objects do nothing when programmatically
1219     * focused, being the nearest focusable parent object the one
1220     * really getting focus. Also, when they receive mouse input, they
1221     * will get the event, but not take away the focus from where it
1222     * was previously.
1223     *
1224     * @ingroup Focus
1225     */
1226    EAPI void             elm_object_focus_allow_set(Evas_Object *obj, Eina_Bool enable) EINA_ARG_NONNULL(1);
1227
1228    /**
1229     * Get whether an Elementary object is focusable or not
1230     *
1231     * @param obj The Elementary object to operate on
1232     * @return @c EINA_TRUE if the object is allowed to be focused, @c
1233     *             EINA_FALSE if not (and on errors)
1234     *
1235     * @note Objects which are meant to be interacted with by input
1236     * events are created able to be focused, by default. All the
1237     * others are not.
1238     *
1239     * @ingroup Focus
1240     */
1241    EAPI Eina_Bool        elm_object_focus_allow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1242
1243    EAPI void             elm_object_focus_custom_chain_set(Evas_Object *obj, Eina_List *objs) EINA_ARG_NONNULL(1);
1244    EAPI void             elm_object_focus_custom_chain_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
1245    EAPI const Eina_List *elm_object_focus_custom_chain_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1246    EAPI void             elm_object_focus_custom_chain_append(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
1247    EAPI void             elm_object_focus_custom_chain_prepend(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
1248    EAPI void             elm_object_focus_cycle(Evas_Object *obj, Elm_Focus_Direction dir) EINA_ARG_NONNULL(1);
1249    EAPI void             elm_object_focus_direction_go(Evas_Object *obj, int x, int y) EINA_ARG_NONNULL(1);
1250
1251    /**
1252     * Make the elementary object and its children to be unfocusable (or focusable).
1253     *
1254     * @param obj The Elementary object to operate on
1255     * @param tree_unfocusable @c EINA_TRUE for unfocusable,
1256     *        @c EINA_FALSE for focusable.
1257     *
1258     * This sets whether the object @p obj and its children objects
1259     * are able to take focus or not. If the tree is set as unfocusable,
1260     * newest focused object which is not in this tree will get focus.
1261     * This API can be helpful for an object to be deleted.
1262     * When an object will be deleted soon, it and its children may not
1263     * want to get focus (by focus reverting or by other focus controls).
1264     * Then, just use this API before deleting.
1265     *
1266     * @see elm_object_tree_unfocusable_get()
1267     *
1268     * @ingroup Focus
1269     */
1270    EAPI void             elm_object_tree_unfocusable_set(Evas_Object *obj, Eina_Bool tree_unfocusable); EINA_ARG_NONNULL(1);
1271
1272    /**
1273     * Get whether an Elementary object and its children are unfocusable or not.
1274     *
1275     * @param obj The Elementary object to get the information from
1276     * @return @c EINA_TRUE, if the tree is unfocussable,
1277     *         @c EINA_FALSE if not (and on errors).
1278     *
1279     * @see elm_object_tree_unfocusable_set()
1280     *
1281     * @ingroup Focus
1282     */
1283    EAPI Eina_Bool        elm_object_tree_unfocusable_get(const Evas_Object *obj); EINA_ARG_NONNULL(1);
1284
1285    EAPI Eina_Bool        elm_scroll_bounce_enabled_get(void);
1286    EAPI void             elm_scroll_bounce_enabled_set(Eina_Bool enabled);
1287    EAPI void             elm_scroll_bounce_enabled_all_set(Eina_Bool enabled);
1288    EAPI double           elm_scroll_bounce_friction_get(void);
1289    EAPI void             elm_scroll_bounce_friction_set(double friction);
1290    EAPI void             elm_scroll_bounce_friction_all_set(double friction);
1291    EAPI double           elm_scroll_page_scroll_friction_get(void);
1292    EAPI void             elm_scroll_page_scroll_friction_set(double friction);
1293    EAPI void             elm_scroll_page_scroll_friction_all_set(double friction);
1294    EAPI double           elm_scroll_bring_in_scroll_friction_get(void);
1295    EAPI void             elm_scroll_bring_in_scroll_friction_set(double friction);
1296    EAPI void             elm_scroll_bring_in_scroll_friction_all_set(double friction);
1297    EAPI double           elm_scroll_zoom_friction_get(void);
1298    EAPI void             elm_scroll_zoom_friction_set(double friction);
1299    EAPI void             elm_scroll_zoom_friction_all_set(double friction);
1300    EAPI Eina_Bool        elm_scroll_thumbscroll_enabled_get(void);
1301    EAPI void             elm_scroll_thumbscroll_enabled_set(Eina_Bool enabled);
1302    EAPI void             elm_scroll_thumbscroll_enabled_all_set(Eina_Bool enabled);
1303    EAPI unsigned int     elm_scroll_thumbscroll_threshold_get(void);
1304    EAPI void             elm_scroll_thumbscroll_threshold_set(unsigned int threshold);
1305    EAPI void             elm_scroll_thumbscroll_threshold_all_set(unsigned int threshold);
1306    EAPI double           elm_scroll_thumbscroll_momentum_threshold_get(void);
1307    EAPI void             elm_scroll_thumbscroll_momentum_threshold_set(double threshold);
1308    EAPI void             elm_scroll_thumbscroll_momentum_threshold_all_set(double threshold);
1309    EAPI double           elm_scroll_thumbscroll_friction_get(void);
1310    EAPI void             elm_scroll_thumbscroll_friction_set(double friction);
1311    EAPI void             elm_scroll_thumbscroll_friction_all_set(double friction);
1312    EAPI double           elm_scroll_thumbscroll_border_friction_get(void);
1313    EAPI void             elm_scroll_thumbscroll_border_friction_set(double friction);
1314    EAPI void             elm_scroll_thumbscroll_border_friction_all_set(double friction);
1315
1316    EAPI void             elm_object_scroll_hold_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
1317    EAPI void             elm_object_scroll_hold_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
1318    EAPI void             elm_object_scroll_freeze_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
1319    EAPI void             elm_object_scroll_freeze_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
1320    EAPI void             elm_object_scroll_lock_x_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
1321    EAPI void             elm_object_scroll_lock_y_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
1322    EAPI Eina_Bool        elm_object_scroll_lock_x_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1323    EAPI Eina_Bool        elm_object_scroll_lock_y_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1324
1325    EAPI void             elm_object_signal_emit(Evas_Object *obj, const char *emission, const char *source) EINA_ARG_NONNULL(1);
1326    EAPI void             elm_object_signal_callback_add(Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func, void *data) EINA_ARG_NONNULL(1, 4);
1327    EAPI void            *elm_object_signal_callback_del(Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func) EINA_ARG_NONNULL(1, 4);
1328
1329    EAPI void             elm_object_event_callback_add(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
1330    EAPI void            *elm_object_event_callback_del(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
1331
1332    /**
1333     * Adjust size of an element for finger usage.
1334     *
1335     * @param times_w How many fingers should fit horizontally
1336     * @param w Pointer to the width size to adjust
1337     * @param times_h How many fingers should fit vertically
1338     * @param h Pointer to the height size to adjust
1339     *
1340     * This takes width and height sizes (in pixels) as input and a
1341     * size multiple (which is how many fingers you want to place
1342     * within the area, being "finger" the size set by
1343     * elm_finger_size_set()), and adjusts the size to be large enough
1344     * to accommodate the resulting size -- if it doesn't already
1345     * accommodate it. On return the @p w and @p h sizes pointed to by
1346     * these parameters will be modified, on those conditions.
1347     *
1348     * @note This is kind of a low level Elementary call, most useful
1349     * on size evaluation times for widgets. An external user wouldn't
1350     * be calling, most of the time.
1351     *
1352     * @ingroup Fingers
1353     */
1354    EAPI void             elm_coords_finger_size_adjust(int times_w, Evas_Coord *w, int times_h, Evas_Coord *h);
1355
1356    EAPI double           elm_longpress_timeout_get(void);
1357    EAPI void             elm_longpress_timeout_set(double longpress_timeout);
1358
1359    /* debug
1360     * don't use it unless you are sure
1361     */
1362    EAPI void             elm_object_tree_dump(const Evas_Object *top);
1363    EAPI void             elm_object_tree_dot_dump(const Evas_Object *top, const char *file);
1364
1365
1366    /* theme */
1367    /**
1368     * @defgroup Theme Theme
1369     *
1370     * Elementary uses Edje to theme its widgets, naturally. But for the most
1371     * part this is hidden behind a simpler interface that lets the user set
1372     * extensions and choose the style of widgets in a much easier way.
1373     *
1374     * Instead of thinking in terms of paths to Edje files and their groups
1375     * each time you want to change the appearance of a widget, Elementary
1376     * works so you can add any theme file with extensions or replace the
1377     * main theme at one point in the application, and then just set the style
1378     * of widgets with elm_object_style_set() and related functions. Elementary
1379     * will then look in its list of themes for a matching group and apply it,
1380     * and when the theme changes midway through the application, all widgets
1381     * will be updated accordingly.
1382     *
1383     * There are three concepts you need to know to understand how Elementary
1384     * theming works: default theme, extensions and overlays.
1385     *
1386     * Default theme, obviously enough, is the one that provides the default
1387     * look of all widgets. End users can change the theme used by Elementary
1388     * by setting the @c ELM_THEME environment variable before running an
1389     * application, or globally for all programs using the @c elementary_config
1390     * utility. Applications can change the default theme using elm_theme_set(),
1391     * but this can go against the user wishes, so it's not an adviced practice.
1392     *
1393     * Ideally, applications should find everything they need in the already
1394     * provided theme, but there may be occasions when that's not enough and
1395     * custom styles are required to correctly express the idea. For this
1396     * cases, Elementary has extensions.
1397     *
1398     * Extensions allow the application developer to write styles of its own
1399     * to apply to some widgets. This requires knowledge of how each widget
1400     * is themed, as extensions will always replace the entire group used by
1401     * the widget, so important signals and parts need to be there for the
1402     * object to behave properly (see documentation of Edje for details).
1403     * Once the theme for the extension is done, the application needs to add
1404     * it to the list of themes Elementary will look into, using
1405     * elm_theme_extension_add(), and set the style of the desired widgets as
1406     * he would normally with elm_object_style_set().
1407     *
1408     * Overlays, on the other hand, can replace the look of all widgets by
1409     * overriding the default style. Like extensions, it's up to the application
1410     * developer to write the theme for the widgets it wants, the difference
1411     * being that when looking for the theme, Elementary will check first the
1412     * list of overlays, then the set theme and lastly the list of extensions,
1413     * so with overlays it's possible to replace the default view and every
1414     * widget will be affected. This is very much alike to setting the whole
1415     * theme for the application and will probably clash with the end user
1416     * options, not to mention the risk of ending up with not matching styles
1417     * across the program. Unless there's a very special reason to use them,
1418     * overlays should be avoided for the resons exposed before.
1419     *
1420     * All these theme lists are handled by ::Elm_Theme instances. Elementary
1421     * keeps one default internally and every function that receives one of
1422     * these can be called with NULL to refer to this default (except for
1423     * elm_theme_free()). It's possible to create a new instance of a
1424     * ::Elm_Theme to set other theme for a specific widget (and all of its
1425     * children), but this is as discouraged, if not even more so, than using
1426     * overlays. Don't use this unless you really know what you are doing.
1427     *
1428     * But to be less negative about things, you can look at the following
1429     * examples:
1430     * @li @ref theme_example_01 "Using extensions"
1431     * @li @ref theme_example_02 "Using overlays"
1432     *
1433     * @{
1434     */
1435    /**
1436     * @typedef Elm_Theme
1437     *
1438     * Opaque handler for the list of themes Elementary looks for when
1439     * rendering widgets.
1440     *
1441     * Stay out of this unless you really know what you are doing. For most
1442     * cases, sticking to the default is all a developer needs.
1443     */
1444    typedef struct _Elm_Theme Elm_Theme;
1445
1446    /**
1447     * Create a new specific theme
1448     *
1449     * This creates an empty specific theme that only uses the default theme. A
1450     * specific theme has its own private set of extensions and overlays too
1451     * (which are empty by default). Specific themes do not fall back to themes
1452     * of parent objects. They are not intended for this use. Use styles, overlays
1453     * and extensions when needed, but avoid specific themes unless there is no
1454     * other way (example: you want to have a preview of a new theme you are
1455     * selecting in a "theme selector" window. The preview is inside a scroller
1456     * and should display what the theme you selected will look like, but not
1457     * actually apply it yet. The child of the scroller will have a specific
1458     * theme set to show this preview before the user decides to apply it to all
1459     * applications).
1460     */
1461    EAPI Elm_Theme       *elm_theme_new(void);
1462    /**
1463     * Free a specific theme
1464     *
1465     * @param th The theme to free
1466     *
1467     * This frees a theme created with elm_theme_new().
1468     */
1469    EAPI void             elm_theme_free(Elm_Theme *th);
1470    /**
1471     * Copy the theme fom the source to the destination theme
1472     *
1473     * @param th The source theme to copy from
1474     * @param thdst The destination theme to copy data to
1475     *
1476     * This makes a one-time static copy of all the theme config, extensions
1477     * and overlays from @p th to @p thdst. If @p th references a theme, then
1478     * @p thdst is also set to reference it, with all the theme settings,
1479     * overlays and extensions that @p th had.
1480     */
1481    EAPI void             elm_theme_copy(Elm_Theme *th, Elm_Theme *thdst);
1482    /**
1483     * Tell the source theme to reference the ref theme
1484     *
1485     * @param th The theme that will do the referencing
1486     * @param thref The theme that is the reference source
1487     *
1488     * This clears @p th to be empty and then sets it to refer to @p thref
1489     * so @p th acts as an override to @p thref, but where its overrides
1490     * don't apply, it will fall through to @p thref for configuration.
1491     */
1492    EAPI void             elm_theme_ref_set(Elm_Theme *th, Elm_Theme *thref);
1493    /**
1494     * Return the theme referred to
1495     *
1496     * @param th The theme to get the reference from
1497     * @return The referenced theme handle
1498     *
1499     * This gets the theme set as the reference theme by elm_theme_ref_set().
1500     * If no theme is set as a reference, NULL is returned.
1501     */
1502    EAPI Elm_Theme       *elm_theme_ref_get(Elm_Theme *th);
1503    /**
1504     * Return the default theme
1505     *
1506     * @return The default theme handle
1507     *
1508     * This returns the internal default theme setup handle that all widgets
1509     * use implicitly unless a specific theme is set. This is also often use
1510     * as a shorthand of NULL.
1511     */
1512    EAPI Elm_Theme       *elm_theme_default_get(void);
1513    /**
1514     * Prepends a theme overlay to the list of overlays
1515     *
1516     * @param th The theme to add to, or if NULL, the default theme
1517     * @param item The Edje file path to be used
1518     *
1519     * Use this if your application needs to provide some custom overlay theme
1520     * (An Edje file that replaces some default styles of widgets) where adding
1521     * new styles, or changing system theme configuration is not possible. Do
1522     * NOT use this instead of a proper system theme configuration. Use proper
1523     * configuration files, profiles, environment variables etc. to set a theme
1524     * so that the theme can be altered by simple confiugration by a user. Using
1525     * this call to achieve that effect is abusing the API and will create lots
1526     * of trouble.
1527     *
1528     * @see elm_theme_extension_add()
1529     */
1530    EAPI void             elm_theme_overlay_add(Elm_Theme *th, const char *item);
1531    /**
1532     * Delete a theme overlay from the list of overlays
1533     *
1534     * @param th The theme to delete from, or if NULL, the default theme
1535     * @param item The name of the theme overlay
1536     *
1537     * @see elm_theme_overlay_add()
1538     */
1539    EAPI void             elm_theme_overlay_del(Elm_Theme *th, const char *item);
1540    /**
1541     * Appends a theme extension to the list of extensions.
1542     *
1543     * @param th The theme to add to, or if NULL, the default theme
1544     * @param item The Edje file path to be used
1545     *
1546     * This is intended when an application needs more styles of widgets or new
1547     * widget themes that the default does not provide (or may not provide). The
1548     * application has "extended" usage by coming up with new custom style names
1549     * for widgets for specific uses, but as these are not "standard", they are
1550     * not guaranteed to be provided by a default theme. This means the
1551     * application is required to provide these extra elements itself in specific
1552     * Edje files. This call adds one of those Edje files to the theme search
1553     * path to be search after the default theme. The use of this call is
1554     * encouraged when default styles do not meet the needs of the application.
1555     * Use this call instead of elm_theme_overlay_add() for almost all cases.
1556     *
1557     * @see elm_object_style_set()
1558     */
1559    EAPI void             elm_theme_extension_add(Elm_Theme *th, const char *item);
1560    /**
1561     * Deletes a theme extension from the list of extensions.
1562     *
1563     * @param th The theme to delete from, or if NULL, the default theme
1564     * @param item The name of the theme extension
1565     *
1566     * @see elm_theme_extension_add()
1567     */
1568    EAPI void             elm_theme_extension_del(Elm_Theme *th, const char *item);
1569    /**
1570     * Set the theme search order for the given theme
1571     *
1572     * @param th The theme to set the search order, or if NULL, the default theme
1573     * @param theme Theme search string
1574     *
1575     * This sets the search string for the theme in path-notation from first
1576     * theme to search, to last, delimited by the : character. Example:
1577     *
1578     * "shiny:/path/to/file.edj:default"
1579     *
1580     * See the ELM_THEME environment variable for more information.
1581     *
1582     * @see elm_theme_get()
1583     * @see elm_theme_list_get()
1584     */
1585    EAPI void             elm_theme_set(Elm_Theme *th, const char *theme);
1586    /**
1587     * Return the theme search order
1588     *
1589     * @param th The theme to get the search order, or if NULL, the default theme
1590     * @return The internal search order path
1591     *
1592     * This function returns a colon separated string of theme elements as
1593     * returned by elm_theme_list_get().
1594     *
1595     * @see elm_theme_set()
1596     * @see elm_theme_list_get()
1597     */
1598    EAPI const char      *elm_theme_get(Elm_Theme *th);
1599    /**
1600     * Return a list of theme elements to be used in a theme.
1601     *
1602     * @param th Theme to get the list of theme elements from.
1603     * @return The internal list of theme elements
1604     *
1605     * This returns the internal list of theme elements (will only be valid as
1606     * long as the theme is not modified by elm_theme_set() or theme is not
1607     * freed by elm_theme_free(). This is a list of strings which must not be
1608     * altered as they are also internal. If @p th is NULL, then the default
1609     * theme element list is returned.
1610     *
1611     * A theme element can consist of a full or relative path to a .edj file,
1612     * or a name, without extension, for a theme to be searched in the known
1613     * theme paths for Elemementary.
1614     *
1615     * @see elm_theme_set()
1616     * @see elm_theme_get()
1617     */
1618    EAPI const Eina_List *elm_theme_list_get(const Elm_Theme *th);
1619    /**
1620     * Return the full patrh for a theme element
1621     *
1622     * @param f The theme element name
1623     * @param in_search_path Pointer to a boolean to indicate if item is in the search path or not
1624     * @return The full path to the file found.
1625     *
1626     * This returns a string you should free with free() on success, NULL on
1627     * failure. This will search for the given theme element, and if it is a
1628     * full or relative path element or a simple searchable name. The returned
1629     * path is the full path to the file, if searched, and the file exists, or it
1630     * is simply the full path given in the element or a resolved path if
1631     * relative to home. The @p in_search_path boolean pointed to is set to
1632     * EINA_TRUE if the file was a searchable file andis in the search path,
1633     * and EINA_FALSE otherwise.
1634     */
1635    EAPI char            *elm_theme_list_item_path_get(const char *f, Eina_Bool *in_search_path);
1636    /**
1637     * Flush the current theme.
1638     *
1639     * @param th Theme to flush
1640     *
1641     * This flushes caches that let elementary know where to find theme elements
1642     * in the given theme. If @p th is NULL, then the default theme is flushed.
1643     * Call this function if source theme data has changed in such a way as to
1644     * make any caches Elementary kept invalid.
1645     */
1646    EAPI void             elm_theme_flush(Elm_Theme *th);
1647    /**
1648     * This flushes all themes (default and specific ones).
1649     *
1650     * This will flush all themes in the current application context, by calling
1651     * elm_theme_flush() on each of them.
1652     */
1653    EAPI void             elm_theme_full_flush(void);
1654    /**
1655     * Set the theme for all elementary using applications on the current display
1656     *
1657     * @param theme The name of the theme to use. Format same as the ELM_THEME
1658     * environment variable.
1659     */
1660    EAPI void             elm_theme_all_set(const char *theme);
1661    /**
1662     * Return a list of theme elements in the theme search path
1663     *
1664     * @return A list of strings that are the theme element names.
1665     *
1666     * This lists all available theme files in the standard Elementary search path
1667     * for theme elements, and returns them in alphabetical order as theme
1668     * element names in a list of strings. Free this with
1669     * elm_theme_name_available_list_free() when you are done with the list.
1670     */
1671    EAPI Eina_List       *elm_theme_name_available_list_new(void);
1672    /**
1673     * Free the list returned by elm_theme_name_available_list_new()
1674     *
1675     * This frees the list of themes returned by
1676     * elm_theme_name_available_list_new(). Once freed the list should no longer
1677     * be used. a new list mys be created.
1678     */
1679    EAPI void             elm_theme_name_available_list_free(Eina_List *list);
1680    /**
1681     * Set a specific theme to be used for this object and its children
1682     *
1683     * @param obj The object to set the theme on
1684     * @param th The theme to set
1685     *
1686     * This sets a specific theme that will be used for the given object and any
1687     * child objects it has. If @p th is NULL then the theme to be used is
1688     * cleared and the object will inherit its theme from its parent (which
1689     * ultimately will use the default theme if no specific themes are set).
1690     *
1691     * Use special themes with great care as this will annoy users and make
1692     * configuration difficult. Avoid any custom themes at all if it can be
1693     * helped.
1694     */
1695    EAPI void             elm_object_theme_set(Evas_Object *obj, Elm_Theme *th) EINA_ARG_NONNULL(1);
1696    /**
1697     * Get the specific theme to be used
1698     *
1699     * @param obj The object to get the specific theme from
1700     * @return The specifc theme set.
1701     *
1702     * This will return a specific theme set, or NULL if no specific theme is
1703     * set on that object. It will not return inherited themes from parents, only
1704     * the specific theme set for that specific object. See elm_object_theme_set()
1705     * for more information.
1706     */
1707    EAPI Elm_Theme       *elm_object_theme_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1708    /**
1709     * @}
1710     */
1711
1712    /* win */
1713    /** @defgroup Win Win
1714     *
1715     * @image html img/widget/win/preview-00.png
1716     * @image latex img/widget/win/preview-00.eps
1717     *
1718     * The window class of Elementary.  Contains functions to manipulate
1719     * windows. The Evas engine used to render the window contents is specified
1720     * in the system or user elementary config files (whichever is found last),
1721     * and can be overridden with the ELM_ENGINE environment variable for
1722     * testing.  Engines that may be supported (depending on Evas and Ecore-Evas
1723     * compilation setup and modules actually installed at runtime) are (listed
1724     * in order of best supported and most likely to be complete and work to
1725     * lowest quality).
1726     *
1727     * @li "x11", "x", "software-x11", "software_x11" (Software rendering in X11)
1728     * @li "gl", "opengl", "opengl-x11", "opengl_x11" (OpenGL or OpenGL-ES2
1729     * rendering in X11)
1730     * @li "shot:..." (Virtual screenshot renderer - renders to output file and
1731     * exits)
1732     * @li "fb", "software-fb", "software_fb" (Linux framebuffer direct software
1733     * rendering)
1734     * @li "sdl", "software-sdl", "software_sdl" (SDL software rendering to SDL
1735     * buffer)
1736     * @li "gl-sdl", "gl_sdl", "opengl-sdl", "opengl_sdl" (OpenGL or OpenGL-ES2
1737     * rendering using SDL as the buffer)
1738     * @li "gdi", "software-gdi", "software_gdi" (Windows WIN32 rendering via
1739     * GDI with software)
1740     * @li "dfb", "directfb" (Rendering to a DirectFB window)
1741     * @li "x11-8", "x8", "software-8-x11", "software_8_x11" (Rendering in
1742     * grayscale using dedicated 8bit software engine in X11)
1743     * @li "x11-16", "x16", "software-16-x11", "software_16_x11" (Rendering in
1744     * X11 using 16bit software engine)
1745     * @li "wince-gdi", "software-16-wince-gdi", "software_16_wince_gdi"
1746     * (Windows CE rendering via GDI with 16bit software renderer)
1747     * @li "sdl-16", "software-16-sdl", "software_16_sdl" (Rendering to SDL
1748     * buffer with 16bit software renderer)
1749     *
1750     * All engines use a simple string to select the engine to render, EXCEPT
1751     * the "shot" engine. This actually encodes the output of the virtual
1752     * screenshot and how long to delay in the engine string. The engine string
1753     * is encoded in the following way:
1754     *
1755     *   "shot:[delay=XX][:][repeat=DDD][:][file=XX]"
1756     *
1757     * Where options are separated by a ":" char if more than one option is
1758     * given, with delay, if provided being the first option and file the last
1759     * (order is important). The delay specifies how long to wait after the
1760     * window is shown before doing the virtual "in memory" rendering and then
1761     * save the output to the file specified by the file option (and then exit).
1762     * If no delay is given, the default is 0.5 seconds. If no file is given the
1763     * default output file is "out.png". Repeat option is for continous
1764     * capturing screenshots. Repeat range is from 1 to 999 and filename is
1765     * fixed to "out001.png" Some examples of using the shot engine:
1766     *
1767     *   ELM_ENGINE="shot:delay=1.0:repeat=5:file=elm_test.png" elementary_test
1768     *   ELM_ENGINE="shot:delay=1.0:file=elm_test.png" elementary_test
1769     *   ELM_ENGINE="shot:file=elm_test2.png" elementary_test
1770     *   ELM_ENGINE="shot:delay=2.0" elementary_test
1771     *   ELM_ENGINE="shot:" elementary_test
1772     *
1773     * Signals that you can add callbacks for are:
1774     *
1775     * @li "delete,request": the user requested to close the window. See
1776     * elm_win_autodel_set().
1777     * @li "focus,in": window got focus
1778     * @li "focus,out": window lost focus
1779     * @li "moved": window that holds the canvas was moved
1780     *
1781     * Examples:
1782     * @li @ref win_example_01
1783     *
1784     * @{
1785     */
1786    /**
1787     * Defines the types of window that can be created
1788     *
1789     * These are hints set on the window so that a running Window Manager knows
1790     * how the window should be handled and/or what kind of decorations it
1791     * should have.
1792     *
1793     * Currently, only the X11 backed engines use them.
1794     */
1795    typedef enum _Elm_Win_Type
1796      {
1797         ELM_WIN_BASIC, /**< A normal window. Indicates a normal, top-level
1798                          window. Almost every window will be created with this
1799                          type. */
1800         ELM_WIN_DIALOG_BASIC, /**< Used for simple dialog windows/ */
1801         ELM_WIN_DESKTOP, /**< For special desktop windows, like a background
1802                            window holding desktop icons. */
1803         ELM_WIN_DOCK, /**< The window is used as a dock or panel. Usually would
1804                         be kept on top of any other window by the Window
1805                         Manager. */
1806         ELM_WIN_TOOLBAR, /**< The window is used to hold a floating toolbar, or
1807                            similar. */
1808         ELM_WIN_MENU, /**< Similar to #ELM_WIN_TOOLBAR. */
1809         ELM_WIN_UTILITY, /**< A persistent utility window, like a toolbox or
1810                            pallete. */
1811         ELM_WIN_SPLASH, /**< Splash window for a starting up application. */
1812         ELM_WIN_DROPDOWN_MENU, /**< The window is a dropdown menu, as when an
1813                                  entry in a menubar is clicked. Typically used
1814                                  with elm_win_override_set(). This hint exists
1815                                  for completion only, as the EFL way of
1816                                  implementing a menu would not normally use a
1817                                  separate window for its contents. */
1818         ELM_WIN_POPUP_MENU, /**< Like #ELM_WIN_DROPDOWN_MENU, but for the menu
1819                               triggered by right-clicking an object. */
1820         ELM_WIN_TOOLTIP, /**< The window is a tooltip. A short piece of
1821                            explanatory text that typically appear after the
1822                            mouse cursor hovers over an object for a while.
1823                            Typically used with elm_win_override_set() and also
1824                            not very commonly used in the EFL. */
1825         ELM_WIN_NOTIFICATION, /**< A notification window, like a warning about
1826                                 battery life or a new E-Mail received. */
1827         ELM_WIN_COMBO, /**< A window holding the contents of a combo box. Not
1828                          usually used in the EFL. */
1829         ELM_WIN_DND, /**< Used to indicate the window is a representation of an
1830                        object being dragged across different windows, or even
1831                        applications. Typically used with
1832                        elm_win_override_set(). */
1833         ELM_WIN_INLINED_IMAGE, /**< The window is rendered onto an image
1834                                  buffer. No actual window is created for this
1835                                  type, instead the window and all of its
1836                                  contents will be rendered to an image buffer.
1837                                  This allows to have children window inside a
1838                                  parent one just like any other object would
1839                                  be, and do other things like applying @c
1840                                  Evas_Map effects to it. This is the only type
1841                                  of window that requires the @c parent
1842                                  parameter of elm_win_add() to be a valid @c
1843                                  Evas_Object. */
1844      } Elm_Win_Type;
1845
1846    /**
1847     * The differents layouts that can be requested for the virtual keyboard.
1848     *
1849     * When the application window is being managed by Illume, it may request
1850     * any of the following layouts for the virtual keyboard.
1851     */
1852    typedef enum _Elm_Win_Keyboard_Mode
1853      {
1854         ELM_WIN_KEYBOARD_UNKNOWN, /**< Unknown keyboard state */
1855         ELM_WIN_KEYBOARD_OFF, /**< Request to deactivate the keyboard */
1856         ELM_WIN_KEYBOARD_ON, /**< Enable keyboard with default layout */
1857         ELM_WIN_KEYBOARD_ALPHA, /**< Alpha (a-z) keyboard layout */
1858         ELM_WIN_KEYBOARD_NUMERIC, /**< Numeric keyboard layout */
1859         ELM_WIN_KEYBOARD_PIN, /**< PIN keyboard layout */
1860         ELM_WIN_KEYBOARD_PHONE_NUMBER, /**< Phone keyboard layout */
1861         ELM_WIN_KEYBOARD_HEX, /**< Hexadecimal numeric keyboard layout */
1862         ELM_WIN_KEYBOARD_TERMINAL, /**< Full (QUERTY) keyboard layout */
1863         ELM_WIN_KEYBOARD_PASSWORD, /**< Password keyboard layout */
1864         ELM_WIN_KEYBOARD_IP, /**< IP keyboard layout */
1865         ELM_WIN_KEYBOARD_HOST, /**< Host keyboard layout */
1866         ELM_WIN_KEYBOARD_FILE, /**< File keyboard layout */
1867         ELM_WIN_KEYBOARD_URL, /**< URL keyboard layout */
1868         ELM_WIN_KEYBOARD_KEYPAD, /**< Keypad layout */
1869         ELM_WIN_KEYBOARD_J2ME /**< J2ME keyboard layout */
1870      } Elm_Win_Keyboard_Mode;
1871
1872    /**
1873     * Available commands that can be sent to the Illume manager.
1874     *
1875     * When running under an Illume session, a window may send commands to the
1876     * Illume manager to perform different actions.
1877     */
1878    typedef enum _Elm_Illume_Command
1879      {
1880         ELM_ILLUME_COMMAND_FOCUS_BACK, /**< Reverts focus to the previous
1881                                          window */
1882         ELM_ILLUME_COMMAND_FOCUS_FORWARD, /**< Sends focus to the next window\
1883                                             in the list */
1884         ELM_ILLUME_COMMAND_FOCUS_HOME, /**< Hides all windows to show the Home
1885                                          screen */
1886         ELM_ILLUME_COMMAND_CLOSE /**< Closes the currently active window */
1887      } Elm_Illume_Command;
1888
1889    /**
1890     * Adds a window object. If this is the first window created, pass NULL as
1891     * @p parent.
1892     *
1893     * @param parent Parent object to add the window to, or NULL
1894     * @param name The name of the window
1895     * @param type The window type, one of #Elm_Win_Type.
1896     *
1897     * The @p parent paramter can be @c NULL for every window @p type except
1898     * #ELM_WIN_INLINED_IMAGE, which needs a parent to retrieve the canvas on
1899     * which the image object will be created.
1900     *
1901     * @return The created object, or NULL on failure
1902     */
1903    EAPI Evas_Object *elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type);
1904    /**
1905     * Add @p subobj as a resize object of window @p obj.
1906     *
1907     *
1908     * Setting an object as a resize object of the window means that the
1909     * @p subobj child's size and position will be controlled by the window
1910     * directly. That is, the object will be resized to match the window size
1911     * and should never be moved or resized manually by the developer.
1912     *
1913     * In addition, resize objects of the window control what the minimum size
1914     * of it will be, as well as whether it can or not be resized by the user.
1915     *
1916     * For the end user to be able to resize a window by dragging the handles
1917     * or borders provided by the Window Manager, or using any other similar
1918     * mechanism, all of the resize objects in the window should have their
1919     * evas_object_size_hint_weight_set() set to EVAS_HINT_EXPAND.
1920     *
1921     * @param obj The window object
1922     * @param subobj The resize object to add
1923     */
1924    EAPI void         elm_win_resize_object_add(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
1925    /**
1926     * Delete @p subobj as a resize object of window @p obj.
1927     *
1928     * This function removes the object @p subobj from the resize objects of
1929     * the window @p obj. It will not delete the object itself, which will be
1930     * left unmanaged and should be deleted by the developer, manually handled
1931     * or set as child of some other container.
1932     *
1933     * @param obj The window object
1934     * @param subobj The resize object to add
1935     */
1936    EAPI void         elm_win_resize_object_del(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
1937    /**
1938     * Set the title of the window
1939     *
1940     * @param obj The window object
1941     * @param title The title to set
1942     */
1943    EAPI void         elm_win_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
1944    /**
1945     * Get the title of the window
1946     *
1947     * The returned string is an internal one and should not be freed or
1948     * modified. It will also be rendered invalid if a new title is set or if
1949     * the window is destroyed.
1950     *
1951     * @param obj The window object
1952     * @return The title
1953     */
1954    EAPI const char  *elm_win_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1955    /**
1956     * Set the window's autodel state.
1957     *
1958     * When closing the window in any way outside of the program control, like
1959     * pressing the X button in the titlebar or using a command from the
1960     * Window Manager, a "delete,request" signal is emitted to indicate that
1961     * this event occurred and the developer can take any action, which may
1962     * include, or not, destroying the window object.
1963     *
1964     * When the @p autodel parameter is set, the window will be automatically
1965     * destroyed when this event occurs, after the signal is emitted.
1966     * If @p autodel is @c EINA_FALSE, then the window will not be destroyed
1967     * and is up to the program to do so when it's required.
1968     *
1969     * @param obj The window object
1970     * @param autodel If true, the window will automatically delete itself when
1971     * closed
1972     */
1973    EAPI void         elm_win_autodel_set(Evas_Object *obj, Eina_Bool autodel) EINA_ARG_NONNULL(1);
1974    /**
1975     * Get the window's autodel state.
1976     *
1977     * @param obj The window object
1978     * @return If the window will automatically delete itself when closed
1979     *
1980     * @see elm_win_autodel_set()
1981     */
1982    EAPI Eina_Bool    elm_win_autodel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1983    /**
1984     * Activate a window object.
1985     *
1986     * This function sends a request to the Window Manager to activate the
1987     * window pointed by @p obj. If honored by the WM, the window will receive
1988     * the keyboard focus.
1989     *
1990     * @note This is just a request that a Window Manager may ignore, so calling
1991     * this function does not ensure in any way that the window will be the
1992     * active one after it.
1993     *
1994     * @param obj The window object
1995     */
1996    EAPI void         elm_win_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
1997    /**
1998     * Lower a window object.
1999     *
2000     * Places the window pointed by @p obj at the bottom of the stack, so that
2001     * no other window is covered by it.
2002     *
2003     * If elm_win_override_set() is not set, the Window Manager may ignore this
2004     * request.
2005     *
2006     * @param obj The window object
2007     */
2008    EAPI void         elm_win_lower(Evas_Object *obj) EINA_ARG_NONNULL(1);
2009    /**
2010     * Raise a window object.
2011     *
2012     * Places the window pointed by @p obj at the top of the stack, so that it's
2013     * not covered by any other window.
2014     *
2015     * If elm_win_override_set() is not set, the Window Manager may ignore this
2016     * request.
2017     *
2018     * @param obj The window object
2019     */
2020    EAPI void         elm_win_raise(Evas_Object *obj) EINA_ARG_NONNULL(1);
2021    /**
2022     * Set the borderless state of a window.
2023     *
2024     * This function requests the Window Manager to not draw any decoration
2025     * around the window.
2026     *
2027     * @param obj The window object
2028     * @param borderless If true, the window is borderless
2029     */
2030    EAPI void         elm_win_borderless_set(Evas_Object *obj, Eina_Bool borderless) EINA_ARG_NONNULL(1);
2031    /**
2032     * Get the borderless state of a window.
2033     *
2034     * @param obj The window object
2035     * @return If true, the window is borderless
2036     */
2037    EAPI Eina_Bool    elm_win_borderless_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2038    /**
2039     * Set the shaped state of a window.
2040     *
2041     * Shaped windows, when supported, will render the parts of the window that
2042     * has no content, transparent.
2043     *
2044     * If @p shaped is EINA_FALSE, then it is strongly adviced to have some
2045     * background object or cover the entire window in any other way, or the
2046     * parts of the canvas that have no data will show framebuffer artifacts.
2047     *
2048     * @param obj The window object
2049     * @param shaped If true, the window is shaped
2050     *
2051     * @see elm_win_alpha_set()
2052     */
2053    EAPI void         elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped) EINA_ARG_NONNULL(1);
2054    /**
2055     * Get the shaped state of a window.
2056     *
2057     * @param obj The window object
2058     * @return If true, the window is shaped
2059     *
2060     * @see elm_win_shaped_set()
2061     */
2062    EAPI Eina_Bool    elm_win_shaped_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2063    /**
2064     * Set the alpha channel state of a window.
2065     *
2066     * If @p alpha is EINA_TRUE, the alpha channel of the canvas will be enabled
2067     * possibly making parts of the window completely or partially transparent.
2068     * This is also subject to the underlying system supporting it, like for
2069     * example, running under a compositing manager. If no compositing is
2070     * available, enabling this option will instead fallback to using shaped
2071     * windows, with elm_win_shaped_set().
2072     *
2073     * @param obj The window object
2074     * @param alpha If true, the window has an alpha channel
2075     *
2076     * @see elm_win_alpha_set()
2077     */
2078    EAPI void         elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
2079    /**
2080     * Get the transparency state of a window.
2081     *
2082     * @param obj The window object
2083     * @return If true, the window is transparent
2084     *
2085     * @see elm_win_transparent_set()
2086     */
2087    EAPI Eina_Bool    elm_win_transparent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2088    /**
2089     * Set the transparency state of a window.
2090     *
2091     * Use elm_win_alpha_set() instead.
2092     *
2093     * @param obj The window object
2094     * @param transparent If true, the window is transparent
2095     *
2096     * @see elm_win_alpha_set()
2097     */
2098    EAPI void         elm_win_transparent_set(Evas_Object *obj, Eina_Bool transparent) EINA_ARG_NONNULL(1);
2099    /**
2100     * Get the alpha channel state of a window.
2101     *
2102     * @param obj The window object
2103     * @return If true, the window has an alpha channel
2104     */
2105    EAPI Eina_Bool    elm_win_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2106    /**
2107     * Set the override state of a window.
2108     *
2109     * A window with @p override set to EINA_TRUE will not be managed by the
2110     * Window Manager. This means that no decorations of any kind will be shown
2111     * for it, moving and resizing must be handled by the application, as well
2112     * as the window visibility.
2113     *
2114     * This should not be used for normal windows, and even for not so normal
2115     * ones, it should only be used when there's a good reason and with a lot
2116     * of care. Mishandling override windows may result situations that
2117     * disrupt the normal workflow of the end user.
2118     *
2119     * @param obj The window object
2120     * @param override If true, the window is overridden
2121     */
2122    EAPI void         elm_win_override_set(Evas_Object *obj, Eina_Bool override) EINA_ARG_NONNULL(1);
2123    /**
2124     * Get the override state of a window.
2125     *
2126     * @param obj The window object
2127     * @return If true, the window is overridden
2128     *
2129     * @see elm_win_override_set()
2130     */
2131    EAPI Eina_Bool    elm_win_override_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2132    /**
2133     * Set the fullscreen state of a window.
2134     *
2135     * @param obj The window object
2136     * @param fullscreen If true, the window is fullscreen
2137     */
2138    EAPI void         elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen) EINA_ARG_NONNULL(1);
2139    /**
2140     * Get the fullscreen state of a window.
2141     *
2142     * @param obj The window object
2143     * @return If true, the window is fullscreen
2144     */
2145    EAPI Eina_Bool    elm_win_fullscreen_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2146    /**
2147     * Set the maximized state of a window.
2148     *
2149     * @param obj The window object
2150     * @param maximized If true, the window is maximized
2151     */
2152    EAPI void         elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized) EINA_ARG_NONNULL(1);
2153    /**
2154     * Get the maximized state of a window.
2155     *
2156     * @param obj The window object
2157     * @return If true, the window is maximized
2158     */
2159    EAPI Eina_Bool    elm_win_maximized_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2160    /**
2161     * Set the iconified state of a window.
2162     *
2163     * @param obj The window object
2164     * @param iconified If true, the window is iconified
2165     */
2166    EAPI void         elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified) EINA_ARG_NONNULL(1);
2167    /**
2168     * Get the iconified state of a window.
2169     *
2170     * @param obj The window object
2171     * @return If true, the window is iconified
2172     */
2173    EAPI Eina_Bool    elm_win_iconified_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2174    /**
2175     * Set the layer of the window.
2176     *
2177     * What this means exactly will depend on the underlying engine used.
2178     *
2179     * In the case of X11 backed engines, the value in @p layer has the
2180     * following meanings:
2181     * @li < 3: The window will be placed below all others.
2182     * @li > 5: The window will be placed above all others.
2183     * @li other: The window will be placed in the default layer.
2184     *
2185     * @param obj The window object
2186     * @param layer The layer of the window
2187     */
2188    EAPI void         elm_win_layer_set(Evas_Object *obj, int layer) EINA_ARG_NONNULL(1);
2189    /**
2190     * Get the layer of the window.
2191     *
2192     * @param obj The window object
2193     * @return The layer of the window
2194     *
2195     * @see elm_win_layer_set()
2196     */
2197    EAPI int          elm_win_layer_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2198    /**
2199     * Set the rotation of the window.
2200     *
2201     * Most engines only work with multiples of 90.
2202     *
2203     * This function is used to set the orientation of the window @p obj to
2204     * match that of the screen. The window itself will be resized to adjust
2205     * to the new geometry of its contents. If you want to keep the window size,
2206     * see elm_win_rotation_with_resize_set().
2207     *
2208     * @param obj The window object
2209     * @param rotation The rotation of the window, in degrees (0-360),
2210     * counter-clockwise.
2211     */
2212    EAPI void         elm_win_rotation_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
2213    /**
2214     * Rotates the window and resizes it.
2215     *
2216     * Like elm_win_rotation_set(), but it also resizes the window's contents so
2217     * that they fit inside the current window geometry.
2218     *
2219     * @param obj The window object
2220     * @param layer The rotation of the window in degrees (0-360),
2221     * counter-clockwise.
2222     */
2223    EAPI void         elm_win_rotation_with_resize_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
2224    /**
2225     * Get the rotation of the window.
2226     *
2227     * @param obj The window object
2228     * @return The rotation of the window in degrees (0-360)
2229     *
2230     * @see elm_win_rotation_set()
2231     * @see elm_win_rotation_with_resize_set()
2232     */
2233    EAPI int          elm_win_rotation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2234    /**
2235     * Set the sticky state of the window.
2236     *
2237     * Hints the Window Manager that the window in @p obj should be left fixed
2238     * at its position even when the virtual desktop it's on moves or changes.
2239     *
2240     * @param obj The window object
2241     * @param sticky If true, the window's sticky state is enabled
2242     */
2243    EAPI void         elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky) EINA_ARG_NONNULL(1);
2244    /**
2245     * Get the sticky state of the window.
2246     *
2247     * @param obj The window object
2248     * @return If true, the window's sticky state is enabled
2249     *
2250     * @see elm_win_sticky_set()
2251     */
2252    EAPI Eina_Bool    elm_win_sticky_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2253    /**
2254     * Set if this window is an illume conformant window
2255     *
2256     * @param obj The window object
2257     * @param conformant The conformant flag (1 = conformant, 0 = non-conformant)
2258     */
2259    EAPI void         elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant) EINA_ARG_NONNULL(1);
2260    /**
2261     * Get if this window is an illume conformant window
2262     *
2263     * @param obj The window object
2264     * @return A boolean if this window is illume conformant or not
2265     */
2266    EAPI Eina_Bool    elm_win_conformant_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2267    /**
2268     * Set a window to be an illume quickpanel window
2269     *
2270     * By default window objects are not quickpanel windows.
2271     *
2272     * @param obj The window object
2273     * @param quickpanel The quickpanel flag (1 = quickpanel, 0 = normal window)
2274     */
2275    EAPI void         elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel) EINA_ARG_NONNULL(1);
2276    /**
2277     * Get if this window is a quickpanel or not
2278     *
2279     * @param obj The window object
2280     * @return A boolean if this window is a quickpanel or not
2281     */
2282    EAPI Eina_Bool    elm_win_quickpanel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2283    /**
2284     * Set the major priority of a quickpanel window
2285     *
2286     * @param obj The window object
2287     * @param priority The major priority for this quickpanel
2288     */
2289    EAPI void         elm_win_quickpanel_priority_major_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
2290    /**
2291     * Get the major priority of a quickpanel window
2292     *
2293     * @param obj The window object
2294     * @return The major priority of this quickpanel
2295     */
2296    EAPI int          elm_win_quickpanel_priority_major_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2297    /**
2298     * Set the minor priority of a quickpanel window
2299     *
2300     * @param obj The window object
2301     * @param priority The minor priority for this quickpanel
2302     */
2303    EAPI void         elm_win_quickpanel_priority_minor_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
2304    /**
2305     * Get the minor priority of a quickpanel window
2306     *
2307     * @param obj The window object
2308     * @return The minor priority of this quickpanel
2309     */
2310    EAPI int          elm_win_quickpanel_priority_minor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2311    /**
2312     * Set which zone this quickpanel should appear in
2313     *
2314     * @param obj The window object
2315     * @param zone The requested zone for this quickpanel
2316     */
2317    EAPI void         elm_win_quickpanel_zone_set(Evas_Object *obj, int zone) EINA_ARG_NONNULL(1);
2318    /**
2319     * Get which zone this quickpanel should appear in
2320     *
2321     * @param obj The window object
2322     * @return The requested zone for this quickpanel
2323     */
2324    EAPI int          elm_win_quickpanel_zone_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2325    /**
2326     * Set the window to be skipped by keyboard focus
2327     *
2328     * This sets the window to be skipped by normal keyboard input. This means
2329     * a window manager will be asked to not focus this window as well as omit
2330     * it from things like the taskbar, pager, "alt-tab" list etc. etc.
2331     *
2332     * Call this and enable it on a window BEFORE you show it for the first time,
2333     * otherwise it may have no effect.
2334     *
2335     * Use this for windows that have only output information or might only be
2336     * interacted with by the mouse or fingers, and never for typing input.
2337     * Be careful that this may have side-effects like making the window
2338     * non-accessible in some cases unless the window is specially handled. Use
2339     * this with care.
2340     *
2341     * @param obj The window object
2342     * @param skip The skip flag state (EINA_TRUE if it is to be skipped)
2343     */
2344    EAPI void         elm_win_prop_focus_skip_set(Evas_Object *obj, Eina_Bool skip) EINA_ARG_NONNULL(1);
2345    /**
2346     * Send a command to the windowing environment
2347     *
2348     * This is intended to work in touchscreen or small screen device
2349     * environments where there is a more simplistic window management policy in
2350     * place. This uses the window object indicated to select which part of the
2351     * environment to control (the part that this window lives in), and provides
2352     * a command and an optional parameter structure (use NULL for this if not
2353     * needed).
2354     *
2355     * @param obj The window object that lives in the environment to control
2356     * @param command The command to send
2357     * @param params Optional parameters for the command
2358     */
2359    EAPI void         elm_win_illume_command_send(Evas_Object *obj, Elm_Illume_Command command, void *params) EINA_ARG_NONNULL(1);
2360    /**
2361     * Get the inlined image object handle
2362     *
2363     * When you create a window with elm_win_add() of type ELM_WIN_INLINED_IMAGE,
2364     * then the window is in fact an evas image object inlined in the parent
2365     * canvas. You can get this object (be careful to not manipulate it as it
2366     * is under control of elementary), and use it to do things like get pixel
2367     * data, save the image to a file, etc.
2368     *
2369     * @param obj The window object to get the inlined image from
2370     * @return The inlined image object, or NULL if none exists
2371     */
2372    EAPI Evas_Object *elm_win_inlined_image_object_get(Evas_Object *obj);
2373    /**
2374     * Set the enabled status for the focus highlight in a window
2375     *
2376     * This function will enable or disable the focus highlight only for the
2377     * given window, regardless of the global setting for it
2378     *
2379     * @param obj The window where to enable the highlight
2380     * @param enabled The enabled value for the highlight
2381     */
2382    EAPI void         elm_win_focus_highlight_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
2383    /**
2384     * Get the enabled value of the focus highlight for this window
2385     *
2386     * @param obj The window in which to check if the focus highlight is enabled
2387     *
2388     * @return EINA_TRUE if enabled, EINA_FALSE otherwise
2389     */
2390    EAPI Eina_Bool    elm_win_focus_highlight_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2391    /**
2392     * Set the style for the focus highlight on this window
2393     *
2394     * Sets the style to use for theming the highlight of focused objects on
2395     * the given window. If @p style is NULL, the default will be used.
2396     *
2397     * @param obj The window where to set the style
2398     * @param style The style to set
2399     */
2400    EAPI void         elm_win_focus_highlight_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
2401    /**
2402     * Get the style set for the focus highlight object
2403     *
2404     * Gets the style set for this windows highilght object, or NULL if none
2405     * is set.
2406     *
2407     * @param obj The window to retrieve the highlights style from
2408     *
2409     * @return The style set or NULL if none was. Default is used in that case.
2410     */
2411    EAPI const char  *elm_win_focus_highlight_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2412    /*...
2413     * ecore_x_icccm_hints_set -> accepts_focus (add to ecore_evas)
2414     * ecore_x_icccm_hints_set -> window_group (add to ecore_evas)
2415     * ecore_x_icccm_size_pos_hints_set -> request_pos (add to ecore_evas)
2416     * ecore_x_icccm_client_leader_set -> l (add to ecore_evas)
2417     * ecore_x_icccm_window_role_set -> role (add to ecore_evas)
2418     * ecore_x_icccm_transient_for_set -> forwin (add to ecore_evas)
2419     * ecore_x_netwm_window_type_set -> type (add to ecore_evas)
2420     *
2421     * (add to ecore_x) set netwm argb icon! (add to ecore_evas)
2422     * (blank mouse, private mouse obj, defaultmouse)
2423     *
2424     */
2425    /**
2426     * Sets the keyboard mode of the window.
2427     *
2428     * @param obj The window object
2429     * @param mode The mode to set, one of #Elm_Win_Keyboard_Mode
2430     */
2431    EAPI void                  elm_win_keyboard_mode_set(Evas_Object *obj, Elm_Win_Keyboard_Mode mode) EINA_ARG_NONNULL(1);
2432    /**
2433     * Gets the keyboard mode of the window.
2434     *
2435     * @param obj The window object
2436     * @return The mode, one of #Elm_Win_Keyboard_Mode
2437     */
2438    EAPI Elm_Win_Keyboard_Mode elm_win_keyboard_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2439    /**
2440     * Sets whether the window is a keyboard.
2441     *
2442     * @param obj The window object
2443     * @param is_keyboard If true, the window is a virtual keyboard
2444     */
2445    EAPI void                  elm_win_keyboard_win_set(Evas_Object *obj, Eina_Bool is_keyboard) EINA_ARG_NONNULL(1);
2446    /**
2447     * Gets whether the window is a keyboard.
2448     *
2449     * @param obj The window object
2450     * @return If the window is a virtual keyboard
2451     */
2452    EAPI Eina_Bool             elm_win_keyboard_win_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2453
2454    /**
2455     * Get the screen position of a window.
2456     *
2457     * @param obj The window object
2458     * @param x The int to store the x coordinate to
2459     * @param y The int to store the y coordinate to
2460     */
2461    EAPI void                  elm_win_screen_position_get(const Evas_Object *obj, int *x, int *y) EINA_ARG_NONNULL(1);
2462    /**
2463     * @}
2464     */
2465
2466    /**
2467     * @defgroup Inwin Inwin
2468     *
2469     * @image html img/widget/inwin/preview-00.png
2470     * @image latex img/widget/inwin/preview-00.eps
2471     * @image html img/widget/inwin/preview-01.png
2472     * @image latex img/widget/inwin/preview-01.eps
2473     * @image html img/widget/inwin/preview-02.png
2474     * @image latex img/widget/inwin/preview-02.eps
2475     *
2476     * An inwin is a window inside a window that is useful for a quick popup.
2477     * It does not hover.
2478     *
2479     * It works by creating an object that will occupy the entire window, so it
2480     * must be created using an @ref Win "elm_win" as parent only. The inwin
2481     * object can be hidden or restacked below every other object if it's
2482     * needed to show what's behind it without destroying it. If this is done,
2483     * the elm_win_inwin_activate() function can be used to bring it back to
2484     * full visibility again.
2485     *
2486     * There are three styles available in the default theme. These are:
2487     * @li default: The inwin is sized to take over most of the window it's
2488     * placed in.
2489     * @li minimal: The size of the inwin will be the minimum necessary to show
2490     * its contents.
2491     * @li minimal_vertical: Horizontally, the inwin takes as much space as
2492     * possible, but it's sized vertically the most it needs to fit its\
2493     * contents.
2494     *
2495     * Some examples of Inwin can be found in the following:
2496     * @li @ref inwin_example_01
2497     *
2498     * @{
2499     */
2500    /**
2501     * Adds an inwin to the current window
2502     *
2503     * The @p obj used as parent @b MUST be an @ref Win "Elementary Window".
2504     * Never call this function with anything other than the top-most window
2505     * as its parameter, unless you are fond of undefined behavior.
2506     *
2507     * After creating the object, the widget will set itself as resize object
2508     * for the window with elm_win_resize_object_add(), so when shown it will
2509     * appear to cover almost the entire window (how much of it depends on its
2510     * content and the style used). It must not be added into other container
2511     * objects and it needs not be moved or resized manually.
2512     *
2513     * @param parent The parent object
2514     * @return The new object or NULL if it cannot be created
2515     */
2516    EAPI Evas_Object          *elm_win_inwin_add(Evas_Object *obj) EINA_ARG_NONNULL(1);
2517    /**
2518     * Activates an inwin object, ensuring its visibility
2519     *
2520     * This function will make sure that the inwin @p obj is completely visible
2521     * by calling evas_object_show() and evas_object_raise() on it, to bring it
2522     * to the front. It also sets the keyboard focus to it, which will be passed
2523     * onto its content.
2524     *
2525     * The object's theme will also receive the signal "elm,action,show" with
2526     * source "elm".
2527     *
2528     * @param obj The inwin to activate
2529     */
2530    EAPI void                  elm_win_inwin_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
2531    /**
2532     * Set the content of an inwin object.
2533     *
2534     * Once the content object is set, a previously set one will be deleted.
2535     * If you want to keep that old content object, use the
2536     * elm_win_inwin_content_unset() function.
2537     *
2538     * @param obj The inwin object
2539     * @param content The object to set as content
2540     */
2541    EAPI void                  elm_win_inwin_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
2542    /**
2543     * Get the content of an inwin object.
2544     *
2545     * Return the content object which is set for this widget.
2546     *
2547     * The returned object is valid as long as the inwin is still alive and no
2548     * other content is set on it. Deleting the object will notify the inwin
2549     * about it and this one will be left empty.
2550     *
2551     * If you need to remove an inwin's content to be reused somewhere else,
2552     * see elm_win_inwin_content_unset().
2553     *
2554     * @param obj The inwin object
2555     * @return The content that is being used
2556     */
2557    EAPI Evas_Object          *elm_win_inwin_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2558    /**
2559     * Unset the content of an inwin object.
2560     *
2561     * Unparent and return the content object which was set for this widget.
2562     *
2563     * @param obj The inwin object
2564     * @return The content that was being used
2565     */
2566    EAPI Evas_Object          *elm_win_inwin_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
2567    /**
2568     * @}
2569     */
2570    /* X specific calls - won't work on non-x engines (return 0) */
2571    EAPI Ecore_X_Window elm_win_xwindow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2572    /* smart callbacks called:
2573     * "delete,request" - the user requested to delete the window
2574     * "focus,in" - window got focus
2575     * "focus,out" - window lost focus
2576     * "moved" - window that holds the canvas was moved
2577     */
2578
2579    /**
2580     * @defgroup Bg Bg
2581     *
2582     * @image html img/widget/bg/preview-00.png
2583     * @image latex img/widget/bg/preview-00.eps
2584     *
2585     * @brief Background object, used for setting a solid color, image or Edje
2586     * group as background to a window or any container object.
2587     *
2588     * The bg object is used for setting a solid background to a window or
2589     * packing into any container object. It works just like an image, but has
2590     * some properties useful to a background, like setting it to tiled,
2591     * centered, scaled or stretched.
2592     *
2593     * Here is some sample code using it:
2594     * @li @ref bg_01_example_page
2595     * @li @ref bg_02_example_page
2596     * @li @ref bg_03_example_page
2597     */
2598
2599    /* bg */
2600    typedef enum _Elm_Bg_Option
2601      {
2602         ELM_BG_OPTION_CENTER,  /**< center the background */
2603         ELM_BG_OPTION_SCALE,   /**< scale the background retaining aspect ratio */
2604         ELM_BG_OPTION_STRETCH, /**< stretch the background to fill */
2605         ELM_BG_OPTION_TILE     /**< tile background at its original size */
2606      } Elm_Bg_Option;
2607
2608    /**
2609     * Add a new background to the parent
2610     *
2611     * @param parent The parent object
2612     * @return The new object or NULL if it cannot be created
2613     *
2614     * @ingroup Bg
2615     */
2616    EAPI Evas_Object  *elm_bg_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
2617
2618    /**
2619     * Set the file (image or edje) used for the background
2620     *
2621     * @param obj The bg object
2622     * @param file The file path
2623     * @param group Optional key (group in Edje) within the file
2624     *
2625     * This sets the image file used in the background object. The image (or edje)
2626     * will be stretched (retaining aspect if its an image file) to completely fill
2627     * the bg object. This may mean some parts are not visible.
2628     *
2629     * @note  Once the image of @p obj is set, a previously set one will be deleted,
2630     * even if @p file is NULL.
2631     *
2632     * @ingroup Bg
2633     */
2634    EAPI void          elm_bg_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
2635
2636    /**
2637     * Get the file (image or edje) used for the background
2638     *
2639     * @param obj The bg object
2640     * @param file The file path
2641     * @param group Optional key (group in Edje) within the file
2642     *
2643     * @ingroup Bg
2644     */
2645    EAPI void          elm_bg_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
2646
2647    /**
2648     * Set the option used for the background image
2649     *
2650     * @param obj The bg object
2651     * @param option The desired background option (TILE, SCALE)
2652     *
2653     * This sets the option used for manipulating the display of the background
2654     * image. The image can be tiled or scaled.
2655     *
2656     * @ingroup Bg
2657     */
2658    EAPI void          elm_bg_option_set(Evas_Object *obj, Elm_Bg_Option option) EINA_ARG_NONNULL(1);
2659
2660    /**
2661     * Get the option used for the background image
2662     *
2663     * @param obj The bg object
2664     * @return The desired background option (CENTER, SCALE, STRETCH or TILE)
2665     *
2666     * @ingroup Bg
2667     */
2668    EAPI Elm_Bg_Option elm_bg_option_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2669    /**
2670     * Set the option used for the background color
2671     *
2672     * @param obj The bg object
2673     * @param r
2674     * @param g
2675     * @param b
2676     *
2677     * This sets the color used for the background rectangle. Its range goes
2678     * from 0 to 255.
2679     *
2680     * @ingroup Bg
2681     */
2682    EAPI void          elm_bg_color_set(Evas_Object *obj, int r, int g, int b) EINA_ARG_NONNULL(1);
2683    /**
2684     * Get the option used for the background color
2685     *
2686     * @param obj The bg object
2687     * @param r
2688     * @param g
2689     * @param b
2690     *
2691     * @ingroup Bg
2692     */
2693    EAPI void          elm_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b) EINA_ARG_NONNULL(1);
2694
2695    /**
2696     * Set the overlay object used for the background object.
2697     *
2698     * @param obj The bg object
2699     * @param overlay The overlay object
2700     *
2701     * This provides a way for elm_bg to have an 'overlay' that will be on top
2702     * of the bg. Once the over object is set, a previously set one will be
2703     * deleted, even if you set the new one to NULL. If you want to keep that
2704     * old content object, use the elm_bg_overlay_unset() function.
2705     *
2706     * @ingroup Bg
2707     */
2708
2709    EAPI void          elm_bg_overlay_set(Evas_Object *obj, Evas_Object *overlay) EINA_ARG_NONNULL(1);
2710
2711    /**
2712     * Get the overlay object used for the background object.
2713     *
2714     * @param obj The bg object
2715     * @return The content that is being used
2716     *
2717     * Return the content object which is set for this widget
2718     *
2719     * @ingroup Bg
2720     */
2721    EAPI Evas_Object  *elm_bg_overlay_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2722
2723    /**
2724     * Get the overlay object used for the background object.
2725     *
2726     * @param obj The bg object
2727     * @return The content that was being used
2728     *
2729     * Unparent and return the overlay object which was set for this widget
2730     *
2731     * @ingroup Bg
2732     */
2733    EAPI Evas_Object  *elm_bg_overlay_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
2734
2735    /**
2736     * Set the size of the pixmap representation of the image.
2737     *
2738     * This option just makes sense if an image is going to be set in the bg.
2739     *
2740     * @param obj The bg object
2741     * @param w The new width of the image pixmap representation.
2742     * @param h The new height of the image pixmap representation.
2743     *
2744     * This function sets a new size for pixmap representation of the given bg
2745     * image. It allows the image to be loaded already in the specified size,
2746     * reducing the memory usage and load time when loading a big image with load
2747     * size set to a smaller size.
2748     *
2749     * NOTE: this is just a hint, the real size of the pixmap may differ
2750     * depending on the type of image being loaded, being bigger than requested.
2751     *
2752     * @ingroup Bg
2753     */
2754    EAPI void          elm_bg_load_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
2755    /* smart callbacks called:
2756     */
2757
2758    /**
2759     * @defgroup Icon Icon
2760     *
2761     * @image html img/widget/icon/preview-00.png
2762     * @image latex img/widget/icon/preview-00.eps
2763     *
2764     * An object that provides standard icon images (delete, edit, arrows, etc.)
2765     * or a custom file (PNG, JPG, EDJE, etc.) used for an icon.
2766     *
2767     * The icon image requested can be in the elementary theme, or in the
2768     * freedesktop.org paths. It's possible to set the order of preference from
2769     * where the image will be used.
2770     *
2771     * This API is very similar to @ref Image, but with ready to use images.
2772     *
2773     * Default images provided by the theme are described below.
2774     *
2775     * The first list contains icons that were first intended to be used in
2776     * toolbars, but can be used in many other places too:
2777     * @li home
2778     * @li close
2779     * @li apps
2780     * @li arrow_up
2781     * @li arrow_down
2782     * @li arrow_left
2783     * @li arrow_right
2784     * @li chat
2785     * @li clock
2786     * @li delete
2787     * @li edit
2788     * @li refresh
2789     * @li folder
2790     * @li file
2791     *
2792     * Now some icons that were designed to be used in menus (but again, you can
2793     * use them anywhere else):
2794     * @li menu/home
2795     * @li menu/close
2796     * @li menu/apps
2797     * @li menu/arrow_up
2798     * @li menu/arrow_down
2799     * @li menu/arrow_left
2800     * @li menu/arrow_right
2801     * @li menu/chat
2802     * @li menu/clock
2803     * @li menu/delete
2804     * @li menu/edit
2805     * @li menu/refresh
2806     * @li menu/folder
2807     * @li menu/file
2808     *
2809     * And here we have some media player specific icons:
2810     * @li media_player/forward
2811     * @li media_player/info
2812     * @li media_player/next
2813     * @li media_player/pause
2814     * @li media_player/play
2815     * @li media_player/prev
2816     * @li media_player/rewind
2817     * @li media_player/stop
2818     *
2819     * Signals that you can add callbacks for are:
2820     *
2821     * "clicked" - This is called when a user has clicked the icon
2822     *
2823     * An example of usage for this API follows:
2824     * @li @ref tutorial_icon
2825     */
2826
2827    /**
2828     * @addtogroup Icon
2829     * @{
2830     */
2831
2832    typedef enum _Elm_Icon_Type
2833      {
2834         ELM_ICON_NONE,
2835         ELM_ICON_FILE,
2836         ELM_ICON_STANDARD
2837      } Elm_Icon_Type;
2838    /**
2839     * @enum _Elm_Icon_Lookup_Order
2840     * @typedef Elm_Icon_Lookup_Order
2841     *
2842     * Lookup order used by elm_icon_standard_set(). Should look for icons in the
2843     * theme, FDO paths, or both?
2844     *
2845     * @ingroup Icon
2846     */
2847    typedef enum _Elm_Icon_Lookup_Order
2848      {
2849         ELM_ICON_LOOKUP_FDO_THEME, /**< icon look up order: freedesktop, theme */
2850         ELM_ICON_LOOKUP_THEME_FDO, /**< icon look up order: theme, freedesktop */
2851         ELM_ICON_LOOKUP_FDO,       /**< icon look up order: freedesktop */
2852         ELM_ICON_LOOKUP_THEME      /**< icon look up order: theme */
2853      } Elm_Icon_Lookup_Order;
2854
2855    /**
2856     * Add a new icon object to the parent.
2857     *
2858     * @param parent The parent object
2859     * @return The new object or NULL if it cannot be created
2860     *
2861     * @see elm_icon_file_set()
2862     *
2863     * @ingroup Icon
2864     */
2865    EAPI Evas_Object          *elm_icon_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
2866    /**
2867     * Set the file that will be used as icon.
2868     *
2869     * @param obj The icon object
2870     * @param file The path to file that will be used as icon image
2871     * @param group The group that the icon belongs to in edje file
2872     *
2873     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
2874     *
2875     * @note The icon image set by this function can be changed by
2876     * elm_icon_standard_set().
2877     *
2878     * @see elm_icon_file_get()
2879     *
2880     * @ingroup Icon
2881     */
2882    EAPI Eina_Bool             elm_icon_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
2883    /**
2884     * Set a location in memory to be used as an icon
2885     *
2886     * @param obj The icon object
2887     * @param img The binary data that will be used as an image
2888     * @param size The size of binary data @p img
2889     * @param format Optional format of @p img to pass to the image loader
2890     * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
2891     *
2892     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
2893     *
2894     * @note The icon image set by this function can be changed by
2895     * elm_icon_standard_set().
2896     *
2897     * @ingroup Icon
2898     */
2899    EAPI Eina_Bool             elm_icon_memfile_set(Evas_Object *obj, const void *img, size_t size, const char *format, const char *key);  EINA_ARG_NONNULL(1, 2);
2900    /**
2901     * Get the file that will be used as icon.
2902     *
2903     * @param obj The icon object
2904     * @param file The path to file that will be used as icon icon image
2905     * @param group The group that the icon belongs to in edje file
2906     *
2907     * @see elm_icon_file_set()
2908     *
2909     * @ingroup Icon
2910     */
2911    EAPI void                  elm_icon_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
2912    EAPI void                  elm_icon_thumb_set(const Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
2913    /**
2914     * Set the icon by icon standards names.
2915     *
2916     * @param obj The icon object
2917     * @param name The icon name
2918     *
2919     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
2920     *
2921     * For example, freedesktop.org defines standard icon names such as "home",
2922     * "network", etc. There can be different icon sets to match those icon
2923     * keys. The @p name given as parameter is one of these "keys", and will be
2924     * used to look in the freedesktop.org paths and elementary theme. One can
2925     * change the lookup order with elm_icon_order_lookup_set().
2926     *
2927     * If name is not found in any of the expected locations and it is the
2928     * absolute path of an image file, this image will be used.
2929     *
2930     * @note The icon image set by this function can be changed by
2931     * elm_icon_file_set().
2932     *
2933     * @see elm_icon_standard_get()
2934     * @see elm_icon_file_set()
2935     *
2936     * @ingroup Icon
2937     */
2938    EAPI Eina_Bool             elm_icon_standard_set(Evas_Object *obj, const char *name) EINA_ARG_NONNULL(1);
2939    /**
2940     * Get the icon name set by icon standard names.
2941     *
2942     * @param obj The icon object
2943     * @return The icon name
2944     *
2945     * If the icon image was set using elm_icon_file_set() instead of
2946     * elm_icon_standard_set(), then this function will return @c NULL.
2947     *
2948     * @see elm_icon_standard_set()
2949     *
2950     * @ingroup Icon
2951     */
2952    EAPI const char           *elm_icon_standard_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2953    /**
2954     * Set the smooth effect for an icon object.
2955     *
2956     * @param obj The icon object
2957     * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
2958     * otherwise. Default is @c EINA_TRUE.
2959     *
2960     * Set the scaling algorithm to be used when scaling the icon image. Smooth
2961     * scaling provides a better resulting image, but is slower.
2962     *
2963     * The smooth scaling should be disabled when making animations that change
2964     * the icon size, since they will be faster. Animations that don't require
2965     * resizing of the icon can keep the smooth scaling enabled (even if the icon
2966     * is already scaled, since the scaled icon image will be cached).
2967     *
2968     * @see elm_icon_smooth_get()
2969     *
2970     * @ingroup Icon
2971     */
2972    EAPI void                  elm_icon_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
2973    /**
2974     * Get the smooth effect for an icon object.
2975     *
2976     * @param obj The icon object
2977     * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
2978     *
2979     * @see elm_icon_smooth_set()
2980     *
2981     * @ingroup Icon
2982     */
2983    EAPI Eina_Bool             elm_icon_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2984    /**
2985     * Disable scaling of this object.
2986     *
2987     * @param obj The icon object.
2988     * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
2989     * otherwise. Default is @c EINA_FALSE.
2990     *
2991     * This function disables scaling of the icon object through the function
2992     * elm_object_scale_set(). However, this does not affect the object
2993     * size/resize in any way. For that effect, take a look at
2994     * elm_icon_scale_set().
2995     *
2996     * @see elm_icon_no_scale_get()
2997     * @see elm_icon_scale_set()
2998     * @see elm_object_scale_set()
2999     *
3000     * @ingroup Icon
3001     */
3002    EAPI void                  elm_icon_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
3003    /**
3004     * Get whether scaling is disabled on the object.
3005     *
3006     * @param obj The icon object
3007     * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
3008     *
3009     * @see elm_icon_no_scale_set()
3010     *
3011     * @ingroup Icon
3012     */
3013    EAPI Eina_Bool             elm_icon_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3014    /**
3015     * Set if the object is (up/down) resizeable.
3016     *
3017     * @param obj The icon object
3018     * @param scale_up A bool to set if the object is resizeable up. Default is
3019     * @c EINA_TRUE.
3020     * @param scale_down A bool to set if the object is resizeable down. Default
3021     * is @c EINA_TRUE.
3022     *
3023     * This function limits the icon object resize ability. If @p scale_up is set to
3024     * @c EINA_FALSE, the object can't have its height or width resized to a value
3025     * higher than the original icon size. Same is valid for @p scale_down.
3026     *
3027     * @see elm_icon_scale_get()
3028     *
3029     * @ingroup Icon
3030     */
3031    EAPI void                  elm_icon_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
3032    /**
3033     * Get if the object is (up/down) resizeable.
3034     *
3035     * @param obj The icon object
3036     * @param scale_up A bool to set if the object is resizeable up
3037     * @param scale_down A bool to set if the object is resizeable down
3038     *
3039     * @see elm_icon_scale_set()
3040     *
3041     * @ingroup Icon
3042     */
3043    EAPI void                  elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
3044    /**
3045     * Get the object's image size
3046     *
3047     * @param obj The icon object
3048     * @param w A pointer to store the width in
3049     * @param h A pointer to store the height in
3050     *
3051     * @ingroup Icon
3052     */
3053    EAPI void                  elm_icon_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
3054    /**
3055     * Set if the icon fill the entire object area.
3056     *
3057     * @param obj The icon object
3058     * @param fill_outside @c EINA_TRUE if the object is filled outside,
3059     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
3060     *
3061     * When the icon object is resized to a different aspect ratio from the
3062     * original icon image, the icon image will still keep its aspect. This flag
3063     * tells how the image should fill the object's area. They are: keep the
3064     * entire icon inside the limits of height and width of the object (@p
3065     * fill_outside is @c EINA_FALSE) or let the extra width or height go outside
3066     * of the object, and the icon will fill the entire object (@p fill_outside
3067     * is @c EINA_TRUE).
3068     *
3069     * @note Unlike @ref Image, there's no option in icon to set the aspect ratio
3070     * retain property to false. Thus, the icon image will always keep its
3071     * original aspect ratio.
3072     *
3073     * @see elm_icon_fill_outside_get()
3074     * @see elm_image_fill_outside_set()
3075     *
3076     * @ingroup Icon
3077     */
3078    EAPI void                  elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
3079    /**
3080     * Get if the object is filled outside.
3081     *
3082     * @param obj The icon object
3083     * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
3084     *
3085     * @see elm_icon_fill_outside_set()
3086     *
3087     * @ingroup Icon
3088     */
3089    EAPI Eina_Bool             elm_icon_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3090    /**
3091     * Set the prescale size for the icon.
3092     *
3093     * @param obj The icon object
3094     * @param size The prescale size. This value is used for both width and
3095     * height.
3096     *
3097     * This function sets a new size for pixmap representation of the given
3098     * icon. It allows the icon to be loaded already in the specified size,
3099     * reducing the memory usage and load time when loading a big icon with load
3100     * size set to a smaller size.
3101     *
3102     * It's equivalent to the elm_bg_load_size_set() function for bg.
3103     *
3104     * @note this is just a hint, the real size of the pixmap may differ
3105     * depending on the type of icon being loaded, being bigger than requested.
3106     *
3107     * @see elm_icon_prescale_get()
3108     * @see elm_bg_load_size_set()
3109     *
3110     * @ingroup Icon
3111     */
3112    EAPI void                  elm_icon_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
3113    /**
3114     * Get the prescale size for the icon.
3115     *
3116     * @param obj The icon object
3117     * @return The prescale size
3118     *
3119     * @see elm_icon_prescale_set()
3120     *
3121     * @ingroup Icon
3122     */
3123    EAPI int                   elm_icon_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3124    /**
3125     * Sets the icon lookup order used by elm_icon_standard_set().
3126     *
3127     * @param obj The icon object
3128     * @param order The icon lookup order (can be one of
3129     * ELM_ICON_LOOKUP_FDO_THEME, ELM_ICON_LOOKUP_THEME_FDO, ELM_ICON_LOOKUP_FDO
3130     * or ELM_ICON_LOOKUP_THEME)
3131     *
3132     * @see elm_icon_order_lookup_get()
3133     * @see Elm_Icon_Lookup_Order
3134     *
3135     * @ingroup Icon
3136     */
3137    EAPI void                  elm_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
3138    /**
3139     * Gets the icon lookup order.
3140     *
3141     * @param obj The icon object
3142     * @return The icon lookup order
3143     *
3144     * @see elm_icon_order_lookup_set()
3145     * @see Elm_Icon_Lookup_Order
3146     *
3147     * @ingroup Icon
3148     */
3149    EAPI Elm_Icon_Lookup_Order elm_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3150
3151    /**
3152     * @}
3153     */
3154
3155    /**
3156     * @defgroup Image Image
3157     *
3158     * @image html img/widget/image/preview-00.png
3159     * @image latex img/widget/image/preview-00.eps
3160     *
3161     * An object that allows one to load an image file to it. It can be used
3162     * anywhere like any other elementary widget.
3163     *
3164     * This widget provides most of the functionality provided from @ref Bg or @ref
3165     * Icon, but with a slightly different API (use the one that fits better your
3166     * needs).
3167     *
3168     * The features not provided by those two other image widgets are:
3169     * @li allowing to get the basic @c Evas_Object with elm_image_object_get();
3170     * @li change the object orientation with elm_image_orient_set();
3171     * @li and turning the image editable with elm_image_editable_set().
3172     *
3173     * Signals that you can add callbacks for are:
3174     *
3175     * @li @c "clicked" - This is called when a user has clicked the image
3176     *
3177     * An example of usage for this API follows:
3178     * @li @ref tutorial_image
3179     */
3180
3181    /**
3182     * @addtogroup Image
3183     * @{
3184     */
3185
3186    /**
3187     * @enum _Elm_Image_Orient
3188     * @typedef Elm_Image_Orient
3189     *
3190     * Possible orientation options for elm_image_orient_set().
3191     *
3192     * @image html elm_image_orient_set.png
3193     * @image latex elm_image_orient_set.eps width=\textwidth
3194     *
3195     * @ingroup Image
3196     */
3197    typedef enum _Elm_Image_Orient
3198      {
3199         ELM_IMAGE_ORIENT_NONE, /**< no orientation change */
3200         ELM_IMAGE_ROTATE_90_CW, /**< rotate 90 degrees clockwise */
3201         ELM_IMAGE_ROTATE_180_CW, /**< rotate 180 degrees clockwise */
3202         ELM_IMAGE_ROTATE_90_CCW, /**< rotate 90 degrees counter-clockwise (i.e. 270 degrees clockwise) */
3203         ELM_IMAGE_FLIP_HORIZONTAL, /**< flip image horizontally */
3204         ELM_IMAGE_FLIP_VERTICAL, /**< flip image vertically */
3205         ELM_IMAGE_FLIP_TRANSPOSE, /**< flip the image along the y = (side - x) line*/
3206         ELM_IMAGE_FLIP_TRANSVERSE /**< flip the image along the y = x line */
3207      } Elm_Image_Orient;
3208
3209    /**
3210     * Add a new image to the parent.
3211     *
3212     * @param parent The parent object
3213     * @return The new object or NULL if it cannot be created
3214     *
3215     * @see elm_image_file_set()
3216     *
3217     * @ingroup Image
3218     */
3219    EAPI Evas_Object     *elm_image_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
3220    /**
3221     * Set the file that will be used as image.
3222     *
3223     * @param obj The image object
3224     * @param file The path to file that will be used as image
3225     * @param group The group that the image belongs in edje file (if it's an
3226     * edje image)
3227     *
3228     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
3229     *
3230     * @see elm_image_file_get()
3231     *
3232     * @ingroup Image
3233     */
3234    EAPI Eina_Bool        elm_image_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
3235    /**
3236     * Get the file that will be used as image.
3237     *
3238     * @param obj The image object
3239     * @param file The path to file
3240     * @param group The group that the image belongs in edje file
3241     *
3242     * @see elm_image_file_set()
3243     *
3244     * @ingroup Image
3245     */
3246    EAPI void             elm_image_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
3247    /**
3248     * Set the smooth effect for an image.
3249     *
3250     * @param obj The image object
3251     * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
3252     * otherwise. Default is @c EINA_TRUE.
3253     *
3254     * Set the scaling algorithm to be used when scaling the image. Smooth
3255     * scaling provides a better resulting image, but is slower.
3256     *
3257     * The smooth scaling should be disabled when making animations that change
3258     * the image size, since it will be faster. Animations that don't require
3259     * resizing of the image can keep the smooth scaling enabled (even if the
3260     * image is already scaled, since the scaled image will be cached).
3261     *
3262     * @see elm_image_smooth_get()
3263     *
3264     * @ingroup Image
3265     */
3266    EAPI void             elm_image_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
3267    /**
3268     * Get the smooth effect for an image.
3269     *
3270     * @param obj The image object
3271     * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
3272     *
3273     * @see elm_image_smooth_get()
3274     *
3275     * @ingroup Image
3276     */
3277    EAPI Eina_Bool        elm_image_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3278    /**
3279     * Gets the current size of the image.
3280     *
3281     * @param obj The image object.
3282     * @param w Pointer to store width, or NULL.
3283     * @param h Pointer to store height, or NULL.
3284     *
3285     * This is the real size of the image, not the size of the object.
3286     *
3287     * On error, neither w or h will be written.
3288     *
3289     * @ingroup Image
3290     */
3291    EAPI void             elm_image_object_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
3292    /**
3293     * Disable scaling of this object.
3294     *
3295     * @param obj The image object.
3296     * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
3297     * otherwise. Default is @c EINA_FALSE.
3298     *
3299     * This function disables scaling of the elm_image widget through the
3300     * function elm_object_scale_set(). However, this does not affect the widget
3301     * size/resize in any way. For that effect, take a look at
3302     * elm_image_scale_set().
3303     *
3304     * @see elm_image_no_scale_get()
3305     * @see elm_image_scale_set()
3306     * @see elm_object_scale_set()
3307     *
3308     * @ingroup Image
3309     */
3310    EAPI void             elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
3311    /**
3312     * Get whether scaling is disabled on the object.
3313     *
3314     * @param obj The image object
3315     * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
3316     *
3317     * @see elm_image_no_scale_set()
3318     *
3319     * @ingroup Image
3320     */
3321    EAPI Eina_Bool        elm_image_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3322    /**
3323     * Set if the object is (up/down) resizeable.
3324     *
3325     * @param obj The image object
3326     * @param scale_up A bool to set if the object is resizeable up. Default is
3327     * @c EINA_TRUE.
3328     * @param scale_down A bool to set if the object is resizeable down. Default
3329     * is @c EINA_TRUE.
3330     *
3331     * This function limits the image resize ability. If @p scale_up is set to
3332     * @c EINA_FALSE, the object can't have its height or width resized to a value
3333     * higher than the original image size. Same is valid for @p scale_down.
3334     *
3335     * @see elm_image_scale_get()
3336     *
3337     * @ingroup Image
3338     */
3339    EAPI void             elm_image_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
3340    /**
3341     * Get if the object is (up/down) resizeable.
3342     *
3343     * @param obj The image object
3344     * @param scale_up A bool to set if the object is resizeable up
3345     * @param scale_down A bool to set if the object is resizeable down
3346     *
3347     * @see elm_image_scale_set()
3348     *
3349     * @ingroup Image
3350     */
3351    EAPI void             elm_image_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
3352    /**
3353     * Set if the image fill the entire object area when keeping the aspect ratio.
3354     *
3355     * @param obj The image object
3356     * @param fill_outside @c EINA_TRUE if the object is filled outside,
3357     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
3358     *
3359     * When the image should keep its aspect ratio even if resized to another
3360     * aspect ratio, there are two possibilities to resize it: keep the entire
3361     * image inside the limits of height and width of the object (@p fill_outside
3362     * is @c EINA_FALSE) or let the extra width or height go outside of the object,
3363     * and the image will fill the entire object (@p fill_outside is @c EINA_TRUE).
3364     *
3365     * @note This option will have no effect if
3366     * elm_image_aspect_ratio_retained_set() is set to @c EINA_FALSE.
3367     *
3368     * @see elm_image_fill_outside_get()
3369     * @see elm_image_aspect_ratio_retained_set()
3370     *
3371     * @ingroup Image
3372     */
3373    EAPI void             elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
3374    /**
3375     * Get if the object is filled outside
3376     *
3377     * @param obj The image object
3378     * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
3379     *
3380     * @see elm_image_fill_outside_set()
3381     *
3382     * @ingroup Image
3383     */
3384    EAPI Eina_Bool        elm_image_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3385    /**
3386     * Set the prescale size for the image
3387     *
3388     * @param obj The image object
3389     * @param size The prescale size. This value is used for both width and
3390     * height.
3391     *
3392     * This function sets a new size for pixmap representation of the given
3393     * image. It allows the image to be loaded already in the specified size,
3394     * reducing the memory usage and load time when loading a big image with load
3395     * size set to a smaller size.
3396     *
3397     * It's equivalent to the elm_bg_load_size_set() function for bg.
3398     *
3399     * @note this is just a hint, the real size of the pixmap may differ
3400     * depending on the type of image being loaded, being bigger than requested.
3401     *
3402     * @see elm_image_prescale_get()
3403     * @see elm_bg_load_size_set()
3404     *
3405     * @ingroup Image
3406     */
3407    EAPI void             elm_image_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
3408    /**
3409     * Get the prescale size for the image
3410     *
3411     * @param obj The image object
3412     * @return The prescale size
3413     *
3414     * @see elm_image_prescale_set()
3415     *
3416     * @ingroup Image
3417     */
3418    EAPI int              elm_image_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3419    /**
3420     * Set the image orientation.
3421     *
3422     * @param obj The image object
3423     * @param orient The image orientation
3424     * (one of #ELM_IMAGE_ORIENT_NONE, #ELM_IMAGE_ROTATE_90_CW,
3425     *  #ELM_IMAGE_ROTATE_180_CW, #ELM_IMAGE_ROTATE_90_CCW,
3426     *  #ELM_IMAGE_FLIP_HORIZONTAL, #ELM_IMAGE_FLIP_VERTICAL,
3427     *  #ELM_IMAGE_FLIP_TRANSPOSE, #ELM_IMAGE_FLIP_TRANSVERSE).
3428     *  Default is #ELM_IMAGE_ORIENT_NONE.
3429     *
3430     * This function allows to rotate or flip the given image.
3431     *
3432     * @see elm_image_orient_get()
3433     * @see @ref Elm_Image_Orient
3434     *
3435     * @ingroup Image
3436     */
3437    EAPI void             elm_image_orient_set(Evas_Object *obj, Elm_Image_Orient orient) EINA_ARG_NONNULL(1);
3438    /**
3439     * Get the image orientation.
3440     *
3441     * @param obj The image object
3442     * @return The image orientation
3443     * (one of #ELM_IMAGE_ORIENT_NONE, #ELM_IMAGE_ROTATE_90_CW,
3444     *  #ELM_IMAGE_ROTATE_180_CW, #ELM_IMAGE_ROTATE_90_CCW,
3445     *  #ELM_IMAGE_FLIP_HORIZONTAL, #ELM_IMAGE_FLIP_VERTICAL,
3446     *  #ELM_IMAGE_FLIP_TRANSPOSE, #ELM_IMAGE_FLIP_TRANSVERSE)
3447     *
3448     * @see elm_image_orient_set()
3449     * @see @ref Elm_Image_Orient
3450     *
3451     * @ingroup Image
3452     */
3453    EAPI Elm_Image_Orient elm_image_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3454    /**
3455     * Make the image 'editable'.
3456     *
3457     * @param obj Image object.
3458     * @param set Turn on or off editability. Default is @c EINA_FALSE.
3459     *
3460     * This means the image is a valid drag target for drag and drop, and can be
3461     * cut or pasted too.
3462     *
3463     * @ingroup Image
3464     */
3465    EAPI void             elm_image_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
3466    /**
3467     * Make the image 'editable'.
3468     *
3469     * @param obj Image object.
3470     * @return Editability.
3471     *
3472     * This means the image is a valid drag target for drag and drop, and can be
3473     * cut or pasted too.
3474     *
3475     * @ingroup Image
3476     */
3477    EAPI Eina_Bool        elm_image_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3478    /**
3479     * Get the basic Evas_Image object from this object (widget).
3480     *
3481     * @param obj The image object to get the inlined image from
3482     * @return The inlined image object, or NULL if none exists
3483     *
3484     * This function allows one to get the underlying @c Evas_Object of type
3485     * Image from this elementary widget. It can be useful to do things like get
3486     * the pixel data, save the image to a file, etc.
3487     *
3488     * @note Be careful to not manipulate it, as it is under control of
3489     * elementary.
3490     *
3491     * @ingroup Image
3492     */
3493    EAPI Evas_Object     *elm_image_object_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3494    /**
3495     * Set whether the original aspect ratio of the image should be kept on resize.
3496     *
3497     * @param obj The image object.
3498     * @param retained @c EINA_TRUE if the image should retain the aspect,
3499     * @c EINA_FALSE otherwise.
3500     *
3501     * The original aspect ratio (width / height) of the image is usually
3502     * distorted to match the object's size. Enabling this option will retain
3503     * this original aspect, and the way that the image is fit into the object's
3504     * area depends on the option set by elm_image_fill_outside_set().
3505     *
3506     * @see elm_image_aspect_ratio_retained_get()
3507     * @see elm_image_fill_outside_set()
3508     *
3509     * @ingroup Image
3510     */
3511    EAPI void             elm_image_aspect_ratio_retained_set(Evas_Object *obj, Eina_Bool retained) EINA_ARG_NONNULL(1);
3512    /**
3513     * Get if the object retains the original aspect ratio.
3514     *
3515     * @param obj The image object.
3516     * @return @c EINA_TRUE if the object keeps the original aspect, @c EINA_FALSE
3517     * otherwise.
3518     *
3519     * @ingroup Image
3520     */
3521    EAPI Eina_Bool        elm_image_aspect_ratio_retained_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3522
3523    /* smart callbacks called:
3524     * "clicked" - the user clicked the image
3525     */
3526
3527    /**
3528     * @}
3529     */
3530
3531    /* glview */
3532    typedef void (*Elm_GLView_Func_Cb)(Evas_Object *obj);
3533
3534    typedef enum _Elm_GLView_Mode
3535      {
3536         ELM_GLVIEW_ALPHA   = 1,
3537         ELM_GLVIEW_DEPTH   = 2,
3538         ELM_GLVIEW_STENCIL = 4
3539      } Elm_GLView_Mode;
3540
3541    /**
3542     * Defines a policy for the glview resizing.
3543     *
3544     * @note Default is ELM_GLVIEW_RESIZE_POLICY_RECREATE
3545     */
3546    typedef enum _Elm_GLView_Resize_Policy
3547      {
3548         ELM_GLVIEW_RESIZE_POLICY_RECREATE = 1,      /**< Resize the internal surface along with the image */
3549         ELM_GLVIEW_RESIZE_POLICY_SCALE    = 2       /**< Only reize the internal image and not the surface */
3550      } Elm_GLView_Resize_Policy;
3551
3552    typedef enum _Elm_GLView_Render_Policy
3553      {
3554         ELM_GLVIEW_RENDER_POLICY_ON_DEMAND = 1,     /**< Render only when there is a need for redrawing */
3555         ELM_GLVIEW_RENDER_POLICY_ALWAYS    = 2      /**< Render always even when it is not visible */
3556      } Elm_GLView_Render_Policy;
3557
3558
3559    EAPI Evas_Object     *elm_glview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
3560    EAPI void             elm_glview_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
3561    EAPI void             elm_glview_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
3562    EAPI Evas_GL_API     *elm_glview_gl_api_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3563    EAPI Eina_Bool        elm_glview_mode_set(Evas_Object *obj, Elm_GLView_Mode mode) EINA_ARG_NONNULL(1);
3564    EAPI Eina_Bool        elm_glview_resize_policy_set(Evas_Object *obj, Elm_GLView_Resize_Policy policy) EINA_ARG_NONNULL(1);
3565    EAPI Eina_Bool        elm_glview_render_policy_set(Evas_Object *obj, Elm_GLView_Render_Policy policy) EINA_ARG_NONNULL(1);
3566    EAPI void             elm_glview_init_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
3567    EAPI void             elm_glview_del_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
3568    EAPI void             elm_glview_resize_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
3569    EAPI void             elm_glview_render_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
3570    EAPI void             elm_glview_changed_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
3571
3572    /* box */
3573    /**
3574     * @defgroup Box Box
3575     *
3576     * @image html img/widget/box/preview-00.png
3577     * @image latex img/widget/box/preview-00.eps width=\textwidth
3578     *
3579     * @image html img/box.png
3580     * @image latex img/box.eps width=\textwidth
3581     *
3582     * A box arranges objects in a linear fashion, governed by a layout function
3583     * that defines the details of this arrangement.
3584     *
3585     * By default, the box will use an internal function to set the layout to
3586     * a single row, either vertical or horizontal. This layout is affected
3587     * by a number of parameters, such as the homogeneous flag set by
3588     * elm_box_homogeneous_set(), the values given by elm_box_padding_set() and
3589     * elm_box_align_set() and the hints set to each object in the box.
3590     *
3591     * For this default layout, it's possible to change the orientation with
3592     * elm_box_horizontal_set(). The box will start in the vertical orientation,
3593     * placing its elements ordered from top to bottom. When horizontal is set,
3594     * the order will go from left to right. If the box is set to be
3595     * homogeneous, every object in it will be assigned the same space, that
3596     * of the largest object. Padding can be used to set some spacing between
3597     * the cell given to each object. The alignment of the box, set with
3598     * elm_box_align_set(), determines how the bounding box of all the elements
3599     * will be placed within the space given to the box widget itself.
3600     *
3601     * The size hints of each object also affect how they are placed and sized
3602     * within the box. evas_object_size_hint_min_set() will give the minimum
3603     * size the object can have, and the box will use it as the basis for all
3604     * latter calculations. Elementary widgets set their own minimum size as
3605     * needed, so there's rarely any need to use it manually.
3606     *
3607     * evas_object_size_hint_weight_set(), when not in homogeneous mode, is
3608     * used to tell whether the object will be allocated the minimum size it
3609     * needs or if the space given to it should be expanded. It's important
3610     * to realize that expanding the size given to the object is not the same
3611     * thing as resizing the object. It could very well end being a small
3612     * widget floating in a much larger empty space. If not set, the weight
3613     * for objects will normally be 0.0 for both axis, meaning the widget will
3614     * not be expanded. To take as much space possible, set the weight to
3615     * EVAS_HINT_EXPAND (defined to 1.0) for the desired axis to expand.
3616     *
3617     * Besides how much space each object is allocated, it's possible to control
3618     * how the widget will be placed within that space using
3619     * evas_object_size_hint_align_set(). By default, this value will be 0.5
3620     * for both axis, meaning the object will be centered, but any value from
3621     * 0.0 (left or top, for the @c x and @c y axis, respectively) to 1.0
3622     * (right or bottom) can be used. The special value EVAS_HINT_FILL, which
3623     * is -1.0, means the object will be resized to fill the entire space it
3624     * was allocated.
3625     *
3626     * In addition, customized functions to define the layout can be set, which
3627     * allow the application developer to organize the objects within the box
3628     * in any number of ways.
3629     *
3630     * The special elm_box_layout_transition() function can be used
3631     * to switch from one layout to another, animating the motion of the
3632     * children of the box.
3633     *
3634     * @note Objects should not be added to box objects using _add() calls.
3635     *
3636     * Some examples on how to use boxes follow:
3637     * @li @ref box_example_01
3638     * @li @ref box_example_02
3639     *
3640     * @{
3641     */
3642    /**
3643     * @typedef Elm_Box_Transition
3644     *
3645     * Opaque handler containing the parameters to perform an animated
3646     * transition of the layout the box uses.
3647     *
3648     * @see elm_box_transition_new()
3649     * @see elm_box_layout_set()
3650     * @see elm_box_layout_transition()
3651     */
3652    typedef struct _Elm_Box_Transition Elm_Box_Transition;
3653
3654    /**
3655     * Add a new box to the parent
3656     *
3657     * By default, the box will be in vertical mode and non-homogeneous.
3658     *
3659     * @param parent The parent object
3660     * @return The new object or NULL if it cannot be created
3661     */
3662    EAPI Evas_Object        *elm_box_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
3663    /**
3664     * Set the horizontal orientation
3665     *
3666     * By default, box object arranges their contents vertically from top to
3667     * bottom.
3668     * By calling this function with @p horizontal as EINA_TRUE, the box will
3669     * become horizontal, arranging contents from left to right.
3670     *
3671     * @note This flag is ignored if a custom layout function is set.
3672     *
3673     * @param obj The box object
3674     * @param horizontal The horizontal flag (EINA_TRUE = horizontal,
3675     * EINA_FALSE = vertical)
3676     */
3677    EAPI void                elm_box_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
3678    /**
3679     * Get the horizontal orientation
3680     *
3681     * @param obj The box object
3682     * @return EINA_TRUE if the box is set to horizontal mode, EINA_FALSE otherwise
3683     */
3684    EAPI Eina_Bool           elm_box_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3685    /**
3686     * Set the box to arrange its children homogeneously
3687     *
3688     * If enabled, homogeneous layout makes all items the same size, according
3689     * to the size of the largest of its children.
3690     *
3691     * @note This flag is ignored if a custom layout function is set.
3692     *
3693     * @param obj The box object
3694     * @param homogeneous The homogeneous flag
3695     */
3696    EAPI void                elm_box_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
3697    /**
3698     * Get whether the box is using homogeneous mode or not
3699     *
3700     * @param obj The box object
3701     * @return EINA_TRUE if it's homogeneous, EINA_FALSE otherwise
3702     */
3703    EAPI Eina_Bool           elm_box_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3704    EINA_DEPRECATED EAPI void elm_box_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
3705    EINA_DEPRECATED EAPI Eina_Bool elm_box_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3706    /**
3707     * Add an object to the beginning of the pack list
3708     *
3709     * Pack @p subobj into the box @p obj, placing it first in the list of
3710     * children objects. The actual position the object will get on screen
3711     * depends on the layout used. If no custom layout is set, it will be at
3712     * the top or left, depending if the box is vertical or horizontal,
3713     * respectively.
3714     *
3715     * @param obj The box object
3716     * @param subobj The object to add to the box
3717     *
3718     * @see elm_box_pack_end()
3719     * @see elm_box_pack_before()
3720     * @see elm_box_pack_after()
3721     * @see elm_box_unpack()
3722     * @see elm_box_unpack_all()
3723     * @see elm_box_clear()
3724     */
3725    EAPI void                elm_box_pack_start(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
3726    /**
3727     * Add an object at the end of the pack list
3728     *
3729     * Pack @p subobj into the box @p obj, placing it last in the list of
3730     * children objects. The actual position the object will get on screen
3731     * depends on the layout used. If no custom layout is set, it will be at
3732     * the bottom or right, depending if the box is vertical or horizontal,
3733     * respectively.
3734     *
3735     * @param obj The box object
3736     * @param subobj The object to add to the box
3737     *
3738     * @see elm_box_pack_start()
3739     * @see elm_box_pack_before()
3740     * @see elm_box_pack_after()
3741     * @see elm_box_unpack()
3742     * @see elm_box_unpack_all()
3743     * @see elm_box_clear()
3744     */
3745    EAPI void                elm_box_pack_end(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
3746    /**
3747     * Adds an object to the box before the indicated object
3748     *
3749     * This will add the @p subobj to the box indicated before the object
3750     * indicated with @p before. If @p before is not already in the box, results
3751     * are undefined. Before means either to the left of the indicated object or
3752     * above it depending on orientation.
3753     *
3754     * @param obj The box object
3755     * @param subobj The object to add to the box
3756     * @param before The object before which to add it
3757     *
3758     * @see elm_box_pack_start()
3759     * @see elm_box_pack_end()
3760     * @see elm_box_pack_after()
3761     * @see elm_box_unpack()
3762     * @see elm_box_unpack_all()
3763     * @see elm_box_clear()
3764     */
3765    EAPI void                elm_box_pack_before(Evas_Object *obj, Evas_Object *subobj, Evas_Object *before) EINA_ARG_NONNULL(1);
3766    /**
3767     * Adds an object to the box after the indicated object
3768     *
3769     * This will add the @p subobj to the box indicated after the object
3770     * indicated with @p after. If @p after is not already in the box, results
3771     * are undefined. After means either to the right of the indicated object or
3772     * below it depending on orientation.
3773     *
3774     * @param obj The box object
3775     * @param subobj The object to add to the box
3776     * @param after The object after which to add it
3777     *
3778     * @see elm_box_pack_start()
3779     * @see elm_box_pack_end()
3780     * @see elm_box_pack_before()
3781     * @see elm_box_unpack()
3782     * @see elm_box_unpack_all()
3783     * @see elm_box_clear()
3784     */
3785    EAPI void                elm_box_pack_after(Evas_Object *obj, Evas_Object *subobj, Evas_Object *after) EINA_ARG_NONNULL(1);
3786    /**
3787     * Clear the box of all children
3788     *
3789     * Remove all the elements contained by the box, deleting the respective
3790     * objects.
3791     *
3792     * @param obj The box object
3793     *
3794     * @see elm_box_unpack()
3795     * @see elm_box_unpack_all()
3796     */
3797    EAPI void                elm_box_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
3798    /**
3799     * Unpack a box item
3800     *
3801     * Remove the object given by @p subobj from the box @p obj without
3802     * deleting it.
3803     *
3804     * @param obj The box object
3805     *
3806     * @see elm_box_unpack_all()
3807     * @see elm_box_clear()
3808     */
3809    EAPI void                elm_box_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
3810    /**
3811     * Remove all items from the box, without deleting them
3812     *
3813     * Clear the box from all children, but don't delete the respective objects.
3814     * If no other references of the box children exist, the objects will never
3815     * be deleted, and thus the application will leak the memory. Make sure
3816     * when using this function that you hold a reference to all the objects
3817     * in the box @p obj.
3818     *
3819     * @param obj The box object
3820     *
3821     * @see elm_box_clear()
3822     * @see elm_box_unpack()
3823     */
3824    EAPI void                elm_box_unpack_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
3825    /**
3826     * Retrieve a list of the objects packed into the box
3827     *
3828     * Returns a new @c Eina_List with a pointer to @c Evas_Object in its nodes.
3829     * The order of the list corresponds to the packing order the box uses.
3830     *
3831     * You must free this list with eina_list_free() once you are done with it.
3832     *
3833     * @param obj The box object
3834     */
3835    EAPI const Eina_List    *elm_box_children_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3836    /**
3837     * Set the space (padding) between the box's elements.
3838     *
3839     * Extra space in pixels that will be added between a box child and its
3840     * neighbors after its containing cell has been calculated. This padding
3841     * is set for all elements in the box, besides any possible padding that
3842     * individual elements may have through their size hints.
3843     *
3844     * @param obj The box object
3845     * @param horizontal The horizontal space between elements
3846     * @param vertical The vertical space between elements
3847     */
3848    EAPI void                elm_box_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
3849    /**
3850     * Get the space (padding) between the box's elements.
3851     *
3852     * @param obj The box object
3853     * @param horizontal The horizontal space between elements
3854     * @param vertical The vertical space between elements
3855     *
3856     * @see elm_box_padding_set()
3857     */
3858    EAPI void                elm_box_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
3859    /**
3860     * Set the alignment of the whole bouding box of contents.
3861     *
3862     * Sets how the bounding box containing all the elements of the box, after
3863     * their sizes and position has been calculated, will be aligned within
3864     * the space given for the whole box widget.
3865     *
3866     * @param obj The box object
3867     * @param horizontal The horizontal alignment of elements
3868     * @param vertical The vertical alignment of elements
3869     */
3870    EAPI void                elm_box_align_set(Evas_Object *obj, double horizontal, double vertical) EINA_ARG_NONNULL(1);
3871    /**
3872     * Get the alignment of the whole bouding box of contents.
3873     *
3874     * @param obj The box object
3875     * @param horizontal The horizontal alignment of elements
3876     * @param vertical The vertical alignment of elements
3877     *
3878     * @see elm_box_align_set()
3879     */
3880    EAPI void                elm_box_align_get(const Evas_Object *obj, double *horizontal, double *vertical) EINA_ARG_NONNULL(1);
3881
3882    /**
3883     * Set the layout defining function to be used by the box
3884     *
3885     * Whenever anything changes that requires the box in @p obj to recalculate
3886     * the size and position of its elements, the function @p cb will be called
3887     * to determine what the layout of the children will be.
3888     *
3889     * Once a custom function is set, everything about the children layout
3890     * is defined by it. The flags set by elm_box_horizontal_set() and
3891     * elm_box_homogeneous_set() no longer have any meaning, and the values
3892     * given by elm_box_padding_set() and elm_box_align_set() are up to this
3893     * layout function to decide if they are used and how. These last two
3894     * will be found in the @c priv parameter, of type @c Evas_Object_Box_Data,
3895     * passed to @p cb. The @c Evas_Object the function receives is not the
3896     * Elementary widget, but the internal Evas Box it uses, so none of the
3897     * functions described here can be used on it.
3898     *
3899     * Any of the layout functions in @c Evas can be used here, as well as the
3900     * special elm_box_layout_transition().
3901     *
3902     * The final @p data argument received by @p cb is the same @p data passed
3903     * here, and the @p free_data function will be called to free it
3904     * whenever the box is destroyed or another layout function is set.
3905     *
3906     * Setting @p cb to NULL will revert back to the default layout function.
3907     *
3908     * @param obj The box object
3909     * @param cb The callback function used for layout
3910     * @param data Data that will be passed to layout function
3911     * @param free_data Function called to free @p data
3912     *
3913     * @see elm_box_layout_transition()
3914     */
3915    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);
3916    /**
3917     * Special layout function that animates the transition from one layout to another
3918     *
3919     * Normally, when switching the layout function for a box, this will be
3920     * reflected immediately on screen on the next render, but it's also
3921     * possible to do this through an animated transition.
3922     *
3923     * This is done by creating an ::Elm_Box_Transition and setting the box
3924     * layout to this function.
3925     *
3926     * For example:
3927     * @code
3928     * Elm_Box_Transition *t = elm_box_transition_new(1.0,
3929     *                            evas_object_box_layout_vertical, // start
3930     *                            NULL, // data for initial layout
3931     *                            NULL, // free function for initial data
3932     *                            evas_object_box_layout_horizontal, // end
3933     *                            NULL, // data for final layout
3934     *                            NULL, // free function for final data
3935     *                            anim_end, // will be called when animation ends
3936     *                            NULL); // data for anim_end function\
3937     * elm_box_layout_set(box, elm_box_layout_transition, t,
3938     *                    elm_box_transition_free);
3939     * @endcode
3940     *
3941     * @note This function can only be used with elm_box_layout_set(). Calling
3942     * it directly will not have the expected results.
3943     *
3944     * @see elm_box_transition_new
3945     * @see elm_box_transition_free
3946     * @see elm_box_layout_set
3947     */
3948    EAPI void                elm_box_layout_transition(Evas_Object *obj, Evas_Object_Box_Data *priv, void *data);
3949    /**
3950     * Create a new ::Elm_Box_Transition to animate the switch of layouts
3951     *
3952     * If you want to animate the change from one layout to another, you need
3953     * to set the layout function of the box to elm_box_layout_transition(),
3954     * passing as user data to it an instance of ::Elm_Box_Transition with the
3955     * necessary information to perform this animation. The free function to
3956     * set for the layout is elm_box_transition_free().
3957     *
3958     * The parameters to create an ::Elm_Box_Transition sum up to how long
3959     * will it be, in seconds, a layout function to describe the initial point,
3960     * another for the final position of the children and one function to be
3961     * called when the whole animation ends. This last function is useful to
3962     * set the definitive layout for the box, usually the same as the end
3963     * layout for the animation, but could be used to start another transition.
3964     *
3965     * @param start_layout The layout function that will be used to start the animation
3966     * @param start_layout_data The data to be passed the @p start_layout function
3967     * @param start_layout_free_data Function to free @p start_layout_data
3968     * @param end_layout The layout function that will be used to end the animation
3969     * @param end_layout_free_data The data to be passed the @p end_layout function
3970     * @param end_layout_free_data Function to free @p end_layout_data
3971     * @param transition_end_cb Callback function called when animation ends
3972     * @param transition_end_data Data to be passed to @p transition_end_cb
3973     * @return An instance of ::Elm_Box_Transition
3974     *
3975     * @see elm_box_transition_new
3976     * @see elm_box_layout_transition
3977     */
3978    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);
3979    /**
3980     * Free a Elm_Box_Transition instance created with elm_box_transition_new().
3981     *
3982     * This function is mostly useful as the @c free_data parameter in
3983     * elm_box_layout_set() when elm_box_layout_transition().
3984     *
3985     * @param data The Elm_Box_Transition instance to be freed.
3986     *
3987     * @see elm_box_transition_new
3988     * @see elm_box_layout_transition
3989     */
3990    EAPI void                elm_box_transition_free(void *data);
3991    /**
3992     * @}
3993     */
3994
3995    /* button */
3996    /**
3997     * @defgroup Button Button
3998     *
3999     * @image html img/widget/button/preview-00.png
4000     * @image html img/widget/button/preview-01.png
4001     * @image html img/widget/button/preview-02.png
4002     *
4003     * This is a push-button. Press it and run some function. It can contain
4004     * a simple label and icon object and it also has an autorepeat feature.
4005     *
4006     * This widgets emits the following signals:
4007     * @li "clicked": the user clicked the button (press/release).
4008     * @li "repeated": the user pressed the button without releasing it.
4009     * @li "pressed": button was pressed.
4010     * @li "unpressed": button was released after being pressed.
4011     * In all three cases, the @c event parameter of the callback will be
4012     * @c NULL.
4013     *
4014     * Also, defined in the default theme, the button has the following styles
4015     * available:
4016     * @li default: a normal button.
4017     * @li anchor: Like default, but the button fades away when the mouse is not
4018     * over it, leaving only the text or icon.
4019     * @li hoversel_vertical: Internally used by @ref Hoversel to give a
4020     * continuous look across its options.
4021     * @li hoversel_vertical_entry: Another internal for @ref Hoversel.
4022     *
4023     * Follow through a complete example @ref button_example_01 "here".
4024     * @{
4025     */
4026    /**
4027     * Add a new button to the parent's canvas
4028     *
4029     * @param parent The parent object
4030     * @return The new object or NULL if it cannot be created
4031     */
4032    EAPI Evas_Object *elm_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4033    /**
4034     * Set the label used in the button
4035     *
4036     * The passed @p label can be NULL to clean any existing text in it and
4037     * leave the button as an icon only object.
4038     *
4039     * @param obj The button object
4040     * @param label The text will be written on the button
4041     * @deprecated use elm_object_text_set() instead.
4042     */
4043    EINA_DEPRECATED EAPI void         elm_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
4044    /**
4045     * Get the label set for the button
4046     *
4047     * The string returned is an internal pointer and should not be freed or
4048     * altered. It will also become invalid when the button is destroyed.
4049     * The string returned, if not NULL, is a stringshare, so if you need to
4050     * keep it around even after the button is destroyed, you can use
4051     * eina_stringshare_ref().
4052     *
4053     * @param obj The button object
4054     * @return The text set to the label, or NULL if nothing is set
4055     * @deprecated use elm_object_text_set() instead.
4056     */
4057    EINA_DEPRECATED EAPI const char  *elm_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4058    /**
4059     * Set the icon used for the button
4060     *
4061     * Setting a new icon will delete any other that was previously set, making
4062     * any reference to them invalid. If you need to maintain the previous
4063     * object alive, unset it first with elm_button_icon_unset().
4064     *
4065     * @param obj The button object
4066     * @param icon The icon object for the button
4067     */
4068    EAPI void         elm_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
4069    /**
4070     * Get the icon used for the button
4071     *
4072     * Return the icon object which is set for this widget. If the button is
4073     * destroyed or another icon is set, the returned object will be deleted
4074     * and any reference to it will be invalid.
4075     *
4076     * @param obj The button object
4077     * @return The icon object that is being used
4078     *
4079     * @see elm_button_icon_unset()
4080     */
4081    EAPI Evas_Object *elm_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4082    /**
4083     * Remove the icon set without deleting it and return the object
4084     *
4085     * This function drops the reference the button holds of the icon object
4086     * and returns this last object. It is used in case you want to remove any
4087     * icon, or set another one, without deleting the actual object. The button
4088     * will be left without an icon set.
4089     *
4090     * @param obj The button object
4091     * @return The icon object that was being used
4092     */
4093    EAPI Evas_Object *elm_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4094    /**
4095     * Turn on/off the autorepeat event generated when the button is kept pressed
4096     *
4097     * When off, no autorepeat is performed and buttons emit a normal @c clicked
4098     * signal when they are clicked.
4099     *
4100     * When on, keeping a button pressed will continuously emit a @c repeated
4101     * signal until the button is released. The time it takes until it starts
4102     * emitting the signal is given by
4103     * elm_button_autorepeat_initial_timeout_set(), and the time between each
4104     * new emission by elm_button_autorepeat_gap_timeout_set().
4105     *
4106     * @param obj The button object
4107     * @param on  A bool to turn on/off the event
4108     */
4109    EAPI void         elm_button_autorepeat_set(Evas_Object *obj, Eina_Bool on) EINA_ARG_NONNULL(1);
4110    /**
4111     * Get whether the autorepeat feature is enabled
4112     *
4113     * @param obj The button object
4114     * @return EINA_TRUE if autorepeat is on, EINA_FALSE otherwise
4115     *
4116     * @see elm_button_autorepeat_set()
4117     */
4118    EAPI Eina_Bool    elm_button_autorepeat_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4119    /**
4120     * Set the initial timeout before the autorepeat event is generated
4121     *
4122     * Sets the timeout, in seconds, since the button is pressed until the
4123     * first @c repeated signal is emitted. If @p t is 0.0 or less, there
4124     * won't be any delay and the even will be fired the moment the button is
4125     * pressed.
4126     *
4127     * @param obj The button object
4128     * @param t   Timeout in seconds
4129     *
4130     * @see elm_button_autorepeat_set()
4131     * @see elm_button_autorepeat_gap_timeout_set()
4132     */
4133    EAPI void         elm_button_autorepeat_initial_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
4134    /**
4135     * Get the initial timeout before the autorepeat event is generated
4136     *
4137     * @param obj The button object
4138     * @return Timeout in seconds
4139     *
4140     * @see elm_button_autorepeat_initial_timeout_set()
4141     */
4142    EAPI double       elm_button_autorepeat_initial_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4143    /**
4144     * Set the interval between each generated autorepeat event
4145     *
4146     * After the first @c repeated event is fired, all subsequent ones will
4147     * follow after a delay of @p t seconds for each.
4148     *
4149     * @param obj The button object
4150     * @param t   Interval in seconds
4151     *
4152     * @see elm_button_autorepeat_initial_timeout_set()
4153     */
4154    EAPI void         elm_button_autorepeat_gap_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
4155    /**
4156     * Get the interval between each generated autorepeat event
4157     *
4158     * @param obj The button object
4159     * @return Interval in seconds
4160     */
4161    EAPI double       elm_button_autorepeat_gap_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4162    /**
4163     * @}
4164     */
4165
4166    /**
4167     * @defgroup File_Selector_Button File Selector Button
4168     *
4169     * @image html img/widget/fileselector_button/preview-00.png
4170     * @image html img/widget/fileselector_button/preview-01.png
4171     * @image html img/widget/fileselector_button/preview-02.png
4172     *
4173     * This is a button that, when clicked, creates an Elementary
4174     * window (or inner window) <b> with a @ref Fileselector "file
4175     * selector widget" within</b>. When a file is chosen, the (inner)
4176     * window is closed and the button emits a signal having the
4177     * selected file as it's @c event_info.
4178     *
4179     * This widget encapsulates operations on its internal file
4180     * selector on its own API. There is less control over its file
4181     * selector than that one would have instatiating one directly.
4182     *
4183     * The following styles are available for this button:
4184     * @li @c "default"
4185     * @li @c "anchor"
4186     * @li @c "hoversel_vertical"
4187     * @li @c "hoversel_vertical_entry"
4188     *
4189     * Smart callbacks one can register to:
4190     * - @c "file,chosen" - the user has selected a path, whose string
4191     *   pointer comes as the @c event_info data (a stringshared
4192     *   string)
4193     *
4194     * Here is an example on its usage:
4195     * @li @ref fileselector_button_example
4196     *
4197     * @see @ref File_Selector_Entry for a similar widget.
4198     * @{
4199     */
4200
4201    /**
4202     * Add a new file selector button widget to the given parent
4203     * Elementary (container) object
4204     *
4205     * @param parent The parent object
4206     * @return a new file selector button widget handle or @c NULL, on
4207     * errors
4208     */
4209    EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4210
4211    /**
4212     * Set the label for a given file selector button widget
4213     *
4214     * @param obj The file selector button widget
4215     * @param label The text label to be displayed on @p obj
4216     *
4217     * @deprecated use elm_object_text_set() instead.
4218     */
4219    EINA_DEPRECATED EAPI void         elm_fileselector_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
4220
4221    /**
4222     * Get the label set for a given file selector button widget
4223     *
4224     * @param obj The file selector button widget
4225     * @return The button label
4226     *
4227     * @deprecated use elm_object_text_set() instead.
4228     */
4229    EINA_DEPRECATED EAPI const char  *elm_fileselector_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4230
4231    /**
4232     * Set the icon on a given file selector button widget
4233     *
4234     * @param obj The file selector button widget
4235     * @param icon The icon object for the button
4236     *
4237     * Once the icon object is set, a previously set one will be
4238     * deleted. If you want to keep the latter, use the
4239     * elm_fileselector_button_icon_unset() function.
4240     *
4241     * @see elm_fileselector_button_icon_get()
4242     */
4243    EAPI void         elm_fileselector_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
4244
4245    /**
4246     * Get the icon set for a given file selector button widget
4247     *
4248     * @param obj The file selector button widget
4249     * @return The icon object currently set on @p obj or @c NULL, if
4250     * none is
4251     *
4252     * @see elm_fileselector_button_icon_set()
4253     */
4254    EAPI Evas_Object *elm_fileselector_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4255
4256    /**
4257     * Unset the icon used in a given file selector button widget
4258     *
4259     * @param obj The file selector button widget
4260     * @return The icon object that was being used on @p obj or @c
4261     * NULL, on errors
4262     *
4263     * Unparent and return the icon object which was set for this
4264     * widget.
4265     *
4266     * @see elm_fileselector_button_icon_set()
4267     */
4268    EAPI Evas_Object *elm_fileselector_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4269
4270    /**
4271     * Set the title for a given file selector button widget's window
4272     *
4273     * @param obj The file selector button widget
4274     * @param title The title string
4275     *
4276     * This will change the window's title, when the file selector pops
4277     * out after a click on the button. Those windows have the default
4278     * (unlocalized) value of @c "Select a file" as titles.
4279     *
4280     * @note It will only take any effect if the file selector
4281     * button widget is @b not under "inwin mode".
4282     *
4283     * @see elm_fileselector_button_window_title_get()
4284     */
4285    EAPI void         elm_fileselector_button_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
4286
4287    /**
4288     * Get the title set for a given file selector button widget's
4289     * window
4290     *
4291     * @param obj The file selector button widget
4292     * @return Title of the file selector button's window
4293     *
4294     * @see elm_fileselector_button_window_title_get() for more details
4295     */
4296    EAPI const char  *elm_fileselector_button_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4297
4298    /**
4299     * Set the size of a given file selector button widget's window,
4300     * holding the file selector itself.
4301     *
4302     * @param obj The file selector button widget
4303     * @param width The window's width
4304     * @param height The window's height
4305     *
4306     * @note it will only take any effect if the file selector button
4307     * widget is @b not under "inwin mode". The default size for the
4308     * window (when applicable) is 400x400 pixels.
4309     *
4310     * @see elm_fileselector_button_window_size_get()
4311     */
4312    EAPI void         elm_fileselector_button_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
4313
4314    /**
4315     * Get the size of a given file selector button widget's window,
4316     * holding the file selector itself.
4317     *
4318     * @param obj The file selector button widget
4319     * @param width Pointer into which to store the width value
4320     * @param height Pointer into which to store the height value
4321     *
4322     * @note Use @c NULL pointers on the size values you're not
4323     * interested in: they'll be ignored by the function.
4324     *
4325     * @see elm_fileselector_button_window_size_set(), for more details
4326     */
4327    EAPI void         elm_fileselector_button_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
4328
4329    /**
4330     * Set the initial file system path for a given file selector
4331     * button widget
4332     *
4333     * @param obj The file selector button widget
4334     * @param path The path string
4335     *
4336     * It must be a <b>directory</b> path, which will have the contents
4337     * displayed initially in the file selector's view, when invoked
4338     * from @p obj. The default initial path is the @c "HOME"
4339     * environment variable's value.
4340     *
4341     * @see elm_fileselector_button_path_get()
4342     */
4343    EAPI void         elm_fileselector_button_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
4344
4345    /**
4346     * Get the initial file system path set for a given file selector
4347     * button widget
4348     *
4349     * @param obj The file selector button widget
4350     * @return path The path string
4351     *
4352     * @see elm_fileselector_button_path_set() for more details
4353     */
4354    EAPI const char  *elm_fileselector_button_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4355
4356    /**
4357     * Enable/disable a tree view in the given file selector button
4358     * widget's internal file selector
4359     *
4360     * @param obj The file selector button widget
4361     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
4362     * disable
4363     *
4364     * This has the same effect as elm_fileselector_expandable_set(),
4365     * but now applied to a file selector button's internal file
4366     * selector.
4367     *
4368     * @note There's no way to put a file selector button's internal
4369     * file selector in "grid mode", as one may do with "pure" file
4370     * selectors.
4371     *
4372     * @see elm_fileselector_expandable_get()
4373     */
4374    EAPI void         elm_fileselector_button_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
4375
4376    /**
4377     * Get whether tree view is enabled for the given file selector
4378     * button widget's internal file selector
4379     *
4380     * @param obj The file selector button widget
4381     * @return @c EINA_TRUE if @p obj widget's internal file selector
4382     * is in tree view, @c EINA_FALSE otherwise (and or errors)
4383     *
4384     * @see elm_fileselector_expandable_set() for more details
4385     */
4386    EAPI Eina_Bool    elm_fileselector_button_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4387
4388    /**
4389     * Set whether a given file selector button widget's internal file
4390     * selector is to display folders only or the directory contents,
4391     * as well.
4392     *
4393     * @param obj The file selector button widget
4394     * @param only @c EINA_TRUE to make @p obj widget's internal file
4395     * selector only display directories, @c EINA_FALSE to make files
4396     * to be displayed in it too
4397     *
4398     * This has the same effect as elm_fileselector_folder_only_set(),
4399     * but now applied to a file selector button's internal file
4400     * selector.
4401     *
4402     * @see elm_fileselector_folder_only_get()
4403     */
4404    EAPI void         elm_fileselector_button_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
4405
4406    /**
4407     * Get whether a given file selector button widget's internal file
4408     * selector is displaying folders only or the directory contents,
4409     * as well.
4410     *
4411     * @param obj The file selector button widget
4412     * @return @c EINA_TRUE if @p obj widget's internal file
4413     * selector is only displaying directories, @c EINA_FALSE if files
4414     * are being displayed in it too (and on errors)
4415     *
4416     * @see elm_fileselector_button_folder_only_set() for more details
4417     */
4418    EAPI Eina_Bool    elm_fileselector_button_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4419
4420    /**
4421     * Enable/disable the file name entry box where the user can type
4422     * in a name for a file, in a given file selector button widget's
4423     * internal file selector.
4424     *
4425     * @param obj The file selector button widget
4426     * @param is_save @c EINA_TRUE to make @p obj widget's internal
4427     * file selector a "saving dialog", @c EINA_FALSE otherwise
4428     *
4429     * This has the same effect as elm_fileselector_is_save_set(),
4430     * but now applied to a file selector button's internal file
4431     * selector.
4432     *
4433     * @see elm_fileselector_is_save_get()
4434     */
4435    EAPI void         elm_fileselector_button_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
4436
4437    /**
4438     * Get whether the given file selector button widget's internal
4439     * file selector is in "saving dialog" mode
4440     *
4441     * @param obj The file selector button widget
4442     * @return @c EINA_TRUE, if @p obj widget's internal file selector
4443     * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
4444     * errors)
4445     *
4446     * @see elm_fileselector_button_is_save_set() for more details
4447     */
4448    EAPI Eina_Bool    elm_fileselector_button_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4449
4450    /**
4451     * Set whether a given file selector button widget's internal file
4452     * selector will raise an Elementary "inner window", instead of a
4453     * dedicated Elementary window. By default, it won't.
4454     *
4455     * @param obj The file selector button widget
4456     * @param value @c EINA_TRUE to make it use an inner window, @c
4457     * EINA_TRUE to make it use a dedicated window
4458     *
4459     * @see elm_win_inwin_add() for more information on inner windows
4460     * @see elm_fileselector_button_inwin_mode_get()
4461     */
4462    EAPI void         elm_fileselector_button_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
4463
4464    /**
4465     * Get whether a given file selector button widget's internal file
4466     * selector will raise an Elementary "inner window", instead of a
4467     * dedicated Elementary window.
4468     *
4469     * @param obj The file selector button widget
4470     * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
4471     * if it will use a dedicated window
4472     *
4473     * @see elm_fileselector_button_inwin_mode_set() for more details
4474     */
4475    EAPI Eina_Bool    elm_fileselector_button_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4476
4477    /**
4478     * @}
4479     */
4480
4481     /**
4482     * @defgroup File_Selector_Entry File Selector Entry
4483     *
4484     * @image html img/widget/fileselector_entry/preview-00.png
4485     * @image latex img/widget/fileselector_entry/preview-00.eps
4486     *
4487     * This is an entry made to be filled with or display a <b>file
4488     * system path string</b>. Besides the entry itself, the widget has
4489     * a @ref File_Selector_Button "file selector button" on its side,
4490     * which will raise an internal @ref Fileselector "file selector widget",
4491     * when clicked, for path selection aided by file system
4492     * navigation.
4493     *
4494     * This file selector may appear in an Elementary window or in an
4495     * inner window. When a file is chosen from it, the (inner) window
4496     * is closed and the selected file's path string is exposed both as
4497     * an smart event and as the new text on the entry.
4498     *
4499     * This widget encapsulates operations on its internal file
4500     * selector on its own API. There is less control over its file
4501     * selector than that one would have instatiating one directly.
4502     *
4503     * Smart callbacks one can register to:
4504     * - @c "changed" - The text within the entry was changed
4505     * - @c "activated" - The entry has had editing finished and
4506     *   changes are to be "committed"
4507     * - @c "press" - The entry has been clicked
4508     * - @c "longpressed" - The entry has been clicked (and held) for a
4509     *   couple seconds
4510     * - @c "clicked" - The entry has been clicked
4511     * - @c "clicked,double" - The entry has been double clicked
4512     * - @c "focused" - The entry has received focus
4513     * - @c "unfocused" - The entry has lost focus
4514     * - @c "selection,paste" - A paste action has occurred on the
4515     *   entry
4516     * - @c "selection,copy" - A copy action has occurred on the entry
4517     * - @c "selection,cut" - A cut action has occurred on the entry
4518     * - @c "unpressed" - The file selector entry's button was released
4519     *   after being pressed.
4520     * - @c "file,chosen" - The user has selected a path via the file
4521     *   selector entry's internal file selector, whose string pointer
4522     *   comes as the @c event_info data (a stringshared string)
4523     *
4524     * Here is an example on its usage:
4525     * @li @ref fileselector_entry_example
4526     *
4527     * @see @ref File_Selector_Button for a similar widget.
4528     * @{
4529     */
4530
4531    /**
4532     * Add a new file selector entry widget to the given parent
4533     * Elementary (container) object
4534     *
4535     * @param parent The parent object
4536     * @return a new file selector entry widget handle or @c NULL, on
4537     * errors
4538     */
4539    EAPI Evas_Object *elm_fileselector_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4540
4541    /**
4542     * Set the label for a given file selector entry widget's button
4543     *
4544     * @param obj The file selector entry widget
4545     * @param label The text label to be displayed on @p obj widget's
4546     * button
4547     *
4548     * @deprecated use elm_object_text_set() instead.
4549     */
4550    EINA_DEPRECATED EAPI void         elm_fileselector_entry_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
4551
4552    /**
4553     * Get the label set for a given file selector entry widget's button
4554     *
4555     * @param obj The file selector entry widget
4556     * @return The widget button's label
4557     *
4558     * @deprecated use elm_object_text_set() instead.
4559     */
4560    EINA_DEPRECATED EAPI const char  *elm_fileselector_entry_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4561
4562    /**
4563     * Set the icon on a given file selector entry widget's button
4564     *
4565     * @param obj The file selector entry widget
4566     * @param icon The icon object for the entry's button
4567     *
4568     * Once the icon object is set, a previously set one will be
4569     * deleted. If you want to keep the latter, use the
4570     * elm_fileselector_entry_button_icon_unset() function.
4571     *
4572     * @see elm_fileselector_entry_button_icon_get()
4573     */
4574    EAPI void         elm_fileselector_entry_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
4575
4576    /**
4577     * Get the icon set for a given file selector entry widget's button
4578     *
4579     * @param obj The file selector entry widget
4580     * @return The icon object currently set on @p obj widget's button
4581     * or @c NULL, if none is
4582     *
4583     * @see elm_fileselector_entry_button_icon_set()
4584     */
4585    EAPI Evas_Object *elm_fileselector_entry_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4586
4587    /**
4588     * Unset the icon used in a given file selector entry widget's
4589     * button
4590     *
4591     * @param obj The file selector entry widget
4592     * @return The icon object that was being used on @p obj widget's
4593     * button or @c NULL, on errors
4594     *
4595     * Unparent and return the icon object which was set for this
4596     * widget's button.
4597     *
4598     * @see elm_fileselector_entry_button_icon_set()
4599     */
4600    EAPI Evas_Object *elm_fileselector_entry_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4601
4602    /**
4603     * Set the title for a given file selector entry widget's window
4604     *
4605     * @param obj The file selector entry widget
4606     * @param title The title string
4607     *
4608     * This will change the window's title, when the file selector pops
4609     * out after a click on the entry's button. Those windows have the
4610     * default (unlocalized) value of @c "Select a file" as titles.
4611     *
4612     * @note It will only take any effect if the file selector
4613     * entry widget is @b not under "inwin mode".
4614     *
4615     * @see elm_fileselector_entry_window_title_get()
4616     */
4617    EAPI void         elm_fileselector_entry_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
4618
4619    /**
4620     * Get the title set for a given file selector entry widget's
4621     * window
4622     *
4623     * @param obj The file selector entry widget
4624     * @return Title of the file selector entry's window
4625     *
4626     * @see elm_fileselector_entry_window_title_get() for more details
4627     */
4628    EAPI const char  *elm_fileselector_entry_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4629
4630    /**
4631     * Set the size of a given file selector entry widget's window,
4632     * holding the file selector itself.
4633     *
4634     * @param obj The file selector entry widget
4635     * @param width The window's width
4636     * @param height The window's height
4637     *
4638     * @note it will only take any effect if the file selector entry
4639     * widget is @b not under "inwin mode". The default size for the
4640     * window (when applicable) is 400x400 pixels.
4641     *
4642     * @see elm_fileselector_entry_window_size_get()
4643     */
4644    EAPI void         elm_fileselector_entry_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
4645
4646    /**
4647     * Get the size of a given file selector entry widget's window,
4648     * holding the file selector itself.
4649     *
4650     * @param obj The file selector entry widget
4651     * @param width Pointer into which to store the width value
4652     * @param height Pointer into which to store the height value
4653     *
4654     * @note Use @c NULL pointers on the size values you're not
4655     * interested in: they'll be ignored by the function.
4656     *
4657     * @see elm_fileselector_entry_window_size_set(), for more details
4658     */
4659    EAPI void         elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
4660
4661    /**
4662     * Set the initial file system path and the entry's path string for
4663     * a given file selector entry widget
4664     *
4665     * @param obj The file selector entry widget
4666     * @param path The path string
4667     *
4668     * It must be a <b>directory</b> path, which will have the contents
4669     * displayed initially in the file selector's view, when invoked
4670     * from @p obj. The default initial path is the @c "HOME"
4671     * environment variable's value.
4672     *
4673     * @see elm_fileselector_entry_path_get()
4674     */
4675    EAPI void         elm_fileselector_entry_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
4676
4677    /**
4678     * Get the entry's path string for a given file selector entry
4679     * widget
4680     *
4681     * @param obj The file selector entry widget
4682     * @return path The path string
4683     *
4684     * @see elm_fileselector_entry_path_set() for more details
4685     */
4686    EAPI const char  *elm_fileselector_entry_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4687
4688    /**
4689     * Enable/disable a tree view in the given file selector entry
4690     * widget's internal file selector
4691     *
4692     * @param obj The file selector entry widget
4693     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
4694     * disable
4695     *
4696     * This has the same effect as elm_fileselector_expandable_set(),
4697     * but now applied to a file selector entry's internal file
4698     * selector.
4699     *
4700     * @note There's no way to put a file selector entry's internal
4701     * file selector in "grid mode", as one may do with "pure" file
4702     * selectors.
4703     *
4704     * @see elm_fileselector_expandable_get()
4705     */
4706    EAPI void         elm_fileselector_entry_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
4707
4708    /**
4709     * Get whether tree view is enabled for the given file selector
4710     * entry widget's internal file selector
4711     *
4712     * @param obj The file selector entry widget
4713     * @return @c EINA_TRUE if @p obj widget's internal file selector
4714     * is in tree view, @c EINA_FALSE otherwise (and or errors)
4715     *
4716     * @see elm_fileselector_expandable_set() for more details
4717     */
4718    EAPI Eina_Bool    elm_fileselector_entry_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4719
4720    /**
4721     * Set whether a given file selector entry widget's internal file
4722     * selector is to display folders only or the directory contents,
4723     * as well.
4724     *
4725     * @param obj The file selector entry widget
4726     * @param only @c EINA_TRUE to make @p obj widget's internal file
4727     * selector only display directories, @c EINA_FALSE to make files
4728     * to be displayed in it too
4729     *
4730     * This has the same effect as elm_fileselector_folder_only_set(),
4731     * but now applied to a file selector entry's internal file
4732     * selector.
4733     *
4734     * @see elm_fileselector_folder_only_get()
4735     */
4736    EAPI void         elm_fileselector_entry_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
4737
4738    /**
4739     * Get whether a given file selector entry widget's internal file
4740     * selector is displaying folders only or the directory contents,
4741     * as well.
4742     *
4743     * @param obj The file selector entry widget
4744     * @return @c EINA_TRUE if @p obj widget's internal file
4745     * selector is only displaying directories, @c EINA_FALSE if files
4746     * are being displayed in it too (and on errors)
4747     *
4748     * @see elm_fileselector_entry_folder_only_set() for more details
4749     */
4750    EAPI Eina_Bool    elm_fileselector_entry_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4751
4752    /**
4753     * Enable/disable the file name entry box where the user can type
4754     * in a name for a file, in a given file selector entry widget's
4755     * internal file selector.
4756     *
4757     * @param obj The file selector entry widget
4758     * @param is_save @c EINA_TRUE to make @p obj widget's internal
4759     * file selector a "saving dialog", @c EINA_FALSE otherwise
4760     *
4761     * This has the same effect as elm_fileselector_is_save_set(),
4762     * but now applied to a file selector entry's internal file
4763     * selector.
4764     *
4765     * @see elm_fileselector_is_save_get()
4766     */
4767    EAPI void         elm_fileselector_entry_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
4768
4769    /**
4770     * Get whether the given file selector entry widget's internal
4771     * file selector is in "saving dialog" mode
4772     *
4773     * @param obj The file selector entry widget
4774     * @return @c EINA_TRUE, if @p obj widget's internal file selector
4775     * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
4776     * errors)
4777     *
4778     * @see elm_fileselector_entry_is_save_set() for more details
4779     */
4780    EAPI Eina_Bool    elm_fileselector_entry_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4781
4782    /**
4783     * Set whether a given file selector entry widget's internal file
4784     * selector will raise an Elementary "inner window", instead of a
4785     * dedicated Elementary window. By default, it won't.
4786     *
4787     * @param obj The file selector entry widget
4788     * @param value @c EINA_TRUE to make it use an inner window, @c
4789     * EINA_TRUE to make it use a dedicated window
4790     *
4791     * @see elm_win_inwin_add() for more information on inner windows
4792     * @see elm_fileselector_entry_inwin_mode_get()
4793     */
4794    EAPI void         elm_fileselector_entry_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
4795
4796    /**
4797     * Get whether a given file selector entry widget's internal file
4798     * selector will raise an Elementary "inner window", instead of a
4799     * dedicated Elementary window.
4800     *
4801     * @param obj The file selector entry widget
4802     * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
4803     * if it will use a dedicated window
4804     *
4805     * @see elm_fileselector_entry_inwin_mode_set() for more details
4806     */
4807    EAPI Eina_Bool    elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4808
4809    /**
4810     * Set the initial file system path for a given file selector entry
4811     * widget
4812     *
4813     * @param obj The file selector entry widget
4814     * @param path The path string
4815     *
4816     * It must be a <b>directory</b> path, which will have the contents
4817     * displayed initially in the file selector's view, when invoked
4818     * from @p obj. The default initial path is the @c "HOME"
4819     * environment variable's value.
4820     *
4821     * @see elm_fileselector_entry_path_get()
4822     */
4823    EAPI void         elm_fileselector_entry_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
4824
4825    /**
4826     * Get the parent directory's path to the latest file selection on
4827     * a given filer selector entry widget
4828     *
4829     * @param obj The file selector object
4830     * @return The (full) path of the directory of the last selection
4831     * on @p obj widget, a @b stringshared string
4832     *
4833     * @see elm_fileselector_entry_path_set()
4834     */
4835    EAPI const char  *elm_fileselector_entry_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4836
4837    /**
4838     * @}
4839     */
4840
4841    /**
4842     * @defgroup Scroller Scroller
4843     *
4844     * A scroller holds a single object and "scrolls it around". This means that
4845     * it allows the user to use a scrollbar (or a finger) to drag the viewable
4846     * region around, allowing to move through a much larger object that is
4847     * contained in the scroller. The scroiller will always have a small minimum
4848     * size by default as it won't be limited by the contents of the scroller.
4849     *
4850     * Signals that you can add callbacks for are:
4851     * @li "edge,left" - the left edge of the content has been reached
4852     * @li "edge,right" - the right edge of the content has been reached
4853     * @li "edge,top" - the top edge of the content has been reached
4854     * @li "edge,bottom" - the bottom edge of the content has been reached
4855     * @li "scroll" - the content has been scrolled (moved)
4856     * @li "scroll,anim,start" - scrolling animation has started
4857     * @li "scroll,anim,stop" - scrolling animation has stopped
4858     * @li "scroll,drag,start" - dragging the contents around has started
4859     * @li "scroll,drag,stop" - dragging the contents around has stopped
4860     * @note The "scroll,anim,*" and "scroll,drag,*" signals are only emitted by
4861     * user intervetion.
4862     *
4863     * @note When Elemementary is in embedded mode the scrollbars will not be
4864     * dragable, they appear merely as indicators of how much has been scrolled.
4865     * @note When Elementary is in desktop mode the thumbscroll(a.k.a.
4866     * fingerscroll) won't work.
4867     *
4868     * In @ref tutorial_scroller you'll find an example of how to use most of
4869     * this API.
4870     * @{
4871     */
4872    /**
4873     * @brief Type that controls when scrollbars should appear.
4874     *
4875     * @see elm_scroller_policy_set()
4876     */
4877    typedef enum _Elm_Scroller_Policy
4878      {
4879         ELM_SCROLLER_POLICY_AUTO = 0, /**< Show scrollbars as needed */
4880         ELM_SCROLLER_POLICY_ON, /**< Always show scrollbars */
4881         ELM_SCROLLER_POLICY_OFF, /**< Never show scrollbars */
4882         ELM_SCROLLER_POLICY_LAST
4883      } Elm_Scroller_Policy;
4884    /**
4885     * @brief Add a new scroller to the parent
4886     *
4887     * @param parent The parent object
4888     * @return The new object or NULL if it cannot be created
4889     */
4890    EAPI Evas_Object *elm_scroller_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4891    /**
4892     * @brief Set the content of the scroller widget (the object to be scrolled around).
4893     *
4894     * @param obj The scroller object
4895     * @param content The new content object
4896     *
4897     * Once the content object is set, a previously set one will be deleted.
4898     * If you want to keep that old content object, use the
4899     * elm_scroller_content_unset() function.
4900     */
4901    EAPI void         elm_scroller_content_set(Evas_Object *obj, Evas_Object *child) EINA_ARG_NONNULL(1);
4902    /**
4903     * @brief Get the content of the scroller widget
4904     *
4905     * @param obj The slider object
4906     * @return The content that is being used
4907     *
4908     * Return the content object which is set for this widget
4909     *
4910     * @see elm_scroller_content_set()
4911     */
4912    EAPI Evas_Object *elm_scroller_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4913    /**
4914     * @brief Unset the content of the scroller widget
4915     *
4916     * @param obj The slider object
4917     * @return The content that was being used
4918     *
4919     * Unparent and return the content object which was set for this widget
4920     *
4921     * @see elm_scroller_content_set()
4922     */
4923    EAPI Evas_Object *elm_scroller_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4924    /**
4925     * @brief Set custom theme elements for the scroller
4926     *
4927     * @param obj The scroller object
4928     * @param widget The widget name to use (default is "scroller")
4929     * @param base The base name to use (default is "base")
4930     */
4931    EAPI void         elm_scroller_custom_widget_base_theme_set(Evas_Object *obj, const char *widget, const char *base) EINA_ARG_NONNULL(1, 2, 3);
4932    /**
4933     * @brief Make the scroller minimum size limited to the minimum size of the content
4934     *
4935     * @param obj The scroller object
4936     * @param w Enable limiting minimum size horizontally
4937     * @param h Enable limiting minimum size vertically
4938     *
4939     * By default the scroller will be as small as its design allows,
4940     * irrespective of its content. This will make the scroller minimum size the
4941     * right size horizontally and/or vertically to perfectly fit its content in
4942     * that direction.
4943     */
4944    EAPI void         elm_scroller_content_min_limit(Evas_Object *obj, Eina_Bool w, Eina_Bool h) EINA_ARG_NONNULL(1);
4945    /**
4946     * @brief Show a specific virtual region within the scroller content object
4947     *
4948     * @param obj The scroller object
4949     * @param x X coordinate of the region
4950     * @param y Y coordinate of the region
4951     * @param w Width of the region
4952     * @param h Height of the region
4953     *
4954     * This will ensure all (or part if it does not fit) of the designated
4955     * region in the virtual content object (0, 0 starting at the top-left of the
4956     * virtual content object) is shown within the scroller.
4957     */
4958    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);
4959    /**
4960     * @brief Set the scrollbar visibility policy
4961     *
4962     * @param obj The scroller object
4963     * @param policy_h Horizontal scrollbar policy
4964     * @param policy_v Vertical scrollbar policy
4965     *
4966     * This sets the scrollbar visibility policy for the given scroller.
4967     * ELM_SCROLLER_POLICY_AUTO means the scrollber is made visible if it is
4968     * needed, and otherwise kept hidden. ELM_SCROLLER_POLICY_ON turns it on all
4969     * the time, and ELM_SCROLLER_POLICY_OFF always keeps it off. This applies
4970     * respectively for the horizontal and vertical scrollbars.
4971     */
4972    EAPI void         elm_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
4973    /**
4974     * @brief Gets scrollbar visibility policy
4975     *
4976     * @param obj The scroller object
4977     * @param policy_h Horizontal scrollbar policy
4978     * @param policy_v Vertical scrollbar policy
4979     *
4980     * @see elm_scroller_policy_set()
4981     */
4982    EAPI void         elm_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
4983    /**
4984     * @brief Get the currently visible content region
4985     *
4986     * @param obj The scroller object
4987     * @param x X coordinate of the region
4988     * @param y Y coordinate of the region
4989     * @param w Width of the region
4990     * @param h Height of the region
4991     *
4992     * This gets the current region in the content object that is visible through
4993     * the scroller. The region co-ordinates are returned in the @p x, @p y, @p
4994     * w, @p h values pointed to.
4995     *
4996     * @note All coordinates are relative to the content.
4997     *
4998     * @see elm_scroller_region_show()
4999     */
5000    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);
5001    /**
5002     * @brief Get the size of the content object
5003     *
5004     * @param obj The scroller object
5005     * @param w Width return
5006     * @param h Height return
5007     *
5008     * This gets the size of the content object of the scroller.
5009     */
5010    EAPI void         elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
5011    /**
5012     * @brief Set bouncing behavior
5013     *
5014     * @param obj The scroller object
5015     * @param h_bounce Will the scroller bounce horizontally or not
5016     * @param v_bounce Will the scroller bounce vertically or not
5017     *
5018     * When scrolling, the scroller may "bounce" when reaching an edge of the
5019     * content object. This is a visual way to indicate the end has been reached.
5020     * This is enabled by default for both axis. This will set if it is enabled
5021     * for that axis with the boolean parameters for each axis.
5022     */
5023    EAPI void         elm_scroller_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
5024    /**
5025     * @brief Get the bounce mode
5026     *
5027     * @param obj The Scroller object
5028     * @param h_bounce Allow bounce horizontally
5029     * @param v_bounce Allow bounce vertically
5030     *
5031     * @see elm_scroller_bounce_set()
5032     */
5033    EAPI void         elm_scroller_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
5034    /**
5035     * @brief Set scroll page size relative to viewport size.
5036     *
5037     * @param obj The scroller object
5038     * @param h_pagerel The horizontal page relative size
5039     * @param v_pagerel The vertical page relative size
5040     *
5041     * The scroller is capable of limiting scrolling by the user to "pages". That
5042     * is to jump by and only show a "whole page" at a time as if the continuous
5043     * area of the scroller content is split into page sized pieces. This sets
5044     * the size of a page relative to the viewport of the scroller. 1.0 is "1
5045     * viewport" is size (horizontally or vertically). 0.0 turns it off in that
5046     * axis. This is mutually exclusive with page size
5047     * (see elm_scroller_page_size_set()  for more information). Likewise 0.5
5048     * is "half a viewport". Sane usable valus are normally between 0.0 and 1.0
5049     * including 1.0. If you only want 1 axis to be page "limited", use 0.0 for
5050     * the other axis.
5051     */
5052    EAPI void         elm_scroller_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
5053    /**
5054     * @brief Set scroll page size.
5055     *
5056     * @param obj The scroller object
5057     * @param h_pagesize The horizontal page size
5058     * @param v_pagesize The vertical page size
5059     *
5060     * This sets the page size to an absolute fixed value, with 0 turning it off
5061     * for that axis.
5062     *
5063     * @see elm_scroller_page_relative_set()
5064     */
5065    EAPI void         elm_scroller_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
5066    /**
5067     * @brief Show a specific virtual region within the scroller content object.
5068     *
5069     * @param obj The scroller object
5070     * @param x X coordinate of the region
5071     * @param y Y coordinate of the region
5072     * @param w Width of the region
5073     * @param h Height of the region
5074     *
5075     * This will ensure all (or part if it does not fit) of the designated
5076     * region in the virtual content object (0, 0 starting at the top-left of the
5077     * virtual content object) is shown within the scroller. Unlike
5078     * elm_scroller_region_show(), this allow the scroller to "smoothly slide"
5079     * to this location (if configuration in general calls for transitions). It
5080     * may not jump immediately to the new location and make take a while and
5081     * show other content along the way.
5082     *
5083     * @see elm_scroller_region_show()
5084     */
5085    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);
5086    /**
5087     * @brief Set event propagation on a scroller
5088     *
5089     * @param obj The scroller object
5090     * @param propagation If propagation is enabled or not
5091     *
5092     * This enables or disabled event propagation from the scroller content to
5093     * the scroller and its parent. By default event propagation is disabled.
5094     */
5095    EAPI void         elm_scroller_propagate_events_set(Evas_Object *obj, Eina_Bool propagation);
5096    /**
5097     * @brief Get event propagation for a scroller
5098     *
5099     * @param obj The scroller object
5100     * @return The propagation state
5101     *
5102     * This gets the event propagation for a scroller.
5103     *
5104     * @see elm_scroller_propagate_events_set()
5105     */
5106    EAPI Eina_Bool    elm_scroller_propagate_events_get(const Evas_Object *obj);
5107    /**
5108     * @}
5109     */
5110
5111    /**
5112     * @defgroup Label Label
5113     *
5114     * @image html img/widget/label/preview-00.png
5115     * @image latex img/widget/label/preview-00.eps
5116     *
5117     * @brief Widget to display text, with simple html-like markup.
5118     *
5119     * The Label widget @b doesn't allow text to overflow its boundaries, if the
5120     * text doesn't fit the geometry of the label it will be ellipsized or be
5121     * cut. Elementary provides several themes for this widget:
5122     * @li default - No animation
5123     * @li marker - Centers the text in the label and make it bold by default
5124     * @li slide_long - The entire text appears from the right of the screen and
5125     * slides until it disappears in the left of the screen(reappering on the
5126     * right again).
5127     * @li slide_short - The text appears in the left of the label and slides to
5128     * the right to show the overflow. When all of the text has been shown the
5129     * position is reset.
5130     * @li slide_bounce - The text appears in the left of the label and slides to
5131     * the right to show the overflow. When all of the text has been shown the
5132     * animation reverses, moving the text to the left.
5133     *
5134     * Custom themes can of course invent new markup tags and style them any way
5135     * they like.
5136     *
5137     * See @ref tutorial_label for a demonstration of how to use a label widget.
5138     * @{
5139     */
5140    /**
5141     * @brief Add a new label to the parent
5142     *
5143     * @param parent The parent object
5144     * @return The new object or NULL if it cannot be created
5145     */
5146    EAPI Evas_Object *elm_label_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5147    /**
5148     * @brief Set the label on the label object
5149     *
5150     * @param obj The label object
5151     * @param label The label will be used on the label object
5152     * @deprecated See elm_object_text_set()
5153     */
5154    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 */
5155    /**
5156     * @brief Get the label used on the label object
5157     *
5158     * @param obj The label object
5159     * @return The string inside the label
5160     * @deprecated See elm_object_text_get()
5161     */
5162    EINA_DEPRECATED EAPI const char *elm_label_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); /* deprecated, use elm_object_text_get instead */
5163    /**
5164     * @brief Set the wrapping behavior of the label
5165     *
5166     * @param obj The label object
5167     * @param wrap To wrap text or not
5168     *
5169     * By default no wrapping is done. Possible values for @p wrap are:
5170     * @li ELM_WRAP_NONE - No wrapping
5171     * @li ELM_WRAP_CHAR - wrap between characters
5172     * @li ELM_WRAP_WORD - wrap between words
5173     * @li ELM_WRAP_MIXED - Word wrap, and if that fails, char wrap
5174     */
5175    EAPI void         elm_label_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
5176    /**
5177     * @brief Get the wrapping behavior of the label
5178     *
5179     * @param obj The label object
5180     * @return Wrap type
5181     *
5182     * @see elm_label_line_wrap_set()
5183     */
5184    EAPI Elm_Wrap_Type elm_label_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5185    /**
5186     * @brief Set wrap width of the label
5187     *
5188     * @param obj The label object
5189     * @param w The wrap width in pixels at a minimum where words need to wrap
5190     *
5191     * This function sets the maximum width size hint of the label.
5192     *
5193     * @warning This is only relevant if the label is inside a container.
5194     */
5195    EAPI void         elm_label_wrap_width_set(Evas_Object *obj, Evas_Coord w) EINA_ARG_NONNULL(1);
5196    /**
5197     * @brief Get wrap width of the label
5198     *
5199     * @param obj The label object
5200     * @return The wrap width in pixels at a minimum where words need to wrap
5201     *
5202     * @see elm_label_wrap_width_set()
5203     */
5204    EAPI Evas_Coord   elm_label_wrap_width_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5205    /**
5206     * @brief Set wrap height of the label
5207     *
5208     * @param obj The label object
5209     * @param h The wrap height in pixels at a minimum where words need to wrap
5210     *
5211     * This function sets the maximum height size hint of the label.
5212     *
5213     * @warning This is only relevant if the label is inside a container.
5214     */
5215    EAPI void         elm_label_wrap_height_set(Evas_Object *obj, Evas_Coord h) EINA_ARG_NONNULL(1);
5216    /**
5217     * @brief get wrap width of the label
5218     *
5219     * @param obj The label object
5220     * @return The wrap height in pixels at a minimum where words need to wrap
5221     */
5222    EAPI Evas_Coord   elm_label_wrap_height_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5223    /**
5224     * @brief Set the font size on the label object.
5225     *
5226     * @param obj The label object
5227     * @param size font size
5228     *
5229     * @warning NEVER use this. It is for hyper-special cases only. use styles
5230     * instead. e.g. "big", "medium", "small" - or better name them by use:
5231     * "title", "footnote", "quote" etc.
5232     */
5233    EAPI void         elm_label_fontsize_set(Evas_Object *obj, int fontsize) EINA_ARG_NONNULL(1);
5234    /**
5235     * @brief Set the text color on the label object
5236     *
5237     * @param obj The label object
5238     * @param r Red property background color of The label object
5239     * @param g Green property background color of The label object
5240     * @param b Blue property background color of The label object
5241     * @param a Alpha property background color of The label object
5242     *
5243     * @warning NEVER use this. It is for hyper-special cases only. use styles
5244     * instead. e.g. "big", "medium", "small" - or better name them by use:
5245     * "title", "footnote", "quote" etc.
5246     */
5247    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);
5248    /**
5249     * @brief Set the text align on the label object
5250     *
5251     * @param obj The label object
5252     * @param align align mode ("left", "center", "right")
5253     *
5254     * @warning NEVER use this. It is for hyper-special cases only. use styles
5255     * instead. e.g. "big", "medium", "small" - or better name them by use:
5256     * "title", "footnote", "quote" etc.
5257     */
5258    EAPI void         elm_label_text_align_set(Evas_Object *obj, const char *alignmode) EINA_ARG_NONNULL(1);
5259    /**
5260     * @brief Set background color of the label
5261     *
5262     * @param obj The label object
5263     * @param r Red property background color of The label object
5264     * @param g Green property background color of The label object
5265     * @param b Blue property background color of The label object
5266     * @param a Alpha property background alpha of The label object
5267     *
5268     * @warning NEVER use this. It is for hyper-special cases only. use styles
5269     * instead. e.g. "big", "medium", "small" - or better name them by use:
5270     * "title", "footnote", "quote" etc.
5271     */
5272    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);
5273    /**
5274     * @brief Set the ellipsis behavior of the label
5275     *
5276     * @param obj The label object
5277     * @param ellipsis To ellipsis text or not
5278     *
5279     * If set to true and the text doesn't fit in the label an ellipsis("...")
5280     * will be shown at the end of the widget.
5281     *
5282     * @warning This doesn't work with slide(elm_label_slide_set()) or if the
5283     * choosen wrap method was ELM_WRAP_WORD.
5284     */
5285    EAPI void         elm_label_ellipsis_set(Evas_Object *obj, Eina_Bool ellipsis) EINA_ARG_NONNULL(1);
5286    /**
5287     * @brief Set the text slide of the label
5288     *
5289     * @param obj The label object
5290     * @param slide To start slide or stop
5291     *
5292     * If set to true the text of the label will slide throught the length of
5293     * label.
5294     *
5295     * @warning This only work with the themes "slide_short", "slide_long" and
5296     * "slide_bounce".
5297     */
5298    EAPI void         elm_label_slide_set(Evas_Object *obj, Eina_Bool slide) EINA_ARG_NONNULL(1);
5299    /**
5300     * @brief Get the text slide mode of the label
5301     *
5302     * @param obj The label object
5303     * @return slide slide mode value
5304     *
5305     * @see elm_label_slide_set()
5306     */
5307    EAPI Eina_Bool    elm_label_slide_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
5308    /**
5309     * @brief Set the slide duration(speed) of the label
5310     *
5311     * @param obj The label object
5312     * @return The duration in seconds in moving text from slide begin position
5313     * to slide end position
5314     */
5315    EAPI void         elm_label_slide_duration_set(Evas_Object *obj, double duration) EINA_ARG_NONNULL(1);
5316    /**
5317     * @brief Get the slide duration(speed) of the label
5318     *
5319     * @param obj The label object
5320     * @return The duration time in moving text from slide begin position to slide end position
5321     *
5322     * @see elm_label_slide_duration_set()
5323     */
5324    EAPI double       elm_label_slide_duration_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
5325    /**
5326     * @}
5327     */
5328
5329    /**
5330     * @defgroup Toggle Toggle
5331     *
5332     * @image html img/widget/toggle/preview-00.png
5333     * @image latex img/widget/toggle/preview-00.eps
5334     *
5335     * @brief A toggle is a slider which can be used to toggle between
5336     * two values.  It has two states: on and off.
5337     *
5338     * Signals that you can add callbacks for are:
5339     * @li "changed" - Whenever the toggle value has been changed.  Is not called
5340     *                 until the toggle is released by the cursor (assuming it
5341     *                 has been triggered by the cursor in the first place).
5342     *
5343     * @ref tutorial_toggle show how to use a toggle.
5344     * @{
5345     */
5346    /**
5347     * @brief Add a toggle to @p parent.
5348     *
5349     * @param parent The parent object
5350     *
5351     * @return The toggle object
5352     */
5353    EAPI Evas_Object *elm_toggle_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5354    /**
5355     * @brief Sets the label to be displayed with the toggle.
5356     *
5357     * @param obj The toggle object
5358     * @param label The label to be displayed
5359     *
5360     * @deprecated use elm_object_text_set() instead.
5361     */
5362    EINA_DEPRECATED EAPI void         elm_toggle_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
5363    /**
5364     * @brief Gets the label of the toggle
5365     *
5366     * @param obj  toggle object
5367     * @return The label of the toggle
5368     *
5369     * @deprecated use elm_object_text_get() instead.
5370     */
5371    EINA_DEPRECATED EAPI const char  *elm_toggle_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5372    /**
5373     * @brief Set the icon used for the toggle
5374     *
5375     * @param obj The toggle object
5376     * @param icon The icon object for the button
5377     *
5378     * Once the icon object is set, a previously set one will be deleted
5379     * If you want to keep that old content object, use the
5380     * elm_toggle_icon_unset() function.
5381     */
5382    EAPI void         elm_toggle_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
5383    /**
5384     * @brief Get the icon used for the toggle
5385     *
5386     * @param obj The toggle object
5387     * @return The icon object that is being used
5388     *
5389     * Return the icon object which is set for this widget.
5390     *
5391     * @see elm_toggle_icon_set()
5392     */
5393    EAPI Evas_Object *elm_toggle_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5394    /**
5395     * @brief Unset the icon used for the toggle
5396     *
5397     * @param obj The toggle object
5398     * @return The icon object that was being used
5399     *
5400     * Unparent and return the icon object which was set for this widget.
5401     *
5402     * @see elm_toggle_icon_set()
5403     */
5404    EAPI Evas_Object *elm_toggle_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
5405    /**
5406     * @brief Sets the labels to be associated with the on and off states of the toggle.
5407     *
5408     * @param obj The toggle object
5409     * @param onlabel The label displayed when the toggle is in the "on" state
5410     * @param offlabel The label displayed when the toggle is in the "off" state
5411     */
5412    EAPI void         elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel) EINA_ARG_NONNULL(1);
5413    /**
5414     * @brief Gets the labels associated with the on and off states of the toggle.
5415     *
5416     * @param obj The toggle object
5417     * @param onlabel A char** to place the onlabel of @p obj into
5418     * @param offlabel A char** to place the offlabel of @p obj into
5419     */
5420    EAPI void         elm_toggle_states_labels_get(const Evas_Object *obj, const char **onlabel, const char **offlabel) EINA_ARG_NONNULL(1);
5421    /**
5422     * @brief Sets the state of the toggle to @p state.
5423     *
5424     * @param obj The toggle object
5425     * @param state The state of @p obj
5426     */
5427    EAPI void         elm_toggle_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
5428    /**
5429     * @brief Gets the state of the toggle to @p state.
5430     *
5431     * @param obj The toggle object
5432     * @return The state of @p obj
5433     */
5434    EAPI Eina_Bool    elm_toggle_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5435    /**
5436     * @brief Sets the state pointer of the toggle to @p statep.
5437     *
5438     * @param obj The toggle object
5439     * @param statep The state pointer of @p obj
5440     */
5441    EAPI void         elm_toggle_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
5442    /**
5443     * @}
5444     */
5445
5446    /**
5447     * @defgroup Frame Frame
5448     *
5449     * @image html img/widget/frame/preview-00.png
5450     * @image latex img/widget/frame/preview-00.eps
5451     *
5452     * @brief Frame is a widget that holds some content and has a title.
5453     *
5454     * The default look is a frame with a title, but Frame supports multple
5455     * styles:
5456     * @li default
5457     * @li pad_small
5458     * @li pad_medium
5459     * @li pad_large
5460     * @li pad_huge
5461     * @li outdent_top
5462     * @li outdent_bottom
5463     *
5464     * Of all this styles only default shows the title. Frame emits no signals.
5465     *
5466     * For a detailed example see the @ref tutorial_frame.
5467     *
5468     * @{
5469     */
5470    /**
5471     * @brief Add a new frame to the parent
5472     *
5473     * @param parent The parent object
5474     * @return The new object or NULL if it cannot be created
5475     */
5476    EAPI Evas_Object *elm_frame_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5477    /**
5478     * @brief Set the frame label
5479     *
5480     * @param obj The frame object
5481     * @param label The label of this frame object
5482     *
5483     * @deprecated use elm_object_text_set() instead.
5484     */
5485    EINA_DEPRECATED EAPI void         elm_frame_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
5486    /**
5487     * @brief Get the frame label
5488     *
5489     * @param obj The frame object
5490     *
5491     * @return The label of this frame objet or NULL if unable to get frame
5492     *
5493     * @deprecated use elm_object_text_get() instead.
5494     */
5495    EINA_DEPRECATED EAPI const char  *elm_frame_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5496    /**
5497     * @brief Set the content of the frame widget
5498     *
5499     * Once the content object is set, a previously set one will be deleted.
5500     * If you want to keep that old content object, use the
5501     * elm_frame_content_unset() function.
5502     *
5503     * @param obj The frame object
5504     * @param content The content will be filled in this frame object
5505     */
5506    EAPI void         elm_frame_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
5507    /**
5508     * @brief Get the content of the frame widget
5509     *
5510     * Return the content object which is set for this widget
5511     *
5512     * @param obj The frame object
5513     * @return The content that is being used
5514     */
5515    EAPI Evas_Object *elm_frame_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5516    /**
5517     * @brief Unset the content of the frame widget
5518     *
5519     * Unparent and return the content object which was set for this widget
5520     *
5521     * @param obj The frame object
5522     * @return The content that was being used
5523     */
5524    EAPI Evas_Object *elm_frame_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
5525    /**
5526     * @}
5527     */
5528
5529    /**
5530     * @defgroup Table Table
5531     *
5532     * A container widget to arrange other widgets in a table where items can
5533     * also span multiple columns or rows - even overlap (and then be raised or
5534     * lowered accordingly to adjust stacking if they do overlap).
5535     *
5536     * The followin are examples of how to use a table:
5537     * @li @ref tutorial_table_01
5538     * @li @ref tutorial_table_02
5539     *
5540     * @{
5541     */
5542    /**
5543     * @brief Add a new table to the parent
5544     *
5545     * @param parent The parent object
5546     * @return The new object or NULL if it cannot be created
5547     */
5548    EAPI Evas_Object *elm_table_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5549    /**
5550     * @brief Set the homogeneous layout in the table
5551     *
5552     * @param obj The layout object
5553     * @param homogeneous A boolean to set if the layout is homogeneous in the
5554     * table (EINA_TRUE = homogeneous,  EINA_FALSE = no homogeneous)
5555     */
5556    EAPI void         elm_table_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
5557    /**
5558     * @brief Get the current table homogeneous mode.
5559     *
5560     * @param obj The table object
5561     * @return A boolean to indicating if the layout is homogeneous in the table
5562     * (EINA_TRUE = homogeneous,  EINA_FALSE = no homogeneous)
5563     */
5564    EAPI Eina_Bool    elm_table_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5565    /**
5566     * @warning <b>Use elm_table_homogeneous_set() instead</b>
5567     */
5568    EINA_DEPRECATED EAPI void elm_table_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
5569    /**
5570     * @warning <b>Use elm_table_homogeneous_get() instead</b>
5571     */
5572    EINA_DEPRECATED EAPI Eina_Bool elm_table_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5573    /**
5574     * @brief Set padding between cells.
5575     *
5576     * @param obj The layout object.
5577     * @param horizontal set the horizontal padding.
5578     * @param vertical set the vertical padding.
5579     *
5580     * Default value is 0.
5581     */
5582    EAPI void         elm_table_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
5583    /**
5584     * @brief Get padding between cells.
5585     *
5586     * @param obj The layout object.
5587     * @param horizontal set the horizontal padding.
5588     * @param vertical set the vertical padding.
5589     */
5590    EAPI void         elm_table_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
5591    /**
5592     * @brief Add a subobject on the table with the coordinates passed
5593     *
5594     * @param obj The table object
5595     * @param subobj The subobject to be added to the table
5596     * @param x Row number
5597     * @param y Column number
5598     * @param w rowspan
5599     * @param h colspan
5600     *
5601     * @note All positioning inside the table is relative to rows and columns, so
5602     * a value of 0 for x and y, means the top left cell of the table, and a
5603     * value of 1 for w and h means @p subobj only takes that 1 cell.
5604     */
5605    EAPI void         elm_table_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
5606    /**
5607     * @brief Remove child from table.
5608     *
5609     * @param obj The table object
5610     * @param subobj The subobject
5611     */
5612    EAPI void         elm_table_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5613    /**
5614     * @brief Faster way to remove all child objects from a table object.
5615     *
5616     * @param obj The table object
5617     * @param clear If true, will delete children, else just remove from table.
5618     */
5619    EAPI void         elm_table_clear(Evas_Object *obj, Eina_Bool clear) EINA_ARG_NONNULL(1);
5620    /**
5621     * @brief Set the packing location of an existing child of the table
5622     *
5623     * @param subobj The subobject to be modified in the table
5624     * @param x Row number
5625     * @param y Column number
5626     * @param w rowspan
5627     * @param h colspan
5628     *
5629     * Modifies the position of an object already in the table.
5630     *
5631     * @note All positioning inside the table is relative to rows and columns, so
5632     * a value of 0 for x and y, means the top left cell of the table, and a
5633     * value of 1 for w and h means @p subobj only takes that 1 cell.
5634     */
5635    EAPI void         elm_table_pack_set(Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
5636    /**
5637     * @brief Get the packing location of an existing child of the table
5638     *
5639     * @param subobj The subobject to be modified in the table
5640     * @param x Row number
5641     * @param y Column number
5642     * @param w rowspan
5643     * @param h colspan
5644     *
5645     * @see elm_table_pack_set()
5646     */
5647    EAPI void         elm_table_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
5648    /**
5649     * @}
5650     */
5651
5652    /**
5653     * @defgroup Gengrid Gengrid (Generic grid)
5654     *
5655     * This widget aims to position objects in a grid layout while
5656     * actually creating and rendering only the visible ones, using the
5657     * same idea as the @ref Genlist "genlist": the user defines a @b
5658     * class for each item, specifying functions that will be called at
5659     * object creation, deletion, etc. When those items are selected by
5660     * the user, a callback function is issued. Users may interact with
5661     * a gengrid via the mouse (by clicking on items to select them and
5662     * clicking on the grid's viewport and swiping to pan the whole
5663     * view) or via the keyboard, navigating through item with the
5664     * arrow keys.
5665     *
5666     * @section Gengrid_Layouts Gengrid layouts
5667     *
5668     * Gengrids may layout its items in one of two possible layouts:
5669     * - horizontal or
5670     * - vertical.
5671     *
5672     * When in "horizontal mode", items will be placed in @b columns,
5673     * from top to bottom and, when the space for a column is filled,
5674     * another one is started on the right, thus expanding the grid
5675     * horizontally, making for horizontal scrolling. When in "vertical
5676     * mode" , though, items will be placed in @b rows, from left to
5677     * right and, when the space for a row is filled, another one is
5678     * started below, thus expanding the grid vertically (and making
5679     * for vertical scrolling).
5680     *
5681     * @section Gengrid_Items Gengrid items
5682     *
5683     * An item in a gengrid can have 0 or more text labels (they can be
5684     * regular text or textblock Evas objects - that's up to the style
5685     * to determine), 0 or more icons (which are simply objects
5686     * swallowed into the gengrid item's theming Edje object) and 0 or
5687     * more <b>boolean states</b>, which have the behavior left to the
5688     * user to define. The Edje part names for each of these properties
5689     * will be looked up, in the theme file for the gengrid, under the
5690     * Edje (string) data items named @c "labels", @c "icons" and @c
5691     * "states", respectively. For each of those properties, if more
5692     * than one part is provided, they must have names listed separated
5693     * by spaces in the data fields. For the default gengrid item
5694     * theme, we have @b one label part (@c "elm.text"), @b two icon
5695     * parts (@c "elm.swalllow.icon" and @c "elm.swallow.end") and @b
5696     * no state parts.
5697     *
5698     * A gengrid item may be at one of several styles. Elementary
5699     * provides one by default - "default", but this can be extended by
5700     * system or application custom themes/overlays/extensions (see
5701     * @ref Theme "themes" for more details).
5702     *
5703     * @section Gengrid_Item_Class Gengrid item classes
5704     *
5705     * In order to have the ability to add and delete items on the fly,
5706     * gengrid implements a class (callback) system where the
5707     * application provides a structure with information about that
5708     * type of item (gengrid may contain multiple different items with
5709     * different classes, states and styles). Gengrid will call the
5710     * functions in this struct (methods) when an item is "realized"
5711     * (i.e., created dynamically, while the user is scrolling the
5712     * grid). All objects will simply be deleted when no longer needed
5713     * with evas_object_del(). The #Elm_GenGrid_Item_Class structure
5714     * contains the following members:
5715     * - @c item_style - This is a constant string and simply defines
5716     * the name of the item style. It @b must be specified and the
5717     * default should be @c "default".
5718     * - @c func.label_get - This function is called when an item
5719     * object is actually created. The @c data parameter will point to
5720     * the same data passed to elm_gengrid_item_append() and related
5721     * item creation functions. The @c obj parameter is the gengrid
5722     * object itself, while the @c part one is the name string of one
5723     * of the existing text parts in the Edje group implementing the
5724     * item's theme. This function @b must return a strdup'()ed string,
5725     * as the caller will free() it when done. See
5726     * #GridItemLabelGetFunc.
5727     * - @c func.icon_get - This function is called when an item object
5728     * is actually created. The @c data parameter will point to the
5729     * same data passed to elm_gengrid_item_append() and related item
5730     * creation functions. The @c obj parameter is the gengrid object
5731     * itself, while the @c part one is the name string of one of the
5732     * existing (icon) swallow parts in the Edje group implementing the
5733     * item's theme. It must return @c NULL, when no icon is desired,
5734     * or a valid object handle, otherwise. The object will be deleted
5735     * by the gengrid on its deletion or when the item is "unrealized".
5736     * See #GridItemIconGetFunc.
5737     * - @c func.state_get - This function is called when an item
5738     * object is actually created. The @c data parameter will point to
5739     * the same data passed to elm_gengrid_item_append() and related
5740     * item creation functions. The @c obj parameter is the gengrid
5741     * object itself, while the @c part one is the name string of one
5742     * of the state parts in the Edje group implementing the item's
5743     * theme. Return @c EINA_FALSE for false/off or @c EINA_TRUE for
5744     * true/on. Gengrids will emit a signal to its theming Edje object
5745     * with @c "elm,state,XXX,active" and @c "elm" as "emission" and
5746     * "source" arguments, respectively, when the state is true (the
5747     * default is false), where @c XXX is the name of the (state) part.
5748     * See #GridItemStateGetFunc.
5749     * - @c func.del - This is called when elm_gengrid_item_del() is
5750     * called on an item or elm_gengrid_clear() is called on the
5751     * gengrid. This is intended for use when gengrid items are
5752     * deleted, so any data attached to the item (e.g. its data
5753     * parameter on creation) can be deleted. See #GridItemDelFunc.
5754     *
5755     * @section Gengrid_Usage_Hints Usage hints
5756     *
5757     * If the user wants to have multiple items selected at the same
5758     * time, elm_gengrid_multi_select_set() will permit it. If the
5759     * gengrid is single-selection only (the default), then
5760     * elm_gengrid_select_item_get() will return the selected item or
5761     * @c NULL, if none is selected. If the gengrid is under
5762     * multi-selection, then elm_gengrid_selected_items_get() will
5763     * return a list (that is only valid as long as no items are
5764     * modified (added, deleted, selected or unselected) of child items
5765     * on a gengrid.
5766     *
5767     * If an item changes (internal (boolean) state, label or icon
5768     * changes), then use elm_gengrid_item_update() to have gengrid
5769     * update the item with the new state. A gengrid will re-"realize"
5770     * the item, thus calling the functions in the
5771     * #Elm_Gengrid_Item_Class set for that item.
5772     *
5773     * To programmatically (un)select an item, use
5774     * elm_gengrid_item_selected_set(). To get its selected state use
5775     * elm_gengrid_item_selected_get(). To make an item disabled
5776     * (unable to be selected and appear differently) use
5777     * elm_gengrid_item_disabled_set() to set this and
5778     * elm_gengrid_item_disabled_get() to get the disabled state.
5779     *
5780     * Grid cells will only have their selection smart callbacks called
5781     * when firstly getting selected. Any further clicks will do
5782     * nothing, unless you enable the "always select mode", with
5783     * elm_gengrid_always_select_mode_set(), thus making every click to
5784     * issue selection callbacks. elm_gengrid_no_select_mode_set() will
5785     * turn off the ability to select items entirely in the widget and
5786     * they will neither appear selected nor call the selection smart
5787     * callbacks.
5788     *
5789     * Remember that you can create new styles and add your own theme
5790     * augmentation per application with elm_theme_extension_add(). If
5791     * you absolutely must have a specific style that overrides any
5792     * theme the user or system sets up you can use
5793     * elm_theme_overlay_add() to add such a file.
5794     *
5795     * @section Gengrid_Smart_Events Gengrid smart events
5796     *
5797     * Smart events that you can add callbacks for are:
5798     * - @c "activated" - The user has double-clicked or pressed
5799     *   (enter|return|spacebar) on an item. The @c event_info parameter
5800     *   is the gengrid item that was activated.
5801     * - @c "clicked,double" - The user has double-clicked an item.
5802     *   The @c event_info parameter is the gengrid item that was double-clicked.
5803     * - @c "selected" - The user has made an item selected. The
5804     *   @c event_info parameter is the gengrid item that was selected.
5805     * - @c "unselected" - The user has made an item unselected. The
5806     *   @c event_info parameter is the gengrid item that was unselected.
5807     * - @c "realized" - This is called when the item in the gengrid
5808     *   has its implementing Evas object instantiated, de facto. @c
5809     *   event_info is the gengrid item that was created. The object
5810     *   may be deleted at any time, so it is highly advised to the
5811     *   caller @b not to use the object pointer returned from
5812     *   elm_gengrid_item_object_get(), because it may point to freed
5813     *   objects.
5814     * - @c "unrealized" - This is called when the implementing Evas
5815     *   object for this item is deleted. @c event_info is the gengrid
5816     *   item that was deleted.
5817     * - @c "changed" - Called when an item is added, removed, resized
5818     *   or moved and when the gengrid is resized or gets "horizontal"
5819     *   property changes.
5820     * - @c "drag,start,up" - Called when the item in the gengrid has
5821     *   been dragged (not scrolled) up.
5822     * - @c "drag,start,down" - Called when the item in the gengrid has
5823     *   been dragged (not scrolled) down.
5824     * - @c "drag,start,left" - Called when the item in the gengrid has
5825     *   been dragged (not scrolled) left.
5826     * - @c "drag,start,right" - Called when the item in the gengrid has
5827     *   been dragged (not scrolled) right.
5828     * - @c "drag,stop" - Called when the item in the gengrid has
5829     *   stopped being dragged.
5830     * - @c "drag" - Called when the item in the gengrid is being
5831     *   dragged.
5832     * - @c "scroll" - called when the content has been scrolled
5833     *   (moved).
5834     * - @c "scroll,drag,start" - called when dragging the content has
5835     *   started.
5836     * - @c "scroll,drag,stop" - called when dragging the content has
5837     *   stopped.
5838     *
5839     * List of gendrid examples:
5840     * @li @ref gengrid_example
5841     */
5842
5843    /**
5844     * @addtogroup Gengrid
5845     * @{
5846     */
5847
5848    typedef struct _Elm_Gengrid_Item_Class Elm_Gengrid_Item_Class; /**< Gengrid item class definition structs */
5849    typedef struct _Elm_Gengrid_Item_Class_Func Elm_Gengrid_Item_Class_Func; /**< Class functions for gengrid item classes. */
5850    typedef struct _Elm_Gengrid_Item Elm_Gengrid_Item; /**< Gengrid item handles */
5851    typedef char        *(*GridItemLabelGetFunc) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for gengrid item classes. */
5852    typedef Evas_Object *(*GridItemIconGetFunc)  (void *data, Evas_Object *obj, const char *part); /**< Icon fetching class function for gengrid item classes. */
5853    typedef Eina_Bool    (*GridItemStateGetFunc) (void *data, Evas_Object *obj, const char *part); /**< State fetching class function for gengrid item classes. */
5854    typedef void         (*GridItemDelFunc)      (void *data, Evas_Object *obj); /**< Deletion class function for gengrid item classes. */
5855
5856    /**
5857     * @struct _Elm_Gengrid_Item_Class
5858     *
5859     * Gengrid item class definition. See @ref Gengrid_Item_Class for
5860     * field details.
5861     */
5862    struct _Elm_Gengrid_Item_Class
5863      {
5864         const char             *item_style;
5865         struct _Elm_Gengrid_Item_Class_Func
5866           {
5867              GridItemLabelGetFunc  label_get;
5868              GridItemIconGetFunc   icon_get;
5869              GridItemStateGetFunc  state_get;
5870              GridItemDelFunc       del;
5871           } func;
5872      }; /**< #Elm_Gengrid_Item_Class member definitions */
5873
5874    /**
5875     * Add a new gengrid widget to the given parent Elementary
5876     * (container) object
5877     *
5878     * @param parent The parent object
5879     * @return a new gengrid widget handle or @c NULL, on errors
5880     *
5881     * This function inserts a new gengrid widget on the canvas.
5882     *
5883     * @see elm_gengrid_item_size_set()
5884     * @see elm_gengrid_horizontal_set()
5885     * @see elm_gengrid_item_append()
5886     * @see elm_gengrid_item_del()
5887     * @see elm_gengrid_clear()
5888     *
5889     * @ingroup Gengrid
5890     */
5891    EAPI Evas_Object       *elm_gengrid_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5892
5893    /**
5894     * Set the size for the items of a given gengrid widget
5895     *
5896     * @param obj The gengrid object.
5897     * @param w The items' width.
5898     * @param h The items' height;
5899     *
5900     * A gengrid, after creation, has still no information on the size
5901     * to give to each of its cells. So, you most probably will end up
5902     * with squares one @ref Fingers "finger" wide, the default
5903     * size. Use this function to force a custom size for you items,
5904     * making them as big as you wish.
5905     *
5906     * @see elm_gengrid_item_size_get()
5907     *
5908     * @ingroup Gengrid
5909     */
5910    EAPI void               elm_gengrid_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
5911
5912    /**
5913     * Get the size set for the items of a given gengrid widget
5914     *
5915     * @param obj The gengrid object.
5916     * @param w Pointer to a variable where to store the items' width.
5917     * @param h Pointer to a variable where to store the items' height.
5918     *
5919     * @note Use @c NULL pointers on the size values you're not
5920     * interested in: they'll be ignored by the function.
5921     *
5922     * @see elm_gengrid_item_size_get() for more details
5923     *
5924     * @ingroup Gengrid
5925     */
5926    EAPI void               elm_gengrid_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
5927
5928    /**
5929     * Set the items grid's alignment within a given gengrid widget
5930     *
5931     * @param obj The gengrid object.
5932     * @param align_x Alignment in the horizontal axis (0 <= align_x <= 1).
5933     * @param align_y Alignment in the vertical axis (0 <= align_y <= 1).
5934     *
5935     * This sets the alignment of the whole grid of items of a gengrid
5936     * within its given viewport. By default, those values are both
5937     * 0.5, meaning that the gengrid will have its items grid placed
5938     * exactly in the middle of its viewport.
5939     *
5940     * @note If given alignment values are out of the cited ranges,
5941     * they'll be changed to the nearest boundary values on the valid
5942     * ranges.
5943     *
5944     * @see elm_gengrid_align_get()
5945     *
5946     * @ingroup Gengrid
5947     */
5948    EAPI void               elm_gengrid_align_set(Evas_Object *obj, double align_x, double align_y) EINA_ARG_NONNULL(1);
5949
5950    /**
5951     * Get the items grid's alignment values within a given gengrid
5952     * widget
5953     *
5954     * @param obj The gengrid object.
5955     * @param align_x Pointer to a variable where to store the
5956     * horizontal alignment.
5957     * @param align_y Pointer to a variable where to store the vertical
5958     * alignment.
5959     *
5960     * @note Use @c NULL pointers on the alignment values you're not
5961     * interested in: they'll be ignored by the function.
5962     *
5963     * @see elm_gengrid_align_set() for more details
5964     *
5965     * @ingroup Gengrid
5966     */
5967    EAPI void               elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y) EINA_ARG_NONNULL(1);
5968
5969    /**
5970     * Set whether a given gengrid widget is or not able have items
5971     * @b reordered
5972     *
5973     * @param obj The gengrid object
5974     * @param reorder_mode Use @c EINA_TRUE to turn reoderding on,
5975     * @c EINA_FALSE to turn it off
5976     *
5977     * If a gengrid is set to allow reordering, a click held for more
5978     * than 0.5 over a given item will highlight it specially,
5979     * signalling the gengrid has entered the reordering state. From
5980     * that time on, the user will be able to, while still holding the
5981     * mouse button down, move the item freely in the gengrid's
5982     * viewport, replacing to said item to the locations it goes to.
5983     * The replacements will be animated and, whenever the user
5984     * releases the mouse button, the item being replaced gets a new
5985     * definitive place in the grid.
5986     *
5987     * @see elm_gengrid_reorder_mode_get()
5988     *
5989     * @ingroup Gengrid
5990     */
5991    EAPI void               elm_gengrid_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
5992
5993    /**
5994     * Get whether a given gengrid widget is or not able have items
5995     * @b reordered
5996     *
5997     * @param obj The gengrid object
5998     * @return @c EINA_TRUE, if reoderding is on, @c EINA_FALSE if it's
5999     * off
6000     *
6001     * @see elm_gengrid_reorder_mode_set() for more details
6002     *
6003     * @ingroup Gengrid
6004     */
6005    EAPI Eina_Bool          elm_gengrid_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6006
6007    /**
6008     * Append a new item in a given gengrid widget.
6009     *
6010     * @param obj The gengrid object.
6011     * @param gic The item class for the item.
6012     * @param data The item data.
6013     * @param func Convenience function called when the item is
6014     * selected.
6015     * @param func_data Data to be passed to @p func.
6016     * @return A handle to the item added or @c NULL, on errors.
6017     *
6018     * This adds an item to the beginning of the gengrid.
6019     *
6020     * @see elm_gengrid_item_prepend()
6021     * @see elm_gengrid_item_insert_before()
6022     * @see elm_gengrid_item_insert_after()
6023     * @see elm_gengrid_item_del()
6024     *
6025     * @ingroup Gengrid
6026     */
6027    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);
6028
6029    /**
6030     * Prepend a new item in a given gengrid widget.
6031     *
6032     * @param obj The gengrid object.
6033     * @param gic The item class for the item.
6034     * @param data The item data.
6035     * @param func Convenience function called when the item is
6036     * selected.
6037     * @param func_data Data to be passed to @p func.
6038     * @return A handle to the item added or @c NULL, on errors.
6039     *
6040     * This adds an item to the end of the gengrid.
6041     *
6042     * @see elm_gengrid_item_append()
6043     * @see elm_gengrid_item_insert_before()
6044     * @see elm_gengrid_item_insert_after()
6045     * @see elm_gengrid_item_del()
6046     *
6047     * @ingroup Gengrid
6048     */
6049    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);
6050
6051    /**
6052     * Insert an item before another in a gengrid widget
6053     *
6054     * @param obj The gengrid object.
6055     * @param gic The item class for the item.
6056     * @param data The item data.
6057     * @param relative The item to place this new one before.
6058     * @param func Convenience function called when the item is
6059     * selected.
6060     * @param func_data Data to be passed to @p func.
6061     * @return A handle to the item added or @c NULL, on errors.
6062     *
6063     * This inserts an item before another in the gengrid.
6064     *
6065     * @see elm_gengrid_item_append()
6066     * @see elm_gengrid_item_prepend()
6067     * @see elm_gengrid_item_insert_after()
6068     * @see elm_gengrid_item_del()
6069     *
6070     * @ingroup Gengrid
6071     */
6072    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);
6073
6074    /**
6075     * Insert an item after another in a gengrid widget
6076     *
6077     * @param obj The gengrid object.
6078     * @param gic The item class for the item.
6079     * @param data The item data.
6080     * @param relative The item to place this new one after.
6081     * @param func Convenience function called when the item is
6082     * selected.
6083     * @param func_data Data to be passed to @p func.
6084     * @return A handle to the item added or @c NULL, on errors.
6085     *
6086     * This inserts an item after another in the gengrid.
6087     *
6088     * @see elm_gengrid_item_append()
6089     * @see elm_gengrid_item_prepend()
6090     * @see elm_gengrid_item_insert_after()
6091     * @see elm_gengrid_item_del()
6092     *
6093     * @ingroup Gengrid
6094     */
6095    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);
6096
6097    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);
6098
6099    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);
6100
6101    /**
6102     * Set whether items on a given gengrid widget are to get their
6103     * selection callbacks issued for @b every subsequent selection
6104     * click on them or just for the first click.
6105     *
6106     * @param obj The gengrid object
6107     * @param always_select @c EINA_TRUE to make items "always
6108     * selected", @c EINA_FALSE, otherwise
6109     *
6110     * By default, grid items will only call their selection callback
6111     * function when firstly getting selected, any subsequent further
6112     * clicks will do nothing. With this call, you make those
6113     * subsequent clicks also to issue the selection callbacks.
6114     *
6115     * @note <b>Double clicks</b> will @b always be reported on items.
6116     *
6117     * @see elm_gengrid_always_select_mode_get()
6118     *
6119     * @ingroup Gengrid
6120     */
6121    EAPI void               elm_gengrid_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
6122
6123    /**
6124     * Get whether items on a given gengrid widget have their selection
6125     * callbacks issued for @b every subsequent selection click on them
6126     * or just for the first click.
6127     *
6128     * @param obj The gengrid object.
6129     * @return @c EINA_TRUE if the gengrid items are "always selected",
6130     * @c EINA_FALSE, otherwise
6131     *
6132     * @see elm_gengrid_always_select_mode_set() for more details
6133     *
6134     * @ingroup Gengrid
6135     */
6136    EAPI Eina_Bool          elm_gengrid_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6137
6138    /**
6139     * Set whether items on a given gengrid widget can be selected or not.
6140     *
6141     * @param obj The gengrid object
6142     * @param no_select @c EINA_TRUE to make items selectable,
6143     * @c EINA_FALSE otherwise
6144     *
6145     * This will make items in @p obj selectable or not. In the latter
6146     * case, any user interacion on the gendrid items will neither make
6147     * them appear selected nor them call their selection callback
6148     * functions.
6149     *
6150     * @see elm_gengrid_no_select_mode_get()
6151     *
6152     * @ingroup Gengrid
6153     */
6154    EAPI void               elm_gengrid_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
6155
6156    /**
6157     * Get whether items on a given gengrid widget can be selected or
6158     * not.
6159     *
6160     * @param obj The gengrid object
6161     * @return @c EINA_TRUE, if items are selectable, @c EINA_FALSE
6162     * otherwise
6163     *
6164     * @see elm_gengrid_no_select_mode_set() for more details
6165     *
6166     * @ingroup Gengrid
6167     */
6168    EAPI Eina_Bool          elm_gengrid_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6169
6170    /**
6171     * Enable or disable multi-selection in a given gengrid widget
6172     *
6173     * @param obj The gengrid object.
6174     * @param multi @c EINA_TRUE, to enable multi-selection,
6175     * @c EINA_FALSE to disable it.
6176     *
6177     * Multi-selection is the ability for one to have @b more than one
6178     * item selected, on a given gengrid, simultaneously. When it is
6179     * enabled, a sequence of clicks on different items will make them
6180     * all selected, progressively. A click on an already selected item
6181     * will unselect it. If interecting via the keyboard,
6182     * multi-selection is enabled while holding the "Shift" key.
6183     *
6184     * @note By default, multi-selection is @b disabled on gengrids
6185     *
6186     * @see elm_gengrid_multi_select_get()
6187     *
6188     * @ingroup Gengrid
6189     */
6190    EAPI void               elm_gengrid_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
6191
6192    /**
6193     * Get whether multi-selection is enabled or disabled for a given
6194     * gengrid widget
6195     *
6196     * @param obj The gengrid object.
6197     * @return @c EINA_TRUE, if multi-selection is enabled, @c
6198     * EINA_FALSE otherwise
6199     *
6200     * @see elm_gengrid_multi_select_set() for more details
6201     *
6202     * @ingroup Gengrid
6203     */
6204    EAPI Eina_Bool          elm_gengrid_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6205
6206    /**
6207     * Enable or disable bouncing effect for a given gengrid widget
6208     *
6209     * @param obj The gengrid object
6210     * @param h_bounce @c EINA_TRUE, to enable @b horizontal bouncing,
6211     * @c EINA_FALSE to disable it
6212     * @param v_bounce @c EINA_TRUE, to enable @b vertical bouncing,
6213     * @c EINA_FALSE to disable it
6214     *
6215     * The bouncing effect occurs whenever one reaches the gengrid's
6216     * edge's while panning it -- it will scroll past its limits a
6217     * little bit and return to the edge again, in a animated for,
6218     * automatically.
6219     *
6220     * @note By default, gengrids have bouncing enabled on both axis
6221     *
6222     * @see elm_gengrid_bounce_get()
6223     *
6224     * @ingroup Gengrid
6225     */
6226    EAPI void               elm_gengrid_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
6227
6228    /**
6229     * Get whether bouncing effects are enabled or disabled, for a
6230     * given gengrid widget, on each axis
6231     *
6232     * @param obj The gengrid object
6233     * @param h_bounce Pointer to a variable where to store the
6234     * horizontal bouncing flag.
6235     * @param v_bounce Pointer to a variable where to store the
6236     * vertical bouncing flag.
6237     *
6238     * @see elm_gengrid_bounce_set() for more details
6239     *
6240     * @ingroup Gengrid
6241     */
6242    EAPI void               elm_gengrid_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
6243
6244    /**
6245     * Set a given gengrid widget's scrolling page size, relative to
6246     * its viewport size.
6247     *
6248     * @param obj The gengrid object
6249     * @param h_pagerel The horizontal page (relative) size
6250     * @param v_pagerel The vertical page (relative) size
6251     *
6252     * The gengrid's scroller is capable of binding scrolling by the
6253     * user to "pages". It means that, while scrolling and, specially
6254     * after releasing the mouse button, the grid will @b snap to the
6255     * nearest displaying page's area. When page sizes are set, the
6256     * grid's continuous content area is split into (equal) page sized
6257     * pieces.
6258     *
6259     * This function sets the size of a page <b>relatively to the
6260     * viewport dimensions</b> of the gengrid, for each axis. A value
6261     * @c 1.0 means "the exact viewport's size", in that axis, while @c
6262     * 0.0 turns paging off in that axis. Likewise, @c 0.5 means "half
6263     * a viewport". Sane usable values are, than, between @c 0.0 and @c
6264     * 1.0. Values beyond those will make it behave behave
6265     * inconsistently. If you only want one axis to snap to pages, use
6266     * the value @c 0.0 for the other one.
6267     *
6268     * There is a function setting page size values in @b absolute
6269     * values, too -- elm_gengrid_page_size_set(). Naturally, its use
6270     * is mutually exclusive to this one.
6271     *
6272     * @see elm_gengrid_page_relative_get()
6273     *
6274     * @ingroup Gengrid
6275     */
6276    EAPI void               elm_gengrid_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
6277
6278    /**
6279     * Get a given gengrid widget's scrolling page size, relative to
6280     * its viewport size.
6281     *
6282     * @param obj The gengrid object
6283     * @param h_pagerel Pointer to a variable where to store the
6284     * horizontal page (relative) size
6285     * @param v_pagerel Pointer to a variable where to store the
6286     * vertical page (relative) size
6287     *
6288     * @see elm_gengrid_page_relative_set() for more details
6289     *
6290     * @ingroup Gengrid
6291     */
6292    EAPI void               elm_gengrid_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel) EINA_ARG_NONNULL(1);
6293
6294    /**
6295     * Set a given gengrid widget's scrolling page size
6296     *
6297     * @param obj The gengrid object
6298     * @param h_pagerel The horizontal page size, in pixels
6299     * @param v_pagerel The vertical page size, in pixels
6300     *
6301     * The gengrid's scroller is capable of binding scrolling by the
6302     * user to "pages". It means that, while scrolling and, specially
6303     * after releasing the mouse button, the grid will @b snap to the
6304     * nearest displaying page's area. When page sizes are set, the
6305     * grid's continuous content area is split into (equal) page sized
6306     * pieces.
6307     *
6308     * This function sets the size of a page of the gengrid, in pixels,
6309     * for each axis. Sane usable values are, between @c 0 and the
6310     * dimensions of @p obj, for each axis. Values beyond those will
6311     * make it behave behave inconsistently. If you only want one axis
6312     * to snap to pages, use the value @c 0 for the other one.
6313     *
6314     * There is a function setting page size values in @b relative
6315     * values, too -- elm_gengrid_page_relative_set(). Naturally, its
6316     * use is mutually exclusive to this one.
6317     *
6318     * @ingroup Gengrid
6319     */
6320    EAPI void               elm_gengrid_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
6321
6322    /**
6323     * Set for what direction a given gengrid widget will expand while
6324     * placing its items.
6325     *
6326     * @param obj The gengrid object.
6327     * @param setting @c EINA_TRUE to make the gengrid expand
6328     * horizontally, @c EINA_FALSE to expand vertically.
6329     *
6330     * When in "horizontal mode" (@c EINA_TRUE), items will be placed
6331     * in @b columns, from top to bottom and, when the space for a
6332     * column is filled, another one is started on the right, thus
6333     * expanding the grid horizontally. When in "vertical mode"
6334     * (@c EINA_FALSE), though, items will be placed in @b rows, from left
6335     * to right and, when the space for a row is filled, another one is
6336     * started below, thus expanding the grid vertically.
6337     *
6338     * @see elm_gengrid_horizontal_get()
6339     *
6340     * @ingroup Gengrid
6341     */
6342    EAPI void               elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
6343
6344    /**
6345     * Get for what direction a given gengrid widget will expand while
6346     * placing its items.
6347     *
6348     * @param obj The gengrid object.
6349     * @return @c EINA_TRUE, if @p obj is set to expand horizontally,
6350     * @c EINA_FALSE if it's set to expand vertically.
6351     *
6352     * @see elm_gengrid_horizontal_set() for more detais
6353     *
6354     * @ingroup Gengrid
6355     */
6356    EAPI Eina_Bool          elm_gengrid_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6357
6358    /**
6359     * Get the first item in a given gengrid widget
6360     *
6361     * @param obj The gengrid object
6362     * @return The first item's handle or @c NULL, if there are no
6363     * items in @p obj (and on errors)
6364     *
6365     * This returns the first item in the @p obj's internal list of
6366     * items.
6367     *
6368     * @see elm_gengrid_last_item_get()
6369     *
6370     * @ingroup Gengrid
6371     */
6372    EAPI Elm_Gengrid_Item  *elm_gengrid_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6373
6374    /**
6375     * Get the last item in a given gengrid widget
6376     *
6377     * @param obj The gengrid object
6378     * @return The last item's handle or @c NULL, if there are no
6379     * items in @p obj (and on errors)
6380     *
6381     * This returns the last item in the @p obj's internal list of
6382     * items.
6383     *
6384     * @see elm_gengrid_first_item_get()
6385     *
6386     * @ingroup Gengrid
6387     */
6388    EAPI Elm_Gengrid_Item  *elm_gengrid_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6389
6390    /**
6391     * Get the @b next item in a gengrid widget's internal list of items,
6392     * given a handle to one of those items.
6393     *
6394     * @param item The gengrid item to fetch next from
6395     * @return The item after @p item, or @c NULL if there's none (and
6396     * on errors)
6397     *
6398     * This returns the item placed after the @p item, on the container
6399     * gengrid.
6400     *
6401     * @see elm_gengrid_item_prev_get()
6402     *
6403     * @ingroup Gengrid
6404     */
6405    EAPI Elm_Gengrid_Item  *elm_gengrid_item_next_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
6406
6407    /**
6408     * Get the @b previous item in a gengrid widget's internal list of items,
6409     * given a handle to one of those items.
6410     *
6411     * @param item The gengrid item to fetch previous from
6412     * @return The item before @p item, or @c NULL if there's none (and
6413     * on errors)
6414     *
6415     * This returns the item placed before the @p item, on the container
6416     * gengrid.
6417     *
6418     * @see elm_gengrid_item_next_get()
6419     *
6420     * @ingroup Gengrid
6421     */
6422    EAPI Elm_Gengrid_Item  *elm_gengrid_item_prev_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
6423
6424    /**
6425     * Get the gengrid object's handle which contains a given gengrid
6426     * item
6427     *
6428     * @param item The item to fetch the container from
6429     * @return The gengrid (parent) object
6430     *
6431     * This returns the gengrid object itself that an item belongs to.
6432     *
6433     * @ingroup Gengrid
6434     */
6435    EAPI Evas_Object       *elm_gengrid_item_gengrid_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
6436
6437    /**
6438     * Remove a gengrid item from the its parent, deleting it.
6439     *
6440     * @param item The item to be removed.
6441     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
6442     *
6443     * @see elm_gengrid_clear(), to remove all items in a gengrid at
6444     * once.
6445     *
6446     * @ingroup Gengrid
6447     */
6448    EAPI void               elm_gengrid_item_del(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
6449
6450    /**
6451     * Update the contents of a given gengrid item
6452     *
6453     * @param item The gengrid item
6454     *
6455     * This updates an item by calling all the item class functions
6456     * again to get the icons, labels and states. Use this when the
6457     * original item data has changed and you want thta changes to be
6458     * reflected.
6459     *
6460     * @ingroup Gengrid
6461     */
6462    EAPI void               elm_gengrid_item_update(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
6463    EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
6464    EAPI void               elm_gengrid_item_item_class_set(Elm_Gengrid_Item *item, const Elm_Gengrid_Item_Class *gic) EINA_ARG_NONNULL(1, 2);
6465
6466    /**
6467     * Return the data associated to a given gengrid item
6468     *
6469     * @param item The gengrid item.
6470     * @return the data associated to this item.
6471     *
6472     * This returns the @c data value passed on the
6473     * elm_gengrid_item_append() and related item addition calls.
6474     *
6475     * @see elm_gengrid_item_append()
6476     * @see elm_gengrid_item_data_set()
6477     *
6478     * @ingroup Gengrid
6479     */
6480    EAPI void              *elm_gengrid_item_data_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
6481
6482    /**
6483     * Set the data associated to a given gengrid item
6484     *
6485     * @param item The gengrid item
6486     * @param data The new data pointer to set on it
6487     *
6488     * This @b overrides the @c data value passed on the
6489     * elm_gengrid_item_append() and related item addition calls. This
6490     * function @b won't call elm_gengrid_item_update() automatically,
6491     * so you'd issue it afterwards if you want to hove the item
6492     * updated to reflect the that new data.
6493     *
6494     * @see elm_gengrid_item_data_get()
6495     *
6496     * @ingroup Gengrid
6497     */
6498    EAPI void               elm_gengrid_item_data_set(Elm_Gengrid_Item *item, const void *data) EINA_ARG_NONNULL(1);
6499
6500    /**
6501     * Get a given gengrid item's position, relative to the whole
6502     * gengrid's grid area.
6503     *
6504     * @param item The Gengrid item.
6505     * @param x Pointer to variable where to store the item's <b>row
6506     * number</b>.
6507     * @param y Pointer to variable where to store the item's <b>column
6508     * number</b>.
6509     *
6510     * This returns the "logical" position of the item whithin the
6511     * gengrid. For example, @c (0, 1) would stand for first row,
6512     * second column.
6513     *
6514     * @ingroup Gengrid
6515     */
6516    EAPI void               elm_gengrid_item_pos_get(const Elm_Gengrid_Item *item, unsigned int *x, unsigned int *y) EINA_ARG_NONNULL(1);
6517
6518    /**
6519     * Set whether a given gengrid item is selected or not
6520     *
6521     * @param item The gengrid item
6522     * @param selected Use @c EINA_TRUE, to make it selected, @c
6523     * EINA_FALSE to make it unselected
6524     *
6525     * This sets the selected state of an item. If multi selection is
6526     * not enabled on the containing gengrid and @p selected is @c
6527     * EINA_TRUE, any other previously selected items will get
6528     * unselected in favor of this new one.
6529     *
6530     * @see elm_gengrid_item_selected_get()
6531     *
6532     * @ingroup Gengrid
6533     */
6534    EAPI void               elm_gengrid_item_selected_set(Elm_Gengrid_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
6535
6536    /**
6537     * Get whether a given gengrid item is selected or not
6538     *
6539     * @param item The gengrid item
6540     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
6541     *
6542     * @see elm_gengrid_item_selected_set() for more details
6543     *
6544     * @ingroup Gengrid
6545     */
6546    EAPI Eina_Bool          elm_gengrid_item_selected_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
6547
6548    /**
6549     * Get the real Evas object created to implement the view of a
6550     * given gengrid item
6551     *
6552     * @param item The gengrid item.
6553     * @return the Evas object implementing this item's view.
6554     *
6555     * This returns the actual Evas object used to implement the
6556     * specified gengrid item's view. This may be @c NULL, as it may
6557     * not have been created or may have been deleted, at any time, by
6558     * the gengrid. <b>Do not modify this object</b> (move, resize,
6559     * show, hide, etc.), as the gengrid is controlling it. This
6560     * function is for querying, emitting custom signals or hooking
6561     * lower level callbacks for events on that object. Do not delete
6562     * this object under any circumstances.
6563     *
6564     * @see elm_gengrid_item_data_get()
6565     *
6566     * @ingroup Gengrid
6567     */
6568    EAPI const Evas_Object *elm_gengrid_item_object_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
6569
6570    /**
6571     * Show the portion of a gengrid's internal grid containing a given
6572     * item, @b immediately.
6573     *
6574     * @param item The item to display
6575     *
6576     * This causes gengrid to @b redraw its viewport's contents to the
6577     * region contining the given @p item item, if it is not fully
6578     * visible.
6579     *
6580     * @see elm_gengrid_item_bring_in()
6581     *
6582     * @ingroup Gengrid
6583     */
6584    EAPI void               elm_gengrid_item_show(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
6585
6586    /**
6587     * Animatedly bring in, to the visible are of a gengrid, a given
6588     * item on it.
6589     *
6590     * @param item The gengrid item to display
6591     *
6592     * This causes gengrig to jump to the given @p item item and show
6593     * it (by scrolling), if it is not fully visible. This will use
6594     * animation to do so and take a period of time to complete.
6595     *
6596     * @see elm_gengrid_item_show()
6597     *
6598     * @ingroup Gengrid
6599     */
6600    EAPI void               elm_gengrid_item_bring_in(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
6601
6602    /**
6603     * Set whether a given gengrid item is disabled or not.
6604     *
6605     * @param item The gengrid item
6606     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
6607     * to enable it back.
6608     *
6609     * A disabled item cannot be selected or unselected. It will also
6610     * change its appearance, to signal the user it's disabled.
6611     *
6612     * @see elm_gengrid_item_disabled_get()
6613     *
6614     * @ingroup Gengrid
6615     */
6616    EAPI void               elm_gengrid_item_disabled_set(Elm_Gengrid_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
6617
6618    /**
6619     * Get whether a given gengrid item is disabled or not.
6620     *
6621     * @param item The gengrid item
6622     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
6623     * (and on errors).
6624     *
6625     * @see elm_gengrid_item_disabled_set() for more details
6626     *
6627     * @ingroup Gengrid
6628     */
6629    EAPI Eina_Bool          elm_gengrid_item_disabled_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
6630
6631    /**
6632     * Set the text to be shown in a given gengrid item's tooltips.
6633     *
6634     * @param item The gengrid item
6635     * @param text The text to set in the content
6636     *
6637     * This call will setup the text to be used as tooltip to that item
6638     * (analogous to elm_object_tooltip_text_set(), but being item
6639     * tooltips with higher precedence than object tooltips). It can
6640     * have only one tooltip at a time, so any previous tooltip data
6641     * will get removed.
6642     *
6643     * @ingroup Gengrid
6644     */
6645    EAPI void               elm_gengrid_item_tooltip_text_set(Elm_Gengrid_Item *item, const char *text) EINA_ARG_NONNULL(1);
6646
6647    /**
6648     * Set the content to be shown in a given gengrid item's tooltips
6649     *
6650     * @param item The gengrid item.
6651     * @param func The function returning the tooltip contents.
6652     * @param data What to provide to @a func as callback data/context.
6653     * @param del_cb Called when data is not needed anymore, either when
6654     *        another callback replaces @p func, the tooltip is unset with
6655     *        elm_gengrid_item_tooltip_unset() or the owner @p item
6656     *        dies. This callback receives as its first parameter the
6657     *        given @p data, being @c event_info the item handle.
6658     *
6659     * This call will setup the tooltip's contents to @p item
6660     * (analogous to elm_object_tooltip_content_cb_set(), but being
6661     * item tooltips with higher precedence than object tooltips). It
6662     * can have only one tooltip at a time, so any previous tooltip
6663     * content will get removed. @p func (with @p data) will be called
6664     * every time Elementary needs to show the tooltip and it should
6665     * return a valid Evas object, which will be fully managed by the
6666     * tooltip system, getting deleted when the tooltip is gone.
6667     *
6668     * @ingroup Gengrid
6669     */
6670    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);
6671
6672    /**
6673     * Unset a tooltip from a given gengrid item
6674     *
6675     * @param item gengrid item to remove a previously set tooltip from.
6676     *
6677     * This call removes any tooltip set on @p item. The callback
6678     * provided as @c del_cb to
6679     * elm_gengrid_item_tooltip_content_cb_set() will be called to
6680     * notify it is not used anymore (and have resources cleaned, if
6681     * need be).
6682     *
6683     * @see elm_gengrid_item_tooltip_content_cb_set()
6684     *
6685     * @ingroup Gengrid
6686     */
6687    EAPI void               elm_gengrid_item_tooltip_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
6688
6689    /**
6690     * Set a different @b style for a given gengrid item's tooltip.
6691     *
6692     * @param item gengrid item with tooltip set
6693     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
6694     * "default", @c "transparent", etc)
6695     *
6696     * Tooltips can have <b>alternate styles</b> to be displayed on,
6697     * which are defined by the theme set on Elementary. This function
6698     * works analogously as elm_object_tooltip_style_set(), but here
6699     * applied only to gengrid item objects. The default style for
6700     * tooltips is @c "default".
6701     *
6702     * @note before you set a style you should define a tooltip with
6703     *       elm_gengrid_item_tooltip_content_cb_set() or
6704     *       elm_gengrid_item_tooltip_text_set()
6705     *
6706     * @see elm_gengrid_item_tooltip_style_get()
6707     *
6708     * @ingroup Gengrid
6709     */
6710    EAPI void               elm_gengrid_item_tooltip_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
6711
6712    /**
6713     * Get the style set a given gengrid item's tooltip.
6714     *
6715     * @param item gengrid item with tooltip already set on.
6716     * @return style the theme style in use, which defaults to
6717     *         "default". If the object does not have a tooltip set,
6718     *         then @c NULL is returned.
6719     *
6720     * @see elm_gengrid_item_tooltip_style_set() for more details
6721     *
6722     * @ingroup Gengrid
6723     */
6724    EAPI const char        *elm_gengrid_item_tooltip_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
6725    /**
6726     * @brief Disable size restrictions on an object's tooltip
6727     * @param item The tooltip's anchor object
6728     * @param disable If EINA_TRUE, size restrictions are disabled
6729     * @return EINA_FALSE on failure, EINA_TRUE on success
6730     *
6731     * This function allows a tooltip to expand beyond its parant window's canvas.
6732     * It will instead be limited only by the size of the display.
6733     */
6734    EAPI Eina_Bool          elm_gengrid_item_tooltip_size_restrict_disable(Elm_Gengrid_Item *item, Eina_Bool disable);
6735    /**
6736     * @brief Retrieve size restriction state of an object's tooltip
6737     * @param item The tooltip's anchor object
6738     * @return If EINA_TRUE, size restrictions are disabled
6739     *
6740     * This function returns whether a tooltip is allowed to expand beyond
6741     * its parant window's canvas.
6742     * It will instead be limited only by the size of the display.
6743     */
6744    EAPI Eina_Bool          elm_gengrid_item_tooltip_size_restrict_disabled_get(const Elm_Gengrid_Item *item);
6745    /**
6746     * Set the type of mouse pointer/cursor decoration to be shown,
6747     * when the mouse pointer is over the given gengrid widget item
6748     *
6749     * @param item gengrid item to customize cursor on
6750     * @param cursor the cursor type's name
6751     *
6752     * This function works analogously as elm_object_cursor_set(), but
6753     * here the cursor's changing area is restricted to the item's
6754     * area, and not the whole widget's. Note that that item cursors
6755     * have precedence over widget cursors, so that a mouse over @p
6756     * item will always show cursor @p type.
6757     *
6758     * If this function is called twice for an object, a previously set
6759     * cursor will be unset on the second call.
6760     *
6761     * @see elm_object_cursor_set()
6762     * @see elm_gengrid_item_cursor_get()
6763     * @see elm_gengrid_item_cursor_unset()
6764     *
6765     * @ingroup Gengrid
6766     */
6767    EAPI void               elm_gengrid_item_cursor_set(Elm_Gengrid_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
6768
6769    /**
6770     * Get the type of mouse pointer/cursor decoration set to be shown,
6771     * when the mouse pointer is over the given gengrid widget item
6772     *
6773     * @param item gengrid item with custom cursor set
6774     * @return the cursor type's name or @c NULL, if no custom cursors
6775     * were set to @p item (and on errors)
6776     *
6777     * @see elm_object_cursor_get()
6778     * @see elm_gengrid_item_cursor_set() for more details
6779     * @see elm_gengrid_item_cursor_unset()
6780     *
6781     * @ingroup Gengrid
6782     */
6783    EAPI const char        *elm_gengrid_item_cursor_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
6784
6785    /**
6786     * Unset any custom mouse pointer/cursor decoration set to be
6787     * shown, when the mouse pointer is over the given gengrid widget
6788     * item, thus making it show the @b default cursor again.
6789     *
6790     * @param item a gengrid item
6791     *
6792     * Use this call to undo any custom settings on this item's cursor
6793     * decoration, bringing it back to defaults (no custom style set).
6794     *
6795     * @see elm_object_cursor_unset()
6796     * @see elm_gengrid_item_cursor_set() for more details
6797     *
6798     * @ingroup Gengrid
6799     */
6800    EAPI void               elm_gengrid_item_cursor_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
6801
6802    /**
6803     * Set a different @b style for a given custom cursor set for a
6804     * gengrid item.
6805     *
6806     * @param item gengrid item with custom cursor set
6807     * @param style the <b>theme style</b> to use (e.g. @c "default",
6808     * @c "transparent", etc)
6809     *
6810     * This function only makes sense when one is using custom mouse
6811     * cursor decorations <b>defined in a theme file</b> , which can
6812     * have, given a cursor name/type, <b>alternate styles</b> on
6813     * it. It works analogously as elm_object_cursor_style_set(), but
6814     * here applied only to gengrid item objects.
6815     *
6816     * @warning Before you set a cursor style you should have defined a
6817     *       custom cursor previously on the item, with
6818     *       elm_gengrid_item_cursor_set()
6819     *
6820     * @see elm_gengrid_item_cursor_engine_only_set()
6821     * @see elm_gengrid_item_cursor_style_get()
6822     *
6823     * @ingroup Gengrid
6824     */
6825    EAPI void               elm_gengrid_item_cursor_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
6826
6827    /**
6828     * Get the current @b style set for a given gengrid item's custom
6829     * cursor
6830     *
6831     * @param item gengrid item with custom cursor set.
6832     * @return style the cursor style in use. If the object does not
6833     *         have a cursor set, then @c NULL is returned.
6834     *
6835     * @see elm_gengrid_item_cursor_style_set() for more details
6836     *
6837     * @ingroup Gengrid
6838     */
6839    EAPI const char        *elm_gengrid_item_cursor_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
6840
6841    /**
6842     * Set if the (custom) cursor for a given gengrid item should be
6843     * searched in its theme, also, or should only rely on the
6844     * rendering engine.
6845     *
6846     * @param item item with custom (custom) cursor already set on
6847     * @param engine_only Use @c EINA_TRUE to have cursors looked for
6848     * only on those provided by the rendering engine, @c EINA_FALSE to
6849     * have them searched on the widget's theme, as well.
6850     *
6851     * @note This call is of use only if you've set a custom cursor
6852     * for gengrid items, with elm_gengrid_item_cursor_set().
6853     *
6854     * @note By default, cursors will only be looked for between those
6855     * provided by the rendering engine.
6856     *
6857     * @ingroup Gengrid
6858     */
6859    EAPI void               elm_gengrid_item_cursor_engine_only_set(Elm_Gengrid_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
6860
6861    /**
6862     * Get if the (custom) cursor for a given gengrid item is being
6863     * searched in its theme, also, or is only relying on the rendering
6864     * engine.
6865     *
6866     * @param item a gengrid item
6867     * @return @c EINA_TRUE, if cursors are being looked for only on
6868     * those provided by the rendering engine, @c EINA_FALSE if they
6869     * are being searched on the widget's theme, as well.
6870     *
6871     * @see elm_gengrid_item_cursor_engine_only_set(), for more details
6872     *
6873     * @ingroup Gengrid
6874     */
6875    EAPI Eina_Bool          elm_gengrid_item_cursor_engine_only_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
6876
6877    /**
6878     * Remove all items from a given gengrid widget
6879     *
6880     * @param obj The gengrid object.
6881     *
6882     * This removes (and deletes) all items in @p obj, leaving it
6883     * empty.
6884     *
6885     * @see elm_gengrid_item_del(), to remove just one item.
6886     *
6887     * @ingroup Gengrid
6888     */
6889    EAPI void               elm_gengrid_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
6890
6891    /**
6892     * Get the selected item in a given gengrid widget
6893     *
6894     * @param obj The gengrid object.
6895     * @return The selected item's handleor @c NULL, if none is
6896     * selected at the moment (and on errors)
6897     *
6898     * This returns the selected item in @p obj. If multi selection is
6899     * enabled on @p obj (@see elm_gengrid_multi_select_set()), only
6900     * the first item in the list is selected, which might not be very
6901     * useful. For that case, see elm_gengrid_selected_items_get().
6902     *
6903     * @ingroup Gengrid
6904     */
6905    EAPI Elm_Gengrid_Item  *elm_gengrid_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6906
6907    /**
6908     * Get <b>a list</b> of selected items in a given gengrid
6909     *
6910     * @param obj The gengrid object.
6911     * @return The list of selected items or @c NULL, if none is
6912     * selected at the moment (and on errors)
6913     *
6914     * This returns a list of the selected items, in the order that
6915     * they appear in the grid. This list is only valid as long as no
6916     * more items are selected or unselected (or unselected implictly
6917     * by deletion). The list contains #Elm_Gengrid_Item pointers as
6918     * data, naturally.
6919     *
6920     * @see elm_gengrid_selected_item_get()
6921     *
6922     * @ingroup Gengrid
6923     */
6924    EAPI const Eina_List   *elm_gengrid_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6925
6926    /**
6927     * @}
6928     */
6929
6930    /**
6931     * @defgroup Clock Clock
6932     *
6933     * @image html img/widget/clock/preview-00.png
6934     * @image latex img/widget/clock/preview-00.eps
6935     *
6936     * This is a @b digital clock widget. In its default theme, it has a
6937     * vintage "flipping numbers clock" appearance, which will animate
6938     * sheets of individual algarisms individually as time goes by.
6939     *
6940     * A newly created clock will fetch system's time (already
6941     * considering local time adjustments) to start with, and will tick
6942     * accondingly. It may or may not show seconds.
6943     *
6944     * Clocks have an @b edition mode. When in it, the sheets will
6945     * display extra arrow indications on the top and bottom and the
6946     * user may click on them to raise or lower the time values. After
6947     * it's told to exit edition mode, it will keep ticking with that
6948     * new time set (it keeps the difference from local time).
6949     *
6950     * Also, when under edition mode, user clicks on the cited arrows
6951     * which are @b held for some time will make the clock to flip the
6952     * sheet, thus editing the time, continuosly and automatically for
6953     * the user. The interval between sheet flips will keep growing in
6954     * time, so that it helps the user to reach a time which is distant
6955     * from the one set.
6956     *
6957     * The time display is, by default, in military mode (24h), but an
6958     * am/pm indicator may be optionally shown, too, when it will
6959     * switch to 12h.
6960     *
6961     * Smart callbacks one can register to:
6962     * - "changed" - the clock's user changed the time
6963     *
6964     * Here is an example on its usage:
6965     * @li @ref clock_example
6966     */
6967
6968    /**
6969     * @addtogroup Clock
6970     * @{
6971     */
6972
6973    /**
6974     * Identifiers for which clock digits should be editable, when a
6975     * clock widget is in edition mode. Values may be ORed together to
6976     * make a mask, naturally.
6977     *
6978     * @see elm_clock_edit_set()
6979     * @see elm_clock_digit_edit_set()
6980     */
6981    typedef enum _Elm_Clock_Digedit
6982      {
6983         ELM_CLOCK_NONE         = 0, /**< Default value. Means that all digits are editable, when in edition mode. */
6984         ELM_CLOCK_HOUR_DECIMAL = 1 << 0, /**< Decimal algarism of hours value should be editable */
6985         ELM_CLOCK_HOUR_UNIT    = 1 << 1, /**< Unit algarism of hours value should be editable */
6986         ELM_CLOCK_MIN_DECIMAL  = 1 << 2, /**< Decimal algarism of minutes value should be editable */
6987         ELM_CLOCK_MIN_UNIT     = 1 << 3, /**< Unit algarism of minutes value should be editable */
6988         ELM_CLOCK_SEC_DECIMAL  = 1 << 4, /**< Decimal algarism of seconds value should be editable */
6989         ELM_CLOCK_SEC_UNIT     = 1 << 5, /**< Unit algarism of seconds value should be editable */
6990         ELM_CLOCK_ALL          = (1 << 6) - 1 /**< All digits should be editable */
6991      } Elm_Clock_Digedit;
6992
6993    /**
6994     * Add a new clock widget to the given parent Elementary
6995     * (container) object
6996     *
6997     * @param parent The parent object
6998     * @return a new clock widget handle or @c NULL, on errors
6999     *
7000     * This function inserts a new clock widget on the canvas.
7001     *
7002     * @ingroup Clock
7003     */
7004    EAPI Evas_Object      *elm_clock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7005
7006    /**
7007     * Set a clock widget's time, programmatically
7008     *
7009     * @param obj The clock widget object
7010     * @param hrs The hours to set
7011     * @param min The minutes to set
7012     * @param sec The secondes to set
7013     *
7014     * This function updates the time that is showed by the clock
7015     * widget.
7016     *
7017     *  Values @b must be set within the following ranges:
7018     * - 0 - 23, for hours
7019     * - 0 - 59, for minutes
7020     * - 0 - 59, for seconds,
7021     *
7022     * even if the clock is not in "military" mode.
7023     *
7024     * @warning The behavior for values set out of those ranges is @b
7025     * indefined.
7026     *
7027     * @ingroup Clock
7028     */
7029    EAPI void              elm_clock_time_set(Evas_Object *obj, int hrs, int min, int sec) EINA_ARG_NONNULL(1);
7030
7031    /**
7032     * Get a clock widget's time values
7033     *
7034     * @param obj The clock object
7035     * @param[out] hrs Pointer to the variable to get the hours value
7036     * @param[out] min Pointer to the variable to get the minutes value
7037     * @param[out] sec Pointer to the variable to get the seconds value
7038     *
7039     * This function gets the time set for @p obj, returning
7040     * it on the variables passed as the arguments to function
7041     *
7042     * @note Use @c NULL pointers on the time values you're not
7043     * interested in: they'll be ignored by the function.
7044     *
7045     * @ingroup Clock
7046     */
7047    EAPI void              elm_clock_time_get(const Evas_Object *obj, int *hrs, int *min, int *sec) EINA_ARG_NONNULL(1);
7048
7049    /**
7050     * Set whether a given clock widget is under <b>edition mode</b> or
7051     * under (default) displaying-only mode.
7052     *
7053     * @param obj The clock object
7054     * @param edit @c EINA_TRUE to put it in edition, @c EINA_FALSE to
7055     * put it back to "displaying only" mode
7056     *
7057     * This function makes a clock's time to be editable or not <b>by
7058     * user interaction</b>. When in edition mode, clocks @b stop
7059     * ticking, until one brings them back to canonical mode. The
7060     * elm_clock_digit_edit_set() function will influence which digits
7061     * of the clock will be editable. By default, all of them will be
7062     * (#ELM_CLOCK_NONE).
7063     *
7064     * @note am/pm sheets, if being shown, will @b always be editable
7065     * under edition mode.
7066     *
7067     * @see elm_clock_edit_get()
7068     *
7069     * @ingroup Clock
7070     */
7071    EAPI void              elm_clock_edit_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
7072
7073    /**
7074     * Retrieve whether a given clock widget is under <b>edition
7075     * mode</b> or under (default) displaying-only mode.
7076     *
7077     * @param obj The clock object
7078     * @param edit @c EINA_TRUE, if it's in edition mode, @c EINA_FALSE
7079     * otherwise
7080     *
7081     * This function retrieves whether the clock's time can be edited
7082     * or not by user interaction.
7083     *
7084     * @see elm_clock_edit_set() for more details
7085     *
7086     * @ingroup Clock
7087     */
7088    EAPI Eina_Bool         elm_clock_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7089
7090    /**
7091     * Set what digits of the given clock widget should be editable
7092     * when in edition mode.
7093     *
7094     * @param obj The clock object
7095     * @param digedit Bit mask indicating the digits to be editable
7096     * (values in #Elm_Clock_Digedit).
7097     *
7098     * If the @p digedit param is #ELM_CLOCK_NONE, editing will be
7099     * disabled on @p obj (same effect as elm_clock_edit_set(), with @c
7100     * EINA_FALSE).
7101     *
7102     * @see elm_clock_digit_edit_get()
7103     *
7104     * @ingroup Clock
7105     */
7106    EAPI void              elm_clock_digit_edit_set(Evas_Object *obj, Elm_Clock_Digedit digedit) EINA_ARG_NONNULL(1);
7107
7108    /**
7109     * Retrieve what digits of the given clock widget should be
7110     * editable when in edition mode.
7111     *
7112     * @param obj The clock object
7113     * @return Bit mask indicating the digits to be editable
7114     * (values in #Elm_Clock_Digedit).
7115     *
7116     * @see elm_clock_digit_edit_set() for more details
7117     *
7118     * @ingroup Clock
7119     */
7120    EAPI Elm_Clock_Digedit elm_clock_digit_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7121
7122    /**
7123     * Set if the given clock widget must show hours in military or
7124     * am/pm mode
7125     *
7126     * @param obj The clock object
7127     * @param am_pm @c EINA_TRUE to put it in am/pm mode, @c EINA_FALSE
7128     * to military mode
7129     *
7130     * This function sets if the clock must show hours in military or
7131     * am/pm mode. In some countries like Brazil the military mode
7132     * (00-24h-format) is used, in opposition to the USA, where the
7133     * am/pm mode is more commonly used.
7134     *
7135     * @see elm_clock_show_am_pm_get()
7136     *
7137     * @ingroup Clock
7138     */
7139    EAPI void              elm_clock_show_am_pm_set(Evas_Object *obj, Eina_Bool am_pm) EINA_ARG_NONNULL(1);
7140
7141    /**
7142     * Get if the given clock widget shows hours in military or am/pm
7143     * mode
7144     *
7145     * @param obj The clock object
7146     * @return @c EINA_TRUE, if in am/pm mode, @c EINA_FALSE if in
7147     * military
7148     *
7149     * This function gets if the clock shows hours in military or am/pm
7150     * mode.
7151     *
7152     * @see elm_clock_show_am_pm_set() for more details
7153     *
7154     * @ingroup Clock
7155     */
7156    EAPI Eina_Bool         elm_clock_show_am_pm_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7157
7158    /**
7159     * Set if the given clock widget must show time with seconds or not
7160     *
7161     * @param obj The clock object
7162     * @param seconds @c EINA_TRUE to show seconds, @c EINA_FALSE otherwise
7163     *
7164     * This function sets if the given clock must show or not elapsed
7165     * seconds. By default, they are @b not shown.
7166     *
7167     * @see elm_clock_show_seconds_get()
7168     *
7169     * @ingroup Clock
7170     */
7171    EAPI void              elm_clock_show_seconds_set(Evas_Object *obj, Eina_Bool seconds) EINA_ARG_NONNULL(1);
7172
7173    /**
7174     * Get whether the given clock widget is showing time with seconds
7175     * or not
7176     *
7177     * @param obj The clock object
7178     * @return @c EINA_TRUE if it's showing seconds, @c EINA_FALSE otherwise
7179     *
7180     * This function gets whether @p obj is showing or not the elapsed
7181     * seconds.
7182     *
7183     * @see elm_clock_show_seconds_set()
7184     *
7185     * @ingroup Clock
7186     */
7187    EAPI Eina_Bool         elm_clock_show_seconds_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7188
7189    /**
7190     * Set the interval on time updates for an user mouse button hold
7191     * on clock widgets' time edition.
7192     *
7193     * @param obj The clock object
7194     * @param interval The (first) interval value in seconds
7195     *
7196     * This interval value is @b decreased while the user holds the
7197     * mouse pointer either incrementing or decrementing a given the
7198     * clock digit's value.
7199     *
7200     * This helps the user to get to a given time distant from the
7201     * current one easier/faster, as it will start to flip quicker and
7202     * quicker on mouse button holds.
7203     *
7204     * The calculation for the next flip interval value, starting from
7205     * the one set with this call, is the previous interval divided by
7206     * 1.05, so it decreases a little bit.
7207     *
7208     * The default starting interval value for automatic flips is
7209     * @b 0.85 seconds.
7210     *
7211     * @see elm_clock_interval_get()
7212     *
7213     * @ingroup Clock
7214     */
7215    EAPI void              elm_clock_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
7216
7217    /**
7218     * Get the interval on time updates for an user mouse button hold
7219     * on clock widgets' time edition.
7220     *
7221     * @param obj The clock object
7222     * @return The (first) interval value, in seconds, set on it
7223     *
7224     * @see elm_clock_interval_set() for more details
7225     *
7226     * @ingroup Clock
7227     */
7228    EAPI double            elm_clock_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7229
7230    /**
7231     * @}
7232     */
7233
7234    /**
7235     * @defgroup Layout Layout
7236     *
7237     * @image html img/widget/layout/preview-00.png
7238     * @image latex img/widget/layout/preview-00.eps width=\textwidth
7239     *
7240     * @image html img/layout-predefined.png
7241     * @image latex img/layout-predefined.eps width=\textwidth
7242     *
7243     * This is a container widget that takes a standard Edje design file and
7244     * wraps it very thinly in a widget.
7245     *
7246     * An Edje design (theme) file has a very wide range of possibilities to
7247     * describe the behavior of elements added to the Layout. Check out the Edje
7248     * documentation and the EDC reference to get more information about what can
7249     * be done with Edje.
7250     *
7251     * Just like @ref List, @ref Box, and other container widgets, any
7252     * object added to the Layout will become its child, meaning that it will be
7253     * deleted if the Layout is deleted, move if the Layout is moved, and so on.
7254     *
7255     * The Layout widget can contain as many Contents, Boxes or Tables as
7256     * described in its theme file. For instance, objects can be added to
7257     * different Tables by specifying the respective Table part names. The same
7258     * is valid for Content and Box.
7259     *
7260     * The objects added as child of the Layout will behave as described in the
7261     * part description where they were added. There are 3 possible types of
7262     * parts where a child can be added:
7263     *
7264     * @section secContent Content (SWALLOW part)
7265     *
7266     * Only one object can be added to the @c SWALLOW part (but you still can
7267     * have many @c SWALLOW parts and one object on each of them). Use the @c
7268     * elm_layout_content_* set of functions to set, retrieve and unset objects
7269     * as content of the @c SWALLOW. After being set to this part, the object
7270     * size, position, visibility, clipping and other description properties
7271     * will be totally controled by the description of the given part (inside
7272     * the Edje theme file).
7273     *
7274     * One can use @c evas_object_size_hint_* functions on the child to have some
7275     * kind of control over its behavior, but the resulting behavior will still
7276     * depend heavily on the @c SWALLOW part description.
7277     *
7278     * The Edje theme also can change the part description, based on signals or
7279     * scripts running inside the theme. This change can also be animated. All of
7280     * this will affect the child object set as content accordingly. The object
7281     * size will be changed if the part size is changed, it will animate move if
7282     * the part is moving, and so on.
7283     *
7284     * The following picture demonstrates a Layout widget with a child object
7285     * added to its @c SWALLOW:
7286     *
7287     * @image html layout_swallow.png
7288     * @image latex layout_swallow.eps width=\textwidth
7289     *
7290     * @section secBox Box (BOX part)
7291     *
7292     * An Edje @c BOX part is very similar to the Elementary @ref Box widget. It
7293     * allows one to add objects to the box and have them distributed along its
7294     * area, accordingly to the specified @a layout property (now by @a layout we
7295     * mean the chosen layouting design of the Box, not the Layout widget
7296     * itself).
7297     *
7298     * A similar effect for having a box with its position, size and other things
7299     * controled by the Layout theme would be to create an Elementary @ref Box
7300     * widget and add it as a Content in the @c SWALLOW part.
7301     *
7302     * The main difference of using the Layout Box is that its behavior, the box
7303     * properties like layouting format, padding, align, etc. will be all
7304     * controled by the theme. This means, for example, that a signal could be
7305     * sent to the Layout theme (with elm_object_signal_emit()) and the theme
7306     * handled the signal by changing the box padding, or align, or both. Using
7307     * the Elementary @ref Box widget is not necessarily harder or easier, it
7308     * just depends on the circunstances and requirements.
7309     *
7310     * The Layout Box can be used through the @c elm_layout_box_* set of
7311     * functions.
7312     *
7313     * The following picture demonstrates a Layout widget with many child objects
7314     * added to its @c BOX part:
7315     *
7316     * @image html layout_box.png
7317     * @image latex layout_box.eps width=\textwidth
7318     *
7319     * @section secTable Table (TABLE part)
7320     *
7321     * Just like the @ref secBox, the Layout Table is very similar to the
7322     * Elementary @ref Table widget. It allows one to add objects to the Table
7323     * specifying the row and column where the object should be added, and any
7324     * column or row span if necessary.
7325     *
7326     * Again, we could have this design by adding a @ref Table widget to the @c
7327     * SWALLOW part using elm_layout_content_set(). The same difference happens
7328     * here when choosing to use the Layout Table (a @c TABLE part) instead of
7329     * the @ref Table plus @c SWALLOW part. It's just a matter of convenience.
7330     *
7331     * The Layout Table can be used through the @c elm_layout_table_* set of
7332     * functions.
7333     *
7334     * The following picture demonstrates a Layout widget with many child objects
7335     * added to its @c TABLE part:
7336     *
7337     * @image html layout_table.png
7338     * @image latex layout_table.eps width=\textwidth
7339     *
7340     * @section secPredef Predefined Layouts
7341     *
7342     * Another interesting thing about the Layout widget is that it offers some
7343     * predefined themes that come with the default Elementary theme. These
7344     * themes can be set by the call elm_layout_theme_set(), and provide some
7345     * basic functionality depending on the theme used.
7346     *
7347     * Most of them already send some signals, some already provide a toolbar or
7348     * back and next buttons.
7349     *
7350     * These are available predefined theme layouts. All of them have class = @c
7351     * layout, group = @c application, and style = one of the following options:
7352     *
7353     * @li @c toolbar-content - application with toolbar and main content area
7354     * @li @c toolbar-content-back - application with toolbar and main content
7355     * area with a back button and title area
7356     * @li @c toolbar-content-back-next - application with toolbar and main
7357     * content area with a back and next buttons and title area
7358     * @li @c content-back - application with a main content area with a back
7359     * button and title area
7360     * @li @c content-back-next - application with a main content area with a
7361     * back and next buttons and title area
7362     * @li @c toolbar-vbox - application with toolbar and main content area as a
7363     * vertical box
7364     * @li @c toolbar-table - application with toolbar and main content area as a
7365     * table
7366     *
7367     * @section secExamples Examples
7368     *
7369     * Some examples of the Layout widget can be found here:
7370     * @li @ref layout_example_01
7371     * @li @ref layout_example_02
7372     * @li @ref layout_example_03
7373     * @li @ref layout_example_edc
7374     *
7375     */
7376
7377    /**
7378     * Add a new layout to the parent
7379     *
7380     * @param parent The parent object
7381     * @return The new object or NULL if it cannot be created
7382     *
7383     * @see elm_layout_file_set()
7384     * @see elm_layout_theme_set()
7385     *
7386     * @ingroup Layout
7387     */
7388    EAPI Evas_Object       *elm_layout_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7389    /**
7390     * Set the file that will be used as layout
7391     *
7392     * @param obj The layout object
7393     * @param file The path to file (edj) that will be used as layout
7394     * @param group The group that the layout belongs in edje file
7395     *
7396     * @return (1 = success, 0 = error)
7397     *
7398     * @ingroup Layout
7399     */
7400    EAPI Eina_Bool          elm_layout_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
7401    /**
7402     * Set the edje group from the elementary theme that will be used as layout
7403     *
7404     * @param obj The layout object
7405     * @param clas the clas of the group
7406     * @param group the group
7407     * @param style the style to used
7408     *
7409     * @return (1 = success, 0 = error)
7410     *
7411     * @ingroup Layout
7412     */
7413    EAPI Eina_Bool          elm_layout_theme_set(Evas_Object *obj, const char *clas, const char *group, const char *style) EINA_ARG_NONNULL(1);
7414    /**
7415     * Set the layout content.
7416     *
7417     * @param obj The layout object
7418     * @param swallow The swallow part name in the edje file
7419     * @param content The child that will be added in this layout object
7420     *
7421     * Once the content object is set, a previously set one will be deleted.
7422     * If you want to keep that old content object, use the
7423     * elm_layout_content_unset() function.
7424     *
7425     * @note In an Edje theme, the part used as a content container is called @c
7426     * SWALLOW. This is why the parameter name is called @p swallow, but it is
7427     * expected to be a part name just like the second parameter of
7428     * elm_layout_box_append().
7429     *
7430     * @see elm_layout_box_append()
7431     * @see elm_layout_content_get()
7432     * @see elm_layout_content_unset()
7433     * @see @ref secBox
7434     *
7435     * @ingroup Layout
7436     */
7437    EAPI void               elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
7438    /**
7439     * Get the child object in the given content part.
7440     *
7441     * @param obj The layout object
7442     * @param swallow The SWALLOW part to get its content
7443     *
7444     * @return The swallowed object or NULL if none or an error occurred
7445     *
7446     * @see elm_layout_content_set()
7447     *
7448     * @ingroup Layout
7449     */
7450    EAPI Evas_Object       *elm_layout_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
7451    /**
7452     * Unset the layout content.
7453     *
7454     * @param obj The layout object
7455     * @param swallow The swallow part name in the edje file
7456     * @return The content that was being used
7457     *
7458     * Unparent and return the content object which was set for this part.
7459     *
7460     * @see elm_layout_content_set()
7461     *
7462     * @ingroup Layout
7463     */
7464     EAPI Evas_Object       *elm_layout_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
7465    /**
7466     * Set the text of the given part
7467     *
7468     * @param obj The layout object
7469     * @param part The TEXT part where to set the text
7470     * @param text The text to set
7471     *
7472     * @ingroup Layout
7473     * @deprecated use elm_object_text_* instead.
7474     */
7475    EINA_DEPRECATED EAPI void               elm_layout_text_set(Evas_Object *obj, const char *part, const char *text) EINA_ARG_NONNULL(1);
7476    /**
7477     * Get the text set in the given part
7478     *
7479     * @param obj The layout object
7480     * @param part The TEXT part to retrieve the text off
7481     *
7482     * @return The text set in @p part
7483     *
7484     * @ingroup Layout
7485     * @deprecated use elm_object_text_* instead.
7486     */
7487    EINA_DEPRECATED EAPI const char        *elm_layout_text_get(const Evas_Object *obj, const char *part) EINA_ARG_NONNULL(1);
7488    /**
7489     * Append child to layout box part.
7490     *
7491     * @param obj the layout object
7492     * @param part the box part to which the object will be appended.
7493     * @param child the child object to append to box.
7494     *
7495     * Once the object is appended, it will become child of the layout. Its
7496     * lifetime will be bound to the layout, whenever the layout dies the child
7497     * will be deleted automatically. One should use elm_layout_box_remove() to
7498     * make this layout forget about the object.
7499     *
7500     * @see elm_layout_box_prepend()
7501     * @see elm_layout_box_insert_before()
7502     * @see elm_layout_box_insert_at()
7503     * @see elm_layout_box_remove()
7504     *
7505     * @ingroup Layout
7506     */
7507    EAPI void               elm_layout_box_append(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
7508    /**
7509     * Prepend child to layout box part.
7510     *
7511     * @param obj the layout object
7512     * @param part the box part to prepend.
7513     * @param child the child object to prepend to box.
7514     *
7515     * Once the object is prepended, it will become child of the layout. Its
7516     * lifetime will be bound to the layout, whenever the layout dies the child
7517     * will be deleted automatically. One should use elm_layout_box_remove() to
7518     * make this layout forget about the object.
7519     *
7520     * @see elm_layout_box_append()
7521     * @see elm_layout_box_insert_before()
7522     * @see elm_layout_box_insert_at()
7523     * @see elm_layout_box_remove()
7524     *
7525     * @ingroup Layout
7526     */
7527    EAPI void               elm_layout_box_prepend(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
7528    /**
7529     * Insert child to layout box part before a reference object.
7530     *
7531     * @param obj the layout object
7532     * @param part the box part to insert.
7533     * @param child the child object to insert into box.
7534     * @param reference another reference object to insert before in box.
7535     *
7536     * Once the object is inserted, it will become child of the layout. Its
7537     * lifetime will be bound to the layout, whenever the layout dies the child
7538     * will be deleted automatically. One should use elm_layout_box_remove() to
7539     * make this layout forget about the object.
7540     *
7541     * @see elm_layout_box_append()
7542     * @see elm_layout_box_prepend()
7543     * @see elm_layout_box_insert_before()
7544     * @see elm_layout_box_remove()
7545     *
7546     * @ingroup Layout
7547     */
7548    EAPI void               elm_layout_box_insert_before(Evas_Object *obj, const char *part, Evas_Object *child, const Evas_Object *reference) EINA_ARG_NONNULL(1);
7549    /**
7550     * Insert child to layout box part at a given position.
7551     *
7552     * @param obj the layout object
7553     * @param part the box part to insert.
7554     * @param child the child object to insert into box.
7555     * @param pos the numeric position >=0 to insert the child.
7556     *
7557     * Once the object is inserted, it will become child of the layout. Its
7558     * lifetime will be bound to the layout, whenever the layout dies the child
7559     * will be deleted automatically. One should use elm_layout_box_remove() to
7560     * make this layout forget about the object.
7561     *
7562     * @see elm_layout_box_append()
7563     * @see elm_layout_box_prepend()
7564     * @see elm_layout_box_insert_before()
7565     * @see elm_layout_box_remove()
7566     *
7567     * @ingroup Layout
7568     */
7569    EAPI void               elm_layout_box_insert_at(Evas_Object *obj, const char *part, Evas_Object *child, unsigned int pos) EINA_ARG_NONNULL(1);
7570    /**
7571     * Remove a child of the given part box.
7572     *
7573     * @param obj The layout object
7574     * @param part The box part name to remove child.
7575     * @param child The object to remove from box.
7576     * @return The object that was being used, or NULL if not found.
7577     *
7578     * The object will be removed from the box part and its lifetime will
7579     * not be handled by the layout anymore. This is equivalent to
7580     * elm_layout_content_unset() for box.
7581     *
7582     * @see elm_layout_box_append()
7583     * @see elm_layout_box_remove_all()
7584     *
7585     * @ingroup Layout
7586     */
7587    EAPI Evas_Object       *elm_layout_box_remove(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1, 2, 3);
7588    /**
7589     * Remove all child of the given part box.
7590     *
7591     * @param obj The layout object
7592     * @param part The box part name to remove child.
7593     * @param clear If EINA_TRUE, then all objects will be deleted as
7594     *        well, otherwise they will just be removed and will be
7595     *        dangling on the canvas.
7596     *
7597     * The objects will be removed from the box part and their lifetime will
7598     * not be handled by the layout anymore. This is equivalent to
7599     * elm_layout_box_remove() for all box children.
7600     *
7601     * @see elm_layout_box_append()
7602     * @see elm_layout_box_remove()
7603     *
7604     * @ingroup Layout
7605     */
7606    EAPI void               elm_layout_box_remove_all(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
7607    /**
7608     * Insert child to layout table part.
7609     *
7610     * @param obj the layout object
7611     * @param part the box part to pack child.
7612     * @param child_obj the child object to pack into table.
7613     * @param col the column to which the child should be added. (>= 0)
7614     * @param row the row to which the child should be added. (>= 0)
7615     * @param colspan how many columns should be used to store this object. (>=
7616     *        1)
7617     * @param rowspan how many rows should be used to store this object. (>= 1)
7618     *
7619     * Once the object is inserted, it will become child of the table. Its
7620     * lifetime will be bound to the layout, and whenever the layout dies the
7621     * child will be deleted automatically. One should use
7622     * elm_layout_table_remove() to make this layout forget about the object.
7623     *
7624     * If @p colspan or @p rowspan are bigger than 1, that object will occupy
7625     * more space than a single cell. For instance, the following code:
7626     * @code
7627     * elm_layout_table_pack(layout, "table_part", child, 0, 1, 3, 1);
7628     * @endcode
7629     *
7630     * Would result in an object being added like the following picture:
7631     *
7632     * @image html layout_colspan.png
7633     * @image latex layout_colspan.eps width=\textwidth
7634     *
7635     * @see elm_layout_table_unpack()
7636     * @see elm_layout_table_clear()
7637     *
7638     * @ingroup Layout
7639     */
7640    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);
7641    /**
7642     * Unpack (remove) a child of the given part table.
7643     *
7644     * @param obj The layout object
7645     * @param part The table part name to remove child.
7646     * @param child_obj The object to remove from table.
7647     * @return The object that was being used, or NULL if not found.
7648     *
7649     * The object will be unpacked from the table part and its lifetime
7650     * will not be handled by the layout anymore. This is equivalent to
7651     * elm_layout_content_unset() for table.
7652     *
7653     * @see elm_layout_table_pack()
7654     * @see elm_layout_table_clear()
7655     *
7656     * @ingroup Layout
7657     */
7658    EAPI Evas_Object       *elm_layout_table_unpack(Evas_Object *obj, const char *part, Evas_Object *child_obj) EINA_ARG_NONNULL(1, 2, 3);
7659    /**
7660     * Remove all child of the given part table.
7661     *
7662     * @param obj The layout object
7663     * @param part The table part name to remove child.
7664     * @param clear If EINA_TRUE, then all objects will be deleted as
7665     *        well, otherwise they will just be removed and will be
7666     *        dangling on the canvas.
7667     *
7668     * The objects will be removed from the table part and their lifetime will
7669     * not be handled by the layout anymore. This is equivalent to
7670     * elm_layout_table_unpack() for all table children.
7671     *
7672     * @see elm_layout_table_pack()
7673     * @see elm_layout_table_unpack()
7674     *
7675     * @ingroup Layout
7676     */
7677    EAPI void               elm_layout_table_clear(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
7678    /**
7679     * Get the edje layout
7680     *
7681     * @param obj The layout object
7682     *
7683     * @return A Evas_Object with the edje layout settings loaded
7684     * with function elm_layout_file_set
7685     *
7686     * This returns the edje object. It is not expected to be used to then
7687     * swallow objects via edje_object_part_swallow() for example. Use
7688     * elm_layout_content_set() instead so child object handling and sizing is
7689     * done properly.
7690     *
7691     * @note This function should only be used if you really need to call some
7692     * low level Edje function on this edje object. All the common stuff (setting
7693     * text, emitting signals, hooking callbacks to signals, etc.) can be done
7694     * with proper elementary functions.
7695     *
7696     * @see elm_object_signal_callback_add()
7697     * @see elm_object_signal_emit()
7698     * @see elm_object_text_part_set()
7699     * @see elm_layout_content_set()
7700     * @see elm_layout_box_append()
7701     * @see elm_layout_table_pack()
7702     * @see elm_layout_data_get()
7703     *
7704     * @ingroup Layout
7705     */
7706    EAPI Evas_Object       *elm_layout_edje_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7707    /**
7708     * Get the edje data from the given layout
7709     *
7710     * @param obj The layout object
7711     * @param key The data key
7712     *
7713     * @return The edje data string
7714     *
7715     * This function fetches data specified inside the edje theme of this layout.
7716     * This function return NULL if data is not found.
7717     *
7718     * In EDC this comes from a data block within the group block that @p
7719     * obj was loaded from. E.g.
7720     *
7721     * @code
7722     * collections {
7723     *   group {
7724     *     name: "a_group";
7725     *     data {
7726     *       item: "key1" "value1";
7727     *       item: "key2" "value2";
7728     *     }
7729     *   }
7730     * }
7731     * @endcode
7732     *
7733     * @ingroup Layout
7734     */
7735    EAPI const char        *elm_layout_data_get(const Evas_Object *obj, const char *key) EINA_ARG_NONNULL(1, 2);
7736    /**
7737     * Eval sizing
7738     *
7739     * @param obj The layout object
7740     *
7741     * Manually forces a sizing re-evaluation. This is useful when the minimum
7742     * size required by the edje theme of this layout has changed. The change on
7743     * the minimum size required by the edje theme is not immediately reported to
7744     * the elementary layout, so one needs to call this function in order to tell
7745     * the widget (layout) that it needs to reevaluate its own size.
7746     *
7747     * The minimum size of the theme is calculated based on minimum size of
7748     * parts, the size of elements inside containers like box and table, etc. All
7749     * of this can change due to state changes, and that's when this function
7750     * should be called.
7751     *
7752     * Also note that a standard signal of "size,eval" "elm" emitted from the
7753     * edje object will cause this to happen too.
7754     *
7755     * @ingroup Layout
7756     */
7757    EAPI void               elm_layout_sizing_eval(Evas_Object *obj) EINA_ARG_NONNULL(1);
7758    EAPI Eina_Bool          elm_layout_part_cursor_set(Evas_Object *obj, const char *part_name, const char *cursor) EINA_ARG_NONNULL(1, 2);
7759    EAPI const char        *elm_layout_part_cursor_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
7760    EAPI void               elm_layout_part_cursor_unset(Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
7761    EAPI Eina_Bool          elm_layout_part_cursor_style_set(Evas_Object *obj, const char *part_name, const char *style) EINA_ARG_NONNULL(1, 2);
7762    EAPI const char        *elm_layout_part_cursor_style_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
7763    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);
7764    EAPI Eina_Bool          elm_layout_part_cursor_engine_only_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
7765 /**
7766  * @def elm_layout_icon_set
7767  * Convienience macro to set the icon object in a layout that follows the
7768  * Elementary naming convention for its parts.
7769  *
7770  * @ingroup Layout
7771  */
7772 #define elm_layout_icon_set(_ly, _obj) \
7773   do { \
7774     const char *sig; \
7775     elm_layout_content_set((_ly), "elm.swallow.icon", (_obj)); \
7776     if ((_obj)) sig = "elm,state,icon,visible"; \
7777     else sig = "elm,state,icon,hidden"; \
7778     elm_object_signal_emit((_ly), sig, "elm"); \
7779   } while (0)
7780
7781 /**
7782  * @def elm_layout_icon_get
7783  * Convienience macro to get the icon object from a layout that follows the
7784  * Elementary naming convention for its parts.
7785  *
7786  * @ingroup Layout
7787  */
7788 #define elm_layout_icon_get(_ly) \
7789   elm_layout_content_get((_ly), "elm.swallow.icon")
7790
7791 /**
7792  * @def elm_layout_end_set
7793  * Convienience macro to set the end object in a layout that follows the
7794  * Elementary naming convention for its parts.
7795  *
7796  * @ingroup Layout
7797  */
7798 #define elm_layout_end_set(_ly, _obj) \
7799   do { \
7800     const char *sig; \
7801     elm_layout_content_set((_ly), "elm.swallow.end", (_obj)); \
7802     if ((_obj)) sig = "elm,state,end,visible"; \
7803     else sig = "elm,state,end,hidden"; \
7804     elm_object_signal_emit((_ly), sig, "elm"); \
7805   } while (0)
7806
7807 /**
7808  * @def elm_layout_end_get
7809  * Convienience macro to get the end object in a layout that follows the
7810  * Elementary naming convention for its parts.
7811  *
7812  * @ingroup Layout
7813  */
7814 #define elm_layout_end_get(_ly) \
7815   elm_layout_content_get((_ly), "elm.swallow.end")
7816
7817 /**
7818  * @def elm_layout_label_set
7819  * Convienience macro to set the label in a layout that follows the
7820  * Elementary naming convention for its parts.
7821  *
7822  * @ingroup Layout
7823  * @deprecated use elm_object_text_* instead.
7824  */
7825 #define elm_layout_label_set(_ly, _txt) \
7826   elm_layout_text_set((_ly), "elm.text", (_txt))
7827
7828 /**
7829  * @def elm_layout_label_get
7830  * Convienience macro to get the label in a layout that follows the
7831  * Elementary naming convention for its parts.
7832  *
7833  * @ingroup Layout
7834  * @deprecated use elm_object_text_* instead.
7835  */
7836 #define elm_layout_label_get(_ly) \
7837   elm_layout_text_get((_ly), "elm.text")
7838
7839    /* smart callbacks called:
7840     * "theme,changed" - when elm theme is changed.
7841     */
7842
7843    /**
7844     * @defgroup Notify Notify
7845     *
7846     * @image html img/widget/notify/preview-00.png
7847     * @image latex img/widget/notify/preview-00.eps
7848     *
7849     * Display a container in a particular region of the parent(top, bottom,
7850     * etc.  A timeout can be set to automatically hide the notify. This is so
7851     * that, after an evas_object_show() on a notify object, if a timeout was set
7852     * on it, it will @b automatically get hidden after that time.
7853     *
7854     * Signals that you can add callbacks for are:
7855     * @li "timeout" - when timeout happens on notify and it's hidden
7856     * @li "block,clicked" - when a click outside of the notify happens
7857     *
7858     * @ref tutorial_notify show usage of the API.
7859     *
7860     * @{
7861     */
7862    /**
7863     * @brief Possible orient values for notify.
7864     *
7865     * This values should be used in conjunction to elm_notify_orient_set() to
7866     * set the position in which the notify should appear(relative to its parent)
7867     * and in conjunction with elm_notify_orient_get() to know where the notify
7868     * is appearing.
7869     */
7870    typedef enum _Elm_Notify_Orient
7871      {
7872         ELM_NOTIFY_ORIENT_TOP, /**< Notify should appear in the top of parent, default */
7873         ELM_NOTIFY_ORIENT_CENTER, /**< Notify should appear in the center of parent */
7874         ELM_NOTIFY_ORIENT_BOTTOM, /**< Notify should appear in the bottom of parent */
7875         ELM_NOTIFY_ORIENT_LEFT, /**< Notify should appear in the left of parent */
7876         ELM_NOTIFY_ORIENT_RIGHT, /**< Notify should appear in the right of parent */
7877         ELM_NOTIFY_ORIENT_TOP_LEFT, /**< Notify should appear in the top left of parent */
7878         ELM_NOTIFY_ORIENT_TOP_RIGHT, /**< Notify should appear in the top right of parent */
7879         ELM_NOTIFY_ORIENT_BOTTOM_LEFT, /**< Notify should appear in the bottom left of parent */
7880         ELM_NOTIFY_ORIENT_BOTTOM_RIGHT, /**< Notify should appear in the bottom right of parent */
7881         ELM_NOTIFY_ORIENT_LAST /**< Sentinel value, @b don't use */
7882      } Elm_Notify_Orient;
7883    /**
7884     * @brief Add a new notify to the parent
7885     *
7886     * @param parent The parent object
7887     * @return The new object or NULL if it cannot be created
7888     */
7889    EAPI Evas_Object      *elm_notify_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7890    /**
7891     * @brief Set the content of the notify widget
7892     *
7893     * @param obj The notify object
7894     * @param content The content will be filled in this notify object
7895     *
7896     * Once the content object is set, a previously set one will be deleted. If
7897     * you want to keep that old content object, use the
7898     * elm_notify_content_unset() function.
7899     */
7900    EAPI void              elm_notify_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
7901    /**
7902     * @brief Unset the content of the notify widget
7903     *
7904     * @param obj The notify object
7905     * @return The content that was being used
7906     *
7907     * Unparent and return the content object which was set for this widget
7908     *
7909     * @see elm_notify_content_set()
7910     */
7911    EAPI Evas_Object      *elm_notify_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7912    /**
7913     * @brief Return the content of the notify widget
7914     *
7915     * @param obj The notify object
7916     * @return The content that is being used
7917     *
7918     * @see elm_notify_content_set()
7919     */
7920    EAPI Evas_Object      *elm_notify_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7921    /**
7922     * @brief Set the notify parent
7923     *
7924     * @param obj The notify object
7925     * @param content The new parent
7926     *
7927     * Once the parent object is set, a previously set one will be disconnected
7928     * and replaced.
7929     */
7930    EAPI void              elm_notify_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
7931    /**
7932     * @brief Get the notify parent
7933     *
7934     * @param obj The notify object
7935     * @return The parent
7936     *
7937     * @see elm_notify_parent_set()
7938     */
7939    EAPI Evas_Object      *elm_notify_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7940    /**
7941     * @brief Set the orientation
7942     *
7943     * @param obj The notify object
7944     * @param orient The new orientation
7945     *
7946     * Sets the position in which the notify will appear in its parent.
7947     *
7948     * @see @ref Elm_Notify_Orient for possible values.
7949     */
7950    EAPI void              elm_notify_orient_set(Evas_Object *obj, Elm_Notify_Orient orient) EINA_ARG_NONNULL(1);
7951    /**
7952     * @brief Return the orientation
7953     * @param obj The notify object
7954     * @return The orientation of the notification
7955     *
7956     * @see elm_notify_orient_set()
7957     * @see Elm_Notify_Orient
7958     */
7959    EAPI Elm_Notify_Orient elm_notify_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7960    /**
7961     * @brief Set the time interval after which the notify window is going to be
7962     * hidden.
7963     *
7964     * @param obj The notify object
7965     * @param time The timeout in seconds
7966     *
7967     * This function sets a timeout and starts the timer controlling when the
7968     * notify is hidden. Since calling evas_object_show() on a notify restarts
7969     * the timer controlling when the notify is hidden, setting this before the
7970     * notify is shown will in effect mean starting the timer when the notify is
7971     * shown.
7972     *
7973     * @note Set a value <= 0.0 to disable a running timer.
7974     *
7975     * @note If the value > 0.0 and the notify is previously visible, the
7976     * timer will be started with this value, canceling any running timer.
7977     */
7978    EAPI void              elm_notify_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
7979    /**
7980     * @brief Return the timeout value (in seconds)
7981     * @param obj the notify object
7982     *
7983     * @see elm_notify_timeout_set()
7984     */
7985    EAPI double            elm_notify_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7986    /**
7987     * @brief Sets whether events should be passed to by a click outside
7988     * its area.
7989     *
7990     * @param obj The notify object
7991     * @param repeats EINA_TRUE Events are repeats, else no
7992     *
7993     * When true if the user clicks outside the window the events will be caught
7994     * by the others widgets, else the events are blocked.
7995     *
7996     * @note The default value is EINA_TRUE.
7997     */
7998    EAPI void              elm_notify_repeat_events_set(Evas_Object *obj, Eina_Bool repeat) EINA_ARG_NONNULL(1);
7999    /**
8000     * @brief Return true if events are repeat below the notify object
8001     * @param obj the notify object
8002     *
8003     * @see elm_notify_repeat_events_set()
8004     */
8005    EAPI Eina_Bool         elm_notify_repeat_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8006    /**
8007     * @}
8008     */
8009
8010    /**
8011     * @defgroup Hover Hover
8012     *
8013     * @image html img/widget/hover/preview-00.png
8014     * @image latex img/widget/hover/preview-00.eps
8015     *
8016     * A Hover object will hover over its @p parent object at the @p target
8017     * location. Anything in the background will be given a darker coloring to
8018     * indicate that the hover object is on top (at the default theme). When the
8019     * hover is clicked it is dismissed(hidden), if the contents of the hover are
8020     * clicked that @b doesn't cause the hover to be dismissed.
8021     *
8022     * @note The hover object will take up the entire space of @p target
8023     * object.
8024     *
8025     * Elementary has the following styles for the hover widget:
8026     * @li default
8027     * @li popout
8028     * @li menu
8029     * @li hoversel_vertical
8030     *
8031     * The following are the available position for content:
8032     * @li left
8033     * @li top-left
8034     * @li top
8035     * @li top-right
8036     * @li right
8037     * @li bottom-right
8038     * @li bottom
8039     * @li bottom-left
8040     * @li middle
8041     * @li smart
8042     *
8043     * Signals that you can add callbacks for are:
8044     * @li "clicked" - the user clicked the empty space in the hover to dismiss
8045     * @li "smart,changed" - a content object placed under the "smart"
8046     *                   policy was replaced to a new slot direction.
8047     *
8048     * See @ref tutorial_hover for more information.
8049     *
8050     * @{
8051     */
8052    typedef enum _Elm_Hover_Axis
8053      {
8054         ELM_HOVER_AXIS_NONE, /**< ELM_HOVER_AXIS_NONE -- no prefered orientation */
8055         ELM_HOVER_AXIS_HORIZONTAL, /**< ELM_HOVER_AXIS_HORIZONTAL -- horizontal */
8056         ELM_HOVER_AXIS_VERTICAL, /**< ELM_HOVER_AXIS_VERTICAL -- vertical */
8057         ELM_HOVER_AXIS_BOTH /**< ELM_HOVER_AXIS_BOTH -- both */
8058      } Elm_Hover_Axis;
8059    /**
8060     * @brief Adds a hover object to @p parent
8061     *
8062     * @param parent The parent object
8063     * @return The hover object or NULL if one could not be created
8064     */
8065    EAPI Evas_Object *elm_hover_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8066    /**
8067     * @brief Sets the target object for the hover.
8068     *
8069     * @param obj The hover object
8070     * @param target The object to center the hover onto. The hover
8071     *
8072     * This function will cause the hover to be centered on the target object.
8073     */
8074    EAPI void         elm_hover_target_set(Evas_Object *obj, Evas_Object *target) EINA_ARG_NONNULL(1);
8075    /**
8076     * @brief Gets the target object for the hover.
8077     *
8078     * @param obj The hover object
8079     * @param parent The object to locate the hover over.
8080     *
8081     * @see elm_hover_target_set()
8082     */
8083    EAPI Evas_Object *elm_hover_target_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8084    /**
8085     * @brief Sets the parent object for the hover.
8086     *
8087     * @param obj The hover object
8088     * @param parent The object to locate the hover over.
8089     *
8090     * This function will cause the hover to take up the entire space that the
8091     * parent object fills.
8092     */
8093    EAPI void         elm_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
8094    /**
8095     * @brief Gets the parent object for the hover.
8096     *
8097     * @param obj The hover object
8098     * @return The parent object to locate the hover over.
8099     *
8100     * @see elm_hover_parent_set()
8101     */
8102    EAPI Evas_Object *elm_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8103    /**
8104     * @brief Sets the content of the hover object and the direction in which it
8105     * will pop out.
8106     *
8107     * @param obj The hover object
8108     * @param swallow The direction that the object will be displayed
8109     * at. Accepted values are "left", "top-left", "top", "top-right",
8110     * "right", "bottom-right", "bottom", "bottom-left", "middle" and
8111     * "smart".
8112     * @param content The content to place at @p swallow
8113     *
8114     * Once the content object is set for a given direction, a previously
8115     * set one (on the same direction) will be deleted. If you want to
8116     * keep that old content object, use the elm_hover_content_unset()
8117     * function.
8118     *
8119     * All directions may have contents at the same time, except for
8120     * "smart". This is a special placement hint and its use case
8121     * independs of the calculations coming from
8122     * elm_hover_best_content_location_get(). Its use is for cases when
8123     * one desires only one hover content, but with a dinamic special
8124     * placement within the hover area. The content's geometry, whenever
8125     * it changes, will be used to decide on a best location not
8126     * extrapolating the hover's parent object view to show it in (still
8127     * being the hover's target determinant of its medium part -- move and
8128     * resize it to simulate finger sizes, for example). If one of the
8129     * directions other than "smart" are used, a previously content set
8130     * using it will be deleted, and vice-versa.
8131     */
8132    EAPI void         elm_hover_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
8133    /**
8134     * @brief Get the content of the hover object, in a given direction.
8135     *
8136     * Return the content object which was set for this widget in the
8137     * @p swallow direction.
8138     *
8139     * @param obj The hover object
8140     * @param swallow The direction that the object was display at.
8141     * @return The content that was being used
8142     *
8143     * @see elm_hover_content_set()
8144     */
8145    EAPI Evas_Object *elm_hover_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
8146    /**
8147     * @brief Unset the content of the hover object, in a given direction.
8148     *
8149     * Unparent and return the content object set at @p swallow direction.
8150     *
8151     * @param obj The hover object
8152     * @param swallow The direction that the object was display at.
8153     * @return The content that was being used.
8154     *
8155     * @see elm_hover_content_set()
8156     */
8157    EAPI Evas_Object *elm_hover_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
8158    /**
8159     * @brief Returns the best swallow location for content in the hover.
8160     *
8161     * @param obj The hover object
8162     * @param pref_axis The preferred orientation axis for the hover object to use
8163     * @return The edje location to place content into the hover or @c
8164     *         NULL, on errors.
8165     *
8166     * Best is defined here as the location at which there is the most available
8167     * space.
8168     *
8169     * @p pref_axis may be one of
8170     * - @c ELM_HOVER_AXIS_NONE -- no prefered orientation
8171     * - @c ELM_HOVER_AXIS_HORIZONTAL -- horizontal
8172     * - @c ELM_HOVER_AXIS_VERTICAL -- vertical
8173     * - @c ELM_HOVER_AXIS_BOTH -- both
8174     *
8175     * If ELM_HOVER_AXIS_HORIZONTAL is choosen the returned position will
8176     * nescessarily be along the horizontal axis("left" or "right"). If
8177     * ELM_HOVER_AXIS_VERTICAL is choosen the returned position will nescessarily
8178     * be along the vertical axis("top" or "bottom"). Chossing
8179     * ELM_HOVER_AXIS_BOTH or ELM_HOVER_AXIS_NONE has the same effect and the
8180     * returned position may be in either axis.
8181     *
8182     * @see elm_hover_content_set()
8183     */
8184    EAPI const char  *elm_hover_best_content_location_get(const Evas_Object *obj, Elm_Hover_Axis pref_axis) EINA_ARG_NONNULL(1);
8185    /**
8186     * @}
8187     */
8188
8189    /* entry */
8190    /**
8191     * @defgroup Entry Entry
8192     *
8193     * @image html img/widget/entry/preview-00.png
8194     * @image latex img/widget/entry/preview-00.eps width=\textwidth
8195     * @image html img/widget/entry/preview-01.png
8196     * @image latex img/widget/entry/preview-01.eps width=\textwidth
8197     * @image html img/widget/entry/preview-02.png
8198     * @image latex img/widget/entry/preview-02.eps width=\textwidth
8199     * @image html img/widget/entry/preview-03.png
8200     * @image latex img/widget/entry/preview-03.eps width=\textwidth
8201     *
8202     * An entry is a convenience widget which shows a box that the user can
8203     * enter text into. Entries by default don't scroll, so they grow to
8204     * accomodate the entire text, resizing the parent window as needed. This
8205     * can be changed with the elm_entry_scrollable_set() function.
8206     *
8207     * They can also be single line or multi line (the default) and when set
8208     * to multi line mode they support text wrapping in any of the modes
8209     * indicated by #Elm_Wrap_Type.
8210     *
8211     * Other features include password mode, filtering of inserted text with
8212     * elm_entry_text_filter_append() and related functions, inline "items" and
8213     * formatted markup text.
8214     *
8215     * @section entry-markup Formatted text
8216     *
8217     * The markup tags supported by the Entry are defined by the theme, but
8218     * even when writing new themes or extensions it's a good idea to stick to
8219     * a sane default, to maintain coherency and avoid application breakages.
8220     * Currently defined by the default theme are the following tags:
8221     * @li \<br\>: Inserts a line break.
8222     * @li \<ps\>: Inserts a paragraph separator. This is preferred over line
8223     * breaks.
8224     * @li \<tab\>: Inserts a tab.
8225     * @li \<em\>...\</em\>: Emphasis. Sets the @em oblique style for the
8226     * enclosed text.
8227     * @li \<b\>...\</b\>: Sets the @b bold style for the enclosed text.
8228     * @li \<link\>...\</link\>: Underlines the enclosed text.
8229     * @li \<hilight\>...\</hilight\>: Hilights the enclosed text.
8230     *
8231     * @section entry-special Special markups
8232     *
8233     * Besides those used to format text, entries support two special markup
8234     * tags used to insert clickable portions of text or items inlined within
8235     * the text.
8236     *
8237     * @subsection entry-anchors Anchors
8238     *
8239     * Anchors are similar to HTML anchors. Text can be surrounded by \<a\> and
8240     * \</a\> tags and an event will be generated when this text is clicked,
8241     * like this:
8242     *
8243     * @code
8244     * This text is outside <a href=anc-01>but this one is an anchor</a>
8245     * @endcode
8246     *
8247     * The @c href attribute in the opening tag gives the name that will be
8248     * used to identify the anchor and it can be any valid utf8 string.
8249     *
8250     * When an anchor is clicked, an @c "anchor,clicked" signal is emitted with
8251     * an #Elm_Entry_Anchor_Info in the @c event_info parameter for the
8252     * callback function. The same applies for "anchor,in" (mouse in), "anchor,out"
8253     * (mouse out), "anchor,down" (mouse down), and "anchor,up" (mouse up) events on
8254     * an anchor.
8255     *
8256     * @subsection entry-items Items
8257     *
8258     * Inlined in the text, any other @c Evas_Object can be inserted by using
8259     * \<item\> tags this way:
8260     *
8261     * @code
8262     * <item size=16x16 vsize=full href=emoticon/haha></item>
8263     * @endcode
8264     *
8265     * Just like with anchors, the @c href identifies each item, but these need,
8266     * in addition, to indicate their size, which is done using any one of
8267     * @c size, @c absize or @c relsize attributes. These attributes take their
8268     * value in the WxH format, where W is the width and H the height of the
8269     * item.
8270     *
8271     * @li absize: Absolute pixel size for the item. Whatever value is set will
8272     * be the item's size regardless of any scale value the object may have
8273     * been set to. The final line height will be adjusted to fit larger items.
8274     * @li size: Similar to @c absize, but it's adjusted to the scale value set
8275     * for the object.
8276     * @li relsize: Size is adjusted for the item to fit within the current
8277     * line height.
8278     *
8279     * Besides their size, items are specificed a @c vsize value that affects
8280     * how their final size and position are calculated. The possible values
8281     * are:
8282     * @li ascent: Item will be placed within the line's baseline and its
8283     * ascent. That is, the height between the line where all characters are
8284     * positioned and the highest point in the line. For @c size and @c absize
8285     * items, the descent value will be added to the total line height to make
8286     * them fit. @c relsize items will be adjusted to fit within this space.
8287     * @li full: Items will be placed between the descent and ascent, or the
8288     * lowest point in the line and its highest.
8289     *
8290     * The next image shows different configurations of items and how they
8291     * are the previously mentioned options affect their sizes. In all cases,
8292     * the green line indicates the ascent, blue for the baseline and red for
8293     * the descent.
8294     *
8295     * @image html entry_item.png
8296     * @image latex entry_item.eps width=\textwidth
8297     *
8298     * And another one to show how size differs from absize. In the first one,
8299     * the scale value is set to 1.0, while the second one is using one of 2.0.
8300     *
8301     * @image html entry_item_scale.png
8302     * @image latex entry_item_scale.eps width=\textwidth
8303     *
8304     * After the size for an item is calculated, the entry will request an
8305     * object to place in its space. For this, the functions set with
8306     * elm_entry_item_provider_append() and related functions will be called
8307     * in order until one of them returns a @c non-NULL value. If no providers
8308     * are available, or all of them return @c NULL, then the entry falls back
8309     * to one of the internal defaults, provided the name matches with one of
8310     * them.
8311     *
8312     * All of the following are currently supported:
8313     *
8314     * - emoticon/angry
8315     * - emoticon/angry-shout
8316     * - emoticon/crazy-laugh
8317     * - emoticon/evil-laugh
8318     * - emoticon/evil
8319     * - emoticon/goggle-smile
8320     * - emoticon/grumpy
8321     * - emoticon/grumpy-smile
8322     * - emoticon/guilty
8323     * - emoticon/guilty-smile
8324     * - emoticon/haha
8325     * - emoticon/half-smile
8326     * - emoticon/happy-panting
8327     * - emoticon/happy
8328     * - emoticon/indifferent
8329     * - emoticon/kiss
8330     * - emoticon/knowing-grin
8331     * - emoticon/laugh
8332     * - emoticon/little-bit-sorry
8333     * - emoticon/love-lots
8334     * - emoticon/love
8335     * - emoticon/minimal-smile
8336     * - emoticon/not-happy
8337     * - emoticon/not-impressed
8338     * - emoticon/omg
8339     * - emoticon/opensmile
8340     * - emoticon/smile
8341     * - emoticon/sorry
8342     * - emoticon/squint-laugh
8343     * - emoticon/surprised
8344     * - emoticon/suspicious
8345     * - emoticon/tongue-dangling
8346     * - emoticon/tongue-poke
8347     * - emoticon/uh
8348     * - emoticon/unhappy
8349     * - emoticon/very-sorry
8350     * - emoticon/what
8351     * - emoticon/wink
8352     * - emoticon/worried
8353     * - emoticon/wtf
8354     *
8355     * Alternatively, an item may reference an image by its path, using
8356     * the URI form @c file:///path/to/an/image.png and the entry will then
8357     * use that image for the item.
8358     *
8359     * @section entry-files Loading and saving files
8360     *
8361     * Entries have convinience functions to load text from a file and save
8362     * changes back to it after a short delay. The automatic saving is enabled
8363     * by default, but can be disabled with elm_entry_autosave_set() and files
8364     * can be loaded directly as plain text or have any markup in them
8365     * recognized. See elm_entry_file_set() for more details.
8366     *
8367     * @section entry-signals Emitted signals
8368     *
8369     * This widget emits the following signals:
8370     *
8371     * @li "changed": The text within the entry was changed.
8372     * @li "changed,user": The text within the entry was changed because of user interaction.
8373     * @li "activated": The enter key was pressed on a single line entry.
8374     * @li "press": A mouse button has been pressed on the entry.
8375     * @li "longpressed": A mouse button has been pressed and held for a couple
8376     * seconds.
8377     * @li "clicked": The entry has been clicked (mouse press and release).
8378     * @li "clicked,double": The entry has been double clicked.
8379     * @li "clicked,triple": The entry has been triple clicked.
8380     * @li "focused": The entry has received focus.
8381     * @li "unfocused": The entry has lost focus.
8382     * @li "selection,paste": A paste of the clipboard contents was requested.
8383     * @li "selection,copy": A copy of the selected text into the clipboard was
8384     * requested.
8385     * @li "selection,cut": A cut of the selected text into the clipboard was
8386     * requested.
8387     * @li "selection,start": A selection has begun and no previous selection
8388     * existed.
8389     * @li "selection,changed": The current selection has changed.
8390     * @li "selection,cleared": The current selection has been cleared.
8391     * @li "cursor,changed": The cursor has changed position.
8392     * @li "anchor,clicked": An anchor has been clicked. The event_info
8393     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
8394     * @li "anchor,in": Mouse cursor has moved into an anchor. The event_info
8395     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
8396     * @li "anchor,out": Mouse cursor has moved out of an anchor. The event_info
8397     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
8398     * @li "anchor,up": Mouse button has been unpressed on an anchor. The event_info
8399     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
8400     * @li "anchor,down": Mouse button has been pressed on an anchor. The event_info
8401     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
8402     * @li "preedit,changed": The preedit string has changed.
8403     *
8404     * @section entry-examples
8405     *
8406     * An overview of the Entry API can be seen in @ref entry_example_01
8407     *
8408     * @{
8409     */
8410    /**
8411     * @typedef Elm_Entry_Anchor_Info
8412     *
8413     * The info sent in the callback for the "anchor,clicked" signals emitted
8414     * by entries.
8415     */
8416    typedef struct _Elm_Entry_Anchor_Info Elm_Entry_Anchor_Info;
8417    /**
8418     * @struct _Elm_Entry_Anchor_Info
8419     *
8420     * The info sent in the callback for the "anchor,clicked" signals emitted
8421     * by entries.
8422     */
8423    struct _Elm_Entry_Anchor_Info
8424      {
8425         const char *name; /**< The name of the anchor, as stated in its href */
8426         int         button; /**< The mouse button used to click on it */
8427         Evas_Coord  x, /**< Anchor geometry, relative to canvas */
8428                     y, /**< Anchor geometry, relative to canvas */
8429                     w, /**< Anchor geometry, relative to canvas */
8430                     h; /**< Anchor geometry, relative to canvas */
8431      };
8432    /**
8433     * @typedef Elm_Entry_Filter_Cb
8434     * This callback type is used by entry filters to modify text.
8435     * @param data The data specified as the last param when adding the filter
8436     * @param entry The entry object
8437     * @param text A pointer to the location of the text being filtered. This data can be modified,
8438     * but any additional allocations must be managed by the user.
8439     * @see elm_entry_text_filter_append
8440     * @see elm_entry_text_filter_prepend
8441     */
8442    typedef void (*Elm_Entry_Filter_Cb)(void *data, Evas_Object *entry, char **text);
8443
8444    /**
8445     * This adds an entry to @p parent object.
8446     *
8447     * By default, entries are:
8448     * @li not scrolled
8449     * @li multi-line
8450     * @li word wrapped
8451     * @li autosave is enabled
8452     *
8453     * @param parent The parent object
8454     * @return The new object or NULL if it cannot be created
8455     */
8456    EAPI Evas_Object *elm_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8457    /**
8458     * Sets the entry to single line mode.
8459     *
8460     * In single line mode, entries don't ever wrap when the text reaches the
8461     * edge, and instead they keep growing horizontally. Pressing the @c Enter
8462     * key will generate an @c "activate" event instead of adding a new line.
8463     *
8464     * When @p single_line is @c EINA_FALSE, line wrapping takes effect again
8465     * and pressing enter will break the text into a different line
8466     * without generating any events.
8467     *
8468     * @param obj The entry object
8469     * @param single_line If true, the text in the entry
8470     * will be on a single line.
8471     */
8472    EAPI void         elm_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
8473    /**
8474     * Gets whether the entry is set to be single line.
8475     *
8476     * @param obj The entry object
8477     * @return single_line If true, the text in the entry is set to display
8478     * on a single line.
8479     *
8480     * @see elm_entry_single_line_set()
8481     */
8482    EAPI Eina_Bool    elm_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8483    /**
8484     * Sets the entry to password mode.
8485     *
8486     * In password mode, entries are implicitly single line and the display of
8487     * any text in them is replaced with asterisks (*).
8488     *
8489     * @param obj The entry object
8490     * @param password If true, password mode is enabled.
8491     */
8492    EAPI void         elm_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
8493    /**
8494     * Gets whether the entry is set to password mode.
8495     *
8496     * @param obj The entry object
8497     * @return If true, the entry is set to display all characters
8498     * as asterisks (*).
8499     *
8500     * @see elm_entry_password_set()
8501     */
8502    EAPI Eina_Bool    elm_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8503    /**
8504     * This sets the text displayed within the entry to @p entry.
8505     *
8506     * @param obj The entry object
8507     * @param entry The text to be displayed
8508     *
8509     * @deprecated Use elm_object_text_set() instead.
8510     */
8511    EAPI void         elm_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
8512    /**
8513     * This returns the text currently shown in object @p entry.
8514     * See also elm_entry_entry_set().
8515     *
8516     * @param obj The entry object
8517     * @return The currently displayed text or NULL on failure
8518     *
8519     * @deprecated Use elm_object_text_get() instead.
8520     */
8521    EAPI const char  *elm_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8522    /**
8523     * Appends @p entry to the text of the entry.
8524     *
8525     * Adds the text in @p entry to the end of any text already present in the
8526     * widget.
8527     *
8528     * The appended text is subject to any filters set for the widget.
8529     *
8530     * @param obj The entry object
8531     * @param entry The text to be displayed
8532     *
8533     * @see elm_entry_text_filter_append()
8534     */
8535    EAPI void         elm_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
8536    /**
8537     * Gets whether the entry is empty.
8538     *
8539     * Empty means no text at all. If there are any markup tags, like an item
8540     * tag for which no provider finds anything, and no text is displayed, this
8541     * function still returns EINA_FALSE.
8542     *
8543     * @param obj The entry object
8544     * @return EINA_TRUE if the entry is empty, EINA_FALSE otherwise.
8545     */
8546    EAPI Eina_Bool    elm_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8547    /**
8548     * Gets any selected text within the entry.
8549     *
8550     * If there's any selected text in the entry, this function returns it as
8551     * a string in markup format. NULL is returned if no selection exists or
8552     * if an error occurred.
8553     *
8554     * The returned value points to an internal string and should not be freed
8555     * or modified in any way. If the @p entry object is deleted or its
8556     * contents are changed, the returned pointer should be considered invalid.
8557     *
8558     * @param obj The entry object
8559     * @return The selected text within the entry or NULL on failure
8560     */
8561    EAPI const char  *elm_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8562    /**
8563     * Inserts the given text into the entry at the current cursor position.
8564     *
8565     * This inserts text at the cursor position as if it was typed
8566     * by the user (note that this also allows markup which a user
8567     * can't just "type" as it would be converted to escaped text, so this
8568     * call can be used to insert things like emoticon items or bold push/pop
8569     * tags, other font and color change tags etc.)
8570     *
8571     * If any selection exists, it will be replaced by the inserted text.
8572     *
8573     * The inserted text is subject to any filters set for the widget.
8574     *
8575     * @param obj The entry object
8576     * @param entry The text to insert
8577     *
8578     * @see elm_entry_text_filter_append()
8579     */
8580    EAPI void         elm_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
8581    /**
8582     * Set the line wrap type to use on multi-line entries.
8583     *
8584     * Sets the wrap type used by the entry to any of the specified in
8585     * #Elm_Wrap_Type. This tells how the text will be implicitly cut into a new
8586     * line (without inserting a line break or paragraph separator) when it
8587     * reaches the far edge of the widget.
8588     *
8589     * Note that this only makes sense for multi-line entries. A widget set
8590     * to be single line will never wrap.
8591     *
8592     * @param obj The entry object
8593     * @param wrap The wrap mode to use. See #Elm_Wrap_Type for details on them
8594     */
8595    EAPI void         elm_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
8596    /**
8597     * Gets the wrap mode the entry was set to use.
8598     *
8599     * @param obj The entry object
8600     * @return Wrap type
8601     *
8602     * @see also elm_entry_line_wrap_set()
8603     */
8604    EAPI Elm_Wrap_Type elm_entry_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8605    /**
8606     * Sets if the entry is to be editable or not.
8607     *
8608     * By default, entries are editable and when focused, any text input by the
8609     * user will be inserted at the current cursor position. But calling this
8610     * function with @p editable as EINA_FALSE will prevent the user from
8611     * inputting text into the entry.
8612     *
8613     * The only way to change the text of a non-editable entry is to use
8614     * elm_object_text_set(), elm_entry_entry_insert() and other related
8615     * functions.
8616     *
8617     * @param obj The entry object
8618     * @param editable If EINA_TRUE, user input will be inserted in the entry,
8619     * if not, the entry is read-only and no user input is allowed.
8620     */
8621    EAPI void         elm_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
8622    /**
8623     * Gets whether the entry is editable or not.
8624     *
8625     * @param obj The entry object
8626     * @return If true, the entry is editable by the user.
8627     * If false, it is not editable by the user
8628     *
8629     * @see elm_entry_editable_set()
8630     */
8631    EAPI Eina_Bool    elm_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8632    /**
8633     * This drops any existing text selection within the entry.
8634     *
8635     * @param obj The entry object
8636     */
8637    EAPI void         elm_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
8638    /**
8639     * This selects all text within the entry.
8640     *
8641     * @param obj The entry object
8642     */
8643    EAPI void         elm_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
8644    /**
8645     * This moves the cursor one place to the right within the entry.
8646     *
8647     * @param obj The entry object
8648     * @return EINA_TRUE upon success, EINA_FALSE upon failure
8649     */
8650    EAPI Eina_Bool    elm_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
8651    /**
8652     * This moves the cursor one place to the left within the entry.
8653     *
8654     * @param obj The entry object
8655     * @return EINA_TRUE upon success, EINA_FALSE upon failure
8656     */
8657    EAPI Eina_Bool    elm_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
8658    /**
8659     * This moves the cursor one line up within the entry.
8660     *
8661     * @param obj The entry object
8662     * @return EINA_TRUE upon success, EINA_FALSE upon failure
8663     */
8664    EAPI Eina_Bool    elm_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
8665    /**
8666     * This moves the cursor one line down within the entry.
8667     *
8668     * @param obj The entry object
8669     * @return EINA_TRUE upon success, EINA_FALSE upon failure
8670     */
8671    EAPI Eina_Bool    elm_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
8672    /**
8673     * This moves the cursor to the beginning of the entry.
8674     *
8675     * @param obj The entry object
8676     */
8677    EAPI void         elm_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
8678    /**
8679     * This moves the cursor to the end of the entry.
8680     *
8681     * @param obj The entry object
8682     */
8683    EAPI void         elm_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
8684    /**
8685     * This moves the cursor to the beginning of the current line.
8686     *
8687     * @param obj The entry object
8688     */
8689    EAPI void         elm_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
8690    /**
8691     * This moves the cursor to the end of the current line.
8692     *
8693     * @param obj The entry object
8694     */
8695    EAPI void         elm_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
8696    /**
8697     * This begins a selection within the entry as though
8698     * the user were holding down the mouse button to make a selection.
8699     *
8700     * @param obj The entry object
8701     */
8702    EAPI void         elm_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
8703    /**
8704     * This ends a selection within the entry as though
8705     * the user had just released the mouse button while making a selection.
8706     *
8707     * @param obj The entry object
8708     */
8709    EAPI void         elm_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
8710    /**
8711     * Gets whether a format node exists at the current cursor position.
8712     *
8713     * A format node is anything that defines how the text is rendered. It can
8714     * be a visible format node, such as a line break or a paragraph separator,
8715     * or an invisible one, such as bold begin or end tag.
8716     * This function returns whether any format node exists at the current
8717     * cursor position.
8718     *
8719     * @param obj The entry object
8720     * @return EINA_TRUE if the current cursor position contains a format node,
8721     * EINA_FALSE otherwise.
8722     *
8723     * @see elm_entry_cursor_is_visible_format_get()
8724     */
8725    EAPI Eina_Bool    elm_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8726    /**
8727     * Gets if the current cursor position holds a visible format node.
8728     *
8729     * @param obj The entry object
8730     * @return EINA_TRUE if the current cursor is a visible format, EINA_FALSE
8731     * if it's an invisible one or no format exists.
8732     *
8733     * @see elm_entry_cursor_is_format_get()
8734     */
8735    EAPI Eina_Bool    elm_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8736    /**
8737     * Gets the character pointed by the cursor at its current position.
8738     *
8739     * This function returns a string with the utf8 character stored at the
8740     * current cursor position.
8741     * Only the text is returned, any format that may exist will not be part
8742     * of the return value.
8743     *
8744     * @param obj The entry object
8745     * @return The text pointed by the cursors.
8746     */
8747    EAPI const char  *elm_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8748    /**
8749     * This function returns the geometry of the cursor.
8750     *
8751     * It's useful if you want to draw something on the cursor (or where it is),
8752     * or for example in the case of scrolled entry where you want to show the
8753     * cursor.
8754     *
8755     * @param obj The entry object
8756     * @param x returned geometry
8757     * @param y returned geometry
8758     * @param w returned geometry
8759     * @param h returned geometry
8760     * @return EINA_TRUE upon success, EINA_FALSE upon failure
8761     */
8762    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);
8763    /**
8764     * Sets the cursor position in the entry to the given value
8765     *
8766     * The value in @p pos is the index of the character position within the
8767     * contents of the string as returned by elm_entry_cursor_pos_get().
8768     *
8769     * @param obj The entry object
8770     * @param pos The position of the cursor
8771     */
8772    EAPI void         elm_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
8773    /**
8774     * Retrieves the current position of the cursor in the entry
8775     *
8776     * @param obj The entry object
8777     * @return The cursor position
8778     */
8779    EAPI int          elm_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8780    /**
8781     * This executes a "cut" action on the selected text in the entry.
8782     *
8783     * @param obj The entry object
8784     */
8785    EAPI void         elm_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
8786    /**
8787     * This executes a "copy" action on the selected text in the entry.
8788     *
8789     * @param obj The entry object
8790     */
8791    EAPI void         elm_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
8792    /**
8793     * This executes a "paste" action in the entry.
8794     *
8795     * @param obj The entry object
8796     */
8797    EAPI void         elm_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
8798    /**
8799     * This clears and frees the items in a entry's contextual (longpress)
8800     * menu.
8801     *
8802     * @param obj The entry object
8803     *
8804     * @see elm_entry_context_menu_item_add()
8805     */
8806    EAPI void         elm_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
8807    /**
8808     * This adds an item to the entry's contextual menu.
8809     *
8810     * A longpress on an entry will make the contextual menu show up, if this
8811     * hasn't been disabled with elm_entry_context_menu_disabled_set().
8812     * By default, this menu provides a few options like enabling selection mode,
8813     * which is useful on embedded devices that need to be explicit about it,
8814     * and when a selection exists it also shows the copy and cut actions.
8815     *
8816     * With this function, developers can add other options to this menu to
8817     * perform any action they deem necessary.
8818     *
8819     * @param obj The entry object
8820     * @param label The item's text label
8821     * @param icon_file The item's icon file
8822     * @param icon_type The item's icon type
8823     * @param func The callback to execute when the item is clicked
8824     * @param data The data to associate with the item for related functions
8825     */
8826    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);
8827    /**
8828     * This disables the entry's contextual (longpress) menu.
8829     *
8830     * @param obj The entry object
8831     * @param disabled If true, the menu is disabled
8832     */
8833    EAPI void         elm_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
8834    /**
8835     * This returns whether the entry's contextual (longpress) menu is
8836     * disabled.
8837     *
8838     * @param obj The entry object
8839     * @return If true, the menu is disabled
8840     */
8841    EAPI Eina_Bool    elm_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8842    /**
8843     * This appends a custom item provider to the list for that entry
8844     *
8845     * This appends the given callback. The list is walked from beginning to end
8846     * with each function called given the item href string in the text. If the
8847     * function returns an object handle other than NULL (it should create an
8848     * object to do this), then this object is used to replace that item. If
8849     * not the next provider is called until one provides an item object, or the
8850     * default provider in entry does.
8851     *
8852     * @param obj The entry object
8853     * @param func The function called to provide the item object
8854     * @param data The data passed to @p func
8855     *
8856     * @see @ref entry-items
8857     */
8858    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);
8859    /**
8860     * This prepends a custom item provider to the list for that entry
8861     *
8862     * This prepends the given callback. See elm_entry_item_provider_append() for
8863     * more information
8864     *
8865     * @param obj The entry object
8866     * @param func The function called to provide the item object
8867     * @param data The data passed to @p func
8868     */
8869    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);
8870    /**
8871     * This removes a custom item provider to the list for that entry
8872     *
8873     * This removes the given callback. See elm_entry_item_provider_append() for
8874     * more information
8875     *
8876     * @param obj The entry object
8877     * @param func The function called to provide the item object
8878     * @param data The data passed to @p func
8879     */
8880    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);
8881    /**
8882     * Append a filter function for text inserted in the entry
8883     *
8884     * Append the given callback to the list. This functions will be called
8885     * whenever any text is inserted into the entry, with the text to be inserted
8886     * as a parameter. The callback function is free to alter the text in any way
8887     * it wants, but it must remember to free the given pointer and update it.
8888     * If the new text is to be discarded, the function can free it and set its
8889     * text parameter to NULL. This will also prevent any following filters from
8890     * being called.
8891     *
8892     * @param obj The entry object
8893     * @param func The function to use as text filter
8894     * @param data User data to pass to @p func
8895     */
8896    EAPI void         elm_entry_text_filter_append(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
8897    /**
8898     * Prepend a filter function for text insdrted in the entry
8899     *
8900     * Prepend the given callback to the list. See elm_entry_text_filter_append()
8901     * for more information
8902     *
8903     * @param obj The entry object
8904     * @param func The function to use as text filter
8905     * @param data User data to pass to @p func
8906     */
8907    EAPI void         elm_entry_text_filter_prepend(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
8908    /**
8909     * Remove a filter from the list
8910     *
8911     * Removes the given callback from the filter list. See
8912     * elm_entry_text_filter_append() for more information.
8913     *
8914     * @param obj The entry object
8915     * @param func The filter function to remove
8916     * @param data The user data passed when adding the function
8917     */
8918    EAPI void         elm_entry_text_filter_remove(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
8919    /**
8920     * This converts a markup (HTML-like) string into UTF-8.
8921     *
8922     * The returned string is a malloc'ed buffer and it should be freed when
8923     * not needed anymore.
8924     *
8925     * @param s The string (in markup) to be converted
8926     * @return The converted string (in UTF-8). It should be freed.
8927     */
8928    EAPI char        *elm_entry_markup_to_utf8(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
8929    /**
8930     * This converts a UTF-8 string into markup (HTML-like).
8931     *
8932     * The returned string is a malloc'ed buffer and it should be freed when
8933     * not needed anymore.
8934     *
8935     * @param s The string (in UTF-8) to be converted
8936     * @return The converted string (in markup). It should be freed.
8937     */
8938    EAPI char        *elm_entry_utf8_to_markup(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
8939    /**
8940     * This sets the file (and implicitly loads it) for the text to display and
8941     * then edit. All changes are written back to the file after a short delay if
8942     * the entry object is set to autosave (which is the default).
8943     *
8944     * If the entry had any other file set previously, any changes made to it
8945     * will be saved if the autosave feature is enabled, otherwise, the file
8946     * will be silently discarded and any non-saved changes will be lost.
8947     *
8948     * @param obj The entry object
8949     * @param file The path to the file to load and save
8950     * @param format The file format
8951     */
8952    EAPI void         elm_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
8953    /**
8954     * Gets the file being edited by the entry.
8955     *
8956     * This function can be used to retrieve any file set on the entry for
8957     * edition, along with the format used to load and save it.
8958     *
8959     * @param obj The entry object
8960     * @param file The path to the file to load and save
8961     * @param format The file format
8962     */
8963    EAPI void         elm_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
8964    /**
8965     * This function writes any changes made to the file set with
8966     * elm_entry_file_set()
8967     *
8968     * @param obj The entry object
8969     */
8970    EAPI void         elm_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
8971    /**
8972     * This sets the entry object to 'autosave' the loaded text file or not.
8973     *
8974     * @param obj The entry object
8975     * @param autosave Autosave the loaded file or not
8976     *
8977     * @see elm_entry_file_set()
8978     */
8979    EAPI void         elm_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
8980    /**
8981     * This gets the entry object's 'autosave' status.
8982     *
8983     * @param obj The entry object
8984     * @return Autosave the loaded file or not
8985     *
8986     * @see elm_entry_file_set()
8987     */
8988    EAPI Eina_Bool    elm_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8989    /**
8990     * Control pasting of text and images for the widget.
8991     *
8992     * Normally the entry allows both text and images to be pasted.  By setting
8993     * textonly to be true, this prevents images from being pasted.
8994     *
8995     * Note this only changes the behaviour of text.
8996     *
8997     * @param obj The entry object
8998     * @param textonly paste mode - EINA_TRUE is text only, EINA_FALSE is
8999     * text+image+other.
9000     */
9001    EAPI void         elm_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
9002    /**
9003     * Getting elm_entry text paste/drop mode.
9004     *
9005     * In textonly mode, only text may be pasted or dropped into the widget.
9006     *
9007     * @param obj The entry object
9008     * @return If the widget only accepts text from pastes.
9009     */
9010    EAPI Eina_Bool    elm_entry_cnp_textonly_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9011    /**
9012     * Enable or disable scrolling in entry
9013     *
9014     * Normally the entry is not scrollable unless you enable it with this call.
9015     *
9016     * @param obj The entry object
9017     * @param scroll EINA_TRUE if it is to be scrollable, EINA_FALSE otherwise
9018     */
9019    EAPI void         elm_entry_scrollable_set(Evas_Object *obj, Eina_Bool scroll);
9020    /**
9021     * Get the scrollable state of the entry
9022     *
9023     * Normally the entry is not scrollable. This gets the scrollable state
9024     * of the entry. See elm_entry_scrollable_set() for more information.
9025     *
9026     * @param obj The entry object
9027     * @return The scrollable state
9028     */
9029    EAPI Eina_Bool    elm_entry_scrollable_get(const Evas_Object *obj);
9030    /**
9031     * This sets a widget to be displayed to the left of a scrolled entry.
9032     *
9033     * @param obj The scrolled entry object
9034     * @param icon The widget to display on the left side of the scrolled
9035     * entry.
9036     *
9037     * @note A previously set widget will be destroyed.
9038     * @note If the object being set does not have minimum size hints set,
9039     * it won't get properly displayed.
9040     *
9041     * @see elm_entry_end_set()
9042     */
9043    EAPI void         elm_entry_icon_set(Evas_Object *obj, Evas_Object *icon);
9044    /**
9045     * Gets the leftmost widget of the scrolled entry. This object is
9046     * owned by the scrolled entry and should not be modified.
9047     *
9048     * @param obj The scrolled entry object
9049     * @return the left widget inside the scroller
9050     */
9051    EAPI Evas_Object *elm_entry_icon_get(const Evas_Object *obj);
9052    /**
9053     * Unset the leftmost widget of the scrolled entry, unparenting and
9054     * returning it.
9055     *
9056     * @param obj The scrolled entry object
9057     * @return the previously set icon sub-object of this entry, on
9058     * success.
9059     *
9060     * @see elm_entry_icon_set()
9061     */
9062    EAPI Evas_Object *elm_entry_icon_unset(Evas_Object *obj);
9063    /**
9064     * Sets the visibility of the left-side widget of the scrolled entry,
9065     * set by elm_entry_icon_set().
9066     *
9067     * @param obj The scrolled entry object
9068     * @param setting EINA_TRUE if the object should be displayed,
9069     * EINA_FALSE if not.
9070     */
9071    EAPI void         elm_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting);
9072    /**
9073     * This sets a widget to be displayed to the end of a scrolled entry.
9074     *
9075     * @param obj The scrolled entry object
9076     * @param end The widget to display on the right side of the scrolled
9077     * entry.
9078     *
9079     * @note A previously set widget will be destroyed.
9080     * @note If the object being set does not have minimum size hints set,
9081     * it won't get properly displayed.
9082     *
9083     * @see elm_entry_icon_set
9084     */
9085    EAPI void         elm_entry_end_set(Evas_Object *obj, Evas_Object *end);
9086    /**
9087     * Gets the endmost widget of the scrolled entry. This object is owned
9088     * by the scrolled entry and should not be modified.
9089     *
9090     * @param obj The scrolled entry object
9091     * @return the right widget inside the scroller
9092     */
9093    EAPI Evas_Object *elm_entry_end_get(const Evas_Object *obj);
9094    /**
9095     * Unset the endmost widget of the scrolled entry, unparenting and
9096     * returning it.
9097     *
9098     * @param obj The scrolled entry object
9099     * @return the previously set icon sub-object of this entry, on
9100     * success.
9101     *
9102     * @see elm_entry_icon_set()
9103     */
9104    EAPI Evas_Object *elm_entry_end_unset(Evas_Object *obj);
9105    /**
9106     * Sets the visibility of the end widget of the scrolled entry, set by
9107     * elm_entry_end_set().
9108     *
9109     * @param obj The scrolled entry object
9110     * @param setting EINA_TRUE if the object should be displayed,
9111     * EINA_FALSE if not.
9112     */
9113    EAPI void         elm_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting);
9114    /**
9115     * This sets the scrolled entry's scrollbar policy (ie. enabling/disabling
9116     * them).
9117     *
9118     * Setting an entry to single-line mode with elm_entry_single_line_set()
9119     * will automatically disable the display of scrollbars when the entry
9120     * moves inside its scroller.
9121     *
9122     * @param obj The scrolled entry object
9123     * @param h The horizontal scrollbar policy to apply
9124     * @param v The vertical scrollbar policy to apply
9125     */
9126    EAPI void         elm_entry_scrollbar_policy_set(Evas_Object *obj, Elm_Scroller_Policy h, Elm_Scroller_Policy v);
9127    /**
9128     * This enables/disables bouncing within the entry.
9129     *
9130     * This function sets whether the entry will bounce when scrolling reaches
9131     * the end of the contained entry.
9132     *
9133     * @param obj The scrolled entry object
9134     * @param h The horizontal bounce state
9135     * @param v The vertical bounce state
9136     */
9137    EAPI void         elm_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
9138    /**
9139     * Get the bounce mode
9140     *
9141     * @param obj The Entry object
9142     * @param h_bounce Allow bounce horizontally
9143     * @param v_bounce Allow bounce vertically
9144     */
9145    EAPI void         elm_entry_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
9146
9147    /* pre-made filters for entries */
9148    /**
9149     * @typedef Elm_Entry_Filter_Limit_Size
9150     *
9151     * Data for the elm_entry_filter_limit_size() entry filter.
9152     */
9153    typedef struct _Elm_Entry_Filter_Limit_Size Elm_Entry_Filter_Limit_Size;
9154    /**
9155     * @struct _Elm_Entry_Filter_Limit_Size
9156     *
9157     * Data for the elm_entry_filter_limit_size() entry filter.
9158     */
9159    struct _Elm_Entry_Filter_Limit_Size
9160      {
9161         int max_char_count; /**< The maximum number of characters allowed. */
9162         int max_byte_count; /**< The maximum number of bytes allowed*/
9163      };
9164    /**
9165     * Filter inserted text based on user defined character and byte limits
9166     *
9167     * Add this filter to an entry to limit the characters that it will accept
9168     * based the the contents of the provided #Elm_Entry_Filter_Limit_Size.
9169     * The funtion works on the UTF-8 representation of the string, converting
9170     * it from the set markup, thus not accounting for any format in it.
9171     *
9172     * The user must create an #Elm_Entry_Filter_Limit_Size structure and pass
9173     * it as data when setting the filter. In it, it's possible to set limits
9174     * by character count or bytes (any of them is disabled if 0), and both can
9175     * be set at the same time. In that case, it first checks for characters,
9176     * then bytes.
9177     *
9178     * The function will cut the inserted text in order to allow only the first
9179     * number of characters that are still allowed. The cut is made in
9180     * characters, even when limiting by bytes, in order to always contain
9181     * valid ones and avoid half unicode characters making it in.
9182     *
9183     * This filter, like any others, does not apply when setting the entry text
9184     * directly with elm_object_text_set() (or the deprecated
9185     * elm_entry_entry_set()).
9186     */
9187    EAPI void         elm_entry_filter_limit_size(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 2, 3);
9188    /**
9189     * @typedef Elm_Entry_Filter_Accept_Set
9190     *
9191     * Data for the elm_entry_filter_accept_set() entry filter.
9192     */
9193    typedef struct _Elm_Entry_Filter_Accept_Set Elm_Entry_Filter_Accept_Set;
9194    /**
9195     * @struct _Elm_Entry_Filter_Accept_Set
9196     *
9197     * Data for the elm_entry_filter_accept_set() entry filter.
9198     */
9199    struct _Elm_Entry_Filter_Accept_Set
9200      {
9201         const char *accepted; /**< Set of characters accepted in the entry. */
9202         const char *rejected; /**< Set of characters rejected from the entry. */
9203      };
9204    /**
9205     * Filter inserted text based on accepted or rejected sets of characters
9206     *
9207     * Add this filter to an entry to restrict the set of accepted characters
9208     * based on the sets in the provided #Elm_Entry_Filter_Accept_Set.
9209     * This structure contains both accepted and rejected sets, but they are
9210     * mutually exclusive.
9211     *
9212     * The @c accepted set takes preference, so if it is set, the filter will
9213     * only work based on the accepted characters, ignoring anything in the
9214     * @c rejected value. If @c accepted is @c NULL, then @c rejected is used.
9215     *
9216     * In both cases, the function filters by matching utf8 characters to the
9217     * raw markup text, so it can be used to remove formatting tags.
9218     *
9219     * This filter, like any others, does not apply when setting the entry text
9220     * directly with elm_object_text_set() (or the deprecated
9221     * elm_entry_entry_set()).
9222     */
9223    EAPI void         elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 3);
9224    /**
9225     * @}
9226     */
9227
9228    /* composite widgets - these basically put together basic widgets above
9229     * in convenient packages that do more than basic stuff */
9230
9231    /* anchorview */
9232    /**
9233     * @defgroup Anchorview Anchorview
9234     *
9235     * @image html img/widget/anchorview/preview-00.png
9236     * @image latex img/widget/anchorview/preview-00.eps
9237     *
9238     * Anchorview is for displaying text that contains markup with anchors
9239     * like <c>\<a href=1234\>something\</\></c> in it.
9240     *
9241     * Besides being styled differently, the anchorview widget provides the
9242     * necessary functionality so that clicking on these anchors brings up a
9243     * popup with user defined content such as "call", "add to contacts" or
9244     * "open web page". This popup is provided using the @ref Hover widget.
9245     *
9246     * This widget is very similar to @ref Anchorblock, so refer to that
9247     * widget for an example. The only difference Anchorview has is that the
9248     * widget is already provided with scrolling functionality, so if the
9249     * text set to it is too large to fit in the given space, it will scroll,
9250     * whereas the @ref Anchorblock widget will keep growing to ensure all the
9251     * text can be displayed.
9252     *
9253     * This widget emits the following signals:
9254     * @li "anchor,clicked": will be called when an anchor is clicked. The
9255     * @p event_info parameter on the callback will be a pointer of type
9256     * ::Elm_Entry_Anchorview_Info.
9257     *
9258     * See @ref Anchorblock for an example on how to use both of them.
9259     *
9260     * @see Anchorblock
9261     * @see Entry
9262     * @see Hover
9263     *
9264     * @{
9265     */
9266    /**
9267     * @typedef Elm_Entry_Anchorview_Info
9268     *
9269     * The info sent in the callback for "anchor,clicked" signals emitted by
9270     * the Anchorview widget.
9271     */
9272    typedef struct _Elm_Entry_Anchorview_Info Elm_Entry_Anchorview_Info;
9273    /**
9274     * @struct _Elm_Entry_Anchorview_Info
9275     *
9276     * The info sent in the callback for "anchor,clicked" signals emitted by
9277     * the Anchorview widget.
9278     */
9279    struct _Elm_Entry_Anchorview_Info
9280      {
9281         const char     *name; /**< Name of the anchor, as indicated in its href
9282                                    attribute */
9283         int             button; /**< The mouse button used to click on it */
9284         Evas_Object    *hover; /**< The hover object to use for the popup */
9285         struct {
9286              Evas_Coord    x, y, w, h;
9287         } anchor, /**< Geometry selection of text used as anchor */
9288           hover_parent; /**< Geometry of the object used as parent by the
9289                              hover */
9290         Eina_Bool       hover_left : 1; /**< Hint indicating if there's space
9291                                              for content on the left side of
9292                                              the hover. Before calling the
9293                                              callback, the widget will make the
9294                                              necessary calculations to check
9295                                              which sides are fit to be set with
9296                                              content, based on the position the
9297                                              hover is activated and its distance
9298                                              to the edges of its parent object
9299                                              */
9300         Eina_Bool       hover_right : 1; /**< Hint indicating content fits on
9301                                               the right side of the hover.
9302                                               See @ref hover_left */
9303         Eina_Bool       hover_top : 1; /**< Hint indicating content fits on top
9304                                             of the hover. See @ref hover_left */
9305         Eina_Bool       hover_bottom : 1; /**< Hint indicating content fits
9306                                                below the hover. See @ref
9307                                                hover_left */
9308      };
9309    /**
9310     * Add a new Anchorview object
9311     *
9312     * @param parent The parent object
9313     * @return The new object or NULL if it cannot be created
9314     */
9315    EAPI Evas_Object *elm_anchorview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9316    /**
9317     * Set the text to show in the anchorview
9318     *
9319     * Sets the text of the anchorview to @p text. This text can include markup
9320     * format tags, including <c>\<a href=anchorname\></c> to begin a segment of
9321     * text that will be specially styled and react to click events, ended with
9322     * either of \</a\> or \</\>. When clicked, the anchor will emit an
9323     * "anchor,clicked" signal that you can attach a callback to with
9324     * evas_object_smart_callback_add(). The name of the anchor given in the
9325     * event info struct will be the one set in the href attribute, in this
9326     * case, anchorname.
9327     *
9328     * Other markup can be used to style the text in different ways, but it's
9329     * up to the style defined in the theme which tags do what.
9330     * @deprecated use elm_object_text_set() instead.
9331     */
9332    EINA_DEPRECATED EAPI void         elm_anchorview_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
9333    /**
9334     * Get the markup text set for the anchorview
9335     *
9336     * Retrieves the text set on the anchorview, with markup tags included.
9337     *
9338     * @param obj The anchorview object
9339     * @return The markup text set or @c NULL if nothing was set or an error
9340     * occurred
9341     * @deprecated use elm_object_text_set() instead.
9342     */
9343    EINA_DEPRECATED EAPI const char  *elm_anchorview_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9344    /**
9345     * Set the parent of the hover popup
9346     *
9347     * Sets the parent object to use by the hover created by the anchorview
9348     * when an anchor is clicked. See @ref Hover for more details on this.
9349     * If no parent is set, the same anchorview object will be used.
9350     *
9351     * @param obj The anchorview object
9352     * @param parent The object to use as parent for the hover
9353     */
9354    EAPI void         elm_anchorview_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
9355    /**
9356     * Get the parent of the hover popup
9357     *
9358     * Get the object used as parent for the hover created by the anchorview
9359     * widget. See @ref Hover for more details on this.
9360     *
9361     * @param obj The anchorview object
9362     * @return The object used as parent for the hover, NULL if none is set.
9363     */
9364    EAPI Evas_Object *elm_anchorview_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9365    /**
9366     * Set the style that the hover should use
9367     *
9368     * When creating the popup hover, anchorview will request that it's
9369     * themed according to @p style.
9370     *
9371     * @param obj The anchorview object
9372     * @param style The style to use for the underlying hover
9373     *
9374     * @see elm_object_style_set()
9375     */
9376    EAPI void         elm_anchorview_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
9377    /**
9378     * Get the style that the hover should use
9379     *
9380     * Get the style the hover created by anchorview will use.
9381     *
9382     * @param obj The anchorview object
9383     * @return The style to use by the hover. NULL means the default is used.
9384     *
9385     * @see elm_object_style_set()
9386     */
9387    EAPI const char  *elm_anchorview_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9388    /**
9389     * Ends the hover popup in the anchorview
9390     *
9391     * When an anchor is clicked, the anchorview widget will create a hover
9392     * object to use as a popup with user provided content. This function
9393     * terminates this popup, returning the anchorview to its normal state.
9394     *
9395     * @param obj The anchorview object
9396     */
9397    EAPI void         elm_anchorview_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
9398    /**
9399     * Set bouncing behaviour when the scrolled content reaches an edge
9400     *
9401     * Tell the internal scroller object whether it should bounce or not
9402     * when it reaches the respective edges for each axis.
9403     *
9404     * @param obj The anchorview object
9405     * @param h_bounce Whether to bounce or not in the horizontal axis
9406     * @param v_bounce Whether to bounce or not in the vertical axis
9407     *
9408     * @see elm_scroller_bounce_set()
9409     */
9410    EAPI void         elm_anchorview_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
9411    /**
9412     * Get the set bouncing behaviour of the internal scroller
9413     *
9414     * Get whether the internal scroller should bounce when the edge of each
9415     * axis is reached scrolling.
9416     *
9417     * @param obj The anchorview object
9418     * @param h_bounce Pointer where to store the bounce state of the horizontal
9419     *                 axis
9420     * @param v_bounce Pointer where to store the bounce state of the vertical
9421     *                 axis
9422     *
9423     * @see elm_scroller_bounce_get()
9424     */
9425    EAPI void         elm_anchorview_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
9426    /**
9427     * Appends a custom item provider to the given anchorview
9428     *
9429     * Appends the given function to the list of items providers. This list is
9430     * called, one function at a time, with the given @p data pointer, the
9431     * anchorview object and, in the @p item parameter, the item name as
9432     * referenced in its href string. Following functions in the list will be
9433     * called in order until one of them returns something different to NULL,
9434     * which should be an Evas_Object which will be used in place of the item
9435     * element.
9436     *
9437     * Items in the markup text take the form \<item relsize=16x16 vsize=full
9438     * href=item/name\>\</item\>
9439     *
9440     * @param obj The anchorview object
9441     * @param func The function to add to the list of providers
9442     * @param data User data that will be passed to the callback function
9443     *
9444     * @see elm_entry_item_provider_append()
9445     */
9446    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);
9447    /**
9448     * Prepend a custom item provider to the given anchorview
9449     *
9450     * Like elm_anchorview_item_provider_append(), but it adds the function
9451     * @p func to the beginning of the list, instead of the end.
9452     *
9453     * @param obj The anchorview object
9454     * @param func The function to add to the list of providers
9455     * @param data User data that will be passed to the callback function
9456     */
9457    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);
9458    /**
9459     * Remove a custom item provider from the list of the given anchorview
9460     *
9461     * Removes the function and data pairing that matches @p func and @p data.
9462     * That is, unless the same function and same user data are given, the
9463     * function will not be removed from the list. This allows us to add the
9464     * same callback several times, with different @p data pointers and be
9465     * able to remove them later without conflicts.
9466     *
9467     * @param obj The anchorview object
9468     * @param func The function to remove from the list
9469     * @param data The data matching the function to remove from the list
9470     */
9471    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);
9472    /**
9473     * @}
9474     */
9475
9476    /* anchorblock */
9477    /**
9478     * @defgroup Anchorblock Anchorblock
9479     *
9480     * @image html img/widget/anchorblock/preview-00.png
9481     * @image latex img/widget/anchorblock/preview-00.eps
9482     *
9483     * Anchorblock is for displaying text that contains markup with anchors
9484     * like <c>\<a href=1234\>something\</\></c> in it.
9485     *
9486     * Besides being styled differently, the anchorblock widget provides the
9487     * necessary functionality so that clicking on these anchors brings up a
9488     * popup with user defined content such as "call", "add to contacts" or
9489     * "open web page". This popup is provided using the @ref Hover widget.
9490     *
9491     * This widget emits the following signals:
9492     * @li "anchor,clicked": will be called when an anchor is clicked. The
9493     * @p event_info parameter on the callback will be a pointer of type
9494     * ::Elm_Entry_Anchorblock_Info.
9495     *
9496     * @see Anchorview
9497     * @see Entry
9498     * @see Hover
9499     *
9500     * Since examples are usually better than plain words, we might as well
9501     * try @ref tutorial_anchorblock_example "one".
9502     */
9503    /**
9504     * @addtogroup Anchorblock
9505     * @{
9506     */
9507    /**
9508     * @typedef Elm_Entry_Anchorblock_Info
9509     *
9510     * The info sent in the callback for "anchor,clicked" signals emitted by
9511     * the Anchorblock widget.
9512     */
9513    typedef struct _Elm_Entry_Anchorblock_Info Elm_Entry_Anchorblock_Info;
9514    /**
9515     * @struct _Elm_Entry_Anchorblock_Info
9516     *
9517     * The info sent in the callback for "anchor,clicked" signals emitted by
9518     * the Anchorblock widget.
9519     */
9520    struct _Elm_Entry_Anchorblock_Info
9521      {
9522         const char     *name; /**< Name of the anchor, as indicated in its href
9523                                    attribute */
9524         int             button; /**< The mouse button used to click on it */
9525         Evas_Object    *hover; /**< The hover object to use for the popup */
9526         struct {
9527              Evas_Coord    x, y, w, h;
9528         } anchor, /**< Geometry selection of text used as anchor */
9529           hover_parent; /**< Geometry of the object used as parent by the
9530                              hover */
9531         Eina_Bool       hover_left : 1; /**< Hint indicating if there's space
9532                                              for content on the left side of
9533                                              the hover. Before calling the
9534                                              callback, the widget will make the
9535                                              necessary calculations to check
9536                                              which sides are fit to be set with
9537                                              content, based on the position the
9538                                              hover is activated and its distance
9539                                              to the edges of its parent object
9540                                              */
9541         Eina_Bool       hover_right : 1; /**< Hint indicating content fits on
9542                                               the right side of the hover.
9543                                               See @ref hover_left */
9544         Eina_Bool       hover_top : 1; /**< Hint indicating content fits on top
9545                                             of the hover. See @ref hover_left */
9546         Eina_Bool       hover_bottom : 1; /**< Hint indicating content fits
9547                                                below the hover. See @ref
9548                                                hover_left */
9549      };
9550    /**
9551     * Add a new Anchorblock object
9552     *
9553     * @param parent The parent object
9554     * @return The new object or NULL if it cannot be created
9555     */
9556    EAPI Evas_Object *elm_anchorblock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9557    /**
9558     * Set the text to show in the anchorblock
9559     *
9560     * Sets the text of the anchorblock to @p text. This text can include markup
9561     * format tags, including <c>\<a href=anchorname\></a></c> to begin a segment
9562     * of text that will be specially styled and react to click events, ended
9563     * with either of \</a\> or \</\>. When clicked, the anchor will emit an
9564     * "anchor,clicked" signal that you can attach a callback to with
9565     * evas_object_smart_callback_add(). The name of the anchor given in the
9566     * event info struct will be the one set in the href attribute, in this
9567     * case, anchorname.
9568     *
9569     * Other markup can be used to style the text in different ways, but it's
9570     * up to the style defined in the theme which tags do what.
9571     * @deprecated use elm_object_text_set() instead.
9572     */
9573    EINA_DEPRECATED EAPI void         elm_anchorblock_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
9574    /**
9575     * Get the markup text set for the anchorblock
9576     *
9577     * Retrieves the text set on the anchorblock, with markup tags included.
9578     *
9579     * @param obj The anchorblock object
9580     * @return The markup text set or @c NULL if nothing was set or an error
9581     * occurred
9582     * @deprecated use elm_object_text_set() instead.
9583     */
9584    EINA_DEPRECATED EAPI const char  *elm_anchorblock_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9585    /**
9586     * Set the parent of the hover popup
9587     *
9588     * Sets the parent object to use by the hover created by the anchorblock
9589     * when an anchor is clicked. See @ref Hover for more details on this.
9590     *
9591     * @param obj The anchorblock object
9592     * @param parent The object to use as parent for the hover
9593     */
9594    EAPI void         elm_anchorblock_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
9595    /**
9596     * Get the parent of the hover popup
9597     *
9598     * Get the object used as parent for the hover created by the anchorblock
9599     * widget. See @ref Hover for more details on this.
9600     * If no parent is set, the same anchorblock object will be used.
9601     *
9602     * @param obj The anchorblock object
9603     * @return The object used as parent for the hover, NULL if none is set.
9604     */
9605    EAPI Evas_Object *elm_anchorblock_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9606    /**
9607     * Set the style that the hover should use
9608     *
9609     * When creating the popup hover, anchorblock will request that it's
9610     * themed according to @p style.
9611     *
9612     * @param obj The anchorblock object
9613     * @param style The style to use for the underlying hover
9614     *
9615     * @see elm_object_style_set()
9616     */
9617    EAPI void         elm_anchorblock_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
9618    /**
9619     * Get the style that the hover should use
9620     *
9621     * Get the style the hover created by anchorblock will use.
9622     *
9623     * @param obj The anchorblock object
9624     * @return The style to use by the hover. NULL means the default is used.
9625     *
9626     * @see elm_object_style_set()
9627     */
9628    EAPI const char  *elm_anchorblock_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9629    /**
9630     * Ends the hover popup in the anchorblock
9631     *
9632     * When an anchor is clicked, the anchorblock widget will create a hover
9633     * object to use as a popup with user provided content. This function
9634     * terminates this popup, returning the anchorblock to its normal state.
9635     *
9636     * @param obj The anchorblock object
9637     */
9638    EAPI void         elm_anchorblock_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
9639    /**
9640     * Appends a custom item provider to the given anchorblock
9641     *
9642     * Appends the given function to the list of items providers. This list is
9643     * called, one function at a time, with the given @p data pointer, the
9644     * anchorblock object and, in the @p item parameter, the item name as
9645     * referenced in its href string. Following functions in the list will be
9646     * called in order until one of them returns something different to NULL,
9647     * which should be an Evas_Object which will be used in place of the item
9648     * element.
9649     *
9650     * Items in the markup text take the form \<item relsize=16x16 vsize=full
9651     * href=item/name\>\</item\>
9652     *
9653     * @param obj The anchorblock object
9654     * @param func The function to add to the list of providers
9655     * @param data User data that will be passed to the callback function
9656     *
9657     * @see elm_entry_item_provider_append()
9658     */
9659    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);
9660    /**
9661     * Prepend a custom item provider to the given anchorblock
9662     *
9663     * Like elm_anchorblock_item_provider_append(), but it adds the function
9664     * @p func to the beginning of the list, instead of the end.
9665     *
9666     * @param obj The anchorblock object
9667     * @param func The function to add to the list of providers
9668     * @param data User data that will be passed to the callback function
9669     */
9670    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);
9671    /**
9672     * Remove a custom item provider from the list of the given anchorblock
9673     *
9674     * Removes the function and data pairing that matches @p func and @p data.
9675     * That is, unless the same function and same user data are given, the
9676     * function will not be removed from the list. This allows us to add the
9677     * same callback several times, with different @p data pointers and be
9678     * able to remove them later without conflicts.
9679     *
9680     * @param obj The anchorblock object
9681     * @param func The function to remove from the list
9682     * @param data The data matching the function to remove from the list
9683     */
9684    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);
9685    /**
9686     * @}
9687     */
9688
9689    /**
9690     * @defgroup Bubble Bubble
9691     *
9692     * @image html img/widget/bubble/preview-00.png
9693     * @image html img/widget/bubble/preview-01.png
9694     * @image html img/widget/bubble/preview-02.png
9695     *
9696     * @brief The Bubble is a widget to show text similarly to how speech is
9697     * represented in comics.
9698     *
9699     * The bubble widget contains 5 important visual elements:
9700     * @li The frame is a rectangle with rounded rectangles and an "arrow".
9701     * @li The @p icon is an image to which the frame's arrow points to.
9702     * @li The @p label is a text which appears to the right of the icon if the
9703     * corner is "top_left" or "bottom_left" and is right aligned to the frame
9704     * otherwise.
9705     * @li The @p info is a text which appears to the right of the label. Info's
9706     * font is of a ligther color than label.
9707     * @li The @p content is an evas object that is shown inside the frame.
9708     *
9709     * The position of the arrow, icon, label and info depends on which corner is
9710     * selected. The four available corners are:
9711     * @li "top_left" - Default
9712     * @li "top_right"
9713     * @li "bottom_left"
9714     * @li "bottom_right"
9715     *
9716     * Signals that you can add callbacks for are:
9717     * @li "clicked" - This is called when a user has clicked the bubble.
9718     *
9719     * For an example of using a buble see @ref bubble_01_example_page "this".
9720     *
9721     * @{
9722     */
9723    /**
9724     * Add a new bubble to the parent
9725     *
9726     * @param parent The parent object
9727     * @return The new object or NULL if it cannot be created
9728     *
9729     * This function adds a text bubble to the given parent evas object.
9730     */
9731    EAPI Evas_Object *elm_bubble_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9732    /**
9733     * Set the label of the bubble
9734     *
9735     * @param obj The bubble object
9736     * @param label The string to set in the label
9737     *
9738     * This function sets the title of the bubble. Where this appears depends on
9739     * the selected corner.
9740     * @deprecated use elm_object_text_set() instead.
9741     */
9742    EINA_DEPRECATED EAPI void         elm_bubble_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
9743    /**
9744     * Get the label of the bubble
9745     *
9746     * @param obj The bubble object
9747     * @return The string of set in the label
9748     *
9749     * This function gets the title of the bubble.
9750     * @deprecated use elm_object_text_set() instead.
9751     */
9752    EINA_DEPRECATED EAPI const char  *elm_bubble_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9753    /**
9754     * Set the info of the bubble
9755     *
9756     * @param obj The bubble object
9757     * @param info The given info about the bubble
9758     *
9759     * This function sets the info of the bubble. Where this appears depends on
9760     * the selected corner.
9761     * @deprecated use elm_object_text_set() instead.
9762     */
9763    EINA_DEPRECATED EAPI void         elm_bubble_info_set(Evas_Object *obj, const char *info) EINA_ARG_NONNULL(1);
9764    /**
9765     * Get the info of the bubble
9766     *
9767     * @param obj The bubble object
9768     *
9769     * @return The "info" string of the bubble
9770     *
9771     * This function gets the info text.
9772     * @deprecated use elm_object_text_set() instead.
9773     */
9774    EINA_DEPRECATED EAPI const char  *elm_bubble_info_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9775    /**
9776     * Set the content to be shown in the bubble
9777     *
9778     * Once the content object is set, a previously set one will be deleted.
9779     * If you want to keep the old content object, use the
9780     * elm_bubble_content_unset() function.
9781     *
9782     * @param obj The bubble object
9783     * @param content The given content of the bubble
9784     *
9785     * This function sets the content shown on the middle of the bubble.
9786     */
9787    EAPI void         elm_bubble_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
9788    /**
9789     * Get the content shown in the bubble
9790     *
9791     * Return the content object which is set for this widget.
9792     *
9793     * @param obj The bubble object
9794     * @return The content that is being used
9795     */
9796    EAPI Evas_Object *elm_bubble_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9797    /**
9798     * Unset the content shown in the bubble
9799     *
9800     * Unparent and return the content object which was set for this widget.
9801     *
9802     * @param obj The bubble object
9803     * @return The content that was being used
9804     */
9805    EAPI Evas_Object *elm_bubble_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
9806    /**
9807     * Set the icon of the bubble
9808     *
9809     * Once the icon object is set, a previously set one will be deleted.
9810     * If you want to keep the old content object, use the
9811     * elm_icon_content_unset() function.
9812     *
9813     * @param obj The bubble object
9814     * @param icon The given icon for the bubble
9815     */
9816    EAPI void         elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
9817    /**
9818     * Get the icon of the bubble
9819     *
9820     * @param obj The bubble object
9821     * @return The icon for the bubble
9822     *
9823     * This function gets the icon shown on the top left of bubble.
9824     */
9825    EAPI Evas_Object *elm_bubble_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9826    /**
9827     * Unset the icon of the bubble
9828     *
9829     * Unparent and return the icon object which was set for this widget.
9830     *
9831     * @param obj The bubble object
9832     * @return The icon that was being used
9833     */
9834    EAPI Evas_Object *elm_bubble_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
9835    /**
9836     * Set the corner of the bubble
9837     *
9838     * @param obj The bubble object.
9839     * @param corner The given corner for the bubble.
9840     *
9841     * This function sets the corner of the bubble. The corner will be used to
9842     * determine where the arrow in the frame points to and where label, icon and
9843     * info arre shown.
9844     *
9845     * Possible values for corner are:
9846     * @li "top_left" - Default
9847     * @li "top_right"
9848     * @li "bottom_left"
9849     * @li "bottom_right"
9850     */
9851    EAPI void         elm_bubble_corner_set(Evas_Object *obj, const char *corner) EINA_ARG_NONNULL(1, 2);
9852    /**
9853     * Get the corner of the bubble
9854     *
9855     * @param obj The bubble object.
9856     * @return The given corner for the bubble.
9857     *
9858     * This function gets the selected corner of the bubble.
9859     */
9860    EAPI const char  *elm_bubble_corner_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9861    /**
9862     * @}
9863     */
9864
9865    /* photo */
9866    EAPI Evas_Object *elm_photo_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9867    EAPI Eina_Bool    elm_photo_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
9868    EAPI void         elm_photo_size_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
9869    EAPI void         elm_photo_fill_inside_set(Evas_Object *obj, Eina_Bool fill) EINA_ARG_NONNULL(1);
9870    EAPI void         elm_photo_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
9871    /* smart callbacks called:
9872     * "clicked" - the user clicked the icon
9873     * "drag,start" - Someone started dragging the image out of the object
9874     * "drag,end" - Dragged item was dropped (somewhere)
9875     */
9876
9877    /* gesture layer */
9878    /**
9879     * @defgroup Elm_Gesture_Layer Gesture Layer
9880     * Gesture Layer Usage:
9881     *
9882     * Use Gesture Layer to detect gestures.
9883     * The advantage is that you don't have to implement
9884     * gesture detection, just set callbacks of gesture state.
9885     * By using gesture layer we make standard interface.
9886     *
9887     * In order to use Gesture Layer you start with @ref elm_gesture_layer_add
9888     * with a parent object parameter.
9889     * Next 'activate' gesture layer with a @ref elm_gesture_layer_attach
9890     * call. Usually with same object as target (2nd parameter).
9891     *
9892     * Now you need to tell gesture layer what gestures you follow.
9893     * This is done with @ref elm_gesture_layer_cb_set call.
9894     * By setting the callback you actually saying to gesture layer:
9895     * I would like to know when the gesture @ref Elm_Gesture_Types
9896     * switches to state @ref Elm_Gesture_State.
9897     *
9898     * Next, you need to implement the actual action that follows the input
9899     * in your callback.
9900     *
9901     * Note that if you like to stop being reported about a gesture, just set
9902     * all callbacks referring this gesture to NULL.
9903     * (again with @ref elm_gesture_layer_cb_set)
9904     *
9905     * The information reported by gesture layer to your callback is depending
9906     * on @ref Elm_Gesture_Types:
9907     * @ref Elm_Gesture_Taps_Info is the info reported for tap gestures:
9908     * @ref ELM_GESTURE_N_TAPS, @ref ELM_GESTURE_N_LONG_TAPS,
9909     * @ref ELM_GESTURE_N_DOUBLE_TAPS, @ref ELM_GESTURE_N_TRIPLE_TAPS.
9910     *
9911     * @ref Elm_Gesture_Momentum_Info is info reported for momentum gestures:
9912     * @ref ELM_GESTURE_MOMENTUM.
9913     *
9914     * @ref Elm_Gesture_Line_Info is the info reported for line gestures:
9915     * (this also contains @ref Elm_Gesture_Momentum_Info internal structure)
9916     * @ref ELM_GESTURE_N_LINES, @ref ELM_GESTURE_N_FLICKS.
9917     * Note that we consider a flick as a line-gesture that should be completed
9918     * in flick-time-limit as defined in @ref Config.
9919     *
9920     * @ref Elm_Gesture_Zoom_Info is the info reported for @ref ELM_GESTURE_ZOOM gesture.
9921     *
9922     * @ref Elm_Gesture_Rotate_Info is the info reported for @ref ELM_GESTURE_ROTATE gesture.
9923     * */
9924
9925    /**
9926     * @enum _Elm_Gesture_Types
9927     * Enum of supported gesture types.
9928     * @ingroup Elm_Gesture_Layer
9929     */
9930    enum _Elm_Gesture_Types
9931      {
9932         ELM_GESTURE_FIRST = 0,
9933
9934         ELM_GESTURE_N_TAPS, /**< N fingers single taps */
9935         ELM_GESTURE_N_LONG_TAPS, /**< N fingers single long-taps */
9936         ELM_GESTURE_N_DOUBLE_TAPS, /**< N fingers double-single taps */
9937         ELM_GESTURE_N_TRIPLE_TAPS, /**< N fingers triple-single taps */
9938
9939         ELM_GESTURE_MOMENTUM, /**< Reports momentum in the dircetion of move */
9940
9941         ELM_GESTURE_N_LINES, /**< N fingers line gesture */
9942         ELM_GESTURE_N_FLICKS, /**< N fingers flick gesture */
9943
9944         ELM_GESTURE_ZOOM, /**< Zoom */
9945         ELM_GESTURE_ROTATE, /**< Rotate */
9946
9947         ELM_GESTURE_LAST
9948      };
9949
9950    /**
9951     * @typedef Elm_Gesture_Types
9952     * gesture types enum
9953     * @ingroup Elm_Gesture_Layer
9954     */
9955    typedef enum _Elm_Gesture_Types Elm_Gesture_Types;
9956
9957    /**
9958     * @enum _Elm_Gesture_State
9959     * Enum of gesture states.
9960     * @ingroup Elm_Gesture_Layer
9961     */
9962    enum _Elm_Gesture_State
9963      {
9964         ELM_GESTURE_STATE_UNDEFINED = -1, /**< Gesture not STARTed */
9965         ELM_GESTURE_STATE_START,          /**< Gesture STARTed     */
9966         ELM_GESTURE_STATE_MOVE,           /**< Gesture is ongoing  */
9967         ELM_GESTURE_STATE_END,            /**< Gesture completed   */
9968         ELM_GESTURE_STATE_ABORT    /**< Onging gesture was ABORTed */
9969      };
9970
9971    /**
9972     * @typedef Elm_Gesture_State
9973     * gesture states enum
9974     * @ingroup Elm_Gesture_Layer
9975     */
9976    typedef enum _Elm_Gesture_State Elm_Gesture_State;
9977
9978    /**
9979     * @struct _Elm_Gesture_Taps_Info
9980     * Struct holds taps info for user
9981     * @ingroup Elm_Gesture_Layer
9982     */
9983    struct _Elm_Gesture_Taps_Info
9984      {
9985         Evas_Coord x, y;         /**< Holds center point between fingers */
9986         unsigned int n;          /**< Number of fingers tapped           */
9987         unsigned int timestamp;  /**< event timestamp       */
9988      };
9989
9990    /**
9991     * @typedef Elm_Gesture_Taps_Info
9992     * holds taps info for user
9993     * @ingroup Elm_Gesture_Layer
9994     */
9995    typedef struct _Elm_Gesture_Taps_Info Elm_Gesture_Taps_Info;
9996
9997    /**
9998     * @struct _Elm_Gesture_Momentum_Info
9999     * Struct holds momentum info for user
10000     * x1 and y1 are not necessarily in sync
10001     * x1 holds x value of x direction starting point
10002     * and same holds for y1.
10003     * This is noticeable when doing V-shape movement
10004     * @ingroup Elm_Gesture_Layer
10005     */
10006    struct _Elm_Gesture_Momentum_Info
10007      {  /* Report line ends, timestamps, and momentum computed        */
10008         Evas_Coord x1; /**< Final-swipe direction starting point on X */
10009         Evas_Coord y1; /**< Final-swipe direction starting point on Y */
10010         Evas_Coord x2; /**< Final-swipe direction ending point on X   */
10011         Evas_Coord y2; /**< Final-swipe direction ending point on Y   */
10012
10013         unsigned int tx; /**< Timestamp of start of final x-swipe */
10014         unsigned int ty; /**< Timestamp of start of final y-swipe */
10015
10016         Evas_Coord mx; /**< Momentum on X */
10017         Evas_Coord my; /**< Momentum on Y */
10018      };
10019
10020    /**
10021     * @typedef Elm_Gesture_Momentum_Info
10022     * holds momentum info for user
10023     * @ingroup Elm_Gesture_Layer
10024     */
10025     typedef struct _Elm_Gesture_Momentum_Info Elm_Gesture_Momentum_Info;
10026
10027    /**
10028     * @struct _Elm_Gesture_Line_Info
10029     * Struct holds line info for user
10030     * @ingroup Elm_Gesture_Layer
10031     */
10032    struct _Elm_Gesture_Line_Info
10033      {  /* Report line ends, timestamps, and momentum computed      */
10034         Elm_Gesture_Momentum_Info momentum; /**< Line momentum info */
10035         unsigned int n;            /**< Number of fingers (lines)   */
10036         /* FIXME should be radians, bot degrees */
10037         double angle;              /**< Angle (direction) of lines  */
10038      };
10039
10040    /**
10041     * @typedef Elm_Gesture_Line_Info
10042     * Holds line info for user
10043     * @ingroup Elm_Gesture_Layer
10044     */
10045     typedef struct  _Elm_Gesture_Line_Info Elm_Gesture_Line_Info;
10046
10047    /**
10048     * @struct _Elm_Gesture_Zoom_Info
10049     * Struct holds zoom info for user
10050     * @ingroup Elm_Gesture_Layer
10051     */
10052    struct _Elm_Gesture_Zoom_Info
10053      {
10054         Evas_Coord x, y;       /**< Holds zoom center point reported to user  */
10055         Evas_Coord radius; /**< Holds radius between fingers reported to user */
10056         double zoom;            /**< Zoom value: 1.0 means no zoom             */
10057         double momentum;        /**< Zoom momentum: zoom growth per second (NOT YET SUPPORTED) */
10058      };
10059
10060    /**
10061     * @typedef Elm_Gesture_Zoom_Info
10062     * Holds zoom info for user
10063     * @ingroup Elm_Gesture_Layer
10064     */
10065    typedef struct _Elm_Gesture_Zoom_Info Elm_Gesture_Zoom_Info;
10066
10067    /**
10068     * @struct _Elm_Gesture_Rotate_Info
10069     * Struct holds rotation info for user
10070     * @ingroup Elm_Gesture_Layer
10071     */
10072    struct _Elm_Gesture_Rotate_Info
10073      {
10074         Evas_Coord x, y;   /**< Holds zoom center point reported to user      */
10075         Evas_Coord radius; /**< Holds radius between fingers reported to user */
10076         double base_angle; /**< Holds start-angle */
10077         double angle;      /**< Rotation value: 0.0 means no rotation         */
10078         double momentum;   /**< Rotation momentum: rotation done per second (NOT YET SUPPORTED) */
10079      };
10080
10081    /**
10082     * @typedef Elm_Gesture_Rotate_Info
10083     * Holds rotation info for user
10084     * @ingroup Elm_Gesture_Layer
10085     */
10086    typedef struct _Elm_Gesture_Rotate_Info Elm_Gesture_Rotate_Info;
10087
10088    /**
10089     * @typedef Elm_Gesture_Event_Cb
10090     * User callback used to stream gesture info from gesture layer
10091     * @param data user data
10092     * @param event_info gesture report info
10093     * Returns a flag field to be applied on the causing event.
10094     * You should probably return EVAS_EVENT_FLAG_ON_HOLD if your widget acted
10095     * upon the event, in an irreversible way.
10096     *
10097     * @ingroup Elm_Gesture_Layer
10098     */
10099    typedef Evas_Event_Flags (*Elm_Gesture_Event_Cb) (void *data, void *event_info);
10100
10101    /**
10102     * Use function to set callbacks to be notified about
10103     * change of state of gesture.
10104     * When a user registers a callback with this function
10105     * this means this gesture has to be tested.
10106     *
10107     * When ALL callbacks for a gesture are set to NULL
10108     * it means user isn't interested in gesture-state
10109     * and it will not be tested.
10110     *
10111     * @param obj Pointer to gesture-layer.
10112     * @param idx The gesture you would like to track its state.
10113     * @param cb callback function pointer.
10114     * @param cb_type what event this callback tracks: START, MOVE, END, ABORT.
10115     * @param data user info to be sent to callback (usually, Smart Data)
10116     *
10117     * @ingroup Elm_Gesture_Layer
10118     */
10119    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);
10120
10121    /**
10122     * Call this function to get repeat-events settings.
10123     *
10124     * @param obj Pointer to gesture-layer.
10125     *
10126     * @return repeat events settings.
10127     * @see elm_gesture_layer_hold_events_set()
10128     * @ingroup Elm_Gesture_Layer
10129     */
10130    EAPI Eina_Bool elm_gesture_layer_hold_events_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
10131
10132    /**
10133     * This function called in order to make gesture-layer repeat events.
10134     * Set this of you like to get the raw events only if gestures were not detected.
10135     * Clear this if you like gesture layer to fwd events as testing gestures.
10136     *
10137     * @param obj Pointer to gesture-layer.
10138     * @param r Repeat: TRUE/FALSE
10139     *
10140     * @ingroup Elm_Gesture_Layer
10141     */
10142    EAPI void elm_gesture_layer_hold_events_set(Evas_Object *obj, Eina_Bool r) EINA_ARG_NONNULL(1);
10143
10144    /**
10145     * This function sets step-value for zoom action.
10146     * Set step to any positive value.
10147     * Cancel step setting by setting to 0.0
10148     *
10149     * @param obj Pointer to gesture-layer.
10150     * @param s new zoom step value.
10151     *
10152     * @ingroup Elm_Gesture_Layer
10153     */
10154    EAPI void elm_gesture_layer_zoom_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
10155
10156    /**
10157     * This function sets step-value for rotate action.
10158     * Set step to any positive value.
10159     * Cancel step setting by setting to 0.0
10160     *
10161     * @param obj Pointer to gesture-layer.
10162     * @param s new roatate step value.
10163     *
10164     * @ingroup Elm_Gesture_Layer
10165     */
10166    EAPI void elm_gesture_layer_rotate_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
10167
10168    /**
10169     * This function called to attach gesture-layer to an Evas_Object.
10170     * @param obj Pointer to gesture-layer.
10171     * @param t Pointer to underlying object (AKA Target)
10172     *
10173     * @return TRUE, FALSE on success, failure.
10174     *
10175     * @ingroup Elm_Gesture_Layer
10176     */
10177    EAPI Eina_Bool elm_gesture_layer_attach(Evas_Object *obj, Evas_Object *t) EINA_ARG_NONNULL(1, 2);
10178
10179    /**
10180     * Call this function to construct a new gesture-layer object.
10181     * This does not activate the gesture layer. You have to
10182     * call elm_gesture_layer_attach in order to 'activate' gesture-layer.
10183     *
10184     * @param parent the parent object.
10185     *
10186     * @return Pointer to new gesture-layer object.
10187     *
10188     * @ingroup Elm_Gesture_Layer
10189     */
10190    EAPI Evas_Object *elm_gesture_layer_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10191
10192    /**
10193     * @defgroup Thumb Thumb
10194     *
10195     * @image html img/widget/thumb/preview-00.png
10196     * @image latex img/widget/thumb/preview-00.eps
10197     *
10198     * A thumb object is used for displaying the thumbnail of an image or video.
10199     * You must have compiled Elementary with Ethumb_Client support and the DBus
10200     * service must be present and auto-activated in order to have thumbnails to
10201     * be generated.
10202     *
10203     * Once the thumbnail object becomes visible, it will check if there is a
10204     * previously generated thumbnail image for the file set on it. If not, it
10205     * will start generating this thumbnail.
10206     *
10207     * Different config settings will cause different thumbnails to be generated
10208     * even on the same file.
10209     *
10210     * Generated thumbnails are stored under @c $HOME/.thumbnails/. Check the
10211     * Ethumb documentation to change this path, and to see other configuration
10212     * options.
10213     *
10214     * Signals that you can add callbacks for are:
10215     *
10216     * - "clicked" - This is called when a user has clicked the thumb without dragging
10217     *             around.
10218     * - "clicked,double" - This is called when a user has double-clicked the thumb.
10219     * - "press" - This is called when a user has pressed down the thumb.
10220     * - "generate,start" - The thumbnail generation started.
10221     * - "generate,stop" - The generation process stopped.
10222     * - "generate,error" - The generation failed.
10223     * - "load,error" - The thumbnail image loading failed.
10224     *
10225     * available styles:
10226     * - default
10227     * - noframe
10228     *
10229     * An example of use of thumbnail:
10230     *
10231     * - @ref thumb_example_01
10232     */
10233
10234    /**
10235     * @addtogroup Thumb
10236     * @{
10237     */
10238
10239    /**
10240     * @enum _Elm_Thumb_Animation_Setting
10241     * @typedef Elm_Thumb_Animation_Setting
10242     *
10243     * Used to set if a video thumbnail is animating or not.
10244     *
10245     * @ingroup Thumb
10246     */
10247    typedef enum _Elm_Thumb_Animation_Setting
10248      {
10249         ELM_THUMB_ANIMATION_START = 0, /**< Play animation once */
10250         ELM_THUMB_ANIMATION_LOOP,      /**< Keep playing animation until stop is requested */
10251         ELM_THUMB_ANIMATION_STOP,      /**< Stop playing the animation */
10252         ELM_THUMB_ANIMATION_LAST
10253      } Elm_Thumb_Animation_Setting;
10254
10255    /**
10256     * Add a new thumb object to the parent.
10257     *
10258     * @param parent The parent object.
10259     * @return The new object or NULL if it cannot be created.
10260     *
10261     * @see elm_thumb_file_set()
10262     * @see elm_thumb_ethumb_client_get()
10263     *
10264     * @ingroup Thumb
10265     */
10266    EAPI Evas_Object                 *elm_thumb_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10267    /**
10268     * Reload thumbnail if it was generated before.
10269     *
10270     * @param obj The thumb object to reload
10271     *
10272     * This is useful if the ethumb client configuration changed, like its
10273     * size, aspect or any other property one set in the handle returned
10274     * by elm_thumb_ethumb_client_get().
10275     *
10276     * If the options didn't change, the thumbnail won't be generated again, but
10277     * the old one will still be used.
10278     *
10279     * @see elm_thumb_file_set()
10280     *
10281     * @ingroup Thumb
10282     */
10283    EAPI void                         elm_thumb_reload(Evas_Object *obj) EINA_ARG_NONNULL(1);
10284    /**
10285     * Set the file that will be used as thumbnail.
10286     *
10287     * @param obj The thumb object.
10288     * @param file The path to file that will be used as thumb.
10289     * @param key The key used in case of an EET file.
10290     *
10291     * The file can be an image or a video (in that case, acceptable extensions are:
10292     * avi, mp4, ogv, mov, mpg and wmv). To start the video animation, use the
10293     * function elm_thumb_animate().
10294     *
10295     * @see elm_thumb_file_get()
10296     * @see elm_thumb_reload()
10297     * @see elm_thumb_animate()
10298     *
10299     * @ingroup Thumb
10300     */
10301    EAPI void                         elm_thumb_file_set(Evas_Object *obj, const char *file, const char *key) EINA_ARG_NONNULL(1);
10302    /**
10303     * Get the image or video path and key used to generate the thumbnail.
10304     *
10305     * @param obj The thumb object.
10306     * @param file Pointer to filename.
10307     * @param key Pointer to key.
10308     *
10309     * @see elm_thumb_file_set()
10310     * @see elm_thumb_path_get()
10311     *
10312     * @ingroup Thumb
10313     */
10314    EAPI void                         elm_thumb_file_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
10315    /**
10316     * Get the path and key to the image or video generated by ethumb.
10317     *
10318     * One just need to make sure that the thumbnail was generated before getting
10319     * its path; otherwise, the path will be NULL. One way to do that is by asking
10320     * for the path when/after the "generate,stop" smart callback is called.
10321     *
10322     * @param obj The thumb object.
10323     * @param file Pointer to thumb path.
10324     * @param key Pointer to thumb key.
10325     *
10326     * @see elm_thumb_file_get()
10327     *
10328     * @ingroup Thumb
10329     */
10330    EAPI void                         elm_thumb_path_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
10331    /**
10332     * Set the animation state for the thumb object. If its content is an animated
10333     * video, you may start/stop the animation or tell it to play continuously and
10334     * looping.
10335     *
10336     * @param obj The thumb object.
10337     * @param setting The animation setting.
10338     *
10339     * @see elm_thumb_file_set()
10340     *
10341     * @ingroup Thumb
10342     */
10343    EAPI void                         elm_thumb_animate_set(Evas_Object *obj, Elm_Thumb_Animation_Setting s) EINA_ARG_NONNULL(1);
10344    /**
10345     * Get the animation state for the thumb object.
10346     *
10347     * @param obj The thumb object.
10348     * @return getting The animation setting or @c ELM_THUMB_ANIMATION_LAST,
10349     * on errors.
10350     *
10351     * @see elm_thumb_animate_set()
10352     *
10353     * @ingroup Thumb
10354     */
10355    EAPI Elm_Thumb_Animation_Setting  elm_thumb_animate_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10356    /**
10357     * Get the ethumb_client handle so custom configuration can be made.
10358     *
10359     * @return Ethumb_Client instance or NULL.
10360     *
10361     * This must be called before the objects are created to be sure no object is
10362     * visible and no generation started.
10363     *
10364     * Example of usage:
10365     *
10366     * @code
10367     * #include <Elementary.h>
10368     * #ifndef ELM_LIB_QUICKLAUNCH
10369     * EAPI int
10370     * elm_main(int argc, char **argv)
10371     * {
10372     *    Ethumb_Client *client;
10373     *
10374     *    elm_need_ethumb();
10375     *
10376     *    // ... your code
10377     *
10378     *    client = elm_thumb_ethumb_client_get();
10379     *    if (!client)
10380     *      {
10381     *         ERR("could not get ethumb_client");
10382     *         return 1;
10383     *      }
10384     *    ethumb_client_size_set(client, 100, 100);
10385     *    ethumb_client_crop_align_set(client, 0.5, 0.5);
10386     *    // ... your code
10387     *
10388     *    // Create elm_thumb objects here
10389     *
10390     *    elm_run();
10391     *    elm_shutdown();
10392     *    return 0;
10393     * }
10394     * #endif
10395     * ELM_MAIN()
10396     * @endcode
10397     *
10398     * @note There's only one client handle for Ethumb, so once a configuration
10399     * change is done to it, any other request for thumbnails (for any thumbnail
10400     * object) will use that configuration. Thus, this configuration is global.
10401     *
10402     * @ingroup Thumb
10403     */
10404    EAPI void                        *elm_thumb_ethumb_client_get(void);
10405    /**
10406     * Get the ethumb_client connection state.
10407     *
10408     * @return EINA_TRUE if the client is connected to the server or EINA_FALSE
10409     * otherwise.
10410     */
10411    EAPI Eina_Bool                    elm_thumb_ethumb_client_connected(void);
10412    /**
10413     * Make the thumbnail 'editable'.
10414     *
10415     * @param obj Thumb object.
10416     * @param set Turn on or off editability. Default is @c EINA_FALSE.
10417     *
10418     * This means the thumbnail is a valid drag target for drag and drop, and can be
10419     * cut or pasted too.
10420     *
10421     * @see elm_thumb_editable_get()
10422     *
10423     * @ingroup Thumb
10424     */
10425    EAPI Eina_Bool                    elm_thumb_editable_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
10426    /**
10427     * Make the thumbnail 'editable'.
10428     *
10429     * @param obj Thumb object.
10430     * @return Editability.
10431     *
10432     * This means the thumbnail is a valid drag target for drag and drop, and can be
10433     * cut or pasted too.
10434     *
10435     * @see elm_thumb_editable_set()
10436     *
10437     * @ingroup Thumb
10438     */
10439    EAPI Eina_Bool                    elm_thumb_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10440
10441    /**
10442     * @}
10443     */
10444
10445    /**
10446     * @defgroup Hoversel Hoversel
10447     *
10448     * @image html img/widget/hoversel/preview-00.png
10449     * @image latex img/widget/hoversel/preview-00.eps
10450     *
10451     * A hoversel is a button that pops up a list of items (automatically
10452     * choosing the direction to display) that have a label and, optionally, an
10453     * icon to select from. It is a convenience widget to avoid the need to do
10454     * all the piecing together yourself. It is intended for a small number of
10455     * items in the hoversel menu (no more than 8), though is capable of many
10456     * more.
10457     *
10458     * Signals that you can add callbacks for are:
10459     * "clicked" - the user clicked the hoversel button and popped up the sel
10460     * "selected" - an item in the hoversel list is selected. event_info is the item
10461     * "dismissed" - the hover is dismissed
10462     *
10463     * See @ref tutorial_hoversel for an example.
10464     * @{
10465     */
10466    typedef struct _Elm_Hoversel_Item Elm_Hoversel_Item; /**< Item of Elm_Hoversel. Sub-type of Elm_Widget_Item */
10467    /**
10468     * @brief Add a new Hoversel object
10469     *
10470     * @param parent The parent object
10471     * @return The new object or NULL if it cannot be created
10472     */
10473    EAPI Evas_Object       *elm_hoversel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10474    /**
10475     * @brief This sets the hoversel to expand horizontally.
10476     *
10477     * @param obj The hoversel object
10478     * @param horizontal If true, the hover will expand horizontally to the
10479     * right.
10480     *
10481     * @note The initial button will display horizontally regardless of this
10482     * setting.
10483     */
10484    EAPI void               elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
10485    /**
10486     * @brief This returns whether the hoversel is set to expand horizontally.
10487     *
10488     * @param obj The hoversel object
10489     * @return If true, the hover will expand horizontally to the right.
10490     *
10491     * @see elm_hoversel_horizontal_set()
10492     */
10493    EAPI Eina_Bool          elm_hoversel_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10494    /**
10495     * @brief Set the Hover parent
10496     *
10497     * @param obj The hoversel object
10498     * @param parent The parent to use
10499     *
10500     * Sets the hover parent object, the area that will be darkened when the
10501     * hoversel is clicked. Should probably be the window that the hoversel is
10502     * in. See @ref Hover objects for more information.
10503     */
10504    EAPI void               elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
10505    /**
10506     * @brief Get the Hover parent
10507     *
10508     * @param obj The hoversel object
10509     * @return The used parent
10510     *
10511     * Gets the hover parent object.
10512     *
10513     * @see elm_hoversel_hover_parent_set()
10514     */
10515    EAPI Evas_Object       *elm_hoversel_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10516    /**
10517     * @brief Set the hoversel button label
10518     *
10519     * @param obj The hoversel object
10520     * @param label The label text.
10521     *
10522     * This sets the label of the button that is always visible (before it is
10523     * clicked and expanded).
10524     *
10525     * @deprecated elm_object_text_set()
10526     */
10527    EINA_DEPRECATED EAPI void               elm_hoversel_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
10528    /**
10529     * @brief Get the hoversel button label
10530     *
10531     * @param obj The hoversel object
10532     * @return The label text.
10533     *
10534     * @deprecated elm_object_text_get()
10535     */
10536    EINA_DEPRECATED EAPI const char        *elm_hoversel_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10537    /**
10538     * @brief Set the icon of the hoversel button
10539     *
10540     * @param obj The hoversel object
10541     * @param icon The icon object
10542     *
10543     * Sets the icon of the button that is always visible (before it is clicked
10544     * and expanded).  Once the icon object is set, a previously set one will be
10545     * deleted, if you want to keep that old content object, use the
10546     * elm_hoversel_icon_unset() function.
10547     *
10548     * @see elm_button_icon_set()
10549     */
10550    EAPI void               elm_hoversel_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
10551    /**
10552     * @brief Get the icon of the hoversel button
10553     *
10554     * @param obj The hoversel object
10555     * @return The icon object
10556     *
10557     * Get the icon of the button that is always visible (before it is clicked
10558     * and expanded). Also see elm_button_icon_get().
10559     *
10560     * @see elm_hoversel_icon_set()
10561     */
10562    EAPI Evas_Object       *elm_hoversel_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10563    /**
10564     * @brief Get and unparent the icon of the hoversel button
10565     *
10566     * @param obj The hoversel object
10567     * @return The icon object that was being used
10568     *
10569     * Unparent and return the icon of the button that is always visible
10570     * (before it is clicked and expanded).
10571     *
10572     * @see elm_hoversel_icon_set()
10573     * @see elm_button_icon_unset()
10574     */
10575    EAPI Evas_Object       *elm_hoversel_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
10576    /**
10577     * @brief This triggers the hoversel popup from code, the same as if the user
10578     * had clicked the button.
10579     *
10580     * @param obj The hoversel object
10581     */
10582    EAPI void               elm_hoversel_hover_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
10583    /**
10584     * @brief This dismisses the hoversel popup as if the user had clicked
10585     * outside the hover.
10586     *
10587     * @param obj The hoversel object
10588     */
10589    EAPI void               elm_hoversel_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
10590    /**
10591     * @brief Returns whether the hoversel is expanded.
10592     *
10593     * @param obj The hoversel object
10594     * @return  This will return EINA_TRUE if the hoversel is expanded or
10595     * EINA_FALSE if it is not expanded.
10596     */
10597    EAPI Eina_Bool          elm_hoversel_expanded_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10598    /**
10599     * @brief This will remove all the children items from the hoversel.
10600     *
10601     * @param obj The hoversel object
10602     *
10603     * @warning Should @b not be called while the hoversel is active; use
10604     * elm_hoversel_expanded_get() to check first.
10605     *
10606     * @see elm_hoversel_item_del_cb_set()
10607     * @see elm_hoversel_item_del()
10608     */
10609    EAPI void               elm_hoversel_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
10610    /**
10611     * @brief Get the list of items within the given hoversel.
10612     *
10613     * @param obj The hoversel object
10614     * @return Returns a list of Elm_Hoversel_Item*
10615     *
10616     * @see elm_hoversel_item_add()
10617     */
10618    EAPI const Eina_List   *elm_hoversel_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10619    /**
10620     * @brief Add an item to the hoversel button
10621     *
10622     * @param obj The hoversel object
10623     * @param label The text label to use for the item (NULL if not desired)
10624     * @param icon_file An image file path on disk to use for the icon or standard
10625     * icon name (NULL if not desired)
10626     * @param icon_type The icon type if relevant
10627     * @param func Convenience function to call when this item is selected
10628     * @param data Data to pass to item-related functions
10629     * @return A handle to the item added.
10630     *
10631     * This adds an item to the hoversel to show when it is clicked. Note: if you
10632     * need to use an icon from an edje file then use
10633     * elm_hoversel_item_icon_set() right after the this function, and set
10634     * icon_file to NULL here.
10635     *
10636     * For more information on what @p icon_file and @p icon_type are see the
10637     * @ref Icon "icon documentation".
10638     */
10639    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);
10640    /**
10641     * @brief Delete an item from the hoversel
10642     *
10643     * @param item The item to delete
10644     *
10645     * This deletes the item from the hoversel (should not be called while the
10646     * hoversel is active; use elm_hoversel_expanded_get() to check first).
10647     *
10648     * @see elm_hoversel_item_add()
10649     * @see elm_hoversel_item_del_cb_set()
10650     */
10651    EAPI void               elm_hoversel_item_del(Elm_Hoversel_Item *item) EINA_ARG_NONNULL(1);
10652    /**
10653     * @brief Set the function to be called when an item from the hoversel is
10654     * freed.
10655     *
10656     * @param item The item to set the callback on
10657     * @param func The function called
10658     *
10659     * That function will receive these parameters:
10660     * @li void *item_data
10661     * @li Evas_Object *the_item_object
10662     * @li Elm_Hoversel_Item *the_object_struct
10663     *
10664     * @see elm_hoversel_item_add()
10665     */
10666    EAPI void               elm_hoversel_item_del_cb_set(Elm_Hoversel_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
10667    /**
10668     * @brief This returns the data pointer supplied with elm_hoversel_item_add()
10669     * that will be passed to associated function callbacks.
10670     *
10671     * @param item The item to get the data from
10672     * @return The data pointer set with elm_hoversel_item_add()
10673     *
10674     * @see elm_hoversel_item_add()
10675     */
10676    EAPI void              *elm_hoversel_item_data_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
10677    /**
10678     * @brief This returns the label text of the given hoversel item.
10679     *
10680     * @param item The item to get the label
10681     * @return The label text of the hoversel item
10682     *
10683     * @see elm_hoversel_item_add()
10684     */
10685    EAPI const char        *elm_hoversel_item_label_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
10686    /**
10687     * @brief This sets the icon for the given hoversel item.
10688     *
10689     * @param item The item to set the icon
10690     * @param icon_file An image file path on disk to use for the icon or standard
10691     * icon name
10692     * @param icon_group The edje group to use if @p icon_file is an edje file. Set this
10693     * to NULL if the icon is not an edje file
10694     * @param icon_type The icon type
10695     *
10696     * The icon can be loaded from the standard set, from an image file, or from
10697     * an edje file.
10698     *
10699     * @see elm_hoversel_item_add()
10700     */
10701    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);
10702    /**
10703     * @brief Get the icon object of the hoversel item
10704     *
10705     * @param item The item to get the icon from
10706     * @param icon_file The image file path on disk used for the icon or standard
10707     * icon name
10708     * @param icon_group The edje group used if @p icon_file is an edje file. NULL
10709     * if the icon is not an edje file
10710     * @param icon_type The icon type
10711     *
10712     * @see elm_hoversel_item_icon_set()
10713     * @see elm_hoversel_item_add()
10714     */
10715    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);
10716    /**
10717     * @}
10718     */
10719
10720    /**
10721     * @defgroup Toolbar Toolbar
10722     * @ingroup Elementary
10723     *
10724     * @image html img/widget/toolbar/preview-00.png
10725     * @image latex img/widget/toolbar/preview-00.eps width=\textwidth
10726     *
10727     * @image html img/toolbar.png
10728     * @image latex img/toolbar.eps width=\textwidth
10729     *
10730     * A toolbar is a widget that displays a list of items inside
10731     * a box. It can be scrollable, show a menu with items that don't fit
10732     * to toolbar size or even crop them.
10733     *
10734     * Only one item can be selected at a time.
10735     *
10736     * Items can have multiple states, or show menus when selected by the user.
10737     *
10738     * Smart callbacks one can listen to:
10739     * - "clicked" - when the user clicks on a toolbar item and becomes selected.
10740     *
10741     * Available styles for it:
10742     * - @c "default"
10743     * - @c "transparent" - no background or shadow, just show the content
10744     *
10745     * List of examples:
10746     * @li @ref toolbar_example_01
10747     * @li @ref toolbar_example_02
10748     * @li @ref toolbar_example_03
10749     */
10750
10751    /**
10752     * @addtogroup Toolbar
10753     * @{
10754     */
10755
10756    /**
10757     * @enum _Elm_Toolbar_Shrink_Mode
10758     * @typedef Elm_Toolbar_Shrink_Mode
10759     *
10760     * Set toolbar's items display behavior, it can be scrollabel,
10761     * show a menu with exceeding items, or simply hide them.
10762     *
10763     * @note Default value is #ELM_TOOLBAR_SHRINK_MENU. It reads value
10764     * from elm config.
10765     *
10766     * Values <b> don't </b> work as bitmask, only one can be choosen.
10767     *
10768     * @see elm_toolbar_mode_shrink_set()
10769     * @see elm_toolbar_mode_shrink_get()
10770     *
10771     * @ingroup Toolbar
10772     */
10773    typedef enum _Elm_Toolbar_Shrink_Mode
10774      {
10775         ELM_TOOLBAR_SHRINK_NONE,   /**< Set toolbar minimun size to fit all the items. */
10776         ELM_TOOLBAR_SHRINK_HIDE,   /**< Hide exceeding items. */
10777         ELM_TOOLBAR_SHRINK_SCROLL, /**< Allow accessing exceeding items through a scroller. */
10778         ELM_TOOLBAR_SHRINK_MENU    /**< Inserts a button to pop up a menu with exceeding items. */
10779      } Elm_Toolbar_Shrink_Mode;
10780
10781    typedef struct _Elm_Toolbar_Item Elm_Toolbar_Item; /**< Item of Elm_Toolbar. Sub-type of Elm_Widget_Item. Can be created with elm_toolbar_item_append(), elm_toolbar_item_prepend() and functions to add items in relative positions, like elm_toolbar_item_insert_before(), and deleted with elm_toolbar_item_del(). */
10782
10783    typedef struct _Elm_Toolbar_Item_State Elm_Toolbar_Item_State; /**< State of a Elm_Toolbar_Item. Can be created with elm_toolbar_item_state_add() and removed with elm_toolbar_item_state_del(). */
10784
10785    /**
10786     * Add a new toolbar widget to the given parent Elementary
10787     * (container) object.
10788     *
10789     * @param parent The parent object.
10790     * @return a new toolbar widget handle or @c NULL, on errors.
10791     *
10792     * This function inserts a new toolbar widget on the canvas.
10793     *
10794     * @ingroup Toolbar
10795     */
10796    EAPI Evas_Object            *elm_toolbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10797
10798    /**
10799     * Set the icon size, in pixels, to be used by toolbar items.
10800     *
10801     * @param obj The toolbar object
10802     * @param icon_size The icon size in pixels
10803     *
10804     * @note Default value is @c 32. It reads value from elm config.
10805     *
10806     * @see elm_toolbar_icon_size_get()
10807     *
10808     * @ingroup Toolbar
10809     */
10810    EAPI void                    elm_toolbar_icon_size_set(Evas_Object *obj, int icon_size) EINA_ARG_NONNULL(1);
10811
10812    /**
10813     * Get the icon size, in pixels, to be used by toolbar items.
10814     *
10815     * @param obj The toolbar object.
10816     * @return The icon size in pixels.
10817     *
10818     * @see elm_toolbar_icon_size_set() for details.
10819     *
10820     * @ingroup Toolbar
10821     */
10822    EAPI int                     elm_toolbar_icon_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10823
10824    /**
10825     * Sets icon lookup order, for toolbar items' icons.
10826     *
10827     * @param obj The toolbar object.
10828     * @param order The icon lookup order.
10829     *
10830     * Icons added before calling this function will not be affected.
10831     * The default lookup order is #ELM_ICON_LOOKUP_THEME_FDO.
10832     *
10833     * @see elm_toolbar_icon_order_lookup_get()
10834     *
10835     * @ingroup Toolbar
10836     */
10837    EAPI void                    elm_toolbar_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
10838
10839    /**
10840     * Gets the icon lookup order.
10841     *
10842     * @param obj The toolbar object.
10843     * @return The icon lookup order.
10844     *
10845     * @see elm_toolbar_icon_order_lookup_set() for details.
10846     *
10847     * @ingroup Toolbar
10848     */
10849    EAPI Elm_Icon_Lookup_Order   elm_toolbar_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10850
10851    /**
10852     * Set whether the toolbar items' should be selected by the user or not.
10853     *
10854     * @param obj The toolbar object.
10855     * @param wrap @c EINA_TRUE to disable selection or @c EINA_FALSE to
10856     * enable it.
10857     *
10858     * This will turn off the ability to select items entirely and they will
10859     * neither appear selected nor emit selected signals. The clicked
10860     * callback function will still be called.
10861     *
10862     * Selection is enabled by default.
10863     *
10864     * @see elm_toolbar_no_select_mode_get().
10865     *
10866     * @ingroup Toolbar
10867     */
10868    EAPI void                    elm_toolbar_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
10869
10870    /**
10871     * Set whether the toolbar items' should be selected by the user or not.
10872     *
10873     * @param obj The toolbar object.
10874     * @return @c EINA_TRUE means items can be selected. @c EINA_FALSE indicates
10875     * they can't. If @p obj is @c NULL, @c EINA_FALSE is returned.
10876     *
10877     * @see elm_toolbar_no_select_mode_set() for details.
10878     *
10879     * @ingroup Toolbar
10880     */
10881    EAPI Eina_Bool               elm_toolbar_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10882
10883    /**
10884     * Append item to the toolbar.
10885     *
10886     * @param obj The toolbar object.
10887     * @param icon A string with icon name or the absolute path of an image file.
10888     * @param label The label of the item.
10889     * @param func The function to call when the item is clicked.
10890     * @param data The data to associate with the item for related callbacks.
10891     * @return The created item or @c NULL upon failure.
10892     *
10893     * A new item will be created and appended to the toolbar, i.e., will
10894     * be set as @b last item.
10895     *
10896     * Items created with this method can be deleted with
10897     * elm_toolbar_item_del().
10898     *
10899     * Associated @p data can be properly freed when item is deleted if a
10900     * callback function is set with elm_toolbar_item_del_cb_set().
10901     *
10902     * If a function is passed as argument, it will be called everytime this item
10903     * is selected, i.e., the user clicks over an unselected item.
10904     * If such function isn't needed, just passing
10905     * @c NULL as @p func is enough. The same should be done for @p data.
10906     *
10907     * Toolbar will load icon image from fdo or current theme.
10908     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
10909     * If an absolute path is provided it will load it direct from a file.
10910     *
10911     * @see elm_toolbar_item_icon_set()
10912     * @see elm_toolbar_item_del()
10913     * @see elm_toolbar_item_del_cb_set()
10914     *
10915     * @ingroup Toolbar
10916     */
10917    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);
10918
10919    /**
10920     * Prepend item to the toolbar.
10921     *
10922     * @param obj The toolbar object.
10923     * @param icon A string with icon name or the absolute path of an image file.
10924     * @param label The label of the item.
10925     * @param func The function to call when the item is clicked.
10926     * @param data The data to associate with the item for related callbacks.
10927     * @return The created item or @c NULL upon failure.
10928     *
10929     * A new item will be created and prepended to the toolbar, i.e., will
10930     * be set as @b first item.
10931     *
10932     * Items created with this method can be deleted with
10933     * elm_toolbar_item_del().
10934     *
10935     * Associated @p data can be properly freed when item is deleted if a
10936     * callback function is set with elm_toolbar_item_del_cb_set().
10937     *
10938     * If a function is passed as argument, it will be called everytime this item
10939     * is selected, i.e., the user clicks over an unselected item.
10940     * If such function isn't needed, just passing
10941     * @c NULL as @p func is enough. The same should be done for @p data.
10942     *
10943     * Toolbar will load icon image from fdo or current theme.
10944     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
10945     * If an absolute path is provided it will load it direct from a file.
10946     *
10947     * @see elm_toolbar_item_icon_set()
10948     * @see elm_toolbar_item_del()
10949     * @see elm_toolbar_item_del_cb_set()
10950     *
10951     * @ingroup Toolbar
10952     */
10953    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);
10954
10955    /**
10956     * Insert a new item into the toolbar object before item @p before.
10957     *
10958     * @param obj The toolbar object.
10959     * @param before The toolbar item to insert before.
10960     * @param icon A string with icon name or the absolute path of an image file.
10961     * @param label The label of the item.
10962     * @param func The function to call when the item is clicked.
10963     * @param data The data to associate with the item for related callbacks.
10964     * @return The created item or @c NULL upon failure.
10965     *
10966     * A new item will be created and added to the toolbar. Its position in
10967     * this toolbar will be just before item @p before.
10968     *
10969     * Items created with this method can be deleted with
10970     * elm_toolbar_item_del().
10971     *
10972     * Associated @p data can be properly freed when item is deleted if a
10973     * callback function is set with elm_toolbar_item_del_cb_set().
10974     *
10975     * If a function is passed as argument, it will be called everytime this item
10976     * is selected, i.e., the user clicks over an unselected item.
10977     * If such function isn't needed, just passing
10978     * @c NULL as @p func is enough. The same should be done for @p data.
10979     *
10980     * Toolbar will load icon image from fdo or current theme.
10981     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
10982     * If an absolute path is provided it will load it direct from a file.
10983     *
10984     * @see elm_toolbar_item_icon_set()
10985     * @see elm_toolbar_item_del()
10986     * @see elm_toolbar_item_del_cb_set()
10987     *
10988     * @ingroup Toolbar
10989     */
10990    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);
10991
10992    /**
10993     * Insert a new item into the toolbar object after item @p after.
10994     *
10995     * @param obj The toolbar object.
10996     * @param before The toolbar item to insert before.
10997     * @param icon A string with icon name or the absolute path of an image file.
10998     * @param label The label of the item.
10999     * @param func The function to call when the item is clicked.
11000     * @param data The data to associate with the item for related callbacks.
11001     * @return The created item or @c NULL upon failure.
11002     *
11003     * A new item will be created and added to the toolbar. Its position in
11004     * this toolbar will be just after item @p after.
11005     *
11006     * Items created with this method can be deleted with
11007     * elm_toolbar_item_del().
11008     *
11009     * Associated @p data can be properly freed when item is deleted if a
11010     * callback function is set with elm_toolbar_item_del_cb_set().
11011     *
11012     * If a function is passed as argument, it will be called everytime this item
11013     * is selected, i.e., the user clicks over an unselected item.
11014     * If such function isn't needed, just passing
11015     * @c NULL as @p func is enough. The same should be done for @p data.
11016     *
11017     * Toolbar will load icon image from fdo or current theme.
11018     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
11019     * If an absolute path is provided it will load it direct from a file.
11020     *
11021     * @see elm_toolbar_item_icon_set()
11022     * @see elm_toolbar_item_del()
11023     * @see elm_toolbar_item_del_cb_set()
11024     *
11025     * @ingroup Toolbar
11026     */
11027    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);
11028
11029    /**
11030     * Get the first item in the given toolbar widget's list of
11031     * items.
11032     *
11033     * @param obj The toolbar object
11034     * @return The first item or @c NULL, if it has no items (and on
11035     * errors)
11036     *
11037     * @see elm_toolbar_item_append()
11038     * @see elm_toolbar_last_item_get()
11039     *
11040     * @ingroup Toolbar
11041     */
11042    EAPI Elm_Toolbar_Item       *elm_toolbar_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11043
11044    /**
11045     * Get the last item in the given toolbar widget's list of
11046     * items.
11047     *
11048     * @param obj The toolbar object
11049     * @return The last item or @c NULL, if it has no items (and on
11050     * errors)
11051     *
11052     * @see elm_toolbar_item_prepend()
11053     * @see elm_toolbar_first_item_get()
11054     *
11055     * @ingroup Toolbar
11056     */
11057    EAPI Elm_Toolbar_Item       *elm_toolbar_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11058
11059    /**
11060     * Get the item after @p item in toolbar.
11061     *
11062     * @param item The toolbar item.
11063     * @return The item after @p item, or @c NULL if none or on failure.
11064     *
11065     * @note If it is the last item, @c NULL will be returned.
11066     *
11067     * @see elm_toolbar_item_append()
11068     *
11069     * @ingroup Toolbar
11070     */
11071    EAPI Elm_Toolbar_Item       *elm_toolbar_item_next_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
11072
11073    /**
11074     * Get the item before @p item in toolbar.
11075     *
11076     * @param item The toolbar item.
11077     * @return The item before @p item, or @c NULL if none or on failure.
11078     *
11079     * @note If it is the first item, @c NULL will be returned.
11080     *
11081     * @see elm_toolbar_item_prepend()
11082     *
11083     * @ingroup Toolbar
11084     */
11085    EAPI Elm_Toolbar_Item       *elm_toolbar_item_prev_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
11086
11087    /**
11088     * Get the toolbar object from an item.
11089     *
11090     * @param item The item.
11091     * @return The toolbar object.
11092     *
11093     * This returns the toolbar object itself that an item belongs to.
11094     *
11095     * @ingroup Toolbar
11096     */
11097    EAPI Evas_Object            *elm_toolbar_item_toolbar_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
11098
11099    /**
11100     * Set the priority of a toolbar item.
11101     *
11102     * @param item The toolbar item.
11103     * @param priority The item priority. The default is zero.
11104     *
11105     * This is used only when the toolbar shrink mode is set to
11106     * #ELM_TOOLBAR_SHRINK_MENU or #ELM_TOOLBAR_SHRINK_HIDE.
11107     * When space is less than required, items with low priority
11108     * will be removed from the toolbar and added to a dynamically-created menu,
11109     * while items with higher priority will remain on the toolbar,
11110     * with the same order they were added.
11111     *
11112     * @see elm_toolbar_item_priority_get()
11113     *
11114     * @ingroup Toolbar
11115     */
11116    EAPI void                    elm_toolbar_item_priority_set(Elm_Toolbar_Item *item, int priority) EINA_ARG_NONNULL(1);
11117
11118    /**
11119     * Get the priority of a toolbar item.
11120     *
11121     * @param item The toolbar item.
11122     * @return The @p item priority, or @c 0 on failure.
11123     *
11124     * @see elm_toolbar_item_priority_set() for details.
11125     *
11126     * @ingroup Toolbar
11127     */
11128    EAPI int                     elm_toolbar_item_priority_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
11129
11130    /**
11131     * Get the label of item.
11132     *
11133     * @param item The item of toolbar.
11134     * @return The label of item.
11135     *
11136     * The return value is a pointer to the label associated to @p item when
11137     * it was created, with function elm_toolbar_item_append() or similar,
11138     * or later,
11139     * with function elm_toolbar_item_label_set. If no label
11140     * was passed as argument, it will return @c NULL.
11141     *
11142     * @see elm_toolbar_item_label_set() for more details.
11143     * @see elm_toolbar_item_append()
11144     *
11145     * @ingroup Toolbar
11146     */
11147    EAPI const char             *elm_toolbar_item_label_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
11148
11149    /**
11150     * Set the label of item.
11151     *
11152     * @param item The item of toolbar.
11153     * @param text The label of item.
11154     *
11155     * The label to be displayed by the item.
11156     * Label will be placed at icons bottom (if set).
11157     *
11158     * If a label was passed as argument on item creation, with function
11159     * elm_toolbar_item_append() or similar, it will be already
11160     * displayed by the item.
11161     *
11162     * @see elm_toolbar_item_label_get()
11163     * @see elm_toolbar_item_append()
11164     *
11165     * @ingroup Toolbar
11166     */
11167    EAPI void                    elm_toolbar_item_label_set(Elm_Toolbar_Item *item, const char *label) EINA_ARG_NONNULL(1);
11168
11169    /**
11170     * Return the data associated with a given toolbar widget item.
11171     *
11172     * @param item The toolbar widget item handle.
11173     * @return The data associated with @p item.
11174     *
11175     * @see elm_toolbar_item_data_set()
11176     *
11177     * @ingroup Toolbar
11178     */
11179    EAPI void                   *elm_toolbar_item_data_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
11180
11181    /**
11182     * Set the data associated with a given toolbar widget item.
11183     *
11184     * @param item The toolbar widget item handle.
11185     * @param data The new data pointer to set to @p item.
11186     *
11187     * This sets new item data on @p item.
11188     *
11189     * @warning The old data pointer won't be touched by this function, so
11190     * the user had better to free that old data himself/herself.
11191     *
11192     * @ingroup Toolbar
11193     */
11194    EAPI void                    elm_toolbar_item_data_set(Elm_Toolbar_Item *item, const void *data) EINA_ARG_NONNULL(1);
11195
11196    /**
11197     * Returns a pointer to a toolbar item by its label.
11198     *
11199     * @param obj The toolbar object.
11200     * @param label The label of the item to find.
11201     *
11202     * @return The pointer to the toolbar item matching @p label or @c NULL
11203     * on failure.
11204     *
11205     * @ingroup Toolbar
11206     */
11207    EAPI Elm_Toolbar_Item       *elm_toolbar_item_find_by_label(const Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
11208
11209    /*
11210     * Get whether the @p item is selected or not.
11211     *
11212     * @param item The toolbar item.
11213     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
11214     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
11215     *
11216     * @see elm_toolbar_selected_item_set() for details.
11217     * @see elm_toolbar_item_selected_get()
11218     *
11219     * @ingroup Toolbar
11220     */
11221    EAPI Eina_Bool               elm_toolbar_item_selected_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
11222
11223    /**
11224     * Set the selected state of an item.
11225     *
11226     * @param item The toolbar item
11227     * @param selected The selected state
11228     *
11229     * This sets the selected state of the given item @p it.
11230     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
11231     *
11232     * If a new item is selected the previosly selected will be unselected.
11233     * Previoulsy selected item can be get with function
11234     * elm_toolbar_selected_item_get().
11235     *
11236     * Selected items will be highlighted.
11237     *
11238     * @see elm_toolbar_item_selected_get()
11239     * @see elm_toolbar_selected_item_get()
11240     *
11241     * @ingroup Toolbar
11242     */
11243    EAPI void                    elm_toolbar_item_selected_set(Elm_Toolbar_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
11244
11245    /**
11246     * Get the selected item.
11247     *
11248     * @param obj The toolbar object.
11249     * @return The selected toolbar item.
11250     *
11251     * The selected item can be unselected with function
11252     * elm_toolbar_item_selected_set().
11253     *
11254     * The selected item always will be highlighted on toolbar.
11255     *
11256     * @see elm_toolbar_selected_items_get()
11257     *
11258     * @ingroup Toolbar
11259     */
11260    EAPI Elm_Toolbar_Item       *elm_toolbar_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11261
11262    /**
11263     * Set the icon associated with @p item.
11264     *
11265     * @param obj The parent of this item.
11266     * @param item The toolbar item.
11267     * @param icon A string with icon name or the absolute path of an image file.
11268     *
11269     * Toolbar will load icon image from fdo or current theme.
11270     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
11271     * If an absolute path is provided it will load it direct from a file.
11272     *
11273     * @see elm_toolbar_icon_order_lookup_set()
11274     * @see elm_toolbar_icon_order_lookup_get()
11275     *
11276     * @ingroup Toolbar
11277     */
11278    EAPI void                    elm_toolbar_item_icon_set(Elm_Toolbar_Item *item, const char *icon) EINA_ARG_NONNULL(1);
11279
11280    /**
11281     * Get the string used to set the icon of @p item.
11282     *
11283     * @param item The toolbar item.
11284     * @return The string associated with the icon object.
11285     *
11286     * @see elm_toolbar_item_icon_set() for details.
11287     *
11288     * @ingroup Toolbar
11289     */
11290    EAPI const char             *elm_toolbar_item_icon_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
11291
11292    /**
11293     * Delete them item from the toolbar.
11294     *
11295     * @param item The item of toolbar to be deleted.
11296     *
11297     * @see elm_toolbar_item_append()
11298     * @see elm_toolbar_item_del_cb_set()
11299     *
11300     * @ingroup Toolbar
11301     */
11302    EAPI void                    elm_toolbar_item_del(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
11303
11304    /**
11305     * Set the function called when a toolbar item is freed.
11306     *
11307     * @param item The item to set the callback on.
11308     * @param func The function called.
11309     *
11310     * If there is a @p func, then it will be called prior item's memory release.
11311     * That will be called with the following arguments:
11312     * @li item's data;
11313     * @li item's Evas object;
11314     * @li item itself;
11315     *
11316     * This way, a data associated to a toolbar item could be properly freed.
11317     *
11318     * @ingroup Toolbar
11319     */
11320    EAPI void                    elm_toolbar_item_del_cb_set(Elm_Toolbar_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
11321
11322    /**
11323     * Get a value whether toolbar item is disabled or not.
11324     *
11325     * @param item The item.
11326     * @return The disabled state.
11327     *
11328     * @see elm_toolbar_item_disabled_set() for more details.
11329     *
11330     * @ingroup Toolbar
11331     */
11332    EAPI Eina_Bool               elm_toolbar_item_disabled_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
11333
11334    /**
11335     * Sets the disabled/enabled state of a toolbar item.
11336     *
11337     * @param item The item.
11338     * @param disabled The disabled state.
11339     *
11340     * A disabled item cannot be selected or unselected. It will also
11341     * change its appearance (generally greyed out). This sets the
11342     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
11343     * enabled).
11344     *
11345     * @ingroup Toolbar
11346     */
11347    EAPI void                    elm_toolbar_item_disabled_set(Elm_Toolbar_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
11348
11349    /**
11350     * Set or unset item as a separator.
11351     *
11352     * @param item The toolbar item.
11353     * @param setting @c EINA_TRUE to set item @p item as separator or
11354     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
11355     *
11356     * Items aren't set as separator by default.
11357     *
11358     * If set as separator it will display separator theme, so won't display
11359     * icons or label.
11360     *
11361     * @see elm_toolbar_item_separator_get()
11362     *
11363     * @ingroup Toolbar
11364     */
11365    EAPI void                    elm_toolbar_item_separator_set(Elm_Toolbar_Item *item, Eina_Bool separator) EINA_ARG_NONNULL(1);
11366
11367    /**
11368     * Get a value whether item is a separator or not.
11369     *
11370     * @param item The toolbar item.
11371     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
11372     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
11373     *
11374     * @see elm_toolbar_item_separator_set() for details.
11375     *
11376     * @ingroup Toolbar
11377     */
11378    EAPI Eina_Bool               elm_toolbar_item_separator_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
11379
11380    /**
11381     * Set the shrink state of toolbar @p obj.
11382     *
11383     * @param obj The toolbar object.
11384     * @param shrink_mode Toolbar's items display behavior.
11385     *
11386     * The toolbar won't scroll if #ELM_TOOLBAR_SHRINK_NONE,
11387     * but will enforce a minimun size so all the items will fit, won't scroll
11388     * and won't show the items that don't fit if #ELM_TOOLBAR_SHRINK_HIDE,
11389     * will scroll if #ELM_TOOLBAR_SHRINK_SCROLL, and will create a button to
11390     * pop up excess elements with #ELM_TOOLBAR_SHRINK_MENU.
11391     *
11392     * @ingroup Toolbar
11393     */
11394    EAPI void                    elm_toolbar_mode_shrink_set(Evas_Object *obj, Elm_Toolbar_Shrink_Mode shrink_mode) EINA_ARG_NONNULL(1);
11395
11396    /**
11397     * Get the shrink mode of toolbar @p obj.
11398     *
11399     * @param obj The toolbar object.
11400     * @return Toolbar's items display behavior.
11401     *
11402     * @see elm_toolbar_mode_shrink_set() for details.
11403     *
11404     * @ingroup Toolbar
11405     */
11406    EAPI Elm_Toolbar_Shrink_Mode elm_toolbar_mode_shrink_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11407
11408    /**
11409     * Enable/disable homogenous mode.
11410     *
11411     * @param obj The toolbar object
11412     * @param homogeneous Assume the items within the toolbar are of the
11413     * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
11414     *
11415     * This will enable the homogeneous mode where items are of the same size.
11416     * @see elm_toolbar_homogeneous_get()
11417     *
11418     * @ingroup Toolbar
11419     */
11420    EAPI void                    elm_toolbar_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
11421
11422    /**
11423     * Get whether the homogenous mode is enabled.
11424     *
11425     * @param obj The toolbar object.
11426     * @return Assume the items within the toolbar are of the same height
11427     * and width (EINA_TRUE = on, EINA_FALSE = off).
11428     *
11429     * @see elm_toolbar_homogeneous_set()
11430     *
11431     * @ingroup Toolbar
11432     */
11433    EAPI Eina_Bool               elm_toolbar_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11434
11435    /**
11436     * Enable/disable homogenous mode.
11437     *
11438     * @param obj The toolbar object
11439     * @param homogeneous Assume the items within the toolbar are of the
11440     * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
11441     *
11442     * This will enable the homogeneous mode where items are of the same size.
11443     * @see elm_toolbar_homogeneous_get()
11444     *
11445     * @deprecated use elm_toolbar_homogeneous_set() instead.
11446     *
11447     * @ingroup Toolbar
11448     */
11449    EINA_DEPRECATED EAPI void    elm_toolbar_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
11450
11451    /**
11452     * Get whether the homogenous mode is enabled.
11453     *
11454     * @param obj The toolbar object.
11455     * @return Assume the items within the toolbar are of the same height
11456     * and width (EINA_TRUE = on, EINA_FALSE = off).
11457     *
11458     * @see elm_toolbar_homogeneous_set()
11459     * @deprecated use elm_toolbar_homogeneous_get() instead.
11460     *
11461     * @ingroup Toolbar
11462     */
11463    EINA_DEPRECATED EAPI Eina_Bool elm_toolbar_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11464
11465    /**
11466     * Set the parent object of the toolbar items' menus.
11467     *
11468     * @param obj The toolbar object.
11469     * @param parent The parent of the menu objects.
11470     *
11471     * Each item can be set as item menu, with elm_toolbar_item_menu_set().
11472     *
11473     * For more details about setting the parent for toolbar menus, see
11474     * elm_menu_parent_set().
11475     *
11476     * @see elm_menu_parent_set() for details.
11477     * @see elm_toolbar_item_menu_set() for details.
11478     *
11479     * @ingroup Toolbar
11480     */
11481    EAPI void                    elm_toolbar_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
11482
11483    /**
11484     * Get the parent object of the toolbar items' menus.
11485     *
11486     * @param obj The toolbar object.
11487     * @return The parent of the menu objects.
11488     *
11489     * @see elm_toolbar_menu_parent_set() for details.
11490     *
11491     * @ingroup Toolbar
11492     */
11493    EAPI Evas_Object            *elm_toolbar_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11494
11495    /**
11496     * Set the alignment of the items.
11497     *
11498     * @param obj The toolbar object.
11499     * @param align The new alignment, a float between <tt> 0.0 </tt>
11500     * and <tt> 1.0 </tt>.
11501     *
11502     * Alignment of toolbar items, from <tt> 0.0 </tt> to indicates to align
11503     * left, to <tt> 1.0 </tt>, to align to right. <tt> 0.5 </tt> centralize
11504     * items.
11505     *
11506     * Centered items by default.
11507     *
11508     * @see elm_toolbar_align_get()
11509     *
11510     * @ingroup Toolbar
11511     */
11512    EAPI void                    elm_toolbar_align_set(Evas_Object *obj, double align) EINA_ARG_NONNULL(1);
11513
11514    /**
11515     * Get the alignment of the items.
11516     *
11517     * @param obj The toolbar object.
11518     * @return toolbar items alignment, a float between <tt> 0.0 </tt> and
11519     * <tt> 1.0 </tt>.
11520     *
11521     * @see elm_toolbar_align_set() for details.
11522     *
11523     * @ingroup Toolbar
11524     */
11525    EAPI double                  elm_toolbar_align_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11526
11527    /**
11528     * Set whether the toolbar item opens a menu.
11529     *
11530     * @param item The toolbar item.
11531     * @param menu If @c EINA_TRUE, @p item will opens a menu when selected.
11532     *
11533     * A toolbar item can be set to be a menu, using this function.
11534     *
11535     * Once it is set to be a menu, it can be manipulated through the
11536     * menu-like function elm_toolbar_menu_parent_set() and the other
11537     * elm_menu functions, using the Evas_Object @c menu returned by
11538     * elm_toolbar_item_menu_get().
11539     *
11540     * So, items to be displayed in this item's menu should be added with
11541     * elm_menu_item_add().
11542     *
11543     * The following code exemplifies the most basic usage:
11544     * @code
11545     * tb = elm_toolbar_add(win)
11546     * item = elm_toolbar_item_append(tb, "refresh", "Menu", NULL, NULL);
11547     * elm_toolbar_item_menu_set(item, EINA_TRUE);
11548     * elm_toolbar_menu_parent_set(tb, win);
11549     * menu = elm_toolbar_item_menu_get(item);
11550     * elm_menu_item_add(menu, NULL, "edit-cut", "Cut", NULL, NULL);
11551     * menu_item = elm_menu_item_add(menu, NULL, "edit-copy", "Copy", NULL,
11552     * NULL);
11553     * @endcode
11554     *
11555     * @see elm_toolbar_item_menu_get()
11556     *
11557     * @ingroup Toolbar
11558     */
11559    EAPI void                    elm_toolbar_item_menu_set(Elm_Toolbar_Item *item, Eina_Bool menu) EINA_ARG_NONNULL(1);
11560
11561    /**
11562     * Get toolbar item's menu.
11563     *
11564     * @param item The toolbar item.
11565     * @return Item's menu object or @c NULL on failure.
11566     *
11567     * If @p item wasn't set as menu item with elm_toolbar_item_menu_set(),
11568     * this function will set it.
11569     *
11570     * @see elm_toolbar_item_menu_set() for details.
11571     *
11572     * @ingroup Toolbar
11573     */
11574    EAPI Evas_Object            *elm_toolbar_item_menu_get(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
11575
11576    /**
11577     * Add a new state to @p item.
11578     *
11579     * @param item The item.
11580     * @param icon A string with icon name or the absolute path of an image file.
11581     * @param label The label of the new state.
11582     * @param func The function to call when the item is clicked when this
11583     * state is selected.
11584     * @param data The data to associate with the state.
11585     * @return The toolbar item state, or @c NULL upon failure.
11586     *
11587     * Toolbar will load icon image from fdo or current theme.
11588     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
11589     * If an absolute path is provided it will load it direct from a file.
11590     *
11591     * States created with this function can be removed with
11592     * elm_toolbar_item_state_del().
11593     *
11594     * @see elm_toolbar_item_state_del()
11595     * @see elm_toolbar_item_state_sel()
11596     * @see elm_toolbar_item_state_get()
11597     *
11598     * @ingroup Toolbar
11599     */
11600    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);
11601
11602    /**
11603     * Delete a previoulsy added state to @p item.
11604     *
11605     * @param item The toolbar item.
11606     * @param state The state to be deleted.
11607     * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
11608     *
11609     * @see elm_toolbar_item_state_add()
11610     */
11611    EAPI Eina_Bool               elm_toolbar_item_state_del(Elm_Toolbar_Item *item, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
11612
11613    /**
11614     * Set @p state as the current state of @p it.
11615     *
11616     * @param it The item.
11617     * @param state The state to use.
11618     * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
11619     *
11620     * If @p state is @c NULL, it won't select any state and the default item's
11621     * icon and label will be used. It's the same behaviour than
11622     * elm_toolbar_item_state_unser().
11623     *
11624     * @see elm_toolbar_item_state_unset()
11625     *
11626     * @ingroup Toolbar
11627     */
11628    EAPI Eina_Bool               elm_toolbar_item_state_set(Elm_Toolbar_Item *it, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
11629
11630    /**
11631     * Unset the state of @p it.
11632     *
11633     * @param it The item.
11634     *
11635     * The default icon and label from this item will be displayed.
11636     *
11637     * @see elm_toolbar_item_state_set() for more details.
11638     *
11639     * @ingroup Toolbar
11640     */
11641    EAPI void                    elm_toolbar_item_state_unset(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
11642
11643    /**
11644     * Get the current state of @p it.
11645     *
11646     * @param item The item.
11647     * @return The selected state or @c NULL if none is selected or on failure.
11648     *
11649     * @see elm_toolbar_item_state_set() for details.
11650     * @see elm_toolbar_item_state_unset()
11651     * @see elm_toolbar_item_state_add()
11652     *
11653     * @ingroup Toolbar
11654     */
11655    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_get(const Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
11656
11657    /**
11658     * Get the state after selected state in toolbar's @p item.
11659     *
11660     * @param it The toolbar item to change state.
11661     * @return The state after current state, or @c NULL on failure.
11662     *
11663     * If last state is selected, this function will return first state.
11664     *
11665     * @see elm_toolbar_item_state_set()
11666     * @see elm_toolbar_item_state_add()
11667     *
11668     * @ingroup Toolbar
11669     */
11670    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_next(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
11671
11672    /**
11673     * Get the state before selected state in toolbar's @p item.
11674     *
11675     * @param it The toolbar item to change state.
11676     * @return The state before current state, or @c NULL on failure.
11677     *
11678     * If first state is selected, this function will return last state.
11679     *
11680     * @see elm_toolbar_item_state_set()
11681     * @see elm_toolbar_item_state_add()
11682     *
11683     * @ingroup Toolbar
11684     */
11685    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_prev(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
11686
11687    /**
11688     * Set the text to be shown in a given toolbar item's tooltips.
11689     *
11690     * @param item Target item.
11691     * @param text The text to set in the content.
11692     *
11693     * Setup the text as tooltip to object. The item can have only one tooltip,
11694     * so any previous tooltip data - set with this function or
11695     * elm_toolbar_item_tooltip_content_cb_set() - is removed.
11696     *
11697     * @see elm_object_tooltip_text_set() for more details.
11698     *
11699     * @ingroup Toolbar
11700     */
11701    EAPI void             elm_toolbar_item_tooltip_text_set(Elm_Toolbar_Item *item, const char *text) EINA_ARG_NONNULL(1);
11702
11703    /**
11704     * Set the content to be shown in the tooltip item.
11705     *
11706     * Setup the tooltip to item. The item can have only one tooltip,
11707     * so any previous tooltip data is removed. @p func(with @p data) will
11708     * be called every time that need show the tooltip and it should
11709     * return a valid Evas_Object. This object is then managed fully by
11710     * tooltip system and is deleted when the tooltip is gone.
11711     *
11712     * @param item the toolbar item being attached a tooltip.
11713     * @param func the function used to create the tooltip contents.
11714     * @param data what to provide to @a func as callback data/context.
11715     * @param del_cb called when data is not needed anymore, either when
11716     *        another callback replaces @a func, the tooltip is unset with
11717     *        elm_toolbar_item_tooltip_unset() or the owner @a item
11718     *        dies. This callback receives as the first parameter the
11719     *        given @a data, and @c event_info is the item.
11720     *
11721     * @see elm_object_tooltip_content_cb_set() for more details.
11722     *
11723     * @ingroup Toolbar
11724     */
11725    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);
11726
11727    /**
11728     * Unset tooltip from item.
11729     *
11730     * @param item toolbar item to remove previously set tooltip.
11731     *
11732     * Remove tooltip from item. The callback provided as del_cb to
11733     * elm_toolbar_item_tooltip_content_cb_set() will be called to notify
11734     * it is not used anymore.
11735     *
11736     * @see elm_object_tooltip_unset() for more details.
11737     * @see elm_toolbar_item_tooltip_content_cb_set()
11738     *
11739     * @ingroup Toolbar
11740     */
11741    EAPI void             elm_toolbar_item_tooltip_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
11742
11743    /**
11744     * Sets a different style for this item tooltip.
11745     *
11746     * @note before you set a style you should define a tooltip with
11747     *       elm_toolbar_item_tooltip_content_cb_set() or
11748     *       elm_toolbar_item_tooltip_text_set()
11749     *
11750     * @param item toolbar item with tooltip already set.
11751     * @param style the theme style to use (default, transparent, ...)
11752     *
11753     * @see elm_object_tooltip_style_set() for more details.
11754     *
11755     * @ingroup Toolbar
11756     */
11757    EAPI void             elm_toolbar_item_tooltip_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
11758
11759    /**
11760     * Get the style for this item tooltip.
11761     *
11762     * @param item toolbar item with tooltip already set.
11763     * @return style the theme style in use, defaults to "default". If the
11764     *         object does not have a tooltip set, then NULL is returned.
11765     *
11766     * @see elm_object_tooltip_style_get() for more details.
11767     * @see elm_toolbar_item_tooltip_style_set()
11768     *
11769     * @ingroup Toolbar
11770     */
11771    EAPI const char      *elm_toolbar_item_tooltip_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
11772
11773    /**
11774     * Set the type of mouse pointer/cursor decoration to be shown,
11775     * when the mouse pointer is over the given toolbar widget item
11776     *
11777     * @param item toolbar item to customize cursor on
11778     * @param cursor the cursor type's name
11779     *
11780     * This function works analogously as elm_object_cursor_set(), but
11781     * here the cursor's changing area is restricted to the item's
11782     * area, and not the whole widget's. Note that that item cursors
11783     * have precedence over widget cursors, so that a mouse over an
11784     * item with custom cursor set will always show @b that cursor.
11785     *
11786     * If this function is called twice for an object, a previously set
11787     * cursor will be unset on the second call.
11788     *
11789     * @see elm_object_cursor_set()
11790     * @see elm_toolbar_item_cursor_get()
11791     * @see elm_toolbar_item_cursor_unset()
11792     *
11793     * @ingroup Toolbar
11794     */
11795    EAPI void             elm_toolbar_item_cursor_set(Elm_Toolbar_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
11796
11797    /*
11798     * Get the type of mouse pointer/cursor decoration set to be shown,
11799     * when the mouse pointer is over the given toolbar widget item
11800     *
11801     * @param item toolbar item with custom cursor set
11802     * @return the cursor type's name or @c NULL, if no custom cursors
11803     * were set to @p item (and on errors)
11804     *
11805     * @see elm_object_cursor_get()
11806     * @see elm_toolbar_item_cursor_set()
11807     * @see elm_toolbar_item_cursor_unset()
11808     *
11809     * @ingroup Toolbar
11810     */
11811    EAPI const char      *elm_toolbar_item_cursor_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
11812
11813    /**
11814     * Unset any custom mouse pointer/cursor decoration set to be
11815     * shown, when the mouse pointer is over the given toolbar widget
11816     * item, thus making it show the @b default cursor again.
11817     *
11818     * @param item a toolbar item
11819     *
11820     * Use this call to undo any custom settings on this item's cursor
11821     * decoration, bringing it back to defaults (no custom style set).
11822     *
11823     * @see elm_object_cursor_unset()
11824     * @see elm_toolbar_item_cursor_set()
11825     *
11826     * @ingroup Toolbar
11827     */
11828    EAPI void             elm_toolbar_item_cursor_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
11829
11830    /**
11831     * Set a different @b style for a given custom cursor set for a
11832     * toolbar item.
11833     *
11834     * @param item toolbar item with custom cursor set
11835     * @param style the <b>theme style</b> to use (e.g. @c "default",
11836     * @c "transparent", etc)
11837     *
11838     * This function only makes sense when one is using custom mouse
11839     * cursor decorations <b>defined in a theme file</b>, which can have,
11840     * given a cursor name/type, <b>alternate styles</b> on it. It
11841     * works analogously as elm_object_cursor_style_set(), but here
11842     * applyed only to toolbar item objects.
11843     *
11844     * @warning Before you set a cursor style you should have definen a
11845     *       custom cursor previously on the item, with
11846     *       elm_toolbar_item_cursor_set()
11847     *
11848     * @see elm_toolbar_item_cursor_engine_only_set()
11849     * @see elm_toolbar_item_cursor_style_get()
11850     *
11851     * @ingroup Toolbar
11852     */
11853    EAPI void             elm_toolbar_item_cursor_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
11854
11855    /**
11856     * Get the current @b style set for a given toolbar item's custom
11857     * cursor
11858     *
11859     * @param item toolbar item with custom cursor set.
11860     * @return style the cursor style in use. If the object does not
11861     *         have a cursor set, then @c NULL is returned.
11862     *
11863     * @see elm_toolbar_item_cursor_style_set() for more details
11864     *
11865     * @ingroup Toolbar
11866     */
11867    EAPI const char      *elm_toolbar_item_cursor_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
11868
11869    /**
11870     * Set if the (custom)cursor for a given toolbar item should be
11871     * searched in its theme, also, or should only rely on the
11872     * rendering engine.
11873     *
11874     * @param item item with custom (custom) cursor already set on
11875     * @param engine_only Use @c EINA_TRUE to have cursors looked for
11876     * only on those provided by the rendering engine, @c EINA_FALSE to
11877     * have them searched on the widget's theme, as well.
11878     *
11879     * @note This call is of use only if you've set a custom cursor
11880     * for toolbar items, with elm_toolbar_item_cursor_set().
11881     *
11882     * @note By default, cursors will only be looked for between those
11883     * provided by the rendering engine.
11884     *
11885     * @ingroup Toolbar
11886     */
11887    EAPI void             elm_toolbar_item_cursor_engine_only_set(Elm_Toolbar_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
11888
11889    /**
11890     * Get if the (custom) cursor for a given toolbar item is being
11891     * searched in its theme, also, or is only relying on the rendering
11892     * engine.
11893     *
11894     * @param item a toolbar item
11895     * @return @c EINA_TRUE, if cursors are being looked for only on
11896     * those provided by the rendering engine, @c EINA_FALSE if they
11897     * are being searched on the widget's theme, as well.
11898     *
11899     * @see elm_toolbar_item_cursor_engine_only_set(), for more details
11900     *
11901     * @ingroup Toolbar
11902     */
11903    EAPI Eina_Bool        elm_toolbar_item_cursor_engine_only_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
11904
11905    /**
11906     * @}
11907     */
11908
11909    /* tooltip */
11910    EAPI double       elm_tooltip_delay_get(void);
11911    EAPI Eina_Bool    elm_tooltip_delay_set(double delay);
11912    EAPI void         elm_object_tooltip_show(Evas_Object *obj) EINA_ARG_NONNULL(1);
11913    EAPI void         elm_object_tooltip_hide(Evas_Object *obj) EINA_ARG_NONNULL(1);
11914    EAPI void         elm_object_tooltip_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1, 2);
11915    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);
11916    EAPI void         elm_object_tooltip_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
11917    EAPI void         elm_object_tooltip_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
11918    EAPI const char  *elm_object_tooltip_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11919    EAPI void         elm_object_cursor_set(Evas_Object *obj, const char *cursor) EINA_ARG_NONNULL(1);
11920    EAPI const char  *elm_object_cursor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11921    EAPI void         elm_object_cursor_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
11922    EAPI void         elm_object_cursor_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
11923    EAPI const char  *elm_object_cursor_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11924    EAPI void         elm_object_cursor_engine_only_set(Evas_Object *obj, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
11925    EAPI Eina_Bool    elm_object_cursor_engine_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11926    EAPI Eina_Bool    elm_tooltip_size_restrict_disable(Evas_Object *obj, Eina_Bool disable); EINA_ARG_NONNULL(1);
11927    EAPI Eina_Bool    elm_tooltip_size_restrict_disabled_get(const Evas_Object *obj); EINA_ARG_NONNULL(1);
11928
11929    /* cursors */
11930    EAPI int          elm_cursor_engine_only_get(void);
11931    EAPI Eina_Bool    elm_cursor_engine_only_set(int engine_only);
11932
11933    /**
11934     * @defgroup Menu Menu
11935     *
11936     * @image html img/widget/menu/preview-00.png
11937     * @image latex img/widget/menu/preview-00.eps
11938     *
11939     * A menu is a list of items displayed above its parent. When the menu is
11940     * showing its parent is darkened. Each item can have a sub-menu. The menu
11941     * object can be used to display a menu on a right click event, in a toolbar,
11942     * anywhere.
11943     *
11944     * Signals that you can add callbacks for are:
11945     * @li "clicked" - the user clicked the empty space in the menu to dismiss.
11946     *             event_info is NULL.
11947     *
11948     * @see @ref tutorial_menu
11949     * @{
11950     */
11951    typedef struct _Elm_Menu_Item Elm_Menu_Item; /**< Item of Elm_Menu. Sub-type of Elm_Widget_Item */
11952    /**
11953     * @brief Add a new menu to the parent
11954     *
11955     * @param parent The parent object.
11956     * @return The new object or NULL if it cannot be created.
11957     */
11958    EAPI Evas_Object       *elm_menu_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11959    /**
11960     * @brief Set the parent for the given menu widget
11961     *
11962     * @param obj The menu object.
11963     * @param parent The new parent.
11964     */
11965    EAPI void               elm_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
11966    /**
11967     * @brief Get the parent for the given menu widget
11968     *
11969     * @param obj The menu object.
11970     * @return The parent.
11971     *
11972     * @see elm_menu_parent_set()
11973     */
11974    EAPI Evas_Object       *elm_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11975    /**
11976     * @brief Move the menu to a new position
11977     *
11978     * @param obj The menu object.
11979     * @param x The new position.
11980     * @param y The new position.
11981     *
11982     * Sets the top-left position of the menu to (@p x,@p y).
11983     *
11984     * @note @p x and @p y coordinates are relative to parent.
11985     */
11986    EAPI void               elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
11987    /**
11988     * @brief Close a opened menu
11989     *
11990     * @param obj the menu object
11991     * @return void
11992     *
11993     * Hides the menu and all it's sub-menus.
11994     */
11995    EAPI void               elm_menu_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
11996    /**
11997     * @brief Returns a list of @p item's items.
11998     *
11999     * @param obj The menu object
12000     * @return An Eina_List* of @p item's items
12001     */
12002    EAPI const Eina_List   *elm_menu_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12003    /**
12004     * @brief Get the Evas_Object of an Elm_Menu_Item
12005     *
12006     * @param item The menu item object.
12007     * @return The edje object containing the swallowed content
12008     *
12009     * @warning Don't manipulate this object!
12010     */
12011    EAPI Evas_Object       *elm_menu_item_object_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
12012    /**
12013     * @brief Add an item at the end of the given menu widget
12014     *
12015     * @param obj The menu object.
12016     * @param parent The parent menu item (optional)
12017     * @param icon A icon display on the item. The icon will be destryed by the menu.
12018     * @param label The label of the item.
12019     * @param func Function called when the user select the item.
12020     * @param data Data sent by the callback.
12021     * @return Returns the new item.
12022     */
12023    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);
12024    /**
12025     * @brief Add an object swallowed in an item at the end of the given menu
12026     * widget
12027     *
12028     * @param obj The menu object.
12029     * @param parent The parent menu item (optional)
12030     * @param subobj The object to swallow
12031     * @param func Function called when the user select the item.
12032     * @param data Data sent by the callback.
12033     * @return Returns the new item.
12034     *
12035     * Add an evas object as an item to the menu.
12036     */
12037    EAPI Elm_Menu_Item     *elm_menu_item_add_object(Evas_Object *obj, Elm_Menu_Item *parent, Evas_Object *subobj, Evas_Smart_Cb func, const void *data) EINA_ARG_NONNULL(1);
12038    /**
12039     * @brief Set the label of a menu item
12040     *
12041     * @param item The menu item object.
12042     * @param label The label to set for @p item
12043     *
12044     * @warning Don't use this funcion on items created with
12045     * elm_menu_item_add_object() or elm_menu_item_separator_add().
12046     */
12047    EAPI void               elm_menu_item_label_set(Elm_Menu_Item *item, const char *label) EINA_ARG_NONNULL(1);
12048    /**
12049     * @brief Get the label of a menu item
12050     *
12051     * @param item The menu item object.
12052     * @return The label of @p item
12053     */
12054    EAPI const char        *elm_menu_item_label_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
12055    /**
12056     * @brief Set the icon of a menu item to the standard icon with name @p icon
12057     *
12058     * @param item The menu item object.
12059     * @param icon The icon object to set for the content of @p item
12060     *
12061     * Once this icon is set, any previously set icon will be deleted.
12062     */
12063    EAPI void               elm_menu_item_object_icon_name_set(Elm_Menu_Item *item, const char *icon) EINA_ARG_NONNULL(1, 2);
12064    /**
12065     * @brief Get the string representation from the icon of a menu item
12066     *
12067     * @param item The menu item object.
12068     * @return The string representation of @p item's icon or NULL
12069     *
12070     * @see elm_menu_item_object_icon_name_set()
12071     */
12072    EAPI const char        *elm_menu_item_object_icon_name_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
12073    /**
12074     * @deprecated Use elm_menu_item_object_icon_name_set()
12075     */
12076    EAPI void               elm_menu_item_icon_set(Elm_Menu_Item *item, const char *icon) EINA_ARG_NONNULL(1, 2) EINA_DEPRECATED;
12077    /**
12078     * @deprecated Use elm_menu_item_object_icon_name_get()
12079     */
12080    EAPI const char        *elm_menu_item_icon_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_DEPRECATED;
12081    /**
12082     * @brief Set the content object of a menu item
12083     *
12084     * @param item The menu item object
12085     * @param The content object or NULL
12086     * @return EINA_TRUE on success, else EINA_FALSE
12087     *
12088     * Use this function to change the object swallowed by a menu item, deleting
12089     * any previously swallowed object.
12090     */
12091    EAPI Eina_Bool          elm_menu_item_object_content_set(Elm_Menu_Item *item, Evas_Object *obj) EINA_ARG_NONNULL(1);
12092    /**
12093     * @brief Get the content object of a menu item
12094     *
12095     * @param item The menu item object
12096     * @return The content object or NULL
12097     * @note If @p item was added with elm_menu_item_add_object, this
12098     * function will return the object passed, else it will return the
12099     * icon object.
12100     *
12101     * @see elm_menu_item_object_content_set()
12102     */
12103    EAPI Evas_Object *elm_menu_item_object_content_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
12104    /**
12105     * @deprecated Use elm_menu_item_object_content_get() instead.
12106     */
12107    EAPI Evas_Object *elm_menu_item_object_icon_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_DEPRECATED;
12108    /**
12109     * @brief Set the selected state of @p item.
12110     *
12111     * @param item The menu item object.
12112     * @param selected The selected/unselected state of the item
12113     */
12114    EAPI void               elm_menu_item_selected_set(Elm_Menu_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
12115    /**
12116     * @brief Get the selected state of @p item.
12117     *
12118     * @param item The menu item object.
12119     * @return The selected/unselected state of the item
12120     *
12121     * @see elm_menu_item_selected_set()
12122     */
12123    EAPI Eina_Bool          elm_menu_item_selected_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
12124    /**
12125     * @brief Set the disabled state of @p item.
12126     *
12127     * @param item The menu item object.
12128     * @param disabled The enabled/disabled state of the item
12129     */
12130    EAPI void               elm_menu_item_disabled_set(Elm_Menu_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
12131    /**
12132     * @brief Get the disabled state of @p item.
12133     *
12134     * @param item The menu item object.
12135     * @return The enabled/disabled state of the item
12136     *
12137     * @see elm_menu_item_disabled_set()
12138     */
12139    EAPI Eina_Bool          elm_menu_item_disabled_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
12140    /**
12141     * @brief Add a separator item to menu @p obj under @p parent.
12142     *
12143     * @param obj The menu object
12144     * @param parent The item to add the separator under
12145     * @return The created item or NULL on failure
12146     *
12147     * This is item is a @ref Separator.
12148     */
12149    EAPI Elm_Menu_Item     *elm_menu_item_separator_add(Evas_Object *obj, Elm_Menu_Item *parent) EINA_ARG_NONNULL(1);
12150    /**
12151     * @brief Returns whether @p item is a separator.
12152     *
12153     * @param item The item to check
12154     * @return If true, @p item is a separator
12155     *
12156     * @see elm_menu_item_separator_add()
12157     */
12158    EAPI Eina_Bool          elm_menu_item_is_separator(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
12159    /**
12160     * @brief Deletes an item from the menu.
12161     *
12162     * @param item The item to delete.
12163     *
12164     * @see elm_menu_item_add()
12165     */
12166    EAPI void               elm_menu_item_del(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
12167    /**
12168     * @brief Set the function called when a menu item is deleted.
12169     *
12170     * @param item The item to set the callback on
12171     * @param func The function called
12172     *
12173     * @see elm_menu_item_add()
12174     * @see elm_menu_item_del()
12175     */
12176    EAPI void               elm_menu_item_del_cb_set(Elm_Menu_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
12177    /**
12178     * @brief Returns the data associated with menu item @p item.
12179     *
12180     * @param item The item
12181     * @return The data associated with @p item or NULL if none was set.
12182     *
12183     * This is the data set with elm_menu_add() or elm_menu_item_data_set().
12184     */
12185    EAPI void              *elm_menu_item_data_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
12186    /**
12187     * @brief Sets the data to be associated with menu item @p item.
12188     *
12189     * @param item The item
12190     * @param data The data to be associated with @p item
12191     */
12192    EAPI void               elm_menu_item_data_set(Elm_Menu_Item *item, const void *data) EINA_ARG_NONNULL(1);
12193    /**
12194     * @brief Returns a list of @p item's subitems.
12195     *
12196     * @param item The item
12197     * @return An Eina_List* of @p item's subitems
12198     *
12199     * @see elm_menu_add()
12200     */
12201    EAPI const Eina_List   *elm_menu_item_subitems_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
12202    /**
12203     * @brief Get the position of a menu item
12204     *
12205     * @param item The menu item
12206     * @return The item's index
12207     *
12208     * This function returns the index position of a menu item in a menu.
12209     * For a sub-menu, this number is relative to the first item in the sub-menu.
12210     *
12211     * @note Index values begin with 0
12212     */
12213    EAPI unsigned int       elm_menu_item_index_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
12214    /**
12215     * @brief @brief Return a menu item's owner menu
12216     *
12217     * @param item The menu item
12218     * @return The menu object owning @p item, or NULL on failure
12219     *
12220     * Use this function to get the menu object owning an item.
12221     */
12222    EAPI Evas_Object       *elm_menu_item_menu_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
12223    /**
12224     * @brief Get the selected item in the menu
12225     *
12226     * @param obj The menu object
12227     * @return The selected item, or NULL if none
12228     *
12229     * @see elm_menu_item_selected_get()
12230     * @see elm_menu_item_selected_set()
12231     */
12232    EAPI Elm_Menu_Item *elm_menu_selected_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
12233    /**
12234     * @brief Get the last item in the menu
12235     *
12236     * @param obj The menu object
12237     * @return The last item, or NULL if none
12238     */
12239    EAPI Elm_Menu_Item *elm_menu_last_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
12240    /**
12241     * @brief Get the first item in the menu
12242     *
12243     * @param obj The menu object
12244     * @return The first item, or NULL if none
12245     */
12246    EAPI Elm_Menu_Item *elm_menu_first_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
12247    /**
12248     * @brief Get the next item in the menu.
12249     *
12250     * @param item The menu item object.
12251     * @return The item after it, or NULL if none
12252     */
12253    EAPI Elm_Menu_Item *elm_menu_item_next_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
12254    /**
12255     * @brief Get the previous item in the menu.
12256     *
12257     * @param item The menu item object.
12258     * @return The item before it, or NULL if none
12259     */
12260    EAPI Elm_Menu_Item *elm_menu_item_prev_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
12261    /**
12262     * @}
12263     */
12264
12265    /**
12266     * @defgroup List List
12267     * @ingroup Elementary
12268     *
12269     * @image html img/widget/list/preview-00.png
12270     * @image latex img/widget/list/preview-00.eps width=\textwidth
12271     *
12272     * @image html img/list.png
12273     * @image latex img/list.eps width=\textwidth
12274     *
12275     * A list widget is a container whose children are displayed vertically or
12276     * horizontally, in order, and can be selected.
12277     * The list can accept only one or multiple items selection. Also has many
12278     * modes of items displaying.
12279     *
12280     * A list is a very simple type of list widget.  For more robust
12281     * lists, @ref Genlist should probably be used.
12282     *
12283     * Smart callbacks one can listen to:
12284     * - @c "activated" - The user has double-clicked or pressed
12285     *   (enter|return|spacebar) on an item. The @c event_info parameter
12286     *   is the item that was activated.
12287     * - @c "clicked,double" - The user has double-clicked an item.
12288     *   The @c event_info parameter is the item that was double-clicked.
12289     * - "selected" - when the user selected an item
12290     * - "unselected" - when the user unselected an item
12291     * - "longpressed" - an item in the list is long-pressed
12292     * - "scroll,edge,top" - the list is scrolled until the top edge
12293     * - "scroll,edge,bottom" - the list is scrolled until the bottom edge
12294     * - "scroll,edge,left" - the list is scrolled until the left edge
12295     * - "scroll,edge,right" - the list is scrolled until the right edge
12296     *
12297     * Available styles for it:
12298     * - @c "default"
12299     *
12300     * List of examples:
12301     * @li @ref list_example_01
12302     * @li @ref list_example_02
12303     * @li @ref list_example_03
12304     */
12305
12306    /**
12307     * @addtogroup List
12308     * @{
12309     */
12310
12311    /**
12312     * @enum _Elm_List_Mode
12313     * @typedef Elm_List_Mode
12314     *
12315     * Set list's resize behavior, transverse axis scroll and
12316     * items cropping. See each mode's description for more details.
12317     *
12318     * @note Default value is #ELM_LIST_SCROLL.
12319     *
12320     * Values <b> don't </b> work as bitmask, only one can be choosen.
12321     *
12322     * @see elm_list_mode_set()
12323     * @see elm_list_mode_get()
12324     *
12325     * @ingroup List
12326     */
12327    typedef enum _Elm_List_Mode
12328      {
12329         ELM_LIST_COMPRESS = 0, /**< Won't set any of its size hints to inform how a possible container should resize it. Then, if it's not created as a "resize object", it might end with zero dimensions. The list will respect the container's geometry and, if any of its items won't fit into its transverse axis, one won't be able to scroll it in that direction. */
12330         ELM_LIST_SCROLL, /**< Default value. Won't set any of its size hints to inform how a possible container should resize it. Then, if it's not created as a "resize object", it might end with zero dimensions. The list will respect the container's geometry and, if any of its items won't fit into its transverse axis, one will be able to scroll it in that direction (large items will get cropped). */
12331         ELM_LIST_LIMIT, /**< Set a minimun size hint on the list object, so that containers may respect it (and resize itself to fit the child properly). More specifically, a minimum size hint will be set for its transverse axis, so that the @b largest item in that direction fits well. Can have effects bounded by setting the list object's maximum size hints. */
12332         ELM_LIST_EXPAND, /**< Besides setting a minimum size on the transverse axis, just like the previous mode, will set a minimum size on the longitudinal axis too, trying to reserve space to all its children to be visible at a time. Can have effects bounded by setting the list object's maximum size hints. */
12333         ELM_LIST_LAST /**< Indicates error if returned by elm_list_mode_get() */
12334      } Elm_List_Mode;
12335
12336    typedef struct _Elm_List_Item Elm_List_Item; /**< Item of Elm_List. Sub-type of Elm_Widget_Item. Can be created with elm_list_item_append(), elm_list_item_prepend() and functions to add items in relative positions, like elm_list_item_insert_before(), and deleted with elm_list_item_del().  */
12337
12338    /**
12339     * Add a new list widget to the given parent Elementary
12340     * (container) object.
12341     *
12342     * @param parent The parent object.
12343     * @return a new list widget handle or @c NULL, on errors.
12344     *
12345     * This function inserts a new list widget on the canvas.
12346     *
12347     * @ingroup List
12348     */
12349    EAPI Evas_Object     *elm_list_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12350
12351    /**
12352     * Starts the list.
12353     *
12354     * @param obj The list object
12355     *
12356     * @note Call before running show() on the list object.
12357     * @warning If not called, it won't display the list properly.
12358     *
12359     * @code
12360     * li = elm_list_add(win);
12361     * elm_list_item_append(li, "First", NULL, NULL, NULL, NULL);
12362     * elm_list_item_append(li, "Second", NULL, NULL, NULL, NULL);
12363     * elm_list_go(li);
12364     * evas_object_show(li);
12365     * @endcode
12366     *
12367     * @ingroup List
12368     */
12369    EAPI void             elm_list_go(Evas_Object *obj) EINA_ARG_NONNULL(1);
12370
12371    /**
12372     * Enable or disable multiple items selection on the list object.
12373     *
12374     * @param obj The list object
12375     * @param multi @c EINA_TRUE to enable multi selection or @c EINA_FALSE to
12376     * disable it.
12377     *
12378     * Disabled by default. If disabled, the user can select a single item of
12379     * the list each time. Selected items are highlighted on list.
12380     * If enabled, many items can be selected.
12381     *
12382     * If a selected item is selected again, it will be unselected.
12383     *
12384     * @see elm_list_multi_select_get()
12385     *
12386     * @ingroup List
12387     */
12388    EAPI void             elm_list_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
12389
12390    /**
12391     * Get a value whether multiple items selection is enabled or not.
12392     *
12393     * @see elm_list_multi_select_set() for details.
12394     *
12395     * @param obj The list object.
12396     * @return @c EINA_TRUE means multiple items selection is enabled.
12397     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
12398     * @c EINA_FALSE is returned.
12399     *
12400     * @ingroup List
12401     */
12402    EAPI Eina_Bool        elm_list_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12403
12404    /**
12405     * Set which mode to use for the list object.
12406     *
12407     * @param obj The list object
12408     * @param mode One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
12409     * #ELM_LIST_LIMIT or #ELM_LIST_EXPAND.
12410     *
12411     * Set list's resize behavior, transverse axis scroll and
12412     * items cropping. See each mode's description for more details.
12413     *
12414     * @note Default value is #ELM_LIST_SCROLL.
12415     *
12416     * Only one can be set, if a previous one was set, it will be changed
12417     * by the new mode set. Bitmask won't work as well.
12418     *
12419     * @see elm_list_mode_get()
12420     *
12421     * @ingroup List
12422     */
12423    EAPI void             elm_list_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
12424
12425    /**
12426     * Get the mode the list is at.
12427     *
12428     * @param obj The list object
12429     * @return One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
12430     * #ELM_LIST_LIMIT, #ELM_LIST_EXPAND or #ELM_LIST_LAST on errors.
12431     *
12432     * @note see elm_list_mode_set() for more information.
12433     *
12434     * @ingroup List
12435     */
12436    EAPI Elm_List_Mode    elm_list_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12437
12438    /**
12439     * Enable or disable horizontal mode on the list object.
12440     *
12441     * @param obj The list object.
12442     * @param horizontal @c EINA_TRUE to enable horizontal or @c EINA_FALSE to
12443     * disable it, i.e., to enable vertical mode.
12444     *
12445     * @note Vertical mode is set by default.
12446     *
12447     * On horizontal mode items are displayed on list from left to right,
12448     * instead of from top to bottom. Also, the list will scroll horizontally.
12449     * Each item will presents left icon on top and right icon, or end, at
12450     * the bottom.
12451     *
12452     * @see elm_list_horizontal_get()
12453     *
12454     * @ingroup List
12455     */
12456    EAPI void             elm_list_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
12457
12458    /**
12459     * Get a value whether horizontal mode is enabled or not.
12460     *
12461     * @param obj The list object.
12462     * @return @c EINA_TRUE means horizontal mode selection is enabled.
12463     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
12464     * @c EINA_FALSE is returned.
12465     *
12466     * @see elm_list_horizontal_set() for details.
12467     *
12468     * @ingroup List
12469     */
12470    EAPI Eina_Bool        elm_list_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12471
12472    /**
12473     * Enable or disable always select mode on the list object.
12474     *
12475     * @param obj The list object
12476     * @param always_select @c EINA_TRUE to enable always select mode or
12477     * @c EINA_FALSE to disable it.
12478     *
12479     * @note Always select mode is disabled by default.
12480     *
12481     * Default behavior of list items is to only call its callback function
12482     * the first time it's pressed, i.e., when it is selected. If a selected
12483     * item is pressed again, and multi-select is disabled, it won't call
12484     * this function (if multi-select is enabled it will unselect the item).
12485     *
12486     * If always select is enabled, it will call the callback function
12487     * everytime a item is pressed, so it will call when the item is selected,
12488     * and again when a selected item is pressed.
12489     *
12490     * @see elm_list_always_select_mode_get()
12491     * @see elm_list_multi_select_set()
12492     *
12493     * @ingroup List
12494     */
12495    EAPI void             elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
12496
12497    /**
12498     * Get a value whether always select mode is enabled or not, meaning that
12499     * an item will always call its callback function, even if already selected.
12500     *
12501     * @param obj The list object
12502     * @return @c EINA_TRUE means horizontal mode selection is enabled.
12503     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
12504     * @c EINA_FALSE is returned.
12505     *
12506     * @see elm_list_always_select_mode_set() for details.
12507     *
12508     * @ingroup List
12509     */
12510    EAPI Eina_Bool        elm_list_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12511
12512    /**
12513     * Set bouncing behaviour when the scrolled content reaches an edge.
12514     *
12515     * Tell the internal scroller object whether it should bounce or not
12516     * when it reaches the respective edges for each axis.
12517     *
12518     * @param obj The list object
12519     * @param h_bounce Whether to bounce or not in the horizontal axis.
12520     * @param v_bounce Whether to bounce or not in the vertical axis.
12521     *
12522     * @see elm_scroller_bounce_set()
12523     *
12524     * @ingroup List
12525     */
12526    EAPI void             elm_list_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
12527
12528    /**
12529     * Get the bouncing behaviour of the internal scroller.
12530     *
12531     * Get whether the internal scroller should bounce when the edge of each
12532     * axis is reached scrolling.
12533     *
12534     * @param obj The list object.
12535     * @param h_bounce Pointer where to store the bounce state of the horizontal
12536     * axis.
12537     * @param v_bounce Pointer where to store the bounce state of the vertical
12538     * axis.
12539     *
12540     * @see elm_scroller_bounce_get()
12541     * @see elm_list_bounce_set()
12542     *
12543     * @ingroup List
12544     */
12545    EAPI void             elm_list_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
12546
12547    /**
12548     * Set the scrollbar policy.
12549     *
12550     * @param obj The list object
12551     * @param policy_h Horizontal scrollbar policy.
12552     * @param policy_v Vertical scrollbar policy.
12553     *
12554     * This sets the scrollbar visibility policy for the given scroller.
12555     * #ELM_SCROLLER_POLICY_AUTO means the scrollber is made visible if it
12556     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
12557     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
12558     * This applies respectively for the horizontal and vertical scrollbars.
12559     *
12560     * The both are disabled by default, i.e., are set to
12561     * #ELM_SCROLLER_POLICY_OFF.
12562     *
12563     * @ingroup List
12564     */
12565    EAPI void             elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
12566
12567    /**
12568     * Get the scrollbar policy.
12569     *
12570     * @see elm_list_scroller_policy_get() for details.
12571     *
12572     * @param obj The list object.
12573     * @param policy_h Pointer where to store horizontal scrollbar policy.
12574     * @param policy_v Pointer where to store vertical scrollbar policy.
12575     *
12576     * @ingroup List
12577     */
12578    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);
12579
12580    /**
12581     * Append a new item to the list object.
12582     *
12583     * @param obj The list object.
12584     * @param label The label of the list item.
12585     * @param icon The icon object to use for the left side of the item. An
12586     * icon can be any Evas object, but usually it is an icon created
12587     * with elm_icon_add().
12588     * @param end The icon object to use for the right side of the item. An
12589     * icon can be any Evas object.
12590     * @param func The function to call when the item is clicked.
12591     * @param data The data to associate with the item for related callbacks.
12592     *
12593     * @return The created item or @c NULL upon failure.
12594     *
12595     * A new item will be created and appended to the list, i.e., will
12596     * be set as @b last item.
12597     *
12598     * Items created with this method can be deleted with
12599     * elm_list_item_del().
12600     *
12601     * Associated @p data can be properly freed when item is deleted if a
12602     * callback function is set with elm_list_item_del_cb_set().
12603     *
12604     * If a function is passed as argument, it will be called everytime this item
12605     * is selected, i.e., the user clicks over an unselected item.
12606     * If always select is enabled it will call this function every time
12607     * user clicks over an item (already selected or not).
12608     * If such function isn't needed, just passing
12609     * @c NULL as @p func is enough. The same should be done for @p data.
12610     *
12611     * Simple example (with no function callback or data associated):
12612     * @code
12613     * li = elm_list_add(win);
12614     * ic = elm_icon_add(win);
12615     * elm_icon_file_set(ic, "path/to/image", NULL);
12616     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
12617     * elm_list_item_append(li, "label", ic, NULL, NULL, NULL);
12618     * elm_list_go(li);
12619     * evas_object_show(li);
12620     * @endcode
12621     *
12622     * @see elm_list_always_select_mode_set()
12623     * @see elm_list_item_del()
12624     * @see elm_list_item_del_cb_set()
12625     * @see elm_list_clear()
12626     * @see elm_icon_add()
12627     *
12628     * @ingroup List
12629     */
12630    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);
12631
12632    /**
12633     * Prepend a new item to the list object.
12634     *
12635     * @param obj The list object.
12636     * @param label The label of the list item.
12637     * @param icon The icon object to use for the left side of the item. An
12638     * icon can be any Evas object, but usually it is an icon created
12639     * with elm_icon_add().
12640     * @param end The icon object to use for the right side of the item. An
12641     * icon can be any Evas object.
12642     * @param func The function to call when the item is clicked.
12643     * @param data The data to associate with the item for related callbacks.
12644     *
12645     * @return The created item or @c NULL upon failure.
12646     *
12647     * A new item will be created and prepended to the list, i.e., will
12648     * be set as @b first item.
12649     *
12650     * Items created with this method can be deleted with
12651     * elm_list_item_del().
12652     *
12653     * Associated @p data can be properly freed when item is deleted if a
12654     * callback function is set with elm_list_item_del_cb_set().
12655     *
12656     * If a function is passed as argument, it will be called everytime this item
12657     * is selected, i.e., the user clicks over an unselected item.
12658     * If always select is enabled it will call this function every time
12659     * user clicks over an item (already selected or not).
12660     * If such function isn't needed, just passing
12661     * @c NULL as @p func is enough. The same should be done for @p data.
12662     *
12663     * @see elm_list_item_append() for a simple code example.
12664     * @see elm_list_always_select_mode_set()
12665     * @see elm_list_item_del()
12666     * @see elm_list_item_del_cb_set()
12667     * @see elm_list_clear()
12668     * @see elm_icon_add()
12669     *
12670     * @ingroup List
12671     */
12672    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);
12673
12674    /**
12675     * Insert a new item into the list object before item @p before.
12676     *
12677     * @param obj The list object.
12678     * @param before The list item to insert before.
12679     * @param label The label of the list item.
12680     * @param icon The icon object to use for the left side of the item. An
12681     * icon can be any Evas object, but usually it is an icon created
12682     * with elm_icon_add().
12683     * @param end The icon object to use for the right side of the item. An
12684     * icon can be any Evas object.
12685     * @param func The function to call when the item is clicked.
12686     * @param data The data to associate with the item for related callbacks.
12687     *
12688     * @return The created item or @c NULL upon failure.
12689     *
12690     * A new item will be created and added to the list. Its position in
12691     * this list will be just before item @p before.
12692     *
12693     * Items created with this method can be deleted with
12694     * elm_list_item_del().
12695     *
12696     * Associated @p data can be properly freed when item is deleted if a
12697     * callback function is set with elm_list_item_del_cb_set().
12698     *
12699     * If a function is passed as argument, it will be called everytime this item
12700     * is selected, i.e., the user clicks over an unselected item.
12701     * If always select is enabled it will call this function every time
12702     * user clicks over an item (already selected or not).
12703     * If such function isn't needed, just passing
12704     * @c NULL as @p func is enough. The same should be done for @p data.
12705     *
12706     * @see elm_list_item_append() for a simple code example.
12707     * @see elm_list_always_select_mode_set()
12708     * @see elm_list_item_del()
12709     * @see elm_list_item_del_cb_set()
12710     * @see elm_list_clear()
12711     * @see elm_icon_add()
12712     *
12713     * @ingroup List
12714     */
12715    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);
12716
12717    /**
12718     * Insert a new item into the list object after item @p after.
12719     *
12720     * @param obj The list object.
12721     * @param after The list item to insert after.
12722     * @param label The label of the list item.
12723     * @param icon The icon object to use for the left side of the item. An
12724     * icon can be any Evas object, but usually it is an icon created
12725     * with elm_icon_add().
12726     * @param end The icon object to use for the right side of the item. An
12727     * icon can be any Evas object.
12728     * @param func The function to call when the item is clicked.
12729     * @param data The data to associate with the item for related callbacks.
12730     *
12731     * @return The created item or @c NULL upon failure.
12732     *
12733     * A new item will be created and added to the list. Its position in
12734     * this list will be just after item @p after.
12735     *
12736     * Items created with this method can be deleted with
12737     * elm_list_item_del().
12738     *
12739     * Associated @p data can be properly freed when item is deleted if a
12740     * callback function is set with elm_list_item_del_cb_set().
12741     *
12742     * If a function is passed as argument, it will be called everytime this item
12743     * is selected, i.e., the user clicks over an unselected item.
12744     * If always select is enabled it will call this function every time
12745     * user clicks over an item (already selected or not).
12746     * If such function isn't needed, just passing
12747     * @c NULL as @p func is enough. The same should be done for @p data.
12748     *
12749     * @see elm_list_item_append() for a simple code example.
12750     * @see elm_list_always_select_mode_set()
12751     * @see elm_list_item_del()
12752     * @see elm_list_item_del_cb_set()
12753     * @see elm_list_clear()
12754     * @see elm_icon_add()
12755     *
12756     * @ingroup List
12757     */
12758    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);
12759
12760    /**
12761     * Insert a new item into the sorted list object.
12762     *
12763     * @param obj The list object.
12764     * @param label The label of the list item.
12765     * @param icon The icon object to use for the left side of the item. An
12766     * icon can be any Evas object, but usually it is an icon created
12767     * with elm_icon_add().
12768     * @param end The icon object to use for the right side of the item. An
12769     * icon can be any Evas object.
12770     * @param func The function to call when the item is clicked.
12771     * @param data The data to associate with the item for related callbacks.
12772     * @param cmp_func The comparing function to be used to sort list
12773     * items <b>by #Elm_List_Item item handles</b>. This function will
12774     * receive two items and compare them, returning a non-negative integer
12775     * if the second item should be place after the first, or negative value
12776     * if should be placed before.
12777     *
12778     * @return The created item or @c NULL upon failure.
12779     *
12780     * @note This function inserts values into a list object assuming it was
12781     * sorted and the result will be sorted.
12782     *
12783     * A new item will be created and added to the list. Its position in
12784     * this list will be found comparing the new item with previously inserted
12785     * items using function @p cmp_func.
12786     *
12787     * Items created with this method can be deleted with
12788     * elm_list_item_del().
12789     *
12790     * Associated @p data can be properly freed when item is deleted if a
12791     * callback function is set with elm_list_item_del_cb_set().
12792     *
12793     * If a function is passed as argument, it will be called everytime this item
12794     * is selected, i.e., the user clicks over an unselected item.
12795     * If always select is enabled it will call this function every time
12796     * user clicks over an item (already selected or not).
12797     * If such function isn't needed, just passing
12798     * @c NULL as @p func is enough. The same should be done for @p data.
12799     *
12800     * @see elm_list_item_append() for a simple code example.
12801     * @see elm_list_always_select_mode_set()
12802     * @see elm_list_item_del()
12803     * @see elm_list_item_del_cb_set()
12804     * @see elm_list_clear()
12805     * @see elm_icon_add()
12806     *
12807     * @ingroup List
12808     */
12809    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);
12810
12811    /**
12812     * Remove all list's items.
12813     *
12814     * @param obj The list object
12815     *
12816     * @see elm_list_item_del()
12817     * @see elm_list_item_append()
12818     *
12819     * @ingroup List
12820     */
12821    EAPI void             elm_list_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
12822
12823    /**
12824     * Get a list of all the list items.
12825     *
12826     * @param obj The list object
12827     * @return An @c Eina_List of list items, #Elm_List_Item,
12828     * or @c NULL on failure.
12829     *
12830     * @see elm_list_item_append()
12831     * @see elm_list_item_del()
12832     * @see elm_list_clear()
12833     *
12834     * @ingroup List
12835     */
12836    EAPI const Eina_List *elm_list_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12837
12838    /**
12839     * Get the selected item.
12840     *
12841     * @param obj The list object.
12842     * @return The selected list item.
12843     *
12844     * The selected item can be unselected with function
12845     * elm_list_item_selected_set().
12846     *
12847     * The selected item always will be highlighted on list.
12848     *
12849     * @see elm_list_selected_items_get()
12850     *
12851     * @ingroup List
12852     */
12853    EAPI Elm_List_Item   *elm_list_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12854
12855    /**
12856     * Return a list of the currently selected list items.
12857     *
12858     * @param obj The list object.
12859     * @return An @c Eina_List of list items, #Elm_List_Item,
12860     * or @c NULL on failure.
12861     *
12862     * Multiple items can be selected if multi select is enabled. It can be
12863     * done with elm_list_multi_select_set().
12864     *
12865     * @see elm_list_selected_item_get()
12866     * @see elm_list_multi_select_set()
12867     *
12868     * @ingroup List
12869     */
12870    EAPI const Eina_List *elm_list_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12871
12872    /**
12873     * Set the selected state of an item.
12874     *
12875     * @param item The list item
12876     * @param selected The selected state
12877     *
12878     * This sets the selected state of the given item @p it.
12879     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
12880     *
12881     * If a new item is selected the previosly selected will be unselected,
12882     * unless multiple selection is enabled with elm_list_multi_select_set().
12883     * Previoulsy selected item can be get with function
12884     * elm_list_selected_item_get().
12885     *
12886     * Selected items will be highlighted.
12887     *
12888     * @see elm_list_item_selected_get()
12889     * @see elm_list_selected_item_get()
12890     * @see elm_list_multi_select_set()
12891     *
12892     * @ingroup List
12893     */
12894    EAPI void             elm_list_item_selected_set(Elm_List_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
12895
12896    /*
12897     * Get whether the @p item is selected or not.
12898     *
12899     * @param item The list item.
12900     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
12901     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
12902     *
12903     * @see elm_list_selected_item_set() for details.
12904     * @see elm_list_item_selected_get()
12905     *
12906     * @ingroup List
12907     */
12908    EAPI Eina_Bool        elm_list_item_selected_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
12909
12910    /**
12911     * Set or unset item as a separator.
12912     *
12913     * @param it The list item.
12914     * @param setting @c EINA_TRUE to set item @p it as separator or
12915     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
12916     *
12917     * Items aren't set as separator by default.
12918     *
12919     * If set as separator it will display separator theme, so won't display
12920     * icons or label.
12921     *
12922     * @see elm_list_item_separator_get()
12923     *
12924     * @ingroup List
12925     */
12926    EAPI void             elm_list_item_separator_set(Elm_List_Item *it, Eina_Bool setting) EINA_ARG_NONNULL(1);
12927
12928    /**
12929     * Get a value whether item is a separator or not.
12930     *
12931     * @see elm_list_item_separator_set() for details.
12932     *
12933     * @param it The list item.
12934     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
12935     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
12936     *
12937     * @ingroup List
12938     */
12939    EAPI Eina_Bool        elm_list_item_separator_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
12940
12941    /**
12942     * Show @p item in the list view.
12943     *
12944     * @param item The list item to be shown.
12945     *
12946     * It won't animate list until item is visible. If such behavior is wanted,
12947     * use elm_list_bring_in() intead.
12948     *
12949     * @ingroup List
12950     */
12951    EAPI void             elm_list_item_show(Elm_List_Item *item) EINA_ARG_NONNULL(1);
12952
12953    /**
12954     * Bring in the given item to list view.
12955     *
12956     * @param item The item.
12957     *
12958     * This causes list to jump to the given item @p item and show it
12959     * (by scrolling), if it is not fully visible.
12960     *
12961     * This may use animation to do so and take a period of time.
12962     *
12963     * If animation isn't wanted, elm_list_item_show() can be used.
12964     *
12965     * @ingroup List
12966     */
12967    EAPI void             elm_list_item_bring_in(Elm_List_Item *item) EINA_ARG_NONNULL(1);
12968
12969    /**
12970     * Delete them item from the list.
12971     *
12972     * @param item The item of list to be deleted.
12973     *
12974     * If deleting all list items is required, elm_list_clear()
12975     * should be used instead of getting items list and deleting each one.
12976     *
12977     * @see elm_list_clear()
12978     * @see elm_list_item_append()
12979     * @see elm_list_item_del_cb_set()
12980     *
12981     * @ingroup List
12982     */
12983    EAPI void             elm_list_item_del(Elm_List_Item *item) EINA_ARG_NONNULL(1);
12984
12985    /**
12986     * Set the function called when a list item is freed.
12987     *
12988     * @param item The item to set the callback on
12989     * @param func The function called
12990     *
12991     * If there is a @p func, then it will be called prior item's memory release.
12992     * That will be called with the following arguments:
12993     * @li item's data;
12994     * @li item's Evas object;
12995     * @li item itself;
12996     *
12997     * This way, a data associated to a list item could be properly freed.
12998     *
12999     * @ingroup List
13000     */
13001    EAPI void             elm_list_item_del_cb_set(Elm_List_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
13002
13003    /**
13004     * Get the data associated to the item.
13005     *
13006     * @param item The list item
13007     * @return The data associated to @p item
13008     *
13009     * The return value is a pointer to data associated to @p item when it was
13010     * created, with function elm_list_item_append() or similar. If no data
13011     * was passed as argument, it will return @c NULL.
13012     *
13013     * @see elm_list_item_append()
13014     *
13015     * @ingroup List
13016     */
13017    EAPI void            *elm_list_item_data_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
13018
13019    /**
13020     * Get the left side icon associated to the item.
13021     *
13022     * @param item The list item
13023     * @return The left side icon associated to @p item
13024     *
13025     * The return value is a pointer to the icon associated to @p item when
13026     * it was
13027     * created, with function elm_list_item_append() or similar, or later
13028     * with function elm_list_item_icon_set(). If no icon
13029     * was passed as argument, it will return @c NULL.
13030     *
13031     * @see elm_list_item_append()
13032     * @see elm_list_item_icon_set()
13033     *
13034     * @ingroup List
13035     */
13036    EAPI Evas_Object     *elm_list_item_icon_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
13037
13038    /**
13039     * Set the left side icon associated to the item.
13040     *
13041     * @param item The list item
13042     * @param icon The left side icon object to associate with @p item
13043     *
13044     * The icon object to use at left side of the item. An
13045     * icon can be any Evas object, but usually it is an icon created
13046     * with elm_icon_add().
13047     *
13048     * Once the icon object is set, a previously set one will be deleted.
13049     * @warning Setting the same icon for two items will cause the icon to
13050     * dissapear from the first item.
13051     *
13052     * If an icon was passed as argument on item creation, with function
13053     * elm_list_item_append() or similar, it will be already
13054     * associated to the item.
13055     *
13056     * @see elm_list_item_append()
13057     * @see elm_list_item_icon_get()
13058     *
13059     * @ingroup List
13060     */
13061    EAPI void             elm_list_item_icon_set(Elm_List_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
13062
13063    /**
13064     * Get the right side icon associated to the item.
13065     *
13066     * @param item The list item
13067     * @return The right side icon associated to @p item
13068     *
13069     * The return value is a pointer to the icon associated to @p item when
13070     * it was
13071     * created, with function elm_list_item_append() or similar, or later
13072     * with function elm_list_item_icon_set(). If no icon
13073     * was passed as argument, it will return @c NULL.
13074     *
13075     * @see elm_list_item_append()
13076     * @see elm_list_item_icon_set()
13077     *
13078     * @ingroup List
13079     */
13080    EAPI Evas_Object     *elm_list_item_end_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
13081
13082    /**
13083     * Set the right side icon associated to the item.
13084     *
13085     * @param item The list item
13086     * @param end The right side icon object to associate with @p item
13087     *
13088     * The icon object to use at right side of the item. An
13089     * icon can be any Evas object, but usually it is an icon created
13090     * with elm_icon_add().
13091     *
13092     * Once the icon object is set, a previously set one will be deleted.
13093     * @warning Setting the same icon for two items will cause the icon to
13094     * dissapear from the first item.
13095     *
13096     * If an icon was passed as argument on item creation, with function
13097     * elm_list_item_append() or similar, it will be already
13098     * associated to the item.
13099     *
13100     * @see elm_list_item_append()
13101     * @see elm_list_item_end_get()
13102     *
13103     * @ingroup List
13104     */
13105    EAPI void             elm_list_item_end_set(Elm_List_Item *item, Evas_Object *end) EINA_ARG_NONNULL(1);
13106
13107    /**
13108     * Gets the base object of the item.
13109     *
13110     * @param item The list item
13111     * @return The base object associated with @p item
13112     *
13113     * Base object is the @c Evas_Object that represents that item.
13114     *
13115     * @ingroup List
13116     */
13117    EAPI Evas_Object     *elm_list_item_base_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
13118
13119    /**
13120     * Get the label of item.
13121     *
13122     * @param item The item of list.
13123     * @return The label of item.
13124     *
13125     * The return value is a pointer to the label associated to @p item when
13126     * it was created, with function elm_list_item_append(), or later
13127     * with function elm_list_item_label_set. If no label
13128     * was passed as argument, it will return @c NULL.
13129     *
13130     * @see elm_list_item_label_set() for more details.
13131     * @see elm_list_item_append()
13132     *
13133     * @ingroup List
13134     */
13135    EAPI const char      *elm_list_item_label_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
13136
13137    /**
13138     * Set the label of item.
13139     *
13140     * @param item The item of list.
13141     * @param text The label of item.
13142     *
13143     * The label to be displayed by the item.
13144     * Label will be placed between left and right side icons (if set).
13145     *
13146     * If a label was passed as argument on item creation, with function
13147     * elm_list_item_append() or similar, it will be already
13148     * displayed by the item.
13149     *
13150     * @see elm_list_item_label_get()
13151     * @see elm_list_item_append()
13152     *
13153     * @ingroup List
13154     */
13155    EAPI void             elm_list_item_label_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
13156
13157
13158    /**
13159     * Get the item before @p it in list.
13160     *
13161     * @param it The list item.
13162     * @return The item before @p it, or @c NULL if none or on failure.
13163     *
13164     * @note If it is the first item, @c NULL will be returned.
13165     *
13166     * @see elm_list_item_append()
13167     * @see elm_list_items_get()
13168     *
13169     * @ingroup List
13170     */
13171    EAPI Elm_List_Item   *elm_list_item_prev(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
13172
13173    /**
13174     * Get the item after @p it in list.
13175     *
13176     * @param it The list item.
13177     * @return The item after @p it, or @c NULL if none or on failure.
13178     *
13179     * @note If it is the last item, @c NULL will be returned.
13180     *
13181     * @see elm_list_item_append()
13182     * @see elm_list_items_get()
13183     *
13184     * @ingroup List
13185     */
13186    EAPI Elm_List_Item   *elm_list_item_next(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
13187
13188    /**
13189     * Sets the disabled/enabled state of a list item.
13190     *
13191     * @param it The item.
13192     * @param disabled The disabled state.
13193     *
13194     * A disabled item cannot be selected or unselected. It will also
13195     * change its appearance (generally greyed out). This sets the
13196     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
13197     * enabled).
13198     *
13199     * @ingroup List
13200     */
13201    EAPI void             elm_list_item_disabled_set(Elm_List_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
13202
13203    /**
13204     * Get a value whether list item is disabled or not.
13205     *
13206     * @param it The item.
13207     * @return The disabled state.
13208     *
13209     * @see elm_list_item_disabled_set() for more details.
13210     *
13211     * @ingroup List
13212     */
13213    EAPI Eina_Bool        elm_list_item_disabled_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
13214
13215    /**
13216     * Set the text to be shown in a given list item's tooltips.
13217     *
13218     * @param item Target item.
13219     * @param text The text to set in the content.
13220     *
13221     * Setup the text as tooltip to object. The item can have only one tooltip,
13222     * so any previous tooltip data - set with this function or
13223     * elm_list_item_tooltip_content_cb_set() - is removed.
13224     *
13225     * @see elm_object_tooltip_text_set() for more details.
13226     *
13227     * @ingroup List
13228     */
13229    EAPI void             elm_list_item_tooltip_text_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
13230
13231
13232    /**
13233     * @brief Disable size restrictions on an object's tooltip
13234     * @param item The tooltip's anchor object
13235     * @param disable If EINA_TRUE, size restrictions are disabled
13236     * @return EINA_FALSE on failure, EINA_TRUE on success
13237     *
13238     * This function allows a tooltip to expand beyond its parant window's canvas.
13239     * It will instead be limited only by the size of the display.
13240     */
13241    EAPI Eina_Bool        elm_list_item_tooltip_size_restrict_disable(Elm_List_Item *item, Eina_Bool disable) EINA_ARG_NONNULL(1);
13242    /**
13243     * @brief Retrieve size restriction state of an object's tooltip
13244     * @param obj The tooltip's anchor object
13245     * @return If EINA_TRUE, size restrictions are disabled
13246     *
13247     * This function returns whether a tooltip is allowed to expand beyond
13248     * its parant window's canvas.
13249     * It will instead be limited only by the size of the display.
13250     */
13251    EAPI Eina_Bool        elm_list_item_tooltip_size_restrict_disabled_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
13252
13253    /**
13254     * Set the content to be shown in the tooltip item.
13255     *
13256     * Setup the tooltip to item. The item can have only one tooltip,
13257     * so any previous tooltip data is removed. @p func(with @p data) will
13258     * be called every time that need show the tooltip and it should
13259     * return a valid Evas_Object. This object is then managed fully by
13260     * tooltip system and is deleted when the tooltip is gone.
13261     *
13262     * @param item the list item being attached a tooltip.
13263     * @param func the function used to create the tooltip contents.
13264     * @param data what to provide to @a func as callback data/context.
13265     * @param del_cb called when data is not needed anymore, either when
13266     *        another callback replaces @a func, the tooltip is unset with
13267     *        elm_list_item_tooltip_unset() or the owner @a item
13268     *        dies. This callback receives as the first parameter the
13269     *        given @a data, and @c event_info is the item.
13270     *
13271     * @see elm_object_tooltip_content_cb_set() for more details.
13272     *
13273     * @ingroup List
13274     */
13275    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);
13276
13277    /**
13278     * Unset tooltip from item.
13279     *
13280     * @param item list item to remove previously set tooltip.
13281     *
13282     * Remove tooltip from item. The callback provided as del_cb to
13283     * elm_list_item_tooltip_content_cb_set() will be called to notify
13284     * it is not used anymore.
13285     *
13286     * @see elm_object_tooltip_unset() for more details.
13287     * @see elm_list_item_tooltip_content_cb_set()
13288     *
13289     * @ingroup List
13290     */
13291    EAPI void             elm_list_item_tooltip_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
13292
13293    /**
13294     * Sets a different style for this item tooltip.
13295     *
13296     * @note before you set a style you should define a tooltip with
13297     *       elm_list_item_tooltip_content_cb_set() or
13298     *       elm_list_item_tooltip_text_set()
13299     *
13300     * @param item list item with tooltip already set.
13301     * @param style the theme style to use (default, transparent, ...)
13302     *
13303     * @see elm_object_tooltip_style_set() for more details.
13304     *
13305     * @ingroup List
13306     */
13307    EAPI void             elm_list_item_tooltip_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
13308
13309    /**
13310     * Get the style for this item tooltip.
13311     *
13312     * @param item list item with tooltip already set.
13313     * @return style the theme style in use, defaults to "default". If the
13314     *         object does not have a tooltip set, then NULL is returned.
13315     *
13316     * @see elm_object_tooltip_style_get() for more details.
13317     * @see elm_list_item_tooltip_style_set()
13318     *
13319     * @ingroup List
13320     */
13321    EAPI const char      *elm_list_item_tooltip_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
13322
13323    /**
13324     * Set the type of mouse pointer/cursor decoration to be shown,
13325     * when the mouse pointer is over the given list widget item
13326     *
13327     * @param item list item to customize cursor on
13328     * @param cursor the cursor type's name
13329     *
13330     * This function works analogously as elm_object_cursor_set(), but
13331     * here the cursor's changing area is restricted to the item's
13332     * area, and not the whole widget's. Note that that item cursors
13333     * have precedence over widget cursors, so that a mouse over an
13334     * item with custom cursor set will always show @b that cursor.
13335     *
13336     * If this function is called twice for an object, a previously set
13337     * cursor will be unset on the second call.
13338     *
13339     * @see elm_object_cursor_set()
13340     * @see elm_list_item_cursor_get()
13341     * @see elm_list_item_cursor_unset()
13342     *
13343     * @ingroup List
13344     */
13345    EAPI void             elm_list_item_cursor_set(Elm_List_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
13346
13347    /*
13348     * Get the type of mouse pointer/cursor decoration set to be shown,
13349     * when the mouse pointer is over the given list widget item
13350     *
13351     * @param item list item with custom cursor set
13352     * @return the cursor type's name or @c NULL, if no custom cursors
13353     * were set to @p item (and on errors)
13354     *
13355     * @see elm_object_cursor_get()
13356     * @see elm_list_item_cursor_set()
13357     * @see elm_list_item_cursor_unset()
13358     *
13359     * @ingroup List
13360     */
13361    EAPI const char      *elm_list_item_cursor_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
13362
13363    /**
13364     * Unset any custom mouse pointer/cursor decoration set to be
13365     * shown, when the mouse pointer is over the given list widget
13366     * item, thus making it show the @b default cursor again.
13367     *
13368     * @param item a list item
13369     *
13370     * Use this call to undo any custom settings on this item's cursor
13371     * decoration, bringing it back to defaults (no custom style set).
13372     *
13373     * @see elm_object_cursor_unset()
13374     * @see elm_list_item_cursor_set()
13375     *
13376     * @ingroup List
13377     */
13378    EAPI void             elm_list_item_cursor_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
13379
13380    /**
13381     * Set a different @b style for a given custom cursor set for a
13382     * list item.
13383     *
13384     * @param item list item with custom cursor set
13385     * @param style the <b>theme style</b> to use (e.g. @c "default",
13386     * @c "transparent", etc)
13387     *
13388     * This function only makes sense when one is using custom mouse
13389     * cursor decorations <b>defined in a theme file</b>, which can have,
13390     * given a cursor name/type, <b>alternate styles</b> on it. It
13391     * works analogously as elm_object_cursor_style_set(), but here
13392     * applyed only to list item objects.
13393     *
13394     * @warning Before you set a cursor style you should have definen a
13395     *       custom cursor previously on the item, with
13396     *       elm_list_item_cursor_set()
13397     *
13398     * @see elm_list_item_cursor_engine_only_set()
13399     * @see elm_list_item_cursor_style_get()
13400     *
13401     * @ingroup List
13402     */
13403    EAPI void             elm_list_item_cursor_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
13404
13405    /**
13406     * Get the current @b style set for a given list item's custom
13407     * cursor
13408     *
13409     * @param item list item with custom cursor set.
13410     * @return style the cursor style in use. If the object does not
13411     *         have a cursor set, then @c NULL is returned.
13412     *
13413     * @see elm_list_item_cursor_style_set() for more details
13414     *
13415     * @ingroup List
13416     */
13417    EAPI const char      *elm_list_item_cursor_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
13418
13419    /**
13420     * Set if the (custom)cursor for a given list item should be
13421     * searched in its theme, also, or should only rely on the
13422     * rendering engine.
13423     *
13424     * @param item item with custom (custom) cursor already set on
13425     * @param engine_only Use @c EINA_TRUE to have cursors looked for
13426     * only on those provided by the rendering engine, @c EINA_FALSE to
13427     * have them searched on the widget's theme, as well.
13428     *
13429     * @note This call is of use only if you've set a custom cursor
13430     * for list items, with elm_list_item_cursor_set().
13431     *
13432     * @note By default, cursors will only be looked for between those
13433     * provided by the rendering engine.
13434     *
13435     * @ingroup List
13436     */
13437    EAPI void             elm_list_item_cursor_engine_only_set(Elm_List_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
13438
13439    /**
13440     * Get if the (custom) cursor for a given list item is being
13441     * searched in its theme, also, or is only relying on the rendering
13442     * engine.
13443     *
13444     * @param item a list item
13445     * @return @c EINA_TRUE, if cursors are being looked for only on
13446     * those provided by the rendering engine, @c EINA_FALSE if they
13447     * are being searched on the widget's theme, as well.
13448     *
13449     * @see elm_list_item_cursor_engine_only_set(), for more details
13450     *
13451     * @ingroup List
13452     */
13453    EAPI Eina_Bool        elm_list_item_cursor_engine_only_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
13454
13455    /**
13456     * @}
13457     */
13458
13459    /**
13460     * @defgroup Slider Slider
13461     * @ingroup Elementary
13462     *
13463     * @image html img/widget/slider/preview-00.png
13464     * @image latex img/widget/slider/preview-00.eps width=\textwidth
13465     *
13466     * The slider adds a dragable “slider” widget for selecting the value of
13467     * something within a range.
13468     *
13469     * A slider can be horizontal or vertical. It can contain an Icon and has a
13470     * primary label as well as a units label (that is formatted with floating
13471     * point values and thus accepts a printf-style format string, like
13472     * “%1.2f units”. There is also an indicator string that may be somewhere
13473     * else (like on the slider itself) that also accepts a format string like
13474     * units. Label, Icon Unit and Indicator strings/objects are optional.
13475     *
13476     * A slider may be inverted which means values invert, with high vales being
13477     * on the left or top and low values on the right or bottom (as opposed to
13478     * normally being low on the left or top and high on the bottom and right).
13479     *
13480     * The slider should have its minimum and maximum values set by the
13481     * application with  elm_slider_min_max_set() and value should also be set by
13482     * the application before use with  elm_slider_value_set(). The span of the
13483     * slider is its length (horizontally or vertically). This will be scaled by
13484     * the object or applications scaling factor. At any point code can query the
13485     * slider for its value with elm_slider_value_get().
13486     *
13487     * Smart callbacks one can listen to:
13488     * - "changed" - Whenever the slider value is changed by the user.
13489     * - "slider,drag,start" - dragging the slider indicator around has started.
13490     * - "slider,drag,stop" - dragging the slider indicator around has stopped.
13491     * - "delay,changed" - A short time after the value is changed by the user.
13492     * This will be called only when the user stops dragging for
13493     * a very short period or when they release their
13494     * finger/mouse, so it avoids possibly expensive reactions to
13495     * the value change.
13496     *
13497     * Available styles for it:
13498     * - @c "default"
13499     *
13500     * Here is an example on its usage:
13501     * @li @ref slider_example
13502     */
13503
13504    /**
13505     * @addtogroup Slider
13506     * @{
13507     */
13508
13509    /**
13510     * Add a new slider widget to the given parent Elementary
13511     * (container) object.
13512     *
13513     * @param parent The parent object.
13514     * @return a new slider widget handle or @c NULL, on errors.
13515     *
13516     * This function inserts a new slider widget on the canvas.
13517     *
13518     * @ingroup Slider
13519     */
13520    EAPI Evas_Object       *elm_slider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13521
13522    /**
13523     * Set the label of a given slider widget
13524     *
13525     * @param obj The progress bar object
13526     * @param label The text label string, in UTF-8
13527     *
13528     * @ingroup Slider
13529     * @deprecated use elm_object_text_set() instead.
13530     */
13531    EINA_DEPRECATED EAPI void               elm_slider_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
13532
13533    /**
13534     * Get the label of a given slider widget
13535     *
13536     * @param obj The progressbar object
13537     * @return The text label string, in UTF-8
13538     *
13539     * @ingroup Slider
13540     * @deprecated use elm_object_text_get() instead.
13541     */
13542    EINA_DEPRECATED EAPI const char        *elm_slider_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13543
13544    /**
13545     * Set the icon object of the slider object.
13546     *
13547     * @param obj The slider object.
13548     * @param icon The icon object.
13549     *
13550     * On horizontal mode, icon is placed at left, and on vertical mode,
13551     * placed at top.
13552     *
13553     * @note Once the icon object is set, a previously set one will be deleted.
13554     * If you want to keep that old content object, use the
13555     * elm_slider_icon_unset() function.
13556     *
13557     * @warning If the object being set does not have minimum size hints set,
13558     * it won't get properly displayed.
13559     *
13560     * @ingroup Slider
13561     */
13562    EAPI void               elm_slider_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
13563
13564    /**
13565     * Unset an icon set on a given slider widget.
13566     *
13567     * @param obj The slider object.
13568     * @return The icon object that was being used, if any was set, or
13569     * @c NULL, otherwise (and on errors).
13570     *
13571     * On horizontal mode, icon is placed at left, and on vertical mode,
13572     * placed at top.
13573     *
13574     * This call will unparent and return the icon object which was set
13575     * for this widget, previously, on success.
13576     *
13577     * @see elm_slider_icon_set() for more details
13578     * @see elm_slider_icon_get()
13579     *
13580     * @ingroup Slider
13581     */
13582    EAPI Evas_Object       *elm_slider_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
13583
13584    /**
13585     * Retrieve the icon object set for a given slider widget.
13586     *
13587     * @param obj The slider object.
13588     * @return The icon object's handle, if @p obj had one set, or @c NULL,
13589     * otherwise (and on errors).
13590     *
13591     * On horizontal mode, icon is placed at left, and on vertical mode,
13592     * placed at top.
13593     *
13594     * @see elm_slider_icon_set() for more details
13595     * @see elm_slider_icon_unset()
13596     *
13597     * @ingroup Slider
13598     */
13599    EAPI Evas_Object       *elm_slider_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13600
13601    /**
13602     * Set the end object of the slider object.
13603     *
13604     * @param obj The slider object.
13605     * @param end The end object.
13606     *
13607     * On horizontal mode, end is placed at left, and on vertical mode,
13608     * placed at bottom.
13609     *
13610     * @note Once the icon object is set, a previously set one will be deleted.
13611     * If you want to keep that old content object, use the
13612     * elm_slider_end_unset() function.
13613     *
13614     * @warning If the object being set does not have minimum size hints set,
13615     * it won't get properly displayed.
13616     *
13617     * @ingroup Slider
13618     */
13619    EAPI void               elm_slider_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1);
13620
13621    /**
13622     * Unset an end object set on a given slider widget.
13623     *
13624     * @param obj The slider object.
13625     * @return The end object that was being used, if any was set, or
13626     * @c NULL, otherwise (and on errors).
13627     *
13628     * On horizontal mode, end is placed at left, and on vertical mode,
13629     * placed at bottom.
13630     *
13631     * This call will unparent and return the icon object which was set
13632     * for this widget, previously, on success.
13633     *
13634     * @see elm_slider_end_set() for more details.
13635     * @see elm_slider_end_get()
13636     *
13637     * @ingroup Slider
13638     */
13639    EAPI Evas_Object       *elm_slider_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
13640
13641    /**
13642     * Retrieve the end object set for a given slider widget.
13643     *
13644     * @param obj The slider object.
13645     * @return The end object's handle, if @p obj had one set, or @c NULL,
13646     * otherwise (and on errors).
13647     *
13648     * On horizontal mode, icon is placed at right, and on vertical mode,
13649     * placed at bottom.
13650     *
13651     * @see elm_slider_end_set() for more details.
13652     * @see elm_slider_end_unset()
13653     *
13654     * @ingroup Slider
13655     */
13656    EAPI Evas_Object       *elm_slider_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13657
13658    /**
13659     * Set the (exact) length of the bar region of a given slider widget.
13660     *
13661     * @param obj The slider object.
13662     * @param size The length of the slider's bar region.
13663     *
13664     * This sets the minimum width (when in horizontal mode) or height
13665     * (when in vertical mode) of the actual bar area of the slider
13666     * @p obj. This in turn affects the object's minimum size. Use
13667     * this when you're not setting other size hints expanding on the
13668     * given direction (like weight and alignment hints) and you would
13669     * like it to have a specific size.
13670     *
13671     * @note Icon, end, label, indicator and unit text around @p obj
13672     * will require their
13673     * own space, which will make @p obj to require more the @p size,
13674     * actually.
13675     *
13676     * @see elm_slider_span_size_get()
13677     *
13678     * @ingroup Slider
13679     */
13680    EAPI void               elm_slider_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
13681
13682    /**
13683     * Get the length set for the bar region of a given slider widget
13684     *
13685     * @param obj The slider object.
13686     * @return The length of the slider's bar region.
13687     *
13688     * If that size was not set previously, with
13689     * elm_slider_span_size_set(), this call will return @c 0.
13690     *
13691     * @ingroup Slider
13692     */
13693    EAPI Evas_Coord         elm_slider_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13694
13695    /**
13696     * Set the format string for the unit label.
13697     *
13698     * @param obj The slider object.
13699     * @param format The format string for the unit display.
13700     *
13701     * Unit label is displayed all the time, if set, after slider's bar.
13702     * In horizontal mode, at right and in vertical mode, at bottom.
13703     *
13704     * If @c NULL, unit label won't be visible. If not it sets the format
13705     * string for the label text. To the label text is provided a floating point
13706     * value, so the label text can display up to 1 floating point value.
13707     * Note that this is optional.
13708     *
13709     * Use a format string such as "%1.2f meters" for example, and it will
13710     * display values like: "3.14 meters" for a value equal to 3.14159.
13711     *
13712     * Default is unit label disabled.
13713     *
13714     * @see elm_slider_indicator_format_get()
13715     *
13716     * @ingroup Slider
13717     */
13718    EAPI void               elm_slider_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
13719
13720    /**
13721     * Get the unit label format of the slider.
13722     *
13723     * @param obj The slider object.
13724     * @return The unit label format string in UTF-8.
13725     *
13726     * Unit label is displayed all the time, if set, after slider's bar.
13727     * In horizontal mode, at right and in vertical mode, at bottom.
13728     *
13729     * @see elm_slider_unit_format_set() for more
13730     * information on how this works.
13731     *
13732     * @ingroup Slider
13733     */
13734    EAPI const char        *elm_slider_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13735
13736    /**
13737     * Set the format string for the indicator label.
13738     *
13739     * @param obj The slider object.
13740     * @param indicator The format string for the indicator display.
13741     *
13742     * The slider may display its value somewhere else then unit label,
13743     * for example, above the slider knob that is dragged around. This function
13744     * sets the format string used for this.
13745     *
13746     * If @c NULL, indicator label won't be visible. If not it sets the format
13747     * string for the label text. To the label text is provided a floating point
13748     * value, so the label text can display up to 1 floating point value.
13749     * Note that this is optional.
13750     *
13751     * Use a format string such as "%1.2f meters" for example, and it will
13752     * display values like: "3.14 meters" for a value equal to 3.14159.
13753     *
13754     * Default is indicator label disabled.
13755     *
13756     * @see elm_slider_indicator_format_get()
13757     *
13758     * @ingroup Slider
13759     */
13760    EAPI void               elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator) EINA_ARG_NONNULL(1);
13761
13762    /**
13763     * Get the indicator label format of the slider.
13764     *
13765     * @param obj The slider object.
13766     * @return The indicator label format string in UTF-8.
13767     *
13768     * The slider may display its value somewhere else then unit label,
13769     * for example, above the slider knob that is dragged around. This function
13770     * gets the format string used for this.
13771     *
13772     * @see elm_slider_indicator_format_set() for more
13773     * information on how this works.
13774     *
13775     * @ingroup Slider
13776     */
13777    EAPI const char        *elm_slider_indicator_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13778
13779    /**
13780     * Set the format function pointer for the indicator label
13781     *
13782     * @param obj The slider object.
13783     * @param func The indicator format function.
13784     * @param free_func The freeing function for the format string.
13785     *
13786     * Set the callback function to format the indicator string.
13787     *
13788     * @see elm_slider_indicator_format_set() for more info on how this works.
13789     *
13790     * @ingroup Slider
13791     */
13792   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);
13793
13794   /**
13795    * Set the format function pointer for the units label
13796    *
13797    * @param obj The slider object.
13798    * @param func The units format function.
13799    * @param free_func The freeing function for the format string.
13800    *
13801    * Set the callback function to format the indicator string.
13802    *
13803    * @see elm_slider_units_format_set() for more info on how this works.
13804    *
13805    * @ingroup Slider
13806    */
13807   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);
13808
13809   /**
13810    * Set the orientation of a given slider widget.
13811    *
13812    * @param obj The slider object.
13813    * @param horizontal Use @c EINA_TRUE to make @p obj to be
13814    * @b horizontal, @c EINA_FALSE to make it @b vertical.
13815    *
13816    * Use this function to change how your slider is to be
13817    * disposed: vertically or horizontally.
13818    *
13819    * By default it's displayed horizontally.
13820    *
13821    * @see elm_slider_horizontal_get()
13822    *
13823    * @ingroup Slider
13824    */
13825    EAPI void               elm_slider_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
13826
13827    /**
13828     * Retrieve the orientation of a given slider widget
13829     *
13830     * @param obj The slider object.
13831     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
13832     * @c EINA_FALSE if it's @b vertical (and on errors).
13833     *
13834     * @see elm_slider_horizontal_set() for more details.
13835     *
13836     * @ingroup Slider
13837     */
13838    EAPI Eina_Bool          elm_slider_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13839
13840    /**
13841     * Set the minimum and maximum values for the slider.
13842     *
13843     * @param obj The slider object.
13844     * @param min The minimum value.
13845     * @param max The maximum value.
13846     *
13847     * Define the allowed range of values to be selected by the user.
13848     *
13849     * If actual value is less than @p min, it will be updated to @p min. If it
13850     * is bigger then @p max, will be updated to @p max. Actual value can be
13851     * get with elm_slider_value_get().
13852     *
13853     * By default, min is equal to 0.0, and max is equal to 1.0.
13854     *
13855     * @warning Maximum must be greater than minimum, otherwise behavior
13856     * is undefined.
13857     *
13858     * @see elm_slider_min_max_get()
13859     *
13860     * @ingroup Slider
13861     */
13862    EAPI void               elm_slider_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
13863
13864    /**
13865     * Get the minimum and maximum values of the slider.
13866     *
13867     * @param obj The slider object.
13868     * @param min Pointer where to store the minimum value.
13869     * @param max Pointer where to store the maximum value.
13870     *
13871     * @note If only one value is needed, the other pointer can be passed
13872     * as @c NULL.
13873     *
13874     * @see elm_slider_min_max_set() for details.
13875     *
13876     * @ingroup Slider
13877     */
13878    EAPI void               elm_slider_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
13879
13880    /**
13881     * Set the value the slider displays.
13882     *
13883     * @param obj The slider object.
13884     * @param val The value to be displayed.
13885     *
13886     * Value will be presented on the unit label following format specified with
13887     * elm_slider_unit_format_set() and on indicator with
13888     * elm_slider_indicator_format_set().
13889     *
13890     * @warning The value must to be between min and max values. This values
13891     * are set by elm_slider_min_max_set().
13892     *
13893     * @see elm_slider_value_get()
13894     * @see elm_slider_unit_format_set()
13895     * @see elm_slider_indicator_format_set()
13896     * @see elm_slider_min_max_set()
13897     *
13898     * @ingroup Slider
13899     */
13900    EAPI void               elm_slider_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
13901
13902    /**
13903     * Get the value displayed by the spinner.
13904     *
13905     * @param obj The spinner object.
13906     * @return The value displayed.
13907     *
13908     * @see elm_spinner_value_set() for details.
13909     *
13910     * @ingroup Slider
13911     */
13912    EAPI double             elm_slider_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13913
13914    /**
13915     * Invert a given slider widget's displaying values order
13916     *
13917     * @param obj The slider object.
13918     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
13919     * @c EINA_FALSE to bring it back to default, non-inverted values.
13920     *
13921     * A slider may be @b inverted, in which state it gets its
13922     * values inverted, with high vales being on the left or top and
13923     * low values on the right or bottom, as opposed to normally have
13924     * the low values on the former and high values on the latter,
13925     * respectively, for horizontal and vertical modes.
13926     *
13927     * @see elm_slider_inverted_get()
13928     *
13929     * @ingroup Slider
13930     */
13931    EAPI void               elm_slider_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
13932
13933    /**
13934     * Get whether a given slider widget's displaying values are
13935     * inverted or not.
13936     *
13937     * @param obj The slider object.
13938     * @return @c EINA_TRUE, if @p obj has inverted values,
13939     * @c EINA_FALSE otherwise (and on errors).
13940     *
13941     * @see elm_slider_inverted_set() for more details.
13942     *
13943     * @ingroup Slider
13944     */
13945    EAPI Eina_Bool          elm_slider_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13946
13947    /**
13948     * Set whether to enlarge slider indicator (augmented knob) or not.
13949     *
13950     * @param obj The slider object.
13951     * @param show @c EINA_TRUE will make it enlarge, @c EINA_FALSE will
13952     * let the knob always at default size.
13953     *
13954     * By default, indicator will be bigger while dragged by the user.
13955     *
13956     * @warning It won't display values set with
13957     * elm_slider_indicator_format_set() if you disable indicator.
13958     *
13959     * @ingroup Slider
13960     */
13961    EAPI void               elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show) EINA_ARG_NONNULL(1);
13962
13963    /**
13964     * Get whether a given slider widget's enlarging indicator or not.
13965     *
13966     * @param obj The slider object.
13967     * @return @c EINA_TRUE, if @p obj is enlarging indicator, or
13968     * @c EINA_FALSE otherwise (and on errors).
13969     *
13970     * @see elm_slider_indicator_show_set() for details.
13971     *
13972     * @ingroup Slider
13973     */
13974    EAPI Eina_Bool          elm_slider_indicator_show_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13975
13976    /**
13977     * @}
13978     */
13979
13980    /**
13981     * @addtogroup Actionslider Actionslider
13982     *
13983     * @image html img/widget/actionslider/preview-00.png
13984     * @image latex img/widget/actionslider/preview-00.eps
13985     *
13986     * A actionslider is a switcher for 2 or 3 labels with customizable magnet
13987     * properties. The indicator is the element the user drags to choose a label.
13988     * When the position is set with magnet, when released the indicator will be
13989     * moved to it if it's nearest the magnetized position.
13990     *
13991     * @note By default all positions are set as enabled.
13992     *
13993     * Signals that you can add callbacks for are:
13994     *
13995     * "selected" - when user selects an enabled position (the label is passed
13996     *              as event info)".
13997     * @n
13998     * "pos_changed" - when the indicator reaches any of the positions("left",
13999     *                 "right" or "center").
14000     *
14001     * See an example of actionslider usage @ref actionslider_example_page "here"
14002     * @{
14003     */
14004    typedef enum _Elm_Actionslider_Pos
14005      {
14006         ELM_ACTIONSLIDER_NONE = 0,
14007         ELM_ACTIONSLIDER_LEFT = 1 << 0,
14008         ELM_ACTIONSLIDER_CENTER = 1 << 1,
14009         ELM_ACTIONSLIDER_RIGHT = 1 << 2,
14010         ELM_ACTIONSLIDER_ALL = (1 << 3) -1
14011      } Elm_Actionslider_Pos;
14012
14013    /**
14014     * Add a new actionslider to the parent.
14015     *
14016     * @param parent The parent object
14017     * @return The new actionslider object or NULL if it cannot be created
14018     */
14019    EAPI Evas_Object          *elm_actionslider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14020    /**
14021     * Set actionslider labels.
14022     *
14023     * @param obj The actionslider object
14024     * @param left_label The label to be set on the left.
14025     * @param center_label The label to be set on the center.
14026     * @param right_label The label to be set on the right.
14027     * @deprecated use elm_object_text_set() instead.
14028     */
14029    EINA_DEPRECATED EAPI void                  elm_actionslider_labels_set(Evas_Object *obj, const char *left_label, const char *center_label, const char *right_label) EINA_ARG_NONNULL(1);
14030    /**
14031     * Get actionslider labels.
14032     *
14033     * @param obj The actionslider object
14034     * @param left_label A char** to place the left_label of @p obj into.
14035     * @param center_label A char** to place the center_label of @p obj into.
14036     * @param right_label A char** to place the right_label of @p obj into.
14037     * @deprecated use elm_object_text_set() instead.
14038     */
14039    EINA_DEPRECATED 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);
14040    /**
14041     * Get actionslider selected label.
14042     *
14043     * @param obj The actionslider object
14044     * @return The selected label
14045     */
14046    EAPI const char           *elm_actionslider_selected_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14047    /**
14048     * Set actionslider indicator position.
14049     *
14050     * @param obj The actionslider object.
14051     * @param pos The position of the indicator.
14052     */
14053    EAPI void                  elm_actionslider_indicator_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
14054    /**
14055     * Get actionslider indicator position.
14056     *
14057     * @param obj The actionslider object.
14058     * @return The position of the indicator.
14059     */
14060    EAPI Elm_Actionslider_Pos  elm_actionslider_indicator_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14061    /**
14062     * Set actionslider magnet position. To make multiple positions magnets @c or
14063     * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT)
14064     *
14065     * @param obj The actionslider object.
14066     * @param pos Bit mask indicating the magnet positions.
14067     */
14068    EAPI void                  elm_actionslider_magnet_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
14069    /**
14070     * Get actionslider magnet position.
14071     *
14072     * @param obj The actionslider object.
14073     * @return The positions with magnet property.
14074     */
14075    EAPI Elm_Actionslider_Pos  elm_actionslider_magnet_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14076    /**
14077     * Set actionslider enabled position. To set multiple positions as enabled @c or
14078     * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT).
14079     *
14080     * @note All the positions are enabled by default.
14081     *
14082     * @param obj The actionslider object.
14083     * @param pos Bit mask indicating the enabled positions.
14084     */
14085    EAPI void                  elm_actionslider_enabled_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
14086    /**
14087     * Get actionslider enabled position.
14088     *
14089     * @param obj The actionslider object.
14090     * @return The enabled positions.
14091     */
14092    EAPI Elm_Actionslider_Pos  elm_actionslider_enabled_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14093    /**
14094     * Set the label used on the indicator.
14095     *
14096     * @param obj The actionslider object
14097     * @param label The label to be set on the indicator.
14098     * @deprecated use elm_object_text_set() instead.
14099     */
14100    EINA_DEPRECATED EAPI void                  elm_actionslider_indicator_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
14101    /**
14102     * Get the label used on the indicator object.
14103     *
14104     * @param obj The actionslider object
14105     * @return The indicator label
14106     * @deprecated use elm_object_text_get() instead.
14107     */
14108    EINA_DEPRECATED EAPI const char           *elm_actionslider_indicator_label_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
14109    /**
14110     * @}
14111     */
14112
14113    /**
14114     * @defgroup Genlist Genlist
14115     *
14116     * @image html img/widget/genlist/preview-00.png
14117     * @image latex img/widget/genlist/preview-00.eps
14118     * @image html img/genlist.png
14119     * @image latex img/genlist.eps
14120     *
14121     * This widget aims to have more expansive list than the simple list in
14122     * Elementary that could have more flexible items and allow many more entries
14123     * while still being fast and low on memory usage. At the same time it was
14124     * also made to be able to do tree structures. But the price to pay is more
14125     * complexity when it comes to usage. If all you want is a simple list with
14126     * icons and a single label, use the normal @ref List object.
14127     *
14128     * Genlist has a fairly large API, mostly because it's relatively complex,
14129     * trying to be both expansive, powerful and efficient. First we will begin
14130     * an overview on the theory behind genlist.
14131     *
14132     * @section Genlist_Item_Class Genlist item classes - creating items
14133     *
14134     * In order to have the ability to add and delete items on the fly, genlist
14135     * implements a class (callback) system where the application provides a
14136     * structure with information about that type of item (genlist may contain
14137     * multiple different items with different classes, states and styles).
14138     * Genlist will call the functions in this struct (methods) when an item is
14139     * "realized" (i.e., created dynamically, while the user is scrolling the
14140     * grid). All objects will simply be deleted when no longer needed with
14141     * evas_object_del(). The #Elm_Genlist_Item_Class structure contains the
14142     * following members:
14143     * - @c item_style - This is a constant string and simply defines the name
14144     *   of the item style. It @b must be specified and the default should be @c
14145     *   "default".
14146     * - @c mode_item_style - This is a constant string and simply defines the
14147     *   name of the style that will be used for mode animations. It can be left
14148     *   as @c NULL if you don't plan to use Genlist mode. See
14149     *   elm_genlist_item_mode_set() for more info.
14150     *
14151     * - @c func - A struct with pointers to functions that will be called when
14152     *   an item is going to be actually created. All of them receive a @c data
14153     *   parameter that will point to the same data passed to
14154     *   elm_genlist_item_append() and related item creation functions, and a @c
14155     *   obj parameter that points to the genlist object itself.
14156     *
14157     * The function pointers inside @c func are @c label_get, @c icon_get, @c
14158     * state_get and @c del. The 3 first functions also receive a @c part
14159     * parameter described below. A brief description of these functions follows:
14160     *
14161     * - @c label_get - The @c part parameter is the name string of one of the
14162     *   existing text parts in the Edje group implementing the item's theme.
14163     *   This function @b must return a strdup'()ed string, as the caller will
14164     *   free() it when done. See #GenlistItemLabelGetFunc.
14165     * - @c icon_get - The @c part parameter is the name string of one of the
14166     *   existing (icon) swallow parts in the Edje group implementing the item's
14167     *   theme. It must return @c NULL, when no icon is desired, or a valid
14168     *   object handle, otherwise.  The object will be deleted by the genlist on
14169     *   its deletion or when the item is "unrealized".  See
14170     *   #GenlistItemIconGetFunc.
14171     * - @c func.state_get - The @c part parameter is the name string of one of
14172     *   the state parts in the Edje group implementing the item's theme. Return
14173     *   @c EINA_FALSE for false/off or @c EINA_TRUE for true/on. Genlists will
14174     *   emit a signal to its theming Edje object with @c "elm,state,XXX,active"
14175     *   and @c "elm" as "emission" and "source" arguments, respectively, when
14176     *   the state is true (the default is false), where @c XXX is the name of
14177     *   the (state) part.  See #GenlistItemStateGetFunc.
14178     * - @c func.del - This is intended for use when genlist items are deleted,
14179     *   so any data attached to the item (e.g. its data parameter on creation)
14180     *   can be deleted. See #GenlistItemDelFunc.
14181     *
14182     * available item styles:
14183     * - default
14184     * - default_style - The text part is a textblock
14185     *
14186     * @image html img/widget/genlist/preview-04.png
14187     * @image latex img/widget/genlist/preview-04.eps
14188     *
14189     * - double_label
14190     *
14191     * @image html img/widget/genlist/preview-01.png
14192     * @image latex img/widget/genlist/preview-01.eps
14193     *
14194     * - icon_top_text_bottom
14195     *
14196     * @image html img/widget/genlist/preview-02.png
14197     * @image latex img/widget/genlist/preview-02.eps
14198     *
14199     * - group_index
14200     *
14201     * @image html img/widget/genlist/preview-03.png
14202     * @image latex img/widget/genlist/preview-03.eps
14203     *
14204     * @section Genlist_Items Structure of items
14205     *
14206     * An item in a genlist can have 0 or more text labels (they can be regular
14207     * text or textblock Evas objects - that's up to the style to determine), 0
14208     * or more icons (which are simply objects swallowed into the genlist item's
14209     * theming Edje object) and 0 or more <b>boolean states</b>, which have the
14210     * behavior left to the user to define. The Edje part names for each of
14211     * these properties will be looked up, in the theme file for the genlist,
14212     * under the Edje (string) data items named @c "labels", @c "icons" and @c
14213     * "states", respectively. For each of those properties, if more than one
14214     * part is provided, they must have names listed separated by spaces in the
14215     * data fields. For the default genlist item theme, we have @b one label
14216     * part (@c "elm.text"), @b two icon parts (@c "elm.swalllow.icon" and @c
14217     * "elm.swallow.end") and @b no state parts.
14218     *
14219     * A genlist item may be at one of several styles. Elementary provides one
14220     * by default - "default", but this can be extended by system or application
14221     * custom themes/overlays/extensions (see @ref Theme "themes" for more
14222     * details).
14223     *
14224     * @section Genlist_Manipulation Editing and Navigating
14225     *
14226     * Items can be added by several calls. All of them return a @ref
14227     * Elm_Genlist_Item handle that is an internal member inside the genlist.
14228     * They all take a data parameter that is meant to be used for a handle to
14229     * the applications internal data (eg the struct with the original item
14230     * data). The parent parameter is the parent genlist item this belongs to if
14231     * it is a tree or an indexed group, and NULL if there is no parent. The
14232     * flags can be a bitmask of #ELM_GENLIST_ITEM_NONE,
14233     * #ELM_GENLIST_ITEM_SUBITEMS and #ELM_GENLIST_ITEM_GROUP. If
14234     * #ELM_GENLIST_ITEM_SUBITEMS is set then this item is displayed as an item
14235     * that is able to expand and have child items.  If ELM_GENLIST_ITEM_GROUP
14236     * is set then this item is group index item that is displayed at the top
14237     * until the next group comes. The func parameter is a convenience callback
14238     * that is called when the item is selected and the data parameter will be
14239     * the func_data parameter, obj be the genlist object and event_info will be
14240     * the genlist item.
14241     *
14242     * elm_genlist_item_append() adds an item to the end of the list, or if
14243     * there is a parent, to the end of all the child items of the parent.
14244     * elm_genlist_item_prepend() is the same but adds to the beginning of
14245     * the list or children list. elm_genlist_item_insert_before() inserts at
14246     * item before another item and elm_genlist_item_insert_after() inserts after
14247     * the indicated item.
14248     *
14249     * The application can clear the list with elm_genlist_clear() which deletes
14250     * all the items in the list and elm_genlist_item_del() will delete a specific
14251     * item. elm_genlist_item_subitems_clear() will clear all items that are
14252     * children of the indicated parent item.
14253     *
14254     * To help inspect list items you can jump to the item at the top of the list
14255     * with elm_genlist_first_item_get() which will return the item pointer, and
14256     * similarly elm_genlist_last_item_get() gets the item at the end of the list.
14257     * elm_genlist_item_next_get() and elm_genlist_item_prev_get() get the next
14258     * and previous items respectively relative to the indicated item. Using
14259     * these calls you can walk the entire item list/tree. Note that as a tree
14260     * the items are flattened in the list, so elm_genlist_item_parent_get() will
14261     * let you know which item is the parent (and thus know how to skip them if
14262     * wanted).
14263     *
14264     * @section Genlist_Muti_Selection Multi-selection
14265     *
14266     * If the application wants multiple items to be able to be selected,
14267     * elm_genlist_multi_select_set() can enable this. If the list is
14268     * single-selection only (the default), then elm_genlist_selected_item_get()
14269     * will return the selected item, if any, or NULL I none is selected. If the
14270     * list is multi-select then elm_genlist_selected_items_get() will return a
14271     * list (that is only valid as long as no items are modified (added, deleted,
14272     * selected or unselected)).
14273     *
14274     * @section Genlist_Usage_Hints Usage hints
14275     *
14276     * There are also convenience functions. elm_genlist_item_genlist_get() will
14277     * return the genlist object the item belongs to. elm_genlist_item_show()
14278     * will make the scroller scroll to show that specific item so its visible.
14279     * elm_genlist_item_data_get() returns the data pointer set by the item
14280     * creation functions.
14281     *
14282     * If an item changes (state of boolean changes, label or icons change),
14283     * then use elm_genlist_item_update() to have genlist update the item with
14284     * the new state. Genlist will re-realize the item thus call the functions
14285     * in the _Elm_Genlist_Item_Class for that item.
14286     *
14287     * To programmatically (un)select an item use elm_genlist_item_selected_set().
14288     * To get its selected state use elm_genlist_item_selected_get(). Similarly
14289     * to expand/contract an item and get its expanded state, use
14290     * elm_genlist_item_expanded_set() and elm_genlist_item_expanded_get(). And
14291     * again to make an item disabled (unable to be selected and appear
14292     * differently) use elm_genlist_item_disabled_set() to set this and
14293     * elm_genlist_item_disabled_get() to get the disabled state.
14294     *
14295     * In general to indicate how the genlist should expand items horizontally to
14296     * fill the list area, use elm_genlist_horizontal_set(). Valid modes are
14297     * ELM_LIST_LIMIT and ELM_LIST_SCROLL . The default is ELM_LIST_SCROLL. This
14298     * mode means that if items are too wide to fit, the scroller will scroll
14299     * horizontally. Otherwise items are expanded to fill the width of the
14300     * viewport of the scroller. If it is ELM_LIST_LIMIT, items will be expanded
14301     * to the viewport width and limited to that size. This can be combined with
14302     * a different style that uses edjes' ellipsis feature (cutting text off like
14303     * this: "tex...").
14304     *
14305     * Items will only call their selection func and callback when first becoming
14306     * selected. Any further clicks will do nothing, unless you enable always
14307     * select with elm_genlist_always_select_mode_set(). This means even if
14308     * selected, every click will make the selected callbacks be called.
14309     * elm_genlist_no_select_mode_set() will turn off the ability to select
14310     * items entirely and they will neither appear selected nor call selected
14311     * callback functions.
14312     *
14313     * Remember that you can create new styles and add your own theme augmentation
14314     * per application with elm_theme_extension_add(). If you absolutely must
14315     * have a specific style that overrides any theme the user or system sets up
14316     * you can use elm_theme_overlay_add() to add such a file.
14317     *
14318     * @section Genlist_Implementation Implementation
14319     *
14320     * Evas tracks every object you create. Every time it processes an event
14321     * (mouse move, down, up etc.) it needs to walk through objects and find out
14322     * what event that affects. Even worse every time it renders display updates,
14323     * in order to just calculate what to re-draw, it needs to walk through many
14324     * many many objects. Thus, the more objects you keep active, the more
14325     * overhead Evas has in just doing its work. It is advisable to keep your
14326     * active objects to the minimum working set you need. Also remember that
14327     * object creation and deletion carries an overhead, so there is a
14328     * middle-ground, which is not easily determined. But don't keep massive lists
14329     * of objects you can't see or use. Genlist does this with list objects. It
14330     * creates and destroys them dynamically as you scroll around. It groups them
14331     * into blocks so it can determine the visibility etc. of a whole block at
14332     * once as opposed to having to walk the whole list. This 2-level list allows
14333     * for very large numbers of items to be in the list (tests have used up to
14334     * 2,000,000 items). Also genlist employs a queue for adding items. As items
14335     * may be different sizes, every item added needs to be calculated as to its
14336     * size and thus this presents a lot of overhead on populating the list, this
14337     * genlist employs a queue. Any item added is queued and spooled off over
14338     * time, actually appearing some time later, so if your list has many members
14339     * you may find it takes a while for them to all appear, with your process
14340     * consuming a lot of CPU while it is busy spooling.
14341     *
14342     * Genlist also implements a tree structure, but it does so with callbacks to
14343     * the application, with the application filling in tree structures when
14344     * requested (allowing for efficient building of a very deep tree that could
14345     * even be used for file-management). See the above smart signal callbacks for
14346     * details.
14347     *
14348     * @section Genlist_Smart_Events Genlist smart events
14349     *
14350     * Signals that you can add callbacks for are:
14351     * - @c "activated" - The user has double-clicked or pressed
14352     *   (enter|return|spacebar) on an item. The @c event_info parameter is the
14353     *   item that was activated.
14354     * - @c "clicked,double" - The user has double-clicked an item.  The @c
14355     *   event_info parameter is the item that was double-clicked.
14356     * - @c "selected" - This is called when a user has made an item selected.
14357     *   The event_info parameter is the genlist item that was selected.
14358     * - @c "unselected" - This is called when a user has made an item
14359     *   unselected. The event_info parameter is the genlist item that was
14360     *   unselected.
14361     * - @c "expanded" - This is called when elm_genlist_item_expanded_set() is
14362     *   called and the item is now meant to be expanded. The event_info
14363     *   parameter is the genlist item that was indicated to expand.  It is the
14364     *   job of this callback to then fill in the child items.
14365     * - @c "contracted" - This is called when elm_genlist_item_expanded_set() is
14366     *   called and the item is now meant to be contracted. The event_info
14367     *   parameter is the genlist item that was indicated to contract. It is the
14368     *   job of this callback to then delete the child items.
14369     * - @c "expand,request" - This is called when a user has indicated they want
14370     *   to expand a tree branch item. The callback should decide if the item can
14371     *   expand (has any children) and then call elm_genlist_item_expanded_set()
14372     *   appropriately to set the state. The event_info parameter is the genlist
14373     *   item that was indicated to expand.
14374     * - @c "contract,request" - This is called when a user has indicated they
14375     *   want to contract a tree branch item. The callback should decide if the
14376     *   item can contract (has any children) and then call
14377     *   elm_genlist_item_expanded_set() appropriately to set the state. The
14378     *   event_info parameter is the genlist item that was indicated to contract.
14379     * - @c "realized" - This is called when the item in the list is created as a
14380     *   real evas object. event_info parameter is the genlist item that was
14381     *   created. The object may be deleted at any time, so it is up to the
14382     *   caller to not use the object pointer from elm_genlist_item_object_get()
14383     *   in a way where it may point to freed objects.
14384     * - @c "unrealized" - This is called just before an item is unrealized.
14385     *   After this call icon objects provided will be deleted and the item
14386     *   object itself delete or be put into a floating cache.
14387     * - @c "drag,start,up" - This is called when the item in the list has been
14388     *   dragged (not scrolled) up.
14389     * - @c "drag,start,down" - This is called when the item in the list has been
14390     *   dragged (not scrolled) down.
14391     * - @c "drag,start,left" - This is called when the item in the list has been
14392     *   dragged (not scrolled) left.
14393     * - @c "drag,start,right" - This is called when the item in the list has
14394     *   been dragged (not scrolled) right.
14395     * - @c "drag,stop" - This is called when the item in the list has stopped
14396     *   being dragged.
14397     * - @c "drag" - This is called when the item in the list is being dragged.
14398     * - @c "longpressed" - This is called when the item is pressed for a certain
14399     *   amount of time. By default it's 1 second.
14400     * - @c "scroll,edge,top" - This is called when the genlist is scrolled until
14401     *   the top edge.
14402     * - @c "scroll,edge,bottom" - This is called when the genlist is scrolled
14403     *   until the bottom edge.
14404     * - @c "scroll,edge,left" - This is called when the genlist is scrolled
14405     *   until the left edge.
14406     * - @c "scroll,edge,right" - This is called when the genlist is scrolled
14407     *   until the right edge.
14408     * - @c "multi,swipe,left" - This is called when the genlist is multi-touch
14409     *   swiped left.
14410     * - @c "multi,swipe,right" - This is called when the genlist is multi-touch
14411     *   swiped right.
14412     * - @c "multi,swipe,up" - This is called when the genlist is multi-touch
14413     *   swiped up.
14414     * - @c "multi,swipe,down" - This is called when the genlist is multi-touch
14415     *   swiped down.
14416     * - @c "multi,pinch,out" - This is called when the genlist is multi-touch
14417     *   pinched out.  "- @c multi,pinch,in" - This is called when the genlist is
14418     *   multi-touch pinched in.
14419     * - @c "swipe" - This is called when the genlist is swiped.
14420     *
14421     * @section Genlist_Examples Examples
14422     *
14423     * Here is a list of examples that use the genlist, trying to show some of
14424     * its capabilities:
14425     * - @ref genlist_example_01
14426     * - @ref genlist_example_02
14427     * - @ref genlist_example_03
14428     * - @ref genlist_example_04
14429     * - @ref genlist_example_05
14430     */
14431
14432    /**
14433     * @addtogroup Genlist
14434     * @{
14435     */
14436
14437    /**
14438     * @enum _Elm_Genlist_Item_Flags
14439     * @typedef Elm_Genlist_Item_Flags
14440     *
14441     * Defines if the item is of any special type (has subitems or it's the
14442     * index of a group), or is just a simple item.
14443     *
14444     * @ingroup Genlist
14445     */
14446    typedef enum _Elm_Genlist_Item_Flags
14447      {
14448         ELM_GENLIST_ITEM_NONE = 0, /**< simple item */
14449         ELM_GENLIST_ITEM_SUBITEMS = (1 << 0), /**< may expand and have child items */
14450         ELM_GENLIST_ITEM_GROUP = (1 << 1) /**< index of a group of items */
14451      } Elm_Genlist_Item_Flags;
14452    typedef struct _Elm_Genlist_Item_Class Elm_Genlist_Item_Class;  /**< Genlist item class definition structs */
14453    typedef struct _Elm_Genlist_Item       Elm_Genlist_Item; /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
14454    typedef struct _Elm_Genlist_Item_Class_Func Elm_Genlist_Item_Class_Func; /**< Class functions for genlist item class */
14455    typedef char        *(*GenlistItemLabelGetFunc) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for genlist item classes. */
14456    typedef Evas_Object *(*GenlistItemIconGetFunc)  (void *data, Evas_Object *obj, const char *part); /**< Icon fetching class function for genlist item classes. */
14457    typedef Eina_Bool    (*GenlistItemStateGetFunc) (void *data, Evas_Object *obj, const char *part); /**< State fetching class function for genlist item classes. */
14458    typedef void         (*GenlistItemDelFunc)      (void *data, Evas_Object *obj); /**< Deletion class function for genlist item classes. */
14459    typedef void         (*GenlistItemMovedFunc)    (Evas_Object *obj, Elm_Genlist_Item *item, Elm_Genlist_Item *rel_item, Eina_Bool move_after);
14460
14461    /**
14462     * @struct _Elm_Genlist_Item_Class
14463     *
14464     * Genlist item class definition structs.
14465     *
14466     * This struct contains the style and fetching functions that will define the
14467     * contents of each item.
14468     *
14469     * @see @ref Genlist_Item_Class
14470     */
14471    struct _Elm_Genlist_Item_Class
14472      {
14473         const char                *item_style; /**< style of this class. */
14474         struct
14475           {
14476              GenlistItemLabelGetFunc  label_get; /**< Label fetching class function for genlist item classes.*/
14477              GenlistItemIconGetFunc   icon_get; /**< Icon fetching class function for genlist item classes. */
14478              GenlistItemStateGetFunc  state_get; /**< State fetching class function for genlist item classes. */
14479              GenlistItemDelFunc       del; /**< Deletion class function for genlist item classes. */
14480              GenlistItemMovedFunc     moved; // TODO: do not use this. change this to smart callback.
14481           } func;
14482         const char                *mode_item_style;
14483      };
14484
14485    /**
14486     * Add a new genlist widget to the given parent Elementary
14487     * (container) object
14488     *
14489     * @param parent The parent object
14490     * @return a new genlist widget handle or @c NULL, on errors
14491     *
14492     * This function inserts a new genlist widget on the canvas.
14493     *
14494     * @see elm_genlist_item_append()
14495     * @see elm_genlist_item_del()
14496     * @see elm_genlist_clear()
14497     *
14498     * @ingroup Genlist
14499     */
14500    EAPI Evas_Object      *elm_genlist_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14501    /**
14502     * Remove all items from a given genlist widget.
14503     *
14504     * @param obj The genlist object
14505     *
14506     * This removes (and deletes) all items in @p obj, leaving it empty.
14507     *
14508     * @see elm_genlist_item_del(), to remove just one item.
14509     *
14510     * @ingroup Genlist
14511     */
14512    EAPI void              elm_genlist_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
14513    /**
14514     * Enable or disable multi-selection in the genlist
14515     *
14516     * @param obj The genlist object
14517     * @param multi Multi-select enable/disable. Default is disabled.
14518     *
14519     * This enables (@c EINA_TRUE) or disables (@c EINA_FALSE) multi-selection in
14520     * the list. This allows more than 1 item to be selected. To retrieve the list
14521     * of selected items, use elm_genlist_selected_items_get().
14522     *
14523     * @see elm_genlist_selected_items_get()
14524     * @see elm_genlist_multi_select_get()
14525     *
14526     * @ingroup Genlist
14527     */
14528    EAPI void              elm_genlist_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
14529    /**
14530     * Gets if multi-selection in genlist is enabled or disabled.
14531     *
14532     * @param obj The genlist object
14533     * @return Multi-select enabled/disabled
14534     * (@c EINA_TRUE = enabled/@c EINA_FALSE = disabled). Default is @c EINA_FALSE.
14535     *
14536     * @see elm_genlist_multi_select_set()
14537     *
14538     * @ingroup Genlist
14539     */
14540    EAPI Eina_Bool         elm_genlist_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14541    /**
14542     * This sets the horizontal stretching mode.
14543     *
14544     * @param obj The genlist object
14545     * @param mode The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).
14546     *
14547     * This sets the mode used for sizing items horizontally. Valid modes
14548     * are #ELM_LIST_LIMIT and #ELM_LIST_SCROLL. The default is
14549     * ELM_LIST_SCROLL. This mode means that if items are too wide to fit,
14550     * the scroller will scroll horizontally. Otherwise items are expanded
14551     * to fill the width of the viewport of the scroller. If it is
14552     * ELM_LIST_LIMIT, items will be expanded to the viewport width and
14553     * limited to that size.
14554     *
14555     * @see elm_genlist_horizontal_get()
14556     *
14557     * @ingroup Genlist
14558     */
14559    EAPI void              elm_genlist_horizontal_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
14560    EINA_DEPRECATED EAPI void              elm_genlist_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
14561    /**
14562     * Gets the horizontal stretching mode.
14563     *
14564     * @param obj The genlist object
14565     * @return The mode to use
14566     * (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
14567     *
14568     * @see elm_genlist_horizontal_set()
14569     *
14570     * @ingroup Genlist
14571     */
14572    EAPI Elm_List_Mode     elm_genlist_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14573    EINA_DEPRECATED EAPI Elm_List_Mode     elm_genlist_horizontal_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14574    /**
14575     * Set the always select mode.
14576     *
14577     * @param obj The genlist object
14578     * @param always_select The always select mode (@c EINA_TRUE = on, @c
14579     * EINA_FALSE = off). Default is @c EINA_FALSE.
14580     *
14581     * Items will only call their selection func and callback when first
14582     * becoming selected. Any further clicks will do nothing, unless you
14583     * enable always select with elm_genlist_always_select_mode_set().
14584     * This means that, even if selected, every click will make the selected
14585     * callbacks be called.
14586     *
14587     * @see elm_genlist_always_select_mode_get()
14588     *
14589     * @ingroup Genlist
14590     */
14591    EAPI void              elm_genlist_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
14592    /**
14593     * Get the always select mode.
14594     *
14595     * @param obj The genlist object
14596     * @return The always select mode
14597     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
14598     *
14599     * @see elm_genlist_always_select_mode_set()
14600     *
14601     * @ingroup Genlist
14602     */
14603    EAPI Eina_Bool         elm_genlist_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14604    /**
14605     * Enable/disable the no select mode.
14606     *
14607     * @param obj The genlist object
14608     * @param no_select The no select mode
14609     * (EINA_TRUE = on, EINA_FALSE = off)
14610     *
14611     * This will turn off the ability to select items entirely and they
14612     * will neither appear selected nor call selected callback functions.
14613     *
14614     * @see elm_genlist_no_select_mode_get()
14615     *
14616     * @ingroup Genlist
14617     */
14618    EAPI void              elm_genlist_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
14619    /**
14620     * Gets whether the no select mode is enabled.
14621     *
14622     * @param obj The genlist object
14623     * @return The no select mode
14624     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
14625     *
14626     * @see elm_genlist_no_select_mode_set()
14627     *
14628     * @ingroup Genlist
14629     */
14630    EAPI Eina_Bool         elm_genlist_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14631    /**
14632     * Enable/disable compress mode.
14633     *
14634     * @param obj The genlist object
14635     * @param compress The compress mode
14636     * (@c EINA_TRUE = on, @c EINA_FALSE = off). Default is @c EINA_FALSE.
14637     *
14638     * This will enable the compress mode where items are "compressed"
14639     * horizontally to fit the genlist scrollable viewport width. This is
14640     * special for genlist.  Do not rely on
14641     * elm_genlist_horizontal_set() being set to @c ELM_LIST_COMPRESS to
14642     * work as genlist needs to handle it specially.
14643     *
14644     * @see elm_genlist_compress_mode_get()
14645     *
14646     * @ingroup Genlist
14647     */
14648    EAPI void              elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress) EINA_ARG_NONNULL(1);
14649    /**
14650     * Get whether the compress mode is enabled.
14651     *
14652     * @param obj The genlist object
14653     * @return The compress mode
14654     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
14655     *
14656     * @see elm_genlist_compress_mode_set()
14657     *
14658     * @ingroup Genlist
14659     */
14660    EAPI Eina_Bool         elm_genlist_compress_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14661    /**
14662     * Enable/disable height-for-width mode.
14663     *
14664     * @param obj The genlist object
14665     * @param setting The height-for-width mode (@c EINA_TRUE = on,
14666     * @c EINA_FALSE = off). Default is @c EINA_FALSE.
14667     *
14668     * With height-for-width mode the item width will be fixed (restricted
14669     * to a minimum of) to the list width when calculating its size in
14670     * order to allow the height to be calculated based on it. This allows,
14671     * for instance, text block to wrap lines if the Edje part is
14672     * configured with "text.min: 0 1".
14673     *
14674     * @note This mode will make list resize slower as it will have to
14675     *       recalculate every item height again whenever the list width
14676     *       changes!
14677     *
14678     * @note When height-for-width mode is enabled, it also enables
14679     *       compress mode (see elm_genlist_compress_mode_set()) and
14680     *       disables homogeneous (see elm_genlist_homogeneous_set()).
14681     *
14682     * @ingroup Genlist
14683     */
14684    EAPI void              elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width) EINA_ARG_NONNULL(1);
14685    /**
14686     * Get whether the height-for-width mode is enabled.
14687     *
14688     * @param obj The genlist object
14689     * @return The height-for-width mode (@c EINA_TRUE = on, @c EINA_FALSE =
14690     * off)
14691     *
14692     * @ingroup Genlist
14693     */
14694    EAPI Eina_Bool         elm_genlist_height_for_width_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14695    /**
14696     * Enable/disable horizontal and vertical bouncing effect.
14697     *
14698     * @param obj The genlist object
14699     * @param h_bounce Allow bounce horizontally (@c EINA_TRUE = on, @c
14700     * EINA_FALSE = off). Default is @c EINA_FALSE.
14701     * @param v_bounce Allow bounce vertically (@c EINA_TRUE = on, @c
14702     * EINA_FALSE = off). Default is @c EINA_TRUE.
14703     *
14704     * This will enable or disable the scroller bouncing effect for the
14705     * genlist. See elm_scroller_bounce_set() for details.
14706     *
14707     * @see elm_scroller_bounce_set()
14708     * @see elm_genlist_bounce_get()
14709     *
14710     * @ingroup Genlist
14711     */
14712    EAPI void              elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
14713    /**
14714     * Get whether the horizontal and vertical bouncing effect is enabled.
14715     *
14716     * @param obj The genlist object
14717     * @param h_bounce Pointer to a bool to receive if the bounce horizontally
14718     * option is set.
14719     * @param v_bounce Pointer to a bool to receive if the bounce vertically
14720     * option is set.
14721     *
14722     * @see elm_genlist_bounce_set()
14723     *
14724     * @ingroup Genlist
14725     */
14726    EAPI void              elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
14727    /**
14728     * Enable/disable homogenous mode.
14729     *
14730     * @param obj The genlist object
14731     * @param homogeneous Assume the items within the genlist are of the
14732     * same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is @c
14733     * EINA_FALSE.
14734     *
14735     * This will enable the homogeneous mode where items are of the same
14736     * height and width so that genlist may do the lazy-loading at its
14737     * maximum (which increases the performance for scrolling the list). This
14738     * implies 'compressed' mode.
14739     *
14740     * @see elm_genlist_compress_mode_set()
14741     * @see elm_genlist_homogeneous_get()
14742     *
14743     * @ingroup Genlist
14744     */
14745    EAPI void              elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
14746    /**
14747     * Get whether the homogenous mode is enabled.
14748     *
14749     * @param obj The genlist object
14750     * @return Assume the items within the genlist are of the same height
14751     * and width (EINA_TRUE = on, EINA_FALSE = off)
14752     *
14753     * @see elm_genlist_homogeneous_set()
14754     *
14755     * @ingroup Genlist
14756     */
14757    EAPI Eina_Bool         elm_genlist_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14758    /**
14759     * Set the maximum number of items within an item block
14760     *
14761     * @param obj The genlist object
14762     * @param n   Maximum number of items within an item block. Default is 32.
14763     *
14764     * This will configure the block count to tune to the target with
14765     * particular performance matrix.
14766     *
14767     * A block of objects will be used to reduce the number of operations due to
14768     * many objects in the screen. It can determine the visibility, or if the
14769     * object has changed, it theme needs to be updated, etc. doing this kind of
14770     * calculation to the entire block, instead of per object.
14771     *
14772     * The default value for the block count is enough for most lists, so unless
14773     * you know you will have a lot of objects visible in the screen at the same
14774     * time, don't try to change this.
14775     *
14776     * @see elm_genlist_block_count_get()
14777     * @see @ref Genlist_Implementation
14778     *
14779     * @ingroup Genlist
14780     */
14781    EAPI void              elm_genlist_block_count_set(Evas_Object *obj, int n) EINA_ARG_NONNULL(1);
14782    /**
14783     * Get the maximum number of items within an item block
14784     *
14785     * @param obj The genlist object
14786     * @return Maximum number of items within an item block
14787     *
14788     * @see elm_genlist_block_count_set()
14789     *
14790     * @ingroup Genlist
14791     */
14792    EAPI int               elm_genlist_block_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14793    /**
14794     * Set the timeout in seconds for the longpress event.
14795     *
14796     * @param obj The genlist object
14797     * @param timeout timeout in seconds. Default is 1.
14798     *
14799     * This option will change how long it takes to send an event "longpressed"
14800     * after the mouse down signal is sent to the list. If this event occurs, no
14801     * "clicked" event will be sent.
14802     *
14803     * @see elm_genlist_longpress_timeout_set()
14804     *
14805     * @ingroup Genlist
14806     */
14807    EAPI void              elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
14808    /**
14809     * Get the timeout in seconds for the longpress event.
14810     *
14811     * @param obj The genlist object
14812     * @return timeout in seconds
14813     *
14814     * @see elm_genlist_longpress_timeout_get()
14815     *
14816     * @ingroup Genlist
14817     */
14818    EAPI double            elm_genlist_longpress_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14819    /**
14820     * Append a new item in a given genlist widget.
14821     *
14822     * @param obj The genlist object
14823     * @param itc The item class for the item
14824     * @param data The item data
14825     * @param parent The parent item, or NULL if none
14826     * @param flags Item flags
14827     * @param func Convenience function called when the item is selected
14828     * @param func_data Data passed to @p func above.
14829     * @return A handle to the item added or @c NULL if not possible
14830     *
14831     * This adds the given item to the end of the list or the end of
14832     * the children list if the @p parent is given.
14833     *
14834     * @see elm_genlist_item_prepend()
14835     * @see elm_genlist_item_insert_before()
14836     * @see elm_genlist_item_insert_after()
14837     * @see elm_genlist_item_del()
14838     *
14839     * @ingroup Genlist
14840     */
14841    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);
14842    /**
14843     * Prepend a new item in a given genlist widget.
14844     *
14845     * @param obj The genlist object
14846     * @param itc The item class for the item
14847     * @param data The item data
14848     * @param parent The parent item, or NULL if none
14849     * @param flags Item flags
14850     * @param func Convenience function called when the item is selected
14851     * @param func_data Data passed to @p func above.
14852     * @return A handle to the item added or NULL if not possible
14853     *
14854     * This adds an item to the beginning of the list or beginning of the
14855     * children of the parent if given.
14856     *
14857     * @see elm_genlist_item_append()
14858     * @see elm_genlist_item_insert_before()
14859     * @see elm_genlist_item_insert_after()
14860     * @see elm_genlist_item_del()
14861     *
14862     * @ingroup Genlist
14863     */
14864    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);
14865    /**
14866     * Insert an item before another in a genlist widget
14867     *
14868     * @param obj The genlist object
14869     * @param itc The item class for the item
14870     * @param data The item data
14871     * @param before The item to place this new one before.
14872     * @param flags Item flags
14873     * @param func Convenience function called when the item is selected
14874     * @param func_data Data passed to @p func above.
14875     * @return A handle to the item added or @c NULL if not possible
14876     *
14877     * This inserts an item before another in the list. It will be in the
14878     * same tree level or group as the item it is inserted before.
14879     *
14880     * @see elm_genlist_item_append()
14881     * @see elm_genlist_item_prepend()
14882     * @see elm_genlist_item_insert_after()
14883     * @see elm_genlist_item_del()
14884     *
14885     * @ingroup Genlist
14886     */
14887    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);
14888    /**
14889     * Insert an item after another in a genlist widget
14890     *
14891     * @param obj The genlist object
14892     * @param itc The item class for the item
14893     * @param data The item data
14894     * @param after The item to place this new one after.
14895     * @param flags Item flags
14896     * @param func Convenience function called when the item is selected
14897     * @param func_data Data passed to @p func above.
14898     * @return A handle to the item added or @c NULL if not possible
14899     *
14900     * This inserts an item after another in the list. It will be in the
14901     * same tree level or group as the item it is inserted after.
14902     *
14903     * @see elm_genlist_item_append()
14904     * @see elm_genlist_item_prepend()
14905     * @see elm_genlist_item_insert_before()
14906     * @see elm_genlist_item_del()
14907     *
14908     * @ingroup Genlist
14909     */
14910    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);
14911    /**
14912     * Insert a new item into the sorted genlist object
14913     *
14914     * @param obj The genlist object
14915     * @param itc The item class for the item
14916     * @param data The item data
14917     * @param parent The parent item, or NULL if none
14918     * @param flags Item flags
14919     * @param comp The function called for the sort
14920     * @param func Convenience function called when item selected
14921     * @param func_data Data passed to @p func above.
14922     * @return A handle to the item added or NULL if not possible
14923     *
14924     * @ingroup Genlist
14925     */
14926    EAPI Elm_Genlist_Item *elm_genlist_item_sorted_insert(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Genlist_Item *parent, Elm_Genlist_Item_Flags flags, Eina_Compare_Cb comp, Evas_Smart_Cb func,const void *func_data);
14927    EAPI Elm_Genlist_Item *elm_genlist_item_direct_sorted_insert(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Genlist_Item *parent, Elm_Genlist_Item_Flags flags, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data);
14928    /* operations to retrieve existing items */
14929    /**
14930     * Get the selectd item in the genlist.
14931     *
14932     * @param obj The genlist object
14933     * @return The selected item, or NULL if none is selected.
14934     *
14935     * This gets the selected item in the list (if multi-selection is enabled, only
14936     * the item that was first selected in the list is returned - which is not very
14937     * useful, so see elm_genlist_selected_items_get() for when multi-selection is
14938     * used).
14939     *
14940     * If no item is selected, NULL is returned.
14941     *
14942     * @see elm_genlist_selected_items_get()
14943     *
14944     * @ingroup Genlist
14945     */
14946    EAPI Elm_Genlist_Item *elm_genlist_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14947    /**
14948     * Get a list of selected items in the genlist.
14949     *
14950     * @param obj The genlist object
14951     * @return The list of selected items, or NULL if none are selected.
14952     *
14953     * It returns a list of the selected items. This list pointer is only valid so
14954     * long as the selection doesn't change (no items are selected or unselected, or
14955     * unselected implicitly by deletion). The list contains Elm_Genlist_Item
14956     * pointers. The order of the items in this list is the order which they were
14957     * selected, i.e. the first item in this list is the first item that was
14958     * selected, and so on.
14959     *
14960     * @note If not in multi-select mode, consider using function
14961     * elm_genlist_selected_item_get() instead.
14962     *
14963     * @see elm_genlist_multi_select_set()
14964     * @see elm_genlist_selected_item_get()
14965     *
14966     * @ingroup Genlist
14967     */
14968    EAPI const Eina_List  *elm_genlist_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14969    /**
14970     * Get a list of realized items in genlist
14971     *
14972     * @param obj The genlist object
14973     * @return The list of realized items, nor NULL if none are realized.
14974     *
14975     * This returns a list of the realized items in the genlist. The list
14976     * contains Elm_Genlist_Item pointers. The list must be freed by the
14977     * caller when done with eina_list_free(). The item pointers in the
14978     * list are only valid so long as those items are not deleted or the
14979     * genlist is not deleted.
14980     *
14981     * @see elm_genlist_realized_items_update()
14982     *
14983     * @ingroup Genlist
14984     */
14985    EAPI Eina_List        *elm_genlist_realized_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14986    /**
14987     * Get the item that is at the x, y canvas coords.
14988     *
14989     * @param obj The gelinst object.
14990     * @param x The input x coordinate
14991     * @param y The input y coordinate
14992     * @param posret The position relative to the item returned here
14993     * @return The item at the coordinates or NULL if none
14994     *
14995     * This returns the item at the given coordinates (which are canvas
14996     * relative, not object-relative). If an item is at that coordinate,
14997     * that item handle is returned, and if @p posret is not NULL, the
14998     * integer pointed to is set to a value of -1, 0 or 1, depending if
14999     * the coordinate is on the upper portion of that item (-1), on the
15000     * middle section (0) or on the lower part (1). If NULL is returned as
15001     * an item (no item found there), then posret may indicate -1 or 1
15002     * based if the coordinate is above or below all items respectively in
15003     * the genlist.
15004     *
15005     * @ingroup Genlist
15006     */
15007    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);
15008    /**
15009     * Get the first item in the genlist
15010     *
15011     * This returns the first item in the list.
15012     *
15013     * @param obj The genlist object
15014     * @return The first item, or NULL if none
15015     *
15016     * @ingroup Genlist
15017     */
15018    EAPI Elm_Genlist_Item *elm_genlist_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15019    /**
15020     * Get the last item in the genlist
15021     *
15022     * This returns the last item in the list.
15023     *
15024     * @return The last item, or NULL if none
15025     *
15026     * @ingroup Genlist
15027     */
15028    EAPI Elm_Genlist_Item *elm_genlist_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15029    /**
15030     * Set the scrollbar policy
15031     *
15032     * @param obj The genlist object
15033     * @param policy_h Horizontal scrollbar policy.
15034     * @param policy_v Vertical scrollbar policy.
15035     *
15036     * This sets the scrollbar visibility policy for the given genlist
15037     * scroller. #ELM_SMART_SCROLLER_POLICY_AUTO means the scrollbar is
15038     * made visible if it is needed, and otherwise kept hidden.
15039     * #ELM_SMART_SCROLLER_POLICY_ON turns it on all the time, and
15040     * #ELM_SMART_SCROLLER_POLICY_OFF always keeps it off. This applies
15041     * respectively for the horizontal and vertical scrollbars. Default is
15042     * #ELM_SMART_SCROLLER_POLICY_AUTO
15043     *
15044     * @see elm_genlist_scroller_policy_get()
15045     *
15046     * @ingroup Genlist
15047     */
15048    EAPI void              elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
15049    /**
15050     * Get the scrollbar policy
15051     *
15052     * @param obj The genlist object
15053     * @param policy_h Pointer to store the horizontal scrollbar policy.
15054     * @param policy_v Pointer to store the vertical scrollbar policy.
15055     *
15056     * @see elm_genlist_scroller_policy_set()
15057     *
15058     * @ingroup Genlist
15059     */
15060    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);
15061    /**
15062     * Get the @b next item in a genlist widget's internal list of items,
15063     * given a handle to one of those items.
15064     *
15065     * @param item The genlist item to fetch next from
15066     * @return The item after @p item, or @c NULL if there's none (and
15067     * on errors)
15068     *
15069     * This returns the item placed after the @p item, on the container
15070     * genlist.
15071     *
15072     * @see elm_genlist_item_prev_get()
15073     *
15074     * @ingroup Genlist
15075     */
15076    EAPI Elm_Genlist_Item  *elm_genlist_item_next_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
15077    /**
15078     * Get the @b previous item in a genlist widget's internal list of items,
15079     * given a handle to one of those items.
15080     *
15081     * @param item The genlist item to fetch previous from
15082     * @return The item before @p item, or @c NULL if there's none (and
15083     * on errors)
15084     *
15085     * This returns the item placed before the @p item, on the container
15086     * genlist.
15087     *
15088     * @see elm_genlist_item_next_get()
15089     *
15090     * @ingroup Genlist
15091     */
15092    EAPI Elm_Genlist_Item  *elm_genlist_item_prev_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
15093    /**
15094     * Get the genlist object's handle which contains a given genlist
15095     * item
15096     *
15097     * @param item The item to fetch the container from
15098     * @return The genlist (parent) object
15099     *
15100     * This returns the genlist object itself that an item belongs to.
15101     *
15102     * @ingroup Genlist
15103     */
15104    EAPI Evas_Object       *elm_genlist_item_genlist_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
15105    /**
15106     * Get the parent item of the given item
15107     *
15108     * @param it The item
15109     * @return The parent of the item or @c NULL if it has no parent.
15110     *
15111     * This returns the item that was specified as parent of the item @p it on
15112     * elm_genlist_item_append() and insertion related functions.
15113     *
15114     * @ingroup Genlist
15115     */
15116    EAPI Elm_Genlist_Item  *elm_genlist_item_parent_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
15117    /**
15118     * Remove all sub-items (children) of the given item
15119     *
15120     * @param it The item
15121     *
15122     * This removes all items that are children (and their descendants) of the
15123     * given item @p it.
15124     *
15125     * @see elm_genlist_clear()
15126     * @see elm_genlist_item_del()
15127     *
15128     * @ingroup Genlist
15129     */
15130    EAPI void               elm_genlist_item_subitems_clear(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
15131    /**
15132     * Set whether a given genlist item is selected or not
15133     *
15134     * @param it The item
15135     * @param selected Use @c EINA_TRUE, to make it selected, @c
15136     * EINA_FALSE to make it unselected
15137     *
15138     * This sets the selected state of an item. If multi selection is
15139     * not enabled on the containing genlist and @p selected is @c
15140     * EINA_TRUE, any other previously selected items will get
15141     * unselected in favor of this new one.
15142     *
15143     * @see elm_genlist_item_selected_get()
15144     *
15145     * @ingroup Genlist
15146     */
15147    EAPI void               elm_genlist_item_selected_set(Elm_Genlist_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
15148    /**
15149     * Get whether a given genlist item is selected or not
15150     *
15151     * @param it The item
15152     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
15153     *
15154     * @see elm_genlist_item_selected_set() for more details
15155     *
15156     * @ingroup Genlist
15157     */
15158    EAPI Eina_Bool          elm_genlist_item_selected_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
15159    /**
15160     * Sets the expanded state of an item.
15161     *
15162     * @param it The item
15163     * @param expanded The expanded state (@c EINA_TRUE expanded, @c EINA_FALSE not expanded).
15164     *
15165     * This function flags the item of type #ELM_GENLIST_ITEM_SUBITEMS as
15166     * expanded or not.
15167     *
15168     * The theme will respond to this change visually, and a signal "expanded" or
15169     * "contracted" will be sent from the genlist with a pointer to the item that
15170     * has been expanded/contracted.
15171     *
15172     * Calling this function won't show or hide any child of this item (if it is
15173     * a parent). You must manually delete and create them on the callbacks fo
15174     * the "expanded" or "contracted" signals.
15175     *
15176     * @see elm_genlist_item_expanded_get()
15177     *
15178     * @ingroup Genlist
15179     */
15180    EAPI void               elm_genlist_item_expanded_set(Elm_Genlist_Item *item, Eina_Bool expanded) EINA_ARG_NONNULL(1);
15181    /**
15182     * Get the expanded state of an item
15183     *
15184     * @param it The item
15185     * @return The expanded state
15186     *
15187     * This gets the expanded state of an item.
15188     *
15189     * @see elm_genlist_item_expanded_set()
15190     *
15191     * @ingroup Genlist
15192     */
15193    EAPI Eina_Bool          elm_genlist_item_expanded_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
15194    /**
15195     * Get the depth of expanded item
15196     *
15197     * @param it The genlist item object
15198     * @return The depth of expanded item
15199     *
15200     * @ingroup Genlist
15201     */
15202    EAPI int                elm_genlist_item_expanded_depth_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
15203    /**
15204     * Set whether a given genlist item is disabled or not.
15205     *
15206     * @param it The item
15207     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
15208     * to enable it back.
15209     *
15210     * A disabled item cannot be selected or unselected. It will also
15211     * change its appearance, to signal the user it's disabled.
15212     *
15213     * @see elm_genlist_item_disabled_get()
15214     *
15215     * @ingroup Genlist
15216     */
15217    EAPI void               elm_genlist_item_disabled_set(Elm_Genlist_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
15218    /**
15219     * Get whether a given genlist item is disabled or not.
15220     *
15221     * @param it The item
15222     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
15223     * (and on errors).
15224     *
15225     * @see elm_genlist_item_disabled_set() for more details
15226     *
15227     * @ingroup Genlist
15228     */
15229    EAPI Eina_Bool          elm_genlist_item_disabled_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
15230    /**
15231     * Sets the display only state of an item.
15232     *
15233     * @param it The item
15234     * @param display_only @c EINA_TRUE if the item is display only, @c
15235     * EINA_FALSE otherwise.
15236     *
15237     * A display only item cannot be selected or unselected. It is for
15238     * display only and not selecting or otherwise clicking, dragging
15239     * etc. by the user, thus finger size rules will not be applied to
15240     * this item.
15241     *
15242     * It's good to set group index items to display only state.
15243     *
15244     * @see elm_genlist_item_display_only_get()
15245     *
15246     * @ingroup Genlist
15247     */
15248    EAPI void               elm_genlist_item_display_only_set(Elm_Genlist_Item *it, Eina_Bool display_only) EINA_ARG_NONNULL(1);
15249    /**
15250     * Get the display only state of an item
15251     *
15252     * @param it The item
15253     * @return @c EINA_TRUE if the item is display only, @c
15254     * EINA_FALSE otherwise.
15255     *
15256     * @see elm_genlist_item_display_only_set()
15257     *
15258     * @ingroup Genlist
15259     */
15260    EAPI Eina_Bool          elm_genlist_item_display_only_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
15261    /**
15262     * Show the portion of a genlist's internal list containing a given
15263     * item, immediately.
15264     *
15265     * @param it The item to display
15266     *
15267     * This causes genlist to jump to the given item @p it and show it (by
15268     * immediately scrolling to that position), if it is not fully visible.
15269     *
15270     * @see elm_genlist_item_bring_in()
15271     * @see elm_genlist_item_top_show()
15272     * @see elm_genlist_item_middle_show()
15273     *
15274     * @ingroup Genlist
15275     */
15276    EAPI void               elm_genlist_item_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
15277    /**
15278     * Animatedly bring in, to the visible are of a genlist, a given
15279     * item on it.
15280     *
15281     * @param it The item to display
15282     *
15283     * This causes genlist to jump to the given item @p it and show it (by
15284     * animatedly scrolling), if it is not fully visible. This may use animation
15285     * to do so and take a period of time
15286     *
15287     * @see elm_genlist_item_show()
15288     * @see elm_genlist_item_top_bring_in()
15289     * @see elm_genlist_item_middle_bring_in()
15290     *
15291     * @ingroup Genlist
15292     */
15293    EAPI void               elm_genlist_item_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
15294    /**
15295     * Show the portion of a genlist's internal list containing a given
15296     * item, immediately.
15297     *
15298     * @param it The item to display
15299     *
15300     * This causes genlist to jump to the given item @p it and show it (by
15301     * immediately scrolling to that position), if it is not fully visible.
15302     *
15303     * The item will be positioned at the top of the genlist viewport.
15304     *
15305     * @see elm_genlist_item_show()
15306     * @see elm_genlist_item_top_bring_in()
15307     *
15308     * @ingroup Genlist
15309     */
15310    EAPI void               elm_genlist_item_top_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
15311    /**
15312     * Animatedly bring in, to the visible are of a genlist, a given
15313     * item on it.
15314     *
15315     * @param it The item
15316     *
15317     * This causes genlist to jump to the given item @p it and show it (by
15318     * animatedly scrolling), if it is not fully visible. This may use animation
15319     * to do so and take a period of time
15320     *
15321     * The item will be positioned at the top of the genlist viewport.
15322     *
15323     * @see elm_genlist_item_bring_in()
15324     * @see elm_genlist_item_top_show()
15325     *
15326     * @ingroup Genlist
15327     */
15328    EAPI void               elm_genlist_item_top_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
15329    /**
15330     * Show the portion of a genlist's internal list containing a given
15331     * item, immediately.
15332     *
15333     * @param it The item to display
15334     *
15335     * This causes genlist to jump to the given item @p it and show it (by
15336     * immediately scrolling to that position), if it is not fully visible.
15337     *
15338     * The item will be positioned at the middle of the genlist viewport.
15339     *
15340     * @see elm_genlist_item_show()
15341     * @see elm_genlist_item_middle_bring_in()
15342     *
15343     * @ingroup Genlist
15344     */
15345    EAPI void               elm_genlist_item_middle_show(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
15346    /**
15347     * Animatedly bring in, to the visible are of a genlist, a given
15348     * item on it.
15349     *
15350     * @param it The item
15351     *
15352     * This causes genlist to jump to the given item @p it and show it (by
15353     * animatedly scrolling), if it is not fully visible. This may use animation
15354     * to do so and take a period of time
15355     *
15356     * The item will be positioned at the middle of the genlist viewport.
15357     *
15358     * @see elm_genlist_item_bring_in()
15359     * @see elm_genlist_item_middle_show()
15360     *
15361     * @ingroup Genlist
15362     */
15363    EAPI void               elm_genlist_item_middle_bring_in(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
15364    /**
15365     * Remove a genlist item from the its parent, deleting it.
15366     *
15367     * @param item The item to be removed.
15368     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
15369     *
15370     * @see elm_genlist_clear(), to remove all items in a genlist at
15371     * once.
15372     *
15373     * @ingroup Genlist
15374     */
15375    EAPI void               elm_genlist_item_del(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
15376    /**
15377     * Return the data associated to a given genlist item
15378     *
15379     * @param item The genlist item.
15380     * @return the data associated to this item.
15381     *
15382     * This returns the @c data value passed on the
15383     * elm_genlist_item_append() and related item addition calls.
15384     *
15385     * @see elm_genlist_item_append()
15386     * @see elm_genlist_item_data_set()
15387     *
15388     * @ingroup Genlist
15389     */
15390    EAPI void              *elm_genlist_item_data_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
15391    /**
15392     * Set the data associated to a given genlist item
15393     *
15394     * @param item The genlist item
15395     * @param data The new data pointer to set on it
15396     *
15397     * This @b overrides the @c data value passed on the
15398     * elm_genlist_item_append() and related item addition calls. This
15399     * function @b won't call elm_genlist_item_update() automatically,
15400     * so you'd issue it afterwards if you want to hove the item
15401     * updated to reflect the that new data.
15402     *
15403     * @see elm_genlist_item_data_get()
15404     *
15405     * @ingroup Genlist
15406     */
15407    EAPI void               elm_genlist_item_data_set(Elm_Genlist_Item *it, const void *data) EINA_ARG_NONNULL(1);
15408    /**
15409     * Tells genlist to "orphan" icons fetchs by the item class
15410     *
15411     * @param it The item
15412     *
15413     * This instructs genlist to release references to icons in the item,
15414     * meaning that they will no longer be managed by genlist and are
15415     * floating "orphans" that can be re-used elsewhere if the user wants
15416     * to.
15417     *
15418     * @ingroup Genlist
15419     */
15420    EAPI void               elm_genlist_item_icons_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
15421    /**
15422     * Get the real Evas object created to implement the view of a
15423     * given genlist item
15424     *
15425     * @param item The genlist item.
15426     * @return the Evas object implementing this item's view.
15427     *
15428     * This returns the actual Evas object used to implement the
15429     * specified genlist item's view. This may be @c NULL, as it may
15430     * not have been created or may have been deleted, at any time, by
15431     * the genlist. <b>Do not modify this object</b> (move, resize,
15432     * show, hide, etc.), as the genlist is controlling it. This
15433     * function is for querying, emitting custom signals or hooking
15434     * lower level callbacks for events on that object. Do not delete
15435     * this object under any circumstances.
15436     *
15437     * @see elm_genlist_item_data_get()
15438     *
15439     * @ingroup Genlist
15440     */
15441    EAPI const Evas_Object *elm_genlist_item_object_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
15442    /**
15443     * Update the contents of an item
15444     *
15445     * @param it The item
15446     *
15447     * This updates an item by calling all the item class functions again
15448     * to get the icons, labels and states. Use this when the original
15449     * item data has changed and the changes are desired to be reflected.
15450     *
15451     * Use elm_genlist_realized_items_update() to update all already realized
15452     * items.
15453     *
15454     * @see elm_genlist_realized_items_update()
15455     *
15456     * @ingroup Genlist
15457     */
15458    EAPI void               elm_genlist_item_update(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
15459    /**
15460     * Update the item class of an item
15461     *
15462     * @param it The item
15463     * @param itc The item class for the item
15464     *
15465     * This sets another class fo the item, changing the way that it is
15466     * displayed. After changing the item class, elm_genlist_item_update() is
15467     * called on the item @p it.
15468     *
15469     * @ingroup Genlist
15470     */
15471    EAPI void               elm_genlist_item_item_class_update(Elm_Genlist_Item *it, const Elm_Genlist_Item_Class *itc) EINA_ARG_NONNULL(1, 2);
15472    EAPI const Elm_Genlist_Item_Class *elm_genlist_item_item_class_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
15473    /**
15474     * Set the text to be shown in a given genlist item's tooltips.
15475     *
15476     * @param item The genlist item
15477     * @param text The text to set in the content
15478     *
15479     * This call will setup the text to be used as tooltip to that item
15480     * (analogous to elm_object_tooltip_text_set(), but being item
15481     * tooltips with higher precedence than object tooltips). It can
15482     * have only one tooltip at a time, so any previous tooltip data
15483     * will get removed.
15484     *
15485     * In order to set an icon or something else as a tooltip, look at
15486     * elm_genlist_item_tooltip_content_cb_set().
15487     *
15488     * @ingroup Genlist
15489     */
15490    EAPI void               elm_genlist_item_tooltip_text_set(Elm_Genlist_Item *item, const char *text) EINA_ARG_NONNULL(1);
15491    /**
15492     * Set the content to be shown in a given genlist item's tooltips
15493     *
15494     * @param item The genlist item.
15495     * @param func The function returning the tooltip contents.
15496     * @param data What to provide to @a func as callback data/context.
15497     * @param del_cb Called when data is not needed anymore, either when
15498     *        another callback replaces @p func, the tooltip is unset with
15499     *        elm_genlist_item_tooltip_unset() or the owner @p item
15500     *        dies. This callback receives as its first parameter the
15501     *        given @p data, being @c event_info the item handle.
15502     *
15503     * This call will setup the tooltip's contents to @p item
15504     * (analogous to elm_object_tooltip_content_cb_set(), but being
15505     * item tooltips with higher precedence than object tooltips). It
15506     * can have only one tooltip at a time, so any previous tooltip
15507     * content will get removed. @p func (with @p data) will be called
15508     * every time Elementary needs to show the tooltip and it should
15509     * return a valid Evas object, which will be fully managed by the
15510     * tooltip system, getting deleted when the tooltip is gone.
15511     *
15512     * In order to set just a text as a tooltip, look at
15513     * elm_genlist_item_tooltip_text_set().
15514     *
15515     * @ingroup Genlist
15516     */
15517    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);
15518    /**
15519     * Unset a tooltip from a given genlist item
15520     *
15521     * @param item genlist item to remove a previously set tooltip from.
15522     *
15523     * This call removes any tooltip set on @p item. The callback
15524     * provided as @c del_cb to
15525     * elm_genlist_item_tooltip_content_cb_set() will be called to
15526     * notify it is not used anymore (and have resources cleaned, if
15527     * need be).
15528     *
15529     * @see elm_genlist_item_tooltip_content_cb_set()
15530     *
15531     * @ingroup Genlist
15532     */
15533    EAPI void               elm_genlist_item_tooltip_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
15534    /**
15535     * Set a different @b style for a given genlist item's tooltip.
15536     *
15537     * @param item genlist item with tooltip set
15538     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
15539     * "default", @c "transparent", etc)
15540     *
15541     * Tooltips can have <b>alternate styles</b> to be displayed on,
15542     * which are defined by the theme set on Elementary. This function
15543     * works analogously as elm_object_tooltip_style_set(), but here
15544     * applied only to genlist item objects. The default style for
15545     * tooltips is @c "default".
15546     *
15547     * @note before you set a style you should define a tooltip with
15548     *       elm_genlist_item_tooltip_content_cb_set() or
15549     *       elm_genlist_item_tooltip_text_set()
15550     *
15551     * @see elm_genlist_item_tooltip_style_get()
15552     *
15553     * @ingroup Genlist
15554     */
15555    EAPI void               elm_genlist_item_tooltip_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
15556    /**
15557     * Get the style set a given genlist item's tooltip.
15558     *
15559     * @param item genlist item with tooltip already set on.
15560     * @return style the theme style in use, which defaults to
15561     *         "default". If the object does not have a tooltip set,
15562     *         then @c NULL is returned.
15563     *
15564     * @see elm_genlist_item_tooltip_style_set() for more details
15565     *
15566     * @ingroup Genlist
15567     */
15568    EAPI const char        *elm_genlist_item_tooltip_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
15569    /**
15570     * @brief Disable size restrictions on an object's tooltip
15571     * @param item The tooltip's anchor object
15572     * @param disable If EINA_TRUE, size restrictions are disabled
15573     * @return EINA_FALSE on failure, EINA_TRUE on success
15574     *
15575     * This function allows a tooltip to expand beyond its parant window's canvas.
15576     * It will instead be limited only by the size of the display.
15577     */
15578    EAPI Eina_Bool          elm_genlist_item_tooltip_size_restrict_disable(Elm_Genlist_Item *item, Eina_Bool disable);
15579    /**
15580     * @brief Retrieve size restriction state of an object's tooltip
15581     * @param item The tooltip's anchor object
15582     * @return If EINA_TRUE, size restrictions are disabled
15583     *
15584     * This function returns whether a tooltip is allowed to expand beyond
15585     * its parant window's canvas.
15586     * It will instead be limited only by the size of the display.
15587     */
15588    EAPI Eina_Bool          elm_genlist_item_tooltip_size_restrict_disabled_get(const Elm_Genlist_Item *item);
15589    /**
15590     * Set the type of mouse pointer/cursor decoration to be shown,
15591     * when the mouse pointer is over the given genlist widget item
15592     *
15593     * @param item genlist item to customize cursor on
15594     * @param cursor the cursor type's name
15595     *
15596     * This function works analogously as elm_object_cursor_set(), but
15597     * here the cursor's changing area is restricted to the item's
15598     * area, and not the whole widget's. Note that that item cursors
15599     * have precedence over widget cursors, so that a mouse over @p
15600     * item will always show cursor @p type.
15601     *
15602     * If this function is called twice for an object, a previously set
15603     * cursor will be unset on the second call.
15604     *
15605     * @see elm_object_cursor_set()
15606     * @see elm_genlist_item_cursor_get()
15607     * @see elm_genlist_item_cursor_unset()
15608     *
15609     * @ingroup Genlist
15610     */
15611    EAPI void               elm_genlist_item_cursor_set(Elm_Genlist_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
15612    /**
15613     * Get the type of mouse pointer/cursor decoration set to be shown,
15614     * when the mouse pointer is over the given genlist widget item
15615     *
15616     * @param item genlist item with custom cursor set
15617     * @return the cursor type's name or @c NULL, if no custom cursors
15618     * were set to @p item (and on errors)
15619     *
15620     * @see elm_object_cursor_get()
15621     * @see elm_genlist_item_cursor_set() for more details
15622     * @see elm_genlist_item_cursor_unset()
15623     *
15624     * @ingroup Genlist
15625     */
15626    EAPI const char        *elm_genlist_item_cursor_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
15627    /**
15628     * Unset any custom mouse pointer/cursor decoration set to be
15629     * shown, when the mouse pointer is over the given genlist widget
15630     * item, thus making it show the @b default cursor again.
15631     *
15632     * @param item a genlist item
15633     *
15634     * Use this call to undo any custom settings on this item's cursor
15635     * decoration, bringing it back to defaults (no custom style set).
15636     *
15637     * @see elm_object_cursor_unset()
15638     * @see elm_genlist_item_cursor_set() for more details
15639     *
15640     * @ingroup Genlist
15641     */
15642    EAPI void               elm_genlist_item_cursor_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
15643    /**
15644     * Set a different @b style for a given custom cursor set for a
15645     * genlist item.
15646     *
15647     * @param item genlist item with custom cursor set
15648     * @param style the <b>theme style</b> to use (e.g. @c "default",
15649     * @c "transparent", etc)
15650     *
15651     * This function only makes sense when one is using custom mouse
15652     * cursor decorations <b>defined in a theme file</b> , which can
15653     * have, given a cursor name/type, <b>alternate styles</b> on
15654     * it. It works analogously as elm_object_cursor_style_set(), but
15655     * here applied only to genlist item objects.
15656     *
15657     * @warning Before you set a cursor style you should have defined a
15658     *       custom cursor previously on the item, with
15659     *       elm_genlist_item_cursor_set()
15660     *
15661     * @see elm_genlist_item_cursor_engine_only_set()
15662     * @see elm_genlist_item_cursor_style_get()
15663     *
15664     * @ingroup Genlist
15665     */
15666    EAPI void               elm_genlist_item_cursor_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
15667    /**
15668     * Get the current @b style set for a given genlist item's custom
15669     * cursor
15670     *
15671     * @param item genlist item with custom cursor set.
15672     * @return style the cursor style in use. If the object does not
15673     *         have a cursor set, then @c NULL is returned.
15674     *
15675     * @see elm_genlist_item_cursor_style_set() for more details
15676     *
15677     * @ingroup Genlist
15678     */
15679    EAPI const char        *elm_genlist_item_cursor_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
15680    /**
15681     * Set if the (custom) cursor for a given genlist item should be
15682     * searched in its theme, also, or should only rely on the
15683     * rendering engine.
15684     *
15685     * @param item item with custom (custom) cursor already set on
15686     * @param engine_only Use @c EINA_TRUE to have cursors looked for
15687     * only on those provided by the rendering engine, @c EINA_FALSE to
15688     * have them searched on the widget's theme, as well.
15689     *
15690     * @note This call is of use only if you've set a custom cursor
15691     * for genlist items, with elm_genlist_item_cursor_set().
15692     *
15693     * @note By default, cursors will only be looked for between those
15694     * provided by the rendering engine.
15695     *
15696     * @ingroup Genlist
15697     */
15698    EAPI void               elm_genlist_item_cursor_engine_only_set(Elm_Genlist_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
15699    /**
15700     * Get if the (custom) cursor for a given genlist item is being
15701     * searched in its theme, also, or is only relying on the rendering
15702     * engine.
15703     *
15704     * @param item a genlist item
15705     * @return @c EINA_TRUE, if cursors are being looked for only on
15706     * those provided by the rendering engine, @c EINA_FALSE if they
15707     * are being searched on the widget's theme, as well.
15708     *
15709     * @see elm_genlist_item_cursor_engine_only_set(), for more details
15710     *
15711     * @ingroup Genlist
15712     */
15713    EAPI Eina_Bool          elm_genlist_item_cursor_engine_only_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
15714    /**
15715     * Update the contents of all realized items.
15716     *
15717     * @param obj The genlist object.
15718     *
15719     * This updates all realized items by calling all the item class functions again
15720     * to get the icons, labels and states. Use this when the original
15721     * item data has changed and the changes are desired to be reflected.
15722     *
15723     * To update just one item, use elm_genlist_item_update().
15724     *
15725     * @see elm_genlist_realized_items_get()
15726     * @see elm_genlist_item_update()
15727     *
15728     * @ingroup Genlist
15729     */
15730    EAPI void               elm_genlist_realized_items_update(Evas_Object *obj) EINA_ARG_NONNULL(1);
15731    /**
15732     * Activate a genlist mode on an item
15733     *
15734     * @param item The genlist item
15735     * @param mode Mode name
15736     * @param mode_set Boolean to define set or unset mode.
15737     *
15738     * A genlist mode is a different way of selecting an item. Once a mode is
15739     * activated on an item, any other selected item is immediately unselected.
15740     * This feature provides an easy way of implementing a new kind of animation
15741     * for selecting an item, without having to entirely rewrite the item style
15742     * theme. However, the elm_genlist_selected_* API can't be used to get what
15743     * item is activate for a mode.
15744     *
15745     * The current item style will still be used, but applying a genlist mode to
15746     * an item will select it using a different kind of animation.
15747     *
15748     * The current active item for a mode can be found by
15749     * elm_genlist_mode_item_get().
15750     *
15751     * The characteristics of genlist mode are:
15752     * - Only one mode can be active at any time, and for only one item.
15753     * - Genlist handles deactivating other items when one item is activated.
15754     * - A mode is defined in the genlist theme (edc), and more modes can easily
15755     *   be added.
15756     * - A mode style and the genlist item style are different things. They
15757     *   can be combined to provide a default style to the item, with some kind
15758     *   of animation for that item when the mode is activated.
15759     *
15760     * When a mode is activated on an item, a new view for that item is created.
15761     * The theme of this mode defines the animation that will be used to transit
15762     * the item from the old view to the new view. This second (new) view will be
15763     * active for that item while the mode is active on the item, and will be
15764     * destroyed after the mode is totally deactivated from that item.
15765     *
15766     * @see elm_genlist_mode_get()
15767     * @see elm_genlist_mode_item_get()
15768     *
15769     * @ingroup Genlist
15770     */
15771    EAPI void               elm_genlist_item_mode_set(Elm_Genlist_Item *it, const char *mode_type, Eina_Bool mode_set) EINA_ARG_NONNULL(1, 2);
15772    /**
15773     * Get the last (or current) genlist mode used.
15774     *
15775     * @param obj The genlist object
15776     *
15777     * This function just returns the name of the last used genlist mode. It will
15778     * be the current mode if it's still active.
15779     *
15780     * @see elm_genlist_item_mode_set()
15781     * @see elm_genlist_mode_item_get()
15782     *
15783     * @ingroup Genlist
15784     */
15785    EAPI const char        *elm_genlist_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15786    /**
15787     * Get active genlist mode item
15788     *
15789     * @param obj The genlist object
15790     * @return The active item for that current mode. Or @c NULL if no item is
15791     * activated with any mode.
15792     *
15793     * This function returns the item that was activated with a mode, by the
15794     * function elm_genlist_item_mode_set().
15795     *
15796     * @see elm_genlist_item_mode_set()
15797     * @see elm_genlist_mode_get()
15798     *
15799     * @ingroup Genlist
15800     */
15801    EAPI const Elm_Genlist_Item *elm_genlist_mode_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15802    EAPI void               elm_genlist_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
15803    EAPI Eina_Bool          elm_genlist_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15804
15805    /**
15806     * @}
15807     */
15808
15809    /**
15810     * @defgroup Check Check
15811     *
15812     * @image html img/widget/check/preview-00.png
15813     * @image latex img/widget/check/preview-00.eps
15814     * @image html img/widget/check/preview-01.png
15815     * @image latex img/widget/check/preview-01.eps
15816     * @image html img/widget/check/preview-02.png
15817     * @image latex img/widget/check/preview-02.eps
15818     *
15819     * @brief The check widget allows for toggling a value between true and
15820     * false.
15821     *
15822     * Check objects are a lot like radio objects in layout and functionality
15823     * except they do not work as a group, but independently and only toggle the
15824     * value of a boolean from false to true (0 or 1). elm_check_state_set() sets
15825     * the boolean state (1 for true, 0 for false), and elm_check_state_get()
15826     * returns the current state. For convenience, like the radio objects, you
15827     * can set a pointer to a boolean directly with elm_check_state_pointer_set()
15828     * for it to modify.
15829     *
15830     * Signals that you can add callbacks for are:
15831     * "changed" - This is called whenever the user changes the state of one of
15832     *             the check object(event_info is NULL).
15833     *
15834     * @ref tutorial_check should give you a firm grasp of how to use this widget.
15835     * @{
15836     */
15837    /**
15838     * @brief Add a new Check object
15839     *
15840     * @param parent The parent object
15841     * @return The new object or NULL if it cannot be created
15842     */
15843    EAPI Evas_Object *elm_check_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
15844    /**
15845     * @brief Set the text label of the check object
15846     *
15847     * @param obj The check object
15848     * @param label The text label string in UTF-8
15849     *
15850     * @deprecated use elm_object_text_set() instead.
15851     */
15852    EINA_DEPRECATED EAPI void         elm_check_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
15853    /**
15854     * @brief Get the text label of the check object
15855     *
15856     * @param obj The check object
15857     * @return The text label string in UTF-8
15858     *
15859     * @deprecated use elm_object_text_get() instead.
15860     */
15861    EINA_DEPRECATED EAPI const char  *elm_check_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15862    /**
15863     * @brief Set the icon object of the check object
15864     *
15865     * @param obj The check object
15866     * @param icon The icon object
15867     *
15868     * Once the icon object is set, a previously set one will be deleted.
15869     * If you want to keep that old content object, use the
15870     * elm_check_icon_unset() function.
15871     */
15872    EAPI void         elm_check_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
15873    /**
15874     * @brief Get the icon object of the check object
15875     *
15876     * @param obj The check object
15877     * @return The icon object
15878     */
15879    EAPI Evas_Object *elm_check_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15880    /**
15881     * @brief Unset the icon used for the check object
15882     *
15883     * @param obj The check object
15884     * @return The icon object that was being used
15885     *
15886     * Unparent and return the icon object which was set for this widget.
15887     */
15888    EAPI Evas_Object *elm_check_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
15889    /**
15890     * @brief Set the on/off state of the check object
15891     *
15892     * @param obj The check object
15893     * @param state The state to use (1 == on, 0 == off)
15894     *
15895     * This sets the state of the check. If set
15896     * with elm_check_state_pointer_set() the state of that variable is also
15897     * changed. Calling this @b doesn't cause the "changed" signal to be emited.
15898     */
15899    EAPI void         elm_check_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
15900    /**
15901     * @brief Get the state of the check object
15902     *
15903     * @param obj The check object
15904     * @return The boolean state
15905     */
15906    EAPI Eina_Bool    elm_check_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15907    /**
15908     * @brief Set a convenience pointer to a boolean to change
15909     *
15910     * @param obj The check object
15911     * @param statep Pointer to the boolean to modify
15912     *
15913     * This sets a pointer to a boolean, that, in addition to the check objects
15914     * state will also be modified directly. To stop setting the object pointed
15915     * to simply use NULL as the @p statep parameter. If @p statep is not NULL,
15916     * then when this is called, the check objects state will also be modified to
15917     * reflect the value of the boolean @p statep points to, just like calling
15918     * elm_check_state_set().
15919     */
15920    EAPI void         elm_check_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
15921    /**
15922     * @}
15923     */
15924
15925    /**
15926     * @defgroup Radio Radio
15927     *
15928     * @image html img/widget/radio/preview-00.png
15929     * @image latex img/widget/radio/preview-00.eps
15930     *
15931     * @brief Radio is a widget that allows for 1 or more options to be displayed
15932     * and have the user choose only 1 of them.
15933     *
15934     * A radio object contains an indicator, an optional Label and an optional
15935     * icon object. While it's possible to have a group of only one radio they,
15936     * are normally used in groups of 2 or more. To add a radio to a group use
15937     * elm_radio_group_add(). The radio object(s) will select from one of a set
15938     * of integer values, so any value they are configuring needs to be mapped to
15939     * a set of integers. To configure what value that radio object represents,
15940     * use  elm_radio_state_value_set() to set the integer it represents. To set
15941     * the value the whole group(which one is currently selected) is to indicate
15942     * use elm_radio_value_set() on any group member, and to get the groups value
15943     * use elm_radio_value_get(). For convenience the radio objects are also able
15944     * to directly set an integer(int) to the value that is selected. To specify
15945     * the pointer to this integer to modify, use elm_radio_value_pointer_set().
15946     * The radio objects will modify this directly. That implies the pointer must
15947     * point to valid memory for as long as the radio objects exist.
15948     *
15949     * Signals that you can add callbacks for are:
15950     * @li changed - This is called whenever the user changes the state of one of
15951     * the radio objects within the group of radio objects that work together.
15952     *
15953     * @ref tutorial_radio show most of this API in action.
15954     * @{
15955     */
15956    /**
15957     * @brief Add a new radio to the parent
15958     *
15959     * @param parent The parent object
15960     * @return The new object or NULL if it cannot be created
15961     */
15962    EAPI Evas_Object *elm_radio_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
15963    /**
15964     * @brief Set the text label of the radio object
15965     *
15966     * @param obj The radio object
15967     * @param label The text label string in UTF-8
15968     *
15969     * @deprecated use elm_object_text_set() instead.
15970     */
15971    EINA_DEPRECATED EAPI void         elm_radio_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
15972    /**
15973     * @brief Get the text label of the radio object
15974     *
15975     * @param obj The radio object
15976     * @return The text label string in UTF-8
15977     *
15978     * @deprecated use elm_object_text_set() instead.
15979     */
15980    EINA_DEPRECATED EAPI const char  *elm_radio_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15981    /**
15982     * @brief Set the icon object of the radio object
15983     *
15984     * @param obj The radio object
15985     * @param icon The icon object
15986     *
15987     * Once the icon object is set, a previously set one will be deleted. If you
15988     * want to keep that old content object, use the elm_radio_icon_unset()
15989     * function.
15990     */
15991    EAPI void         elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
15992    /**
15993     * @brief Get the icon object of the radio object
15994     *
15995     * @param obj The radio object
15996     * @return The icon object
15997     *
15998     * @see elm_radio_icon_set()
15999     */
16000    EAPI Evas_Object *elm_radio_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16001    /**
16002     * @brief Unset the icon used for the radio object
16003     *
16004     * @param obj The radio object
16005     * @return The icon object that was being used
16006     *
16007     * Unparent and return the icon object which was set for this widget.
16008     *
16009     * @see elm_radio_icon_set()
16010     */
16011    EAPI Evas_Object *elm_radio_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
16012    /**
16013     * @brief Add this radio to a group of other radio objects
16014     *
16015     * @param obj The radio object
16016     * @param group Any object whose group the @p obj is to join.
16017     *
16018     * Radio objects work in groups. Each member should have a different integer
16019     * value assigned. In order to have them work as a group, they need to know
16020     * about each other. This adds the given radio object to the group of which
16021     * the group object indicated is a member.
16022     */
16023    EAPI void         elm_radio_group_add(Evas_Object *obj, Evas_Object *group) EINA_ARG_NONNULL(1);
16024    /**
16025     * @brief Set the integer value that this radio object represents
16026     *
16027     * @param obj The radio object
16028     * @param value The value to use if this radio object is selected
16029     *
16030     * This sets the value of the radio.
16031     */
16032    EAPI void         elm_radio_state_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
16033    /**
16034     * @brief Get the integer value that this radio object represents
16035     *
16036     * @param obj The radio object
16037     * @return The value used if this radio object is selected
16038     *
16039     * This gets the value of the radio.
16040     *
16041     * @see elm_radio_value_set()
16042     */
16043    EAPI int          elm_radio_state_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16044    /**
16045     * @brief Set the value of the radio.
16046     *
16047     * @param obj The radio object
16048     * @param value The value to use for the group
16049     *
16050     * This sets the value of the radio group and will also set the value if
16051     * pointed to, to the value supplied, but will not call any callbacks.
16052     */
16053    EAPI void         elm_radio_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
16054    /**
16055     * @brief Get the state of the radio object
16056     *
16057     * @param obj The radio object
16058     * @return The integer state
16059     */
16060    EAPI int          elm_radio_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16061    /**
16062     * @brief Set a convenience pointer to a integer to change
16063     *
16064     * @param obj The radio object
16065     * @param valuep Pointer to the integer to modify
16066     *
16067     * This sets a pointer to a integer, that, in addition to the radio objects
16068     * state will also be modified directly. To stop setting the object pointed
16069     * to simply use NULL as the @p valuep argument. If valuep is not NULL, then
16070     * when this is called, the radio objects state will also be modified to
16071     * reflect the value of the integer valuep points to, just like calling
16072     * elm_radio_value_set().
16073     */
16074    EAPI void         elm_radio_value_pointer_set(Evas_Object *obj, int *valuep) EINA_ARG_NONNULL(1);
16075    /**
16076     * @}
16077     */
16078
16079    /**
16080     * @defgroup Pager Pager
16081     *
16082     * @image html img/widget/pager/preview-00.png
16083     * @image latex img/widget/pager/preview-00.eps
16084     *
16085     * @brief Widget that allows flipping between 1 or more “pages” of objects.
16086     *
16087     * The flipping between “pages” of objects is animated. All content in pager
16088     * is kept in a stack, the last content to be added will be on the top of the
16089     * stack(be visible).
16090     *
16091     * Objects can be pushed or popped from the stack or deleted as normal.
16092     * Pushes and pops will animate (and a pop will delete the object once the
16093     * animation is finished). Any object already in the pager can be promoted to
16094     * the top(from its current stacking position) through the use of
16095     * elm_pager_content_promote(). Objects are pushed to the top with
16096     * elm_pager_content_push() and when the top item is no longer wanted, simply
16097     * pop it with elm_pager_content_pop() and it will also be deleted. If an
16098     * object is no longer needed and is not the top item, just delete it as
16099     * normal. You can query which objects are the top and bottom with
16100     * elm_pager_content_bottom_get() and elm_pager_content_top_get().
16101     *
16102     * Signals that you can add callbacks for are:
16103     * "hide,finished" - when the previous page is hided
16104     *
16105     * This widget has the following styles available:
16106     * @li default
16107     * @li fade
16108     * @li fade_translucide
16109     * @li fade_invisible
16110     * @note This styles affect only the flipping animations, the appearance when
16111     * not animating is unaffected by styles.
16112     *
16113     * @ref tutorial_pager gives a good overview of the usage of the API.
16114     * @{
16115     */
16116    /**
16117     * Add a new pager to the parent
16118     *
16119     * @param parent The parent object
16120     * @return The new object or NULL if it cannot be created
16121     *
16122     * @ingroup Pager
16123     */
16124    EAPI Evas_Object *elm_pager_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16125    /**
16126     * @brief Push an object to the top of the pager stack (and show it).
16127     *
16128     * @param obj The pager object
16129     * @param content The object to push
16130     *
16131     * The object pushed becomes a child of the pager, it will be controlled and
16132     * deleted when the pager is deleted.
16133     *
16134     * @note If the content is already in the stack use
16135     * elm_pager_content_promote().
16136     * @warning Using this function on @p content already in the stack results in
16137     * undefined behavior.
16138     */
16139    EAPI void         elm_pager_content_push(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
16140    /**
16141     * @brief Pop the object that is on top of the stack
16142     *
16143     * @param obj The pager object
16144     *
16145     * This pops the object that is on the top(visible) of the pager, makes it
16146     * disappear, then deletes the object. The object that was underneath it on
16147     * the stack will become visible.
16148     */
16149    EAPI void         elm_pager_content_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
16150    /**
16151     * @brief Moves an object already in the pager stack to the top of the stack.
16152     *
16153     * @param obj The pager object
16154     * @param content The object to promote
16155     *
16156     * This will take the @p content and move it to the top of the stack as
16157     * if it had been pushed there.
16158     *
16159     * @note If the content isn't already in the stack use
16160     * elm_pager_content_push().
16161     * @warning Using this function on @p content not already in the stack
16162     * results in undefined behavior.
16163     */
16164    EAPI void         elm_pager_content_promote(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
16165    /**
16166     * @brief Return the object at the bottom of the pager stack
16167     *
16168     * @param obj The pager object
16169     * @return The bottom object or NULL if none
16170     */
16171    EAPI Evas_Object *elm_pager_content_bottom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16172    /**
16173     * @brief  Return the object at the top of the pager stack
16174     *
16175     * @param obj The pager object
16176     * @return The top object or NULL if none
16177     */
16178    EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16179    /**
16180     * @}
16181     */
16182
16183    /**
16184     * @defgroup Slideshow Slideshow
16185     *
16186     * @image html img/widget/slideshow/preview-00.png
16187     * @image latex img/widget/slideshow/preview-00.eps
16188     *
16189     * This widget, as the name indicates, is a pre-made image
16190     * slideshow panel, with API functions acting on (child) image
16191     * items presentation. Between those actions, are:
16192     * - advance to next/previous image
16193     * - select the style of image transition animation
16194     * - set the exhibition time for each image
16195     * - start/stop the slideshow
16196     *
16197     * The transition animations are defined in the widget's theme,
16198     * consequently new animations can be added without having to
16199     * update the widget's code.
16200     *
16201     * @section Slideshow_Items Slideshow items
16202     *
16203     * For slideshow items, just like for @ref Genlist "genlist" ones,
16204     * the user defines a @b classes, specifying functions that will be
16205     * called on the item's creation and deletion times.
16206     *
16207     * The #Elm_Slideshow_Item_Class structure contains the following
16208     * members:
16209     *
16210     * - @c func.get - When an item is displayed, this function is
16211     *   called, and it's where one should create the item object, de
16212     *   facto. For example, the object can be a pure Evas image object
16213     *   or an Elementary @ref Photocam "photocam" widget. See
16214     *   #SlideshowItemGetFunc.
16215     * - @c func.del - When an item is no more displayed, this function
16216     *   is called, where the user must delete any data associated to
16217     *   the item. See #SlideshowItemDelFunc.
16218     *
16219     * @section Slideshow_Caching Slideshow caching
16220     *
16221     * The slideshow provides facilities to have items adjacent to the
16222     * one being displayed <b>already "realized"</b> (i.e. loaded) for
16223     * you, so that the system does not have to decode image data
16224     * anymore at the time it has to actually switch images on its
16225     * viewport. The user is able to set the numbers of items to be
16226     * cached @b before and @b after the current item, in the widget's
16227     * item list.
16228     *
16229     * Smart events one can add callbacks for are:
16230     *
16231     * - @c "changed" - when the slideshow switches its view to a new
16232     *   item
16233     *
16234     * List of examples for the slideshow widget:
16235     * @li @ref slideshow_example
16236     */
16237
16238    /**
16239     * @addtogroup Slideshow
16240     * @{
16241     */
16242
16243    typedef struct _Elm_Slideshow_Item_Class Elm_Slideshow_Item_Class; /**< Slideshow item class definition struct */
16244    typedef struct _Elm_Slideshow_Item_Class_Func Elm_Slideshow_Item_Class_Func; /**< Class functions for slideshow item classes. */
16245    typedef struct _Elm_Slideshow_Item       Elm_Slideshow_Item; /**< Slideshow item handle */
16246    typedef Evas_Object *(*SlideshowItemGetFunc) (void *data, Evas_Object *obj); /**< Image fetching class function for slideshow item classes. */
16247    typedef void         (*SlideshowItemDelFunc) (void *data, Evas_Object *obj); /**< Deletion class function for slideshow item classes. */
16248
16249    /**
16250     * @struct _Elm_Slideshow_Item_Class
16251     *
16252     * Slideshow item class definition. See @ref Slideshow_Items for
16253     * field details.
16254     */
16255    struct _Elm_Slideshow_Item_Class
16256      {
16257         struct _Elm_Slideshow_Item_Class_Func
16258           {
16259              SlideshowItemGetFunc get;
16260              SlideshowItemDelFunc del;
16261           } func;
16262      }; /**< #Elm_Slideshow_Item_Class member definitions */
16263
16264    /**
16265     * Add a new slideshow widget to the given parent Elementary
16266     * (container) object
16267     *
16268     * @param parent The parent object
16269     * @return A new slideshow widget handle or @c NULL, on errors
16270     *
16271     * This function inserts a new slideshow widget on the canvas.
16272     *
16273     * @ingroup Slideshow
16274     */
16275    EAPI Evas_Object        *elm_slideshow_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16276
16277    /**
16278     * Add (append) a new item in a given slideshow widget.
16279     *
16280     * @param obj The slideshow object
16281     * @param itc The item class for the item
16282     * @param data The item's data
16283     * @return A handle to the item added or @c NULL, on errors
16284     *
16285     * Add a new item to @p obj's internal list of items, appending it.
16286     * The item's class must contain the function really fetching the
16287     * image object to show for this item, which could be an Evas image
16288     * object or an Elementary photo, for example. The @p data
16289     * parameter is going to be passed to both class functions of the
16290     * item.
16291     *
16292     * @see #Elm_Slideshow_Item_Class
16293     * @see elm_slideshow_item_sorted_insert()
16294     *
16295     * @ingroup Slideshow
16296     */
16297    EAPI Elm_Slideshow_Item *elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data) EINA_ARG_NONNULL(1);
16298
16299    /**
16300     * Insert a new item into the given slideshow widget, using the @p func
16301     * function to sort items (by item handles).
16302     *
16303     * @param obj The slideshow object
16304     * @param itc The item class for the item
16305     * @param data The item's data
16306     * @param func The comparing function to be used to sort slideshow
16307     * items <b>by #Elm_Slideshow_Item item handles</b>
16308     * @return Returns The slideshow item handle, on success, or
16309     * @c NULL, on errors
16310     *
16311     * Add a new item to @p obj's internal list of items, in a position
16312     * determined by the @p func comparing function. The item's class
16313     * must contain the function really fetching the image object to
16314     * show for this item, which could be an Evas image object or an
16315     * Elementary photo, for example. The @p data parameter is going to
16316     * be passed to both class functions of the item.
16317     *
16318     * @see #Elm_Slideshow_Item_Class
16319     * @see elm_slideshow_item_add()
16320     *
16321     * @ingroup Slideshow
16322     */
16323    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);
16324
16325    /**
16326     * Display a given slideshow widget's item, programmatically.
16327     *
16328     * @param obj The slideshow object
16329     * @param item The item to display on @p obj's viewport
16330     *
16331     * The change between the current item and @p item will use the
16332     * transition @p obj is set to use (@see
16333     * elm_slideshow_transition_set()).
16334     *
16335     * @ingroup Slideshow
16336     */
16337    EAPI void                elm_slideshow_show(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
16338
16339    /**
16340     * Slide to the @b next item, in a given slideshow widget
16341     *
16342     * @param obj The slideshow object
16343     *
16344     * The sliding animation @p obj is set to use will be the
16345     * transition effect used, after this call is issued.
16346     *
16347     * @note If the end of the slideshow's internal list of items is
16348     * reached, it'll wrap around to the list's beginning, again.
16349     *
16350     * @ingroup Slideshow
16351     */
16352    EAPI void                elm_slideshow_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
16353
16354    /**
16355     * Slide to the @b previous item, in a given slideshow widget
16356     *
16357     * @param obj The slideshow object
16358     *
16359     * The sliding animation @p obj is set to use will be the
16360     * transition effect used, after this call is issued.
16361     *
16362     * @note If the beginning of the slideshow's internal list of items
16363     * is reached, it'll wrap around to the list's end, again.
16364     *
16365     * @ingroup Slideshow
16366     */
16367    EAPI void                elm_slideshow_previous(Evas_Object *obj) EINA_ARG_NONNULL(1);
16368
16369    /**
16370     * Returns the list of sliding transition/effect names available, for a
16371     * given slideshow widget.
16372     *
16373     * @param obj The slideshow object
16374     * @return The list of transitions (list of @b stringshared strings
16375     * as data)
16376     *
16377     * The transitions, which come from @p obj's theme, must be an EDC
16378     * data item named @c "transitions" on the theme file, with (prefix)
16379     * names of EDC programs actually implementing them.
16380     *
16381     * The available transitions for slideshows on the default theme are:
16382     * - @c "fade" - the current item fades out, while the new one
16383     *   fades in to the slideshow's viewport.
16384     * - @c "black_fade" - the current item fades to black, and just
16385     *   then, the new item will fade in.
16386     * - @c "horizontal" - the current item slides horizontally, until
16387     *   it gets out of the slideshow's viewport, while the new item
16388     *   comes from the left to take its place.
16389     * - @c "vertical" - the current item slides vertically, until it
16390     *   gets out of the slideshow's viewport, while the new item comes
16391     *   from the bottom to take its place.
16392     * - @c "square" - the new item starts to appear from the middle of
16393     *   the current one, but with a tiny size, growing until its
16394     *   target (full) size and covering the old one.
16395     *
16396     * @warning The stringshared strings get no new references
16397     * exclusive to the user grabbing the list, here, so if you'd like
16398     * to use them out of this call's context, you'd better @c
16399     * eina_stringshare_ref() them.
16400     *
16401     * @see elm_slideshow_transition_set()
16402     *
16403     * @ingroup Slideshow
16404     */
16405    EAPI const Eina_List    *elm_slideshow_transitions_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16406
16407    /**
16408     * Set the current slide transition/effect in use for a given
16409     * slideshow widget
16410     *
16411     * @param obj The slideshow object
16412     * @param transition The new transition's name string
16413     *
16414     * If @p transition is implemented in @p obj's theme (i.e., is
16415     * contained in the list returned by
16416     * elm_slideshow_transitions_get()), this new sliding effect will
16417     * be used on the widget.
16418     *
16419     * @see elm_slideshow_transitions_get() for more details
16420     *
16421     * @ingroup Slideshow
16422     */
16423    EAPI void                elm_slideshow_transition_set(Evas_Object *obj, const char *transition) EINA_ARG_NONNULL(1);
16424
16425    /**
16426     * Get the current slide transition/effect in use for a given
16427     * slideshow widget
16428     *
16429     * @param obj The slideshow object
16430     * @return The current transition's name
16431     *
16432     * @see elm_slideshow_transition_set() for more details
16433     *
16434     * @ingroup Slideshow
16435     */
16436    EAPI const char         *elm_slideshow_transition_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16437
16438    /**
16439     * Set the interval between each image transition on a given
16440     * slideshow widget, <b>and start the slideshow, itself</b>
16441     *
16442     * @param obj The slideshow object
16443     * @param timeout The new displaying timeout for images
16444     *
16445     * After this call, the slideshow widget will start cycling its
16446     * view, sequentially and automatically, with the images of the
16447     * items it has. The time between each new image displayed is going
16448     * to be @p timeout, in @b seconds. If a different timeout was set
16449     * previously and an slideshow was in progress, it will continue
16450     * with the new time between transitions, after this call.
16451     *
16452     * @note A value less than or equal to 0 on @p timeout will disable
16453     * the widget's internal timer, thus halting any slideshow which
16454     * could be happening on @p obj.
16455     *
16456     * @see elm_slideshow_timeout_get()
16457     *
16458     * @ingroup Slideshow
16459     */
16460    EAPI void                elm_slideshow_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
16461
16462    /**
16463     * Get the interval set for image transitions on a given slideshow
16464     * widget.
16465     *
16466     * @param obj The slideshow object
16467     * @return Returns the timeout set on it
16468     *
16469     * @see elm_slideshow_timeout_set() for more details
16470     *
16471     * @ingroup Slideshow
16472     */
16473    EAPI double              elm_slideshow_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16474
16475    /**
16476     * Set if, after a slideshow is started, for a given slideshow
16477     * widget, its items should be displayed cyclically or not.
16478     *
16479     * @param obj The slideshow object
16480     * @param loop Use @c EINA_TRUE to make it cycle through items or
16481     * @c EINA_FALSE for it to stop at the end of @p obj's internal
16482     * list of items
16483     *
16484     * @note elm_slideshow_next() and elm_slideshow_previous() will @b
16485     * ignore what is set by this functions, i.e., they'll @b always
16486     * cycle through items. This affects only the "automatic"
16487     * slideshow, as set by elm_slideshow_timeout_set().
16488     *
16489     * @see elm_slideshow_loop_get()
16490     *
16491     * @ingroup Slideshow
16492     */
16493    EAPI void                elm_slideshow_loop_set(Evas_Object *obj, Eina_Bool loop) EINA_ARG_NONNULL(1);
16494
16495    /**
16496     * Get if, after a slideshow is started, for a given slideshow
16497     * widget, its items are to be displayed cyclically or not.
16498     *
16499     * @param obj The slideshow object
16500     * @return @c EINA_TRUE, if the items in @p obj will be cycled
16501     * through or @c EINA_FALSE, otherwise
16502     *
16503     * @see elm_slideshow_loop_set() for more details
16504     *
16505     * @ingroup Slideshow
16506     */
16507    EAPI Eina_Bool           elm_slideshow_loop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16508
16509    /**
16510     * Remove all items from a given slideshow widget
16511     *
16512     * @param obj The slideshow object
16513     *
16514     * This removes (and deletes) all items in @p obj, leaving it
16515     * empty.
16516     *
16517     * @see elm_slideshow_item_del(), to remove just one item.
16518     *
16519     * @ingroup Slideshow
16520     */
16521    EAPI void                elm_slideshow_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
16522
16523    /**
16524     * Get the internal list of items in a given slideshow widget.
16525     *
16526     * @param obj The slideshow object
16527     * @return The list of items (#Elm_Slideshow_Item as data) or
16528     * @c NULL on errors.
16529     *
16530     * This list is @b not to be modified in any way and must not be
16531     * freed. Use the list members with functions like
16532     * elm_slideshow_item_del(), elm_slideshow_item_data_get().
16533     *
16534     * @warning This list is only valid until @p obj object's internal
16535     * items list is changed. It should be fetched again with another
16536     * call to this function when changes happen.
16537     *
16538     * @ingroup Slideshow
16539     */
16540    EAPI const Eina_List    *elm_slideshow_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16541
16542    /**
16543     * Delete a given item from a slideshow widget.
16544     *
16545     * @param item The slideshow item
16546     *
16547     * @ingroup Slideshow
16548     */
16549    EAPI void                elm_slideshow_item_del(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
16550
16551    /**
16552     * Return the data associated with a given slideshow item
16553     *
16554     * @param item The slideshow item
16555     * @return Returns the data associated to this item
16556     *
16557     * @ingroup Slideshow
16558     */
16559    EAPI void               *elm_slideshow_item_data_get(const Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
16560
16561    /**
16562     * Returns the currently displayed item, in a given slideshow widget
16563     *
16564     * @param obj The slideshow object
16565     * @return A handle to the item being displayed in @p obj or
16566     * @c NULL, if none is (and on errors)
16567     *
16568     * @ingroup Slideshow
16569     */
16570    EAPI Elm_Slideshow_Item *elm_slideshow_item_current_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16571
16572    /**
16573     * Get the real Evas object created to implement the view of a
16574     * given slideshow item
16575     *
16576     * @param item The slideshow item.
16577     * @return the Evas object implementing this item's view.
16578     *
16579     * This returns the actual Evas object used to implement the
16580     * specified slideshow item's view. This may be @c NULL, as it may
16581     * not have been created or may have been deleted, at any time, by
16582     * the slideshow. <b>Do not modify this object</b> (move, resize,
16583     * show, hide, etc.), as the slideshow is controlling it. This
16584     * function is for querying, emitting custom signals or hooking
16585     * lower level callbacks for events on that object. Do not delete
16586     * this object under any circumstances.
16587     *
16588     * @see elm_slideshow_item_data_get()
16589     *
16590     * @ingroup Slideshow
16591     */
16592    EAPI Evas_Object*        elm_slideshow_item_object_get(const Elm_Slideshow_Item* item) EINA_ARG_NONNULL(1);
16593
16594    /**
16595     * Get the the item, in a given slideshow widget, placed at
16596     * position @p nth, in its internal items list
16597     *
16598     * @param obj The slideshow object
16599     * @param nth The number of the item to grab a handle to (0 being
16600     * the first)
16601     * @return The item stored in @p obj at position @p nth or @c NULL,
16602     * if there's no item with that index (and on errors)
16603     *
16604     * @ingroup Slideshow
16605     */
16606    EAPI Elm_Slideshow_Item *elm_slideshow_item_nth_get(const Evas_Object *obj, unsigned int nth) EINA_ARG_NONNULL(1);
16607
16608    /**
16609     * Set the current slide layout in use for a given slideshow widget
16610     *
16611     * @param obj The slideshow object
16612     * @param layout The new layout's name string
16613     *
16614     * If @p layout is implemented in @p obj's theme (i.e., is contained
16615     * in the list returned by elm_slideshow_layouts_get()), this new
16616     * images layout will be used on the widget.
16617     *
16618     * @see elm_slideshow_layouts_get() for more details
16619     *
16620     * @ingroup Slideshow
16621     */
16622    EAPI void                elm_slideshow_layout_set(Evas_Object *obj, const char *layout) EINA_ARG_NONNULL(1);
16623
16624    /**
16625     * Get the current slide layout in use for a given slideshow widget
16626     *
16627     * @param obj The slideshow object
16628     * @return The current layout's name
16629     *
16630     * @see elm_slideshow_layout_set() for more details
16631     *
16632     * @ingroup Slideshow
16633     */
16634    EAPI const char         *elm_slideshow_layout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16635
16636    /**
16637     * Returns the list of @b layout names available, for a given
16638     * slideshow widget.
16639     *
16640     * @param obj The slideshow object
16641     * @return The list of layouts (list of @b stringshared strings
16642     * as data)
16643     *
16644     * Slideshow layouts will change how the widget is to dispose each
16645     * image item in its viewport, with regard to cropping, scaling,
16646     * etc.
16647     *
16648     * The layouts, which come from @p obj's theme, must be an EDC
16649     * data item name @c "layouts" on the theme file, with (prefix)
16650     * names of EDC programs actually implementing them.
16651     *
16652     * The available layouts for slideshows on the default theme are:
16653     * - @c "fullscreen" - item images with original aspect, scaled to
16654     *   touch top and down slideshow borders or, if the image's heigh
16655     *   is not enough, left and right slideshow borders.
16656     * - @c "not_fullscreen" - the same behavior as the @c "fullscreen"
16657     *   one, but always leaving 10% of the slideshow's dimensions of
16658     *   distance between the item image's borders and the slideshow
16659     *   borders, for each axis.
16660     *
16661     * @warning The stringshared strings get no new references
16662     * exclusive to the user grabbing the list, here, so if you'd like
16663     * to use them out of this call's context, you'd better @c
16664     * eina_stringshare_ref() them.
16665     *
16666     * @see elm_slideshow_layout_set()
16667     *
16668     * @ingroup Slideshow
16669     */
16670    EAPI const Eina_List    *elm_slideshow_layouts_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16671
16672    /**
16673     * Set the number of items to cache, on a given slideshow widget,
16674     * <b>before the current item</b>
16675     *
16676     * @param obj The slideshow object
16677     * @param count Number of items to cache before the current one
16678     *
16679     * The default value for this property is @c 2. See
16680     * @ref Slideshow_Caching "slideshow caching" for more details.
16681     *
16682     * @see elm_slideshow_cache_before_get()
16683     *
16684     * @ingroup Slideshow
16685     */
16686    EAPI void                elm_slideshow_cache_before_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
16687
16688    /**
16689     * Retrieve the number of items to cache, on a given slideshow widget,
16690     * <b>before the current item</b>
16691     *
16692     * @param obj The slideshow object
16693     * @return The number of items set to be cached before the current one
16694     *
16695     * @see elm_slideshow_cache_before_set() for more details
16696     *
16697     * @ingroup Slideshow
16698     */
16699    EAPI int                 elm_slideshow_cache_before_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16700
16701    /**
16702     * Set the number of items to cache, on a given slideshow widget,
16703     * <b>after the current item</b>
16704     *
16705     * @param obj The slideshow object
16706     * @param count Number of items to cache after the current one
16707     *
16708     * The default value for this property is @c 2. See
16709     * @ref Slideshow_Caching "slideshow caching" for more details.
16710     *
16711     * @see elm_slideshow_cache_after_get()
16712     *
16713     * @ingroup Slideshow
16714     */
16715    EAPI void                elm_slideshow_cache_after_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
16716
16717    /**
16718     * Retrieve the number of items to cache, on a given slideshow widget,
16719     * <b>after the current item</b>
16720     *
16721     * @param obj The slideshow object
16722     * @return The number of items set to be cached after the current one
16723     *
16724     * @see elm_slideshow_cache_after_set() for more details
16725     *
16726     * @ingroup Slideshow
16727     */
16728    EAPI int                 elm_slideshow_cache_after_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16729
16730    /**
16731     * Get the number of items stored in a given slideshow widget
16732     *
16733     * @param obj The slideshow object
16734     * @return The number of items on @p obj, at the moment of this call
16735     *
16736     * @ingroup Slideshow
16737     */
16738    EAPI unsigned int        elm_slideshow_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16739
16740    /**
16741     * @}
16742     */
16743
16744    /**
16745     * @defgroup Fileselector File Selector
16746     *
16747     * @image html img/widget/fileselector/preview-00.png
16748     * @image latex img/widget/fileselector/preview-00.eps
16749     *
16750     * A file selector is a widget that allows a user to navigate
16751     * through a file system, reporting file selections back via its
16752     * API.
16753     *
16754     * It contains shortcut buttons for home directory (@c ~) and to
16755     * jump one directory upwards (..), as well as cancel/ok buttons to
16756     * confirm/cancel a given selection. After either one of those two
16757     * former actions, the file selector will issue its @c "done" smart
16758     * callback.
16759     *
16760     * There's a text entry on it, too, showing the name of the current
16761     * selection. There's the possibility of making it editable, so it
16762     * is useful on file saving dialogs on applications, where one
16763     * gives a file name to save contents to, in a given directory in
16764     * the system. This custom file name will be reported on the @c
16765     * "done" smart callback (explained in sequence).
16766     *
16767     * Finally, it has a view to display file system items into in two
16768     * possible forms:
16769     * - list
16770     * - grid
16771     *
16772     * If Elementary is built with support of the Ethumb thumbnailing
16773     * library, the second form of view will display preview thumbnails
16774     * of files which it supports.
16775     *
16776     * Smart callbacks one can register to:
16777     *
16778     * - @c "selected" - the user has clicked on a file (when not in
16779     *      folders-only mode) or directory (when in folders-only mode)
16780     * - @c "directory,open" - the list has been populated with new
16781     *      content (@c event_info is a pointer to the directory's
16782     *      path, a @b stringshared string)
16783     * - @c "done" - the user has clicked on the "ok" or "cancel"
16784     *      buttons (@c event_info is a pointer to the selection's
16785     *      path, a @b stringshared string)
16786     *
16787     * Here is an example on its usage:
16788     * @li @ref fileselector_example
16789     */
16790
16791    /**
16792     * @addtogroup Fileselector
16793     * @{
16794     */
16795
16796    /**
16797     * Defines how a file selector widget is to layout its contents
16798     * (file system entries).
16799     */
16800    typedef enum _Elm_Fileselector_Mode
16801      {
16802         ELM_FILESELECTOR_LIST = 0, /**< layout as a list */
16803         ELM_FILESELECTOR_GRID, /**< layout as a grid */
16804         ELM_FILESELECTOR_LAST /**< sentinel (helper) value, not used */
16805      } Elm_Fileselector_Mode;
16806
16807    /**
16808     * Add a new file selector widget to the given parent Elementary
16809     * (container) object
16810     *
16811     * @param parent The parent object
16812     * @return a new file selector widget handle or @c NULL, on errors
16813     *
16814     * This function inserts a new file selector widget on the canvas.
16815     *
16816     * @ingroup Fileselector
16817     */
16818    EAPI Evas_Object          *elm_fileselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16819
16820    /**
16821     * Enable/disable the file name entry box where the user can type
16822     * in a name for a file, in a given file selector widget
16823     *
16824     * @param obj The file selector object
16825     * @param is_save @c EINA_TRUE to make the file selector a "saving
16826     * dialog", @c EINA_FALSE otherwise
16827     *
16828     * Having the entry editable is useful on file saving dialogs on
16829     * applications, where one gives a file name to save contents to,
16830     * in a given directory in the system. This custom file name will
16831     * be reported on the @c "done" smart callback.
16832     *
16833     * @see elm_fileselector_is_save_get()
16834     *
16835     * @ingroup Fileselector
16836     */
16837    EAPI void                  elm_fileselector_is_save_set(Evas_Object *obj, Eina_Bool is_save) EINA_ARG_NONNULL(1);
16838
16839    /**
16840     * Get whether the given file selector is in "saving dialog" mode
16841     *
16842     * @param obj The file selector object
16843     * @return @c EINA_TRUE, if the file selector is in "saving dialog"
16844     * mode, @c EINA_FALSE otherwise (and on errors)
16845     *
16846     * @see elm_fileselector_is_save_set() for more details
16847     *
16848     * @ingroup Fileselector
16849     */
16850    EAPI Eina_Bool             elm_fileselector_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16851
16852    /**
16853     * Enable/disable folder-only view for a given file selector widget
16854     *
16855     * @param obj The file selector object
16856     * @param only @c EINA_TRUE to make @p obj only display
16857     * directories, @c EINA_FALSE to make files to be displayed in it
16858     * too
16859     *
16860     * If enabled, the widget's view will only display folder items,
16861     * naturally.
16862     *
16863     * @see elm_fileselector_folder_only_get()
16864     *
16865     * @ingroup Fileselector
16866     */
16867    EAPI void                  elm_fileselector_folder_only_set(Evas_Object *obj, Eina_Bool only) EINA_ARG_NONNULL(1);
16868
16869    /**
16870     * Get whether folder-only view is set for a given file selector
16871     * widget
16872     *
16873     * @param obj The file selector object
16874     * @return only @c EINA_TRUE if @p obj is only displaying
16875     * directories, @c EINA_FALSE if files are being displayed in it
16876     * too (and on errors)
16877     *
16878     * @see elm_fileselector_folder_only_get()
16879     *
16880     * @ingroup Fileselector
16881     */
16882    EAPI Eina_Bool             elm_fileselector_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16883
16884    /**
16885     * Enable/disable the "ok" and "cancel" buttons on a given file
16886     * selector widget
16887     *
16888     * @param obj The file selector object
16889     * @param only @c EINA_TRUE to show them, @c EINA_FALSE to hide.
16890     *
16891     * @note A file selector without those buttons will never emit the
16892     * @c "done" smart event, and is only usable if one is just hooking
16893     * to the other two events.
16894     *
16895     * @see elm_fileselector_buttons_ok_cancel_get()
16896     *
16897     * @ingroup Fileselector
16898     */
16899    EAPI void                  elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool buttons) EINA_ARG_NONNULL(1);
16900
16901    /**
16902     * Get whether the "ok" and "cancel" buttons on a given file
16903     * selector widget are being shown.
16904     *
16905     * @param obj The file selector object
16906     * @return @c EINA_TRUE if they are being shown, @c EINA_FALSE
16907     * otherwise (and on errors)
16908     *
16909     * @see elm_fileselector_buttons_ok_cancel_set() for more details
16910     *
16911     * @ingroup Fileselector
16912     */
16913    EAPI Eina_Bool             elm_fileselector_buttons_ok_cancel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16914
16915    /**
16916     * Enable/disable a tree view in the given file selector widget,
16917     * <b>if it's in @c #ELM_FILESELECTOR_LIST mode</b>
16918     *
16919     * @param obj The file selector object
16920     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
16921     * disable
16922     *
16923     * In a tree view, arrows are created on the sides of directories,
16924     * allowing them to expand in place.
16925     *
16926     * @note If it's in other mode, the changes made by this function
16927     * will only be visible when one switches back to "list" mode.
16928     *
16929     * @see elm_fileselector_expandable_get()
16930     *
16931     * @ingroup Fileselector
16932     */
16933    EAPI void                  elm_fileselector_expandable_set(Evas_Object *obj, Eina_Bool expand) EINA_ARG_NONNULL(1);
16934
16935    /**
16936     * Get whether tree view is enabled for the given file selector
16937     * widget
16938     *
16939     * @param obj The file selector object
16940     * @return @c EINA_TRUE if @p obj is in tree view, @c EINA_FALSE
16941     * otherwise (and or errors)
16942     *
16943     * @see elm_fileselector_expandable_set() for more details
16944     *
16945     * @ingroup Fileselector
16946     */
16947    EAPI Eina_Bool             elm_fileselector_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16948
16949    /**
16950     * Set, programmatically, the @b directory that a given file
16951     * selector widget will display contents from
16952     *
16953     * @param obj The file selector object
16954     * @param path The path to display in @p obj
16955     *
16956     * This will change the @b directory that @p obj is displaying. It
16957     * will also clear the text entry area on the @p obj object, which
16958     * displays select files' names.
16959     *
16960     * @see elm_fileselector_path_get()
16961     *
16962     * @ingroup Fileselector
16963     */
16964    EAPI void                  elm_fileselector_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
16965
16966    /**
16967     * Get the parent directory's path that a given file selector
16968     * widget is displaying
16969     *
16970     * @param obj The file selector object
16971     * @return The (full) path of the directory the file selector is
16972     * displaying, a @b stringshared string
16973     *
16974     * @see elm_fileselector_path_set()
16975     *
16976     * @ingroup Fileselector
16977     */
16978    EAPI const char           *elm_fileselector_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16979
16980    /**
16981     * Set, programmatically, the currently selected file/directory in
16982     * the given file selector widget
16983     *
16984     * @param obj The file selector object
16985     * @param path The (full) path to a file or directory
16986     * @return @c EINA_TRUE on success, @c EINA_FALSE on failure. The
16987     * latter case occurs if the directory or file pointed to do not
16988     * exist.
16989     *
16990     * @see elm_fileselector_selected_get()
16991     *
16992     * @ingroup Fileselector
16993     */
16994    EAPI Eina_Bool             elm_fileselector_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
16995
16996    /**
16997     * Get the currently selected item's (full) path, in the given file
16998     * selector widget
16999     *
17000     * @param obj The file selector object
17001     * @return The absolute path of the selected item, a @b
17002     * stringshared string
17003     *
17004     * @note Custom editions on @p obj object's text entry, if made,
17005     * will appear on the return string of this function, naturally.
17006     *
17007     * @see elm_fileselector_selected_set() for more details
17008     *
17009     * @ingroup Fileselector
17010     */
17011    EAPI const char           *elm_fileselector_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17012
17013    /**
17014     * Set the mode in which a given file selector widget will display
17015     * (layout) file system entries in its view
17016     *
17017     * @param obj The file selector object
17018     * @param mode The mode of the fileselector, being it one of
17019     * #ELM_FILESELECTOR_LIST (default) or #ELM_FILESELECTOR_GRID. The
17020     * first one, naturally, will display the files in a list. The
17021     * latter will make the widget to display its entries in a grid
17022     * form.
17023     *
17024     * @note By using elm_fileselector_expandable_set(), the user may
17025     * trigger a tree view for that list.
17026     *
17027     * @note If Elementary is built with support of the Ethumb
17028     * thumbnailing library, the second form of view will display
17029     * preview thumbnails of files which it supports. You must have
17030     * elm_need_ethumb() called in your Elementary for thumbnailing to
17031     * work, though.
17032     *
17033     * @see elm_fileselector_expandable_set().
17034     * @see elm_fileselector_mode_get().
17035     *
17036     * @ingroup Fileselector
17037     */
17038    EAPI void                  elm_fileselector_mode_set(Evas_Object *obj, Elm_Fileselector_Mode mode) EINA_ARG_NONNULL(1);
17039
17040    /**
17041     * Get the mode in which a given file selector widget is displaying
17042     * (layouting) file system entries in its view
17043     *
17044     * @param obj The fileselector object
17045     * @return The mode in which the fileselector is at
17046     *
17047     * @see elm_fileselector_mode_set() for more details
17048     *
17049     * @ingroup Fileselector
17050     */
17051    EAPI Elm_Fileselector_Mode elm_fileselector_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17052
17053    /**
17054     * @}
17055     */
17056
17057    /**
17058     * @defgroup Progressbar Progress bar
17059     *
17060     * The progress bar is a widget for visually representing the
17061     * progress status of a given job/task.
17062     *
17063     * A progress bar may be horizontal or vertical. It may display an
17064     * icon besides it, as well as primary and @b units labels. The
17065     * former is meant to label the widget as a whole, while the
17066     * latter, which is formatted with floating point values (and thus
17067     * accepts a <c>printf</c>-style format string, like <c>"%1.2f
17068     * units"</c>), is meant to label the widget's <b>progress
17069     * value</b>. Label, icon and unit strings/objects are @b optional
17070     * for progress bars.
17071     *
17072     * A progress bar may be @b inverted, in which state it gets its
17073     * values inverted, with high values being on the left or top and
17074     * low values on the right or bottom, as opposed to normally have
17075     * the low values on the former and high values on the latter,
17076     * respectively, for horizontal and vertical modes.
17077     *
17078     * The @b span of the progress, as set by
17079     * elm_progressbar_span_size_set(), is its length (horizontally or
17080     * vertically), unless one puts size hints on the widget to expand
17081     * on desired directions, by any container. That length will be
17082     * scaled by the object or applications scaling factor. At any
17083     * point code can query the progress bar for its value with
17084     * elm_progressbar_value_get().
17085     *
17086     * Available widget styles for progress bars:
17087     * - @c "default"
17088     * - @c "wheel" (simple style, no text, no progression, only
17089     *      "pulse" effect is available)
17090     *
17091     * Here is an example on its usage:
17092     * @li @ref progressbar_example
17093     */
17094
17095    /**
17096     * Add a new progress bar widget to the given parent Elementary
17097     * (container) object
17098     *
17099     * @param parent The parent object
17100     * @return a new progress bar widget handle or @c NULL, on errors
17101     *
17102     * This function inserts a new progress bar widget on the canvas.
17103     *
17104     * @ingroup Progressbar
17105     */
17106    EAPI Evas_Object *elm_progressbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
17107
17108    /**
17109     * Set whether a given progress bar widget is at "pulsing mode" or
17110     * not.
17111     *
17112     * @param obj The progress bar object
17113     * @param pulse @c EINA_TRUE to put @p obj in pulsing mode,
17114     * @c EINA_FALSE to put it back to its default one
17115     *
17116     * By default, progress bars will display values from the low to
17117     * high value boundaries. There are, though, contexts in which the
17118     * state of progression of a given task is @b unknown.  For those,
17119     * one can set a progress bar widget to a "pulsing state", to give
17120     * the user an idea that some computation is being held, but
17121     * without exact progress values. In the default theme it will
17122     * animate its bar with the contents filling in constantly and back
17123     * to non-filled, in a loop. To start and stop this pulsing
17124     * animation, one has to explicitly call elm_progressbar_pulse().
17125     *
17126     * @see elm_progressbar_pulse_get()
17127     * @see elm_progressbar_pulse()
17128     *
17129     * @ingroup Progressbar
17130     */
17131    EAPI void         elm_progressbar_pulse_set(Evas_Object *obj, Eina_Bool pulse) EINA_ARG_NONNULL(1);
17132
17133    /**
17134     * Get whether a given progress bar widget is at "pulsing mode" or
17135     * not.
17136     *
17137     * @param obj The progress bar object
17138     * @return @c EINA_TRUE, if @p obj is in pulsing mode, @c EINA_FALSE
17139     * if it's in the default one (and on errors)
17140     *
17141     * @ingroup Progressbar
17142     */
17143    EAPI Eina_Bool    elm_progressbar_pulse_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17144
17145    /**
17146     * Start/stop a given progress bar "pulsing" animation, if its
17147     * under that mode
17148     *
17149     * @param obj The progress bar object
17150     * @param state @c EINA_TRUE, to @b start the pulsing animation,
17151     * @c EINA_FALSE to @b stop it
17152     *
17153     * @note This call won't do anything if @p obj is not under "pulsing mode".
17154     *
17155     * @see elm_progressbar_pulse_set() for more details.
17156     *
17157     * @ingroup Progressbar
17158     */
17159    EAPI void         elm_progressbar_pulse(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
17160
17161    /**
17162     * Set the progress value (in percentage) on a given progress bar
17163     * widget
17164     *
17165     * @param obj The progress bar object
17166     * @param val The progress value (@b must be between @c 0.0 and @c
17167     * 1.0)
17168     *
17169     * Use this call to set progress bar levels.
17170     *
17171     * @note If you passes a value out of the specified range for @p
17172     * val, it will be interpreted as the @b closest of the @b boundary
17173     * values in the range.
17174     *
17175     * @ingroup Progressbar
17176     */
17177    EAPI void         elm_progressbar_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
17178
17179    /**
17180     * Get the progress value (in percentage) on a given progress bar
17181     * widget
17182     *
17183     * @param obj The progress bar object
17184     * @return The value of the progressbar
17185     *
17186     * @see elm_progressbar_value_set() for more details
17187     *
17188     * @ingroup Progressbar
17189     */
17190    EAPI double       elm_progressbar_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17191
17192    /**
17193     * Set the label of a given progress bar widget
17194     *
17195     * @param obj The progress bar object
17196     * @param label The text label string, in UTF-8
17197     *
17198     * @ingroup Progressbar
17199     * @deprecated use elm_object_text_set() instead.
17200     */
17201    EINA_DEPRECATED EAPI void         elm_progressbar_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
17202
17203    /**
17204     * Get the label of a given progress bar widget
17205     *
17206     * @param obj The progressbar object
17207     * @return The text label string, in UTF-8
17208     *
17209     * @ingroup Progressbar
17210     * @deprecated use elm_object_text_set() instead.
17211     */
17212    EINA_DEPRECATED EAPI const char  *elm_progressbar_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17213
17214    /**
17215     * Set the icon object of a given progress bar widget
17216     *
17217     * @param obj The progress bar object
17218     * @param icon The icon object
17219     *
17220     * Use this call to decorate @p obj with an icon next to it.
17221     *
17222     * @note Once the icon object is set, a previously set one will be
17223     * deleted. If you want to keep that old content object, use the
17224     * elm_progressbar_icon_unset() function.
17225     *
17226     * @see elm_progressbar_icon_get()
17227     *
17228     * @ingroup Progressbar
17229     */
17230    EAPI void         elm_progressbar_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
17231
17232    /**
17233     * Retrieve the icon object set for a given progress bar widget
17234     *
17235     * @param obj The progress bar object
17236     * @return The icon object's handle, if @p obj had one set, or @c NULL,
17237     * otherwise (and on errors)
17238     *
17239     * @see elm_progressbar_icon_set() for more details
17240     *
17241     * @ingroup Progressbar
17242     */
17243    EAPI Evas_Object *elm_progressbar_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17244
17245    /**
17246     * Unset an icon set on a given progress bar widget
17247     *
17248     * @param obj The progress bar object
17249     * @return The icon object that was being used, if any was set, or
17250     * @c NULL, otherwise (and on errors)
17251     *
17252     * This call will unparent and return the icon object which was set
17253     * for this widget, previously, on success.
17254     *
17255     * @see elm_progressbar_icon_set() for more details
17256     *
17257     * @ingroup Progressbar
17258     */
17259    EAPI Evas_Object *elm_progressbar_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
17260
17261    /**
17262     * Set the (exact) length of the bar region of a given progress bar
17263     * widget
17264     *
17265     * @param obj The progress bar object
17266     * @param size The length of the progress bar's bar region
17267     *
17268     * This sets the minimum width (when in horizontal mode) or height
17269     * (when in vertical mode) of the actual bar area of the progress
17270     * bar @p obj. This in turn affects the object's minimum size. Use
17271     * this when you're not setting other size hints expanding on the
17272     * given direction (like weight and alignment hints) and you would
17273     * like it to have a specific size.
17274     *
17275     * @note Icon, label and unit text around @p obj will require their
17276     * own space, which will make @p obj to require more the @p size,
17277     * actually.
17278     *
17279     * @see elm_progressbar_span_size_get()
17280     *
17281     * @ingroup Progressbar
17282     */
17283    EAPI void         elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
17284
17285    /**
17286     * Get the length set for the bar region of a given progress bar
17287     * widget
17288     *
17289     * @param obj The progress bar object
17290     * @return The length of the progress bar's bar region
17291     *
17292     * If that size was not set previously, with
17293     * elm_progressbar_span_size_set(), this call will return @c 0.
17294     *
17295     * @ingroup Progressbar
17296     */
17297    EAPI Evas_Coord   elm_progressbar_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17298
17299    /**
17300     * Set the format string for a given progress bar widget's units
17301     * label
17302     *
17303     * @param obj The progress bar object
17304     * @param format The format string for @p obj's units label
17305     *
17306     * If @c NULL is passed on @p format, it will make @p obj's units
17307     * area to be hidden completely. If not, it'll set the <b>format
17308     * string</b> for the units label's @b text. The units label is
17309     * provided a floating point value, so the units text is up display
17310     * at most one floating point falue. Note that the units label is
17311     * optional. Use a format string such as "%1.2f meters" for
17312     * example.
17313     *
17314     * @note The default format string for a progress bar is an integer
17315     * percentage, as in @c "%.0f %%".
17316     *
17317     * @see elm_progressbar_unit_format_get()
17318     *
17319     * @ingroup Progressbar
17320     */
17321    EAPI void         elm_progressbar_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
17322
17323    /**
17324     * Retrieve the format string set for a given progress bar widget's
17325     * units label
17326     *
17327     * @param obj The progress bar object
17328     * @return The format set string for @p obj's units label or
17329     * @c NULL, if none was set (and on errors)
17330     *
17331     * @see elm_progressbar_unit_format_set() for more details
17332     *
17333     * @ingroup Progressbar
17334     */
17335    EAPI const char  *elm_progressbar_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17336
17337    /**
17338     * Set the orientation of a given progress bar widget
17339     *
17340     * @param obj The progress bar object
17341     * @param horizontal Use @c EINA_TRUE to make @p obj to be
17342     * @b horizontal, @c EINA_FALSE to make it @b vertical
17343     *
17344     * Use this function to change how your progress bar is to be
17345     * disposed: vertically or horizontally.
17346     *
17347     * @see elm_progressbar_horizontal_get()
17348     *
17349     * @ingroup Progressbar
17350     */
17351    EAPI void         elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
17352
17353    /**
17354     * Retrieve the orientation of a given progress bar widget
17355     *
17356     * @param obj The progress bar object
17357     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
17358     * @c EINA_FALSE if it's @b vertical (and on errors)
17359     *
17360     * @see elm_progressbar_horizontal_set() for more details
17361     *
17362     * @ingroup Progressbar
17363     */
17364    EAPI Eina_Bool    elm_progressbar_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17365
17366    /**
17367     * Invert a given progress bar widget's displaying values order
17368     *
17369     * @param obj The progress bar object
17370     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
17371     * @c EINA_FALSE to bring it back to default, non-inverted values.
17372     *
17373     * A progress bar may be @b inverted, in which state it gets its
17374     * values inverted, with high values being on the left or top and
17375     * low values on the right or bottom, as opposed to normally have
17376     * the low values on the former and high values on the latter,
17377     * respectively, for horizontal and vertical modes.
17378     *
17379     * @see elm_progressbar_inverted_get()
17380     *
17381     * @ingroup Progressbar
17382     */
17383    EAPI void         elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
17384
17385    /**
17386     * Get whether a given progress bar widget's displaying values are
17387     * inverted or not
17388     *
17389     * @param obj The progress bar object
17390     * @return @c EINA_TRUE, if @p obj has inverted values,
17391     * @c EINA_FALSE otherwise (and on errors)
17392     *
17393     * @see elm_progressbar_inverted_set() for more details
17394     *
17395     * @ingroup Progressbar
17396     */
17397    EAPI Eina_Bool    elm_progressbar_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17398
17399    /**
17400     * @defgroup Separator Separator
17401     *
17402     * @brief Separator is a very thin object used to separate other objects.
17403     *
17404     * A separator can be vertical or horizontal.
17405     *
17406     * @ref tutorial_separator is a good example of how to use a separator.
17407     * @{
17408     */
17409    /**
17410     * @brief Add a separator object to @p parent
17411     *
17412     * @param parent The parent object
17413     *
17414     * @return The separator object, or NULL upon failure
17415     */
17416    EAPI Evas_Object *elm_separator_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
17417    /**
17418     * @brief Set the horizontal mode of a separator object
17419     *
17420     * @param obj The separator object
17421     * @param horizontal If true, the separator is horizontal
17422     */
17423    EAPI void         elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
17424    /**
17425     * @brief Get the horizontal mode of a separator object
17426     *
17427     * @param obj The separator object
17428     * @return If true, the separator is horizontal
17429     *
17430     * @see elm_separator_horizontal_set()
17431     */
17432    EAPI Eina_Bool    elm_separator_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17433    /**
17434     * @}
17435     */
17436
17437    /**
17438     * @defgroup Spinner Spinner
17439     * @ingroup Elementary
17440     *
17441     * @image html img/widget/spinner/preview-00.png
17442     * @image latex img/widget/spinner/preview-00.eps
17443     *
17444     * A spinner is a widget which allows the user to increase or decrease
17445     * numeric values using arrow buttons, or edit values directly, clicking
17446     * over it and typing the new value.
17447     *
17448     * By default the spinner will not wrap and has a label
17449     * of "%.0f" (just showing the integer value of the double).
17450     *
17451     * A spinner has a label that is formatted with floating
17452     * point values and thus accepts a printf-style format string, like
17453     * “%1.2f units”.
17454     *
17455     * It also allows specific values to be replaced by pre-defined labels.
17456     *
17457     * Smart callbacks one can register to:
17458     *
17459     * - "changed" - Whenever the spinner value is changed.
17460     * - "delay,changed" - A short time after the value is changed by the user.
17461     *    This will be called only when the user stops dragging for a very short
17462     *    period or when they release their finger/mouse, so it avoids possibly
17463     *    expensive reactions to the value change.
17464     *
17465     * Available styles for it:
17466     * - @c "default";
17467     * - @c "vertical": up/down buttons at the right side and text left aligned.
17468     *
17469     * Here is an example on its usage:
17470     * @ref spinner_example
17471     */
17472
17473    /**
17474     * @addtogroup Spinner
17475     * @{
17476     */
17477
17478    /**
17479     * Add a new spinner widget to the given parent Elementary
17480     * (container) object.
17481     *
17482     * @param parent The parent object.
17483     * @return a new spinner widget handle or @c NULL, on errors.
17484     *
17485     * This function inserts a new spinner widget on the canvas.
17486     *
17487     * @ingroup Spinner
17488     *
17489     */
17490    EAPI Evas_Object *elm_spinner_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
17491
17492    /**
17493     * Set the format string of the displayed label.
17494     *
17495     * @param obj The spinner object.
17496     * @param fmt The format string for the label display.
17497     *
17498     * If @c NULL, this sets the format to "%.0f". If not it sets the format
17499     * string for the label text. The label text is provided a floating point
17500     * value, so the label text can display up to 1 floating point value.
17501     * Note that this is optional.
17502     *
17503     * Use a format string such as "%1.2f meters" for example, and it will
17504     * display values like: "3.14 meters" for a value equal to 3.14159.
17505     *
17506     * Default is "%0.f".
17507     *
17508     * @see elm_spinner_label_format_get()
17509     *
17510     * @ingroup Spinner
17511     */
17512    EAPI void         elm_spinner_label_format_set(Evas_Object *obj, const char *fmt) EINA_ARG_NONNULL(1);
17513
17514    /**
17515     * Get the label format of the spinner.
17516     *
17517     * @param obj The spinner object.
17518     * @return The text label format string in UTF-8.
17519     *
17520     * @see elm_spinner_label_format_set() for details.
17521     *
17522     * @ingroup Spinner
17523     */
17524    EAPI const char  *elm_spinner_label_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17525
17526    /**
17527     * Set the minimum and maximum values for the spinner.
17528     *
17529     * @param obj The spinner object.
17530     * @param min The minimum value.
17531     * @param max The maximum value.
17532     *
17533     * Define the allowed range of values to be selected by the user.
17534     *
17535     * If actual value is less than @p min, it will be updated to @p min. If it
17536     * is bigger then @p max, will be updated to @p max. Actual value can be
17537     * get with elm_spinner_value_get().
17538     *
17539     * By default, min is equal to 0, and max is equal to 100.
17540     *
17541     * @warning Maximum must be greater than minimum.
17542     *
17543     * @see elm_spinner_min_max_get()
17544     *
17545     * @ingroup Spinner
17546     */
17547    EAPI void         elm_spinner_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
17548
17549    /**
17550     * Get the minimum and maximum values of the spinner.
17551     *
17552     * @param obj The spinner object.
17553     * @param min Pointer where to store the minimum value.
17554     * @param max Pointer where to store the maximum value.
17555     *
17556     * @note If only one value is needed, the other pointer can be passed
17557     * as @c NULL.
17558     *
17559     * @see elm_spinner_min_max_set() for details.
17560     *
17561     * @ingroup Spinner
17562     */
17563    EAPI void         elm_spinner_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
17564
17565    /**
17566     * Set the step used to increment or decrement the spinner value.
17567     *
17568     * @param obj The spinner object.
17569     * @param step The step value.
17570     *
17571     * This value will be incremented or decremented to the displayed value.
17572     * It will be incremented while the user keep right or top arrow pressed,
17573     * and will be decremented while the user keep left or bottom arrow pressed.
17574     *
17575     * The interval to increment / decrement can be set with
17576     * elm_spinner_interval_set().
17577     *
17578     * By default step value is equal to 1.
17579     *
17580     * @see elm_spinner_step_get()
17581     *
17582     * @ingroup Spinner
17583     */
17584    EAPI void         elm_spinner_step_set(Evas_Object *obj, double step) EINA_ARG_NONNULL(1);
17585
17586    /**
17587     * Get the step used to increment or decrement the spinner value.
17588     *
17589     * @param obj The spinner object.
17590     * @return The step value.
17591     *
17592     * @see elm_spinner_step_get() for more details.
17593     *
17594     * @ingroup Spinner
17595     */
17596    EAPI double       elm_spinner_step_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17597
17598    /**
17599     * Set the value the spinner displays.
17600     *
17601     * @param obj The spinner object.
17602     * @param val The value to be displayed.
17603     *
17604     * Value will be presented on the label following format specified with
17605     * elm_spinner_format_set().
17606     *
17607     * @warning The value must to be between min and max values. This values
17608     * are set by elm_spinner_min_max_set().
17609     *
17610     * @see elm_spinner_value_get().
17611     * @see elm_spinner_format_set().
17612     * @see elm_spinner_min_max_set().
17613     *
17614     * @ingroup Spinner
17615     */
17616    EAPI void         elm_spinner_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
17617
17618    /**
17619     * Get the value displayed by the spinner.
17620     *
17621     * @param obj The spinner object.
17622     * @return The value displayed.
17623     *
17624     * @see elm_spinner_value_set() for details.
17625     *
17626     * @ingroup Spinner
17627     */
17628    EAPI double       elm_spinner_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17629
17630    /**
17631     * Set whether the spinner should wrap when it reaches its
17632     * minimum or maximum value.
17633     *
17634     * @param obj The spinner object.
17635     * @param wrap @c EINA_TRUE to enable wrap or @c EINA_FALSE to
17636     * disable it.
17637     *
17638     * Disabled by default. If disabled, when the user tries to increment the
17639     * value,
17640     * but displayed value plus step value is bigger than maximum value,
17641     * the spinner
17642     * won't allow it. The same happens when the user tries to decrement it,
17643     * but the value less step is less than minimum value.
17644     *
17645     * When wrap is enabled, in such situations it will allow these changes,
17646     * but will get the value that would be less than minimum and subtracts
17647     * from maximum. Or add the value that would be more than maximum to
17648     * the minimum.
17649     *
17650     * E.g.:
17651     * @li min value = 10
17652     * @li max value = 50
17653     * @li step value = 20
17654     * @li displayed value = 20
17655     *
17656     * When the user decrement value (using left or bottom arrow), it will
17657     * displays @c 40, because max - (min - (displayed - step)) is
17658     * @c 50 - (@c 10 - (@c 20 - @c 20)) = @c 40.
17659     *
17660     * @see elm_spinner_wrap_get().
17661     *
17662     * @ingroup Spinner
17663     */
17664    EAPI void         elm_spinner_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
17665
17666    /**
17667     * Get whether the spinner should wrap when it reaches its
17668     * minimum or maximum value.
17669     *
17670     * @param obj The spinner object
17671     * @return @c EINA_TRUE means wrap is enabled. @c EINA_FALSE indicates
17672     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
17673     *
17674     * @see elm_spinner_wrap_set() for details.
17675     *
17676     * @ingroup Spinner
17677     */
17678    EAPI Eina_Bool    elm_spinner_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17679
17680    /**
17681     * Set whether the spinner can be directly edited by the user or not.
17682     *
17683     * @param obj The spinner object.
17684     * @param editable @c EINA_TRUE to allow users to edit it or @c EINA_FALSE to
17685     * don't allow users to edit it directly.
17686     *
17687     * Spinner objects can have edition @b disabled, in which state they will
17688     * be changed only by arrows.
17689     * Useful for contexts
17690     * where you don't want your users to interact with it writting the value.
17691     * Specially
17692     * when using special values, the user can see real value instead
17693     * of special label on edition.
17694     *
17695     * It's enabled by default.
17696     *
17697     * @see elm_spinner_editable_get()
17698     *
17699     * @ingroup Spinner
17700     */
17701    EAPI void         elm_spinner_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
17702
17703    /**
17704     * Get whether the spinner can be directly edited by the user or not.
17705     *
17706     * @param obj The spinner object.
17707     * @return @c EINA_TRUE means edition is enabled. @c EINA_FALSE indicates
17708     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
17709     *
17710     * @see elm_spinner_editable_set() for details.
17711     *
17712     * @ingroup Spinner
17713     */
17714    EAPI Eina_Bool    elm_spinner_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17715
17716    /**
17717     * Set a special string to display in the place of the numerical value.
17718     *
17719     * @param obj The spinner object.
17720     * @param value The value to be replaced.
17721     * @param label The label to be used.
17722     *
17723     * It's useful for cases when a user should select an item that is
17724     * better indicated by a label than a value. For example, weekdays or months.
17725     *
17726     * E.g.:
17727     * @code
17728     * sp = elm_spinner_add(win);
17729     * elm_spinner_min_max_set(sp, 1, 3);
17730     * elm_spinner_special_value_add(sp, 1, "January");
17731     * elm_spinner_special_value_add(sp, 2, "February");
17732     * elm_spinner_special_value_add(sp, 3, "March");
17733     * evas_object_show(sp);
17734     * @endcode
17735     *
17736     * @ingroup Spinner
17737     */
17738    EAPI void         elm_spinner_special_value_add(Evas_Object *obj, double value, const char *label) EINA_ARG_NONNULL(1);
17739
17740    /**
17741     * Set the interval on time updates for an user mouse button hold
17742     * on spinner widgets' arrows.
17743     *
17744     * @param obj The spinner object.
17745     * @param interval The (first) interval value in seconds.
17746     *
17747     * This interval value is @b decreased while the user holds the
17748     * mouse pointer either incrementing or decrementing spinner's value.
17749     *
17750     * This helps the user to get to a given value distant from the
17751     * current one easier/faster, as it will start to change quicker and
17752     * quicker on mouse button holds.
17753     *
17754     * The calculation for the next change interval value, starting from
17755     * the one set with this call, is the previous interval divided by
17756     * @c 1.05, so it decreases a little bit.
17757     *
17758     * The default starting interval value for automatic changes is
17759     * @c 0.85 seconds.
17760     *
17761     * @see elm_spinner_interval_get()
17762     *
17763     * @ingroup Spinner
17764     */
17765    EAPI void         elm_spinner_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
17766
17767    /**
17768     * Get the interval on time updates for an user mouse button hold
17769     * on spinner widgets' arrows.
17770     *
17771     * @param obj The spinner object.
17772     * @return The (first) interval value, in seconds, set on it.
17773     *
17774     * @see elm_spinner_interval_set() for more details.
17775     *
17776     * @ingroup Spinner
17777     */
17778    EAPI double       elm_spinner_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17779
17780    /**
17781     * @}
17782     */
17783
17784    /**
17785     * @defgroup Index Index
17786     *
17787     * @image html img/widget/index/preview-00.png
17788     *
17789     * An index widget gives you an index for fast access to whichever
17790     * group of other UI items one might have. It's a list of text
17791     * items (usually letters, for alphabetically ordered access).
17792     *
17793     * Index widgets are by default hidden and just appear when the
17794     * user clicks over it's reserved area in the canvas. In its
17795     * default theme, it's an area one @ref Fingers "finger" wide on
17796     * the right side of the index widget's container.
17797     *
17798     * When items on the index are selected, smart callbacks get
17799     * called, so that its user can make other container objects to
17800     * show a given area or child object depending on the index item
17801     * selected. You'd probably be using an index together with @ref
17802     * List "lists", @ref Genlist "generic lists" or @ref Gengrid
17803     * "general grids".
17804     *
17805     * Smart events one  can add callbacks for are:
17806     * - @c "changed" - When the selected index item changes. @c
17807     *      event_info is the selected item's data pointer.
17808     * - @c "delay,changed" - When the selected index item changes, but
17809     *      after a small idling period. @c event_info is the selected
17810     *      item's data pointer.
17811     * - @c "selected" - When the user releases a mouse button and
17812     *      selects an item. @c event_info is the selected item's data
17813     *      pointer.
17814     * - @c "level,up" - when the user moves a finger from the first
17815     *      level to the second level
17816     * - @c "level,down" - when the user moves a finger from the second
17817     *      level to the first level
17818     *
17819     * The @c "delay,changed" event is so that it'll wait a small time
17820     * before actually reporting those events and, moreover, just the
17821     * last event happening on those time frames will actually be
17822     * reported.
17823     *
17824     * Here are some examples on its usage:
17825     * @li @ref index_example_01
17826     * @li @ref index_example_02
17827     */
17828
17829    /**
17830     * @addtogroup Index
17831     * @{
17832     */
17833
17834    typedef struct _Elm_Index_Item Elm_Index_Item; /**< Opaque handle for items of Elementary index widgets */
17835
17836    /**
17837     * Add a new index widget to the given parent Elementary
17838     * (container) object
17839     *
17840     * @param parent The parent object
17841     * @return a new index widget handle or @c NULL, on errors
17842     *
17843     * This function inserts a new index widget on the canvas.
17844     *
17845     * @ingroup Index
17846     */
17847    EAPI Evas_Object    *elm_index_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
17848
17849    /**
17850     * Set whether a given index widget is or not visible,
17851     * programatically.
17852     *
17853     * @param obj The index object
17854     * @param active @c EINA_TRUE to show it, @c EINA_FALSE to hide it
17855     *
17856     * Not to be confused with visible as in @c evas_object_show() --
17857     * visible with regard to the widget's auto hiding feature.
17858     *
17859     * @see elm_index_active_get()
17860     *
17861     * @ingroup Index
17862     */
17863    EAPI void            elm_index_active_set(Evas_Object *obj, Eina_Bool active) EINA_ARG_NONNULL(1);
17864
17865    /**
17866     * Get whether a given index widget is currently visible or not.
17867     *
17868     * @param obj The index object
17869     * @return @c EINA_TRUE, if it's shown, @c EINA_FALSE otherwise
17870     *
17871     * @see elm_index_active_set() for more details
17872     *
17873     * @ingroup Index
17874     */
17875    EAPI Eina_Bool       elm_index_active_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17876
17877    /**
17878     * Set the items level for a given index widget.
17879     *
17880     * @param obj The index object.
17881     * @param level @c 0 or @c 1, the currently implemented levels.
17882     *
17883     * @see elm_index_item_level_get()
17884     *
17885     * @ingroup Index
17886     */
17887    EAPI void            elm_index_item_level_set(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
17888
17889    /**
17890     * Get the items level set for a given index widget.
17891     *
17892     * @param obj The index object.
17893     * @return @c 0 or @c 1, which are the levels @p obj might be at.
17894     *
17895     * @see elm_index_item_level_set() for more information
17896     *
17897     * @ingroup Index
17898     */
17899    EAPI int             elm_index_item_level_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17900
17901    /**
17902     * Returns the last selected item's data, for a given index widget.
17903     *
17904     * @param obj The index object.
17905     * @return The item @b data associated to the last selected item on
17906     * @p obj (or @c NULL, on errors).
17907     *
17908     * @warning The returned value is @b not an #Elm_Index_Item item
17909     * handle, but the data associated to it (see the @c item parameter
17910     * in elm_index_item_append(), as an example).
17911     *
17912     * @ingroup Index
17913     */
17914    EAPI void           *elm_index_item_selected_get(const Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
17915
17916    /**
17917     * Append a new item on a given index widget.
17918     *
17919     * @param obj The index object.
17920     * @param letter Letter under which the item should be indexed
17921     * @param item The item data to set for the index's item
17922     *
17923     * Despite the most common usage of the @p letter argument is for
17924     * single char strings, one could use arbitrary strings as index
17925     * entries.
17926     *
17927     * @c item will be the pointer returned back on @c "changed", @c
17928     * "delay,changed" and @c "selected" smart events.
17929     *
17930     * @ingroup Index
17931     */
17932    EAPI void            elm_index_item_append(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
17933
17934    /**
17935     * Prepend a new item on a given index widget.
17936     *
17937     * @param obj The index object.
17938     * @param letter Letter under which the item should be indexed
17939     * @param item The item data to set for the index's item
17940     *
17941     * Despite the most common usage of the @p letter argument is for
17942     * single char strings, one could use arbitrary strings as index
17943     * entries.
17944     *
17945     * @c item will be the pointer returned back on @c "changed", @c
17946     * "delay,changed" and @c "selected" smart events.
17947     *
17948     * @ingroup Index
17949     */
17950    EAPI void            elm_index_item_prepend(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
17951
17952    /**
17953     * Append a new item, on a given index widget, <b>after the item
17954     * having @p relative as data</b>.
17955     *
17956     * @param obj The index object.
17957     * @param letter Letter under which the item should be indexed
17958     * @param item The item data to set for the index's item
17959     * @param relative The item data of the index item to be the
17960     * predecessor of this new one
17961     *
17962     * Despite the most common usage of the @p letter argument is for
17963     * single char strings, one could use arbitrary strings as index
17964     * entries.
17965     *
17966     * @c item will be the pointer returned back on @c "changed", @c
17967     * "delay,changed" and @c "selected" smart events.
17968     *
17969     * @note If @p relative is @c NULL or if it's not found to be data
17970     * set on any previous item on @p obj, this function will behave as
17971     * elm_index_item_append().
17972     *
17973     * @ingroup Index
17974     */
17975    EAPI void            elm_index_item_append_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
17976
17977    /**
17978     * Prepend a new item, on a given index widget, <b>after the item
17979     * having @p relative as data</b>.
17980     *
17981     * @param obj The index object.
17982     * @param letter Letter under which the item should be indexed
17983     * @param item The item data to set for the index's item
17984     * @param relative The item data of the index item to be the
17985     * successor of this new one
17986     *
17987     * Despite the most common usage of the @p letter argument is for
17988     * single char strings, one could use arbitrary strings as index
17989     * entries.
17990     *
17991     * @c item will be the pointer returned back on @c "changed", @c
17992     * "delay,changed" and @c "selected" smart events.
17993     *
17994     * @note If @p relative is @c NULL or if it's not found to be data
17995     * set on any previous item on @p obj, this function will behave as
17996     * elm_index_item_prepend().
17997     *
17998     * @ingroup Index
17999     */
18000    EAPI void            elm_index_item_prepend_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
18001
18002    /**
18003     * Insert a new item into the given index widget, using @p cmp_func
18004     * function to sort items (by item handles).
18005     *
18006     * @param obj The index object.
18007     * @param letter Letter under which the item should be indexed
18008     * @param item The item data to set for the index's item
18009     * @param cmp_func The comparing function to be used to sort index
18010     * items <b>by #Elm_Index_Item item handles</b>
18011     * @param cmp_data_func A @b fallback function to be called for the
18012     * sorting of index items <b>by item data</b>). It will be used
18013     * when @p cmp_func returns @c 0 (equality), which means an index
18014     * item with provided item data already exists. To decide which
18015     * data item should be pointed to by the index item in question, @p
18016     * cmp_data_func will be used. If @p cmp_data_func returns a
18017     * non-negative value, the previous index item data will be
18018     * replaced by the given @p item pointer. If the previous data need
18019     * to be freed, it should be done by the @p cmp_data_func function,
18020     * because all references to it will be lost. If this function is
18021     * not provided (@c NULL is given), index items will be @b
18022     * duplicated, if @p cmp_func returns @c 0.
18023     *
18024     * Despite the most common usage of the @p letter argument is for
18025     * single char strings, one could use arbitrary strings as index
18026     * entries.
18027     *
18028     * @c item will be the pointer returned back on @c "changed", @c
18029     * "delay,changed" and @c "selected" smart events.
18030     *
18031     * @ingroup Index
18032     */
18033    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);
18034
18035    /**
18036     * Remove an item from a given index widget, <b>to be referenced by
18037     * it's data value</b>.
18038     *
18039     * @param obj The index object
18040     * @param item The item's data pointer for the item to be removed
18041     * from @p obj
18042     *
18043     * If a deletion callback is set, via elm_index_item_del_cb_set(),
18044     * that callback function will be called by this one.
18045     *
18046     * @warning The item to be removed from @p obj will be found via
18047     * its item data pointer, and not by an #Elm_Index_Item handle.
18048     *
18049     * @ingroup Index
18050     */
18051    EAPI void            elm_index_item_del(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
18052
18053    /**
18054     * Find a given index widget's item, <b>using item data</b>.
18055     *
18056     * @param obj The index object
18057     * @param item The item data pointed to by the desired index item
18058     * @return The index item handle, if found, or @c NULL otherwise
18059     *
18060     * @ingroup Index
18061     */
18062    EAPI Elm_Index_Item *elm_index_item_find(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
18063
18064    /**
18065     * Removes @b all items from a given index widget.
18066     *
18067     * @param obj The index object.
18068     *
18069     * If deletion callbacks are set, via elm_index_item_del_cb_set(),
18070     * that callback function will be called for each item in @p obj.
18071     *
18072     * @ingroup Index
18073     */
18074    EAPI void            elm_index_item_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
18075
18076    /**
18077     * Go to a given items level on a index widget
18078     *
18079     * @param obj The index object
18080     * @param level The index level (one of @c 0 or @c 1)
18081     *
18082     * @ingroup Index
18083     */
18084    EAPI void            elm_index_item_go(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
18085
18086    /**
18087     * Return the data associated with a given index widget item
18088     *
18089     * @param it The index widget item handle
18090     * @return The data associated with @p it
18091     *
18092     * @see elm_index_item_data_set()
18093     *
18094     * @ingroup Index
18095     */
18096    EAPI void           *elm_index_item_data_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
18097
18098    /**
18099     * Set the data associated with a given index widget item
18100     *
18101     * @param it The index widget item handle
18102     * @param data The new data pointer to set to @p it
18103     *
18104     * This sets new item data on @p it.
18105     *
18106     * @warning The old data pointer won't be touched by this function, so
18107     * the user had better to free that old data himself/herself.
18108     *
18109     * @ingroup Index
18110     */
18111    EAPI void            elm_index_item_data_set(Elm_Index_Item *it, const void *data) EINA_ARG_NONNULL(1);
18112
18113    /**
18114     * Set the function to be called when a given index widget item is freed.
18115     *
18116     * @param it The item to set the callback on
18117     * @param func The function to call on the item's deletion
18118     *
18119     * When called, @p func will have both @c data and @c event_info
18120     * arguments with the @p it item's data value and, naturally, the
18121     * @c obj argument with a handle to the parent index widget.
18122     *
18123     * @ingroup Index
18124     */
18125    EAPI void            elm_index_item_del_cb_set(Elm_Index_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
18126
18127    /**
18128     * Get the letter (string) set on a given index widget item.
18129     *
18130     * @param it The index item handle
18131     * @return The letter string set on @p it
18132     *
18133     * @ingroup Index
18134     */
18135    EAPI const char     *elm_index_item_letter_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
18136
18137    /**
18138     * @}
18139     */
18140
18141    /**
18142     * @defgroup Photocam Photocam
18143     *
18144     * @image html img/widget/photocam/preview-00.png
18145     * @image latex img/widget/photocam/preview-00.eps
18146     *
18147     * This is a widget specifically for displaying high-resolution digital
18148     * camera photos giving speedy feedback (fast load), low memory footprint
18149     * and zooming and panning as well as fitting logic. It is entirely focused
18150     * on jpeg images, and takes advantage of properties of the jpeg format (via
18151     * evas loader features in the jpeg loader).
18152     *
18153     * Signals that you can add callbacks for are:
18154     * @li "clicked" - This is called when a user has clicked the photo without
18155     *                 dragging around.
18156     * @li "press" - This is called when a user has pressed down on the photo.
18157     * @li "longpressed" - This is called when a user has pressed down on the
18158     *                     photo for a long time without dragging around.
18159     * @li "clicked,double" - This is called when a user has double-clicked the
18160     *                        photo.
18161     * @li "load" - Photo load begins.
18162     * @li "loaded" - This is called when the image file load is complete for the
18163     *                first view (low resolution blurry version).
18164     * @li "load,detail" - Photo detailed data load begins.
18165     * @li "loaded,detail" - This is called when the image file load is complete
18166     *                      for the detailed image data (full resolution needed).
18167     * @li "zoom,start" - Zoom animation started.
18168     * @li "zoom,stop" - Zoom animation stopped.
18169     * @li "zoom,change" - Zoom changed when using an auto zoom mode.
18170     * @li "scroll" - the content has been scrolled (moved)
18171     * @li "scroll,anim,start" - scrolling animation has started
18172     * @li "scroll,anim,stop" - scrolling animation has stopped
18173     * @li "scroll,drag,start" - dragging the contents around has started
18174     * @li "scroll,drag,stop" - dragging the contents around has stopped
18175     *
18176     * @ref tutorial_photocam shows the API in action.
18177     * @{
18178     */
18179    /**
18180     * @brief Types of zoom available.
18181     */
18182    typedef enum _Elm_Photocam_Zoom_Mode
18183      {
18184         ELM_PHOTOCAM_ZOOM_MODE_MANUAL = 0, /**< Zoom controled normally by elm_photocam_zoom_set */
18185         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT, /**< Zoom until photo fits in photocam */
18186         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL, /**< Zoom until photo fills photocam */
18187         ELM_PHOTOCAM_ZOOM_MODE_LAST
18188      } Elm_Photocam_Zoom_Mode;
18189    /**
18190     * @brief Add a new Photocam object
18191     *
18192     * @param parent The parent object
18193     * @return The new object or NULL if it cannot be created
18194     */
18195    EAPI Evas_Object           *elm_photocam_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18196    /**
18197     * @brief Set the photo file to be shown
18198     *
18199     * @param obj The photocam object
18200     * @param file The photo file
18201     * @return The return error (see EVAS_LOAD_ERROR_NONE, EVAS_LOAD_ERROR_GENERIC etc.)
18202     *
18203     * This sets (and shows) the specified file (with a relative or absolute
18204     * path) and will return a load error (same error that
18205     * evas_object_image_load_error_get() will return). The image will change and
18206     * adjust its size at this point and begin a background load process for this
18207     * photo that at some time in the future will be displayed at the full
18208     * quality needed.
18209     */
18210    EAPI Evas_Load_Error        elm_photocam_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
18211    /**
18212     * @brief Returns the path of the current image file
18213     *
18214     * @param obj The photocam object
18215     * @return Returns the path
18216     *
18217     * @see elm_photocam_file_set()
18218     */
18219    EAPI const char            *elm_photocam_file_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18220    /**
18221     * @brief Set the zoom level of the photo
18222     *
18223     * @param obj The photocam object
18224     * @param zoom The zoom level to set
18225     *
18226     * This sets the zoom level. 1 will be 1:1 pixel for pixel. 2 will be 2:1
18227     * (that is 2x2 photo pixels will display as 1 on-screen pixel). 4:1 will be
18228     * 4x4 photo pixels as 1 screen pixel, and so on. The @p zoom parameter must
18229     * be greater than 0. It is usggested to stick to powers of 2. (1, 2, 4, 8,
18230     * 16, 32, etc.).
18231     */
18232    EAPI void                   elm_photocam_zoom_set(Evas_Object *obj, double zoom) EINA_ARG_NONNULL(1);
18233    /**
18234     * @brief Get the zoom level of the photo
18235     *
18236     * @param obj The photocam object
18237     * @return The current zoom level
18238     *
18239     * This returns the current zoom level of the photocam object. Note that if
18240     * you set the fill mode to other than ELM_PHOTOCAM_ZOOM_MODE_MANUAL
18241     * (which is the default), the zoom level may be changed at any time by the
18242     * photocam object itself to account for photo size and photocam viewpoer
18243     * size.
18244     *
18245     * @see elm_photocam_zoom_set()
18246     * @see elm_photocam_zoom_mode_set()
18247     */
18248    EAPI double                 elm_photocam_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18249    /**
18250     * @brief Set the zoom mode
18251     *
18252     * @param obj The photocam object
18253     * @param mode The desired mode
18254     *
18255     * This sets the zoom mode to manual or one of several automatic levels.
18256     * Manual (ELM_PHOTOCAM_ZOOM_MODE_MANUAL) means that zoom is set manually by
18257     * elm_photocam_zoom_set() and will stay at that level until changed by code
18258     * or until zoom mode is changed. This is the default mode. The Automatic
18259     * modes will allow the photocam object to automatically adjust zoom mode
18260     * based on properties. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT) will adjust zoom so
18261     * the photo fits EXACTLY inside the scroll frame with no pixels outside this
18262     * area. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL will be similar but ensure no
18263     * pixels within the frame are left unfilled.
18264     */
18265    EAPI void                   elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode) EINA_ARG_NONNULL(1);
18266    /**
18267     * @brief Get the zoom mode
18268     *
18269     * @param obj The photocam object
18270     * @return The current zoom mode
18271     *
18272     * This gets the current zoom mode of the photocam object.
18273     *
18274     * @see elm_photocam_zoom_mode_set()
18275     */
18276    EAPI Elm_Photocam_Zoom_Mode elm_photocam_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18277    /**
18278     * @brief Get the current image pixel width and height
18279     *
18280     * @param obj The photocam object
18281     * @param w A pointer to the width return
18282     * @param h A pointer to the height return
18283     *
18284     * This gets the current photo pixel width and height (for the original).
18285     * The size will be returned in the integers @p w and @p h that are pointed
18286     * to.
18287     */
18288    EAPI void                   elm_photocam_image_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
18289    /**
18290     * @brief Get the area of the image that is currently shown
18291     *
18292     * @param obj
18293     * @param x A pointer to the X-coordinate of region
18294     * @param y A pointer to the Y-coordinate of region
18295     * @param w A pointer to the width
18296     * @param h A pointer to the height
18297     *
18298     * @see elm_photocam_image_region_show()
18299     * @see elm_photocam_image_region_bring_in()
18300     */
18301    EAPI void                   elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
18302    /**
18303     * @brief Set the viewed portion of the image
18304     *
18305     * @param obj The photocam object
18306     * @param x X-coordinate of region in image original pixels
18307     * @param y Y-coordinate of region in image original pixels
18308     * @param w Width of region in image original pixels
18309     * @param h Height of region in image original pixels
18310     *
18311     * This shows the region of the image without using animation.
18312     */
18313    EAPI void                   elm_photocam_image_region_show(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
18314    /**
18315     * @brief Bring in the viewed portion of the image
18316     *
18317     * @param obj The photocam object
18318     * @param x X-coordinate of region in image original pixels
18319     * @param y Y-coordinate of region in image original pixels
18320     * @param w Width of region in image original pixels
18321     * @param h Height of region in image original pixels
18322     *
18323     * This shows the region of the image using animation.
18324     */
18325    EAPI void                   elm_photocam_image_region_bring_in(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
18326    /**
18327     * @brief Set the paused state for photocam
18328     *
18329     * @param obj The photocam object
18330     * @param paused The pause state to set
18331     *
18332     * This sets the paused state to on(EINA_TRUE) or off (EINA_FALSE) for
18333     * photocam. The default is off. This will stop zooming using animation on
18334     * zoom levels changes and change instantly. This will stop any existing
18335     * animations that are running.
18336     */
18337    EAPI void                   elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
18338    /**
18339     * @brief Get the paused state for photocam
18340     *
18341     * @param obj The photocam object
18342     * @return The current paused state
18343     *
18344     * This gets the current paused state for the photocam object.
18345     *
18346     * @see elm_photocam_paused_set()
18347     */
18348    EAPI Eina_Bool              elm_photocam_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18349    /**
18350     * @brief Get the internal low-res image used for photocam
18351     *
18352     * @param obj The photocam object
18353     * @return The internal image object handle, or NULL if none exists
18354     *
18355     * This gets the internal image object inside photocam. Do not modify it. It
18356     * is for inspection only, and hooking callbacks to. Nothing else. It may be
18357     * deleted at any time as well.
18358     */
18359    EAPI Evas_Object           *elm_photocam_internal_image_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18360    /**
18361     * @brief Set the photocam scrolling bouncing.
18362     *
18363     * @param obj The photocam object
18364     * @param h_bounce bouncing for horizontal
18365     * @param v_bounce bouncing for vertical
18366     */
18367    EAPI void                   elm_photocam_bounce_set(Evas_Object *obj,  Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
18368    /**
18369     * @brief Get the photocam scrolling bouncing.
18370     *
18371     * @param obj The photocam object
18372     * @param h_bounce bouncing for horizontal
18373     * @param v_bounce bouncing for vertical
18374     *
18375     * @see elm_photocam_bounce_set()
18376     */
18377    EAPI void                   elm_photocam_bounce_get(const Evas_Object *obj,  Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
18378    /**
18379     * @}
18380     */
18381
18382    /**
18383     * @defgroup Map Map
18384     * @ingroup Elementary
18385     *
18386     * @image html img/widget/map/preview-00.png
18387     * @image latex img/widget/map/preview-00.eps
18388     *
18389     * This is a widget specifically for displaying a map. It uses basically
18390     * OpenStreetMap provider http://www.openstreetmap.org/,
18391     * but custom providers can be added.
18392     *
18393     * It supports some basic but yet nice features:
18394     * @li zoom and scroll
18395     * @li markers with content to be displayed when user clicks over it
18396     * @li group of markers
18397     * @li routes
18398     *
18399     * Smart callbacks one can listen to:
18400     *
18401     * - "clicked" - This is called when a user has clicked the map without
18402     *   dragging around.
18403     * - "press" - This is called when a user has pressed down on the map.
18404     * - "longpressed" - This is called when a user has pressed down on the map
18405     *   for a long time without dragging around.
18406     * - "clicked,double" - This is called when a user has double-clicked
18407     *   the map.
18408     * - "load,detail" - Map detailed data load begins.
18409     * - "loaded,detail" - This is called when all currently visible parts of
18410     *   the map are loaded.
18411     * - "zoom,start" - Zoom animation started.
18412     * - "zoom,stop" - Zoom animation stopped.
18413     * - "zoom,change" - Zoom changed when using an auto zoom mode.
18414     * - "scroll" - the content has been scrolled (moved).
18415     * - "scroll,anim,start" - scrolling animation has started.
18416     * - "scroll,anim,stop" - scrolling animation has stopped.
18417     * - "scroll,drag,start" - dragging the contents around has started.
18418     * - "scroll,drag,stop" - dragging the contents around has stopped.
18419     * - "downloaded" - This is called when all currently required map images
18420     *   are downloaded.
18421     * - "route,load" - This is called when route request begins.
18422     * - "route,loaded" - This is called when route request ends.
18423     * - "name,load" - This is called when name request begins.
18424     * - "name,loaded- This is called when name request ends.
18425     *
18426     * Available style for map widget:
18427     * - @c "default"
18428     *
18429     * Available style for markers:
18430     * - @c "radio"
18431     * - @c "radio2"
18432     * - @c "empty"
18433     *
18434     * Available style for marker bubble:
18435     * - @c "default"
18436     *
18437     * List of examples:
18438     * @li @ref map_example_01
18439     * @li @ref map_example_02
18440     * @li @ref map_example_03
18441     */
18442
18443    /**
18444     * @addtogroup Map
18445     * @{
18446     */
18447
18448    /**
18449     * @enum _Elm_Map_Zoom_Mode
18450     * @typedef Elm_Map_Zoom_Mode
18451     *
18452     * Set map's zoom behavior. It can be set to manual or automatic.
18453     *
18454     * Default value is #ELM_MAP_ZOOM_MODE_MANUAL.
18455     *
18456     * Values <b> don't </b> work as bitmask, only one can be choosen.
18457     *
18458     * @note Valid sizes are 2^zoom, consequently the map may be smaller
18459     * than the scroller view.
18460     *
18461     * @see elm_map_zoom_mode_set()
18462     * @see elm_map_zoom_mode_get()
18463     *
18464     * @ingroup Map
18465     */
18466    typedef enum _Elm_Map_Zoom_Mode
18467      {
18468         ELM_MAP_ZOOM_MODE_MANUAL, /**< Zoom controled manually by elm_map_zoom_set(). It's set by default. */
18469         ELM_MAP_ZOOM_MODE_AUTO_FIT, /**< Zoom until map fits inside the scroll frame with no pixels outside this area. */
18470         ELM_MAP_ZOOM_MODE_AUTO_FILL, /**< Zoom until map fills scroll, ensuring no pixels are left unfilled. */
18471         ELM_MAP_ZOOM_MODE_LAST
18472      } Elm_Map_Zoom_Mode;
18473
18474    /**
18475     * @enum _Elm_Map_Route_Sources
18476     * @typedef Elm_Map_Route_Sources
18477     *
18478     * Set route service to be used. By default used source is
18479     * #ELM_MAP_ROUTE_SOURCE_YOURS.
18480     *
18481     * @see elm_map_route_source_set()
18482     * @see elm_map_route_source_get()
18483     *
18484     * @ingroup Map
18485     */
18486    typedef enum _Elm_Map_Route_Sources
18487      {
18488         ELM_MAP_ROUTE_SOURCE_YOURS, /**< Routing service http://www.yournavigation.org/ . Set by default.*/
18489         ELM_MAP_ROUTE_SOURCE_MONAV, /**< MoNav offers exact routing without heuristic assumptions. Its routing core is based on Contraction Hierarchies. It's not working with Map yet. */
18490         ELM_MAP_ROUTE_SOURCE_ORS, /**< Open Route Service: http://www.openrouteservice.org/ . It's not working with Map yet. */
18491         ELM_MAP_ROUTE_SOURCE_LAST
18492      } Elm_Map_Route_Sources;
18493
18494    typedef enum _Elm_Map_Name_Sources
18495      {
18496         ELM_MAP_NAME_SOURCE_NOMINATIM,
18497         ELM_MAP_NAME_SOURCE_LAST
18498      } Elm_Map_Name_Sources;
18499
18500    /**
18501     * @enum _Elm_Map_Route_Type
18502     * @typedef Elm_Map_Route_Type
18503     *
18504     * Set type of transport used on route.
18505     *
18506     * @see elm_map_route_add()
18507     *
18508     * @ingroup Map
18509     */
18510    typedef enum _Elm_Map_Route_Type
18511      {
18512         ELM_MAP_ROUTE_TYPE_MOTOCAR, /**< Route should consider an automobile will be used. */
18513         ELM_MAP_ROUTE_TYPE_BICYCLE, /**< Route should consider a bicycle will be used by the user. */
18514         ELM_MAP_ROUTE_TYPE_FOOT, /**< Route should consider user will be walking. */
18515         ELM_MAP_ROUTE_TYPE_LAST
18516      } Elm_Map_Route_Type;
18517
18518    /**
18519     * @enum _Elm_Map_Route_Method
18520     * @typedef Elm_Map_Route_Method
18521     *
18522     * Set the routing method, what should be priorized, time or distance.
18523     *
18524     * @see elm_map_route_add()
18525     *
18526     * @ingroup Map
18527     */
18528    typedef enum _Elm_Map_Route_Method
18529      {
18530         ELM_MAP_ROUTE_METHOD_FASTEST, /**< Route should priorize time. */
18531         ELM_MAP_ROUTE_METHOD_SHORTEST, /**< Route should priorize distance. */
18532         ELM_MAP_ROUTE_METHOD_LAST
18533      } Elm_Map_Route_Method;
18534
18535    typedef enum _Elm_Map_Name_Method
18536      {
18537         ELM_MAP_NAME_METHOD_SEARCH,
18538         ELM_MAP_NAME_METHOD_REVERSE,
18539         ELM_MAP_NAME_METHOD_LAST
18540      } Elm_Map_Name_Method;
18541
18542    typedef struct _Elm_Map_Marker          Elm_Map_Marker; /**< A marker to be shown in a specific point of the map. Can be created with elm_map_marker_add() and deleted with elm_map_marker_remove(). */
18543    typedef struct _Elm_Map_Marker_Class    Elm_Map_Marker_Class; /**< Each marker must be associated to a class. It's required to add a mark. The class defines the style of the marker when a marker is displayed alone (not grouped). A new class can be created with elm_map_marker_class_new(). */
18544    typedef struct _Elm_Map_Group_Class     Elm_Map_Group_Class; /**< Each marker must be associated to a group class. It's required to add a mark. The group class defines the style of the marker when a marker is grouped to other markers. Markers with the same group are grouped if they are close. A new group class can be created with elm_map_marker_group_class_new(). */
18545    typedef struct _Elm_Map_Route           Elm_Map_Route; /**< A route to be shown in the map. Can be created with elm_map_route_add() and deleted with elm_map_route_remove(). */
18546    typedef struct _Elm_Map_Name            Elm_Map_Name; /**< A handle for specific coordinates. */
18547    typedef struct _Elm_Map_Track           Elm_Map_Track;
18548
18549    typedef Evas_Object *(*ElmMapMarkerGetFunc)      (Evas_Object *obj, Elm_Map_Marker *marker, void *data); /**< Bubble content fetching class function for marker classes. When the user click on a marker, a bubble is displayed with a content. */
18550    typedef void         (*ElmMapMarkerDelFunc)      (Evas_Object *obj, Elm_Map_Marker *marker, void *data, Evas_Object *o); /**< Function to delete bubble content for marker classes. */
18551    typedef Evas_Object *(*ElmMapMarkerIconGetFunc)  (Evas_Object *obj, Elm_Map_Marker *marker, void *data); /**< Icon fetching class function for marker classes. */
18552    typedef Evas_Object *(*ElmMapGroupIconGetFunc)   (Evas_Object *obj, void *data); /**< Icon fetching class function for markers group classes. */
18553
18554    typedef char        *(*ElmMapModuleSourceFunc) (void);
18555    typedef int          (*ElmMapModuleZoomMinFunc) (void);
18556    typedef int          (*ElmMapModuleZoomMaxFunc) (void);
18557    typedef char        *(*ElmMapModuleUrlFunc) (Evas_Object *obj, int x, int y, int zoom);
18558    typedef int          (*ElmMapModuleRouteSourceFunc) (void);
18559    typedef char        *(*ElmMapModuleRouteUrlFunc) (Evas_Object *obj, char *type_name, int method, double flon, double flat, double tlon, double tlat);
18560    typedef char        *(*ElmMapModuleNameUrlFunc) (Evas_Object *obj, int method, char *name, double lon, double lat);
18561    typedef Eina_Bool    (*ElmMapModuleGeoIntoCoordFunc) (const Evas_Object *obj, int zoom, double lon, double lat, int size, int *x, int *y);
18562    typedef Eina_Bool    (*ElmMapModuleCoordIntoGeoFunc) (const Evas_Object *obj, int zoom, int x, int y, int size, double *lon, double *lat);
18563
18564    /**
18565     * Add a new map widget to the given parent Elementary (container) object.
18566     *
18567     * @param parent The parent object.
18568     * @return a new map widget handle or @c NULL, on errors.
18569     *
18570     * This function inserts a new map widget on the canvas.
18571     *
18572     * @ingroup Map
18573     */
18574    EAPI Evas_Object          *elm_map_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18575
18576    /**
18577     * Set the zoom level of the map.
18578     *
18579     * @param obj The map object.
18580     * @param zoom The zoom level to set.
18581     *
18582     * This sets the zoom level.
18583     *
18584     * It will respect limits defined by elm_map_source_zoom_min_set() and
18585     * elm_map_source_zoom_max_set().
18586     *
18587     * By default these values are 0 (world map) and 18 (maximum zoom).
18588     *
18589     * This function should be used when zoom mode is set to
18590     * #ELM_MAP_ZOOM_MODE_MANUAL. This is the default mode, and can be set
18591     * with elm_map_zoom_mode_set().
18592     *
18593     * @see elm_map_zoom_mode_set().
18594     * @see elm_map_zoom_get().
18595     *
18596     * @ingroup Map
18597     */
18598    EAPI void                  elm_map_zoom_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
18599
18600    /**
18601     * Get the zoom level of the map.
18602     *
18603     * @param obj The map object.
18604     * @return The current zoom level.
18605     *
18606     * This returns the current zoom level of the map object.
18607     *
18608     * Note that if you set the fill mode to other than #ELM_MAP_ZOOM_MODE_MANUAL
18609     * (which is the default), the zoom level may be changed at any time by the
18610     * map object itself to account for map size and map viewport size.
18611     *
18612     * @see elm_map_zoom_set() for details.
18613     *
18614     * @ingroup Map
18615     */
18616    EAPI int                   elm_map_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18617
18618    /**
18619     * Set the zoom mode used by the map object.
18620     *
18621     * @param obj The map object.
18622     * @param mode The zoom mode of the map, being it one of
18623     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
18624     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
18625     *
18626     * This sets the zoom mode to manual or one of the automatic levels.
18627     * Manual (#ELM_MAP_ZOOM_MODE_MANUAL) means that zoom is set manually by
18628     * elm_map_zoom_set() and will stay at that level until changed by code
18629     * or until zoom mode is changed. This is the default mode.
18630     *
18631     * The Automatic modes will allow the map object to automatically
18632     * adjust zoom mode based on properties. #ELM_MAP_ZOOM_MODE_AUTO_FIT will
18633     * adjust zoom so the map fits inside the scroll frame with no pixels
18634     * outside this area. #ELM_MAP_ZOOM_MODE_AUTO_FILL will be similar but
18635     * ensure no pixels within the frame are left unfilled. Do not forget that
18636     * the valid sizes are 2^zoom, consequently the map may be smaller than
18637     * the scroller view.
18638     *
18639     * @see elm_map_zoom_set()
18640     *
18641     * @ingroup Map
18642     */
18643    EAPI void                  elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode) EINA_ARG_NONNULL(1);
18644
18645    /**
18646     * Get the zoom mode used by the map object.
18647     *
18648     * @param obj The map object.
18649     * @return The zoom mode of the map, being it one of
18650     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
18651     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
18652     *
18653     * This function returns the current zoom mode used by the map object.
18654     *
18655     * @see elm_map_zoom_mode_set() for more details.
18656     *
18657     * @ingroup Map
18658     */
18659    EAPI Elm_Map_Zoom_Mode     elm_map_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18660
18661    /**
18662     * Get the current coordinates of the map.
18663     *
18664     * @param obj The map object.
18665     * @param lon Pointer where to store longitude.
18666     * @param lat Pointer where to store latitude.
18667     *
18668     * This gets the current center coordinates of the map object. It can be
18669     * set by elm_map_geo_region_bring_in() and elm_map_geo_region_show().
18670     *
18671     * @see elm_map_geo_region_bring_in()
18672     * @see elm_map_geo_region_show()
18673     *
18674     * @ingroup Map
18675     */
18676    EAPI void                  elm_map_geo_region_get(const Evas_Object *obj, double *lon, double *lat) EINA_ARG_NONNULL(1);
18677
18678    /**
18679     * Animatedly bring in given coordinates to the center of the map.
18680     *
18681     * @param obj The map object.
18682     * @param lon Longitude to center at.
18683     * @param lat Latitude to center at.
18684     *
18685     * This causes map to jump to the given @p lat and @p lon coordinates
18686     * and show it (by scrolling) in the center of the viewport, if it is not
18687     * already centered. This will use animation to do so and take a period
18688     * of time to complete.
18689     *
18690     * @see elm_map_geo_region_show() for a function to avoid animation.
18691     * @see elm_map_geo_region_get()
18692     *
18693     * @ingroup Map
18694     */
18695    EAPI void                  elm_map_geo_region_bring_in(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
18696
18697    /**
18698     * Show the given coordinates at the center of the map, @b immediately.
18699     *
18700     * @param obj The map object.
18701     * @param lon Longitude to center at.
18702     * @param lat Latitude to center at.
18703     *
18704     * This causes map to @b redraw its viewport's contents to the
18705     * region contining the given @p lat and @p lon, that will be moved to the
18706     * center of the map.
18707     *
18708     * @see elm_map_geo_region_bring_in() for a function to move with animation.
18709     * @see elm_map_geo_region_get()
18710     *
18711     * @ingroup Map
18712     */
18713    EAPI void                  elm_map_geo_region_show(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
18714
18715    /**
18716     * Pause or unpause the map.
18717     *
18718     * @param obj The map object.
18719     * @param paused Use @c EINA_TRUE to pause the map @p obj or @c EINA_FALSE
18720     * to unpause it.
18721     *
18722     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
18723     * for map.
18724     *
18725     * The default is off.
18726     *
18727     * This will stop zooming using animation, changing zoom levels will
18728     * change instantly. This will stop any existing animations that are running.
18729     *
18730     * @see elm_map_paused_get()
18731     *
18732     * @ingroup Map
18733     */
18734    EAPI void                  elm_map_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
18735
18736    /**
18737     * Get a value whether map is paused or not.
18738     *
18739     * @param obj The map object.
18740     * @return @c EINA_TRUE means map is pause. @c EINA_FALSE indicates
18741     * it is not. If @p obj is @c NULL, @c EINA_FALSE is returned.
18742     *
18743     * This gets the current paused state for the map object.
18744     *
18745     * @see elm_map_paused_set() for details.
18746     *
18747     * @ingroup Map
18748     */
18749    EAPI Eina_Bool             elm_map_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18750
18751    /**
18752     * Set to show markers during zoom level changes or not.
18753     *
18754     * @param obj The map object.
18755     * @param paused Use @c EINA_TRUE to @b not show markers or @c EINA_FALSE
18756     * to show them.
18757     *
18758     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
18759     * for map.
18760     *
18761     * The default is off.
18762     *
18763     * This will stop zooming using animation, changing zoom levels will
18764     * change instantly. This will stop any existing animations that are running.
18765     *
18766     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
18767     * for the markers.
18768     *
18769     * The default  is off.
18770     *
18771     * Enabling it will force the map to stop displaying the markers during
18772     * zoom level changes. Set to on if you have a large number of markers.
18773     *
18774     * @see elm_map_paused_markers_get()
18775     *
18776     * @ingroup Map
18777     */
18778    EAPI void                  elm_map_paused_markers_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
18779
18780    /**
18781     * Get a value whether markers will be displayed on zoom level changes or not
18782     *
18783     * @param obj The map object.
18784     * @return @c EINA_TRUE means map @b won't display markers or @c EINA_FALSE
18785     * indicates it will. If @p obj is @c NULL, @c EINA_FALSE is returned.
18786     *
18787     * This gets the current markers paused state for the map object.
18788     *
18789     * @see elm_map_paused_markers_set() for details.
18790     *
18791     * @ingroup Map
18792     */
18793    EAPI Eina_Bool             elm_map_paused_markers_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18794
18795    /**
18796     * Get the information of downloading status.
18797     *
18798     * @param obj The map object.
18799     * @param try_num Pointer where to store number of tiles being downloaded.
18800     * @param finish_num Pointer where to store number of tiles successfully
18801     * downloaded.
18802     *
18803     * This gets the current downloading status for the map object, the number
18804     * of tiles being downloaded and the number of tiles already downloaded.
18805     *
18806     * @ingroup Map
18807     */
18808    EAPI void                  elm_map_utils_downloading_status_get(const Evas_Object *obj, int *try_num, int *finish_num) EINA_ARG_NONNULL(1, 2, 3);
18809
18810    /**
18811     * Convert a pixel coordinate (x,y) into a geographic coordinate
18812     * (longitude, latitude).
18813     *
18814     * @param obj The map object.
18815     * @param x the coordinate.
18816     * @param y the coordinate.
18817     * @param size the size in pixels of the map.
18818     * The map is a square and generally his size is : pow(2.0, zoom)*256.
18819     * @param lon Pointer where to store the longitude that correspond to x.
18820     * @param lat Pointer where to store the latitude that correspond to y.
18821     *
18822     * @note Origin pixel point is the top left corner of the viewport.
18823     * Map zoom and size are taken on account.
18824     *
18825     * @see elm_map_utils_convert_geo_into_coord() if you need the inverse.
18826     *
18827     * @ingroup Map
18828     */
18829    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);
18830
18831    /**
18832     * Convert a geographic coordinate (longitude, latitude) into a pixel
18833     * coordinate (x, y).
18834     *
18835     * @param obj The map object.
18836     * @param lon the longitude.
18837     * @param lat the latitude.
18838     * @param size the size in pixels of the map. The map is a square
18839     * and generally his size is : pow(2.0, zoom)*256.
18840     * @param x Pointer where to store the horizontal pixel coordinate that
18841     * correspond to the longitude.
18842     * @param y Pointer where to store the vertical pixel coordinate that
18843     * correspond to the latitude.
18844     *
18845     * @note Origin pixel point is the top left corner of the viewport.
18846     * Map zoom and size are taken on account.
18847     *
18848     * @see elm_map_utils_convert_coord_into_geo() if you need the inverse.
18849     *
18850     * @ingroup Map
18851     */
18852    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);
18853
18854    /**
18855     * Convert a geographic coordinate (longitude, latitude) into a name
18856     * (address).
18857     *
18858     * @param obj The map object.
18859     * @param lon the longitude.
18860     * @param lat the latitude.
18861     * @return name A #Elm_Map_Name handle for this coordinate.
18862     *
18863     * To get the string for this address, elm_map_name_address_get()
18864     * should be used.
18865     *
18866     * @see elm_map_utils_convert_name_into_coord() if you need the inverse.
18867     *
18868     * @ingroup Map
18869     */
18870    EAPI Elm_Map_Name         *elm_map_utils_convert_coord_into_name(const Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
18871
18872    /**
18873     * Convert a name (address) into a geographic coordinate
18874     * (longitude, latitude).
18875     *
18876     * @param obj The map object.
18877     * @param name The address.
18878     * @return name A #Elm_Map_Name handle for this address.
18879     *
18880     * To get the longitude and latitude, elm_map_name_region_get()
18881     * should be used.
18882     *
18883     * @see elm_map_utils_convert_coord_into_name() if you need the inverse.
18884     *
18885     * @ingroup Map
18886     */
18887    EAPI Elm_Map_Name         *elm_map_utils_convert_name_into_coord(const Evas_Object *obj, char *address) EINA_ARG_NONNULL(1, 2);
18888
18889    /**
18890     * Convert a pixel coordinate into a rotated pixel coordinate.
18891     *
18892     * @param obj The map object.
18893     * @param x horizontal coordinate of the point to rotate.
18894     * @param y vertical coordinate of the point to rotate.
18895     * @param cx rotation's center horizontal position.
18896     * @param cy rotation's center vertical position.
18897     * @param degree amount of degrees from 0.0 to 360.0 to rotate arount Z axis.
18898     * @param xx Pointer where to store rotated x.
18899     * @param yy Pointer where to store rotated y.
18900     *
18901     * @ingroup Map
18902     */
18903    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);
18904
18905    /**
18906     * Add a new marker to the map object.
18907     *
18908     * @param obj The map object.
18909     * @param lon The longitude of the marker.
18910     * @param lat The latitude of the marker.
18911     * @param clas The class, to use when marker @b isn't grouped to others.
18912     * @param clas_group The class group, to use when marker is grouped to others
18913     * @param data The data passed to the callbacks.
18914     *
18915     * @return The created marker or @c NULL upon failure.
18916     *
18917     * A marker will be created and shown in a specific point of the map, defined
18918     * by @p lon and @p lat.
18919     *
18920     * It will be displayed using style defined by @p class when this marker
18921     * is displayed alone (not grouped). A new class can be created with
18922     * elm_map_marker_class_new().
18923     *
18924     * If the marker is grouped to other markers, it will be displayed with
18925     * style defined by @p class_group. Markers with the same group are grouped
18926     * if they are close. A new group class can be created with
18927     * elm_map_marker_group_class_new().
18928     *
18929     * Markers created with this method can be deleted with
18930     * elm_map_marker_remove().
18931     *
18932     * A marker can have associated content to be displayed by a bubble,
18933     * when a user click over it, as well as an icon. These objects will
18934     * be fetch using class' callback functions.
18935     *
18936     * @see elm_map_marker_class_new()
18937     * @see elm_map_marker_group_class_new()
18938     * @see elm_map_marker_remove()
18939     *
18940     * @ingroup Map
18941     */
18942    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);
18943
18944    /**
18945     * Set the maximum numbers of markers' content to be displayed in a group.
18946     *
18947     * @param obj The map object.
18948     * @param max The maximum numbers of items displayed in a bubble.
18949     *
18950     * A bubble will be displayed when the user clicks over the group,
18951     * and will place the content of markers that belong to this group
18952     * inside it.
18953     *
18954     * A group can have a long list of markers, consequently the creation
18955     * of the content of the bubble can be very slow.
18956     *
18957     * In order to avoid this, a maximum number of items is displayed
18958     * in a bubble.
18959     *
18960     * By default this number is 30.
18961     *
18962     * Marker with the same group class are grouped if they are close.
18963     *
18964     * @see elm_map_marker_add()
18965     *
18966     * @ingroup Map
18967     */
18968    EAPI void                  elm_map_max_marker_per_group_set(Evas_Object *obj, int max) EINA_ARG_NONNULL(1);
18969
18970    /**
18971     * Remove a marker from the map.
18972     *
18973     * @param marker The marker to remove.
18974     *
18975     * @see elm_map_marker_add()
18976     *
18977     * @ingroup Map
18978     */
18979    EAPI void                  elm_map_marker_remove(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
18980
18981    /**
18982     * Get the current coordinates of the marker.
18983     *
18984     * @param marker marker.
18985     * @param lat Pointer where to store the marker's latitude.
18986     * @param lon Pointer where to store the marker's longitude.
18987     *
18988     * These values are set when adding markers, with function
18989     * elm_map_marker_add().
18990     *
18991     * @see elm_map_marker_add()
18992     *
18993     * @ingroup Map
18994     */
18995    EAPI void                  elm_map_marker_region_get(const Elm_Map_Marker *marker, double *lon, double *lat) EINA_ARG_NONNULL(1);
18996
18997    /**
18998     * Animatedly bring in given marker to the center of the map.
18999     *
19000     * @param marker The marker to center at.
19001     *
19002     * This causes map to jump to the given @p marker's coordinates
19003     * and show it (by scrolling) in the center of the viewport, if it is not
19004     * already centered. This will use animation to do so and take a period
19005     * of time to complete.
19006     *
19007     * @see elm_map_marker_show() for a function to avoid animation.
19008     * @see elm_map_marker_region_get()
19009     *
19010     * @ingroup Map
19011     */
19012    EAPI void                  elm_map_marker_bring_in(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
19013
19014    /**
19015     * Show the given marker at the center of the map, @b immediately.
19016     *
19017     * @param marker The marker to center at.
19018     *
19019     * This causes map to @b redraw its viewport's contents to the
19020     * region contining the given @p marker's coordinates, that will be
19021     * moved to the center of the map.
19022     *
19023     * @see elm_map_marker_bring_in() for a function to move with animation.
19024     * @see elm_map_markers_list_show() if more than one marker need to be
19025     * displayed.
19026     * @see elm_map_marker_region_get()
19027     *
19028     * @ingroup Map
19029     */
19030    EAPI void                  elm_map_marker_show(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
19031
19032    /**
19033     * Move and zoom the map to display a list of markers.
19034     *
19035     * @param markers A list of #Elm_Map_Marker handles.
19036     *
19037     * The map will be centered on the center point of the markers in the list.
19038     * Then the map will be zoomed in order to fit the markers using the maximum
19039     * zoom which allows display of all the markers.
19040     *
19041     * @warning All the markers should belong to the same map object.
19042     *
19043     * @see elm_map_marker_show() to show a single marker.
19044     * @see elm_map_marker_bring_in()
19045     *
19046     * @ingroup Map
19047     */
19048    EAPI void                  elm_map_markers_list_show(Eina_List *markers) EINA_ARG_NONNULL(1);
19049
19050    /**
19051     * Get the Evas object returned by the ElmMapMarkerGetFunc callback
19052     *
19053     * @param marker The marker wich content should be returned.
19054     * @return Return the evas object if it exists, else @c NULL.
19055     *
19056     * To set callback function #ElmMapMarkerGetFunc for the marker class,
19057     * elm_map_marker_class_get_cb_set() should be used.
19058     *
19059     * This content is what will be inside the bubble that will be displayed
19060     * when an user clicks over the marker.
19061     *
19062     * This returns the actual Evas object used to be placed inside
19063     * the bubble. This may be @c NULL, as it may
19064     * not have been created or may have been deleted, at any time, by
19065     * the map. <b>Do not modify this object</b> (move, resize,
19066     * show, hide, etc.), as the map is controlling it. This
19067     * function is for querying, emitting custom signals or hooking
19068     * lower level callbacks for events on that object. Do not delete
19069     * this object under any circumstances.
19070     *
19071     * @ingroup Map
19072     */
19073    EAPI Evas_Object          *elm_map_marker_object_get(const Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
19074
19075    /**
19076     * Update the marker
19077     *
19078     * @param marker The marker to be updated.
19079     *
19080     * If a content is set to this marker, it will call function to delete it,
19081     * #ElmMapMarkerDelFunc, and then will fetch the content again with
19082     * #ElmMapMarkerGetFunc.
19083     *
19084     * These functions are set for the marker class with
19085     * elm_map_marker_class_get_cb_set() and elm_map_marker_class_del_cb_set().
19086     *
19087     * @ingroup Map
19088     */
19089    EAPI void                  elm_map_marker_update(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
19090
19091    /**
19092     * Close all the bubbles opened by the user.
19093     *
19094     * @param obj The map object.
19095     *
19096     * A bubble is displayed with a content fetched with #ElmMapMarkerGetFunc
19097     * when the user clicks on a marker.
19098     *
19099     * This functions is set for the marker class with
19100     * elm_map_marker_class_get_cb_set().
19101     *
19102     * @ingroup Map
19103     */
19104    EAPI void                  elm_map_bubbles_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
19105
19106    /**
19107     * Create a new group class.
19108     *
19109     * @param obj The map object.
19110     * @return Returns the new group class.
19111     *
19112     * Each marker must be associated to a group class. Markers in the same
19113     * group are grouped if they are close.
19114     *
19115     * The group class defines the style of the marker when a marker is grouped
19116     * to others markers. When it is alone, another class will be used.
19117     *
19118     * A group class will need to be provided when creating a marker with
19119     * elm_map_marker_add().
19120     *
19121     * Some properties and functions can be set by class, as:
19122     * - style, with elm_map_group_class_style_set()
19123     * - data - to be associated to the group class. It can be set using
19124     *   elm_map_group_class_data_set().
19125     * - min zoom to display markers, set with
19126     *   elm_map_group_class_zoom_displayed_set().
19127     * - max zoom to group markers, set using
19128     *   elm_map_group_class_zoom_grouped_set().
19129     * - visibility - set if markers will be visible or not, set with
19130     *   elm_map_group_class_hide_set().
19131     * - #ElmMapGroupIconGetFunc - used to fetch icon for markers group classes.
19132     *   It can be set using elm_map_group_class_icon_cb_set().
19133     *
19134     * @see elm_map_marker_add()
19135     * @see elm_map_group_class_style_set()
19136     * @see elm_map_group_class_data_set()
19137     * @see elm_map_group_class_zoom_displayed_set()
19138     * @see elm_map_group_class_zoom_grouped_set()
19139     * @see elm_map_group_class_hide_set()
19140     * @see elm_map_group_class_icon_cb_set()
19141     *
19142     * @ingroup Map
19143     */
19144    EAPI Elm_Map_Group_Class  *elm_map_group_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
19145
19146    /**
19147     * Set the marker's style of a group class.
19148     *
19149     * @param clas The group class.
19150     * @param style The style to be used by markers.
19151     *
19152     * Each marker must be associated to a group class, and will use the style
19153     * defined by such class when grouped to other markers.
19154     *
19155     * The following styles are provided by default theme:
19156     * @li @c radio - blue circle
19157     * @li @c radio2 - green circle
19158     * @li @c empty
19159     *
19160     * @see elm_map_group_class_new() for more details.
19161     * @see elm_map_marker_add()
19162     *
19163     * @ingroup Map
19164     */
19165    EAPI void                  elm_map_group_class_style_set(Elm_Map_Group_Class *clas, const char *style) EINA_ARG_NONNULL(1);
19166
19167    /**
19168     * Set the icon callback function of a group class.
19169     *
19170     * @param clas The group class.
19171     * @param icon_get The callback function that will return the icon.
19172     *
19173     * Each marker must be associated to a group class, and it can display a
19174     * custom icon. The function @p icon_get must return this icon.
19175     *
19176     * @see elm_map_group_class_new() for more details.
19177     * @see elm_map_marker_add()
19178     *
19179     * @ingroup Map
19180     */
19181    EAPI void                  elm_map_group_class_icon_cb_set(Elm_Map_Group_Class *clas, ElmMapGroupIconGetFunc icon_get) EINA_ARG_NONNULL(1);
19182
19183    /**
19184     * Set the data associated to the group class.
19185     *
19186     * @param clas The group class.
19187     * @param data The new user data.
19188     *
19189     * This data will be passed for callback functions, like icon get callback,
19190     * that can be set with elm_map_group_class_icon_cb_set().
19191     *
19192     * If a data was previously set, the object will lose the pointer for it,
19193     * so if needs to be freed, you must do it yourself.
19194     *
19195     * @see elm_map_group_class_new() for more details.
19196     * @see elm_map_group_class_icon_cb_set()
19197     * @see elm_map_marker_add()
19198     *
19199     * @ingroup Map
19200     */
19201    EAPI void                  elm_map_group_class_data_set(Elm_Map_Group_Class *clas, void *data) EINA_ARG_NONNULL(1);
19202
19203    /**
19204     * Set the minimum zoom from where the markers are displayed.
19205     *
19206     * @param clas The group class.
19207     * @param zoom The minimum zoom.
19208     *
19209     * Markers only will be displayed when the map is displayed at @p zoom
19210     * or bigger.
19211     *
19212     * @see elm_map_group_class_new() for more details.
19213     * @see elm_map_marker_add()
19214     *
19215     * @ingroup Map
19216     */
19217    EAPI void                  elm_map_group_class_zoom_displayed_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
19218
19219    /**
19220     * Set the zoom from where the markers are no more grouped.
19221     *
19222     * @param clas The group class.
19223     * @param zoom The maximum zoom.
19224     *
19225     * Markers only will be grouped when the map is displayed at
19226     * less than @p zoom.
19227     *
19228     * @see elm_map_group_class_new() for more details.
19229     * @see elm_map_marker_add()
19230     *
19231     * @ingroup Map
19232     */
19233    EAPI void                  elm_map_group_class_zoom_grouped_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
19234
19235    /**
19236     * Set if the markers associated to the group class @clas are hidden or not.
19237     *
19238     * @param clas The group class.
19239     * @param hide Use @c EINA_TRUE to hide markers or @c EINA_FALSE
19240     * to show them.
19241     *
19242     * If @p hide is @c EINA_TRUE the markers will be hidden, but default
19243     * is to show them.
19244     *
19245     * @ingroup Map
19246     */
19247    EAPI void                  elm_map_group_class_hide_set(Evas_Object *obj, Elm_Map_Group_Class *clas, Eina_Bool hide) EINA_ARG_NONNULL(1, 2);
19248
19249    /**
19250     * Create a new marker class.
19251     *
19252     * @param obj The map object.
19253     * @return Returns the new group class.
19254     *
19255     * Each marker must be associated to a class.
19256     *
19257     * The marker class defines the style of the marker when a marker is
19258     * displayed alone, i.e., not grouped to to others markers. When grouped
19259     * it will use group class style.
19260     *
19261     * A marker class will need to be provided when creating a marker with
19262     * elm_map_marker_add().
19263     *
19264     * Some properties and functions can be set by class, as:
19265     * - style, with elm_map_marker_class_style_set()
19266     * - #ElmMapMarkerIconGetFunc - used to fetch icon for markers classes.
19267     *   It can be set using elm_map_marker_class_icon_cb_set().
19268     * - #ElmMapMarkerGetFunc - used to fetch bubble content for marker classes.
19269     *   Set using elm_map_marker_class_get_cb_set().
19270     * - #ElmMapMarkerDelFunc - used to delete bubble content for marker classes.
19271     *   Set using elm_map_marker_class_del_cb_set().
19272     *
19273     * @see elm_map_marker_add()
19274     * @see elm_map_marker_class_style_set()
19275     * @see elm_map_marker_class_icon_cb_set()
19276     * @see elm_map_marker_class_get_cb_set()
19277     * @see elm_map_marker_class_del_cb_set()
19278     *
19279     * @ingroup Map
19280     */
19281    EAPI Elm_Map_Marker_Class *elm_map_marker_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
19282
19283    /**
19284     * Set the marker's style of a marker class.
19285     *
19286     * @param clas The marker class.
19287     * @param style The style to be used by markers.
19288     *
19289     * Each marker must be associated to a marker class, and will use the style
19290     * defined by such class when alone, i.e., @b not grouped to other markers.
19291     *
19292     * The following styles are provided by default theme:
19293     * @li @c radio
19294     * @li @c radio2
19295     * @li @c empty
19296     *
19297     * @see elm_map_marker_class_new() for more details.
19298     * @see elm_map_marker_add()
19299     *
19300     * @ingroup Map
19301     */
19302    EAPI void                  elm_map_marker_class_style_set(Elm_Map_Marker_Class *clas, const char *style) EINA_ARG_NONNULL(1);
19303
19304    /**
19305     * Set the icon callback function of a marker class.
19306     *
19307     * @param clas The marker class.
19308     * @param icon_get The callback function that will return the icon.
19309     *
19310     * Each marker must be associated to a marker class, and it can display a
19311     * custom icon. The function @p icon_get must return this icon.
19312     *
19313     * @see elm_map_marker_class_new() for more details.
19314     * @see elm_map_marker_add()
19315     *
19316     * @ingroup Map
19317     */
19318    EAPI void                  elm_map_marker_class_icon_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerIconGetFunc icon_get) EINA_ARG_NONNULL(1);
19319
19320    /**
19321     * Set the bubble content callback function of a marker class.
19322     *
19323     * @param clas The marker class.
19324     * @param get The callback function that will return the content.
19325     *
19326     * Each marker must be associated to a marker class, and it can display a
19327     * a content on a bubble that opens when the user click over the marker.
19328     * The function @p get must return this content object.
19329     *
19330     * If this content will need to be deleted, elm_map_marker_class_del_cb_set()
19331     * can be used.
19332     *
19333     * @see elm_map_marker_class_new() for more details.
19334     * @see elm_map_marker_class_del_cb_set()
19335     * @see elm_map_marker_add()
19336     *
19337     * @ingroup Map
19338     */
19339    EAPI void                  elm_map_marker_class_get_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerGetFunc get) EINA_ARG_NONNULL(1);
19340
19341    /**
19342     * Set the callback function used to delete bubble content of a marker class.
19343     *
19344     * @param clas The marker class.
19345     * @param del The callback function that will delete the content.
19346     *
19347     * Each marker must be associated to a marker class, and it can display a
19348     * a content on a bubble that opens when the user click over the marker.
19349     * The function to return such content can be set with
19350     * elm_map_marker_class_get_cb_set().
19351     *
19352     * If this content must be freed, a callback function need to be
19353     * set for that task with this function.
19354     *
19355     * If this callback is defined it will have to delete (or not) the
19356     * object inside, but if the callback is not defined the object will be
19357     * destroyed with evas_object_del().
19358     *
19359     * @see elm_map_marker_class_new() for more details.
19360     * @see elm_map_marker_class_get_cb_set()
19361     * @see elm_map_marker_add()
19362     *
19363     * @ingroup Map
19364     */
19365    EAPI void                  elm_map_marker_class_del_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerDelFunc del) EINA_ARG_NONNULL(1);
19366
19367    /**
19368     * Get the list of available sources.
19369     *
19370     * @param obj The map object.
19371     * @return The source names list.
19372     *
19373     * It will provide a list with all available sources, that can be set as
19374     * current source with elm_map_source_name_set(), or get with
19375     * elm_map_source_name_get().
19376     *
19377     * Available sources:
19378     * @li "Mapnik"
19379     * @li "Osmarender"
19380     * @li "CycleMap"
19381     * @li "Maplint"
19382     *
19383     * @see elm_map_source_name_set() for more details.
19384     * @see elm_map_source_name_get()
19385     *
19386     * @ingroup Map
19387     */
19388    EAPI const char          **elm_map_source_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19389
19390    /**
19391     * Set the source of the map.
19392     *
19393     * @param obj The map object.
19394     * @param source The source to be used.
19395     *
19396     * Map widget retrieves images that composes the map from a web service.
19397     * This web service can be set with this method.
19398     *
19399     * A different service can return a different maps with different
19400     * information and it can use different zoom values.
19401     *
19402     * The @p source_name need to match one of the names provided by
19403     * elm_map_source_names_get().
19404     *
19405     * The current source can be get using elm_map_source_name_get().
19406     *
19407     * @see elm_map_source_names_get()
19408     * @see elm_map_source_name_get()
19409     *
19410     *
19411     * @ingroup Map
19412     */
19413    EAPI void                  elm_map_source_name_set(Evas_Object *obj, const char *source_name) EINA_ARG_NONNULL(1);
19414
19415    /**
19416     * Get the name of currently used source.
19417     *
19418     * @param obj The map object.
19419     * @return Returns the name of the source in use.
19420     *
19421     * @see elm_map_source_name_set() for more details.
19422     *
19423     * @ingroup Map
19424     */
19425    EAPI const char           *elm_map_source_name_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19426
19427    /**
19428     * Set the source of the route service to be used by the map.
19429     *
19430     * @param obj The map object.
19431     * @param source The route service to be used, being it one of
19432     * #ELM_MAP_ROUTE_SOURCE_YOURS (default), #ELM_MAP_ROUTE_SOURCE_MONAV,
19433     * and #ELM_MAP_ROUTE_SOURCE_ORS.
19434     *
19435     * Each one has its own algorithm, so the route retrieved may
19436     * differ depending on the source route. Now, only the default is working.
19437     *
19438     * #ELM_MAP_ROUTE_SOURCE_YOURS is the routing service provided at
19439     * http://www.yournavigation.org/.
19440     *
19441     * #ELM_MAP_ROUTE_SOURCE_MONAV, offers exact routing without heuristic
19442     * assumptions. Its routing core is based on Contraction Hierarchies.
19443     *
19444     * #ELM_MAP_ROUTE_SOURCE_ORS, is provided at http://www.openrouteservice.org/
19445     *
19446     * @see elm_map_route_source_get().
19447     *
19448     * @ingroup Map
19449     */
19450    EAPI void                  elm_map_route_source_set(Evas_Object *obj, Elm_Map_Route_Sources source) EINA_ARG_NONNULL(1);
19451
19452    /**
19453     * Get the current route source.
19454     *
19455     * @param obj The map object.
19456     * @return The source of the route service used by the map.
19457     *
19458     * @see elm_map_route_source_set() for details.
19459     *
19460     * @ingroup Map
19461     */
19462    EAPI Elm_Map_Route_Sources elm_map_route_source_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19463
19464    /**
19465     * Set the minimum zoom of the source.
19466     *
19467     * @param obj The map object.
19468     * @param zoom New minimum zoom value to be used.
19469     *
19470     * By default, it's 0.
19471     *
19472     * @ingroup Map
19473     */
19474    EAPI void                  elm_map_source_zoom_min_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
19475
19476    /**
19477     * Get the minimum zoom of the source.
19478     *
19479     * @param obj The map object.
19480     * @return Returns the minimum zoom of the source.
19481     *
19482     * @see elm_map_source_zoom_min_set() for details.
19483     *
19484     * @ingroup Map
19485     */
19486    EAPI int                   elm_map_source_zoom_min_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19487
19488    /**
19489     * Set the maximum zoom of the source.
19490     *
19491     * @param obj The map object.
19492     * @param zoom New maximum zoom value to be used.
19493     *
19494     * By default, it's 18.
19495     *
19496     * @ingroup Map
19497     */
19498    EAPI void                  elm_map_source_zoom_max_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
19499
19500    /**
19501     * Get the maximum zoom of the source.
19502     *
19503     * @param obj The map object.
19504     * @return Returns the maximum zoom of the source.
19505     *
19506     * @see elm_map_source_zoom_min_set() for details.
19507     *
19508     * @ingroup Map
19509     */
19510    EAPI int                   elm_map_source_zoom_max_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19511
19512    /**
19513     * Set the user agent used by the map object to access routing services.
19514     *
19515     * @param obj The map object.
19516     * @param user_agent The user agent to be used by the map.
19517     *
19518     * User agent is a client application implementing a network protocol used
19519     * in communications within a client–server distributed computing system
19520     *
19521     * The @p user_agent identification string will transmitted in a header
19522     * field @c User-Agent.
19523     *
19524     * @see elm_map_user_agent_get()
19525     *
19526     * @ingroup Map
19527     */
19528    EAPI void                  elm_map_user_agent_set(Evas_Object *obj, const char *user_agent) EINA_ARG_NONNULL(1, 2);
19529
19530    /**
19531     * Get the user agent used by the map object.
19532     *
19533     * @param obj The map object.
19534     * @return The user agent identification string used by the map.
19535     *
19536     * @see elm_map_user_agent_set() for details.
19537     *
19538     * @ingroup Map
19539     */
19540    EAPI const char           *elm_map_user_agent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19541
19542    /**
19543     * Add a new route to the map object.
19544     *
19545     * @param obj The map object.
19546     * @param type The type of transport to be considered when tracing a route.
19547     * @param method The routing method, what should be priorized.
19548     * @param flon The start longitude.
19549     * @param flat The start latitude.
19550     * @param tlon The destination longitude.
19551     * @param tlat The destination latitude.
19552     *
19553     * @return The created route or @c NULL upon failure.
19554     *
19555     * A route will be traced by point on coordinates (@p flat, @p flon)
19556     * to point on coordinates (@p tlat, @p tlon), using the route service
19557     * set with elm_map_route_source_set().
19558     *
19559     * It will take @p type on consideration to define the route,
19560     * depending if the user will be walking or driving, the route may vary.
19561     * One of #ELM_MAP_ROUTE_TYPE_MOTOCAR, #ELM_MAP_ROUTE_TYPE_BICYCLE, or
19562     * #ELM_MAP_ROUTE_TYPE_FOOT need to be used.
19563     *
19564     * Another parameter is what the route should priorize, the minor distance
19565     * or the less time to be spend on the route. So @p method should be one
19566     * of #ELM_MAP_ROUTE_METHOD_SHORTEST or #ELM_MAP_ROUTE_METHOD_FASTEST.
19567     *
19568     * Routes created with this method can be deleted with
19569     * elm_map_route_remove(), colored with elm_map_route_color_set(),
19570     * and distance can be get with elm_map_route_distance_get().
19571     *
19572     * @see elm_map_route_remove()
19573     * @see elm_map_route_color_set()
19574     * @see elm_map_route_distance_get()
19575     * @see elm_map_route_source_set()
19576     *
19577     * @ingroup Map
19578     */
19579    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);
19580
19581    /**
19582     * Remove a route from the map.
19583     *
19584     * @param route The route to remove.
19585     *
19586     * @see elm_map_route_add()
19587     *
19588     * @ingroup Map
19589     */
19590    EAPI void                  elm_map_route_remove(Elm_Map_Route *route) EINA_ARG_NONNULL(1);
19591
19592    /**
19593     * Set the route color.
19594     *
19595     * @param route The route object.
19596     * @param r Red channel value, from 0 to 255.
19597     * @param g Green channel value, from 0 to 255.
19598     * @param b Blue channel value, from 0 to 255.
19599     * @param a Alpha channel value, from 0 to 255.
19600     *
19601     * It uses an additive color model, so each color channel represents
19602     * how much of each primary colors must to be used. 0 represents
19603     * ausence of this color, so if all of the three are set to 0,
19604     * the color will be black.
19605     *
19606     * These component values should be integers in the range 0 to 255,
19607     * (single 8-bit byte).
19608     *
19609     * This sets the color used for the route. By default, it is set to
19610     * solid red (r = 255, g = 0, b = 0, a = 255).
19611     *
19612     * For alpha channel, 0 represents completely transparent, and 255, opaque.
19613     *
19614     * @see elm_map_route_color_get()
19615     *
19616     * @ingroup Map
19617     */
19618    EAPI void                  elm_map_route_color_set(Elm_Map_Route *route, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
19619
19620    /**
19621     * Get the route color.
19622     *
19623     * @param route The route object.
19624     * @param r Pointer where to store the red channel value.
19625     * @param g Pointer where to store the green channel value.
19626     * @param b Pointer where to store the blue channel value.
19627     * @param a Pointer where to store the alpha channel value.
19628     *
19629     * @see elm_map_route_color_set() for details.
19630     *
19631     * @ingroup Map
19632     */
19633    EAPI void                  elm_map_route_color_get(const Elm_Map_Route *route, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
19634
19635    /**
19636     * Get the route distance in kilometers.
19637     *
19638     * @param route The route object.
19639     * @return The distance of route (unit : km).
19640     *
19641     * @ingroup Map
19642     */
19643    EAPI double                elm_map_route_distance_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
19644
19645    /**
19646     * Get the information of route nodes.
19647     *
19648     * @param route The route object.
19649     * @return Returns a string with the nodes of route.
19650     *
19651     * @ingroup Map
19652     */
19653    EAPI const char           *elm_map_route_node_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
19654
19655    /**
19656     * Get the information of route waypoint.
19657     *
19658     * @param route the route object.
19659     * @return Returns a string with information about waypoint of route.
19660     *
19661     * @ingroup Map
19662     */
19663    EAPI const char           *elm_map_route_waypoint_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
19664
19665    /**
19666     * Get the address of the name.
19667     *
19668     * @param name The name handle.
19669     * @return Returns the address string of @p name.
19670     *
19671     * This gets the coordinates of the @p name, created with one of the
19672     * conversion functions.
19673     *
19674     * @see elm_map_utils_convert_name_into_coord()
19675     * @see elm_map_utils_convert_coord_into_name()
19676     *
19677     * @ingroup Map
19678     */
19679    EAPI const char           *elm_map_name_address_get(const Elm_Map_Name *name) EINA_ARG_NONNULL(1);
19680
19681    /**
19682     * Get the current coordinates of the name.
19683     *
19684     * @param name The name handle.
19685     * @param lat Pointer where to store the latitude.
19686     * @param lon Pointer where to store The longitude.
19687     *
19688     * This gets the coordinates of the @p name, created with one of the
19689     * conversion functions.
19690     *
19691     * @see elm_map_utils_convert_name_into_coord()
19692     * @see elm_map_utils_convert_coord_into_name()
19693     *
19694     * @ingroup Map
19695     */
19696    EAPI void                  elm_map_name_region_get(const Elm_Map_Name *name, double *lon, double *lat) EINA_ARG_NONNULL(1);
19697
19698    /**
19699     * Remove a name from the map.
19700     *
19701     * @param name The name to remove.
19702     *
19703     * Basically the struct handled by @p name will be freed, so convertions
19704     * between address and coordinates will be lost.
19705     *
19706     * @see elm_map_utils_convert_name_into_coord()
19707     * @see elm_map_utils_convert_coord_into_name()
19708     *
19709     * @ingroup Map
19710     */
19711    EAPI void                  elm_map_name_remove(Elm_Map_Name *name) EINA_ARG_NONNULL(1);
19712
19713    /**
19714     * Rotate the map.
19715     *
19716     * @param obj The map object.
19717     * @param degree Angle from 0.0 to 360.0 to rotate arount Z axis.
19718     * @param cx Rotation's center horizontal position.
19719     * @param cy Rotation's center vertical position.
19720     *
19721     * @see elm_map_rotate_get()
19722     *
19723     * @ingroup Map
19724     */
19725    EAPI void                  elm_map_rotate_set(Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy) EINA_ARG_NONNULL(1);
19726
19727    /**
19728     * Get the rotate degree of the map
19729     *
19730     * @param obj The map object
19731     * @param degree Pointer where to store degrees from 0.0 to 360.0
19732     * to rotate arount Z axis.
19733     * @param cx Pointer where to store rotation's center horizontal position.
19734     * @param cy Pointer where to store rotation's center vertical position.
19735     *
19736     * @see elm_map_rotate_set() to set map rotation.
19737     *
19738     * @ingroup Map
19739     */
19740    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);
19741
19742    /**
19743     * Enable or disable mouse wheel to be used to zoom in / out the map.
19744     *
19745     * @param obj The map object.
19746     * @param disabled Use @c EINA_TRUE to disable mouse wheel or @c EINA_FALSE
19747     * to enable it.
19748     *
19749     * Mouse wheel can be used for the user to zoom in or zoom out the map.
19750     *
19751     * It's disabled by default.
19752     *
19753     * @see elm_map_wheel_disabled_get()
19754     *
19755     * @ingroup Map
19756     */
19757    EAPI void                  elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
19758
19759    /**
19760     * Get a value whether mouse wheel is enabled or not.
19761     *
19762     * @param obj The map object.
19763     * @return @c EINA_TRUE means map is disabled. @c EINA_FALSE indicates
19764     * it is enabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
19765     *
19766     * Mouse wheel can be used for the user to zoom in or zoom out the map.
19767     *
19768     * @see elm_map_wheel_disabled_set() for details.
19769     *
19770     * @ingroup Map
19771     */
19772    EAPI Eina_Bool             elm_map_wheel_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19773
19774 #ifdef ELM_EMAP
19775    /**
19776     * Add a track on the map
19777     *
19778     * @param obj The map object.
19779     * @param emap The emap route object.
19780     * @return The route object. This is an elm object of type Route.
19781     *
19782     * @see elm_route_add() for details.
19783     *
19784     * @ingroup Map
19785     */
19786    EAPI Evas_Object          *elm_map_track_add(Evas_Object *obj, EMap_Route *emap) EINA_ARG_NONNULL(1);
19787 #endif
19788
19789    /**
19790     * Remove a track from the map
19791     *
19792     * @param obj The map object.
19793     * @param route The track to remove.
19794     *
19795     * @ingroup Map
19796     */
19797    EAPI void                  elm_map_track_remove(Evas_Object *obj, Evas_Object *route) EINA_ARG_NONNULL(1);
19798
19799    /**
19800     * @}
19801     */
19802
19803    /* Route */
19804    EAPI Evas_Object *elm_route_add(Evas_Object *parent);
19805 #ifdef ELM_EMAP
19806    EAPI void elm_route_emap_set(Evas_Object *obj, EMap_Route *emap);
19807 #endif
19808    EAPI double elm_route_lon_min_get(Evas_Object *obj);
19809    EAPI double elm_route_lat_min_get(Evas_Object *obj);
19810    EAPI double elm_route_lon_max_get(Evas_Object *obj);
19811    EAPI double elm_route_lat_max_get(Evas_Object *obj);
19812
19813
19814    /**
19815     * @defgroup Panel Panel
19816     *
19817     * @image html img/widget/panel/preview-00.png
19818     * @image latex img/widget/panel/preview-00.eps
19819     *
19820     * @brief A panel is a type of animated container that contains subobjects.
19821     * It can be expanded or contracted by clicking the button on it's edge.
19822     *
19823     * Orientations are as follows:
19824     * @li ELM_PANEL_ORIENT_TOP
19825     * @li ELM_PANEL_ORIENT_LEFT
19826     * @li ELM_PANEL_ORIENT_RIGHT
19827     *
19828     * @ref tutorial_panel shows one way to use this widget.
19829     * @{
19830     */
19831    typedef enum _Elm_Panel_Orient
19832      {
19833         ELM_PANEL_ORIENT_TOP, /**< Panel (dis)appears from the top */
19834         ELM_PANEL_ORIENT_BOTTOM, /**< Not implemented */
19835         ELM_PANEL_ORIENT_LEFT, /**< Panel (dis)appears from the left */
19836         ELM_PANEL_ORIENT_RIGHT, /**< Panel (dis)appears from the right */
19837      } Elm_Panel_Orient;
19838    /**
19839     * @brief Adds a panel object
19840     *
19841     * @param parent The parent object
19842     *
19843     * @return The panel object, or NULL on failure
19844     */
19845    EAPI Evas_Object          *elm_panel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19846    /**
19847     * @brief Sets the orientation of the panel
19848     *
19849     * @param parent The parent object
19850     * @param orient The panel orientation. Can be one of the following:
19851     * @li ELM_PANEL_ORIENT_TOP
19852     * @li ELM_PANEL_ORIENT_LEFT
19853     * @li ELM_PANEL_ORIENT_RIGHT
19854     *
19855     * Sets from where the panel will (dis)appear.
19856     */
19857    EAPI void                  elm_panel_orient_set(Evas_Object *obj, Elm_Panel_Orient orient) EINA_ARG_NONNULL(1);
19858    /**
19859     * @brief Get the orientation of the panel.
19860     *
19861     * @param obj The panel object
19862     * @return The Elm_Panel_Orient, or ELM_PANEL_ORIENT_LEFT on failure.
19863     */
19864    EAPI Elm_Panel_Orient      elm_panel_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19865    /**
19866     * @brief Set the content of the panel.
19867     *
19868     * @param obj The panel object
19869     * @param content The panel content
19870     *
19871     * Once the content object is set, a previously set one will be deleted.
19872     * If you want to keep that old content object, use the
19873     * elm_panel_content_unset() function.
19874     */
19875    EAPI void                  elm_panel_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
19876    /**
19877     * @brief Get the content of the panel.
19878     *
19879     * @param obj The panel object
19880     * @return The content that is being used
19881     *
19882     * Return the content object which is set for this widget.
19883     *
19884     * @see elm_panel_content_set()
19885     */
19886    EAPI Evas_Object          *elm_panel_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19887    /**
19888     * @brief Unset the content of the panel.
19889     *
19890     * @param obj The panel object
19891     * @return The content that was being used
19892     *
19893     * Unparent and return the content object which was set for this widget.
19894     *
19895     * @see elm_panel_content_set()
19896     */
19897    EAPI Evas_Object          *elm_panel_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
19898    /**
19899     * @brief Set the state of the panel.
19900     *
19901     * @param obj The panel object
19902     * @param hidden If true, the panel will run the animation to contract
19903     */
19904    EAPI void                  elm_panel_hidden_set(Evas_Object *obj, Eina_Bool hidden) EINA_ARG_NONNULL(1);
19905    /**
19906     * @brief Get the state of the panel.
19907     *
19908     * @param obj The panel object
19909     * @param hidden If true, the panel is in the "hide" state
19910     */
19911    EAPI Eina_Bool             elm_panel_hidden_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19912    /**
19913     * @brief Toggle the hidden state of the panel from code
19914     *
19915     * @param obj The panel object
19916     */
19917    EAPI void                  elm_panel_toggle(Evas_Object *obj) EINA_ARG_NONNULL(1);
19918    /**
19919     * @}
19920     */
19921
19922    /**
19923     * @defgroup Panes Panes
19924     * @ingroup Elementary
19925     *
19926     * @image html img/widget/panes/preview-00.png
19927     * @image latex img/widget/panes/preview-00.eps width=\textwidth
19928     *
19929     * @image html img/panes.png
19930     * @image latex img/panes.eps width=\textwidth
19931     *
19932     * The panes adds a dragable bar between two contents. When dragged
19933     * this bar will resize contents size.
19934     *
19935     * Panes can be displayed vertically or horizontally, and contents
19936     * size proportion can be customized (homogeneous by default).
19937     *
19938     * Smart callbacks one can listen to:
19939     * - "press" - The panes has been pressed (button wasn't released yet).
19940     * - "unpressed" - The panes was released after being pressed.
19941     * - "clicked" - The panes has been clicked>
19942     * - "clicked,double" - The panes has been double clicked
19943     *
19944     * Available styles for it:
19945     * - @c "default"
19946     *
19947     * Here is an example on its usage:
19948     * @li @ref panes_example
19949     */
19950
19951    /**
19952     * @addtogroup Panes
19953     * @{
19954     */
19955
19956    /**
19957     * Add a new panes widget to the given parent Elementary
19958     * (container) object.
19959     *
19960     * @param parent The parent object.
19961     * @return a new panes widget handle or @c NULL, on errors.
19962     *
19963     * This function inserts a new panes widget on the canvas.
19964     *
19965     * @ingroup Panes
19966     */
19967    EAPI Evas_Object          *elm_panes_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19968
19969    /**
19970     * Set the left content of the panes widget.
19971     *
19972     * @param obj The panes object.
19973     * @param content The new left content object.
19974     *
19975     * Once the content object is set, a previously set one will be deleted.
19976     * If you want to keep that old content object, use the
19977     * elm_panes_content_left_unset() function.
19978     *
19979     * If panes is displayed vertically, left content will be displayed at
19980     * top.
19981     *
19982     * @see elm_panes_content_left_get()
19983     * @see elm_panes_content_right_set() to set content on the other side.
19984     *
19985     * @ingroup Panes
19986     */
19987    EAPI void                  elm_panes_content_left_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
19988
19989    /**
19990     * Set the right content of the panes widget.
19991     *
19992     * @param obj The panes object.
19993     * @param content The new right content object.
19994     *
19995     * Once the content object is set, a previously set one will be deleted.
19996     * If you want to keep that old content object, use the
19997     * elm_panes_content_right_unset() function.
19998     *
19999     * If panes is displayed vertically, left content will be displayed at
20000     * bottom.
20001     *
20002     * @see elm_panes_content_right_get()
20003     * @see elm_panes_content_left_set() to set content on the other side.
20004     *
20005     * @ingroup Panes
20006     */
20007    EAPI void                  elm_panes_content_right_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
20008
20009    /**
20010     * Get the left content of the panes.
20011     *
20012     * @param obj The panes object.
20013     * @return The left content object that is being used.
20014     *
20015     * Return the left content object which is set for this widget.
20016     *
20017     * @see elm_panes_content_left_set() for details.
20018     *
20019     * @ingroup Panes
20020     */
20021    EAPI Evas_Object          *elm_panes_content_left_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20022
20023    /**
20024     * Get the right content of the panes.
20025     *
20026     * @param obj The panes object
20027     * @return The right content object that is being used
20028     *
20029     * Return the right content object which is set for this widget.
20030     *
20031     * @see elm_panes_content_right_set() for details.
20032     *
20033     * @ingroup Panes
20034     */
20035    EAPI Evas_Object          *elm_panes_content_right_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20036
20037    /**
20038     * Unset the left content used for the panes.
20039     *
20040     * @param obj The panes object.
20041     * @return The left content object that was being used.
20042     *
20043     * Unparent and return the left content object which was set for this widget.
20044     *
20045     * @see elm_panes_content_left_set() for details.
20046     * @see elm_panes_content_left_get().
20047     *
20048     * @ingroup Panes
20049     */
20050    EAPI Evas_Object          *elm_panes_content_left_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
20051
20052    /**
20053     * Unset the right content used for the panes.
20054     *
20055     * @param obj The panes object.
20056     * @return The right content object that was being used.
20057     *
20058     * Unparent and return the right content object which was set for this
20059     * widget.
20060     *
20061     * @see elm_panes_content_right_set() for details.
20062     * @see elm_panes_content_right_get().
20063     *
20064     * @ingroup Panes
20065     */
20066    EAPI Evas_Object          *elm_panes_content_right_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
20067
20068    /**
20069     * Get the size proportion of panes widget's left side.
20070     *
20071     * @param obj The panes object.
20072     * @return float value between 0.0 and 1.0 representing size proportion
20073     * of left side.
20074     *
20075     * @see elm_panes_content_left_size_set() for more details.
20076     *
20077     * @ingroup Panes
20078     */
20079    EAPI double                elm_panes_content_left_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20080
20081    /**
20082     * Set the size proportion of panes widget's left side.
20083     *
20084     * @param obj The panes object.
20085     * @param size Value between 0.0 and 1.0 representing size proportion
20086     * of left side.
20087     *
20088     * By default it's homogeneous, i.e., both sides have the same size.
20089     *
20090     * If something different is required, it can be set with this function.
20091     * For example, if the left content should be displayed over
20092     * 75% of the panes size, @p size should be passed as @c 0.75.
20093     * This way, right content will be resized to 25% of panes size.
20094     *
20095     * If displayed vertically, left content is displayed at top, and
20096     * right content at bottom.
20097     *
20098     * @note This proportion will change when user drags the panes bar.
20099     *
20100     * @see elm_panes_content_left_size_get()
20101     *
20102     * @ingroup Panes
20103     */
20104    EAPI void                  elm_panes_content_left_size_set(Evas_Object *obj, double size) EINA_ARG_NONNULL(1);
20105
20106   /**
20107    * Set the orientation of a given panes widget.
20108    *
20109    * @param obj The panes object.
20110    * @param horizontal Use @c EINA_TRUE to make @p obj to be
20111    * @b horizontal, @c EINA_FALSE to make it @b vertical.
20112    *
20113    * Use this function to change how your panes is to be
20114    * disposed: vertically or horizontally.
20115    *
20116    * By default it's displayed horizontally.
20117    *
20118    * @see elm_panes_horizontal_get()
20119    *
20120    * @ingroup Panes
20121    */
20122    EAPI void                  elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
20123
20124    /**
20125     * Retrieve the orientation of a given panes widget.
20126     *
20127     * @param obj The panes object.
20128     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
20129     * @c EINA_FALSE if it's @b vertical (and on errors).
20130     *
20131     * @see elm_panes_horizontal_set() for more details.
20132     *
20133     * @ingroup Panes
20134     */
20135    EAPI Eina_Bool             elm_panes_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20136
20137    /**
20138     * @}
20139     */
20140
20141    /**
20142     * @defgroup Flip Flip
20143     *
20144     * @image html img/widget/flip/preview-00.png
20145     * @image latex img/widget/flip/preview-00.eps
20146     *
20147     * This widget holds 2 content objects(Evas_Object): one on the front and one
20148     * on the back. It allows you to flip from front to back and vice-versa using
20149     * various animations.
20150     *
20151     * If either the front or back contents are not set the flip will treat that
20152     * as transparent. So if you wore to set the front content but not the back,
20153     * and then call elm_flip_go() you would see whatever is below the flip.
20154     *
20155     * For a list of supported animations see elm_flip_go().
20156     *
20157     * Signals that you can add callbacks for are:
20158     * "animate,begin" - when a flip animation was started
20159     * "animate,done" - when a flip animation is finished
20160     *
20161     * @ref tutorial_flip show how to use most of the API.
20162     *
20163     * @{
20164     */
20165    typedef enum _Elm_Flip_Mode
20166      {
20167         ELM_FLIP_ROTATE_Y_CENTER_AXIS,
20168         ELM_FLIP_ROTATE_X_CENTER_AXIS,
20169         ELM_FLIP_ROTATE_XZ_CENTER_AXIS,
20170         ELM_FLIP_ROTATE_YZ_CENTER_AXIS,
20171         ELM_FLIP_CUBE_LEFT,
20172         ELM_FLIP_CUBE_RIGHT,
20173         ELM_FLIP_CUBE_UP,
20174         ELM_FLIP_CUBE_DOWN,
20175         ELM_FLIP_PAGE_LEFT,
20176         ELM_FLIP_PAGE_RIGHT,
20177         ELM_FLIP_PAGE_UP,
20178         ELM_FLIP_PAGE_DOWN
20179      } Elm_Flip_Mode;
20180    typedef enum _Elm_Flip_Interaction
20181      {
20182         ELM_FLIP_INTERACTION_NONE,
20183         ELM_FLIP_INTERACTION_ROTATE,
20184         ELM_FLIP_INTERACTION_CUBE,
20185         ELM_FLIP_INTERACTION_PAGE
20186      } Elm_Flip_Interaction;
20187    typedef enum _Elm_Flip_Direction
20188      {
20189         ELM_FLIP_DIRECTION_UP, /**< Allows interaction with the top of the widget */
20190         ELM_FLIP_DIRECTION_DOWN, /**< Allows interaction with the bottom of the widget */
20191         ELM_FLIP_DIRECTION_LEFT, /**< Allows interaction with the left portion of the widget */
20192         ELM_FLIP_DIRECTION_RIGHT /**< Allows interaction with the right portion of the widget */
20193      } Elm_Flip_Direction;
20194    /**
20195     * @brief Add a new flip to the parent
20196     *
20197     * @param parent The parent object
20198     * @return The new object or NULL if it cannot be created
20199     */
20200    EAPI Evas_Object *elm_flip_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20201    /**
20202     * @brief Set the front content of the flip widget.
20203     *
20204     * @param obj The flip object
20205     * @param content The new front content object
20206     *
20207     * Once the content object is set, a previously set one will be deleted.
20208     * If you want to keep that old content object, use the
20209     * elm_flip_content_front_unset() function.
20210     */
20211    EAPI void         elm_flip_content_front_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
20212    /**
20213     * @brief Set the back content of the flip widget.
20214     *
20215     * @param obj The flip object
20216     * @param content The new back content object
20217     *
20218     * Once the content object is set, a previously set one will be deleted.
20219     * If you want to keep that old content object, use the
20220     * elm_flip_content_back_unset() function.
20221     */
20222    EAPI void         elm_flip_content_back_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
20223    /**
20224     * @brief Get the front content used for the flip
20225     *
20226     * @param obj The flip object
20227     * @return The front content object that is being used
20228     *
20229     * Return the front content object which is set for this widget.
20230     */
20231    EAPI Evas_Object *elm_flip_content_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20232    /**
20233     * @brief Get the back content used for the flip
20234     *
20235     * @param obj The flip object
20236     * @return The back content object that is being used
20237     *
20238     * Return the back content object which is set for this widget.
20239     */
20240    EAPI Evas_Object *elm_flip_content_back_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20241    /**
20242     * @brief Unset the front content used for the flip
20243     *
20244     * @param obj The flip object
20245     * @return The front content object that was being used
20246     *
20247     * Unparent and return the front content object which was set for this widget.
20248     */
20249    EAPI Evas_Object *elm_flip_content_front_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
20250    /**
20251     * @brief Unset the back content used for the flip
20252     *
20253     * @param obj The flip object
20254     * @return The back content object that was being used
20255     *
20256     * Unparent and return the back content object which was set for this widget.
20257     */
20258    EAPI Evas_Object *elm_flip_content_back_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
20259    /**
20260     * @brief Get flip front visibility state
20261     *
20262     * @param obj The flip objct
20263     * @return EINA_TRUE if front front is showing, EINA_FALSE if the back is
20264     * showing.
20265     */
20266    EAPI Eina_Bool    elm_flip_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20267    /**
20268     * @brief Set flip perspective
20269     *
20270     * @param obj The flip object
20271     * @param foc The coordinate to set the focus on
20272     * @param x The X coordinate
20273     * @param y The Y coordinate
20274     *
20275     * @warning This function currently does nothing.
20276     */
20277    EAPI void         elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
20278    /**
20279     * @brief Runs the flip animation
20280     *
20281     * @param obj The flip object
20282     * @param mode The mode type
20283     *
20284     * Flips the front and back contents using the @p mode animation. This
20285     * efectively hides the currently visible content and shows the hidden one.
20286     *
20287     * There a number of possible animations to use for the flipping:
20288     * @li ELM_FLIP_ROTATE_X_CENTER_AXIS - Rotate the currently visible content
20289     * around a horizontal axis in the middle of its height, the other content
20290     * is shown as the other side of the flip.
20291     * @li ELM_FLIP_ROTATE_Y_CENTER_AXIS - Rotate the currently visible content
20292     * around a vertical axis in the middle of its width, the other content is
20293     * shown as the other side of the flip.
20294     * @li ELM_FLIP_ROTATE_XZ_CENTER_AXIS - Rotate the currently visible content
20295     * around a diagonal axis in the middle of its width, the other content is
20296     * shown as the other side of the flip.
20297     * @li ELM_FLIP_ROTATE_YZ_CENTER_AXIS - Rotate the currently visible content
20298     * around a diagonal axis in the middle of its height, the other content is
20299     * shown as the other side of the flip.
20300     * @li ELM_FLIP_CUBE_LEFT - Rotate the currently visible content to the left
20301     * as if the flip was a cube, the other content is show as the right face of
20302     * the cube.
20303     * @li ELM_FLIP_CUBE_RIGHT - Rotate the currently visible content to the
20304     * right as if the flip was a cube, the other content is show as the left
20305     * face of the cube.
20306     * @li ELM_FLIP_CUBE_UP - Rotate the currently visible content up as if the
20307     * flip was a cube, the other content is show as the bottom face of the cube.
20308     * @li ELM_FLIP_CUBE_DOWN - Rotate the currently visible content down as if
20309     * the flip was a cube, the other content is show as the upper face of the
20310     * cube.
20311     * @li ELM_FLIP_PAGE_LEFT - Move the currently visible content to the left as
20312     * if the flip was a book, the other content is shown as the page below that.
20313     * @li ELM_FLIP_PAGE_RIGHT - Move the currently visible content to the right
20314     * as if the flip was a book, the other content is shown as the page below
20315     * that.
20316     * @li ELM_FLIP_PAGE_UP - Move the currently visible content up as if the
20317     * flip was a book, the other content is shown as the page below that.
20318     * @li ELM_FLIP_PAGE_DOWN - Move the currently visible content down as if the
20319     * flip was a book, the other content is shown as the page below that.
20320     *
20321     * @image html elm_flip.png
20322     * @image latex elm_flip.eps width=\textwidth
20323     */
20324    EAPI void         elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode) EINA_ARG_NONNULL(1);
20325    /**
20326     * @brief Set the interactive flip mode
20327     *
20328     * @param obj The flip object
20329     * @param mode The interactive flip mode to use
20330     *
20331     * This sets if the flip should be interactive (allow user to click and
20332     * drag a side of the flip to reveal the back page and cause it to flip).
20333     * By default a flip is not interactive. You may also need to set which
20334     * sides of the flip are "active" for flipping and how much space they use
20335     * (a minimum of a finger size) with elm_flip_interacton_direction_enabled_set()
20336     * and elm_flip_interacton_direction_hitsize_set()
20337     *
20338     * The four avilable mode of interaction are:
20339     * @li ELM_FLIP_INTERACTION_NONE - No interaction is allowed
20340     * @li ELM_FLIP_INTERACTION_ROTATE - Interaction will cause rotate animation
20341     * @li ELM_FLIP_INTERACTION_CUBE - Interaction will cause cube animation
20342     * @li ELM_FLIP_INTERACTION_PAGE - Interaction will cause page animation
20343     *
20344     * @note ELM_FLIP_INTERACTION_ROTATE won't cause
20345     * ELM_FLIP_ROTATE_XZ_CENTER_AXIS or ELM_FLIP_ROTATE_YZ_CENTER_AXIS to
20346     * happen, those can only be acheived with elm_flip_go();
20347     */
20348    EAPI void         elm_flip_interaction_set(Evas_Object *obj, Elm_Flip_Interaction mode);
20349    /**
20350     * @brief Get the interactive flip mode
20351     *
20352     * @param obj The flip object
20353     * @return The interactive flip mode
20354     *
20355     * Returns the interactive flip mode set by elm_flip_interaction_set()
20356     */
20357    EAPI Elm_Flip_Interaction elm_flip_interaction_get(const Evas_Object *obj);
20358    /**
20359     * @brief Set which directions of the flip respond to interactive flip
20360     *
20361     * @param obj The flip object
20362     * @param dir The direction to change
20363     * @param enabled If that direction is enabled or not
20364     *
20365     * By default all directions are disabled, so you may want to enable the
20366     * desired directions for flipping if you need interactive flipping. You must
20367     * call this function once for each direction that should be enabled.
20368     *
20369     * @see elm_flip_interaction_set()
20370     */
20371    EAPI void         elm_flip_interacton_direction_enabled_set(Evas_Object *obj, Elm_Flip_Direction dir, Eina_Bool enabled);
20372    /**
20373     * @brief Get the enabled state of that flip direction
20374     *
20375     * @param obj The flip object
20376     * @param dir The direction to check
20377     * @return If that direction is enabled or not
20378     *
20379     * Gets the enabled state set by elm_flip_interacton_direction_enabled_set()
20380     *
20381     * @see elm_flip_interaction_set()
20382     */
20383    EAPI Eina_Bool    elm_flip_interacton_direction_enabled_get(Evas_Object *obj, Elm_Flip_Direction dir);
20384    /**
20385     * @brief Set the amount of the flip that is sensitive to interactive flip
20386     *
20387     * @param obj The flip object
20388     * @param dir The direction to modify
20389     * @param hitsize The amount of that dimension (0.0 to 1.0) to use
20390     *
20391     * Set the amount of the flip that is sensitive to interactive flip, with 0
20392     * representing no area in the flip and 1 representing the entire flip. There
20393     * is however a consideration to be made in that the area will never be
20394     * smaller than the finger size set(as set in your Elementary configuration).
20395     *
20396     * @see elm_flip_interaction_set()
20397     */
20398    EAPI void         elm_flip_interacton_direction_hitsize_set(Evas_Object *obj, Elm_Flip_Direction dir, double hitsize);
20399    /**
20400     * @brief Get the amount of the flip that is sensitive to interactive flip
20401     *
20402     * @param obj The flip object
20403     * @param dir The direction to check
20404     * @return The size set for that direction
20405     *
20406     * Returns the amount os sensitive area set by
20407     * elm_flip_interacton_direction_hitsize_set().
20408     */
20409    EAPI double       elm_flip_interacton_direction_hitsize_get(Evas_Object *obj, Elm_Flip_Direction dir);
20410    /**
20411     * @}
20412     */
20413
20414    /* scrolledentry */
20415    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20416    EINA_DEPRECATED EAPI void         elm_scrolled_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
20417    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20418    EINA_DEPRECATED EAPI void         elm_scrolled_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
20419    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20420    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
20421    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20422    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
20423    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20424    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20425    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
20426    EINA_DEPRECATED EAPI void         elm_scrolled_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
20427    EINA_DEPRECATED EAPI void         elm_scrolled_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
20428    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20429    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
20430    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
20431    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
20432    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
20433    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
20434    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
20435    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
20436    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
20437    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
20438    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
20439    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
20440    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
20441    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20442    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20443    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20444    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
20445    EINA_DEPRECATED EAPI int          elm_scrolled_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20446    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
20447    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
20448    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
20449    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
20450    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);
20451    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
20452    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20453    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);
20454    EINA_DEPRECATED EAPI void         elm_scrolled_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
20455    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);
20456    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1, 2);
20457    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20458    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
20459    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
20460    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1, 2);
20461    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20462    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
20463    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
20464    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);
20465    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);
20466    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);
20467    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);
20468    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);
20469    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);
20470    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
20471    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
20472    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
20473    EINA_DEPRECATED EAPI void         elm_scrolled_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
20474    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20475    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
20476    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cnp_textonly_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
20477
20478    /**
20479     * @defgroup Conformant Conformant
20480     * @ingroup Elementary
20481     *
20482     * @image html img/widget/conformant/preview-00.png
20483     * @image latex img/widget/conformant/preview-00.eps width=\textwidth
20484     *
20485     * @image html img/conformant.png
20486     * @image latex img/conformant.eps width=\textwidth
20487     *
20488     * The aim is to provide a widget that can be used in elementary apps to
20489     * account for space taken up by the indicator, virtual keypad & softkey
20490     * windows when running the illume2 module of E17.
20491     *
20492     * So conformant content will be sized and positioned considering the
20493     * space required for such stuff, and when they popup, as a keyboard
20494     * shows when an entry is selected, conformant content won't change.
20495     *
20496     * Available styles for it:
20497     * - @c "default"
20498     *
20499     * See how to use this widget in this example:
20500     * @ref conformant_example
20501     */
20502
20503    /**
20504     * @addtogroup Conformant
20505     * @{
20506     */
20507
20508    /**
20509     * Add a new conformant widget to the given parent Elementary
20510     * (container) object.
20511     *
20512     * @param parent The parent object.
20513     * @return A new conformant widget handle or @c NULL, on errors.
20514     *
20515     * This function inserts a new conformant widget on the canvas.
20516     *
20517     * @ingroup Conformant
20518     */
20519    EAPI Evas_Object *elm_conformant_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20520
20521    /**
20522     * Set the content of the conformant widget.
20523     *
20524     * @param obj The conformant object.
20525     * @param content The content to be displayed by the conformant.
20526     *
20527     * Content will be sized and positioned considering the space required
20528     * to display a virtual keyboard. So it won't fill all the conformant
20529     * size. This way is possible to be sure that content won't resize
20530     * or be re-positioned after the keyboard is displayed.
20531     *
20532     * Once the content object is set, a previously set one will be deleted.
20533     * If you want to keep that old content object, use the
20534     * elm_conformat_content_unset() function.
20535     *
20536     * @see elm_conformant_content_unset()
20537     * @see elm_conformant_content_get()
20538     *
20539     * @ingroup Conformant
20540     */
20541    EAPI void         elm_conformant_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
20542
20543    /**
20544     * Get the content of the conformant widget.
20545     *
20546     * @param obj The conformant object.
20547     * @return The content that is being used.
20548     *
20549     * Return the content object which is set for this widget.
20550     * It won't be unparent from conformant. For that, use
20551     * elm_conformant_content_unset().
20552     *
20553     * @see elm_conformant_content_set() for more details.
20554     * @see elm_conformant_content_unset()
20555     *
20556     * @ingroup Conformant
20557     */
20558    EAPI Evas_Object *elm_conformant_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20559
20560    /**
20561     * Unset the content of the conformant widget.
20562     *
20563     * @param obj The conformant object.
20564     * @return The content that was being used.
20565     *
20566     * Unparent and return the content object which was set for this widget.
20567     *
20568     * @see elm_conformant_content_set() for more details.
20569     *
20570     * @ingroup Conformant
20571     */
20572    EAPI Evas_Object *elm_conformant_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
20573
20574    /**
20575     * Returns the Evas_Object that represents the content area.
20576     *
20577     * @param obj The conformant object.
20578     * @return The content area of the widget.
20579     *
20580     * @ingroup Conformant
20581     */
20582    EAPI Evas_Object *elm_conformant_content_area_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20583
20584    /**
20585     * @}
20586     */
20587
20588    /**
20589     * @defgroup Mapbuf Mapbuf
20590     * @ingroup Elementary
20591     *
20592     * @image html img/widget/mapbuf/preview-00.png
20593     * @image latex img/widget/mapbuf/preview-00.eps width=\textwidth
20594     *
20595     * This holds one content object and uses an Evas Map of transformation
20596     * points to be later used with this content. So the content will be
20597     * moved, resized, etc as a single image. So it will improve performance
20598     * when you have a complex interafce, with a lot of elements, and will
20599     * need to resize or move it frequently (the content object and its
20600     * children).
20601     *
20602     * See how to use this widget in this example:
20603     * @ref mapbuf_example
20604     */
20605
20606    /**
20607     * @addtogroup Mapbuf
20608     * @{
20609     */
20610
20611    /**
20612     * Add a new mapbuf widget to the given parent Elementary
20613     * (container) object.
20614     *
20615     * @param parent The parent object.
20616     * @return A new mapbuf widget handle or @c NULL, on errors.
20617     *
20618     * This function inserts a new mapbuf widget on the canvas.
20619     *
20620     * @ingroup Mapbuf
20621     */
20622    EAPI Evas_Object *elm_mapbuf_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20623
20624    /**
20625     * Set the content of the mapbuf.
20626     *
20627     * @param obj The mapbuf object.
20628     * @param content The content that will be filled in this mapbuf object.
20629     *
20630     * Once the content object is set, a previously set one will be deleted.
20631     * If you want to keep that old content object, use the
20632     * elm_mapbuf_content_unset() function.
20633     *
20634     * To enable map, elm_mapbuf_enabled_set() should be used.
20635     *
20636     * @ingroup Mapbuf
20637     */
20638    EAPI void         elm_mapbuf_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
20639
20640    /**
20641     * Get the content of the mapbuf.
20642     *
20643     * @param obj The mapbuf object.
20644     * @return The content that is being used.
20645     *
20646     * Return the content object which is set for this widget.
20647     *
20648     * @see elm_mapbuf_content_set() for details.
20649     *
20650     * @ingroup Mapbuf
20651     */
20652    EAPI Evas_Object *elm_mapbuf_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20653
20654    /**
20655     * Unset the content of the mapbuf.
20656     *
20657     * @param obj The mapbuf object.
20658     * @return The content that was being used.
20659     *
20660     * Unparent and return the content object which was set for this widget.
20661     *
20662     * @see elm_mapbuf_content_set() for details.
20663     *
20664     * @ingroup Mapbuf
20665     */
20666    EAPI Evas_Object *elm_mapbuf_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
20667
20668    /**
20669     * Enable or disable the map.
20670     *
20671     * @param obj The mapbuf object.
20672     * @param enabled @c EINA_TRUE to enable map or @c EINA_FALSE to disable it.
20673     *
20674     * This enables the map that is set or disables it. On enable, the object
20675     * geometry will be saved, and the new geometry will change (position and
20676     * size) to reflect the map geometry set.
20677     *
20678     * Also, when enabled, alpha and smooth states will be used, so if the
20679     * content isn't solid, alpha should be enabled, for example, otherwise
20680     * a black retangle will fill the content.
20681     *
20682     * When disabled, the stored map will be freed and geometry prior to
20683     * enabling the map will be restored.
20684     *
20685     * It's disabled by default.
20686     *
20687     * @see elm_mapbuf_alpha_set()
20688     * @see elm_mapbuf_smooth_set()
20689     *
20690     * @ingroup Mapbuf
20691     */
20692    EAPI void         elm_mapbuf_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
20693
20694    /**
20695     * Get a value whether map is enabled or not.
20696     *
20697     * @param obj The mapbuf object.
20698     * @return @c EINA_TRUE means map is enabled. @c EINA_FALSE indicates
20699     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
20700     *
20701     * @see elm_mapbuf_enabled_set() for details.
20702     *
20703     * @ingroup Mapbuf
20704     */
20705    EAPI Eina_Bool    elm_mapbuf_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20706
20707    /**
20708     * Enable or disable smooth map rendering.
20709     *
20710     * @param obj The mapbuf object.
20711     * @param smooth @c EINA_TRUE to enable smooth map rendering or @c EINA_FALSE
20712     * to disable it.
20713     *
20714     * This sets smoothing for map rendering. If the object is a type that has
20715     * its own smoothing settings, then both the smooth settings for this object
20716     * and the map must be turned off.
20717     *
20718     * By default smooth maps are enabled.
20719     *
20720     * @ingroup Mapbuf
20721     */
20722    EAPI void         elm_mapbuf_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
20723
20724    /**
20725     * Get a value whether smooth map rendering is enabled or not.
20726     *
20727     * @param obj The mapbuf object.
20728     * @return @c EINA_TRUE means smooth map rendering is enabled. @c EINA_FALSE
20729     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
20730     *
20731     * @see elm_mapbuf_smooth_set() for details.
20732     *
20733     * @ingroup Mapbuf
20734     */
20735    EAPI Eina_Bool    elm_mapbuf_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20736
20737    /**
20738     * Set or unset alpha flag for map rendering.
20739     *
20740     * @param obj The mapbuf object.
20741     * @param alpha @c EINA_TRUE to enable alpha blending or @c EINA_FALSE
20742     * to disable it.
20743     *
20744     * This sets alpha flag for map rendering. If the object is a type that has
20745     * its own alpha settings, then this will take precedence. Only image objects
20746     * have this currently. It stops alpha blending of the map area, and is
20747     * useful if you know the object and/or all sub-objects is 100% solid.
20748     *
20749     * Alpha is enabled by default.
20750     *
20751     * @ingroup Mapbuf
20752     */
20753    EAPI void         elm_mapbuf_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
20754
20755    /**
20756     * Get a value whether alpha blending is enabled or not.
20757     *
20758     * @param obj The mapbuf object.
20759     * @return @c EINA_TRUE means alpha blending is enabled. @c EINA_FALSE
20760     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
20761     *
20762     * @see elm_mapbuf_alpha_set() for details.
20763     *
20764     * @ingroup Mapbuf
20765     */
20766    EAPI Eina_Bool    elm_mapbuf_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20767
20768    /**
20769     * @}
20770     */
20771
20772    /**
20773     * @defgroup Flipselector Flip Selector
20774     *
20775     * @image html img/widget/flipselector/preview-00.png
20776     * @image latex img/widget/flipselector/preview-00.eps
20777     *
20778     * A flip selector is a widget to show a set of @b text items, one
20779     * at a time, with the same sheet switching style as the @ref Clock
20780     * "clock" widget, when one changes the current displaying sheet
20781     * (thus, the "flip" in the name).
20782     *
20783     * User clicks to flip sheets which are @b held for some time will
20784     * make the flip selector to flip continuosly and automatically for
20785     * the user. The interval between flips will keep growing in time,
20786     * so that it helps the user to reach an item which is distant from
20787     * the current selection.
20788     *
20789     * Smart callbacks one can register to:
20790     * - @c "selected" - when the widget's selected text item is changed
20791     * - @c "overflowed" - when the widget's current selection is changed
20792     *   from the first item in its list to the last
20793     * - @c "underflowed" - when the widget's current selection is changed
20794     *   from the last item in its list to the first
20795     *
20796     * Available styles for it:
20797     * - @c "default"
20798     *
20799     * Here is an example on its usage:
20800     * @li @ref flipselector_example
20801     */
20802
20803    /**
20804     * @addtogroup Flipselector
20805     * @{
20806     */
20807
20808    typedef struct _Elm_Flipselector_Item Elm_Flipselector_Item; /**< Item handle for a flip selector widget. */
20809
20810    /**
20811     * Add a new flip selector widget to the given parent Elementary
20812     * (container) widget
20813     *
20814     * @param parent The parent object
20815     * @return a new flip selector widget handle or @c NULL, on errors
20816     *
20817     * This function inserts a new flip selector widget on the canvas.
20818     *
20819     * @ingroup Flipselector
20820     */
20821    EAPI Evas_Object               *elm_flipselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20822
20823    /**
20824     * Programmatically select the next item of a flip selector widget
20825     *
20826     * @param obj The flipselector object
20827     *
20828     * @note The selection will be animated. Also, if it reaches the
20829     * end of its list of member items, it will continue with the first
20830     * one onwards.
20831     *
20832     * @ingroup Flipselector
20833     */
20834    EAPI void                       elm_flipselector_flip_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
20835
20836    /**
20837     * Programmatically select the previous item of a flip selector
20838     * widget
20839     *
20840     * @param obj The flipselector object
20841     *
20842     * @note The selection will be animated.  Also, if it reaches the
20843     * beginning of its list of member items, it will continue with the
20844     * last one backwards.
20845     *
20846     * @ingroup Flipselector
20847     */
20848    EAPI void                       elm_flipselector_flip_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
20849
20850    /**
20851     * Append a (text) item to a flip selector widget
20852     *
20853     * @param obj The flipselector object
20854     * @param label The (text) label of the new item
20855     * @param func Convenience callback function to take place when
20856     * item is selected
20857     * @param data Data passed to @p func, above
20858     * @return A handle to the item added or @c NULL, on errors
20859     *
20860     * The widget's list of labels to show will be appended with the
20861     * given value. If the user wishes so, a callback function pointer
20862     * can be passed, which will get called when this same item is
20863     * selected.
20864     *
20865     * @note The current selection @b won't be modified by appending an
20866     * element to the list.
20867     *
20868     * @note The maximum length of the text label is going to be
20869     * determined <b>by the widget's theme</b>. Strings larger than
20870     * that value are going to be @b truncated.
20871     *
20872     * @ingroup Flipselector
20873     */
20874    EAPI Elm_Flipselector_Item     *elm_flipselector_item_append(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
20875
20876    /**
20877     * Prepend a (text) item to a flip selector widget
20878     *
20879     * @param obj The flipselector object
20880     * @param label The (text) label of the new item
20881     * @param func Convenience callback function to take place when
20882     * item is selected
20883     * @param data Data passed to @p func, above
20884     * @return A handle to the item added or @c NULL, on errors
20885     *
20886     * The widget's list of labels to show will be prepended with the
20887     * given value. If the user wishes so, a callback function pointer
20888     * can be passed, which will get called when this same item is
20889     * selected.
20890     *
20891     * @note The current selection @b won't be modified by prepending
20892     * an element to the list.
20893     *
20894     * @note The maximum length of the text label is going to be
20895     * determined <b>by the widget's theme</b>. Strings larger than
20896     * that value are going to be @b truncated.
20897     *
20898     * @ingroup Flipselector
20899     */
20900    EAPI Elm_Flipselector_Item     *elm_flipselector_item_prepend(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
20901
20902    /**
20903     * Get the internal list of items in a given flip selector widget.
20904     *
20905     * @param obj The flipselector object
20906     * @return The list of items (#Elm_Flipselector_Item as data) or
20907     * @c NULL on errors.
20908     *
20909     * This list is @b not to be modified in any way and must not be
20910     * freed. Use the list members with functions like
20911     * elm_flipselector_item_label_set(),
20912     * elm_flipselector_item_label_get(),
20913     * elm_flipselector_item_del(),
20914     * elm_flipselector_item_selected_get(),
20915     * elm_flipselector_item_selected_set().
20916     *
20917     * @warning This list is only valid until @p obj object's internal
20918     * items list is changed. It should be fetched again with another
20919     * call to this function when changes happen.
20920     *
20921     * @ingroup Flipselector
20922     */
20923    EAPI const Eina_List           *elm_flipselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20924
20925    /**
20926     * Get the first item in the given flip selector widget's list of
20927     * items.
20928     *
20929     * @param obj The flipselector object
20930     * @return The first item or @c NULL, if it has no items (and on
20931     * errors)
20932     *
20933     * @see elm_flipselector_item_append()
20934     * @see elm_flipselector_last_item_get()
20935     *
20936     * @ingroup Flipselector
20937     */
20938    EAPI Elm_Flipselector_Item     *elm_flipselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20939
20940    /**
20941     * Get the last item in the given flip selector widget's list of
20942     * items.
20943     *
20944     * @param obj The flipselector object
20945     * @return The last item or @c NULL, if it has no items (and on
20946     * errors)
20947     *
20948     * @see elm_flipselector_item_prepend()
20949     * @see elm_flipselector_first_item_get()
20950     *
20951     * @ingroup Flipselector
20952     */
20953    EAPI Elm_Flipselector_Item     *elm_flipselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20954
20955    /**
20956     * Get the currently selected item in a flip selector widget.
20957     *
20958     * @param obj The flipselector object
20959     * @return The selected item or @c NULL, if the widget has no items
20960     * (and on erros)
20961     *
20962     * @ingroup Flipselector
20963     */
20964    EAPI Elm_Flipselector_Item     *elm_flipselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20965
20966    /**
20967     * Set whether a given flip selector widget's item should be the
20968     * currently selected one.
20969     *
20970     * @param item The flip selector item
20971     * @param selected @c EINA_TRUE to select it, @c EINA_FALSE to unselect.
20972     *
20973     * This sets whether @p item is or not the selected (thus, under
20974     * display) one. If @p item is different than one under display,
20975     * the latter will be unselected. If the @p item is set to be
20976     * unselected, on the other hand, the @b first item in the widget's
20977     * internal members list will be the new selected one.
20978     *
20979     * @see elm_flipselector_item_selected_get()
20980     *
20981     * @ingroup Flipselector
20982     */
20983    EAPI void                       elm_flipselector_item_selected_set(Elm_Flipselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
20984
20985    /**
20986     * Get whether a given flip selector widget's item is the currently
20987     * selected one.
20988     *
20989     * @param item The flip selector item
20990     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
20991     * (or on errors).
20992     *
20993     * @see elm_flipselector_item_selected_set()
20994     *
20995     * @ingroup Flipselector
20996     */
20997    EAPI Eina_Bool                  elm_flipselector_item_selected_get(const Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
20998
20999    /**
21000     * Delete a given item from a flip selector widget.
21001     *
21002     * @param item The item to delete
21003     *
21004     * @ingroup Flipselector
21005     */
21006    EAPI void                       elm_flipselector_item_del(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
21007
21008    /**
21009     * Get the label of a given flip selector widget's item.
21010     *
21011     * @param item The item to get label from
21012     * @return The text label of @p item or @c NULL, on errors
21013     *
21014     * @see elm_flipselector_item_label_set()
21015     *
21016     * @ingroup Flipselector
21017     */
21018    EAPI const char                *elm_flipselector_item_label_get(const Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
21019
21020    /**
21021     * Set the label of a given flip selector widget's item.
21022     *
21023     * @param item The item to set label on
21024     * @param label The text label string, in UTF-8 encoding
21025     *
21026     * @see elm_flipselector_item_label_get()
21027     *
21028     * @ingroup Flipselector
21029     */
21030    EAPI void                       elm_flipselector_item_label_set(Elm_Flipselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
21031
21032    /**
21033     * Gets the item before @p item in a flip selector widget's
21034     * internal list of items.
21035     *
21036     * @param item The item to fetch previous from
21037     * @return The item before the @p item, in its parent's list. If
21038     *         there is no previous item for @p item or there's an
21039     *         error, @c NULL is returned.
21040     *
21041     * @see elm_flipselector_item_next_get()
21042     *
21043     * @ingroup Flipselector
21044     */
21045    EAPI Elm_Flipselector_Item     *elm_flipselector_item_prev_get(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
21046
21047    /**
21048     * Gets the item after @p item in a flip selector widget's
21049     * internal list of items.
21050     *
21051     * @param item The item to fetch next from
21052     * @return The item after the @p item, in its parent's list. If
21053     *         there is no next item for @p item or there's an
21054     *         error, @c NULL is returned.
21055     *
21056     * @see elm_flipselector_item_next_get()
21057     *
21058     * @ingroup Flipselector
21059     */
21060    EAPI Elm_Flipselector_Item     *elm_flipselector_item_next_get(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
21061
21062    /**
21063     * Set the interval on time updates for an user mouse button hold
21064     * on a flip selector widget.
21065     *
21066     * @param obj The flip selector object
21067     * @param interval The (first) interval value in seconds
21068     *
21069     * This interval value is @b decreased while the user holds the
21070     * mouse pointer either flipping up or flipping doww a given flip
21071     * selector.
21072     *
21073     * This helps the user to get to a given item distant from the
21074     * current one easier/faster, as it will start to flip quicker and
21075     * quicker on mouse button holds.
21076     *
21077     * The calculation for the next flip interval value, starting from
21078     * the one set with this call, is the previous interval divided by
21079     * 1.05, so it decreases a little bit.
21080     *
21081     * The default starting interval value for automatic flips is
21082     * @b 0.85 seconds.
21083     *
21084     * @see elm_flipselector_interval_get()
21085     *
21086     * @ingroup Flipselector
21087     */
21088    EAPI void                       elm_flipselector_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
21089
21090    /**
21091     * Get the interval on time updates for an user mouse button hold
21092     * on a flip selector widget.
21093     *
21094     * @param obj The flip selector object
21095     * @return The (first) interval value, in seconds, set on it
21096     *
21097     * @see elm_flipselector_interval_set() for more details
21098     *
21099     * @ingroup Flipselector
21100     */
21101    EAPI double                     elm_flipselector_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21102
21103    /**
21104     * @}
21105     */
21106
21107    /**
21108     * @addtogroup Animator Animator
21109     * @ingroup Elementary
21110     *
21111     * @brief Functions to ease creation of animations.
21112     *
21113     * elm_animator is designed to provide an easy way to create animations.
21114     * Creating an animation with elm_animator is as simple as setting a
21115     * duration, an operating callback and telling it to run the animation.
21116     * However that is not the full extent of elm_animator's ability, animations
21117     * can be paused and resumed, reversed and the animation need not be linear.
21118     *
21119     * To run an animation you must specify at least a duration and operation
21120     * callback, not setting any other properties will create a linear animation
21121     * that runs once and is not reversed.
21122     *
21123     * @ref elm_animator_example_page_01 "This" example should make all of that
21124     * very clear.
21125     *
21126     * @warning elm_animator is @b not a widget.
21127     * @{
21128     */
21129    /**
21130     * @brief Type of curve desired for animation.
21131     *
21132     * The speed in which an animation happens doesn't have to be linear, some
21133     * animations will look better if they're accelerating or decelerating, so
21134     * elm_animator provides four options in this regard:
21135     *
21136     * @image html elm_animator_curve_style.png
21137     * @image latex elm_animator_curve_style.eps width=\textwidth
21138     * As can be seen in the image the speed of the animation will be:
21139     * @li ELM_ANIMATOR_CURVE_LINEAR constant
21140     * @li ELM_ANIMATOR_CURVE_IN_OUT start slow, speed up and then slow down
21141     * @li ELM_ANIMATOR_CURVE_IN start slow and then speed up
21142     * @li ELM_ANIMATOR_CURVE_OUT start fast and then slow down
21143     */
21144    typedef enum
21145      {
21146         ELM_ANIMATOR_CURVE_LINEAR,
21147         ELM_ANIMATOR_CURVE_IN_OUT,
21148         ELM_ANIMATOR_CURVE_IN,
21149         ELM_ANIMATOR_CURVE_OUT
21150      } Elm_Animator_Curve_Style;
21151    typedef struct _Elm_Animator Elm_Animator;
21152   /**
21153    * Called back per loop of an elementary animators cycle
21154    * @param data user-data given to elm_animator_operation_callback_set()
21155    * @param animator the animator being run
21156    * @param double the position in the animation
21157    */
21158    typedef void (*Elm_Animator_Operation_Cb) (void *data, Elm_Animator *animator, double frame);
21159   /**
21160    * Called back when an elementary animator finishes
21161    * @param data user-data given to elm_animator_completion_callback_set()
21162    */
21163    typedef void (*Elm_Animator_Completion_Cb) (void *data);
21164
21165    /**
21166     * @brief Create a new animator.
21167     *
21168     * @param[in] parent Parent object
21169     *
21170     * The @a parent argument can be set to NULL for no parent. If a parent is set
21171     * there is no need to call elm_animator_del(), when the parent is deleted it
21172     * will delete the animator.
21173     * @deprecated Use @ref Transit instead.
21174     */
21175    EINA_DEPRECATED EAPI Elm_Animator*            elm_animator_add(Evas_Object *parent);
21176    /**
21177     * Deletes the animator freeing any resources it used. If the animator was
21178     * created with a NULL parent this must be called, otherwise it will be
21179     * automatically called when the parent is deleted.
21180     *
21181     * @param[in] animator Animator object
21182     * @deprecated Use @ref Transit instead.
21183     */
21184    EINA_DEPRECATED EAPI void                     elm_animator_del(Elm_Animator *animator) EINA_ARG_NONNULL(1);
21185    /**
21186     * Set the duration of the animation.
21187     *
21188     * @param[in] animator Animator object
21189     * @param[in] duration Duration in second
21190     * @deprecated Use @ref Transit instead.
21191     */
21192    EINA_DEPRECATED EAPI void                     elm_animator_duration_set(Elm_Animator *animator, double duration) EINA_ARG_NONNULL(1);
21193    /**
21194     * @brief Set the callback function for animator operation.
21195     *
21196     * @param[in] animator Animator object
21197     * @param[in] func @ref Elm_Animator_Operation_Cb "Callback" function pointer
21198     * @param[in] data Callback function user argument
21199     *
21200     * The @p func callback will be called with a frame value in range [0, 1] which
21201     * indicates how far along the animation should be. It is the job of @p func to
21202     * actually change the state of any object(or objects) that are being animated.
21203     * @deprecated Use @ref Transit instead.
21204     */
21205    EINA_DEPRECATED EAPI void                     elm_animator_operation_callback_set(Elm_Animator *animator, Elm_Animator_Operation_Cb func, void *data) EINA_ARG_NONNULL(1);
21206    /**
21207     * Set the callback function for the when the animation ends.
21208     *
21209     * @param[in]  animator Animator object
21210     * @param[in]  func   Callback function pointe
21211     * @param[in]  data Callback function user argument
21212     *
21213     * @warning @a func will not be executed if elm_animator_stop() is called.
21214     * @deprecated Use @ref Transit instead.
21215     */
21216    EINA_DEPRECATED EAPI void                     elm_animator_completion_callback_set(Elm_Animator *animator, Elm_Animator_Completion_Cb func, void *data) EINA_ARG_NONNULL(1);
21217    /**
21218     * @brief Stop animator.
21219     *
21220     * @param[in] animator Animator object
21221     *
21222     * If called before elm_animator_animate() it does nothing. If there is an
21223     * animation in progress the animation will be stopped(the operation callback
21224     * will not be executed again) and it can't be restarted using
21225     * elm_animator_resume().
21226     * @deprecated Use @ref Transit instead.
21227     */
21228    EINA_DEPRECATED EAPI void                     elm_animator_stop(Elm_Animator *animator) EINA_ARG_NONNULL(1);
21229    /**
21230     * Set the animator repeat count.
21231     *
21232     * @param[in]  animator Animator object
21233     * @param[in]  repeat_cnt Repeat count
21234     * @deprecated Use @ref Transit instead.
21235     */
21236    EINA_DEPRECATED EAPI void                     elm_animator_repeat_set(Elm_Animator *animator, unsigned int repeat_cnt) EINA_ARG_NONNULL(1);
21237    /**
21238     * @brief Start animation.
21239     *
21240     * @param[in] animator Animator object
21241     *
21242     * This function starts the animation if the nescessary properties(duration
21243     * and operation callback) have been set. Once started the animation will
21244     * run until complete or elm_animator_stop() is called.
21245     * @deprecated Use @ref Transit instead.
21246     */
21247    EINA_DEPRECATED EAPI void                     elm_animator_animate(Elm_Animator *animator) EINA_ARG_NONNULL(1);
21248    /**
21249     * Sets the animation @ref Elm_Animator_Curve_Style "acceleration style".
21250     *
21251     * @param[in] animator Animator object
21252     * @param[in] cs Curve style. Default is ELM_ANIMATOR_CURVE_LINEAR
21253     * @deprecated Use @ref Transit instead.
21254     */
21255    EINA_DEPRECATED EAPI void                     elm_animator_curve_style_set(Elm_Animator *animator, Elm_Animator_Curve_Style cs) EINA_ARG_NONNULL(1);
21256    /**
21257     * Gets the animation @ref Elm_Animator_Curve_Style "acceleration style".
21258     *
21259     * @param[in] animator Animator object
21260     * @param[in] cs Curve style. Default is ELM_ANIMATOR_CURVE_LINEAR
21261     * @deprecated Use @ref Transit instead.
21262     */
21263    EINA_DEPRECATED EAPI Elm_Animator_Curve_Style elm_animator_curve_style_get(const Elm_Animator *animator) EINA_ARG_NONNULL(1);
21264    /**
21265     * @brief Sets wether the animation should be automatically reversed.
21266     *
21267     * @param[in] animator Animator object
21268     * @param[in] reverse Reverse or not
21269     *
21270     * This controls wether the animation will be run on reverse imediately after
21271     * running forward. When this is set together with repetition the animation
21272     * will run in reverse once for each time it ran forward.@n
21273     * Runnin an animation in reverse is accomplished by calling the operation
21274     * callback with a frame value starting at 1 and diminshing until 0.
21275     * @deprecated Use @ref Transit instead.
21276     */
21277    EINA_DEPRECATED EAPI void                     elm_animator_auto_reverse_set(Elm_Animator *animator, Eina_Bool reverse) EINA_ARG_NONNULL(1);
21278    /**
21279     * Gets wether the animation will automatically reversed
21280     *
21281     * @param[in] animator Animator object
21282     * @deprecated Use @ref Transit instead.
21283     */
21284    EINA_DEPRECATED EAPI Eina_Bool                elm_animator_auto_reverse_get(const Elm_Animator *animator) EINA_ARG_NONNULL(1);
21285    /**
21286     * Gets the status for the animator operation. The status of the animator @b
21287     * doesn't take in to account elm_animator_pause() or elm_animator_resume(), it
21288     * only informs if the animation was started and has not ended(either normally
21289     * or through elm_animator_stop()).
21290     *
21291     * @param[in] animator Animator object
21292     * @deprecated Use @ref Transit instead.
21293     */
21294    EINA_DEPRECATED EAPI Eina_Bool                elm_animator_operating_get(const Elm_Animator *animator) EINA_ARG_NONNULL(1);
21295    /**
21296     * Gets how many times the animation will be repeated
21297     *
21298     * @param[in] animator Animator object
21299     * @deprecated Use @ref Transit instead.
21300     */
21301    EINA_DEPRECATED EAPI unsigned int             elm_animator_repeat_get(const Elm_Animator *animator) EINA_ARG_NONNULL(1);
21302    /**
21303     * Pause the animator.
21304     *
21305     * @param[in]  animator Animator object
21306     *
21307     * This causes the animation to be temporarily stopped(the operation callback
21308     * will not be called). If the animation is not yet running this is a no-op.
21309     * Once an animation has been paused with this function it can be resumed
21310     * using elm_animator_resume().
21311     * @deprecated Use @ref Transit instead.
21312     */
21313    EINA_DEPRECATED EAPI void                     elm_animator_pause(Elm_Animator *animator) EINA_ARG_NONNULL(1);
21314    /**
21315     * @brief Resumes the animator.
21316     *
21317     * @param[in]  animator Animator object
21318     *
21319     * Resumes an animation that was paused using elm_animator_pause(), after
21320     * calling this function calls to the operation callback will happen
21321     * normally. If an animation is stopped by means of elm_animator_stop it
21322     * @b can't be restarted with this function.@n
21323     *
21324     * @warning When an animation is resumed it doesn't start from where it was paused, it
21325     * will go to where it would have been if it had not been paused. If an
21326     * animation with a duration of 3 seconds is paused after 1 second for 1 second
21327     * it will resume as if it had ben animating for 2 seconds, the operating
21328     * callback will be called with a frame value of aproximately 2/3.
21329     * @deprecated Use @ref Transit instead.
21330     */
21331    EINA_DEPRECATED EAPI void                     elm_animator_resume(Elm_Animator *animator) EINA_ARG_NONNULL(1);
21332    /**
21333     * @}
21334     */
21335
21336    /**
21337     * @defgroup Calendar Calendar
21338     * @ingroup Elementary
21339     *
21340     * @image html img/widget/calendar/preview-00.png
21341     * @image latex img/widget/calendar/preview-00.eps
21342     *
21343     * A calendar is a widget that displays a regular calendar, one
21344     * month at a time, to the user, and can allows the user to select a date.
21345     *
21346     * It has support to adding check marks (holidays and checks are supported
21347     * by default theme).
21348     *
21349     * Weekday names and the function used to format month and year to
21350     * be displayed can be set, giving more flexibility to this widget.
21351     *
21352     * Smart callbacks one can register to:
21353     * - "changed" - emitted when the user selects a day or changes the
21354     *   displayed month, what actually changes the selected day as well.
21355     *
21356     * Available styles for it:
21357     * - @c "default"
21358     *
21359     * List of examples:
21360     * @li @ref calendar_example_01
21361     * @li @ref calendar_example_02
21362     * @li @ref calendar_example_03
21363     * @li @ref calendar_example_04
21364     * @li @ref calendar_example_05
21365     * @li @ref calendar_example_06
21366     */
21367
21368    /**
21369     * @addtogroup Calendar
21370     * @{
21371     */
21372
21373    /**
21374     * @enum _Elm_Calendar_Mark_Repeat
21375     * @typedef Elm_Calendar_Mark_Repeat
21376     *
21377     * Event periodicity, used to define if a mark should be repeated
21378     * @b beyond event's day. It's set when a mark is added.
21379     *
21380     * So, for a mark added to 13th May with periodicity set to WEEKLY,
21381     * there will be marks every week after this date. Marks will be displayed
21382     * at 13th, 20th, 27th, 3rd June ...
21383     *
21384     * Values don't work as bitmask, only one can be choosen.
21385     *
21386     * @see elm_calendar_mark_add()
21387     *
21388     * @ingroup Calendar
21389     */
21390    typedef enum _Elm_Calendar_Mark_Repeat
21391      {
21392         ELM_CALENDAR_UNIQUE, /**< Default value. Marks will be displayed only on event day. */
21393         ELM_CALENDAR_DAILY, /**< Marks will be displayed everyday after event day (inclusive). */
21394         ELM_CALENDAR_WEEKLY, /**< Marks will be displayed every week after event day (inclusive) - i.e. each seven days. */
21395         ELM_CALENDAR_MONTHLY, /**< Marks will be displayed every month day that coincides to event day. E.g.: if an event is set to 30th Jan, no marks will be displayed on Feb, but will be displayed on 30th Mar*/
21396         ELM_CALENDAR_ANNUALLY /**< Marks will be displayed every year that coincides to event day (and month). E.g. an event added to 30th Jan 2012 will be repeated on 30th Jan 2013. */
21397      } Elm_Calendar_Mark_Repeat;
21398
21399    typedef struct _Elm_Calendar_Mark Elm_Calendar_Mark; /**< Item handle for a calendar mark. Created with elm_calendar_mark_add() and deleted with elm_calendar_mark_del(). */
21400
21401    /**
21402     * Add a new calendar widget to the given parent Elementary
21403     * (container) object.
21404     *
21405     * @param parent The parent object.
21406     * @return a new calendar widget handle or @c NULL, on errors.
21407     *
21408     * This function inserts a new calendar widget on the canvas.
21409     *
21410     * @ref calendar_example_01
21411     *
21412     * @ingroup Calendar
21413     */
21414    EAPI Evas_Object       *elm_calendar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21415
21416    /**
21417     * Get weekdays names displayed by the calendar.
21418     *
21419     * @param obj The calendar object.
21420     * @return Array of seven strings to be used as weekday names.
21421     *
21422     * By default, weekdays abbreviations get from system are displayed:
21423     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
21424     * The first string is related to Sunday, the second to Monday...
21425     *
21426     * @see elm_calendar_weekdays_name_set()
21427     *
21428     * @ref calendar_example_05
21429     *
21430     * @ingroup Calendar
21431     */
21432    EAPI const char       **elm_calendar_weekdays_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21433
21434    /**
21435     * Set weekdays names to be displayed by the calendar.
21436     *
21437     * @param obj The calendar object.
21438     * @param weekdays Array of seven strings to be used as weekday names.
21439     * @warning It must have 7 elements, or it will access invalid memory.
21440     * @warning The strings must be NULL terminated ('@\0').
21441     *
21442     * By default, weekdays abbreviations get from system are displayed:
21443     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
21444     *
21445     * The first string should be related to Sunday, the second to Monday...
21446     *
21447     * The usage should be like this:
21448     * @code
21449     *   const char *weekdays[] =
21450     *   {
21451     *      "Sunday", "Monday", "Tuesday", "Wednesday",
21452     *      "Thursday", "Friday", "Saturday"
21453     *   };
21454     *   elm_calendar_weekdays_names_set(calendar, weekdays);
21455     * @endcode
21456     *
21457     * @see elm_calendar_weekdays_name_get()
21458     *
21459     * @ref calendar_example_02
21460     *
21461     * @ingroup Calendar
21462     */
21463    EAPI void               elm_calendar_weekdays_names_set(Evas_Object *obj, const char *weekdays[]) EINA_ARG_NONNULL(1, 2);
21464
21465    /**
21466     * Set the minimum and maximum values for the year
21467     *
21468     * @param obj The calendar object
21469     * @param min The minimum year, greater than 1901;
21470     * @param max The maximum year;
21471     *
21472     * Maximum must be greater than minimum, except if you don't wan't to set
21473     * maximum year.
21474     * Default values are 1902 and -1.
21475     *
21476     * If the maximum year is a negative value, it will be limited depending
21477     * on the platform architecture (year 2037 for 32 bits);
21478     *
21479     * @see elm_calendar_min_max_year_get()
21480     *
21481     * @ref calendar_example_03
21482     *
21483     * @ingroup Calendar
21484     */
21485    EAPI void               elm_calendar_min_max_year_set(Evas_Object *obj, int min, int max) EINA_ARG_NONNULL(1);
21486
21487    /**
21488     * Get the minimum and maximum values for the year
21489     *
21490     * @param obj The calendar object.
21491     * @param min The minimum year.
21492     * @param max The maximum year.
21493     *
21494     * Default values are 1902 and -1.
21495     *
21496     * @see elm_calendar_min_max_year_get() for more details.
21497     *
21498     * @ref calendar_example_05
21499     *
21500     * @ingroup Calendar
21501     */
21502    EAPI void               elm_calendar_min_max_year_get(const Evas_Object *obj, int *min, int *max) EINA_ARG_NONNULL(1);
21503
21504    /**
21505     * Enable or disable day selection
21506     *
21507     * @param obj The calendar object.
21508     * @param enabled @c EINA_TRUE to enable selection or @c EINA_FALSE to
21509     * disable it.
21510     *
21511     * Enabled by default. If disabled, the user still can select months,
21512     * but not days. Selected days are highlighted on calendar.
21513     * It should be used if you won't need such selection for the widget usage.
21514     *
21515     * When a day is selected, or month is changed, smart callbacks for
21516     * signal "changed" will be called.
21517     *
21518     * @see elm_calendar_day_selection_enable_get()
21519     *
21520     * @ref calendar_example_04
21521     *
21522     * @ingroup Calendar
21523     */
21524    EAPI void               elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
21525
21526    /**
21527     * Get a value whether day selection is enabled or not.
21528     *
21529     * @see elm_calendar_day_selection_enable_set() for details.
21530     *
21531     * @param obj The calendar object.
21532     * @return EINA_TRUE means day selection is enabled. EINA_FALSE indicates
21533     * it's disabled. If @p obj is NULL, EINA_FALSE is returned.
21534     *
21535     * @ref calendar_example_05
21536     *
21537     * @ingroup Calendar
21538     */
21539    EAPI Eina_Bool          elm_calendar_day_selection_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21540
21541
21542    /**
21543     * Set selected date to be highlighted on calendar.
21544     *
21545     * @param obj The calendar object.
21546     * @param selected_time A @b tm struct to represent the selected date.
21547     *
21548     * Set the selected date, changing the displayed month if needed.
21549     * Selected date changes when the user goes to next/previous month or
21550     * select a day pressing over it on calendar.
21551     *
21552     * @see elm_calendar_selected_time_get()
21553     *
21554     * @ref calendar_example_04
21555     *
21556     * @ingroup Calendar
21557     */
21558    EAPI void               elm_calendar_selected_time_set(Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1);
21559
21560    /**
21561     * Get selected date.
21562     *
21563     * @param obj The calendar object
21564     * @param selected_time A @b tm struct to point to selected date
21565     * @return EINA_FALSE means an error ocurred and returned time shouldn't
21566     * be considered.
21567     *
21568     * Get date selected by the user or set by function
21569     * elm_calendar_selected_time_set().
21570     * Selected date changes when the user goes to next/previous month or
21571     * select a day pressing over it on calendar.
21572     *
21573     * @see elm_calendar_selected_time_get()
21574     *
21575     * @ref calendar_example_05
21576     *
21577     * @ingroup Calendar
21578     */
21579    EAPI Eina_Bool          elm_calendar_selected_time_get(const Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1, 2);
21580
21581    /**
21582     * Set a function to format the string that will be used to display
21583     * month and year;
21584     *
21585     * @param obj The calendar object
21586     * @param format_function Function to set the month-year string given
21587     * the selected date
21588     *
21589     * By default it uses strftime with "%B %Y" format string.
21590     * It should allocate the memory that will be used by the string,
21591     * that will be freed by the widget after usage.
21592     * A pointer to the string and a pointer to the time struct will be provided.
21593     *
21594     * Example:
21595     * @code
21596     * static char *
21597     * _format_month_year(struct tm *selected_time)
21598     * {
21599     *    char buf[32];
21600     *    if (!strftime(buf, sizeof(buf), "%B %Y", selected_time)) return NULL;
21601     *    return strdup(buf);
21602     * }
21603     *
21604     * elm_calendar_format_function_set(calendar, _format_month_year);
21605     * @endcode
21606     *
21607     * @ref calendar_example_02
21608     *
21609     * @ingroup Calendar
21610     */
21611    EAPI void               elm_calendar_format_function_set(Evas_Object *obj, char * (*format_function) (struct tm *stime)) EINA_ARG_NONNULL(1);
21612
21613    /**
21614     * Add a new mark to the calendar
21615     *
21616     * @param obj The calendar object
21617     * @param mark_type A string used to define the type of mark. It will be
21618     * emitted to the theme, that should display a related modification on these
21619     * days representation.
21620     * @param mark_time A time struct to represent the date of inclusion of the
21621     * mark. For marks that repeats it will just be displayed after the inclusion
21622     * date in the calendar.
21623     * @param repeat Repeat the event following this periodicity. Can be a unique
21624     * mark (that don't repeat), daily, weekly, monthly or annually.
21625     * @return The created mark or @p NULL upon failure.
21626     *
21627     * Add a mark that will be drawn in the calendar respecting the insertion
21628     * time and periodicity. It will emit the type as signal to the widget theme.
21629     * Default theme supports "holiday" and "checked", but it can be extended.
21630     *
21631     * It won't immediately update the calendar, drawing the marks.
21632     * For this, call elm_calendar_marks_draw(). However, when user selects
21633     * next or previous month calendar forces marks drawn.
21634     *
21635     * Marks created with this method can be deleted with
21636     * elm_calendar_mark_del().
21637     *
21638     * Example
21639     * @code
21640     * struct tm selected_time;
21641     * time_t current_time;
21642     *
21643     * current_time = time(NULL) + 5 * 84600;
21644     * localtime_r(&current_time, &selected_time);
21645     * elm_calendar_mark_add(cal, "holiday", selected_time,
21646     *     ELM_CALENDAR_ANNUALLY);
21647     *
21648     * current_time = time(NULL) + 1 * 84600;
21649     * localtime_r(&current_time, &selected_time);
21650     * elm_calendar_mark_add(cal, "checked", selected_time, ELM_CALENDAR_UNIQUE);
21651     *
21652     * elm_calendar_marks_draw(cal);
21653     * @endcode
21654     *
21655     * @see elm_calendar_marks_draw()
21656     * @see elm_calendar_mark_del()
21657     *
21658     * @ref calendar_example_06
21659     *
21660     * @ingroup Calendar
21661     */
21662    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);
21663
21664    /**
21665     * Delete mark from the calendar.
21666     *
21667     * @param mark The mark to be deleted.
21668     *
21669     * If deleting all calendar marks is required, elm_calendar_marks_clear()
21670     * should be used instead of getting marks list and deleting each one.
21671     *
21672     * @see elm_calendar_mark_add()
21673     *
21674     * @ref calendar_example_06
21675     *
21676     * @ingroup Calendar
21677     */
21678    EAPI void               elm_calendar_mark_del(Elm_Calendar_Mark *mark) EINA_ARG_NONNULL(1);
21679
21680    /**
21681     * Remove all calendar's marks
21682     *
21683     * @param obj The calendar object.
21684     *
21685     * @see elm_calendar_mark_add()
21686     * @see elm_calendar_mark_del()
21687     *
21688     * @ingroup Calendar
21689     */
21690    EAPI void               elm_calendar_marks_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
21691
21692
21693    /**
21694     * Get a list of all the calendar marks.
21695     *
21696     * @param obj The calendar object.
21697     * @return An @c Eina_List of calendar marks objects, or @c NULL on failure.
21698     *
21699     * @see elm_calendar_mark_add()
21700     * @see elm_calendar_mark_del()
21701     * @see elm_calendar_marks_clear()
21702     *
21703     * @ingroup Calendar
21704     */
21705    EAPI const Eina_List   *elm_calendar_marks_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21706
21707    /**
21708     * Draw calendar marks.
21709     *
21710     * @param obj The calendar object.
21711     *
21712     * Should be used after adding, removing or clearing marks.
21713     * It will go through the entire marks list updating the calendar.
21714     * If lots of marks will be added, add all the marks and then call
21715     * this function.
21716     *
21717     * When the month is changed, i.e. user selects next or previous month,
21718     * marks will be drawed.
21719     *
21720     * @see elm_calendar_mark_add()
21721     * @see elm_calendar_mark_del()
21722     * @see elm_calendar_marks_clear()
21723     *
21724     * @ref calendar_example_06
21725     *
21726     * @ingroup Calendar
21727     */
21728    EAPI void               elm_calendar_marks_draw(Evas_Object *obj) EINA_ARG_NONNULL(1);
21729
21730    /**
21731     * Set a day text color to the same that represents Saturdays.
21732     *
21733     * @param obj The calendar object.
21734     * @param pos The text position. Position is the cell counter, from left
21735     * to right, up to down. It starts on 0 and ends on 41.
21736     *
21737     * @deprecated use elm_calendar_mark_add() instead like:
21738     *
21739     * @code
21740     * struct tm t = { 0, 0, 12, 6, 0, 0, 6, 6, -1 };
21741     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
21742     * @endcode
21743     *
21744     * @see elm_calendar_mark_add()
21745     *
21746     * @ingroup Calendar
21747     */
21748    EINA_DEPRECATED EAPI void               elm_calendar_text_saturday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
21749
21750    /**
21751     * Set a day text color to the same that represents Sundays.
21752     *
21753     * @param obj The calendar object.
21754     * @param pos The text position. Position is the cell counter, from left
21755     * to right, up to down. It starts on 0 and ends on 41.
21756
21757     * @deprecated use elm_calendar_mark_add() instead like:
21758     *
21759     * @code
21760     * struct tm t = { 0, 0, 12, 7, 0, 0, 0, 0, -1 };
21761     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
21762     * @endcode
21763     *
21764     * @see elm_calendar_mark_add()
21765     *
21766     * @ingroup Calendar
21767     */
21768    EINA_DEPRECATED EAPI void               elm_calendar_text_sunday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
21769
21770    /**
21771     * Set a day text color to the same that represents Weekdays.
21772     *
21773     * @param obj The calendar object
21774     * @param pos The text position. Position is the cell counter, from left
21775     * to right, up to down. It starts on 0 and ends on 41.
21776     *
21777     * @deprecated use elm_calendar_mark_add() instead like:
21778     *
21779     * @code
21780     * struct tm t = { 0, 0, 12, 1, 0, 0, 0, 0, -1 };
21781     *
21782     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // monday
21783     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
21784     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // tuesday
21785     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
21786     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // wednesday
21787     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
21788     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // thursday
21789     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
21790     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // friday
21791     * @endcode
21792     *
21793     * @see elm_calendar_mark_add()
21794     *
21795     * @ingroup Calendar
21796     */
21797    EINA_DEPRECATED EAPI void               elm_calendar_text_weekday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
21798
21799    /**
21800     * Set the interval on time updates for an user mouse button hold
21801     * on calendar widgets' month selection.
21802     *
21803     * @param obj The calendar object
21804     * @param interval The (first) interval value in seconds
21805     *
21806     * This interval value is @b decreased while the user holds the
21807     * mouse pointer either selecting next or previous month.
21808     *
21809     * This helps the user to get to a given month distant from the
21810     * current one easier/faster, as it will start to change quicker and
21811     * quicker on mouse button holds.
21812     *
21813     * The calculation for the next change interval value, starting from
21814     * the one set with this call, is the previous interval divided by
21815     * 1.05, so it decreases a little bit.
21816     *
21817     * The default starting interval value for automatic changes is
21818     * @b 0.85 seconds.
21819     *
21820     * @see elm_calendar_interval_get()
21821     *
21822     * @ingroup Calendar
21823     */
21824    EAPI void               elm_calendar_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
21825
21826    /**
21827     * Get the interval on time updates for an user mouse button hold
21828     * on calendar widgets' month selection.
21829     *
21830     * @param obj The calendar object
21831     * @return The (first) interval value, in seconds, set on it
21832     *
21833     * @see elm_calendar_interval_set() for more details
21834     *
21835     * @ingroup Calendar
21836     */
21837    EAPI double             elm_calendar_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21838
21839    /**
21840     * @}
21841     */
21842
21843    /**
21844     * @defgroup Diskselector Diskselector
21845     * @ingroup Elementary
21846     *
21847     * @image html img/widget/diskselector/preview-00.png
21848     * @image latex img/widget/diskselector/preview-00.eps
21849     *
21850     * A diskselector is a kind of list widget. It scrolls horizontally,
21851     * and can contain label and icon objects. Three items are displayed
21852     * with the selected one in the middle.
21853     *
21854     * It can act like a circular list with round mode and labels can be
21855     * reduced for a defined length for side items.
21856     *
21857     * Smart callbacks one can listen to:
21858     * - "selected" - when item is selected, i.e. scroller stops.
21859     *
21860     * Available styles for it:
21861     * - @c "default"
21862     *
21863     * List of examples:
21864     * @li @ref diskselector_example_01
21865     * @li @ref diskselector_example_02
21866     */
21867
21868    /**
21869     * @addtogroup Diskselector
21870     * @{
21871     */
21872
21873    typedef struct _Elm_Diskselector_Item Elm_Diskselector_Item; /**< Item handle for a diskselector item. Created with elm_diskselector_item_append() and deleted with elm_diskselector_item_del(). */
21874
21875    /**
21876     * Add a new diskselector widget to the given parent Elementary
21877     * (container) object.
21878     *
21879     * @param parent The parent object.
21880     * @return a new diskselector widget handle or @c NULL, on errors.
21881     *
21882     * This function inserts a new diskselector widget on the canvas.
21883     *
21884     * @ingroup Diskselector
21885     */
21886    EAPI Evas_Object           *elm_diskselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21887
21888    /**
21889     * Enable or disable round mode.
21890     *
21891     * @param obj The diskselector object.
21892     * @param round @c EINA_TRUE to enable round mode or @c EINA_FALSE to
21893     * disable it.
21894     *
21895     * Disabled by default. If round mode is enabled the items list will
21896     * work like a circle list, so when the user reaches the last item,
21897     * the first one will popup.
21898     *
21899     * @see elm_diskselector_round_get()
21900     *
21901     * @ingroup Diskselector
21902     */
21903    EAPI void                   elm_diskselector_round_set(Evas_Object *obj, Eina_Bool round) EINA_ARG_NONNULL(1);
21904
21905    /**
21906     * Get a value whether round mode is enabled or not.
21907     *
21908     * @see elm_diskselector_round_set() for details.
21909     *
21910     * @param obj The diskselector object.
21911     * @return @c EINA_TRUE means round mode is enabled. @c EINA_FALSE indicates
21912     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
21913     *
21914     * @ingroup Diskselector
21915     */
21916    EAPI Eina_Bool              elm_diskselector_round_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21917
21918    /**
21919     * Get the side labels max length.
21920     *
21921     * @deprecated use elm_diskselector_side_label_length_get() instead:
21922     *
21923     * @param obj The diskselector object.
21924     * @return The max length defined for side labels, or 0 if not a valid
21925     * diskselector.
21926     *
21927     * @ingroup Diskselector
21928     */
21929    EINA_DEPRECATED EAPI int    elm_diskselector_side_label_lenght_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21930
21931    /**
21932     * Set the side labels max length.
21933     *
21934     * @deprecated use elm_diskselector_side_label_length_set() instead:
21935     *
21936     * @param obj The diskselector object.
21937     * @param len The max length defined for side labels.
21938     *
21939     * @ingroup Diskselector
21940     */
21941    EINA_DEPRECATED EAPI void   elm_diskselector_side_label_lenght_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
21942
21943    /**
21944     * Get the side labels max length.
21945     *
21946     * @see elm_diskselector_side_label_length_set() for details.
21947     *
21948     * @param obj The diskselector object.
21949     * @return The max length defined for side labels, or 0 if not a valid
21950     * diskselector.
21951     *
21952     * @ingroup Diskselector
21953     */
21954    EAPI int                    elm_diskselector_side_label_length_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21955
21956    /**
21957     * Set the side labels max length.
21958     *
21959     * @param obj The diskselector object.
21960     * @param len The max length defined for side labels.
21961     *
21962     * Length is the number of characters of items' label that will be
21963     * visible when it's set on side positions. It will just crop
21964     * the string after defined size. E.g.:
21965     *
21966     * An item with label "January" would be displayed on side position as
21967     * "Jan" if max length is set to 3, or "Janu", if this property
21968     * is set to 4.
21969     *
21970     * When it's selected, the entire label will be displayed, except for
21971     * width restrictions. In this case label will be cropped and "..."
21972     * will be concatenated.
21973     *
21974     * Default side label max length is 3.
21975     *
21976     * This property will be applyed over all items, included before or
21977     * later this function call.
21978     *
21979     * @ingroup Diskselector
21980     */
21981    EAPI void                   elm_diskselector_side_label_length_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
21982
21983    /**
21984     * Set the number of items to be displayed.
21985     *
21986     * @param obj The diskselector object.
21987     * @param num The number of items the diskselector will display.
21988     *
21989     * Default value is 3, and also it's the minimun. If @p num is less
21990     * than 3, it will be set to 3.
21991     *
21992     * Also, it can be set on theme, using data item @c display_item_num
21993     * on group "elm/diskselector/item/X", where X is style set.
21994     * E.g.:
21995     *
21996     * group { name: "elm/diskselector/item/X";
21997     * data {
21998     *     item: "display_item_num" "5";
21999     *     }
22000     *
22001     * @ingroup Diskselector
22002     */
22003    EAPI void                   elm_diskselector_display_item_num_set(Evas_Object *obj, int num) EINA_ARG_NONNULL(1);
22004
22005    /**
22006     * Set bouncing behaviour when the scrolled content reaches an edge.
22007     *
22008     * Tell the internal scroller object whether it should bounce or not
22009     * when it reaches the respective edges for each axis.
22010     *
22011     * @param obj The diskselector object.
22012     * @param h_bounce Whether to bounce or not in the horizontal axis.
22013     * @param v_bounce Whether to bounce or not in the vertical axis.
22014     *
22015     * @see elm_scroller_bounce_set()
22016     *
22017     * @ingroup Diskselector
22018     */
22019    EAPI void                   elm_diskselector_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
22020
22021    /**
22022     * Get the bouncing behaviour of the internal scroller.
22023     *
22024     * Get whether the internal scroller should bounce when the edge of each
22025     * axis is reached scrolling.
22026     *
22027     * @param obj The diskselector object.
22028     * @param h_bounce Pointer where to store the bounce state of the horizontal
22029     * axis.
22030     * @param v_bounce Pointer where to store the bounce state of the vertical
22031     * axis.
22032     *
22033     * @see elm_scroller_bounce_get()
22034     * @see elm_diskselector_bounce_set()
22035     *
22036     * @ingroup Diskselector
22037     */
22038    EAPI void                   elm_diskselector_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
22039
22040    /**
22041     * Get the scrollbar policy.
22042     *
22043     * @see elm_diskselector_scroller_policy_get() for details.
22044     *
22045     * @param obj The diskselector object.
22046     * @param policy_h Pointer where to store horizontal scrollbar policy.
22047     * @param policy_v Pointer where to store vertical scrollbar policy.
22048     *
22049     * @ingroup Diskselector
22050     */
22051    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);
22052
22053    /**
22054     * Set the scrollbar policy.
22055     *
22056     * @param obj The diskselector object.
22057     * @param policy_h Horizontal scrollbar policy.
22058     * @param policy_v Vertical scrollbar policy.
22059     *
22060     * This sets the scrollbar visibility policy for the given scroller.
22061     * #ELM_SCROLLER_POLICY_AUTO means the scrollber is made visible if it
22062     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
22063     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
22064     * This applies respectively for the horizontal and vertical scrollbars.
22065     *
22066     * The both are disabled by default, i.e., are set to
22067     * #ELM_SCROLLER_POLICY_OFF.
22068     *
22069     * @ingroup Diskselector
22070     */
22071    EAPI void                   elm_diskselector_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
22072
22073    /**
22074     * Remove all diskselector's items.
22075     *
22076     * @param obj The diskselector object.
22077     *
22078     * @see elm_diskselector_item_del()
22079     * @see elm_diskselector_item_append()
22080     *
22081     * @ingroup Diskselector
22082     */
22083    EAPI void                   elm_diskselector_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
22084
22085    /**
22086     * Get a list of all the diskselector items.
22087     *
22088     * @param obj The diskselector object.
22089     * @return An @c Eina_List of diskselector items, #Elm_Diskselector_Item,
22090     * or @c NULL on failure.
22091     *
22092     * @see elm_diskselector_item_append()
22093     * @see elm_diskselector_item_del()
22094     * @see elm_diskselector_clear()
22095     *
22096     * @ingroup Diskselector
22097     */
22098    EAPI const Eina_List       *elm_diskselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22099
22100    /**
22101     * Appends a new item to the diskselector object.
22102     *
22103     * @param obj The diskselector object.
22104     * @param label The label of the diskselector item.
22105     * @param icon The icon object to use at left side of the item. An
22106     * icon can be any Evas object, but usually it is an icon created
22107     * with elm_icon_add().
22108     * @param func The function to call when the item is selected.
22109     * @param data The data to associate with the item for related callbacks.
22110     *
22111     * @return The created item or @c NULL upon failure.
22112     *
22113     * A new item will be created and appended to the diskselector, i.e., will
22114     * be set as last item. Also, if there is no selected item, it will
22115     * be selected. This will always happens for the first appended item.
22116     *
22117     * If no icon is set, label will be centered on item position, otherwise
22118     * the icon will be placed at left of the label, that will be shifted
22119     * to the right.
22120     *
22121     * Items created with this method can be deleted with
22122     * elm_diskselector_item_del().
22123     *
22124     * Associated @p data can be properly freed when item is deleted if a
22125     * callback function is set with elm_diskselector_item_del_cb_set().
22126     *
22127     * If a function is passed as argument, it will be called everytime this item
22128     * is selected, i.e., the user stops the diskselector with this
22129     * item on center position. If such function isn't needed, just passing
22130     * @c NULL as @p func is enough. The same should be done for @p data.
22131     *
22132     * Simple example (with no function callback or data associated):
22133     * @code
22134     * disk = elm_diskselector_add(win);
22135     * ic = elm_icon_add(win);
22136     * elm_icon_file_set(ic, "path/to/image", NULL);
22137     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
22138     * elm_diskselector_item_append(disk, "label", ic, NULL, NULL);
22139     * @endcode
22140     *
22141     * @see elm_diskselector_item_del()
22142     * @see elm_diskselector_item_del_cb_set()
22143     * @see elm_diskselector_clear()
22144     * @see elm_icon_add()
22145     *
22146     * @ingroup Diskselector
22147     */
22148    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);
22149
22150
22151    /**
22152     * Delete them item from the diskselector.
22153     *
22154     * @param it The item of diskselector to be deleted.
22155     *
22156     * If deleting all diskselector items is required, elm_diskselector_clear()
22157     * should be used instead of getting items list and deleting each one.
22158     *
22159     * @see elm_diskselector_clear()
22160     * @see elm_diskselector_item_append()
22161     * @see elm_diskselector_item_del_cb_set()
22162     *
22163     * @ingroup Diskselector
22164     */
22165    EAPI void                   elm_diskselector_item_del(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
22166
22167    /**
22168     * Set the function called when a diskselector item is freed.
22169     *
22170     * @param it The item to set the callback on
22171     * @param func The function called
22172     *
22173     * If there is a @p func, then it will be called prior item's memory release.
22174     * That will be called with the following arguments:
22175     * @li item's data;
22176     * @li item's Evas object;
22177     * @li item itself;
22178     *
22179     * This way, a data associated to a diskselector item could be properly
22180     * freed.
22181     *
22182     * @ingroup Diskselector
22183     */
22184    EAPI void                   elm_diskselector_item_del_cb_set(Elm_Diskselector_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
22185
22186    /**
22187     * Get the data associated to the item.
22188     *
22189     * @param it The diskselector item
22190     * @return The data associated to @p it
22191     *
22192     * The return value is a pointer to data associated to @p item when it was
22193     * created, with function elm_diskselector_item_append(). If no data
22194     * was passed as argument, it will return @c NULL.
22195     *
22196     * @see elm_diskselector_item_append()
22197     *
22198     * @ingroup Diskselector
22199     */
22200    EAPI void                  *elm_diskselector_item_data_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
22201
22202    /**
22203     * Set the icon associated to the item.
22204     *
22205     * @param it The diskselector item
22206     * @param icon The icon object to associate with @p it
22207     *
22208     * The icon object to use at left side of the item. An
22209     * icon can be any Evas object, but usually it is an icon created
22210     * with elm_icon_add().
22211     *
22212     * Once the icon object is set, a previously set one will be deleted.
22213     * @warning Setting the same icon for two items will cause the icon to
22214     * dissapear from the first item.
22215     *
22216     * If an icon was passed as argument on item creation, with function
22217     * elm_diskselector_item_append(), it will be already
22218     * associated to the item.
22219     *
22220     * @see elm_diskselector_item_append()
22221     * @see elm_diskselector_item_icon_get()
22222     *
22223     * @ingroup Diskselector
22224     */
22225    EAPI void                   elm_diskselector_item_icon_set(Elm_Diskselector_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
22226
22227    /**
22228     * Get the icon associated to the item.
22229     *
22230     * @param it The diskselector item
22231     * @return The icon associated to @p it
22232     *
22233     * The return value is a pointer to the icon associated to @p item when it was
22234     * created, with function elm_diskselector_item_append(), or later
22235     * with function elm_diskselector_item_icon_set. If no icon
22236     * was passed as argument, it will return @c NULL.
22237     *
22238     * @see elm_diskselector_item_append()
22239     * @see elm_diskselector_item_icon_set()
22240     *
22241     * @ingroup Diskselector
22242     */
22243    EAPI Evas_Object           *elm_diskselector_item_icon_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
22244
22245    /**
22246     * Set the label of item.
22247     *
22248     * @param it The item of diskselector.
22249     * @param label The label of item.
22250     *
22251     * The label to be displayed by the item.
22252     *
22253     * If no icon is set, label will be centered on item position, otherwise
22254     * the icon will be placed at left of the label, that will be shifted
22255     * to the right.
22256     *
22257     * An item with label "January" would be displayed on side position as
22258     * "Jan" if max length is set to 3 with function
22259     * elm_diskselector_side_label_lenght_set(), or "Janu", if this property
22260     * is set to 4.
22261     *
22262     * When this @p item is selected, the entire label will be displayed,
22263     * except for width restrictions.
22264     * In this case label will be cropped and "..." will be concatenated,
22265     * but only for display purposes. It will keep the entire string, so
22266     * if diskselector is resized the remaining characters will be displayed.
22267     *
22268     * If a label was passed as argument on item creation, with function
22269     * elm_diskselector_item_append(), it will be already
22270     * displayed by the item.
22271     *
22272     * @see elm_diskselector_side_label_lenght_set()
22273     * @see elm_diskselector_item_label_get()
22274     * @see elm_diskselector_item_append()
22275     *
22276     * @ingroup Diskselector
22277     */
22278    EAPI void                   elm_diskselector_item_label_set(Elm_Diskselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
22279
22280    /**
22281     * Get the label of item.
22282     *
22283     * @param it The item of diskselector.
22284     * @return The label of item.
22285     *
22286     * The return value is a pointer to the label associated to @p item when it was
22287     * created, with function elm_diskselector_item_append(), or later
22288     * with function elm_diskselector_item_label_set. If no label
22289     * was passed as argument, it will return @c NULL.
22290     *
22291     * @see elm_diskselector_item_label_set() for more details.
22292     * @see elm_diskselector_item_append()
22293     *
22294     * @ingroup Diskselector
22295     */
22296    EAPI const char            *elm_diskselector_item_label_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
22297
22298    /**
22299     * Get the selected item.
22300     *
22301     * @param obj The diskselector object.
22302     * @return The selected diskselector item.
22303     *
22304     * The selected item can be unselected with function
22305     * elm_diskselector_item_selected_set(), and the first item of
22306     * diskselector will be selected.
22307     *
22308     * The selected item always will be centered on diskselector, with
22309     * full label displayed, i.e., max lenght set to side labels won't
22310     * apply on the selected item. More details on
22311     * elm_diskselector_side_label_length_set().
22312     *
22313     * @ingroup Diskselector
22314     */
22315    EAPI Elm_Diskselector_Item *elm_diskselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22316
22317    /**
22318     * Set the selected state of an item.
22319     *
22320     * @param it The diskselector item
22321     * @param selected The selected state
22322     *
22323     * This sets the selected state of the given item @p it.
22324     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
22325     *
22326     * If a new item is selected the previosly selected will be unselected.
22327     * Previoulsy selected item can be get with function
22328     * elm_diskselector_selected_item_get().
22329     *
22330     * If the item @p it is unselected, the first item of diskselector will
22331     * be selected.
22332     *
22333     * Selected items will be visible on center position of diskselector.
22334     * So if it was on another position before selected, or was invisible,
22335     * diskselector will animate items until the selected item reaches center
22336     * position.
22337     *
22338     * @see elm_diskselector_item_selected_get()
22339     * @see elm_diskselector_selected_item_get()
22340     *
22341     * @ingroup Diskselector
22342     */
22343    EAPI void                   elm_diskselector_item_selected_set(Elm_Diskselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
22344
22345    /*
22346     * Get whether the @p item is selected or not.
22347     *
22348     * @param it The diskselector item.
22349     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
22350     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
22351     *
22352     * @see elm_diskselector_selected_item_set() for details.
22353     * @see elm_diskselector_item_selected_get()
22354     *
22355     * @ingroup Diskselector
22356     */
22357    EAPI Eina_Bool              elm_diskselector_item_selected_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
22358
22359    /**
22360     * Get the first item of the diskselector.
22361     *
22362     * @param obj The diskselector object.
22363     * @return The first item, or @c NULL if none.
22364     *
22365     * The list of items follows append order. So it will return the first
22366     * item appended to the widget that wasn't deleted.
22367     *
22368     * @see elm_diskselector_item_append()
22369     * @see elm_diskselector_items_get()
22370     *
22371     * @ingroup Diskselector
22372     */
22373    EAPI Elm_Diskselector_Item *elm_diskselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22374
22375    /**
22376     * Get the last item of the diskselector.
22377     *
22378     * @param obj The diskselector object.
22379     * @return The last item, or @c NULL if none.
22380     *
22381     * The list of items follows append order. So it will return last first
22382     * item appended to the widget that wasn't deleted.
22383     *
22384     * @see elm_diskselector_item_append()
22385     * @see elm_diskselector_items_get()
22386     *
22387     * @ingroup Diskselector
22388     */
22389    EAPI Elm_Diskselector_Item *elm_diskselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22390
22391    /**
22392     * Get the item before @p item in diskselector.
22393     *
22394     * @param it The diskselector item.
22395     * @return The item before @p item, or @c NULL if none or on failure.
22396     *
22397     * The list of items follows append order. So it will return item appended
22398     * just before @p item and that wasn't deleted.
22399     *
22400     * If it is the first item, @c NULL will be returned.
22401     * First item can be get by elm_diskselector_first_item_get().
22402     *
22403     * @see elm_diskselector_item_append()
22404     * @see elm_diskselector_items_get()
22405     *
22406     * @ingroup Diskselector
22407     */
22408    EAPI Elm_Diskselector_Item *elm_diskselector_item_prev_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
22409
22410    /**
22411     * Get the item after @p item in diskselector.
22412     *
22413     * @param it The diskselector item.
22414     * @return The item after @p item, or @c NULL if none or on failure.
22415     *
22416     * The list of items follows append order. So it will return item appended
22417     * just after @p item and that wasn't deleted.
22418     *
22419     * If it is the last item, @c NULL will be returned.
22420     * Last item can be get by elm_diskselector_last_item_get().
22421     *
22422     * @see elm_diskselector_item_append()
22423     * @see elm_diskselector_items_get()
22424     *
22425     * @ingroup Diskselector
22426     */
22427    EAPI Elm_Diskselector_Item *elm_diskselector_item_next_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
22428
22429    /**
22430     * Set the text to be shown in the diskselector item.
22431     *
22432     * @param item Target item
22433     * @param text The text to set in the content
22434     *
22435     * Setup the text as tooltip to object. The item can have only one tooltip,
22436     * so any previous tooltip data is removed.
22437     *
22438     * @see elm_object_tooltip_text_set() for more details.
22439     *
22440     * @ingroup Diskselector
22441     */
22442    EAPI void                   elm_diskselector_item_tooltip_text_set(Elm_Diskselector_Item *item, const char *text) EINA_ARG_NONNULL(1);
22443
22444    /**
22445     * Set the content to be shown in the tooltip item.
22446     *
22447     * Setup the tooltip to item. The item can have only one tooltip,
22448     * so any previous tooltip data is removed. @p func(with @p data) will
22449     * be called every time that need show the tooltip and it should
22450     * return a valid Evas_Object. This object is then managed fully by
22451     * tooltip system and is deleted when the tooltip is gone.
22452     *
22453     * @param item the diskselector item being attached a tooltip.
22454     * @param func the function used to create the tooltip contents.
22455     * @param data what to provide to @a func as callback data/context.
22456     * @param del_cb called when data is not needed anymore, either when
22457     *        another callback replaces @p func, the tooltip is unset with
22458     *        elm_diskselector_item_tooltip_unset() or the owner @a item
22459     *        dies. This callback receives as the first parameter the
22460     *        given @a data, and @c event_info is the item.
22461     *
22462     * @see elm_object_tooltip_content_cb_set() for more details.
22463     *
22464     * @ingroup Diskselector
22465     */
22466    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);
22467
22468    /**
22469     * Unset tooltip from item.
22470     *
22471     * @param item diskselector item to remove previously set tooltip.
22472     *
22473     * Remove tooltip from item. The callback provided as del_cb to
22474     * elm_diskselector_item_tooltip_content_cb_set() will be called to notify
22475     * it is not used anymore.
22476     *
22477     * @see elm_object_tooltip_unset() for more details.
22478     * @see elm_diskselector_item_tooltip_content_cb_set()
22479     *
22480     * @ingroup Diskselector
22481     */
22482    EAPI void                   elm_diskselector_item_tooltip_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
22483
22484
22485    /**
22486     * Sets a different style for this item tooltip.
22487     *
22488     * @note before you set a style you should define a tooltip with
22489     *       elm_diskselector_item_tooltip_content_cb_set() or
22490     *       elm_diskselector_item_tooltip_text_set()
22491     *
22492     * @param item diskselector item with tooltip already set.
22493     * @param style the theme style to use (default, transparent, ...)
22494     *
22495     * @see elm_object_tooltip_style_set() for more details.
22496     *
22497     * @ingroup Diskselector
22498     */
22499    EAPI void                   elm_diskselector_item_tooltip_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
22500
22501    /**
22502     * Get the style for this item tooltip.
22503     *
22504     * @param item diskselector item with tooltip already set.
22505     * @return style the theme style in use, defaults to "default". If the
22506     *         object does not have a tooltip set, then NULL is returned.
22507     *
22508     * @see elm_object_tooltip_style_get() for more details.
22509     * @see elm_diskselector_item_tooltip_style_set()
22510     *
22511     * @ingroup Diskselector
22512     */
22513    EAPI const char            *elm_diskselector_item_tooltip_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
22514
22515    /**
22516     * Set the cursor to be shown when mouse is over the diskselector item
22517     *
22518     * @param item Target item
22519     * @param cursor the cursor name to be used.
22520     *
22521     * @see elm_object_cursor_set() for more details.
22522     *
22523     * @ingroup Diskselector
22524     */
22525    EAPI void                   elm_diskselector_item_cursor_set(Elm_Diskselector_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
22526
22527    /**
22528     * Get the cursor to be shown when mouse is over the diskselector item
22529     *
22530     * @param item diskselector item with cursor already set.
22531     * @return the cursor name.
22532     *
22533     * @see elm_object_cursor_get() for more details.
22534     * @see elm_diskselector_cursor_set()
22535     *
22536     * @ingroup Diskselector
22537     */
22538    EAPI const char            *elm_diskselector_item_cursor_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
22539
22540
22541    /**
22542     * Unset the cursor to be shown when mouse is over the diskselector item
22543     *
22544     * @param item Target item
22545     *
22546     * @see elm_object_cursor_unset() for more details.
22547     * @see elm_diskselector_cursor_set()
22548     *
22549     * @ingroup Diskselector
22550     */
22551    EAPI void                   elm_diskselector_item_cursor_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
22552
22553    /**
22554     * Sets a different style for this item cursor.
22555     *
22556     * @note before you set a style you should define a cursor with
22557     *       elm_diskselector_item_cursor_set()
22558     *
22559     * @param item diskselector item with cursor already set.
22560     * @param style the theme style to use (default, transparent, ...)
22561     *
22562     * @see elm_object_cursor_style_set() for more details.
22563     *
22564     * @ingroup Diskselector
22565     */
22566    EAPI void                   elm_diskselector_item_cursor_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
22567
22568
22569    /**
22570     * Get the style for this item cursor.
22571     *
22572     * @param item diskselector item with cursor already set.
22573     * @return style the theme style in use, defaults to "default". If the
22574     *         object does not have a cursor set, then @c NULL is returned.
22575     *
22576     * @see elm_object_cursor_style_get() for more details.
22577     * @see elm_diskselector_item_cursor_style_set()
22578     *
22579     * @ingroup Diskselector
22580     */
22581    EAPI const char            *elm_diskselector_item_cursor_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
22582
22583
22584    /**
22585     * Set if the cursor set should be searched on the theme or should use
22586     * the provided by the engine, only.
22587     *
22588     * @note before you set if should look on theme you should define a cursor
22589     * with elm_diskselector_item_cursor_set().
22590     * By default it will only look for cursors provided by the engine.
22591     *
22592     * @param item widget item with cursor already set.
22593     * @param engine_only boolean to define if cursors set with
22594     * elm_diskselector_item_cursor_set() should be searched only
22595     * between cursors provided by the engine or searched on widget's
22596     * theme as well.
22597     *
22598     * @see elm_object_cursor_engine_only_set() for more details.
22599     *
22600     * @ingroup Diskselector
22601     */
22602    EAPI void                   elm_diskselector_item_cursor_engine_only_set(Elm_Diskselector_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
22603
22604    /**
22605     * Get the cursor engine only usage for this item cursor.
22606     *
22607     * @param item widget item with cursor already set.
22608     * @return engine_only boolean to define it cursors should be looked only
22609     * between the provided by the engine or searched on widget's theme as well.
22610     * If the item does not have a cursor set, then @c EINA_FALSE is returned.
22611     *
22612     * @see elm_object_cursor_engine_only_get() for more details.
22613     * @see elm_diskselector_item_cursor_engine_only_set()
22614     *
22615     * @ingroup Diskselector
22616     */
22617    EAPI Eina_Bool              elm_diskselector_item_cursor_engine_only_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
22618
22619    /**
22620     * @}
22621     */
22622
22623    /**
22624     * @defgroup Colorselector Colorselector
22625     *
22626     * @{
22627     *
22628     * @image html img/widget/colorselector/preview-00.png
22629     *
22630     * @brief Widget for user to select a color.
22631     *
22632     * Signals that you can add callbacks for are:
22633     * "changed" - When the color value changes(event_info is NULL).
22634     *
22635     * See @ref tutorial_colorselector.
22636     */
22637    /**
22638     * @brief Add a new colorselector to the parent
22639     *
22640     * @param parent The parent object
22641     * @return The new object or NULL if it cannot be created
22642     *
22643     * @ingroup Colorselector
22644     */
22645    EAPI Evas_Object *elm_colorselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22646    /**
22647     * Set a color for the colorselector
22648     *
22649     * @param obj   Colorselector object
22650     * @param r     r-value of color
22651     * @param g     g-value of color
22652     * @param b     b-value of color
22653     * @param a     a-value of color
22654     *
22655     * @ingroup Colorselector
22656     */
22657    EAPI void         elm_colorselector_color_set(Evas_Object *obj, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
22658    /**
22659     * Get a color from the colorselector
22660     *
22661     * @param obj   Colorselector object
22662     * @param r     integer pointer for r-value of color
22663     * @param g     integer pointer for g-value of color
22664     * @param b     integer pointer for b-value of color
22665     * @param a     integer pointer for a-value of color
22666     *
22667     * @ingroup Colorselector
22668     */
22669    EAPI void         elm_colorselector_color_get(const Evas_Object *obj, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
22670    /**
22671     * @}
22672     */
22673
22674    /**
22675     * @defgroup Ctxpopup Ctxpopup
22676     *
22677     * @image html img/widget/ctxpopup/preview-00.png
22678     * @image latex img/widget/ctxpopup/preview-00.eps
22679     *
22680     * @brief Context popup widet.
22681     *
22682     * A ctxpopup is a widget that, when shown, pops up a list of items.
22683     * It automatically chooses an area inside its parent object's view
22684     * (set via elm_ctxpopup_add() and elm_ctxpopup_hover_parent_set()) to
22685     * optimally fit into it. In the default theme, it will also point an
22686     * arrow to it's top left position at the time one shows it. Ctxpopup
22687     * items have a label and/or an icon. It is intended for a small
22688     * number of items (hence the use of list, not genlist).
22689     *
22690     * @note Ctxpopup is a especialization of @ref Hover.
22691     *
22692     * Signals that you can add callbacks for are:
22693     * "dismissed" - the ctxpopup was dismissed
22694     *
22695     * @ref tutorial_ctxpopup shows the usage of a good deal of the API.
22696     * @{
22697     */
22698    typedef struct _Elm_Ctxpopup_Item Elm_Ctxpopup_Item;
22699
22700    typedef enum _Elm_Ctxpopup_Direction
22701      {
22702         ELM_CTXPOPUP_DIRECTION_DOWN, /**< ctxpopup show appear below clicked
22703                                           area */
22704         ELM_CTXPOPUP_DIRECTION_RIGHT, /**< ctxpopup show appear to the right of
22705                                            the clicked area */
22706         ELM_CTXPOPUP_DIRECTION_LEFT, /**< ctxpopup show appear to the left of
22707                                           the clicked area */
22708         ELM_CTXPOPUP_DIRECTION_UP, /**< ctxpopup show appear above the clicked
22709                                         area */
22710      } Elm_Ctxpopup_Direction;
22711
22712    /**
22713     * @brief Add a new Ctxpopup object to the parent.
22714     *
22715     * @param parent Parent object
22716     * @return New object or @c NULL, if it cannot be created
22717     */
22718    EAPI Evas_Object  *elm_ctxpopup_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22719    /**
22720     * @brief Set the Ctxpopup's parent
22721     *
22722     * @param obj The ctxpopup object
22723     * @param area The parent to use
22724     *
22725     * Set the parent object.
22726     *
22727     * @note elm_ctxpopup_add() will automatically call this function
22728     * with its @c parent argument.
22729     *
22730     * @see elm_ctxpopup_add()
22731     * @see elm_hover_parent_set()
22732     */
22733    EAPI void          elm_ctxpopup_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1, 2);
22734    /**
22735     * @brief Get the Ctxpopup's parent
22736     *
22737     * @param obj The ctxpopup object
22738     *
22739     * @see elm_ctxpopup_hover_parent_set() for more information
22740     */
22741    EAPI Evas_Object  *elm_ctxpopup_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22742    /**
22743     * @brief Clear all items in the given ctxpopup object.
22744     *
22745     * @param obj Ctxpopup object
22746     */
22747    EAPI void          elm_ctxpopup_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
22748    /**
22749     * @brief Change the ctxpopup's orientation to horizontal or vertical.
22750     *
22751     * @param obj Ctxpopup object
22752     * @param horizontal @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical
22753     */
22754    EAPI void          elm_ctxpopup_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
22755    /**
22756     * @brief Get the value of current ctxpopup object's orientation.
22757     *
22758     * @param obj Ctxpopup object
22759     * @return @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical mode (or errors)
22760     *
22761     * @see elm_ctxpopup_horizontal_set()
22762     */
22763    EAPI Eina_Bool     elm_ctxpopup_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22764    /**
22765     * @brief Add a new item to a ctxpopup object.
22766     *
22767     * @param obj Ctxpopup object
22768     * @param icon Icon to be set on new item
22769     * @param label The Label of the new item
22770     * @param func Convenience function called when item selected
22771     * @param data Data passed to @p func
22772     * @return A handle to the item added or @c NULL, on errors
22773     *
22774     * @warning Ctxpopup can't hold both an item list and a content at the same
22775     * time. When an item is added, any previous content will be removed.
22776     *
22777     * @see elm_ctxpopup_content_set()
22778     */
22779    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);
22780    /**
22781     * @brief Delete the given item in a ctxpopup object.
22782     *
22783     * @param item Ctxpopup item to be deleted
22784     *
22785     * @see elm_ctxpopup_item_append()
22786     */
22787    EAPI void          elm_ctxpopup_item_del(Elm_Ctxpopup_Item *it) EINA_ARG_NONNULL(1);
22788    /**
22789     * @brief Set the ctxpopup item's state as disabled or enabled.
22790     *
22791     * @param item Ctxpopup item to be enabled/disabled
22792     * @param disabled @c EINA_TRUE to disable it, @c EINA_FALSE to enable it
22793     *
22794     * When disabled the item is greyed out to indicate it's state.
22795     */
22796    EAPI void          elm_ctxpopup_item_disabled_set(Elm_Ctxpopup_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
22797    /**
22798     * @brief Get the ctxpopup item's disabled/enabled state.
22799     *
22800     * @param item Ctxpopup item to be enabled/disabled
22801     * @return disabled @c EINA_TRUE, if disabled, @c EINA_FALSE otherwise
22802     *
22803     * @see elm_ctxpopup_item_disabled_set()
22804     */
22805    EAPI Eina_Bool     elm_ctxpopup_item_disabled_get(const Elm_Ctxpopup_Item *item) EINA_ARG_NONNULL(1);
22806    /**
22807     * @brief Get the icon object for the given ctxpopup item.
22808     *
22809     * @param item Ctxpopup item
22810     * @return icon object or @c NULL, if the item does not have icon or an error
22811     * occurred
22812     *
22813     * @see elm_ctxpopup_item_append()
22814     * @see elm_ctxpopup_item_icon_set()
22815     */
22816    EAPI Evas_Object  *elm_ctxpopup_item_icon_get(const Elm_Ctxpopup_Item *item) EINA_ARG_NONNULL(1);
22817    /**
22818     * @brief Sets the side icon associated with the ctxpopup item
22819     *
22820     * @param item Ctxpopup item
22821     * @param icon Icon object to be set
22822     *
22823     * Once the icon object is set, a previously set one will be deleted.
22824     * @warning Setting the same icon for two items will cause the icon to
22825     * dissapear from the first item.
22826     *
22827     * @see elm_ctxpopup_item_append()
22828     */
22829    EAPI void          elm_ctxpopup_item_icon_set(Elm_Ctxpopup_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
22830    /**
22831     * @brief Get the label for the given ctxpopup item.
22832     *
22833     * @param item Ctxpopup item
22834     * @return label string or @c NULL, if the item does not have label or an
22835     * error occured
22836     *
22837     * @see elm_ctxpopup_item_append()
22838     * @see elm_ctxpopup_item_label_set()
22839     */
22840    EAPI const char   *elm_ctxpopup_item_label_get(const Elm_Ctxpopup_Item *item) EINA_ARG_NONNULL(1);
22841    /**
22842     * @brief (Re)set the label on the given ctxpopup item.
22843     *
22844     * @param item Ctxpopup item
22845     * @param label String to set as label
22846     */
22847    EAPI void          elm_ctxpopup_item_label_set(Elm_Ctxpopup_Item *item, const char *label) EINA_ARG_NONNULL(1);
22848    /**
22849     * @brief Set an elm widget as the content of the ctxpopup.
22850     *
22851     * @param obj Ctxpopup object
22852     * @param content Content to be swallowed
22853     *
22854     * If the content object is already set, a previous one will bedeleted. If
22855     * you want to keep that old content object, use the
22856     * elm_ctxpopup_content_unset() function.
22857     *
22858     * @deprecated use elm_object_content_set()
22859     *
22860     * @warning Ctxpopup can't hold both a item list and a content at the same
22861     * time. When a content is set, any previous items will be removed.
22862     */
22863    EINA_DEPRECATED EAPI void          elm_ctxpopup_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1, 2);
22864    /**
22865     * @brief Unset the ctxpopup content
22866     *
22867     * @param obj Ctxpopup object
22868     * @return The content that was being used
22869     *
22870     * Unparent and return the content object which was set for this widget.
22871     *
22872     * @deprecated use elm_object_content_unset()
22873     *
22874     * @see elm_ctxpopup_content_set()
22875     */
22876    EINA_DEPRECATED EAPI Evas_Object  *elm_ctxpopup_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22877    /**
22878     * @brief Set the direction priority of a ctxpopup.
22879     *
22880     * @param obj Ctxpopup object
22881     * @param first 1st priority of direction
22882     * @param second 2nd priority of direction
22883     * @param third 3th priority of direction
22884     * @param fourth 4th priority of direction
22885     *
22886     * This functions gives a chance to user to set the priority of ctxpopup
22887     * showing direction. This doesn't guarantee the ctxpopup will appear in the
22888     * requested direction.
22889     *
22890     * @see Elm_Ctxpopup_Direction
22891     */
22892    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);
22893    /**
22894     * @brief Get the direction priority of a ctxpopup.
22895     *
22896     * @param obj Ctxpopup object
22897     * @param first 1st priority of direction to be returned
22898     * @param second 2nd priority of direction to be returned
22899     * @param third 3th priority of direction to be returned
22900     * @param fourth 4th priority of direction to be returned
22901     *
22902     * @see elm_ctxpopup_direction_priority_set() for more information.
22903     */
22904    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);
22905    /**
22906     * @}
22907     */
22908
22909    /* transit */
22910    /**
22911     *
22912     * @defgroup Transit Transit
22913     * @ingroup Elementary
22914     *
22915     * Transit is designed to apply various animated transition effects to @c
22916     * Evas_Object, such like translation, rotation, etc. For using these
22917     * effects, create an @ref Elm_Transit and add the desired transition effects.
22918     *
22919     * Once the effects are added into transit, they will be automatically
22920     * managed (their callback will be called until the duration is ended, and
22921     * they will be deleted on completion).
22922     *
22923     * Example:
22924     * @code
22925     * Elm_Transit *trans = elm_transit_add();
22926     * elm_transit_object_add(trans, obj);
22927     * elm_transit_effect_translation_add(trans, 0, 0, 280, 280
22928     * elm_transit_duration_set(transit, 1);
22929     * elm_transit_auto_reverse_set(transit, EINA_TRUE);
22930     * elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
22931     * elm_transit_repeat_times_set(transit, 3);
22932     * @endcode
22933     *
22934     * Some transition effects are used to change the properties of objects. They
22935     * are:
22936     * @li @ref elm_transit_effect_translation_add
22937     * @li @ref elm_transit_effect_color_add
22938     * @li @ref elm_transit_effect_rotation_add
22939     * @li @ref elm_transit_effect_wipe_add
22940     * @li @ref elm_transit_effect_zoom_add
22941     * @li @ref elm_transit_effect_resizing_add
22942     *
22943     * Other transition effects are used to make one object disappear and another
22944     * object appear on its old place. These effects are:
22945     *
22946     * @li @ref elm_transit_effect_flip_add
22947     * @li @ref elm_transit_effect_resizable_flip_add
22948     * @li @ref elm_transit_effect_fade_add
22949     * @li @ref elm_transit_effect_blend_add
22950     *
22951     * It's also possible to make a transition chain with @ref
22952     * elm_transit_chain_transit_add.
22953     *
22954     * @warning We strongly recommend to use elm_transit just when edje can not do
22955     * the trick. Edje has more advantage than Elm_Transit, it has more flexibility and
22956     * animations can be manipulated inside the theme.
22957     *
22958     * List of examples:
22959     * @li @ref transit_example_01_explained
22960     * @li @ref transit_example_02_explained
22961     * @li @ref transit_example_03_c
22962     * @li @ref transit_example_04_c
22963     *
22964     * @{
22965     */
22966
22967    /**
22968     * @enum Elm_Transit_Tween_Mode
22969     *
22970     * The type of acceleration used in the transition.
22971     */
22972    typedef enum
22973      {
22974         ELM_TRANSIT_TWEEN_MODE_LINEAR, /**< Constant speed */
22975         ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL, /**< Starts slow, increase speed
22976                                              over time, then decrease again
22977                                              and stop slowly */
22978         ELM_TRANSIT_TWEEN_MODE_DECELERATE, /**< Starts fast and decrease
22979                                              speed over time */
22980         ELM_TRANSIT_TWEEN_MODE_ACCELERATE /**< Starts slow and increase speed
22981                                             over time */
22982      } Elm_Transit_Tween_Mode;
22983
22984    /**
22985     * @enum Elm_Transit_Effect_Flip_Axis
22986     *
22987     * The axis where flip effect should be applied.
22988     */
22989    typedef enum
22990      {
22991         ELM_TRANSIT_EFFECT_FLIP_AXIS_X, /**< Flip on X axis */
22992         ELM_TRANSIT_EFFECT_FLIP_AXIS_Y /**< Flip on Y axis */
22993      } Elm_Transit_Effect_Flip_Axis;
22994    /**
22995     * @enum Elm_Transit_Effect_Wipe_Dir
22996     *
22997     * The direction where the wipe effect should occur.
22998     */
22999    typedef enum
23000      {
23001         ELM_TRANSIT_EFFECT_WIPE_DIR_LEFT, /**< Wipe to the left */
23002         ELM_TRANSIT_EFFECT_WIPE_DIR_RIGHT, /**< Wipe to the right */
23003         ELM_TRANSIT_EFFECT_WIPE_DIR_UP, /**< Wipe up */
23004         ELM_TRANSIT_EFFECT_WIPE_DIR_DOWN /**< Wipe down */
23005      } Elm_Transit_Effect_Wipe_Dir;
23006    /** @enum Elm_Transit_Effect_Wipe_Type
23007     *
23008     * Whether the wipe effect should show or hide the object.
23009     */
23010    typedef enum
23011      {
23012         ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE, /**< Hide the object during the
23013                                              animation */
23014         ELM_TRANSIT_EFFECT_WIPE_TYPE_SHOW /**< Show the object during the
23015                                             animation */
23016      } Elm_Transit_Effect_Wipe_Type;
23017
23018    /**
23019     * @typedef Elm_Transit
23020     *
23021     * The Transit created with elm_transit_add(). This type has the information
23022     * about the objects which the transition will be applied, and the
23023     * transition effects that will be used. It also contains info about
23024     * duration, number of repetitions, auto-reverse, etc.
23025     */
23026    typedef struct _Elm_Transit Elm_Transit;
23027    typedef void Elm_Transit_Effect;
23028    /**
23029     * @typedef Elm_Transit_Effect_Transition_Cb
23030     *
23031     * Transition callback called for this effect on each transition iteration.
23032     */
23033    typedef void (*Elm_Transit_Effect_Transition_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit, double progress);
23034    /**
23035     * Elm_Transit_Effect_End_Cb
23036     *
23037     * Transition callback called for this effect when the transition is over.
23038     */
23039    typedef void (*Elm_Transit_Effect_End_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit);
23040
23041    /**
23042     * Elm_Transit_Del_Cb
23043     *
23044     * A callback called when the transit is deleted.
23045     */
23046    typedef void (*Elm_Transit_Del_Cb) (void *data, Elm_Transit *transit);
23047
23048    /**
23049     * Add new transit.
23050     *
23051     * @note Is not necessary to delete the transit object, it will be deleted at
23052     * the end of its operation.
23053     * @note The transit will start playing when the program enter in the main loop, is not
23054     * necessary to give a start to the transit.
23055     *
23056     * @return The transit object.
23057     *
23058     * @ingroup Transit
23059     */
23060    EAPI Elm_Transit                *elm_transit_add(void);
23061
23062    /**
23063     * Stops the animation and delete the @p transit object.
23064     *
23065     * Call this function if you wants to stop the animation before the duration
23066     * time. Make sure the @p transit object is still alive with
23067     * elm_transit_del_cb_set() function.
23068     * All added effects will be deleted, calling its repective data_free_cb
23069     * functions. The function setted by elm_transit_del_cb_set() will be called.
23070     *
23071     * @see elm_transit_del_cb_set()
23072     *
23073     * @param transit The transit object to be deleted.
23074     *
23075     * @ingroup Transit
23076     * @warning Just call this function if you are sure the transit is alive.
23077     */
23078    EAPI void                        elm_transit_del(Elm_Transit *transit) EINA_ARG_NONNULL(1);
23079
23080    /**
23081     * Add a new effect to the transit.
23082     *
23083     * @note The cb function and the data are the key to the effect. If you try to
23084     * add an already added effect, nothing is done.
23085     * @note After the first addition of an effect in @p transit, if its
23086     * effect list become empty again, the @p transit will be killed by
23087     * elm_transit_del(transit) function.
23088     *
23089     * Exemple:
23090     * @code
23091     * Elm_Transit *transit = elm_transit_add();
23092     * elm_transit_effect_add(transit,
23093     *                        elm_transit_effect_blend_op,
23094     *                        elm_transit_effect_blend_context_new(),
23095     *                        elm_transit_effect_blend_context_free);
23096     * @endcode
23097     *
23098     * @param transit The transit object.
23099     * @param transition_cb The operation function. It is called when the
23100     * animation begins, it is the function that actually performs the animation.
23101     * It is called with the @p data, @p transit and the time progression of the
23102     * animation (a double value between 0.0 and 1.0).
23103     * @param effect The context data of the effect.
23104     * @param end_cb The function to free the context data, it will be called
23105     * at the end of the effect, it must finalize the animation and free the
23106     * @p data.
23107     *
23108     * @ingroup Transit
23109     * @warning The transit free the context data at the and of the transition with
23110     * the data_free_cb function, do not use the context data in another transit.
23111     */
23112    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);
23113
23114    /**
23115     * Delete an added effect.
23116     *
23117     * This function will remove the effect from the @p transit, calling the
23118     * data_free_cb to free the @p data.
23119     *
23120     * @see elm_transit_effect_add()
23121     *
23122     * @note If the effect is not found, nothing is done.
23123     * @note If the effect list become empty, this function will call
23124     * elm_transit_del(transit), that is, it will kill the @p transit.
23125     *
23126     * @param transit The transit object.
23127     * @param transition_cb The operation function.
23128     * @param effect The context data of the effect.
23129     *
23130     * @ingroup Transit
23131     */
23132    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);
23133
23134    /**
23135     * Add new object to apply the effects.
23136     *
23137     * @note After the first addition of an object in @p transit, if its
23138     * object list become empty again, the @p transit will be killed by
23139     * elm_transit_del(transit) function.
23140     * @note If the @p obj belongs to another transit, the @p obj will be
23141     * removed from it and it will only belong to the @p transit. If the old
23142     * transit stays without objects, it will die.
23143     * @note When you add an object into the @p transit, its state from
23144     * evas_object_pass_events_get(obj) is saved, and it is applied when the
23145     * transit ends, if you change this state whith evas_object_pass_events_set()
23146     * after add the object, this state will change again when @p transit stops to
23147     * run.
23148     *
23149     * @param transit The transit object.
23150     * @param obj Object to be animated.
23151     *
23152     * @ingroup Transit
23153     * @warning It is not allowed to add a new object after transit begins to go.
23154     */
23155    EAPI void                        elm_transit_object_add(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
23156
23157    /**
23158     * Removes an added object from the transit.
23159     *
23160     * @note If the @p obj is not in the @p transit, nothing is done.
23161     * @note If the list become empty, this function will call
23162     * elm_transit_del(transit), that is, it will kill the @p transit.
23163     *
23164     * @param transit The transit object.
23165     * @param obj Object to be removed from @p transit.
23166     *
23167     * @ingroup Transit
23168     * @warning It is not allowed to remove objects after transit begins to go.
23169     */
23170    EAPI void                        elm_transit_object_remove(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
23171
23172    /**
23173     * Get the objects of the transit.
23174     *
23175     * @param transit The transit object.
23176     * @return a Eina_List with the objects from the transit.
23177     *
23178     * @ingroup Transit
23179     */
23180    EAPI const Eina_List            *elm_transit_objects_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
23181
23182    /**
23183     * Enable/disable keeping up the objects states.
23184     * If it is not kept, the objects states will be reset when transition ends.
23185     *
23186     * @note @p transit can not be NULL.
23187     * @note One state includes geometry, color, map data.
23188     *
23189     * @param transit The transit object.
23190     * @param state_keep Keeping or Non Keeping.
23191     *
23192     * @ingroup Transit
23193     */
23194    EAPI void                        elm_transit_objects_final_state_keep_set(Elm_Transit *transit, Eina_Bool state_keep) EINA_ARG_NONNULL(1);
23195
23196    /**
23197     * Get a value whether the objects states will be reset or not.
23198     *
23199     * @note @p transit can not be NULL
23200     *
23201     * @see elm_transit_objects_final_state_keep_set()
23202     *
23203     * @param transit The transit object.
23204     * @return EINA_TRUE means the states of the objects will be reset.
23205     * If @p transit is NULL, EINA_FALSE is returned
23206     *
23207     * @ingroup Transit
23208     */
23209    EAPI Eina_Bool                   elm_transit_objects_final_state_keep_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
23210
23211    /**
23212     * Set the event enabled when transit is operating.
23213     *
23214     * If @p enabled is EINA_TRUE, the objects of the transit will receives
23215     * events from mouse and keyboard during the animation.
23216     * @note When you add an object with elm_transit_object_add(), its state from
23217     * evas_object_pass_events_get(obj) is saved, and it is applied when the
23218     * transit ends, if you change this state with evas_object_pass_events_set()
23219     * after adding the object, this state will change again when @p transit stops
23220     * to run.
23221     *
23222     * @param transit The transit object.
23223     * @param enabled Events are received when enabled is @c EINA_TRUE, and
23224     * ignored otherwise.
23225     *
23226     * @ingroup Transit
23227     */
23228    EAPI void                        elm_transit_event_enabled_set(Elm_Transit *transit, Eina_Bool enabled) EINA_ARG_NONNULL(1);
23229
23230    /**
23231     * Get the value of event enabled status.
23232     *
23233     * @see elm_transit_event_enabled_set()
23234     *
23235     * @param transit The Transit object
23236     * @return EINA_TRUE, when event is enabled. If @p transit is NULL
23237     * EINA_FALSE is returned
23238     *
23239     * @ingroup Transit
23240     */
23241    EAPI Eina_Bool                   elm_transit_event_enabled_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
23242
23243    /**
23244     * Set the user-callback function when the transit is deleted.
23245     *
23246     * @note Using this function twice will overwrite the first function setted.
23247     * @note the @p transit object will be deleted after call @p cb function.
23248     *
23249     * @param transit The transit object.
23250     * @param cb Callback function pointer. This function will be called before
23251     * the deletion of the transit.
23252     * @param data Callback funtion user data. It is the @p op parameter.
23253     *
23254     * @ingroup Transit
23255     */
23256    EAPI void                        elm_transit_del_cb_set(Elm_Transit *transit, Elm_Transit_Del_Cb cb, void *data) EINA_ARG_NONNULL(1);
23257
23258    /**
23259     * Set reverse effect automatically.
23260     *
23261     * If auto reverse is setted, after running the effects with the progress
23262     * parameter from 0 to 1, it will call the effecs again with the progress
23263     * from 1 to 0. The transit will last for a time iqual to (2 * duration * repeat),
23264     * where the duration was setted with the function elm_transit_add and
23265     * the repeat with the function elm_transit_repeat_times_set().
23266     *
23267     * @param transit The transit object.
23268     * @param reverse EINA_TRUE means the auto_reverse is on.
23269     *
23270     * @ingroup Transit
23271     */
23272    EAPI void                        elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse) EINA_ARG_NONNULL(1);
23273
23274    /**
23275     * Get if the auto reverse is on.
23276     *
23277     * @see elm_transit_auto_reverse_set()
23278     *
23279     * @param transit The transit object.
23280     * @return EINA_TRUE means auto reverse is on. If @p transit is NULL
23281     * EINA_FALSE is returned
23282     *
23283     * @ingroup Transit
23284     */
23285    EAPI Eina_Bool                   elm_transit_auto_reverse_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
23286
23287    /**
23288     * Set the transit repeat count. Effect will be repeated by repeat count.
23289     *
23290     * This function sets the number of repetition the transit will run after
23291     * the first one, that is, if @p repeat is 1, the transit will run 2 times.
23292     * If the @p repeat is a negative number, it will repeat infinite times.
23293     *
23294     * @note If this function is called during the transit execution, the transit
23295     * will run @p repeat times, ignoring the times it already performed.
23296     *
23297     * @param transit The transit object
23298     * @param repeat Repeat count
23299     *
23300     * @ingroup Transit
23301     */
23302    EAPI void                        elm_transit_repeat_times_set(Elm_Transit *transit, int repeat) EINA_ARG_NONNULL(1);
23303
23304    /**
23305     * Get the transit repeat count.
23306     *
23307     * @see elm_transit_repeat_times_set()
23308     *
23309     * @param transit The Transit object.
23310     * @return The repeat count. If @p transit is NULL
23311     * 0 is returned
23312     *
23313     * @ingroup Transit
23314     */
23315    EAPI int                         elm_transit_repeat_times_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
23316
23317    /**
23318     * Set the transit animation acceleration type.
23319     *
23320     * This function sets the tween mode of the transit that can be:
23321     * ELM_TRANSIT_TWEEN_MODE_LINEAR - The default mode.
23322     * ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL - Starts in accelerate mode and ends decelerating.
23323     * ELM_TRANSIT_TWEEN_MODE_DECELERATE - The animation will be slowed over time.
23324     * ELM_TRANSIT_TWEEN_MODE_ACCELERATE - The animation will accelerate over time.
23325     *
23326     * @param transit The transit object.
23327     * @param tween_mode The tween type.
23328     *
23329     * @ingroup Transit
23330     */
23331    EAPI void                        elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mode) EINA_ARG_NONNULL(1);
23332
23333    /**
23334     * Get the transit animation acceleration type.
23335     *
23336     * @note @p transit can not be NULL
23337     *
23338     * @param transit The transit object.
23339     * @return The tween type. If @p transit is NULL
23340     * ELM_TRANSIT_TWEEN_MODE_LINEAR is returned.
23341     *
23342     * @ingroup Transit
23343     */
23344    EAPI Elm_Transit_Tween_Mode      elm_transit_tween_mode_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
23345
23346    /**
23347     * Set the transit animation time
23348     *
23349     * @note @p transit can not be NULL
23350     *
23351     * @param transit The transit object.
23352     * @param duration The animation time.
23353     *
23354     * @ingroup Transit
23355     */
23356    EAPI void                        elm_transit_duration_set(Elm_Transit *transit, double duration) EINA_ARG_NONNULL(1);
23357
23358    /**
23359     * Get the transit animation time
23360     *
23361     * @note @p transit can not be NULL
23362     *
23363     * @param transit The transit object.
23364     *
23365     * @return The transit animation time.
23366     *
23367     * @ingroup Transit
23368     */
23369    EAPI double                      elm_transit_duration_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
23370
23371    /**
23372     * Starts the transition.
23373     * Once this API is called, the transit begins to measure the time.
23374     *
23375     * @note @p transit can not be NULL
23376     *
23377     * @param transit The transit object.
23378     *
23379     * @ingroup Transit
23380     */
23381    EAPI void                        elm_transit_go(Elm_Transit *transit) EINA_ARG_NONNULL(1);
23382
23383    /**
23384     * Pause/Resume the transition.
23385     *
23386     * If you call elm_transit_go again, the transit will be started from the
23387     * beginning, and will be unpaused.
23388     *
23389     * @note @p transit can not be NULL
23390     *
23391     * @param transit The transit object.
23392     * @param paused Whether the transition should be paused or not.
23393     *
23394     * @ingroup Transit
23395     */
23396    EAPI void                        elm_transit_paused_set(Elm_Transit *transit, Eina_Bool paused) EINA_ARG_NONNULL(1);
23397
23398    /**
23399     * Get the value of paused status.
23400     *
23401     * @see elm_transit_paused_set()
23402     *
23403     * @note @p transit can not be NULL
23404     *
23405     * @param transit The transit object.
23406     * @return EINA_TRUE means transition is paused. If @p transit is NULL
23407     * EINA_FALSE is returned
23408     *
23409     * @ingroup Transit
23410     */
23411    EAPI Eina_Bool                   elm_transit_paused_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
23412
23413    /**
23414     * Get the time progression of the animation (a double value between 0.0 and 1.0).
23415     *
23416     * The value returned is a fraction (current time / total time). It
23417     * represents the progression position relative to the total.
23418     *
23419     * @note @p transit can not be NULL
23420     *
23421     * @param transit The transit object.
23422     *
23423     * @return The time progression value. If @p transit is NULL
23424     * 0 is returned
23425     *
23426     * @ingroup Transit
23427     */
23428    EAPI double                      elm_transit_progress_value_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
23429
23430    /**
23431     * Makes the chain relationship between two transits.
23432     *
23433     * @note @p transit can not be NULL. Transit would have multiple chain transits.
23434     * @note @p chain_transit can not be NULL. Chain transits could be chained to the only one transit.
23435     *
23436     * @param transit The transit object.
23437     * @param chain_transit The chain transit object. This transit will be operated
23438     *        after transit is done.
23439     *
23440     * This function adds @p chain_transit transition to a chain after the @p
23441     * transit, and will be started as soon as @p transit ends. See @ref
23442     * transit_example_02_explained for a full example.
23443     *
23444     * @ingroup Transit
23445     */
23446    EAPI void                        elm_transit_chain_transit_add(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1, 2);
23447
23448    /**
23449     * Cut off the chain relationship between two transits.
23450     *
23451     * @note @p transit can not be NULL. Transit would have the chain relationship with @p chain transit.
23452     * @note @p chain_transit can not be NULL. Chain transits should be chained to the @p transit.
23453     *
23454     * @param transit The transit object.
23455     * @param chain_transit The chain transit object.
23456     *
23457     * This function remove the @p chain_transit transition from the @p transit.
23458     *
23459     * @ingroup Transit
23460     */
23461    EAPI void                        elm_transit_chain_transit_del(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1,2);
23462
23463    /**
23464     * Get the current chain transit list.
23465     *
23466     * @note @p transit can not be NULL.
23467     *
23468     * @param transit The transit object.
23469     * @return chain transit list.
23470     *
23471     * @ingroup Transit
23472     */
23473    EAPI Eina_List                  *elm_transit_chain_transits_get(const Elm_Transit *transit);
23474
23475    /**
23476     * Add the Resizing Effect to Elm_Transit.
23477     *
23478     * @note This API is one of the facades. It creates resizing effect context
23479     * and add it's required APIs to elm_transit_effect_add.
23480     *
23481     * @see elm_transit_effect_add()
23482     *
23483     * @param transit Transit object.
23484     * @param from_w Object width size when effect begins.
23485     * @param from_h Object height size when effect begins.
23486     * @param to_w Object width size when effect ends.
23487     * @param to_h Object height size when effect ends.
23488     * @return Resizing effect context data.
23489     *
23490     * @ingroup Transit
23491     */
23492    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);
23493
23494    /**
23495     * Add the Translation Effect to Elm_Transit.
23496     *
23497     * @note This API is one of the facades. It creates translation effect context
23498     * and add it's required APIs to elm_transit_effect_add.
23499     *
23500     * @see elm_transit_effect_add()
23501     *
23502     * @param transit Transit object.
23503     * @param from_dx X Position variation when effect begins.
23504     * @param from_dy Y Position variation when effect begins.
23505     * @param to_dx X Position variation when effect ends.
23506     * @param to_dy Y Position variation when effect ends.
23507     * @return Translation effect context data.
23508     *
23509     * @ingroup Transit
23510     * @warning It is highly recommended just create a transit with this effect when
23511     * the window that the objects of the transit belongs has already been created.
23512     * This is because this effect needs the geometry information about the objects,
23513     * and if the window was not created yet, it can get a wrong information.
23514     */
23515    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);
23516
23517    /**
23518     * Add the Zoom Effect to Elm_Transit.
23519     *
23520     * @note This API is one of the facades. It creates zoom effect context
23521     * and add it's required APIs to elm_transit_effect_add.
23522     *
23523     * @see elm_transit_effect_add()
23524     *
23525     * @param transit Transit object.
23526     * @param from_rate Scale rate when effect begins (1 is current rate).
23527     * @param to_rate Scale rate when effect ends.
23528     * @return Zoom effect context data.
23529     *
23530     * @ingroup Transit
23531     * @warning It is highly recommended just create a transit with this effect when
23532     * the window that the objects of the transit belongs has already been created.
23533     * This is because this effect needs the geometry information about the objects,
23534     * and if the window was not created yet, it can get a wrong information.
23535     */
23536    EAPI Elm_Transit_Effect *elm_transit_effect_zoom_add(Elm_Transit *transit, float from_rate, float to_rate);
23537
23538    /**
23539     * Add the Flip Effect to Elm_Transit.
23540     *
23541     * @note This API is one of the facades. It creates flip effect context
23542     * and add it's required APIs to elm_transit_effect_add.
23543     * @note This effect is applied to each pair of objects in the order they are listed
23544     * in the transit list of objects. The first object in the pair will be the
23545     * "front" object and the second will be the "back" object.
23546     *
23547     * @see elm_transit_effect_add()
23548     *
23549     * @param transit Transit object.
23550     * @param axis Flipping Axis(X or Y).
23551     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
23552     * @return Flip effect context data.
23553     *
23554     * @ingroup Transit
23555     * @warning It is highly recommended just create a transit with this effect when
23556     * the window that the objects of the transit belongs has already been created.
23557     * This is because this effect needs the geometry information about the objects,
23558     * and if the window was not created yet, it can get a wrong information.
23559     */
23560    EAPI Elm_Transit_Effect *elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
23561
23562    /**
23563     * Add the Resizable Flip Effect to Elm_Transit.
23564     *
23565     * @note This API is one of the facades. It creates resizable flip effect context
23566     * and add it's required APIs to elm_transit_effect_add.
23567     * @note This effect is applied to each pair of objects in the order they are listed
23568     * in the transit list of objects. The first object in the pair will be the
23569     * "front" object and the second will be the "back" object.
23570     *
23571     * @see elm_transit_effect_add()
23572     *
23573     * @param transit Transit object.
23574     * @param axis Flipping Axis(X or Y).
23575     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
23576     * @return Resizable flip effect context data.
23577     *
23578     * @ingroup Transit
23579     * @warning It is highly recommended just create a transit with this effect when
23580     * the window that the objects of the transit belongs has already been created.
23581     * This is because this effect needs the geometry information about the objects,
23582     * and if the window was not created yet, it can get a wrong information.
23583     */
23584    EAPI Elm_Transit_Effect *elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
23585
23586    /**
23587     * Add the Wipe Effect to Elm_Transit.
23588     *
23589     * @note This API is one of the facades. It creates wipe effect context
23590     * and add it's required APIs to elm_transit_effect_add.
23591     *
23592     * @see elm_transit_effect_add()
23593     *
23594     * @param transit Transit object.
23595     * @param type Wipe type. Hide or show.
23596     * @param dir Wipe Direction.
23597     * @return Wipe effect context data.
23598     *
23599     * @ingroup Transit
23600     * @warning It is highly recommended just create a transit with this effect when
23601     * the window that the objects of the transit belongs has already been created.
23602     * This is because this effect needs the geometry information about the objects,
23603     * and if the window was not created yet, it can get a wrong information.
23604     */
23605    EAPI Elm_Transit_Effect *elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Transit_Effect_Wipe_Type type, Elm_Transit_Effect_Wipe_Dir dir);
23606
23607    /**
23608     * Add the Color Effect to Elm_Transit.
23609     *
23610     * @note This API is one of the facades. It creates color effect context
23611     * and add it's required APIs to elm_transit_effect_add.
23612     *
23613     * @see elm_transit_effect_add()
23614     *
23615     * @param transit        Transit object.
23616     * @param  from_r        RGB R when effect begins.
23617     * @param  from_g        RGB G when effect begins.
23618     * @param  from_b        RGB B when effect begins.
23619     * @param  from_a        RGB A when effect begins.
23620     * @param  to_r          RGB R when effect ends.
23621     * @param  to_g          RGB G when effect ends.
23622     * @param  to_b          RGB B when effect ends.
23623     * @param  to_a          RGB A when effect ends.
23624     * @return               Color effect context data.
23625     *
23626     * @ingroup Transit
23627     */
23628    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);
23629
23630    /**
23631     * Add the Fade Effect to Elm_Transit.
23632     *
23633     * @note This API is one of the facades. It creates fade effect context
23634     * and add it's required APIs to elm_transit_effect_add.
23635     * @note This effect is applied to each pair of objects in the order they are listed
23636     * in the transit list of objects. The first object in the pair will be the
23637     * "before" object and the second will be the "after" object.
23638     *
23639     * @see elm_transit_effect_add()
23640     *
23641     * @param transit Transit object.
23642     * @return Fade effect context data.
23643     *
23644     * @ingroup Transit
23645     * @warning It is highly recommended just create a transit with this effect when
23646     * the window that the objects of the transit belongs has already been created.
23647     * This is because this effect needs the color information about the objects,
23648     * and if the window was not created yet, it can get a wrong information.
23649     */
23650    EAPI Elm_Transit_Effect *elm_transit_effect_fade_add(Elm_Transit *transit);
23651
23652    /**
23653     * Add the Blend Effect to Elm_Transit.
23654     *
23655     * @note This API is one of the facades. It creates blend effect context
23656     * and add it's required APIs to elm_transit_effect_add.
23657     * @note This effect is applied to each pair of objects in the order they are listed
23658     * in the transit list of objects. The first object in the pair will be the
23659     * "before" object and the second will be the "after" object.
23660     *
23661     * @see elm_transit_effect_add()
23662     *
23663     * @param transit Transit object.
23664     * @return Blend effect context data.
23665     *
23666     * @ingroup Transit
23667     * @warning It is highly recommended just create a transit with this effect when
23668     * the window that the objects of the transit belongs has already been created.
23669     * This is because this effect needs the color information about the objects,
23670     * and if the window was not created yet, it can get a wrong information.
23671     */
23672    EAPI Elm_Transit_Effect *elm_transit_effect_blend_add(Elm_Transit *transit);
23673
23674    /**
23675     * Add the Rotation Effect to Elm_Transit.
23676     *
23677     * @note This API is one of the facades. It creates rotation effect context
23678     * and add it's required APIs to elm_transit_effect_add.
23679     *
23680     * @see elm_transit_effect_add()
23681     *
23682     * @param transit Transit object.
23683     * @param from_degree Degree when effect begins.
23684     * @param to_degree Degree when effect is ends.
23685     * @return Rotation effect context data.
23686     *
23687     * @ingroup Transit
23688     * @warning It is highly recommended just create a transit with this effect when
23689     * the window that the objects of the transit belongs has already been created.
23690     * This is because this effect needs the geometry information about the objects,
23691     * and if the window was not created yet, it can get a wrong information.
23692     */
23693    EAPI Elm_Transit_Effect *elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float to_degree);
23694
23695    /**
23696     * Add the ImageAnimation Effect to Elm_Transit.
23697     *
23698     * @note This API is one of the facades. It creates image animation effect context
23699     * and add it's required APIs to elm_transit_effect_add.
23700     * The @p images parameter is a list images paths. This list and
23701     * its contents will be deleted at the end of the effect by
23702     * elm_transit_effect_image_animation_context_free() function.
23703     *
23704     * Example:
23705     * @code
23706     * char buf[PATH_MAX];
23707     * Eina_List *images = NULL;
23708     * Elm_Transit *transi = elm_transit_add();
23709     *
23710     * snprintf(buf, sizeof(buf), "%s/images/icon_11.png", PACKAGE_DATA_DIR);
23711     * images = eina_list_append(images, eina_stringshare_add(buf));
23712     *
23713     * snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
23714     * images = eina_list_append(images, eina_stringshare_add(buf));
23715     * elm_transit_effect_image_animation_add(transi, images);
23716     *
23717     * @endcode
23718     *
23719     * @see elm_transit_effect_add()
23720     *
23721     * @param transit Transit object.
23722     * @param images Eina_List of images file paths. This list and
23723     * its contents will be deleted at the end of the effect by
23724     * elm_transit_effect_image_animation_context_free() function.
23725     * @return Image Animation effect context data.
23726     *
23727     * @ingroup Transit
23728     */
23729    EAPI Elm_Transit_Effect *elm_transit_effect_image_animation_add(Elm_Transit *transit, Eina_List *images);
23730    /**
23731     * @}
23732     */
23733
23734   typedef struct _Elm_Store                      Elm_Store;
23735   typedef struct _Elm_Store_Filesystem           Elm_Store_Filesystem;
23736   typedef struct _Elm_Store_Item                 Elm_Store_Item;
23737   typedef struct _Elm_Store_Item_Filesystem      Elm_Store_Item_Filesystem;
23738   typedef struct _Elm_Store_Item_Info            Elm_Store_Item_Info;
23739   typedef struct _Elm_Store_Item_Info_Filesystem Elm_Store_Item_Info_Filesystem;
23740   typedef struct _Elm_Store_Item_Mapping         Elm_Store_Item_Mapping;
23741   typedef struct _Elm_Store_Item_Mapping_Empty   Elm_Store_Item_Mapping_Empty;
23742   typedef struct _Elm_Store_Item_Mapping_Icon    Elm_Store_Item_Mapping_Icon;
23743   typedef struct _Elm_Store_Item_Mapping_Photo   Elm_Store_Item_Mapping_Photo;
23744   typedef struct _Elm_Store_Item_Mapping_Custom  Elm_Store_Item_Mapping_Custom;
23745
23746   typedef Eina_Bool (*Elm_Store_Item_List_Cb) (void *data, Elm_Store_Item_Info *info);
23747   typedef void      (*Elm_Store_Item_Fetch_Cb) (void *data, Elm_Store_Item *sti);
23748   typedef void      (*Elm_Store_Item_Unfetch_Cb) (void *data, Elm_Store_Item *sti);
23749   typedef void     *(*Elm_Store_Item_Mapping_Cb) (void *data, Elm_Store_Item *sti, const char *part);
23750
23751   typedef enum
23752     {
23753        ELM_STORE_ITEM_MAPPING_NONE = 0,
23754        ELM_STORE_ITEM_MAPPING_LABEL, // const char * -> label
23755        ELM_STORE_ITEM_MAPPING_STATE, // Eina_Bool -> state
23756        ELM_STORE_ITEM_MAPPING_ICON, // char * -> icon path
23757        ELM_STORE_ITEM_MAPPING_PHOTO, // char * -> photo path
23758        ELM_STORE_ITEM_MAPPING_CUSTOM, // item->custom(it->data, it, part) -> void * (-> any)
23759        // can add more here as needed by common apps
23760        ELM_STORE_ITEM_MAPPING_LAST
23761     } Elm_Store_Item_Mapping_Type;
23762
23763   struct _Elm_Store_Item_Mapping_Icon
23764     {
23765        // FIXME: allow edje file icons
23766        int                   w, h;
23767        Elm_Icon_Lookup_Order lookup_order;
23768        Eina_Bool             standard_name : 1;
23769        Eina_Bool             no_scale : 1;
23770        Eina_Bool             smooth : 1;
23771        Eina_Bool             scale_up : 1;
23772        Eina_Bool             scale_down : 1;
23773     };
23774
23775   struct _Elm_Store_Item_Mapping_Empty
23776     {
23777        Eina_Bool             dummy;
23778     };
23779
23780   struct _Elm_Store_Item_Mapping_Photo
23781     {
23782        int                   size;
23783     };
23784
23785   struct _Elm_Store_Item_Mapping_Custom
23786     {
23787        Elm_Store_Item_Mapping_Cb func;
23788     };
23789
23790   struct _Elm_Store_Item_Mapping
23791     {
23792        Elm_Store_Item_Mapping_Type     type;
23793        const char                     *part;
23794        int                             offset;
23795        union
23796          {
23797             Elm_Store_Item_Mapping_Empty  empty;
23798             Elm_Store_Item_Mapping_Icon   icon;
23799             Elm_Store_Item_Mapping_Photo  photo;
23800             Elm_Store_Item_Mapping_Custom custom;
23801             // add more types here
23802          } details;
23803     };
23804
23805   struct _Elm_Store_Item_Info
23806     {
23807       Elm_Genlist_Item_Class       *item_class;
23808       const Elm_Store_Item_Mapping *mapping;
23809       void                         *data;
23810       char                         *sort_id;
23811     };
23812
23813   struct _Elm_Store_Item_Info_Filesystem
23814     {
23815       Elm_Store_Item_Info  base;
23816       char                *path;
23817     };
23818
23819 #define ELM_STORE_ITEM_MAPPING_END { ELM_STORE_ITEM_MAPPING_NONE, NULL, 0, { .empty = { EINA_TRUE } } }
23820 #define ELM_STORE_ITEM_MAPPING_OFFSET(st, it) offsetof(st, it)
23821
23822   EAPI void                    elm_store_free(Elm_Store *st);
23823
23824   EAPI Elm_Store              *elm_store_filesystem_new(void);
23825   EAPI void                    elm_store_filesystem_directory_set(Elm_Store *st, const char *dir) EINA_ARG_NONNULL(1);
23826   EAPI const char             *elm_store_filesystem_directory_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
23827   EAPI const char             *elm_store_item_filesystem_path_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
23828
23829   EAPI void                    elm_store_target_genlist_set(Elm_Store *st, Evas_Object *obj) EINA_ARG_NONNULL(1);
23830
23831   EAPI void                    elm_store_cache_set(Elm_Store *st, int max) EINA_ARG_NONNULL(1);
23832   EAPI int                     elm_store_cache_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
23833   EAPI void                    elm_store_list_func_set(Elm_Store *st, Elm_Store_Item_List_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
23834   EAPI void                    elm_store_fetch_func_set(Elm_Store *st, Elm_Store_Item_Fetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
23835   EAPI void                    elm_store_fetch_thread_set(Elm_Store *st, Eina_Bool use_thread) EINA_ARG_NONNULL(1);
23836   EAPI Eina_Bool               elm_store_fetch_thread_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
23837
23838   EAPI void                    elm_store_unfetch_func_set(Elm_Store *st, Elm_Store_Item_Unfetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
23839   EAPI void                    elm_store_sorted_set(Elm_Store *st, Eina_Bool sorted) EINA_ARG_NONNULL(1);
23840   EAPI Eina_Bool               elm_store_sorted_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
23841   EAPI void                    elm_store_item_data_set(Elm_Store_Item *sti, void *data) EINA_ARG_NONNULL(1);
23842   EAPI void                   *elm_store_item_data_get(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
23843   EAPI const Elm_Store        *elm_store_item_store_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
23844   EAPI const Elm_Genlist_Item *elm_store_item_genlist_item_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
23845
23846    /**
23847     * @defgroup SegmentControl SegmentControl
23848     * @ingroup Elementary
23849     *
23850     * @image html img/widget/segment_control/preview-00.png
23851     * @image latex img/widget/segment_control/preview-00.eps width=\textwidth
23852     *
23853     * @image html img/segment_control.png
23854     * @image latex img/segment_control.eps width=\textwidth
23855     *
23856     * Segment control widget is a horizontal control made of multiple segment
23857     * items, each segment item functioning similar to discrete two state button.
23858     * A segment control groups the items together and provides compact
23859     * single button with multiple equal size segments.
23860     *
23861     * Segment item size is determined by base widget
23862     * size and the number of items added.
23863     * Only one segment item can be at selected state. A segment item can display
23864     * combination of Text and any Evas_Object like Images or other widget.
23865     *
23866     * Smart callbacks one can listen to:
23867     * - "changed" - When the user clicks on a segment item which is not
23868     *   previously selected and get selected. The event_info parameter is the
23869     *   segment item index.
23870     *
23871     * Available styles for it:
23872     * - @c "default"
23873     *
23874     * Here is an example on its usage:
23875     * @li @ref segment_control_example
23876     */
23877
23878    /**
23879     * @addtogroup SegmentControl
23880     * @{
23881     */
23882
23883    typedef struct _Elm_Segment_Item Elm_Segment_Item; /**< Item handle for a segment control widget. */
23884
23885    /**
23886     * Add a new segment control widget to the given parent Elementary
23887     * (container) object.
23888     *
23889     * @param parent The parent object.
23890     * @return a new segment control widget handle or @c NULL, on errors.
23891     *
23892     * This function inserts a new segment control widget on the canvas.
23893     *
23894     * @ingroup SegmentControl
23895     */
23896    EAPI Evas_Object      *elm_segment_control_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23897
23898    /**
23899     * Append a new item to the segment control object.
23900     *
23901     * @param obj The segment control object.
23902     * @param icon The icon object to use for the left side of the item. An
23903     * icon can be any Evas object, but usually it is an icon created
23904     * with elm_icon_add().
23905     * @param label The label of the item.
23906     *        Note that, NULL is different from empty string "".
23907     * @return The created item or @c NULL upon failure.
23908     *
23909     * A new item will be created and appended to the segment control, i.e., will
23910     * be set as @b last item.
23911     *
23912     * If it should be inserted at another position,
23913     * elm_segment_control_item_insert_at() should be used instead.
23914     *
23915     * Items created with this function can be deleted with function
23916     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
23917     *
23918     * @note @p label set to @c NULL is different from empty string "".
23919     * If an item
23920     * only has icon, it will be displayed bigger and centered. If it has
23921     * icon and label, even that an empty string, icon will be smaller and
23922     * positioned at left.
23923     *
23924     * Simple example:
23925     * @code
23926     * sc = elm_segment_control_add(win);
23927     * ic = elm_icon_add(win);
23928     * elm_icon_file_set(ic, "path/to/image", NULL);
23929     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
23930     * elm_segment_control_item_add(sc, ic, "label");
23931     * evas_object_show(sc);
23932     * @endcode
23933     *
23934     * @see elm_segment_control_item_insert_at()
23935     * @see elm_segment_control_item_del()
23936     *
23937     * @ingroup SegmentControl
23938     */
23939    EAPI Elm_Segment_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label) EINA_ARG_NONNULL(1);
23940
23941    /**
23942     * Insert a new item to the segment control object at specified position.
23943     *
23944     * @param obj The segment control object.
23945     * @param icon The icon object to use for the left side of the item. An
23946     * icon can be any Evas object, but usually it is an icon created
23947     * with elm_icon_add().
23948     * @param label The label of the item.
23949     * @param index Item position. Value should be between 0 and items count.
23950     * @return The created item or @c NULL upon failure.
23951
23952     * Index values must be between @c 0, when item will be prepended to
23953     * segment control, and items count, that can be get with
23954     * elm_segment_control_item_count_get(), case when item will be appended
23955     * to segment control, just like elm_segment_control_item_add().
23956     *
23957     * Items created with this function can be deleted with function
23958     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
23959     *
23960     * @note @p label set to @c NULL is different from empty string "".
23961     * If an item
23962     * only has icon, it will be displayed bigger and centered. If it has
23963     * icon and label, even that an empty string, icon will be smaller and
23964     * positioned at left.
23965     *
23966     * @see elm_segment_control_item_add()
23967     * @see elm_segment_control_count_get()
23968     * @see elm_segment_control_item_del()
23969     *
23970     * @ingroup SegmentControl
23971     */
23972    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);
23973
23974    /**
23975     * Remove a segment control item from its parent, deleting it.
23976     *
23977     * @param it The item to be removed.
23978     *
23979     * Items can be added with elm_segment_control_item_add() or
23980     * elm_segment_control_item_insert_at().
23981     *
23982     * @ingroup SegmentControl
23983     */
23984    EAPI void              elm_segment_control_item_del(Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
23985
23986    /**
23987     * Remove a segment control item at given index from its parent,
23988     * deleting it.
23989     *
23990     * @param obj The segment control object.
23991     * @param index The position of the segment control item to be deleted.
23992     *
23993     * Items can be added with elm_segment_control_item_add() or
23994     * elm_segment_control_item_insert_at().
23995     *
23996     * @ingroup SegmentControl
23997     */
23998    EAPI void              elm_segment_control_item_del_at(Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
23999
24000    /**
24001     * Get the Segment items count from segment control.
24002     *
24003     * @param obj The segment control object.
24004     * @return Segment items count.
24005     *
24006     * It will just return the number of items added to segment control @p obj.
24007     *
24008     * @ingroup SegmentControl
24009     */
24010    EAPI int               elm_segment_control_item_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24011
24012    /**
24013     * Get the item placed at specified index.
24014     *
24015     * @param obj The segment control object.
24016     * @param index The index of the segment item.
24017     * @return The segment control item or @c NULL on failure.
24018     *
24019     * Index is the position of an item in segment control widget. Its
24020     * range is from @c 0 to <tt> count - 1 </tt>.
24021     * Count is the number of items, that can be get with
24022     * elm_segment_control_item_count_get().
24023     *
24024     * @ingroup SegmentControl
24025     */
24026    EAPI Elm_Segment_Item *elm_segment_control_item_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
24027
24028    /**
24029     * Get the label of item.
24030     *
24031     * @param obj The segment control object.
24032     * @param index The index of the segment item.
24033     * @return The label of the item at @p index.
24034     *
24035     * The return value is a pointer to the label associated to the item when
24036     * it was created, with function elm_segment_control_item_add(), or later
24037     * with function elm_segment_control_item_label_set. If no label
24038     * was passed as argument, it will return @c NULL.
24039     *
24040     * @see elm_segment_control_item_label_set() for more details.
24041     * @see elm_segment_control_item_add()
24042     *
24043     * @ingroup SegmentControl
24044     */
24045    EAPI const char       *elm_segment_control_item_label_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
24046
24047    /**
24048     * Set the label of item.
24049     *
24050     * @param it The item of segment control.
24051     * @param text The label of item.
24052     *
24053     * The label to be displayed by the item.
24054     * Label will be at right of the icon (if set).
24055     *
24056     * If a label was passed as argument on item creation, with function
24057     * elm_control_segment_item_add(), it will be already
24058     * displayed by the item.
24059     *
24060     * @see elm_segment_control_item_label_get()
24061     * @see elm_segment_control_item_add()
24062     *
24063     * @ingroup SegmentControl
24064     */
24065    EAPI void              elm_segment_control_item_label_set(Elm_Segment_Item* it, const char* label) EINA_ARG_NONNULL(1);
24066
24067    /**
24068     * Get the icon associated to the item.
24069     *
24070     * @param obj The segment control object.
24071     * @param index The index of the segment item.
24072     * @return The left side icon associated to the item at @p index.
24073     *
24074     * The return value is a pointer to the icon associated to the item when
24075     * it was created, with function elm_segment_control_item_add(), or later
24076     * with function elm_segment_control_item_icon_set(). If no icon
24077     * was passed as argument, it will return @c NULL.
24078     *
24079     * @see elm_segment_control_item_add()
24080     * @see elm_segment_control_item_icon_set()
24081     *
24082     * @ingroup SegmentControl
24083     */
24084    EAPI Evas_Object      *elm_segment_control_item_icon_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
24085
24086    /**
24087     * Set the icon associated to the item.
24088     *
24089     * @param it The segment control item.
24090     * @param icon The icon object to associate with @p it.
24091     *
24092     * The icon object to use at left side of the item. An
24093     * icon can be any Evas object, but usually it is an icon created
24094     * with elm_icon_add().
24095     *
24096     * Once the icon object is set, a previously set one will be deleted.
24097     * @warning Setting the same icon for two items will cause the icon to
24098     * dissapear from the first item.
24099     *
24100     * If an icon was passed as argument on item creation, with function
24101     * elm_segment_control_item_add(), it will be already
24102     * associated to the item.
24103     *
24104     * @see elm_segment_control_item_add()
24105     * @see elm_segment_control_item_icon_get()
24106     *
24107     * @ingroup SegmentControl
24108     */
24109    EAPI void              elm_segment_control_item_icon_set(Elm_Segment_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
24110
24111    /**
24112     * Get the index of an item.
24113     *
24114     * @param it The segment control item.
24115     * @return The position of item in segment control widget.
24116     *
24117     * Index is the position of an item in segment control widget. Its
24118     * range is from @c 0 to <tt> count - 1 </tt>.
24119     * Count is the number of items, that can be get with
24120     * elm_segment_control_item_count_get().
24121     *
24122     * @ingroup SegmentControl
24123     */
24124    EAPI int               elm_segment_control_item_index_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
24125
24126    /**
24127     * Get the base object of the item.
24128     *
24129     * @param it The segment control item.
24130     * @return The base object associated with @p it.
24131     *
24132     * Base object is the @c Evas_Object that represents that item.
24133     *
24134     * @ingroup SegmentControl
24135     */
24136    EAPI Evas_Object      *elm_segment_control_item_object_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
24137
24138    /**
24139     * Get the selected item.
24140     *
24141     * @param obj The segment control object.
24142     * @return The selected item or @c NULL if none of segment items is
24143     * selected.
24144     *
24145     * The selected item can be unselected with function
24146     * elm_segment_control_item_selected_set().
24147     *
24148     * The selected item always will be highlighted on segment control.
24149     *
24150     * @ingroup SegmentControl
24151     */
24152    EAPI Elm_Segment_Item *elm_segment_control_item_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24153
24154    /**
24155     * Set the selected state of an item.
24156     *
24157     * @param it The segment control item
24158     * @param select The selected state
24159     *
24160     * This sets the selected state of the given item @p it.
24161     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
24162     *
24163     * If a new item is selected the previosly selected will be unselected.
24164     * Previoulsy selected item can be get with function
24165     * elm_segment_control_item_selected_get().
24166     *
24167     * The selected item always will be highlighted on segment control.
24168     *
24169     * @see elm_segment_control_item_selected_get()
24170     *
24171     * @ingroup SegmentControl
24172     */
24173    EAPI void              elm_segment_control_item_selected_set(Elm_Segment_Item *it, Eina_Bool select) EINA_ARG_NONNULL(1);
24174
24175    /**
24176     * @}
24177     */
24178
24179
24180    EAPI Evas_Object *elm_grid_add(Evas_Object *parent);
24181    EAPI void         elm_grid_size_set(Evas_Object *obj, int w, int h);
24182    EAPI void         elm_grid_size_get(Evas_Object *obj, int *w, int *h);
24183    EAPI void         elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h);
24184    EAPI void         elm_grid_unpack(Evas_Object *obj, Evas_Object *subobj);
24185    EAPI void         elm_grid_clear(Evas_Object *obj, Eina_Bool clear);
24186    EAPI void         elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h);
24187    EAPI void         elm_grid_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h);
24188
24189
24190    EAPI Evas_Object *elm_factory_add(Evas_Object *parent);
24191    EAPI void         elm_factory_content_set(Evas_Object *obj, Evas_Object *content);
24192    EAPI Evas_Object *elm_factory_content_get(const Evas_Object *obj);
24193    
24194    EAPI Evas_Object *elm_video_add(Evas_Object *parent);
24195    EAPI void elm_video_file_set(Evas_Object *video, const char *filename);
24196    EAPI void elm_video_uri_set(Evas_Object *video, const char *uri);
24197    EAPI Evas_Object *elm_video_emotion_get(Evas_Object *video);
24198    EAPI void elm_video_play(Evas_Object *video);
24199    EAPI void elm_video_pause(Evas_Object *video);
24200    EAPI void elm_video_stop(Evas_Object *video);
24201    EAPI Eina_Bool elm_video_is_playing(Evas_Object *video);
24202    EAPI Eina_Bool elm_video_is_seekable(Evas_Object *video);
24203    EAPI Eina_Bool elm_video_audio_mute_get(Evas_Object *video);
24204    EAPI void elm_video_audio_mute_set(Evas_Object *video, Eina_Bool mute);
24205    EAPI double elm_video_audio_level_get(Evas_Object *video);
24206    EAPI void elm_video_audio_level_set(Evas_Object *video, double volume);
24207    EAPI double elm_video_play_position_get(Evas_Object *video);
24208    EAPI void elm_video_play_position_set(Evas_Object *video, double position);
24209    EAPI double elm_video_play_length_get(Evas_Object *video);
24210    EAPI void elm_video_remember_position_set(Evas_Object *video, Eina_Bool remember);
24211    EAPI Eina_Bool elm_video_remember_position_get(Evas_Object *video);
24212    EAPI const char *elm_video_title_get(Evas_Object *video);
24213
24214    EAPI Evas_Object *elm_player_add(Evas_Object *parent);
24215    EAPI void elm_player_video_set(Evas_Object *player, Evas_Object *video);
24216
24217   /* naviframe */
24218    EAPI Evas_Object        *elm_naviframe_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24219    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);
24220    EAPI Evas_Object        *elm_naviframe_item_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
24221    EAPI void                elm_naviframe_content_preserve_on_pop_set(Evas_Object *obj, Eina_Bool preserve) EINA_ARG_NONNULL(1);
24222    EAPI Eina_Bool           elm_naviframe_content_preserve_on_pop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24223    EAPI void                elm_naviframe_item_title_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
24224    EAPI const char         *elm_naviframe_item_title_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
24225    EAPI void                elm_naviframe_item_subtitle_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
24226    EAPI const char         *elm_naviframe_item_subtitle_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
24227    EAPI Elm_Object_Item    *elm_naviframe_top_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24228    EAPI Elm_Object_Item    *elm_naviframe_bottom_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24229    EAPI void                elm_naviframe_item_style_set(Elm_Object_Item *it, const char *item_style) EINA_ARG_NONNULL(1);
24230    EAPI const char         *elm_naviframe_item_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
24231    EAPI void                elm_naviframe_item_title_visible_set(Elm_Object_Item *it, Eina_Bool visible) EINA_ARG_NONNULL(1);
24232    EAPI Eina_Bool           elm_naviframe_item_title_visible_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
24233
24234 #ifdef __cplusplus
24235 }
24236 #endif
24237
24238 #endif