[elementary] All docs to elm's header, as Raster wishes.
[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 0.7.0
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 @li @ref Start - Go here to quickly get started with writing Apps
26
27 @section organization Organization
28
29 One can divide Elemementary into three main groups:
30 @li @ref infralist - These are modules that deal with Elementary as a whole.
31 @li @ref widgetslist - These are the widgets you'll compose your UI out of.
32 @li @ref containerslist - These are the containers in which the widgets will be
33                           layouted.
34
35 @section license License
36
37 LGPL v2 (see COPYING in the base of Elementary's source). This applies to
38 all files in the source tree.
39
40 @section ack Acknowledgements
41 There is a lot that goes into making a widget set, and they don't happen out of
42 nothing. It's like trying to make everyone everywhere happy, regardless of age,
43 gender, race or nationality - and that is really tough. So thanks to people and
44 organisations behind this, as listed in the @ref authors page.
45 */
46
47
48 /**
49  * @defgroup Start Getting Started
50  *
51  * To write an Elementary app, you can get started with the following:
52  *
53 @code
54 #include <Elementary.h>
55 EAPI int
56 elm_main(int argc, char **argv)
57 {
58    // create window(s) here and do any application init
59    elm_run(); // run main loop
60    elm_shutdown(); // after mainloop finishes running, shutdown
61    return 0; // exit 0 for exit code
62 }
63 ELM_MAIN()
64 @endcode
65  *
66  * To use autotools (which helps in many ways in the long run, like being able
67  * to immediately create releases of your software directly from your tree
68  * and ensure everything needed to buiuld it is there) you will need a
69  * configure.ac, Makefile.am and autogen.sh file.
70  *
71  * configure.ac:
72  *
73 @verbatim
74 AC_INIT(myapp, 0.0.0, myname@mydomain.com)
75 AC_PREREQ(2.52)
76 AC_CONFIG_SRCDIR(configure.ac)
77 AM_CONFIG_HEADER(config.h)
78 AC_PROG_CC
79 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
80 PKG_CHECK_MODULES([ELEMENTARY], elementary)
81 AC_OUTPUT(Makefile)
82 @endverbatim
83  *
84  * Makefile.am:
85  *
86 @verbatim
87 AUTOMAKE_OPTIONS = 1.4 foreign
88 MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.h.in configure depcomp install-sh missing
89
90 INCLUDES = -I$(top_srcdir)
91
92 bin_PROGRAMS = myapp
93
94 myapp_SOURCES = main.c
95 myapp_LDADD = @ELEMENTARY_LIBS@
96 myapp_CFLAGS = @ELEMENTARY_CFLAGS@
97 @endverbatim
98  *
99  * autogen.sh:
100  *
101 @verbatim
102 #!/bin/sh
103 echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS || exit 1
104 echo "Running autoheader..." ; autoheader || exit 1
105 echo "Running autoconf..." ; autoconf || exit 1
106 echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
107 ./configure "$@"
108 @endverbatim
109  *
110  * To generate all the things needed to bootstrap just run:
111  *
112 @verbatim
113 ./autogen.sh
114 @endverbatim
115  *
116  * This will generate Makefile.in's, the confgure script and everything else.
117  * After this it works like all normal autotools projects:
118 @verbatim
119 ./configure
120 make
121 sudo make install
122 @endverbatim
123  *
124  * Note sudo was assumed to get root permissions, as this would install in
125  * /usr/local which is system-owned. Use any way you like to gain root, or
126  * specify a different prefix with configure:
127  *
128 @verbatim
129 ./confiugre --prefix=$HOME/mysoftware
130 @endverbatim
131  *
132  * Also remember that autotools buys you some useful commands like:
133 @verbatim
134 make uninstall
135 @endverbatim
136  *
137  * This uninstalls the software after it was installed with "make install".
138  * It is very useful to clear up what you built if you wish to clean the
139  * system.
140  *
141 @verbatim
142 make distcheck
143 @endverbatim
144  *
145  * This firstly checks if your build tree is "clean" and ready for
146  * distribution. It also builds a tarball (myapp-0.0.0.tar.gz) that is
147  * ready to upload and distribute to the world, that contains the generated
148  * Makefile.in's and configure script. The users do not need to run
149  * autogen.sh - just configure and on. They don't need autotools installed.
150  * This tarball also builds cleanly, has all the sources it needs to build
151  * included (that is sources for your application, not libraries it depends
152  * on like Elementary). It builds cleanly in a buildroot and does not
153  * contain any files that are temporarily generated like binaries and other
154  * build-generated files, so the tarball is clean, and no need to worry
155  * about cleaning up your tree before packaging.
156  *
157 @verbatim
158 make clean
159 @endverbatim
160  *
161  * This cleans up all build files (binaries, objects etc.) from the tree.
162  *
163 @verbatim
164 make distclean
165 @endverbatim
166  *
167  * This cleans out all files from the build and from configure's output too.
168  *
169 @verbatim
170 make maintainer-clean
171 @endverbatim
172  *
173  * This deletes all the files autogen.sh will produce so the tree is clean
174  * to be put into a revision-control system (like CVS, SVN or GIT for example).
175  *
176  * There is a more advanced way of making use of the quicklaunch infrastructure
177  * in Elementary (which will not be covered here due to its more advanced
178  * nature).
179  * 
180  * Now let's actually create an interactive "Hello World" gui that you can
181  * click the ok button to exit. It's more code because this now does something
182  * much more significant, but it's still very simple:
183  *
184 @code
185 #include <Elementary.h>
186
187 static void
188 on_done(void *data, Evas_Object *obj, void *event_info)
189 {
190    // quit the mainloop (elm_run function will return)
191    elm_exit();
192 }
193
194 EAPI int
195 elm_main(int argc, char **argv)
196 {
197    Evas_Object *win, *bg, *box, *lab, *btn;
198    
199    // new window - do the usual and give it a name, title and delete handler
200    win = elm_win_add(NULL, "hello", ELM_WIN_BASIC);
201    elm_win_title_set(win, "Hello");
202    // when the user clicks "close" on a window there is a request to delete
203    evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
204    
205    // add a standard bg
206    bg = elm_bg_add(win);
207    // add object as a resize object for the window (controls window minimum
208    // size as well as gets resized if window is resized)
209    elm_win_resize_object_add(win, bg);
210    evas_object_show(bg);
211    
212    // add a box object - default is vertical. a box holds children in a row,
213    // either horizontally or vertically. nothing more.
214    box = elm_box_add(win);
215    // make the box hotizontal
216    elm_box_horizontal_set(box, EINA_TRUE);
217    // add object as a resize object for the window (controls window minimum
218    // size as well as gets resized if window is resized)
219    elm_win_resize_object_add(win, box);
220    evas_object_show(box);
221    
222    // add a label widget, set the text and put it in the pad frame
223    lab = elm_label_add(win);
224    // set default text of the label
225    elm_object_text_set(lab, "Hello out there world!");
226    // pack the label at the end of the box
227    elm_box_pack_end(box, lab);
228    evas_object_show(lab);
229    
230    // add an ok button
231    btn = elm_button_add(win);
232    // set default text of button to "OK"
233    elm_object_text_set(btn, "OK");
234    // pack the button at the end of the box
235    elm_box_pack_end(box, btn);
236    evas_object_show(btn);
237    // call on_done when button is clicked
238    evas_object_smart_callback_add(btn, "clicked", on_done, NULL);
239    
240    // now we are done, show the window
241    evas_object_show(win);
242    
243    // run the mainloop and process events and callbacks
244    elm_run();
245    return 0;
246 }
247 ELM_MAIN()
248 @endcode
249    * 
250    */
251
252 /**
253 @page authors Authors
254 @author Carsten Haitzler <raster@@rasterman.com>
255 @author Gustavo Sverzut Barbieri <barbieri@@profusion.mobi>
256 @author Cedric Bail <cedric.bail@@free.fr>
257 @author Vincent Torri <vtorri@@univ-evry.fr>
258 @author Daniel Kolesa <quaker66@@gmail.com>
259 @author Jaime Thomas <avi.thomas@@gmail.com>
260 @author Swisscom - http://www.swisscom.ch/
261 @author Christopher Michael <devilhorns@@comcast.net>
262 @author Marco Trevisan (Treviño) <mail@@3v1n0.net>
263 @author Michael Bouchaud <michael.bouchaud@@gmail.com>
264 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
265 @author Brian Wang <brian.wang.0721@@gmail.com>
266 @author Mike Blumenkrantz (zmike) <mike@@zentific.com>
267 @author Samsung Electronics <tbd>
268 @author Samsung SAIT <tbd>
269 @author Brett Nash <nash@@nash.id.au>
270 @author Bruno Dilly <bdilly@@profusion.mobi>
271 @author Rafael Fonseca <rfonseca@@profusion.mobi>
272 @author Chuneon Park <hermet@@hermet.pe.kr>
273 @author Woohyun Jung <wh0705.jung@@samsung.com>
274 @author Jaehwan Kim <jae.hwan.kim@@samsung.com>
275 @author Wonguk Jeong <wonguk.jeong@@samsung.com>
276 @author Leandro A. F. Pereira <leandro@@profusion.mobi>
277 @author Helen Fornazier <helen.fornazier@@profusion.mobi>
278 @author Gustavo Lima Chaves <glima@@profusion.mobi>
279 @author Fabiano Fidêncio <fidencio@@profusion.mobi>
280 @author Tiago Falcão <tiago@@profusion.mobi>
281 @author Otavio Pontes <otavio@@profusion.mobi>
282 @author Viktor Kojouharov <vkojouharov@@gmail.com>
283 @author Daniel Juyung Seo (SeoZ) <juyung.seo@@samsung.com> <seojuyung2@@gmail.com>
284 @author Sangho Park <sangho.g.park@@samsung.com> <gouache95@@gmail.com>
285 @author Rajeev Ranjan (Rajeev) <rajeev.r@@samsung.com> <rajeev.jnnce@@gmail.com>
286 @author Seunggyun Kim <sgyun.kim@@samsung.com> <tmdrbs@@gmail.com>
287 @author Sohyun Kim <anna1014.kim@@samsung.com> <sohyun.anna@@gmail.com>
288 @author Jihoon Kim <jihoon48.kim@@samsung.com>
289 @author Jeonghyun Yun (arosis) <jh0506.yun@@samsung.com>
290 @author Tom Hacohen <tom@@stosb.com>
291 @author Aharon Hillel <a.hillel@@partner.samsung.com>
292 @author Jonathan Atton (Watchwolf) <jonathan.atton@@gmail.com>
293 @author Shinwoo Kim <kimcinoo@@gmail.com>
294 @author Govindaraju SM <govi.sm@@samsung.com> <govism@@gmail.com>
295 @author Prince Kumar Dubey <prince.dubey@@samsung.com> <prince.dubey@@gmail.com>
296
297 Please contact <enlightenment-devel@lists.sourceforge.net> to get in
298 contact with the developers and maintainers.
299  */
300
301 #ifndef ELEMENTARY_H
302 #define ELEMENTARY_H
303
304 /**
305  * @file Elementary.h
306  * @brief Elementary's API
307  *
308  * Elementary API.
309  */
310
311 @ELM_UNIX_DEF@ ELM_UNIX
312 @ELM_WIN32_DEF@ ELM_WIN32
313 @ELM_WINCE_DEF@ ELM_WINCE
314 @ELM_EDBUS_DEF@ ELM_EDBUS
315 @ELM_EFREET_DEF@ ELM_EFREET
316 @ELM_ETHUMB_DEF@ ELM_ETHUMB
317 @ELM_EMAP_DEF@ ELM_EMAP
318 @ELM_DEBUG_DEF@ ELM_DEBUG
319 @ELM_ALLOCA_H_DEF@ ELM_ALLOCA_H
320 @ELM_LIBINTL_H_DEF@ ELM_LIBINTL_H
321
322 /* Standard headers for standard system calls etc. */
323 #include <stdio.h>
324 #include <stdlib.h>
325 #include <unistd.h>
326 #include <string.h>
327 #include <sys/types.h>
328 #include <sys/stat.h>
329 #include <sys/time.h>
330 #include <sys/param.h>
331 #include <dlfcn.h>
332 #include <math.h>
333 #include <fnmatch.h>
334 #include <limits.h>
335 #include <ctype.h>
336 #include <time.h>
337 #include <dirent.h>
338 #include <pwd.h>
339 #include <errno.h>
340
341 #ifdef ELM_UNIX
342 # include <locale.h>
343 # ifdef ELM_LIBINTL_H
344 #  include <libintl.h>
345 # endif
346 # include <signal.h>
347 # include <grp.h>
348 # include <glob.h>
349 #endif
350
351 #ifdef ELM_ALLOCA_H
352 # include <alloca.h>
353 #endif
354
355 #if defined (ELM_WIN32) || defined (ELM_WINCE)
356 # include <malloc.h>
357 # ifndef alloca
358 #  define alloca _alloca
359 # endif
360 #endif
361
362
363 /* EFL headers */
364 #include <Eina.h>
365 #include <Eet.h>
366 #include <Evas.h>
367 #include <Evas_GL.h>
368 #include <Ecore.h>
369 #include <Ecore_Evas.h>
370 #include <Ecore_File.h>
371 #include <Ecore_IMF.h>
372 #include <Ecore_Con.h>
373 #include <Edje.h>
374
375 #ifdef ELM_EDBUS
376 # include <E_DBus.h>
377 #endif
378
379 #ifdef ELM_EFREET
380 # include <Efreet.h>
381 # include <Efreet_Mime.h>
382 # include <Efreet_Trash.h>
383 #endif
384
385 #ifdef ELM_ETHUMB
386 # include <Ethumb_Client.h>
387 #endif
388
389 #ifdef ELM_EMAP
390 # include <EMap.h>
391 #endif
392
393 #ifdef EAPI
394 # undef EAPI
395 #endif
396
397 #ifdef _WIN32
398 # ifdef ELEMENTARY_BUILD
399 #  ifdef DLL_EXPORT
400 #   define EAPI __declspec(dllexport)
401 #  else
402 #   define EAPI
403 #  endif /* ! DLL_EXPORT */
404 # else
405 #  define EAPI __declspec(dllimport)
406 # endif /* ! EFL_EVAS_BUILD */
407 #else
408 # ifdef __GNUC__
409 #  if __GNUC__ >= 4
410 #   define EAPI __attribute__ ((visibility("default")))
411 #  else
412 #   define EAPI
413 #  endif
414 # else
415 #  define EAPI
416 # endif
417 #endif /* ! _WIN32 */
418
419
420 /* allow usage from c++ */
421 #ifdef __cplusplus
422 extern "C" {
423 #endif
424
425 #define ELM_VERSION_MAJOR @VMAJ@
426 #define ELM_VERSION_MINOR @VMIN@
427
428    typedef struct _Elm_Version
429      {
430         int major;
431         int minor;
432         int micro;
433         int revision;
434      } Elm_Version;
435
436    EAPI extern Elm_Version *elm_version;
437
438 /* handy macros */
439 #define ELM_RECTS_INTERSECT(x, y, w, h, xx, yy, ww, hh) (((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && (((x) + (w)) > (xx)) && (((y) + (h)) > (yy)))
440 #define ELM_PI 3.14159265358979323846
441
442    /**
443     * @defgroup General General
444     *
445     * @brief General Elementary API. Functions that don't relate to
446     * Elementary objects specifically.
447     *
448     * Here are documented functions which init/shutdown the library,
449     * that apply to generic Elementary objects, that deal with
450     * configuration, et cetera.
451     *
452     * @ref general_functions_example_page "This" example contemplates
453     * some of these functions.
454     */
455
456    /**
457     * @addtogroup General
458     * @{
459     */
460
461   /**
462    * Defines couple of standard Evas_Object layers to be used
463    * with evas_object_layer_set().
464    *
465    * @note whenever extending with new values, try to keep some padding
466    *       to siblings so there is room for further extensions.
467    */
468   typedef enum _Elm_Object_Layer
469     {
470        ELM_OBJECT_LAYER_BACKGROUND = EVAS_LAYER_MIN + 64, /**< where to place backgrounds */
471        ELM_OBJECT_LAYER_DEFAULT = 0, /**< Evas_Object default layer (and thus for Elementary) */
472        ELM_OBJECT_LAYER_FOCUS = EVAS_LAYER_MAX - 128, /**< where focus object visualization is */
473        ELM_OBJECT_LAYER_TOOLTIP = EVAS_LAYER_MAX - 64, /**< where to show tooltips */
474        ELM_OBJECT_LAYER_CURSOR = EVAS_LAYER_MAX - 32, /**< where to show cursors */
475        ELM_OBJECT_LAYER_LAST /**< last layer known by Elementary */
476     } Elm_Object_Layer;
477
478 /**************************************************************************/
479    EAPI extern int ELM_ECORE_EVENT_ETHUMB_CONNECT;
480
481    /**
482     * Emitted when any Elementary's policy value is changed.
483     */
484    EAPI extern int ELM_EVENT_POLICY_CHANGED;
485
486    /**
487     * @typedef Elm_Event_Policy_Changed
488     *
489     * Data on the event when an Elementary policy has changed
490     */
491     typedef struct _Elm_Event_Policy_Changed Elm_Event_Policy_Changed;
492
493    /**
494     * @struct _Elm_Event_Policy_Changed
495     *
496     * Data on the event when an Elementary policy has changed
497     */
498     struct _Elm_Event_Policy_Changed
499      {
500         unsigned int policy; /**< the policy identifier */
501         int          new_value; /**< value the policy had before the change */
502         int          old_value; /**< new value the policy got */
503     };
504
505    /**
506     * Policy identifiers.
507     */
508     typedef enum _Elm_Policy
509     {
510         ELM_POLICY_QUIT, /**< under which circunstances the application
511                           * should quit automatically. @see
512                           * Elm_Policy_Quit.
513                           */
514         ELM_POLICY_LAST
515     } Elm_Policy; /**< Elementary policy identifiers/groups enumeration.  @see elm_policy_set()
516  */
517
518    typedef enum _Elm_Policy_Quit
519      {
520         ELM_POLICY_QUIT_NONE = 0, /**< never quit the application
521                                    * automatically */
522         ELM_POLICY_QUIT_LAST_WINDOW_CLOSED /**< quit when the
523                                             * application's last
524                                             * window is closed */
525      } Elm_Policy_Quit; /**< Possible values for the #ELM_POLICY_QUIT policy */
526
527    typedef enum _Elm_Focus_Direction
528      {
529         ELM_FOCUS_PREVIOUS,
530         ELM_FOCUS_NEXT
531      } Elm_Focus_Direction;
532
533    typedef enum _Elm_Text_Format
534      {
535         ELM_TEXT_FORMAT_PLAIN_UTF8,
536         ELM_TEXT_FORMAT_MARKUP_UTF8
537      } Elm_Text_Format;
538
539    /**
540     * Line wrapping types.
541     */
542    typedef enum _Elm_Wrap_Type
543      {
544         ELM_WRAP_NONE = 0, /**< No wrap - value is zero */
545         ELM_WRAP_CHAR, /**< Char wrap - wrap between characters */
546         ELM_WRAP_WORD, /**< Word wrap - wrap in allowed wrapping points (as defined in the unicode standard) */
547         ELM_WRAP_MIXED, /**< Mixed wrap - Word wrap, and if that fails, char wrap. */
548         ELM_WRAP_LAST
549      } Elm_Wrap_Type;
550
551    /**
552     * @typedef Elm_Object_Item
553     * An Elementary Object item handle.
554     * @ingroup General
555     */
556    typedef struct _Elm_Object_Item Elm_Object_Item;
557
558
559    /**
560     * Called back when a widget's tooltip is activated and needs content.
561     * @param data user-data given to elm_object_tooltip_content_cb_set()
562     * @param obj owner widget.
563     * @param tooltip The tooltip object (affix content to this!)
564     */
565    typedef Evas_Object *(*Elm_Tooltip_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip);
566
567    /**
568     * Called back when a widget's item tooltip is activated and needs content.
569     * @param data user-data given to elm_object_tooltip_content_cb_set()
570     * @param obj owner widget.
571     * @param tooltip The tooltip object (affix content to this!)
572     * @param item context dependent item. As an example, if tooltip was
573     *        set on Elm_List_Item, then it is of this type.
574     */
575    typedef Evas_Object *(*Elm_Tooltip_Item_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip, void *item);
576
577    typedef Eina_Bool (*Elm_Event_Cb) (void *data, Evas_Object *obj, Evas_Object *src, Evas_Callback_Type type, void *event_info);
578
579 #ifndef ELM_LIB_QUICKLAUNCH
580 #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 */
581 #else
582 #define ELM_MAIN() int main(int argc, char **argv) {return elm_quicklaunch_fallback(argc, argv);} /**< macro to be used after the elm_main() function */
583 #endif
584
585 /**************************************************************************/
586    /* General calls */
587
588    /**
589     * Initialize Elementary
590     *
591     * @param[in] argc System's argument count value
592     * @param[in] argv System's pointer to array of argument strings
593     * @return The init counter value.
594     *
595     * This function initializes Elementary and increments a counter of
596     * the number of calls to it. It returs the new counter's value.
597     *
598     * @warning This call is exported only for use by the @c ELM_MAIN()
599     * macro. There is no need to use this if you use this macro (which
600     * is highly advisable). An elm_main() should contain the entry
601     * point code for your application, having the same prototype as
602     * elm_init(), and @b not being static (putting the @c EAPI symbol
603     * in front of its type declaration is advisable). The @c
604     * ELM_MAIN() call should be placed just after it.
605     *
606     * Example:
607     * @dontinclude bg_example_01.c
608     * @skip static void
609     * @until ELM_MAIN
610     *
611     * See the full @ref bg_example_01_c "example".
612     *
613     * @see elm_shutdown().
614     * @ingroup General
615     */
616    EAPI int          elm_init(int argc, char **argv);
617
618    /**
619     * Shut down Elementary
620     *
621     * @return The init counter value.
622     *
623     * This should be called at the end of your application, just
624     * before it ceases to do any more processing. This will clean up
625     * any permanent resources your application may have allocated via
626     * Elementary that would otherwise persist.
627     *
628     * @see elm_init() for an example
629     *
630     * @ingroup General
631     */
632    EAPI int          elm_shutdown(void);
633
634    /**
635     * Run Elementary's main loop
636     *
637     * This call should be issued just after all initialization is
638     * completed. This function will not return until elm_exit() is
639     * called. It will keep looping, running the main
640     * (event/processing) loop for Elementary.
641     *
642     * @see elm_init() for an example
643     *
644     * @ingroup General
645     */
646    EAPI void         elm_run(void);
647
648    /**
649     * Exit Elementary's main loop
650     *
651     * If this call is issued, it will flag the main loop to cease
652     * processing and return back to its parent function (usually your
653     * elm_main() function).
654     *
655     * @see elm_init() for an example. There, just after a request to
656     * close the window comes, the main loop will be left.
657     *
658     * @note By using the #ELM_POLICY_QUIT on your Elementary
659     * applications, you'll this function called automatically for you.
660     *
661     * @ingroup General
662     */
663    EAPI void         elm_exit(void);
664
665    /**
666     * Provide information in order to make Elementary determine the @b
667     * run time location of the software in question, so other data files
668     * such as images, sound files, executable utilities, libraries,
669     * modules and locale files can be found.
670     *
671     * @param mainfunc This is your application's main function name,
672     *        whose binary's location is to be found. Providing @c NULL
673     *        will make Elementary not to use it
674     * @param dom This will be used as the application's "domain", in the
675     *        form of a prefix to any environment variables that may
676     *        override prefix detection and the directory name, inside the
677     *        standard share or data directories, where the software's
678     *        data files will be looked for.
679     * @param checkfile This is an (optional) magic file's path to check
680     *        for existence (and it must be located in the data directory,
681     *        under the share directory provided above). Its presence will
682     *        help determine the prefix found was correct. Pass @c NULL if
683     *        the check is not to be done.
684     *
685     * This function allows one to re-locate the application somewhere
686     * else after compilation, if the developer wishes for easier
687     * distribution of pre-compiled binaries.
688     *
689     * The prefix system is designed to locate where the given software is
690     * installed (under a common path prefix) at run time and then report
691     * specific locations of this prefix and common directories inside
692     * this prefix like the binary, library, data and locale directories,
693     * through the @c elm_app_*_get() family of functions.
694     *
695     * Call elm_app_info_set() early on before you change working
696     * directory or anything about @c argv[0], so it gets accurate
697     * information.
698     *
699     * It will then try and trace back which file @p mainfunc comes from,
700     * if provided, to determine the application's prefix directory.
701     *
702     * The @p dom parameter provides a string prefix to prepend before
703     * environment variables, allowing a fallback to @b specific
704     * environment variables to locate the software. You would most
705     * probably provide a lowercase string there, because it will also
706     * serve as directory domain, explained next. For environment
707     * variables purposes, this string is made uppercase. For example if
708     * @c "myapp" is provided as the prefix, then the program would expect
709     * @c "MYAPP_PREFIX" as a master environment variable to specify the
710     * exact install prefix for the software, or more specific environment
711     * variables like @c "MYAPP_BIN_DIR", @c "MYAPP_LIB_DIR", @c
712     * "MYAPP_DATA_DIR" and @c "MYAPP_LOCALE_DIR", which could be set by
713     * the user or scripts before launching. If not provided (@c NULL),
714     * environment variables will not be used to override compiled-in
715     * defaults or auto detections.
716     *
717     * The @p dom string also provides a subdirectory inside the system
718     * shared data directory for data files. For example, if the system
719     * directory is @c /usr/local/share, then this directory name is
720     * appended, creating @c /usr/local/share/myapp, if it @p was @c
721     * "myapp". It is expected the application installs data files in
722     * this directory.
723     *
724     * The @p checkfile is a file name or path of something inside the
725     * share or data directory to be used to test that the prefix
726     * detection worked. For example, your app will install a wallpaper
727     * image as @c /usr/local/share/myapp/images/wallpaper.jpg and so to
728     * check that this worked, provide @c "images/wallpaper.jpg" as the @p
729     * checkfile string.
730     *
731     * @see elm_app_compile_bin_dir_set()
732     * @see elm_app_compile_lib_dir_set()
733     * @see elm_app_compile_data_dir_set()
734     * @see elm_app_compile_locale_set()
735     * @see elm_app_prefix_dir_get()
736     * @see elm_app_bin_dir_get()
737     * @see elm_app_lib_dir_get()
738     * @see elm_app_data_dir_get()
739     * @see elm_app_locale_dir_get()
740     */
741    EAPI void         elm_app_info_set(void *mainfunc, const char *dom, const char *checkfile);
742
743    /**
744     * Provide information on the @b fallback application's binaries
745     * directory, on scenarios where they get overriden by
746     * elm_app_info_set().
747     *
748     * @param dir The path to the default binaries directory (compile time
749     * one)
750     *
751     * @note Elementary will as well use this path to determine actual
752     * names of binaries' directory paths, maybe changing it to be @c
753     * something/local/bin instead of @c something/bin, only, for
754     * example.
755     *
756     * @warning You should call this function @b before
757     * elm_app_info_set().
758     */
759    EAPI void         elm_app_compile_bin_dir_set(const char *dir);
760
761    /**
762     * Provide information on the @b fallback application's libraries
763     * directory, on scenarios where they get overriden by
764     * elm_app_info_set().
765     *
766     * @param dir The path to the default libraries directory (compile
767     * time one)
768     *
769     * @note Elementary will as well use this path to determine actual
770     * names of libraries' directory paths, maybe changing it to be @c
771     * something/lib32 or @c something/lib64 instead of @c something/lib,
772     * only, for example.
773     *
774     * @warning You should call this function @b before
775     * elm_app_info_set().
776     */
777    EAPI void         elm_app_compile_lib_dir_set(const char *dir);
778
779    /**
780     * Provide information on the @b fallback application's data
781     * directory, on scenarios where they get overriden by
782     * elm_app_info_set().
783     *
784     * @param dir The path to the default data directory (compile time
785     * one)
786     *
787     * @note Elementary will as well use this path to determine actual
788     * names of data directory paths, maybe changing it to be @c
789     * something/local/share instead of @c something/share, only, for
790     * example.
791     *
792     * @warning You should call this function @b before
793     * elm_app_info_set().
794     */
795    EAPI void         elm_app_compile_data_dir_set(const char *dir);
796
797    /**
798     * Provide information on the @b fallback application's locale
799     * directory, on scenarios where they get overriden by
800     * elm_app_info_set().
801     *
802     * @param dir The path to the default locale directory (compile time
803     * one)
804     *
805     * @warning You should call this function @b before
806     * elm_app_info_set().
807     */
808    EAPI void         elm_app_compile_locale_set(const char *dir);
809
810    /**
811     * Retrieve the application's run time prefix directory, as set by
812     * elm_app_info_set() and the way (environment) the application was
813     * run from.
814     *
815     * @return The directory prefix the application is actually using
816     */
817    EAPI const char  *elm_app_prefix_dir_get(void);
818
819    /**
820     * Retrieve the application's run time binaries prefix directory, as
821     * set by elm_app_info_set() and the way (environment) the application
822     * was run from.
823     *
824     * @return The binaries directory prefix the application is actually
825     * using
826     */
827    EAPI const char  *elm_app_bin_dir_get(void);
828
829    /**
830     * Retrieve the application's run time libraries prefix directory, as
831     * set by elm_app_info_set() and the way (environment) the application
832     * was run from.
833     *
834     * @return The libraries directory prefix the application is actually
835     * using
836     */
837    EAPI const char  *elm_app_lib_dir_get(void);
838
839    /**
840     * Retrieve the application's run time data prefix directory, as
841     * set by elm_app_info_set() and the way (environment) the application
842     * was run from.
843     *
844     * @return The data directory prefix the application is actually
845     * using
846     */
847    EAPI const char  *elm_app_data_dir_get(void);
848
849    /**
850     * Retrieve the application's run time locale prefix directory, as
851     * set by elm_app_info_set() and the way (environment) the application
852     * was run from.
853     *
854     * @return The locale directory prefix the application is actually
855     * using
856     */
857    EAPI const char  *elm_app_locale_dir_get(void);
858
859    EAPI void         elm_quicklaunch_mode_set(Eina_Bool ql_on);
860    EAPI Eina_Bool    elm_quicklaunch_mode_get(void);
861    EAPI int          elm_quicklaunch_init(int argc, char **argv);
862    EAPI int          elm_quicklaunch_sub_init(int argc, char **argv);
863    EAPI int          elm_quicklaunch_sub_shutdown(void);
864    EAPI int          elm_quicklaunch_shutdown(void);
865    EAPI void         elm_quicklaunch_seed(void);
866    EAPI Eina_Bool    elm_quicklaunch_prepare(int argc, char **argv);
867    EAPI Eina_Bool    elm_quicklaunch_fork(int argc, char **argv, char *cwd, void (postfork_func) (void *data), void *postfork_data);
868    EAPI void         elm_quicklaunch_cleanup(void);
869    EAPI int          elm_quicklaunch_fallback(int argc, char **argv);
870    EAPI char        *elm_quicklaunch_exe_path_get(const char *exe);
871
872    EAPI Eina_Bool    elm_need_efreet(void);
873    EAPI Eina_Bool    elm_need_e_dbus(void);
874
875    /**
876     * This must be called before any other function that handle with
877     * elm_thumb objects or ethumb_client instances.
878     *
879     * @ingroup Thumb
880     */
881    EAPI Eina_Bool    elm_need_ethumb(void);
882
883    /**
884     * Set a new policy's value (for a given policy group/identifier).
885     *
886     * @param policy policy identifier, as in @ref Elm_Policy.
887     * @param value policy value, which depends on the identifier
888     *
889     * @return @c EINA_TRUE on success or @c EINA_FALSE, on error.
890     *
891     * Elementary policies define applications' behavior,
892     * somehow. These behaviors are divided in policy groups (see
893     * #Elm_Policy enumeration). This call will emit the Ecore event
894     * #ELM_EVENT_POLICY_CHANGED, which can be hooked at with
895     * handlers. An #Elm_Event_Policy_Changed struct will be passed,
896     * then.
897     *
898     * @note Currently, we have only one policy identifier/group
899     * (#ELM_POLICY_QUIT), which has two possible values.
900     *
901     * @ingroup General
902     */
903    EAPI Eina_Bool    elm_policy_set(unsigned int policy, int value);
904
905    /**
906     * Gets the policy value set for given policy identifier.
907     *
908     * @param policy policy identifier, as in #Elm_Policy.
909     * @return The currently set policy value, for that
910     * identifier. Will be @c 0 if @p policy passed is invalid.
911     *
912     * @ingroup General
913     */
914    EAPI int          elm_policy_get(unsigned int policy);
915
916    /**
917     * Set a label of an object
918     *
919     * @param obj The Elementary object
920     * @param part The text part name to set (NULL for the default label)
921     * @param label The new text of the label
922     *
923     * @note Elementary objects may have many labels (e.g. Action Slider)
924     *
925     * @ingroup General
926     */
927    EAPI void         elm_object_text_part_set(Evas_Object *obj, const char *part, const char *label);
928
929 #define elm_object_text_set(obj, label) elm_object_text_part_set((obj), NULL, (label))
930
931    /**
932     * Get a label of an object
933     *
934     * @param obj The Elementary object
935     * @param part The text part name to get (NULL for the default label)
936     * @return text of the label or NULL for any error
937     *
938     * @note Elementary objects may have many labels (e.g. Action Slider)
939     *
940     * @ingroup General
941     */
942    EAPI const char  *elm_object_text_part_get(const Evas_Object *obj, const char *part);
943
944 #define elm_object_text_get(obj) elm_object_text_part_get((obj), NULL)
945
946    /**
947     * Set a content of an object
948     *
949     * @param obj The Elementary object
950     * @param part The content part name to set (NULL for the default content)
951     * @param content The new content of the object
952     *
953     * @note Elementary objects may have many contents
954     *
955     * @ingroup General
956     */
957    EAPI void elm_object_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content);
958
959 #define elm_object_content_set(obj, content) elm_object_content_part_set((obj), NULL, (content))
960
961    /**
962     * Get a content of an object
963     *
964     * @param obj The Elementary object
965     * @param item The content part name to get (NULL for the default content)
966     * @return content of the object or NULL for any error
967     *
968     * @note Elementary objects may have many contents
969     *
970     * @ingroup General
971     */
972    EAPI Evas_Object *elm_object_content_part_get(const Evas_Object *obj, const char *part);
973
974 #define elm_object_content_get(obj) elm_object_content_part_get((obj), NULL)
975
976    /**
977     * Unset a content of an object
978     *
979     * @param obj The Elementary object
980     * @param item The content part name to unset (NULL for the default content)
981     *
982     * @note Elementary objects may have many contents
983     *
984     * @ingroup General
985     */
986    EAPI Evas_Object *elm_object_content_part_unset(Evas_Object *obj, const char *part);
987
988 #define elm_object_content_unset(obj) elm_object_content_part_unset((obj), NULL)
989
990    /**
991     * Set a content of an object item
992     *
993     * @param it The Elementary object item
994     * @param part The content part name to unset (NULL for the default content)
995     * @param content The new content of the object item
996     *
997     * @note Elementary object items may have many contents
998     *
999     * @ingroup General
1000     */
1001    EAPI void elm_object_item_content_part_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
1002
1003 #define elm_object_item_content_set(it, content) elm_object_item_content_part_set((it), NULL, (content))
1004
1005    /**
1006     * Get a content of an object item
1007     *
1008     * @param it The Elementary object item
1009     * @param part The content part name to unset (NULL for the default content)
1010     * @return content of the object item or NULL for any error
1011     *
1012     * @note Elementary object items may have many contents
1013     *
1014     * @ingroup General
1015     */
1016    EAPI Evas_Object *elm_object_item_content_part_get(const Elm_Object_Item *it, const char *item);
1017
1018 #define elm_object_item_content_get(it, content) elm_object_item_content_part_get((it), NULL, (content))
1019
1020    /**
1021     * Unset a content of an object item
1022     *
1023     * @param it The Elementary object item
1024     * @param part The content part name to unset (NULL for the default content)
1025     *
1026     * @note Elementary object items may have many contents
1027     *
1028     * @ingroup General
1029     */
1030    EAPI Evas_Object *elm_object_item_content_part_unset(Elm_Object_Item *it, const char *part);
1031
1032 #define elm_object_item_content_unset(it, content) elm_object_item_content_part_unset((it), (content))
1033
1034    /**
1035     * Set a label of an objec itemt
1036     *
1037     * @param it The Elementary object item
1038     * @param part The text part name to set (NULL for the default label)
1039     * @param label The new text of the label
1040     *
1041     * @note Elementary object items may have many labels
1042     *
1043     * @ingroup General
1044     */
1045    EAPI void elm_object_item_text_part_set(Elm_Object_Item *it, const char *part, const char *label);
1046
1047 #define elm_object_item_text_set(it, label) elm_object_item_text_part_set((it), NULL, (label))
1048
1049    /**
1050     * Get a label of an object
1051     *
1052     * @param it The Elementary object item
1053     * @param part The text part name to get (NULL for the default label)
1054     * @return text of the label or NULL for any error
1055     *
1056     * @note Elementary object items may have many labels
1057     *
1058     * @ingroup General
1059     */
1060    EAPI const char *elm_object_item_text_part_get(const Elm_Object_Item *it, const char *part);
1061
1062 #define elm_object_item_text_get(it) elm_object_item_part_text_get((it), NULL)
1063
1064    /**
1065     * @}
1066     */
1067
1068    /**
1069     * @defgroup Caches Caches
1070     *
1071     * These are functions which let one fine-tune some cache values for
1072     * Elementary applications, thus allowing for performance adjustments.
1073     *
1074     * @{
1075     */
1076
1077    /**
1078     * Flush all caches & dump all data that can be to lean down to use
1079     * less memory
1080     *
1081     * @ingroup Caches
1082     */
1083    EAPI void         elm_all_flush(void);
1084
1085    /**
1086     * Get the configured cache flush interval time
1087     *
1088     * This gets the globally configured cache flush interval time, in
1089     * ticks
1090     *
1091     * @return The cache flush interval time
1092     * @ingroup Caches
1093     *
1094     * @see elm_all_flush()
1095     */
1096    EAPI int          elm_cache_flush_interval_get(void);
1097
1098    /**
1099     * Set the configured cache flush interval time
1100     *
1101     * This sets the globally configured cache flush interval time, in ticks
1102     *
1103     * @param size The cache flush interval time
1104     * @ingroup Caches
1105     *
1106     * @see elm_all_flush()
1107     */
1108    EAPI void         elm_cache_flush_interval_set(int size);
1109
1110    /**
1111     * Set the configured cache flush interval time for all applications on the
1112     * display
1113     *
1114     * This sets the globally configured cache flush interval time -- in ticks
1115     * -- for all applications on the display.
1116     *
1117     * @param size The cache flush interval time
1118     * @ingroup Caches
1119     */
1120    EAPI void         elm_cache_flush_interval_all_set(int size);
1121
1122    /**
1123     * Get the configured cache flush enabled state
1124     *
1125     * This gets the globally configured cache flush state - if it is enabled
1126     * or not. When cache flushing is enabled, elementary will regularly
1127     * (see elm_cache_flush_interval_get() ) flush caches and dump data out of
1128     * memory and allow usage to re-seed caches and data in memory where it
1129     * can do so. An idle application will thus minimise its memory usage as
1130     * data will be freed from memory and not be re-loaded as it is idle and
1131     * not rendering or doing anything graphically right now.
1132     *
1133     * @return The cache flush state
1134     * @ingroup Caches
1135     *
1136     * @see elm_all_flush()
1137     */
1138    EAPI Eina_Bool    elm_cache_flush_enabled_get(void);
1139
1140    /**
1141     * Set the configured cache flush enabled state
1142     *
1143     * This sets the globally configured cache flush enabled state
1144     *
1145     * @param size The cache flush enabled state
1146     * @ingroup Caches
1147     *
1148     * @see elm_all_flush()
1149     */
1150    EAPI void         elm_cache_flush_enabled_set(Eina_Bool enabled);
1151
1152    /**
1153     * Set the configured cache flush enabled state for all applications on the
1154     * display
1155     *
1156     * This sets the globally configured cache flush enabled state for all
1157     * applications on the display.
1158     *
1159     * @param size The cache flush enabled state
1160     * @ingroup Caches
1161     */
1162    EAPI void         elm_cache_flush_enabled_all_set(Eina_Bool enabled);
1163
1164    /**
1165     * Get the configured font cache size
1166     *
1167     * This gets the globally configured font cache size, in bytes
1168     *
1169     * @return The font cache size
1170     * @ingroup Caches
1171     */
1172    EAPI int          elm_font_cache_get(void);
1173
1174    /**
1175     * Set the configured font cache size
1176     *
1177     * This sets the globally configured font cache size, in bytes
1178     *
1179     * @param size The font cache size
1180     * @ingroup Caches
1181     */
1182    EAPI void         elm_font_cache_set(int size);
1183
1184    /**
1185     * Set the configured font cache size for all applications on the
1186     * display
1187     *
1188     * This sets the globally configured font cache size -- in bytes
1189     * -- for all applications on the display.
1190     *
1191     * @param size The font cache size
1192     * @ingroup Caches
1193     */
1194    EAPI void         elm_font_cache_all_set(int size);
1195
1196    /**
1197     * Get the configured image cache size
1198     *
1199     * This gets the globally configured image cache size, in bytes
1200     *
1201     * @return The image cache size
1202     * @ingroup Caches
1203     */
1204    EAPI int          elm_image_cache_get(void);
1205
1206    /**
1207     * Set the configured image cache size
1208     *
1209     * This sets the globally configured image cache size, in bytes
1210     *
1211     * @param size The image cache size
1212     * @ingroup Caches
1213     */
1214    EAPI void         elm_image_cache_set(int size);
1215
1216    /**
1217     * Set the configured image cache size for all applications on the
1218     * display
1219     *
1220     * This sets the globally configured image cache size -- in bytes
1221     * -- for all applications on the display.
1222     *
1223     * @param size The image cache size
1224     * @ingroup Caches
1225     */
1226    EAPI void         elm_image_cache_all_set(int size);
1227
1228    /**
1229     * Get the configured edje file cache size.
1230     *
1231     * This gets the globally configured edje file cache size, in number
1232     * of files.
1233     *
1234     * @return The edje file cache size
1235     * @ingroup Caches
1236     */
1237    EAPI int          elm_edje_file_cache_get(void);
1238
1239    /**
1240     * Set the configured edje file cache size
1241     *
1242     * This sets the globally configured edje file cache size, in number
1243     * of files.
1244     *
1245     * @param size The edje file cache size
1246     * @ingroup Caches
1247     */
1248    EAPI void         elm_edje_file_cache_set(int size);
1249
1250    /**
1251     * Set the configured edje file cache size for all applications on the
1252     * display
1253     *
1254     * This sets the globally configured edje file cache size -- in number
1255     * of files -- for all applications on the display.
1256     *
1257     * @param size The edje file cache size
1258     * @ingroup Caches
1259     */
1260    EAPI void         elm_edje_file_cache_all_set(int size);
1261
1262    /**
1263     * Get the configured edje collections (groups) cache size.
1264     *
1265     * This gets the globally configured edje collections cache size, in
1266     * number of collections.
1267     *
1268     * @return The edje collections cache size
1269     * @ingroup Caches
1270     */
1271    EAPI int          elm_edje_collection_cache_get(void);
1272
1273    /**
1274     * Set the configured edje collections (groups) cache size
1275     *
1276     * This sets the globally configured edje collections cache size, in
1277     * number of collections.
1278     *
1279     * @param size The edje collections cache size
1280     * @ingroup Caches
1281     */
1282    EAPI void         elm_edje_collection_cache_set(int size);
1283
1284    /**
1285     * Set the configured edje collections (groups) cache size for all
1286     * applications on the display
1287     *
1288     * This sets the globally configured edje collections cache size -- in
1289     * number of collections -- for all applications on the display.
1290     *
1291     * @param size The edje collections cache size
1292     * @ingroup Caches
1293     */
1294    EAPI void         elm_edje_collection_cache_all_set(int size);
1295
1296    /**
1297     * @}
1298     */
1299
1300    /**
1301     * @defgroup Scaling Widget Scaling
1302     *
1303     * Different widgets can be scaled independently. These functions
1304     * allow you to manipulate this scaling on a per-widget basis. The
1305     * object and all its children get their scaling factors multiplied
1306     * by the scale factor set. This is multiplicative, in that if a
1307     * child also has a scale size set it is in turn multiplied by its
1308     * parent's scale size. @c 1.0 means “don't scale”, @c 2.0 is
1309     * double size, @c 0.5 is half, etc.
1310     *
1311     * @ref general_functions_example_page "This" example contemplates
1312     * some of these functions.
1313     */
1314
1315    /**
1316     * Get the global scaling factor
1317     *
1318     * This gets the globally configured scaling factor that is applied to all
1319     * objects.
1320     *
1321     * @return The scaling factor
1322     * @ingroup Scaling
1323     */
1324    EAPI double       elm_scale_get(void);
1325
1326    /**
1327     * Set the global scaling factor
1328     *
1329     * This sets the globally configured scaling factor that is applied to all
1330     * objects.
1331     *
1332     * @param scale The scaling factor to set
1333     * @ingroup Scaling
1334     */
1335    EAPI void         elm_scale_set(double scale);
1336
1337    /**
1338     * Set the global scaling factor for all applications on the display
1339     *
1340     * This sets the globally configured scaling factor that is applied to all
1341     * objects for all applications.
1342     * @param scale The scaling factor to set
1343     * @ingroup Scaling
1344     */
1345    EAPI void         elm_scale_all_set(double scale);
1346
1347    /**
1348     * Set the scaling factor for a given Elementary object
1349     *
1350     * @param obj The Elementary to operate on
1351     * @param scale Scale factor (from @c 0.0 up, with @c 1.0 meaning
1352     * no scaling)
1353     *
1354     * @ingroup Scaling
1355     */
1356    EAPI void         elm_object_scale_set(Evas_Object *obj, double scale) EINA_ARG_NONNULL(1);
1357
1358    /**
1359     * Get the scaling factor for a given Elementary object
1360     *
1361     * @param obj The object
1362     * @return The scaling factor set by elm_object_scale_set()
1363     *
1364     * @ingroup Scaling
1365     */
1366    EAPI double       elm_object_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1367
1368    /**
1369     * @defgroup UI-Mirroring Selective Widget mirroring
1370     *
1371     * These functions allow you to set ui-mirroring on specific
1372     * widgets or the whole interface. Widgets can be in one of two
1373     * modes, automatic and manual.  Automatic means they'll be changed
1374     * according to the system mirroring mode and manual means only
1375     * explicit changes will matter. You are not supposed to change
1376     * mirroring state of a widget set to automatic, will mostly work,
1377     * but the behavior is not really defined.
1378     *
1379     * @{
1380     */
1381
1382    EAPI Eina_Bool    elm_mirrored_get(void);
1383    EAPI void         elm_mirrored_set(Eina_Bool mirrored);
1384
1385    /**
1386     * Get the system mirrored mode. This determines the default mirrored mode
1387     * of widgets.
1388     *
1389     * @return EINA_TRUE if mirrored is set, EINA_FALSE otherwise
1390     */
1391    EAPI Eina_Bool    elm_object_mirrored_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1392
1393    /**
1394     * Set the system mirrored mode. This determines the default mirrored mode
1395     * of widgets.
1396     *
1397     * @param mirrored EINA_TRUE to set mirrored mode, EINA_FALSE to unset it.
1398     */
1399    EAPI void         elm_object_mirrored_set(Evas_Object *obj, Eina_Bool mirrored) EINA_ARG_NONNULL(1);
1400
1401    /**
1402     * Returns the widget's mirrored mode setting.
1403     *
1404     * @param obj The widget.
1405     * @return mirrored mode setting of the object.
1406     *
1407     **/
1408    EAPI Eina_Bool    elm_object_mirrored_automatic_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1409
1410    /**
1411     * Sets the widget's mirrored mode setting.
1412     * When widget in automatic mode, it follows the system mirrored mode set by
1413     * elm_mirrored_set().
1414     * @param obj The widget.
1415     * @param automatic EINA_TRUE for auto mirrored mode. EINA_FALSE for manual.
1416     */
1417    EAPI void         elm_object_mirrored_automatic_set(Evas_Object *obj, Eina_Bool automatic) EINA_ARG_NONNULL(1);
1418
1419    /**
1420     * @}
1421     */
1422
1423    /**
1424     * Set the style to use by a widget
1425     *
1426     * Sets the style name that will define the appearance of a widget. Styles
1427     * vary from widget to widget and may also be defined by other themes
1428     * by means of extensions and overlays.
1429     *
1430     * @param obj The Elementary widget to style
1431     * @param style The style name to use
1432     *
1433     * @see elm_theme_extension_add()
1434     * @see elm_theme_extension_del()
1435     * @see elm_theme_overlay_add()
1436     * @see elm_theme_overlay_del()
1437     *
1438     * @ingroup Styles
1439     */
1440    EAPI void         elm_object_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
1441    /**
1442     * Get the style used by the widget
1443     *
1444     * This gets the style being used for that widget. Note that the string
1445     * pointer is only valid as longas the object is valid and the style doesn't
1446     * change.
1447     *
1448     * @param obj The Elementary widget to query for its style
1449     * @return The style name used
1450     *
1451     * @see elm_object_style_set()
1452     *
1453     * @ingroup Styles
1454     */
1455    EAPI const char  *elm_object_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1456
1457    /**
1458     * @defgroup Styles Styles
1459     *
1460     * Widgets can have different styles of look. These generic API's
1461     * set styles of widgets, if they support them (and if the theme(s)
1462     * do).
1463     *
1464     * @ref general_functions_example_page "This" example contemplates
1465     * some of these functions.
1466     */
1467
1468    /**
1469     * Set the disabled state of an Elementary object.
1470     *
1471     * @param obj The Elementary object to operate on
1472     * @param disabled The state to put in in: @c EINA_TRUE for
1473     *        disabled, @c EINA_FALSE for enabled
1474     *
1475     * Elementary objects can be @b disabled, in which state they won't
1476     * receive input and, in general, will be themed differently from
1477     * their normal state, usually greyed out. Useful for contexts
1478     * where you don't want your users to interact with some of the
1479     * parts of you interface.
1480     *
1481     * This sets the state for the widget, either disabling it or
1482     * enabling it back.
1483     *
1484     * @ingroup Styles
1485     */
1486    EAPI void         elm_object_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
1487
1488    /**
1489     * Get the disabled state of an Elementary object.
1490     *
1491     * @param obj The Elementary object to operate on
1492     * @return @c EINA_TRUE, if the widget is disabled, @c EINA_FALSE
1493     *            if it's enabled (or on errors)
1494     *
1495     * This gets the state of the widget, which might be enabled or disabled.
1496     *
1497     * @ingroup Styles
1498     */
1499    EAPI Eina_Bool    elm_object_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1500
1501    /**
1502     * @defgroup WidgetNavigation Widget Tree Navigation.
1503     *
1504     * How to check if an Evas Object is an Elementary widget? How to
1505     * get the first elementary widget that is parent of the given
1506     * object?  These are all covered in widget tree navigation.
1507     *
1508     * @ref general_functions_example_page "This" example contemplates
1509     * some of these functions.
1510     */
1511
1512    /**
1513     * Check if the given Evas Object is an Elementary widget.
1514     *
1515     * @param obj the object to query.
1516     * @return @c EINA_TRUE if it is an elementary widget variant,
1517     *         @c EINA_FALSE otherwise
1518     * @ingroup WidgetNavigation
1519     */
1520    EAPI Eina_Bool    elm_object_widget_check(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1521
1522    /**
1523     * Get the first parent of the given object that is an Elementary
1524     * widget.
1525     *
1526     * @param obj the Elementary object to query parent from.
1527     * @return the parent object that is an Elementary widget, or @c
1528     *         NULL, if it was not found.
1529     *
1530     * Use this to query for an object's parent widget.
1531     *
1532     * @note Most of Elementary users wouldn't be mixing non-Elementary
1533     * smart objects in the objects tree of an application, as this is
1534     * an advanced usage of Elementary with Evas. So, except for the
1535     * application's window, which is the root of that tree, all other
1536     * objects would have valid Elementary widget parents.
1537     *
1538     * @ingroup WidgetNavigation
1539     */
1540    EAPI Evas_Object *elm_object_parent_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1541
1542    /**
1543     * Get the top level parent of an Elementary widget.
1544     *
1545     * @param obj The object to query.
1546     * @return The top level Elementary widget, or @c NULL if parent cannot be
1547     * found.
1548     * @ingroup WidgetNavigation
1549     */
1550    EAPI Evas_Object *elm_object_top_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1551
1552    /**
1553     * Get the string that represents this Elementary widget.
1554     *
1555     * @note Elementary is weird and exposes itself as a single
1556     *       Evas_Object_Smart_Class of type "elm_widget", so
1557     *       evas_object_type_get() always return that, making debug and
1558     *       language bindings hard. This function tries to mitigate this
1559     *       problem, but the solution is to change Elementary to use
1560     *       proper inheritance.
1561     *
1562     * @param obj the object to query.
1563     * @return Elementary widget name, or @c NULL if not a valid widget.
1564     * @ingroup WidgetNavigation
1565     */
1566    EAPI const char  *elm_object_widget_type_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1567
1568    /**
1569     * @defgroup Config Elementary Config
1570     *
1571     * Elementary configuration is formed by a set options bounded to a
1572     * given @ref Profile profile, like @ref Theme theme, @ref Fingers
1573     * "finger size", etc. These are functions with which one syncronizes
1574     * changes made to those values to the configuration storing files, de
1575     * facto. You most probably don't want to use the functions in this
1576     * group unlees you're writing an elementary configuration manager.
1577     *
1578     * @{
1579     */
1580
1581    /**
1582     * Save back Elementary's configuration, so that it will persist on
1583     * future sessions.
1584     *
1585     * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
1586     * @ingroup Config
1587     *
1588     * This function will take effect -- thus, do I/O -- immediately. Use
1589     * it when you want to apply all configuration changes at once. The
1590     * current configuration set will get saved onto the current profile
1591     * configuration file.
1592     *
1593     */
1594    EAPI Eina_Bool    elm_config_save(void);
1595
1596    /**
1597     * Reload Elementary's configuration, bounded to current selected
1598     * profile.
1599     *
1600     * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
1601     * @ingroup Config
1602     *
1603     * Useful when you want to force reloading of configuration values for
1604     * a profile. If one removes user custom configuration directories,
1605     * for example, it will force a reload with system values insted.
1606     *
1607     */
1608    EAPI void         elm_config_reload(void);
1609
1610    /**
1611     * @}
1612     */
1613
1614    /**
1615     * @defgroup Profile Elementary Profile
1616     *
1617     * Profiles are pre-set options that affect the whole look-and-feel of
1618     * Elementary-based applications. There are, for example, profiles
1619     * aimed at desktop computer applications and others aimed at mobile,
1620     * touchscreen-based ones. You most probably don't want to use the
1621     * functions in this group unlees you're writing an elementary
1622     * configuration manager.
1623     *
1624     * @{
1625     */
1626
1627    /**
1628     * Get Elementary's profile in use.
1629     *
1630     * This gets the global profile that is applied to all Elementary
1631     * applications.
1632     *
1633     * @return The profile's name
1634     * @ingroup Profile
1635     */
1636    EAPI const char  *elm_profile_current_get(void);
1637
1638    /**
1639     * Get an Elementary's profile directory path in the filesystem. One
1640     * may want to fetch a system profile's dir or an user one (fetched
1641     * inside $HOME).
1642     *
1643     * @param profile The profile's name
1644     * @param is_user Whether to lookup for an user profile (@c EINA_TRUE)
1645     *                or a system one (@c EINA_FALSE)
1646     * @return The profile's directory path.
1647     * @ingroup Profile
1648     *
1649     * @note You must free it with elm_profile_dir_free().
1650     */
1651    EAPI const char  *elm_profile_dir_get(const char *profile, Eina_Bool is_user);
1652
1653    /**
1654     * Free an Elementary's profile directory path, as returned by
1655     * elm_profile_dir_get().
1656     *
1657     * @param p_dir The profile's path
1658     * @ingroup Profile
1659     *
1660     */
1661    EAPI void         elm_profile_dir_free(const char *p_dir);
1662
1663    /**
1664     * Get Elementary's list of available profiles.
1665     *
1666     * @return The profiles list. List node data are the profile name
1667     *         strings.
1668     * @ingroup Profile
1669     *
1670     * @note One must free this list, after usage, with the function
1671     *       elm_profile_list_free().
1672     */
1673    EAPI Eina_List   *elm_profile_list_get(void);
1674
1675    /**
1676     * Free Elementary's list of available profiles.
1677     *
1678     * @param l The profiles list, as returned by elm_profile_list_get().
1679     * @ingroup Profile
1680     *
1681     */
1682    EAPI void         elm_profile_list_free(Eina_List *l);
1683
1684    /**
1685     * Set Elementary's profile.
1686     *
1687     * This sets the global profile that is applied to Elementary
1688     * applications. Just the process the call comes from will be
1689     * affected.
1690     *
1691     * @param profile The profile's name
1692     * @ingroup Profile
1693     *
1694     */
1695    EAPI void         elm_profile_set(const char *profile);
1696
1697    /**
1698     * Set Elementary's profile.
1699     *
1700     * This sets the global profile that is applied to all Elementary
1701     * applications. All running Elementary windows will be affected.
1702     *
1703     * @param profile The profile's name
1704     * @ingroup Profile
1705     *
1706     */
1707    EAPI void         elm_profile_all_set(const char *profile);
1708
1709    /**
1710     * @}
1711     */
1712
1713    /**
1714     * @defgroup Engine Elementary Engine
1715     *
1716     * These are functions setting and querying which rendering engine
1717     * Elementary will use for drawing its windows' pixels.
1718     *
1719     * The following are the available engines:
1720     * @li "software_x11"
1721     * @li "fb"
1722     * @li "directfb"
1723     * @li "software_16_x11"
1724     * @li "software_8_x11"
1725     * @li "xrender_x11"
1726     * @li "opengl_x11"
1727     * @li "software_gdi"
1728     * @li "software_16_wince_gdi"
1729     * @li "sdl"
1730     * @li "software_16_sdl"
1731     * @li "opengl_sdl"
1732     * @li "buffer"
1733     *
1734     * @{
1735     */
1736
1737    /**
1738     * @brief Get Elementary's rendering engine in use.
1739     *
1740     * @return The rendering engine's name
1741     * @note there's no need to free the returned string, here.
1742     *
1743     * This gets the global rendering engine that is applied to all Elementary
1744     * applications.
1745     *
1746     * @see elm_engine_set()
1747     */
1748    EAPI const char  *elm_engine_current_get(void);
1749
1750    /**
1751     * @brief Set Elementary's rendering engine for use.
1752     *
1753     * @param engine The rendering engine's name
1754     *
1755     * This sets global rendering engine that is applied to all Elementary
1756     * applications. Note that it will take effect only to Elementary windows
1757     * created after this is called.
1758     *
1759     * @see elm_win_add()
1760     */
1761    EAPI void         elm_engine_set(const char *engine);
1762
1763    /**
1764     * @}
1765     */
1766
1767    /**
1768     * @defgroup Fonts Elementary Fonts
1769     *
1770     * These are functions dealing with font rendering, selection and the
1771     * like for Elementary applications. One might fetch which system
1772     * fonts are there to use and set custom fonts for individual classes
1773     * of UI items containing text (text classes).
1774     *
1775     * @{
1776     */
1777
1778   typedef struct _Elm_Text_Class
1779     {
1780        const char *name;
1781        const char *desc;
1782     } Elm_Text_Class;
1783
1784   typedef struct _Elm_Font_Overlay
1785     {
1786        const char     *text_class;
1787        const char     *font;
1788        Evas_Font_Size  size;
1789     } Elm_Font_Overlay;
1790
1791   typedef struct _Elm_Font_Properties
1792     {
1793        const char *name;
1794        Eina_List  *styles;
1795     } Elm_Font_Properties;
1796
1797    /**
1798     * Get Elementary's list of supported text classes.
1799     *
1800     * @return The text classes list, with @c Elm_Text_Class blobs as data.
1801     * @ingroup Fonts
1802     *
1803     * Release the list with elm_text_classes_list_free().
1804     */
1805    EAPI const Eina_List     *elm_text_classes_list_get(void);
1806
1807    /**
1808     * Free Elementary's list of supported text classes.
1809     *
1810     * @ingroup Fonts
1811     *
1812     * @see elm_text_classes_list_get().
1813     */
1814    EAPI void                 elm_text_classes_list_free(const Eina_List *list);
1815
1816    /**
1817     * Get Elementary's list of font overlays, set with
1818     * elm_font_overlay_set().
1819     *
1820     * @return The font overlays list, with @c Elm_Font_Overlay blobs as
1821     * data.
1822     *
1823     * @ingroup Fonts
1824     *
1825     * For each text class, one can set a <b>font overlay</b> for it,
1826     * overriding the default font properties for that class coming from
1827     * the theme in use. There is no need to free this list.
1828     *
1829     * @see elm_font_overlay_set() and elm_font_overlay_unset().
1830     */
1831    EAPI const Eina_List     *elm_font_overlay_list_get(void);
1832
1833    /**
1834     * Set a font overlay for a given Elementary text class.
1835     *
1836     * @param text_class Text class name
1837     * @param font Font name and style string
1838     * @param size Font size
1839     *
1840     * @ingroup Fonts
1841     *
1842     * @p font has to be in the format returned by
1843     * elm_font_fontconfig_name_get(). @see elm_font_overlay_list_get()
1844     * and elm_font_overlay_unset().
1845     */
1846    EAPI void                 elm_font_overlay_set(const char *text_class, const char *font, Evas_Font_Size size);
1847
1848    /**
1849     * Unset a font overlay for a given Elementary text class.
1850     *
1851     * @param text_class Text class name
1852     *
1853     * @ingroup Fonts
1854     *
1855     * This will bring back text elements belonging to text class
1856     * @p text_class back to their default font settings.
1857     */
1858    EAPI void                 elm_font_overlay_unset(const char *text_class);
1859
1860    /**
1861     * Apply the changes made with elm_font_overlay_set() and
1862     * elm_font_overlay_unset() on the current Elementary window.
1863     *
1864     * @ingroup Fonts
1865     *
1866     * This applies all font overlays set to all objects in the UI.
1867     */
1868    EAPI void                 elm_font_overlay_apply(void);
1869
1870    /**
1871     * Apply the changes made with elm_font_overlay_set() and
1872     * elm_font_overlay_unset() on all Elementary application windows.
1873     *
1874     * @ingroup Fonts
1875     *
1876     * This applies all font overlays set to all objects in the UI.
1877     */
1878    EAPI void                 elm_font_overlay_all_apply(void);
1879
1880    /**
1881     * Translate a font (family) name string in fontconfig's font names
1882     * syntax into an @c Elm_Font_Properties struct.
1883     *
1884     * @param font The font name and styles string
1885     * @return the font properties struct
1886     *
1887     * @ingroup Fonts
1888     *
1889     * @note The reverse translation can be achived with
1890     * elm_font_fontconfig_name_get(), for one style only (single font
1891     * instance, not family).
1892     */
1893    EAPI Elm_Font_Properties *elm_font_properties_get(const char *font) EINA_ARG_NONNULL(1);
1894
1895    /**
1896     * Free font properties return by elm_font_properties_get().
1897     *
1898     * @param efp the font properties struct
1899     *
1900     * @ingroup Fonts
1901     */
1902    EAPI void                 elm_font_properties_free(Elm_Font_Properties *efp) EINA_ARG_NONNULL(1);
1903
1904    /**
1905     * Translate a font name, bound to a style, into fontconfig's font names
1906     * syntax.
1907     *
1908     * @param name The font (family) name
1909     * @param style The given style (may be @c NULL)
1910     *
1911     * @return the font name and style string
1912     *
1913     * @ingroup Fonts
1914     *
1915     * @note The reverse translation can be achived with
1916     * elm_font_properties_get(), for one style only (single font
1917     * instance, not family).
1918     */
1919    EAPI const char          *elm_font_fontconfig_name_get(const char *name, const char *style) EINA_ARG_NONNULL(1);
1920
1921    /**
1922     * Free the font string return by elm_font_fontconfig_name_get().
1923     *
1924     * @param efp the font properties struct
1925     *
1926     * @ingroup Fonts
1927     */
1928    EAPI void                 elm_font_fontconfig_name_free(const char *name) EINA_ARG_NONNULL(1);
1929
1930    /**
1931     * Create a font hash table of available system fonts.
1932     *
1933     * One must call it with @p list being the return value of
1934     * evas_font_available_list(). The hash will be indexed by font
1935     * (family) names, being its values @c Elm_Font_Properties blobs.
1936     *
1937     * @param list The list of available system fonts, as returned by
1938     * evas_font_available_list().
1939     * @return the font hash.
1940     *
1941     * @ingroup Fonts
1942     *
1943     * @note The user is supposed to get it populated at least with 3
1944     * default font families (Sans, Serif, Monospace), which should be
1945     * present on most systems.
1946     */
1947    EAPI Eina_Hash           *elm_font_available_hash_add(Eina_List *list);
1948
1949    /**
1950     * Free the hash return by elm_font_available_hash_add().
1951     *
1952     * @param hash the hash to be freed.
1953     *
1954     * @ingroup Fonts
1955     */
1956    EAPI void                 elm_font_available_hash_del(Eina_Hash *hash);
1957
1958    /**
1959     * @}
1960     */
1961
1962    /**
1963     * @defgroup Fingers Fingers
1964     *
1965     * Elementary is designed to be finger-friendly for touchscreens,
1966     * and so in addition to scaling for display resolution, it can
1967     * also scale based on finger "resolution" (or size). You can then
1968     * customize the granularity of the areas meant to receive clicks
1969     * on touchscreens.
1970     *
1971     * Different profiles may have pre-set values for finger sizes.
1972     *
1973     * @ref general_functions_example_page "This" example contemplates
1974     * some of these functions.
1975     *
1976     * @{
1977     */
1978
1979    /**
1980     * Get the configured "finger size"
1981     *
1982     * @return The finger size
1983     *
1984     * This gets the globally configured finger size, <b>in pixels</b>
1985     *
1986     * @ingroup Fingers
1987     */
1988    EAPI Evas_Coord       elm_finger_size_get(void);
1989
1990    /**
1991     * Set the configured finger size
1992     *
1993     * This sets the globally configured finger size in pixels
1994     *
1995     * @param size The finger size
1996     * @ingroup Fingers
1997     */
1998    EAPI void             elm_finger_size_set(Evas_Coord size);
1999
2000    /**
2001     * Set the configured finger size for all applications on the display
2002     *
2003     * This sets the globally configured finger size in pixels for all
2004     * applications on the display
2005     *
2006     * @param size The finger size
2007     * @ingroup Fingers
2008     */
2009    EAPI void             elm_finger_size_all_set(Evas_Coord size);
2010
2011    /**
2012     * @}
2013     */
2014
2015    /**
2016     * @defgroup Focus Focus
2017     *
2018     * An Elementary application has, at all times, one (and only one)
2019     * @b focused object. This is what determines where the input
2020     * events go to within the application's window. Also, focused
2021     * objects can be decorated differently, in order to signal to the
2022     * user where the input is, at a given moment.
2023     *
2024     * Elementary applications also have the concept of <b>focus
2025     * chain</b>: one can cycle through all the windows' focusable
2026     * objects by input (tab key) or programmatically. The default
2027     * focus chain for an application is the one define by the order in
2028     * which the widgets where added in code. One will cycle through
2029     * top level widgets, and, for each one containg sub-objects, cycle
2030     * through them all, before returning to the level
2031     * above. Elementary also allows one to set @b custom focus chains
2032     * for their applications.
2033     *
2034     * Besides the focused decoration a widget may exhibit, when it
2035     * gets focus, Elementary has a @b global focus highlight object
2036     * that can be enabled for a window. If one chooses to do so, this
2037     * extra highlight effect will surround the current focused object,
2038     * too.
2039     *
2040     * @note Some Elementary widgets are @b unfocusable, after
2041     * creation, by their very nature: they are not meant to be
2042     * interacted with input events, but are there just for visual
2043     * purposes.
2044     *
2045     * @ref general_functions_example_page "This" example contemplates
2046     * some of these functions.
2047     */
2048
2049    /**
2050     * Get the enable status of the focus highlight
2051     *
2052     * This gets whether the highlight on focused objects is enabled or not
2053     * @ingroup Focus
2054     */
2055    EAPI Eina_Bool        elm_focus_highlight_enabled_get(void);
2056
2057    /**
2058     * Set the enable status of the focus highlight
2059     *
2060     * Set whether to show or not the highlight on focused objects
2061     * @param enable Enable highlight if EINA_TRUE, disable otherwise
2062     * @ingroup Focus
2063     */
2064    EAPI void             elm_focus_highlight_enabled_set(Eina_Bool enable);
2065
2066    /**
2067     * Get the enable status of the highlight animation
2068     *
2069     * Get whether the focus highlight, if enabled, will animate its switch from
2070     * one object to the next
2071     * @ingroup Focus
2072     */
2073    EAPI Eina_Bool        elm_focus_highlight_animate_get(void);
2074
2075    /**
2076     * Set the enable status of the highlight animation
2077     *
2078     * Set whether the focus highlight, if enabled, will animate its switch from
2079     * one object to the next
2080     * @param animate Enable animation if EINA_TRUE, disable otherwise
2081     * @ingroup Focus
2082     */
2083    EAPI void             elm_focus_highlight_animate_set(Eina_Bool animate);
2084
2085    /**
2086     * Get the whether an Elementary object has the focus or not.
2087     *
2088     * @param obj The Elementary object to get the information from
2089     * @return @c EINA_TRUE, if the object is focused, @c EINA_FALSE if
2090     *            not (and on errors).
2091     *
2092     * @see elm_object_focus_set()
2093     *
2094     * @ingroup Focus
2095     */
2096    EAPI Eina_Bool        elm_object_focus_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2097
2098    /**
2099     * Set/unset focus to a given Elementary object.
2100     *
2101     * @param obj The Elementary object to operate on.
2102     * @param enable @c EINA_TRUE Set focus to a given object,
2103     *               @c EINA_FALSE Unset focus to a given object.
2104     *
2105     * @note When you set focus to this object, if it can handle focus, will
2106     * take the focus away from the one who had it previously and will, for
2107     * now on, be the one receiving input events. Unsetting focus will remove
2108     * the focus from @p obj, passing it back to the previous element in the
2109     * focus chain list.
2110     *
2111     * @see elm_object_focus_get(), elm_object_focus_custom_chain_get()
2112     *
2113     * @ingroup Focus
2114     */
2115    EAPI void             elm_object_focus_set(Evas_Object *obj, Eina_Bool focus) EINA_ARG_NONNULL(1);
2116
2117    /**
2118     * Make a given Elementary object the focused one.
2119     *
2120     * @param obj The Elementary object to make focused.
2121     *
2122     * @note This object, if it can handle focus, will take the focus
2123     * away from the one who had it previously and will, for now on, be
2124     * the one receiving input events.
2125     *
2126     * @see elm_object_focus_get()
2127     * @deprecated use elm_object_focus_set() instead.
2128     *
2129     * @ingroup Focus
2130     */
2131    EINA_DEPRECATED EAPI void             elm_object_focus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2132
2133    /**
2134     * Remove the focus from an Elementary object
2135     *
2136     * @param obj The Elementary to take focus from
2137     *
2138     * This removes the focus from @p obj, passing it back to the
2139     * previous element in the focus chain list.
2140     *
2141     * @see elm_object_focus() and elm_object_focus_custom_chain_get()
2142     * @deprecated use elm_object_focus_set() instead.
2143     *
2144     * @ingroup Focus
2145     */
2146    EINA_DEPRECATED EAPI void             elm_object_unfocus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2147
2148    /**
2149     * Set the ability for an Element object to be focused
2150     *
2151     * @param obj The Elementary object to operate on
2152     * @param enable @c EINA_TRUE if the object can be focused, @c
2153     *        EINA_FALSE if not (and on errors)
2154     *
2155     * This sets whether the object @p obj is able to take focus or
2156     * not. Unfocusable objects do nothing when programmatically
2157     * focused, being the nearest focusable parent object the one
2158     * really getting focus. Also, when they receive mouse input, they
2159     * will get the event, but not take away the focus from where it
2160     * was previously.
2161     *
2162     * @ingroup Focus
2163     */
2164    EAPI void             elm_object_focus_allow_set(Evas_Object *obj, Eina_Bool enable) EINA_ARG_NONNULL(1);
2165
2166    /**
2167     * Get whether an Elementary object is focusable or not
2168     *
2169     * @param obj The Elementary object to operate on
2170     * @return @c EINA_TRUE if the object is allowed to be focused, @c
2171     *             EINA_FALSE if not (and on errors)
2172     *
2173     * @note Objects which are meant to be interacted with by input
2174     * events are created able to be focused, by default. All the
2175     * others are not.
2176     *
2177     * @ingroup Focus
2178     */
2179    EAPI Eina_Bool        elm_object_focus_allow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2180
2181    /**
2182     * Set custom focus chain.
2183     *
2184     * This function overwrites any previous custom focus chain within
2185     * the list of objects. The previous list will be deleted and this list
2186     * will be managed by elementary. After it is set, don't modify it.
2187     *
2188     * @note On focus cycle, only will be evaluated children of this container.
2189     *
2190     * @param obj The container object
2191     * @param objs Chain of objects to pass focus
2192     * @ingroup Focus
2193     */
2194    EAPI void             elm_object_focus_custom_chain_set(Evas_Object *obj, Eina_List *objs) EINA_ARG_NONNULL(1);
2195
2196    /**
2197     * Unset custom focus chain
2198     *
2199     * @param obj The container object
2200     * @ingroup Focus
2201     */
2202    EAPI void             elm_object_focus_custom_chain_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
2203
2204    /**
2205     * Get custom focus chain
2206     *
2207     * @param obj The container object
2208     * @ingroup Focus
2209     */
2210    EAPI const Eina_List *elm_object_focus_custom_chain_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2211
2212    /**
2213     * Append object to custom focus chain.
2214     *
2215     * @note If relative_child equal to NULL or not in custom chain, the object
2216     * will be added in end.
2217     *
2218     * @note On focus cycle, only will be evaluated children of this container.
2219     *
2220     * @param obj The container object
2221     * @param child The child to be added in custom chain
2222     * @param relative_child The relative object to position the child
2223     * @ingroup Focus
2224     */
2225    EAPI void             elm_object_focus_custom_chain_append(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2226
2227    /**
2228     * Prepend object to custom focus chain.
2229     *
2230     * @note If relative_child equal to NULL or not in custom chain, the object
2231     * will be added in begin.
2232     *
2233     * @note On focus cycle, only will be evaluated children of this container.
2234     *
2235     * @param obj The container object
2236     * @param child The child to be added in custom chain
2237     * @param relative_child The relative object to position the child
2238     * @ingroup Focus
2239     */
2240    EAPI void             elm_object_focus_custom_chain_prepend(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2241
2242    /**
2243     * Give focus to next object in object tree.
2244     *
2245     * Give focus to next object in focus chain of one object sub-tree.
2246     * If the last object of chain already have focus, the focus will go to the
2247     * first object of chain.
2248     *
2249     * @param obj The object root of sub-tree
2250     * @param dir Direction to cycle the focus
2251     *
2252     * @ingroup Focus
2253     */
2254    EAPI void             elm_object_focus_cycle(Evas_Object *obj, Elm_Focus_Direction dir) EINA_ARG_NONNULL(1);
2255
2256    /**
2257     * Give focus to near object in one direction.
2258     *
2259     * Give focus to near object in direction of one object.
2260     * If none focusable object in given direction, the focus will not change.
2261     *
2262     * @param obj The reference object
2263     * @param x Horizontal component of direction to focus
2264     * @param y Vertical component of direction to focus
2265     *
2266     * @ingroup Focus
2267     */
2268    EAPI void             elm_object_focus_direction_go(Evas_Object *obj, int x, int y) EINA_ARG_NONNULL(1);
2269
2270    /**
2271     * Make the elementary object and its children to be unfocusable
2272     * (or focusable).
2273     *
2274     * @param obj The Elementary object to operate on
2275     * @param tree_unfocusable @c EINA_TRUE for unfocusable,
2276     *        @c EINA_FALSE for focusable.
2277     *
2278     * This sets whether the object @p obj and its children objects
2279     * are able to take focus or not. If the tree is set as unfocusable,
2280     * newest focused object which is not in this tree will get focus.
2281     * This API can be helpful for an object to be deleted.
2282     * When an object will be deleted soon, it and its children may not
2283     * want to get focus (by focus reverting or by other focus controls).
2284     * Then, just use this API before deleting.
2285     *
2286     * @see elm_object_tree_unfocusable_get()
2287     *
2288     * @ingroup Focus
2289     */
2290    EAPI void             elm_object_tree_unfocusable_set(Evas_Object *obj, Eina_Bool tree_unfocusable); EINA_ARG_NONNULL(1);
2291
2292    /**
2293     * Get whether an Elementary object and its children are unfocusable or not.
2294     *
2295     * @param obj The Elementary object to get the information from
2296     * @return @c EINA_TRUE, if the tree is unfocussable,
2297     *         @c EINA_FALSE if not (and on errors).
2298     *
2299     * @see elm_object_tree_unfocusable_set()
2300     *
2301     * @ingroup Focus
2302     */
2303    EAPI Eina_Bool        elm_object_tree_unfocusable_get(const Evas_Object *obj); EINA_ARG_NONNULL(1);
2304
2305    /**
2306     * @defgroup Scrolling Scrolling
2307     *
2308     * These are functions setting how scrollable views in Elementary
2309     * widgets should behave on user interaction.
2310     *
2311     * @{
2312     */
2313
2314    /**
2315     * Get whether scrollers should bounce when they reach their
2316     * viewport's edge during a scroll.
2317     *
2318     * @return the thumb scroll bouncing state
2319     *
2320     * This is the default behavior for touch screens, in general.
2321     * @ingroup Scrolling
2322     */
2323    EAPI Eina_Bool        elm_scroll_bounce_enabled_get(void);
2324
2325    /**
2326     * Set whether scrollers should bounce when they reach their
2327     * viewport's edge during a scroll.
2328     *
2329     * @param enabled the thumb scroll bouncing state
2330     *
2331     * @see elm_thumbscroll_bounce_enabled_get()
2332     * @ingroup Scrolling
2333     */
2334    EAPI void             elm_scroll_bounce_enabled_set(Eina_Bool enabled);
2335
2336    /**
2337     * Set whether scrollers should bounce when they reach their
2338     * viewport's edge during a scroll, for all Elementary application
2339     * windows.
2340     *
2341     * @param enabled the thumb scroll bouncing state
2342     *
2343     * @see elm_thumbscroll_bounce_enabled_get()
2344     * @ingroup Scrolling
2345     */
2346    EAPI void             elm_scroll_bounce_enabled_all_set(Eina_Bool enabled);
2347
2348    /**
2349     * Get the amount of inertia a scroller will impose at bounce
2350     * animations.
2351     *
2352     * @return the thumb scroll bounce friction
2353     *
2354     * @ingroup Scrolling
2355     */
2356    EAPI double           elm_scroll_bounce_friction_get(void);
2357
2358    /**
2359     * Set the amount of inertia a scroller will impose at bounce
2360     * animations.
2361     *
2362     * @param friction the thumb scroll bounce friction
2363     *
2364     * @see elm_thumbscroll_bounce_friction_get()
2365     * @ingroup Scrolling
2366     */
2367    EAPI void             elm_scroll_bounce_friction_set(double friction);
2368
2369    /**
2370     * Set the amount of inertia a scroller will impose at bounce
2371     * animations, for all Elementary application windows.
2372     *
2373     * @param friction the thumb scroll bounce friction
2374     *
2375     * @see elm_thumbscroll_bounce_friction_get()
2376     * @ingroup Scrolling
2377     */
2378    EAPI void             elm_scroll_bounce_friction_all_set(double friction);
2379
2380    /**
2381     * Get the amount of inertia a <b>paged</b> scroller will impose at
2382     * page fitting animations.
2383     *
2384     * @return the page scroll friction
2385     *
2386     * @ingroup Scrolling
2387     */
2388    EAPI double           elm_scroll_page_scroll_friction_get(void);
2389
2390    /**
2391     * Set the amount of inertia a <b>paged</b> scroller will impose at
2392     * page fitting animations.
2393     *
2394     * @param friction the page scroll friction
2395     *
2396     * @see elm_thumbscroll_page_scroll_friction_get()
2397     * @ingroup Scrolling
2398     */
2399    EAPI void             elm_scroll_page_scroll_friction_set(double friction);
2400
2401    /**
2402     * Set the amount of inertia a <b>paged</b> scroller will impose at
2403     * page fitting animations, for all Elementary application windows.
2404     *
2405     * @param friction the page scroll friction
2406     *
2407     * @see elm_thumbscroll_page_scroll_friction_get()
2408     * @ingroup Scrolling
2409     */
2410    EAPI void             elm_scroll_page_scroll_friction_all_set(double friction);
2411
2412    /**
2413     * Get the amount of inertia a scroller will impose at region bring
2414     * animations.
2415     *
2416     * @return the bring in scroll friction
2417     *
2418     * @ingroup Scrolling
2419     */
2420    EAPI double           elm_scroll_bring_in_scroll_friction_get(void);
2421
2422    /**
2423     * Set the amount of inertia a scroller will impose at region bring
2424     * animations.
2425     *
2426     * @param friction the bring in scroll friction
2427     *
2428     * @see elm_thumbscroll_bring_in_scroll_friction_get()
2429     * @ingroup Scrolling
2430     */
2431    EAPI void             elm_scroll_bring_in_scroll_friction_set(double friction);
2432
2433    /**
2434     * Set the amount of inertia a scroller will impose at region bring
2435     * animations, for all Elementary application windows.
2436     *
2437     * @param friction the bring in scroll friction
2438     *
2439     * @see elm_thumbscroll_bring_in_scroll_friction_get()
2440     * @ingroup Scrolling
2441     */
2442    EAPI void             elm_scroll_bring_in_scroll_friction_all_set(double friction);
2443
2444    /**
2445     * Get the amount of inertia scrollers will impose at animations
2446     * triggered by Elementary widgets' zooming API.
2447     *
2448     * @return the zoom friction
2449     *
2450     * @ingroup Scrolling
2451     */
2452    EAPI double           elm_scroll_zoom_friction_get(void);
2453
2454    /**
2455     * Set the amount of inertia scrollers will impose at animations
2456     * triggered by Elementary widgets' zooming API.
2457     *
2458     * @param friction the zoom friction
2459     *
2460     * @see elm_thumbscroll_zoom_friction_get()
2461     * @ingroup Scrolling
2462     */
2463    EAPI void             elm_scroll_zoom_friction_set(double friction);
2464
2465    /**
2466     * Set the amount of inertia scrollers will impose at animations
2467     * triggered by Elementary widgets' zooming API, for all Elementary
2468     * application windows.
2469     *
2470     * @param friction the zoom friction
2471     *
2472     * @see elm_thumbscroll_zoom_friction_get()
2473     * @ingroup Scrolling
2474     */
2475    EAPI void             elm_scroll_zoom_friction_all_set(double friction);
2476
2477    /**
2478     * Get whether scrollers should be draggable from any point in their
2479     * views.
2480     *
2481     * @return the thumb scroll state
2482     *
2483     * @note This is the default behavior for touch screens, in general.
2484     * @note All other functions namespaced with "thumbscroll" will only
2485     *       have effect if this mode is enabled.
2486     *
2487     * @ingroup Scrolling
2488     */
2489    EAPI Eina_Bool        elm_scroll_thumbscroll_enabled_get(void);
2490
2491    /**
2492     * Set whether scrollers should be draggable from any point in their
2493     * views.
2494     *
2495     * @param enabled the thumb scroll state
2496     *
2497     * @see elm_thumbscroll_enabled_get()
2498     * @ingroup Scrolling
2499     */
2500    EAPI void             elm_scroll_thumbscroll_enabled_set(Eina_Bool enabled);
2501
2502    /**
2503     * Set whether scrollers should be draggable from any point in their
2504     * views, for all Elementary application windows.
2505     *
2506     * @param enabled the thumb scroll state
2507     *
2508     * @see elm_thumbscroll_enabled_get()
2509     * @ingroup Scrolling
2510     */
2511    EAPI void             elm_scroll_thumbscroll_enabled_all_set(Eina_Bool enabled);
2512
2513    /**
2514     * Get the number of pixels one should travel while dragging a
2515     * scroller's view to actually trigger scrolling.
2516     *
2517     * @return the thumb scroll threshould
2518     *
2519     * One would use higher values for touch screens, in general, because
2520     * of their inherent imprecision.
2521     * @ingroup Scrolling
2522     */
2523    EAPI unsigned int     elm_scroll_thumbscroll_threshold_get(void);
2524
2525    /**
2526     * Set the number of pixels one should travel while dragging a
2527     * scroller's view to actually trigger scrolling.
2528     *
2529     * @param threshold the thumb scroll threshould
2530     *
2531     * @see elm_thumbscroll_threshould_get()
2532     * @ingroup Scrolling
2533     */
2534    EAPI void             elm_scroll_thumbscroll_threshold_set(unsigned int threshold);
2535
2536    /**
2537     * Set the number of pixels one should travel while dragging a
2538     * scroller's view to actually trigger scrolling, for all Elementary
2539     * application windows.
2540     *
2541     * @param threshold the thumb scroll threshould
2542     *
2543     * @see elm_thumbscroll_threshould_get()
2544     * @ingroup Scrolling
2545     */
2546    EAPI void             elm_scroll_thumbscroll_threshold_all_set(unsigned int threshold);
2547
2548    /**
2549     * Get the minimum speed of mouse cursor movement which will trigger
2550     * list self scrolling animation after a mouse up event
2551     * (pixels/second).
2552     *
2553     * @return the thumb scroll momentum threshould
2554     *
2555     * @ingroup Scrolling
2556     */
2557    EAPI double           elm_scroll_thumbscroll_momentum_threshold_get(void);
2558
2559    /**
2560     * Set the minimum speed of mouse cursor movement which will trigger
2561     * list self scrolling animation after a mouse up event
2562     * (pixels/second).
2563     *
2564     * @param threshold the thumb scroll momentum threshould
2565     *
2566     * @see elm_thumbscroll_momentum_threshould_get()
2567     * @ingroup Scrolling
2568     */
2569    EAPI void             elm_scroll_thumbscroll_momentum_threshold_set(double threshold);
2570
2571    /**
2572     * Set the minimum speed of mouse cursor movement which will trigger
2573     * list self scrolling animation after a mouse up event
2574     * (pixels/second), for all Elementary application windows.
2575     *
2576     * @param threshold the thumb scroll momentum threshould
2577     *
2578     * @see elm_thumbscroll_momentum_threshould_get()
2579     * @ingroup Scrolling
2580     */
2581    EAPI void             elm_scroll_thumbscroll_momentum_threshold_all_set(double threshold);
2582
2583    /**
2584     * Get the amount of inertia a scroller will impose at self scrolling
2585     * animations.
2586     *
2587     * @return the thumb scroll friction
2588     *
2589     * @ingroup Scrolling
2590     */
2591    EAPI double           elm_scroll_thumbscroll_friction_get(void);
2592
2593    /**
2594     * Set the amount of inertia a scroller will impose at self scrolling
2595     * animations.
2596     *
2597     * @param friction the thumb scroll friction
2598     *
2599     * @see elm_thumbscroll_friction_get()
2600     * @ingroup Scrolling
2601     */
2602    EAPI void             elm_scroll_thumbscroll_friction_set(double friction);
2603
2604    /**
2605     * Set the amount of inertia a scroller will impose at self scrolling
2606     * animations, for all Elementary application windows.
2607     *
2608     * @param friction the thumb scroll friction
2609     *
2610     * @see elm_thumbscroll_friction_get()
2611     * @ingroup Scrolling
2612     */
2613    EAPI void             elm_scroll_thumbscroll_friction_all_set(double friction);
2614
2615    /**
2616     * Get the amount of lag between your actual mouse cursor dragging
2617     * movement and a scroller's view movement itself, while pushing it
2618     * into bounce state manually.
2619     *
2620     * @return the thumb scroll border friction
2621     *
2622     * @ingroup Scrolling
2623     */
2624    EAPI double           elm_scroll_thumbscroll_border_friction_get(void);
2625
2626    /**
2627     * Set the amount of lag between your actual mouse cursor dragging
2628     * movement and a scroller's view movement itself, while pushing it
2629     * into bounce state manually.
2630     *
2631     * @param friction the thumb scroll border friction. @c 0.0 for
2632     *        perfect synchrony between two movements, @c 1.0 for maximum
2633     *        lag.
2634     *
2635     * @see elm_thumbscroll_border_friction_get()
2636     * @note parameter value will get bound to 0.0 - 1.0 interval, always
2637     *
2638     * @ingroup Scrolling
2639     */
2640    EAPI void             elm_scroll_thumbscroll_border_friction_set(double friction);
2641
2642    /**
2643     * Set the amount of lag between your actual mouse cursor dragging
2644     * movement and a scroller's view movement itself, while pushing it
2645     * into bounce state manually, for all Elementary application windows.
2646     *
2647     * @param friction the thumb scroll border friction. @c 0.0 for
2648     *        perfect synchrony between two movements, @c 1.0 for maximum
2649     *        lag.
2650     *
2651     * @see elm_thumbscroll_border_friction_get()
2652     * @note parameter value will get bound to 0.0 - 1.0 interval, always
2653     *
2654     * @ingroup Scrolling
2655     */
2656    EAPI void             elm_scroll_thumbscroll_border_friction_all_set(double friction);
2657
2658    /**
2659     * @}
2660     */
2661
2662    /**
2663     * @defgroup Scrollhints Scrollhints
2664     *
2665     * Objects when inside a scroller can scroll, but this may not always be
2666     * desirable in certain situations. This allows an object to hint to itself
2667     * and parents to "not scroll" in one of 2 ways. If any chilkd object of a
2668     * scroller has pushed a scroll freeze or hold then it affects all parent
2669     * scrollers until all children have released them.
2670     *
2671     * 1. To hold on scrolling. This means just flicking and dragging may no
2672     * longer scroll, but pressing/dragging near an edge of the scroller will
2673     * still scroll. This is automatically used by the entry object when
2674     * selecting text.
2675     *
2676     * 2. To totally freeze scrolling. This means it stops. until
2677     * popped/released.
2678     *
2679     * @{
2680     */
2681
2682    /**
2683     * Push the scroll hold by 1
2684     *
2685     * This increments the scroll hold count by one. If it is more than 0 it will
2686     * take effect on the parents of the indicated object.
2687     *
2688     * @param obj The object
2689     * @ingroup Scrollhints
2690     */
2691    EAPI void             elm_object_scroll_hold_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
2692
2693    /**
2694     * Pop the scroll hold by 1
2695     *
2696     * This decrements the scroll hold count by one. If it is more than 0 it will
2697     * take effect on the parents of the indicated object.
2698     *
2699     * @param obj The object
2700     * @ingroup Scrollhints
2701     */
2702    EAPI void             elm_object_scroll_hold_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
2703
2704    /**
2705     * Push the scroll freeze by 1
2706     *
2707     * This increments the scroll freeze count by one. If it is more
2708     * than 0 it will take effect on the parents of the indicated
2709     * object.
2710     *
2711     * @param obj The object
2712     * @ingroup Scrollhints
2713     */
2714    EAPI void             elm_object_scroll_freeze_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
2715
2716    /**
2717     * Pop the scroll freeze by 1
2718     *
2719     * This decrements the scroll freeze count by one. If it is more
2720     * than 0 it will take effect on the parents of the indicated
2721     * object.
2722     *
2723     * @param obj The object
2724     * @ingroup Scrollhints
2725     */
2726    EAPI void             elm_object_scroll_freeze_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
2727
2728    /**
2729     * Lock the scrolling of the given widget (and thus all parents)
2730     *
2731     * This locks the given object from scrolling in the X axis (and implicitly
2732     * also locks all parent scrollers too from doing the same).
2733     *
2734     * @param obj The object
2735     * @param lock The lock state (1 == locked, 0 == unlocked)
2736     * @ingroup Scrollhints
2737     */
2738    EAPI void             elm_object_scroll_lock_x_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
2739
2740    /**
2741     * Lock the scrolling of the given widget (and thus all parents)
2742     *
2743     * This locks the given object from scrolling in the Y axis (and implicitly
2744     * also locks all parent scrollers too from doing the same).
2745     *
2746     * @param obj The object
2747     * @param lock The lock state (1 == locked, 0 == unlocked)
2748     * @ingroup Scrollhints
2749     */
2750    EAPI void             elm_object_scroll_lock_y_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
2751
2752    /**
2753     * Get the scrolling lock of the given widget
2754     *
2755     * This gets the lock for X axis scrolling.
2756     *
2757     * @param obj The object
2758     * @ingroup Scrollhints
2759     */
2760    EAPI Eina_Bool        elm_object_scroll_lock_x_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2761
2762    /**
2763     * Get the scrolling lock of the given widget
2764     *
2765     * This gets the lock for X axis scrolling.
2766     *
2767     * @param obj The object
2768     * @ingroup Scrollhints
2769     */
2770    EAPI Eina_Bool        elm_object_scroll_lock_y_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2771
2772    /**
2773     * @}
2774     */
2775
2776    /**
2777     * Send a signal to the widget edje object.
2778     *
2779     * This function sends a signal to the edje object of the obj. An
2780     * edje program can respond to a signal by specifying matching
2781     * 'signal' and 'source' fields.
2782     *
2783     * @param obj The object
2784     * @param emission The signal's name.
2785     * @param source The signal's source.
2786     * @ingroup General
2787     */
2788    EAPI void             elm_object_signal_emit(Evas_Object *obj, const char *emission, const char *source) EINA_ARG_NONNULL(1);
2789
2790    /**
2791     * Add a callback for a signal emitted by widget edje object.
2792     *
2793     * This function connects a callback function to a signal emitted by the
2794     * edje object of the obj.
2795     * Globs can occur in either the emission or source name.
2796     *
2797     * @param obj The object
2798     * @param emission The signal's name.
2799     * @param source The signal's source.
2800     * @param func The callback function to be executed when the signal is
2801     * emitted.
2802     * @param data A pointer to data to pass in to the callback function.
2803     * @ingroup General
2804     */
2805    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);
2806
2807    /**
2808     * Remove a signal-triggered callback from an widget edje object.
2809     *
2810     * This function removes a callback, previoulsy attached to a
2811     * signal emitted by the edje object of the obj.  The parameters
2812     * emission, source and func must match exactly those passed to a
2813     * previous call to elm_object_signal_callback_add(). The data
2814     * pointer that was passed to this call will be returned.
2815     *
2816     * @param obj The object
2817     * @param emission The signal's name.
2818     * @param source The signal's source.
2819     * @param func The callback function to be executed when the signal is
2820     * emitted.
2821     * @return The data pointer
2822     * @ingroup General
2823     */
2824    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);
2825
2826    /**
2827     * Add a callback for a event emitted by widget or their children.
2828     *
2829     * This function connects a callback function to any key_down key_up event
2830     * emitted by the @p obj or their children.
2831     * This only will be called if no other callback has consumed the event.
2832     * If you want consume the event, and no other get it, func should return
2833     * EINA_TRUE and put EVAS_EVENT_FLAG_ON_HOLD in event_flags.
2834     *
2835     * @warning Accept duplicated callback addition.
2836     *
2837     * @param obj The object
2838     * @param func The callback function to be executed when the event is
2839     * emitted.
2840     * @param data Data to pass in to the callback function.
2841     * @ingroup General
2842     */
2843    EAPI void             elm_object_event_callback_add(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
2844
2845    /**
2846     * Remove a event callback from an widget.
2847     *
2848     * This function removes a callback, previoulsy attached to event emission
2849     * by the @p obj.
2850     * The parameters func and data must match exactly those passed to
2851     * a previous call to elm_object_event_callback_add(). The data pointer that
2852     * was passed to this call will be returned.
2853     *
2854     * @param obj The object
2855     * @param func The callback function to be executed when the event is
2856     * emitted.
2857     * @param data Data to pass in to the callback function.
2858     * @return The data pointer
2859     * @ingroup General
2860     */
2861    EAPI void            *elm_object_event_callback_del(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
2862
2863    /**
2864     * Adjust size of an element for finger usage.
2865     *
2866     * @param times_w How many fingers should fit horizontally
2867     * @param w Pointer to the width size to adjust
2868     * @param times_h How many fingers should fit vertically
2869     * @param h Pointer to the height size to adjust
2870     *
2871     * This takes width and height sizes (in pixels) as input and a
2872     * size multiple (which is how many fingers you want to place
2873     * within the area, being "finger" the size set by
2874     * elm_finger_size_set()), and adjusts the size to be large enough
2875     * to accommodate the resulting size -- if it doesn't already
2876     * accommodate it. On return the @p w and @p h sizes pointed to by
2877     * these parameters will be modified, on those conditions.
2878     *
2879     * @note This is kind of a low level Elementary call, most useful
2880     * on size evaluation times for widgets. An external user wouldn't
2881     * be calling, most of the time.
2882     *
2883     * @ingroup Fingers
2884     */
2885    EAPI void             elm_coords_finger_size_adjust(int times_w, Evas_Coord *w, int times_h, Evas_Coord *h);
2886
2887    /**
2888     * Get the duration for occuring long press event.
2889     *
2890     * @return Timeout for long press event
2891     * @ingroup Longpress
2892     */
2893    EAPI double           elm_longpress_timeout_get(void);
2894
2895    /**
2896     * Set the duration for occuring long press event.
2897     *
2898     * @param lonpress_timeout Timeout for long press event
2899     * @ingroup Longpress
2900     */
2901    EAPI void             elm_longpress_timeout_set(double longpress_timeout);
2902
2903    /**
2904     * @defgroup Debug Debug
2905     * don't use it unless you are sure
2906     *
2907     * @{
2908     */
2909
2910    /**
2911     * Print Tree object hierarchy in stdout
2912     *
2913     * @param obj The root object
2914     * @ingroup Debug
2915     */
2916    EAPI void             elm_object_tree_dump(const Evas_Object *top);
2917
2918    /**
2919     * Print Elm Objects tree hierarchy in file as dot(graphviz) syntax.
2920     *
2921     * @param obj The root object
2922     * @param file The path of output file
2923     * @ingroup Debug
2924     */
2925    EAPI void             elm_object_tree_dot_dump(const Evas_Object *top, const char *file);
2926
2927    /**
2928     * @}
2929     */
2930
2931    /**
2932     * @defgroup Theme Theme
2933     *
2934     * Elementary uses Edje to theme its widgets, naturally. But for the most
2935     * part this is hidden behind a simpler interface that lets the user set
2936     * extensions and choose the style of widgets in a much easier way.
2937     *
2938     * Instead of thinking in terms of paths to Edje files and their groups
2939     * each time you want to change the appearance of a widget, Elementary
2940     * works so you can add any theme file with extensions or replace the
2941     * main theme at one point in the application, and then just set the style
2942     * of widgets with elm_object_style_set() and related functions. Elementary
2943     * will then look in its list of themes for a matching group and apply it,
2944     * and when the theme changes midway through the application, all widgets
2945     * will be updated accordingly.
2946     *
2947     * There are three concepts you need to know to understand how Elementary
2948     * theming works: default theme, extensions and overlays.
2949     *
2950     * Default theme, obviously enough, is the one that provides the default
2951     * look of all widgets. End users can change the theme used by Elementary
2952     * by setting the @c ELM_THEME environment variable before running an
2953     * application, or globally for all programs using the @c elementary_config
2954     * utility. Applications can change the default theme using elm_theme_set(),
2955     * but this can go against the user wishes, so it's not an adviced practice.
2956     *
2957     * Ideally, applications should find everything they need in the already
2958     * provided theme, but there may be occasions when that's not enough and
2959     * custom styles are required to correctly express the idea. For this
2960     * cases, Elementary has extensions.
2961     *
2962     * Extensions allow the application developer to write styles of its own
2963     * to apply to some widgets. This requires knowledge of how each widget
2964     * is themed, as extensions will always replace the entire group used by
2965     * the widget, so important signals and parts need to be there for the
2966     * object to behave properly (see documentation of Edje for details).
2967     * Once the theme for the extension is done, the application needs to add
2968     * it to the list of themes Elementary will look into, using
2969     * elm_theme_extension_add(), and set the style of the desired widgets as
2970     * he would normally with elm_object_style_set().
2971     *
2972     * Overlays, on the other hand, can replace the look of all widgets by
2973     * overriding the default style. Like extensions, it's up to the application
2974     * developer to write the theme for the widgets it wants, the difference
2975     * being that when looking for the theme, Elementary will check first the
2976     * list of overlays, then the set theme and lastly the list of extensions,
2977     * so with overlays it's possible to replace the default view and every
2978     * widget will be affected. This is very much alike to setting the whole
2979     * theme for the application and will probably clash with the end user
2980     * options, not to mention the risk of ending up with not matching styles
2981     * across the program. Unless there's a very special reason to use them,
2982     * overlays should be avoided for the resons exposed before.
2983     *
2984     * All these theme lists are handled by ::Elm_Theme instances. Elementary
2985     * keeps one default internally and every function that receives one of
2986     * these can be called with NULL to refer to this default (except for
2987     * elm_theme_free()). It's possible to create a new instance of a
2988     * ::Elm_Theme to set other theme for a specific widget (and all of its
2989     * children), but this is as discouraged, if not even more so, than using
2990     * overlays. Don't use this unless you really know what you are doing.
2991     *
2992     * But to be less negative about things, you can look at the following
2993     * examples:
2994     * @li @ref theme_example_01 "Using extensions"
2995     * @li @ref theme_example_02 "Using overlays"
2996     *
2997     * @{
2998     */
2999    /**
3000     * @typedef Elm_Theme
3001     *
3002     * Opaque handler for the list of themes Elementary looks for when
3003     * rendering widgets.
3004     *
3005     * Stay out of this unless you really know what you are doing. For most
3006     * cases, sticking to the default is all a developer needs.
3007     */
3008    typedef struct _Elm_Theme Elm_Theme;
3009
3010    /**
3011     * Create a new specific theme
3012     *
3013     * This creates an empty specific theme that only uses the default theme. A
3014     * specific theme has its own private set of extensions and overlays too
3015     * (which are empty by default). Specific themes do not fall back to themes
3016     * of parent objects. They are not intended for this use. Use styles, overlays
3017     * and extensions when needed, but avoid specific themes unless there is no
3018     * other way (example: you want to have a preview of a new theme you are
3019     * selecting in a "theme selector" window. The preview is inside a scroller
3020     * and should display what the theme you selected will look like, but not
3021     * actually apply it yet. The child of the scroller will have a specific
3022     * theme set to show this preview before the user decides to apply it to all
3023     * applications).
3024     */
3025    EAPI Elm_Theme       *elm_theme_new(void);
3026    /**
3027     * Free a specific theme
3028     *
3029     * @param th The theme to free
3030     *
3031     * This frees a theme created with elm_theme_new().
3032     */
3033    EAPI void             elm_theme_free(Elm_Theme *th);
3034    /**
3035     * Copy the theme fom the source to the destination theme
3036     *
3037     * @param th The source theme to copy from
3038     * @param thdst The destination theme to copy data to
3039     *
3040     * This makes a one-time static copy of all the theme config, extensions
3041     * and overlays from @p th to @p thdst. If @p th references a theme, then
3042     * @p thdst is also set to reference it, with all the theme settings,
3043     * overlays and extensions that @p th had.
3044     */
3045    EAPI void             elm_theme_copy(Elm_Theme *th, Elm_Theme *thdst);
3046    /**
3047     * Tell the source theme to reference the ref theme
3048     *
3049     * @param th The theme that will do the referencing
3050     * @param thref The theme that is the reference source
3051     *
3052     * This clears @p th to be empty and then sets it to refer to @p thref
3053     * so @p th acts as an override to @p thref, but where its overrides
3054     * don't apply, it will fall through to @p thref for configuration.
3055     */
3056    EAPI void             elm_theme_ref_set(Elm_Theme *th, Elm_Theme *thref);
3057    /**
3058     * Return the theme referred to
3059     *
3060     * @param th The theme to get the reference from
3061     * @return The referenced theme handle
3062     *
3063     * This gets the theme set as the reference theme by elm_theme_ref_set().
3064     * If no theme is set as a reference, NULL is returned.
3065     */
3066    EAPI Elm_Theme       *elm_theme_ref_get(Elm_Theme *th);
3067    /**
3068     * Return the default theme
3069     *
3070     * @return The default theme handle
3071     *
3072     * This returns the internal default theme setup handle that all widgets
3073     * use implicitly unless a specific theme is set. This is also often use
3074     * as a shorthand of NULL.
3075     */
3076    EAPI Elm_Theme       *elm_theme_default_get(void);
3077    /**
3078     * Prepends a theme overlay to the list of overlays
3079     *
3080     * @param th The theme to add to, or if NULL, the default theme
3081     * @param item The Edje file path to be used
3082     *
3083     * Use this if your application needs to provide some custom overlay theme
3084     * (An Edje file that replaces some default styles of widgets) where adding
3085     * new styles, or changing system theme configuration is not possible. Do
3086     * NOT use this instead of a proper system theme configuration. Use proper
3087     * configuration files, profiles, environment variables etc. to set a theme
3088     * so that the theme can be altered by simple confiugration by a user. Using
3089     * this call to achieve that effect is abusing the API and will create lots
3090     * of trouble.
3091     *
3092     * @see elm_theme_extension_add()
3093     */
3094    EAPI void             elm_theme_overlay_add(Elm_Theme *th, const char *item);
3095    /**
3096     * Delete a theme overlay from the list of overlays
3097     *
3098     * @param th The theme to delete from, or if NULL, the default theme
3099     * @param item The name of the theme overlay
3100     *
3101     * @see elm_theme_overlay_add()
3102     */
3103    EAPI void             elm_theme_overlay_del(Elm_Theme *th, const char *item);
3104    /**
3105     * Appends a theme extension to the list of extensions.
3106     *
3107     * @param th The theme to add to, or if NULL, the default theme
3108     * @param item The Edje file path to be used
3109     *
3110     * This is intended when an application needs more styles of widgets or new
3111     * widget themes that the default does not provide (or may not provide). The
3112     * application has "extended" usage by coming up with new custom style names
3113     * for widgets for specific uses, but as these are not "standard", they are
3114     * not guaranteed to be provided by a default theme. This means the
3115     * application is required to provide these extra elements itself in specific
3116     * Edje files. This call adds one of those Edje files to the theme search
3117     * path to be search after the default theme. The use of this call is
3118     * encouraged when default styles do not meet the needs of the application.
3119     * Use this call instead of elm_theme_overlay_add() for almost all cases.
3120     *
3121     * @see elm_object_style_set()
3122     */
3123    EAPI void             elm_theme_extension_add(Elm_Theme *th, const char *item);
3124    /**
3125     * Deletes a theme extension from the list of extensions.
3126     *
3127     * @param th The theme to delete from, or if NULL, the default theme
3128     * @param item The name of the theme extension
3129     *
3130     * @see elm_theme_extension_add()
3131     */
3132    EAPI void             elm_theme_extension_del(Elm_Theme *th, const char *item);
3133    /**
3134     * Set the theme search order for the given theme
3135     *
3136     * @param th The theme to set the search order, or if NULL, the default theme
3137     * @param theme Theme search string
3138     *
3139     * This sets the search string for the theme in path-notation from first
3140     * theme to search, to last, delimited by the : character. Example:
3141     *
3142     * "shiny:/path/to/file.edj:default"
3143     *
3144     * See the ELM_THEME environment variable for more information.
3145     *
3146     * @see elm_theme_get()
3147     * @see elm_theme_list_get()
3148     */
3149    EAPI void             elm_theme_set(Elm_Theme *th, const char *theme);
3150    /**
3151     * Return the theme search order
3152     *
3153     * @param th The theme to get the search order, or if NULL, the default theme
3154     * @return The internal search order path
3155     *
3156     * This function returns a colon separated string of theme elements as
3157     * returned by elm_theme_list_get().
3158     *
3159     * @see elm_theme_set()
3160     * @see elm_theme_list_get()
3161     */
3162    EAPI const char      *elm_theme_get(Elm_Theme *th);
3163    /**
3164     * Return a list of theme elements to be used in a theme.
3165     *
3166     * @param th Theme to get the list of theme elements from.
3167     * @return The internal list of theme elements
3168     *
3169     * This returns the internal list of theme elements (will only be valid as
3170     * long as the theme is not modified by elm_theme_set() or theme is not
3171     * freed by elm_theme_free(). This is a list of strings which must not be
3172     * altered as they are also internal. If @p th is NULL, then the default
3173     * theme element list is returned.
3174     *
3175     * A theme element can consist of a full or relative path to a .edj file,
3176     * or a name, without extension, for a theme to be searched in the known
3177     * theme paths for Elemementary.
3178     *
3179     * @see elm_theme_set()
3180     * @see elm_theme_get()
3181     */
3182    EAPI const Eina_List *elm_theme_list_get(const Elm_Theme *th);
3183    /**
3184     * Return the full patrh for a theme element
3185     *
3186     * @param f The theme element name
3187     * @param in_search_path Pointer to a boolean to indicate if item is in the search path or not
3188     * @return The full path to the file found.
3189     *
3190     * This returns a string you should free with free() on success, NULL on
3191     * failure. This will search for the given theme element, and if it is a
3192     * full or relative path element or a simple searchable name. The returned
3193     * path is the full path to the file, if searched, and the file exists, or it
3194     * is simply the full path given in the element or a resolved path if
3195     * relative to home. The @p in_search_path boolean pointed to is set to
3196     * EINA_TRUE if the file was a searchable file andis in the search path,
3197     * and EINA_FALSE otherwise.
3198     */
3199    EAPI char            *elm_theme_list_item_path_get(const char *f, Eina_Bool *in_search_path);
3200    /**
3201     * Flush the current theme.
3202     *
3203     * @param th Theme to flush
3204     *
3205     * This flushes caches that let elementary know where to find theme elements
3206     * in the given theme. If @p th is NULL, then the default theme is flushed.
3207     * Call this function if source theme data has changed in such a way as to
3208     * make any caches Elementary kept invalid.
3209     */
3210    EAPI void             elm_theme_flush(Elm_Theme *th);
3211    /**
3212     * This flushes all themes (default and specific ones).
3213     *
3214     * This will flush all themes in the current application context, by calling
3215     * elm_theme_flush() on each of them.
3216     */
3217    EAPI void             elm_theme_full_flush(void);
3218    /**
3219     * Set the theme for all elementary using applications on the current display
3220     *
3221     * @param theme The name of the theme to use. Format same as the ELM_THEME
3222     * environment variable.
3223     */
3224    EAPI void             elm_theme_all_set(const char *theme);
3225    /**
3226     * Return a list of theme elements in the theme search path
3227     *
3228     * @return A list of strings that are the theme element names.
3229     *
3230     * This lists all available theme files in the standard Elementary search path
3231     * for theme elements, and returns them in alphabetical order as theme
3232     * element names in a list of strings. Free this with
3233     * elm_theme_name_available_list_free() when you are done with the list.
3234     */
3235    EAPI Eina_List       *elm_theme_name_available_list_new(void);
3236    /**
3237     * Free the list returned by elm_theme_name_available_list_new()
3238     *
3239     * This frees the list of themes returned by
3240     * elm_theme_name_available_list_new(). Once freed the list should no longer
3241     * be used. a new list mys be created.
3242     */
3243    EAPI void             elm_theme_name_available_list_free(Eina_List *list);
3244    /**
3245     * Set a specific theme to be used for this object and its children
3246     *
3247     * @param obj The object to set the theme on
3248     * @param th The theme to set
3249     *
3250     * This sets a specific theme that will be used for the given object and any
3251     * child objects it has. If @p th is NULL then the theme to be used is
3252     * cleared and the object will inherit its theme from its parent (which
3253     * ultimately will use the default theme if no specific themes are set).
3254     *
3255     * Use special themes with great care as this will annoy users and make
3256     * configuration difficult. Avoid any custom themes at all if it can be
3257     * helped.
3258     */
3259    EAPI void             elm_object_theme_set(Evas_Object *obj, Elm_Theme *th) EINA_ARG_NONNULL(1);
3260    /**
3261     * Get the specific theme to be used
3262     *
3263     * @param obj The object to get the specific theme from
3264     * @return The specifc theme set.
3265     *
3266     * This will return a specific theme set, or NULL if no specific theme is
3267     * set on that object. It will not return inherited themes from parents, only
3268     * the specific theme set for that specific object. See elm_object_theme_set()
3269     * for more information.
3270     */
3271    EAPI Elm_Theme       *elm_object_theme_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3272    /**
3273     * @}
3274     */
3275
3276    /* win */
3277    /** @defgroup Win Win
3278     *
3279     * @image html img/widget/win/preview-00.png
3280     * @image latex img/widget/win/preview-00.eps
3281     *
3282     * The window class of Elementary.  Contains functions to manipulate
3283     * windows. The Evas engine used to render the window contents is specified
3284     * in the system or user elementary config files (whichever is found last),
3285     * and can be overridden with the ELM_ENGINE environment variable for
3286     * testing.  Engines that may be supported (depending on Evas and Ecore-Evas
3287     * compilation setup and modules actually installed at runtime) are (listed
3288     * in order of best supported and most likely to be complete and work to
3289     * lowest quality).
3290     *
3291     * @li "x11", "x", "software-x11", "software_x11" (Software rendering in X11)
3292     * @li "gl", "opengl", "opengl-x11", "opengl_x11" (OpenGL or OpenGL-ES2
3293     * rendering in X11)
3294     * @li "shot:..." (Virtual screenshot renderer - renders to output file and
3295     * exits)
3296     * @li "fb", "software-fb", "software_fb" (Linux framebuffer direct software
3297     * rendering)
3298     * @li "sdl", "software-sdl", "software_sdl" (SDL software rendering to SDL
3299     * buffer)
3300     * @li "gl-sdl", "gl_sdl", "opengl-sdl", "opengl_sdl" (OpenGL or OpenGL-ES2
3301     * rendering using SDL as the buffer)
3302     * @li "gdi", "software-gdi", "software_gdi" (Windows WIN32 rendering via
3303     * GDI with software)
3304     * @li "dfb", "directfb" (Rendering to a DirectFB window)
3305     * @li "x11-8", "x8", "software-8-x11", "software_8_x11" (Rendering in
3306     * grayscale using dedicated 8bit software engine in X11)
3307     * @li "x11-16", "x16", "software-16-x11", "software_16_x11" (Rendering in
3308     * X11 using 16bit software engine)
3309     * @li "wince-gdi", "software-16-wince-gdi", "software_16_wince_gdi"
3310     * (Windows CE rendering via GDI with 16bit software renderer)
3311     * @li "sdl-16", "software-16-sdl", "software_16_sdl" (Rendering to SDL
3312     * buffer with 16bit software renderer)
3313     *
3314     * All engines use a simple string to select the engine to render, EXCEPT
3315     * the "shot" engine. This actually encodes the output of the virtual
3316     * screenshot and how long to delay in the engine string. The engine string
3317     * is encoded in the following way:
3318     *
3319     *   "shot:[delay=XX][:][repeat=DDD][:][file=XX]"
3320     *
3321     * Where options are separated by a ":" char if more than one option is
3322     * given, with delay, if provided being the first option and file the last
3323     * (order is important). The delay specifies how long to wait after the
3324     * window is shown before doing the virtual "in memory" rendering and then
3325     * save the output to the file specified by the file option (and then exit).
3326     * If no delay is given, the default is 0.5 seconds. If no file is given the
3327     * default output file is "out.png". Repeat option is for continous
3328     * capturing screenshots. Repeat range is from 1 to 999 and filename is
3329     * fixed to "out001.png" Some examples of using the shot engine:
3330     *
3331     *   ELM_ENGINE="shot:delay=1.0:repeat=5:file=elm_test.png" elementary_test
3332     *   ELM_ENGINE="shot:delay=1.0:file=elm_test.png" elementary_test
3333     *   ELM_ENGINE="shot:file=elm_test2.png" elementary_test
3334     *   ELM_ENGINE="shot:delay=2.0" elementary_test
3335     *   ELM_ENGINE="shot:" elementary_test
3336     *
3337     * Signals that you can add callbacks for are:
3338     *
3339     * @li "delete,request": the user requested to close the window. See
3340     * elm_win_autodel_set().
3341     * @li "focus,in": window got focus
3342     * @li "focus,out": window lost focus
3343     * @li "moved": window that holds the canvas was moved
3344     *
3345     * Examples:
3346     * @li @ref win_example_01
3347     *
3348     * @{
3349     */
3350    /**
3351     * Defines the types of window that can be created
3352     *
3353     * These are hints set on the window so that a running Window Manager knows
3354     * how the window should be handled and/or what kind of decorations it
3355     * should have.
3356     *
3357     * Currently, only the X11 backed engines use them.
3358     */
3359    typedef enum _Elm_Win_Type
3360      {
3361         ELM_WIN_BASIC, /**< A normal window. Indicates a normal, top-level
3362                          window. Almost every window will be created with this
3363                          type. */
3364         ELM_WIN_DIALOG_BASIC, /**< Used for simple dialog windows/ */
3365         ELM_WIN_DESKTOP, /**< For special desktop windows, like a background
3366                            window holding desktop icons. */
3367         ELM_WIN_DOCK, /**< The window is used as a dock or panel. Usually would
3368                         be kept on top of any other window by the Window
3369                         Manager. */
3370         ELM_WIN_TOOLBAR, /**< The window is used to hold a floating toolbar, or
3371                            similar. */
3372         ELM_WIN_MENU, /**< Similar to #ELM_WIN_TOOLBAR. */
3373         ELM_WIN_UTILITY, /**< A persistent utility window, like a toolbox or
3374                            pallete. */
3375         ELM_WIN_SPLASH, /**< Splash window for a starting up application. */
3376         ELM_WIN_DROPDOWN_MENU, /**< The window is a dropdown menu, as when an
3377                                  entry in a menubar is clicked. Typically used
3378                                  with elm_win_override_set(). This hint exists
3379                                  for completion only, as the EFL way of
3380                                  implementing a menu would not normally use a
3381                                  separate window for its contents. */
3382         ELM_WIN_POPUP_MENU, /**< Like #ELM_WIN_DROPDOWN_MENU, but for the menu
3383                               triggered by right-clicking an object. */
3384         ELM_WIN_TOOLTIP, /**< The window is a tooltip. A short piece of
3385                            explanatory text that typically appear after the
3386                            mouse cursor hovers over an object for a while.
3387                            Typically used with elm_win_override_set() and also
3388                            not very commonly used in the EFL. */
3389         ELM_WIN_NOTIFICATION, /**< A notification window, like a warning about
3390                                 battery life or a new E-Mail received. */
3391         ELM_WIN_COMBO, /**< A window holding the contents of a combo box. Not
3392                          usually used in the EFL. */
3393         ELM_WIN_DND, /**< Used to indicate the window is a representation of an
3394                        object being dragged across different windows, or even
3395                        applications. Typically used with
3396                        elm_win_override_set(). */
3397         ELM_WIN_INLINED_IMAGE, /**< The window is rendered onto an image
3398                                  buffer. No actual window is created for this
3399                                  type, instead the window and all of its
3400                                  contents will be rendered to an image buffer.
3401                                  This allows to have children window inside a
3402                                  parent one just like any other object would
3403                                  be, and do other things like applying @c
3404                                  Evas_Map effects to it. This is the only type
3405                                  of window that requires the @c parent
3406                                  parameter of elm_win_add() to be a valid @c
3407                                  Evas_Object. */
3408      } Elm_Win_Type;
3409
3410    /**
3411     * The differents layouts that can be requested for the virtual keyboard.
3412     *
3413     * When the application window is being managed by Illume, it may request
3414     * any of the following layouts for the virtual keyboard.
3415     */
3416    typedef enum _Elm_Win_Keyboard_Mode
3417      {
3418         ELM_WIN_KEYBOARD_UNKNOWN, /**< Unknown keyboard state */
3419         ELM_WIN_KEYBOARD_OFF, /**< Request to deactivate the keyboard */
3420         ELM_WIN_KEYBOARD_ON, /**< Enable keyboard with default layout */
3421         ELM_WIN_KEYBOARD_ALPHA, /**< Alpha (a-z) keyboard layout */
3422         ELM_WIN_KEYBOARD_NUMERIC, /**< Numeric keyboard layout */
3423         ELM_WIN_KEYBOARD_PIN, /**< PIN keyboard layout */
3424         ELM_WIN_KEYBOARD_PHONE_NUMBER, /**< Phone keyboard layout */
3425         ELM_WIN_KEYBOARD_HEX, /**< Hexadecimal numeric keyboard layout */
3426         ELM_WIN_KEYBOARD_TERMINAL, /**< Full (QUERTY) keyboard layout */
3427         ELM_WIN_KEYBOARD_PASSWORD, /**< Password keyboard layout */
3428         ELM_WIN_KEYBOARD_IP, /**< IP keyboard layout */
3429         ELM_WIN_KEYBOARD_HOST, /**< Host keyboard layout */
3430         ELM_WIN_KEYBOARD_FILE, /**< File keyboard layout */
3431         ELM_WIN_KEYBOARD_URL, /**< URL keyboard layout */
3432         ELM_WIN_KEYBOARD_KEYPAD, /**< Keypad layout */
3433         ELM_WIN_KEYBOARD_J2ME /**< J2ME keyboard layout */
3434      } Elm_Win_Keyboard_Mode;
3435
3436    /**
3437     * Available commands that can be sent to the Illume manager.
3438     *
3439     * When running under an Illume session, a window may send commands to the
3440     * Illume manager to perform different actions.
3441     */
3442    typedef enum _Elm_Illume_Command
3443      {
3444         ELM_ILLUME_COMMAND_FOCUS_BACK, /**< Reverts focus to the previous
3445                                          window */
3446         ELM_ILLUME_COMMAND_FOCUS_FORWARD, /**< Sends focus to the next window\
3447                                             in the list */
3448         ELM_ILLUME_COMMAND_FOCUS_HOME, /**< Hides all windows to show the Home
3449                                          screen */
3450         ELM_ILLUME_COMMAND_CLOSE /**< Closes the currently active window */
3451      } Elm_Illume_Command;
3452
3453    /**
3454     * Adds a window object. If this is the first window created, pass NULL as
3455     * @p parent.
3456     *
3457     * @param parent Parent object to add the window to, or NULL
3458     * @param name The name of the window
3459     * @param type The window type, one of #Elm_Win_Type.
3460     *
3461     * The @p parent paramter can be @c NULL for every window @p type except
3462     * #ELM_WIN_INLINED_IMAGE, which needs a parent to retrieve the canvas on
3463     * which the image object will be created.
3464     *
3465     * @return The created object, or NULL on failure
3466     */
3467    EAPI Evas_Object *elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type);
3468    /**
3469     * Add @p subobj as a resize object of window @p obj.
3470     *
3471     *
3472     * Setting an object as a resize object of the window means that the
3473     * @p subobj child's size and position will be controlled by the window
3474     * directly. That is, the object will be resized to match the window size
3475     * and should never be moved or resized manually by the developer.
3476     *
3477     * In addition, resize objects of the window control what the minimum size
3478     * of it will be, as well as whether it can or not be resized by the user.
3479     *
3480     * For the end user to be able to resize a window by dragging the handles
3481     * or borders provided by the Window Manager, or using any other similar
3482     * mechanism, all of the resize objects in the window should have their
3483     * evas_object_size_hint_weight_set() set to EVAS_HINT_EXPAND.
3484     *
3485     * @param obj The window object
3486     * @param subobj The resize object to add
3487     */
3488    EAPI void         elm_win_resize_object_add(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
3489    /**
3490     * Delete @p subobj as a resize object of window @p obj.
3491     *
3492     * This function removes the object @p subobj from the resize objects of
3493     * the window @p obj. It will not delete the object itself, which will be
3494     * left unmanaged and should be deleted by the developer, manually handled
3495     * or set as child of some other container.
3496     *
3497     * @param obj The window object
3498     * @param subobj The resize object to add
3499     */
3500    EAPI void         elm_win_resize_object_del(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
3501    /**
3502     * Set the title of the window
3503     *
3504     * @param obj The window object
3505     * @param title The title to set
3506     */
3507    EAPI void         elm_win_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
3508    /**
3509     * Get the title of the window
3510     *
3511     * The returned string is an internal one and should not be freed or
3512     * modified. It will also be rendered invalid if a new title is set or if
3513     * the window is destroyed.
3514     *
3515     * @param obj The window object
3516     * @return The title
3517     */
3518    EAPI const char  *elm_win_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3519    /**
3520     * Set the window's autodel state.
3521     *
3522     * When closing the window in any way outside of the program control, like
3523     * pressing the X button in the titlebar or using a command from the
3524     * Window Manager, a "delete,request" signal is emitted to indicate that
3525     * this event occurred and the developer can take any action, which may
3526     * include, or not, destroying the window object.
3527     *
3528     * When the @p autodel parameter is set, the window will be automatically
3529     * destroyed when this event occurs, after the signal is emitted.
3530     * If @p autodel is @c EINA_FALSE, then the window will not be destroyed
3531     * and is up to the program to do so when it's required.
3532     *
3533     * @param obj The window object
3534     * @param autodel If true, the window will automatically delete itself when
3535     * closed
3536     */
3537    EAPI void         elm_win_autodel_set(Evas_Object *obj, Eina_Bool autodel) EINA_ARG_NONNULL(1);
3538    /**
3539     * Get the window's autodel state.
3540     *
3541     * @param obj The window object
3542     * @return If the window will automatically delete itself when closed
3543     *
3544     * @see elm_win_autodel_set()
3545     */
3546    EAPI Eina_Bool    elm_win_autodel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3547    /**
3548     * Activate a window object.
3549     *
3550     * This function sends a request to the Window Manager to activate the
3551     * window pointed by @p obj. If honored by the WM, the window will receive
3552     * the keyboard focus.
3553     *
3554     * @note This is just a request that a Window Manager may ignore, so calling
3555     * this function does not ensure in any way that the window will be the
3556     * active one after it.
3557     *
3558     * @param obj The window object
3559     */
3560    EAPI void         elm_win_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
3561    /**
3562     * Lower a window object.
3563     *
3564     * Places the window pointed by @p obj at the bottom of the stack, so that
3565     * no other window is covered by it.
3566     *
3567     * If elm_win_override_set() is not set, the Window Manager may ignore this
3568     * request.
3569     *
3570     * @param obj The window object
3571     */
3572    EAPI void         elm_win_lower(Evas_Object *obj) EINA_ARG_NONNULL(1);
3573    /**
3574     * Raise a window object.
3575     *
3576     * Places the window pointed by @p obj at the top of the stack, so that it's
3577     * not covered by any other window.
3578     *
3579     * If elm_win_override_set() is not set, the Window Manager may ignore this
3580     * request.
3581     *
3582     * @param obj The window object
3583     */
3584    EAPI void         elm_win_raise(Evas_Object *obj) EINA_ARG_NONNULL(1);
3585    /**
3586     * Set the borderless state of a window.
3587     *
3588     * This function requests the Window Manager to not draw any decoration
3589     * around the window.
3590     *
3591     * @param obj The window object
3592     * @param borderless If true, the window is borderless
3593     */
3594    EAPI void         elm_win_borderless_set(Evas_Object *obj, Eina_Bool borderless) EINA_ARG_NONNULL(1);
3595    /**
3596     * Get the borderless state of a window.
3597     *
3598     * @param obj The window object
3599     * @return If true, the window is borderless
3600     */
3601    EAPI Eina_Bool    elm_win_borderless_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3602    /**
3603     * Set the shaped state of a window.
3604     *
3605     * Shaped windows, when supported, will render the parts of the window that
3606     * has no content, transparent.
3607     *
3608     * If @p shaped is EINA_FALSE, then it is strongly adviced to have some
3609     * background object or cover the entire window in any other way, or the
3610     * parts of the canvas that have no data will show framebuffer artifacts.
3611     *
3612     * @param obj The window object
3613     * @param shaped If true, the window is shaped
3614     *
3615     * @see elm_win_alpha_set()
3616     */
3617    EAPI void         elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped) EINA_ARG_NONNULL(1);
3618    /**
3619     * Get the shaped state of a window.
3620     *
3621     * @param obj The window object
3622     * @return If true, the window is shaped
3623     *
3624     * @see elm_win_shaped_set()
3625     */
3626    EAPI Eina_Bool    elm_win_shaped_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3627    /**
3628     * Set the alpha channel state of a window.
3629     *
3630     * If @p alpha is EINA_TRUE, the alpha channel of the canvas will be enabled
3631     * possibly making parts of the window completely or partially transparent.
3632     * This is also subject to the underlying system supporting it, like for
3633     * example, running under a compositing manager. If no compositing is
3634     * available, enabling this option will instead fallback to using shaped
3635     * windows, with elm_win_shaped_set().
3636     *
3637     * @param obj The window object
3638     * @param alpha If true, the window has an alpha channel
3639     *
3640     * @see elm_win_alpha_set()
3641     */
3642    EAPI void         elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
3643    /**
3644     * Get the transparency state of a window.
3645     *
3646     * @param obj The window object
3647     * @return If true, the window is transparent
3648     *
3649     * @see elm_win_transparent_set()
3650     */
3651    EAPI Eina_Bool    elm_win_transparent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3652    /**
3653     * Set the transparency state of a window.
3654     *
3655     * Use elm_win_alpha_set() instead.
3656     *
3657     * @param obj The window object
3658     * @param transparent If true, the window is transparent
3659     *
3660     * @see elm_win_alpha_set()
3661     */
3662    EAPI void         elm_win_transparent_set(Evas_Object *obj, Eina_Bool transparent) EINA_ARG_NONNULL(1);
3663    /**
3664     * Get the alpha channel state of a window.
3665     *
3666     * @param obj The window object
3667     * @return If true, the window has an alpha channel
3668     */
3669    EAPI Eina_Bool    elm_win_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3670    /**
3671     * Set the override state of a window.
3672     *
3673     * A window with @p override set to EINA_TRUE will not be managed by the
3674     * Window Manager. This means that no decorations of any kind will be shown
3675     * for it, moving and resizing must be handled by the application, as well
3676     * as the window visibility.
3677     *
3678     * This should not be used for normal windows, and even for not so normal
3679     * ones, it should only be used when there's a good reason and with a lot
3680     * of care. Mishandling override windows may result situations that
3681     * disrupt the normal workflow of the end user.
3682     *
3683     * @param obj The window object
3684     * @param override If true, the window is overridden
3685     */
3686    EAPI void         elm_win_override_set(Evas_Object *obj, Eina_Bool override) EINA_ARG_NONNULL(1);
3687    /**
3688     * Get the override state of a window.
3689     *
3690     * @param obj The window object
3691     * @return If true, the window is overridden
3692     *
3693     * @see elm_win_override_set()
3694     */
3695    EAPI Eina_Bool    elm_win_override_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3696    /**
3697     * Set the fullscreen state of a window.
3698     *
3699     * @param obj The window object
3700     * @param fullscreen If true, the window is fullscreen
3701     */
3702    EAPI void         elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen) EINA_ARG_NONNULL(1);
3703    /**
3704     * Get the fullscreen state of a window.
3705     *
3706     * @param obj The window object
3707     * @return If true, the window is fullscreen
3708     */
3709    EAPI Eina_Bool    elm_win_fullscreen_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3710    /**
3711     * Set the maximized state of a window.
3712     *
3713     * @param obj The window object
3714     * @param maximized If true, the window is maximized
3715     */
3716    EAPI void         elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized) EINA_ARG_NONNULL(1);
3717    /**
3718     * Get the maximized state of a window.
3719     *
3720     * @param obj The window object
3721     * @return If true, the window is maximized
3722     */
3723    EAPI Eina_Bool    elm_win_maximized_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3724    /**
3725     * Set the iconified state of a window.
3726     *
3727     * @param obj The window object
3728     * @param iconified If true, the window is iconified
3729     */
3730    EAPI void         elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified) EINA_ARG_NONNULL(1);
3731    /**
3732     * Get the iconified state of a window.
3733     *
3734     * @param obj The window object
3735     * @return If true, the window is iconified
3736     */
3737    EAPI Eina_Bool    elm_win_iconified_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3738    /**
3739     * Set the layer of the window.
3740     *
3741     * What this means exactly will depend on the underlying engine used.
3742     *
3743     * In the case of X11 backed engines, the value in @p layer has the
3744     * following meanings:
3745     * @li < 3: The window will be placed below all others.
3746     * @li > 5: The window will be placed above all others.
3747     * @li other: The window will be placed in the default layer.
3748     *
3749     * @param obj The window object
3750     * @param layer The layer of the window
3751     */
3752    EAPI void         elm_win_layer_set(Evas_Object *obj, int layer) EINA_ARG_NONNULL(1);
3753    /**
3754     * Get the layer of the window.
3755     *
3756     * @param obj The window object
3757     * @return The layer of the window
3758     *
3759     * @see elm_win_layer_set()
3760     */
3761    EAPI int          elm_win_layer_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3762    /**
3763     * Set the rotation of the window.
3764     *
3765     * Most engines only work with multiples of 90.
3766     *
3767     * This function is used to set the orientation of the window @p obj to
3768     * match that of the screen. The window itself will be resized to adjust
3769     * to the new geometry of its contents. If you want to keep the window size,
3770     * see elm_win_rotation_with_resize_set().
3771     *
3772     * @param obj The window object
3773     * @param rotation The rotation of the window, in degrees (0-360),
3774     * counter-clockwise.
3775     */
3776    EAPI void         elm_win_rotation_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
3777    /**
3778     * Rotates the window and resizes it.
3779     *
3780     * Like elm_win_rotation_set(), but it also resizes the window's contents so
3781     * that they fit inside the current window geometry.
3782     *
3783     * @param obj The window object
3784     * @param layer The rotation of the window in degrees (0-360),
3785     * counter-clockwise.
3786     */
3787    EAPI void         elm_win_rotation_with_resize_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
3788    /**
3789     * Get the rotation of the window.
3790     *
3791     * @param obj The window object
3792     * @return The rotation of the window in degrees (0-360)
3793     *
3794     * @see elm_win_rotation_set()
3795     * @see elm_win_rotation_with_resize_set()
3796     */
3797    EAPI int          elm_win_rotation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3798    /**
3799     * Set the sticky state of the window.
3800     *
3801     * Hints the Window Manager that the window in @p obj should be left fixed
3802     * at its position even when the virtual desktop it's on moves or changes.
3803     *
3804     * @param obj The window object
3805     * @param sticky If true, the window's sticky state is enabled
3806     */
3807    EAPI void         elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky) EINA_ARG_NONNULL(1);
3808    /**
3809     * Get the sticky state of the window.
3810     *
3811     * @param obj The window object
3812     * @return If true, the window's sticky state is enabled
3813     *
3814     * @see elm_win_sticky_set()
3815     */
3816    EAPI Eina_Bool    elm_win_sticky_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3817    /**
3818     * Set if this window is an illume conformant window
3819     *
3820     * @param obj The window object
3821     * @param conformant The conformant flag (1 = conformant, 0 = non-conformant)
3822     */
3823    EAPI void         elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant) EINA_ARG_NONNULL(1);
3824    /**
3825     * Get if this window is an illume conformant window
3826     *
3827     * @param obj The window object
3828     * @return A boolean if this window is illume conformant or not
3829     */
3830    EAPI Eina_Bool    elm_win_conformant_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3831    /**
3832     * Set a window to be an illume quickpanel window
3833     *
3834     * By default window objects are not quickpanel windows.
3835     *
3836     * @param obj The window object
3837     * @param quickpanel The quickpanel flag (1 = quickpanel, 0 = normal window)
3838     */
3839    EAPI void         elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel) EINA_ARG_NONNULL(1);
3840    /**
3841     * Get if this window is a quickpanel or not
3842     *
3843     * @param obj The window object
3844     * @return A boolean if this window is a quickpanel or not
3845     */
3846    EAPI Eina_Bool    elm_win_quickpanel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3847    /**
3848     * Set the major priority of a quickpanel window
3849     *
3850     * @param obj The window object
3851     * @param priority The major priority for this quickpanel
3852     */
3853    EAPI void         elm_win_quickpanel_priority_major_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
3854    /**
3855     * Get the major priority of a quickpanel window
3856     *
3857     * @param obj The window object
3858     * @return The major priority of this quickpanel
3859     */
3860    EAPI int          elm_win_quickpanel_priority_major_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3861    /**
3862     * Set the minor priority of a quickpanel window
3863     *
3864     * @param obj The window object
3865     * @param priority The minor priority for this quickpanel
3866     */
3867    EAPI void         elm_win_quickpanel_priority_minor_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
3868    /**
3869     * Get the minor priority of a quickpanel window
3870     *
3871     * @param obj The window object
3872     * @return The minor priority of this quickpanel
3873     */
3874    EAPI int          elm_win_quickpanel_priority_minor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3875    /**
3876     * Set which zone this quickpanel should appear in
3877     *
3878     * @param obj The window object
3879     * @param zone The requested zone for this quickpanel
3880     */
3881    EAPI void         elm_win_quickpanel_zone_set(Evas_Object *obj, int zone) EINA_ARG_NONNULL(1);
3882    /**
3883     * Get which zone this quickpanel should appear in
3884     *
3885     * @param obj The window object
3886     * @return The requested zone for this quickpanel
3887     */
3888    EAPI int          elm_win_quickpanel_zone_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3889    /**
3890     * Set the window to be skipped by keyboard focus
3891     *
3892     * This sets the window to be skipped by normal keyboard input. This means
3893     * a window manager will be asked to not focus this window as well as omit
3894     * it from things like the taskbar, pager, "alt-tab" list etc. etc.
3895     *
3896     * Call this and enable it on a window BEFORE you show it for the first time,
3897     * otherwise it may have no effect.
3898     *
3899     * Use this for windows that have only output information or might only be
3900     * interacted with by the mouse or fingers, and never for typing input.
3901     * Be careful that this may have side-effects like making the window
3902     * non-accessible in some cases unless the window is specially handled. Use
3903     * this with care.
3904     *
3905     * @param obj The window object
3906     * @param skip The skip flag state (EINA_TRUE if it is to be skipped)
3907     */
3908    EAPI void         elm_win_prop_focus_skip_set(Evas_Object *obj, Eina_Bool skip) EINA_ARG_NONNULL(1);
3909    /**
3910     * Send a command to the windowing environment
3911     *
3912     * This is intended to work in touchscreen or small screen device
3913     * environments where there is a more simplistic window management policy in
3914     * place. This uses the window object indicated to select which part of the
3915     * environment to control (the part that this window lives in), and provides
3916     * a command and an optional parameter structure (use NULL for this if not
3917     * needed).
3918     *
3919     * @param obj The window object that lives in the environment to control
3920     * @param command The command to send
3921     * @param params Optional parameters for the command
3922     */
3923    EAPI void         elm_win_illume_command_send(Evas_Object *obj, Elm_Illume_Command command, void *params) EINA_ARG_NONNULL(1);
3924    /**
3925     * Get the inlined image object handle
3926     *
3927     * When you create a window with elm_win_add() of type ELM_WIN_INLINED_IMAGE,
3928     * then the window is in fact an evas image object inlined in the parent
3929     * canvas. You can get this object (be careful to not manipulate it as it
3930     * is under control of elementary), and use it to do things like get pixel
3931     * data, save the image to a file, etc.
3932     *
3933     * @param obj The window object to get the inlined image from
3934     * @return The inlined image object, or NULL if none exists
3935     */
3936    EAPI Evas_Object *elm_win_inlined_image_object_get(Evas_Object *obj);
3937    /**
3938     * Set the enabled status for the focus highlight in a window
3939     *
3940     * This function will enable or disable the focus highlight only for the
3941     * given window, regardless of the global setting for it
3942     *
3943     * @param obj The window where to enable the highlight
3944     * @param enabled The enabled value for the highlight
3945     */
3946    EAPI void         elm_win_focus_highlight_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
3947    /**
3948     * Get the enabled value of the focus highlight for this window
3949     *
3950     * @param obj The window in which to check if the focus highlight is enabled
3951     *
3952     * @return EINA_TRUE if enabled, EINA_FALSE otherwise
3953     */
3954    EAPI Eina_Bool    elm_win_focus_highlight_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3955    /**
3956     * Set the style for the focus highlight on this window
3957     *
3958     * Sets the style to use for theming the highlight of focused objects on
3959     * the given window. If @p style is NULL, the default will be used.
3960     *
3961     * @param obj The window where to set the style
3962     * @param style The style to set
3963     */
3964    EAPI void         elm_win_focus_highlight_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
3965    /**
3966     * Get the style set for the focus highlight object
3967     *
3968     * Gets the style set for this windows highilght object, or NULL if none
3969     * is set.
3970     *
3971     * @param obj The window to retrieve the highlights style from
3972     *
3973     * @return The style set or NULL if none was. Default is used in that case.
3974     */
3975    EAPI const char  *elm_win_focus_highlight_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3976    /*...
3977     * ecore_x_icccm_hints_set -> accepts_focus (add to ecore_evas)
3978     * ecore_x_icccm_hints_set -> window_group (add to ecore_evas)
3979     * ecore_x_icccm_size_pos_hints_set -> request_pos (add to ecore_evas)
3980     * ecore_x_icccm_client_leader_set -> l (add to ecore_evas)
3981     * ecore_x_icccm_window_role_set -> role (add to ecore_evas)
3982     * ecore_x_icccm_transient_for_set -> forwin (add to ecore_evas)
3983     * ecore_x_netwm_window_type_set -> type (add to ecore_evas)
3984     *
3985     * (add to ecore_x) set netwm argb icon! (add to ecore_evas)
3986     * (blank mouse, private mouse obj, defaultmouse)
3987     *
3988     */
3989    /**
3990     * Sets the keyboard mode of the window.
3991     *
3992     * @param obj The window object
3993     * @param mode The mode to set, one of #Elm_Win_Keyboard_Mode
3994     */
3995    EAPI void                  elm_win_keyboard_mode_set(Evas_Object *obj, Elm_Win_Keyboard_Mode mode) EINA_ARG_NONNULL(1);
3996    /**
3997     * Gets the keyboard mode of the window.
3998     *
3999     * @param obj The window object
4000     * @return The mode, one of #Elm_Win_Keyboard_Mode
4001     */
4002    EAPI Elm_Win_Keyboard_Mode elm_win_keyboard_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4003    /**
4004     * Sets whether the window is a keyboard.
4005     *
4006     * @param obj The window object
4007     * @param is_keyboard If true, the window is a virtual keyboard
4008     */
4009    EAPI void                  elm_win_keyboard_win_set(Evas_Object *obj, Eina_Bool is_keyboard) EINA_ARG_NONNULL(1);
4010    /**
4011     * Gets whether the window is a keyboard.
4012     *
4013     * @param obj The window object
4014     * @return If the window is a virtual keyboard
4015     */
4016    EAPI Eina_Bool             elm_win_keyboard_win_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4017
4018    /**
4019     * Get the screen position of a window.
4020     *
4021     * @param obj The window object
4022     * @param x The int to store the x coordinate to
4023     * @param y The int to store the y coordinate to
4024     */
4025    EAPI void                  elm_win_screen_position_get(const Evas_Object *obj, int *x, int *y) EINA_ARG_NONNULL(1);
4026    /**
4027     * @}
4028     */
4029
4030    /**
4031     * @defgroup Inwin Inwin
4032     *
4033     * @image html img/widget/inwin/preview-00.png
4034     * @image latex img/widget/inwin/preview-00.eps
4035     * @image html img/widget/inwin/preview-01.png
4036     * @image latex img/widget/inwin/preview-01.eps
4037     * @image html img/widget/inwin/preview-02.png
4038     * @image latex img/widget/inwin/preview-02.eps
4039     *
4040     * An inwin is a window inside a window that is useful for a quick popup.
4041     * It does not hover.
4042     *
4043     * It works by creating an object that will occupy the entire window, so it
4044     * must be created using an @ref Win "elm_win" as parent only. The inwin
4045     * object can be hidden or restacked below every other object if it's
4046     * needed to show what's behind it without destroying it. If this is done,
4047     * the elm_win_inwin_activate() function can be used to bring it back to
4048     * full visibility again.
4049     *
4050     * There are three styles available in the default theme. These are:
4051     * @li default: The inwin is sized to take over most of the window it's
4052     * placed in.
4053     * @li minimal: The size of the inwin will be the minimum necessary to show
4054     * its contents.
4055     * @li minimal_vertical: Horizontally, the inwin takes as much space as
4056     * possible, but it's sized vertically the most it needs to fit its\
4057     * contents.
4058     *
4059     * Some examples of Inwin can be found in the following:
4060     * @li @ref inwin_example_01
4061     *
4062     * @{
4063     */
4064    /**
4065     * Adds an inwin to the current window
4066     *
4067     * The @p obj used as parent @b MUST be an @ref Win "Elementary Window".
4068     * Never call this function with anything other than the top-most window
4069     * as its parameter, unless you are fond of undefined behavior.
4070     *
4071     * After creating the object, the widget will set itself as resize object
4072     * for the window with elm_win_resize_object_add(), so when shown it will
4073     * appear to cover almost the entire window (how much of it depends on its
4074     * content and the style used). It must not be added into other container
4075     * objects and it needs not be moved or resized manually.
4076     *
4077     * @param parent The parent object
4078     * @return The new object or NULL if it cannot be created
4079     */
4080    EAPI Evas_Object          *elm_win_inwin_add(Evas_Object *obj) EINA_ARG_NONNULL(1);
4081    /**
4082     * Activates an inwin object, ensuring its visibility
4083     *
4084     * This function will make sure that the inwin @p obj is completely visible
4085     * by calling evas_object_show() and evas_object_raise() on it, to bring it
4086     * to the front. It also sets the keyboard focus to it, which will be passed
4087     * onto its content.
4088     *
4089     * The object's theme will also receive the signal "elm,action,show" with
4090     * source "elm".
4091     *
4092     * @param obj The inwin to activate
4093     */
4094    EAPI void                  elm_win_inwin_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
4095    /**
4096     * Set the content of an inwin object.
4097     *
4098     * Once the content object is set, a previously set one will be deleted.
4099     * If you want to keep that old content object, use the
4100     * elm_win_inwin_content_unset() function.
4101     *
4102     * @param obj The inwin object
4103     * @param content The object to set as content
4104     */
4105    EAPI void                  elm_win_inwin_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
4106    /**
4107     * Get the content of an inwin object.
4108     *
4109     * Return the content object which is set for this widget.
4110     *
4111     * The returned object is valid as long as the inwin is still alive and no
4112     * other content is set on it. Deleting the object will notify the inwin
4113     * about it and this one will be left empty.
4114     *
4115     * If you need to remove an inwin's content to be reused somewhere else,
4116     * see elm_win_inwin_content_unset().
4117     *
4118     * @param obj The inwin object
4119     * @return The content that is being used
4120     */
4121    EAPI Evas_Object          *elm_win_inwin_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4122    /**
4123     * Unset the content of an inwin object.
4124     *
4125     * Unparent and return the content object which was set for this widget.
4126     *
4127     * @param obj The inwin object
4128     * @return The content that was being used
4129     */
4130    EAPI Evas_Object          *elm_win_inwin_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4131    /**
4132     * @}
4133     */
4134    /* X specific calls - won't work on non-x engines (return 0) */
4135
4136    /**
4137     * Get the Ecore_X_Window of an Evas_Object
4138     *
4139     * @param obj The object
4140     *
4141     * @return The Ecore_X_Window of @p obj
4142     *
4143     * @ingroup Win
4144     */
4145    EAPI Ecore_X_Window elm_win_xwindow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4146
4147    /* smart callbacks called:
4148     * "delete,request" - the user requested to delete the window
4149     * "focus,in" - window got focus
4150     * "focus,out" - window lost focus
4151     * "moved" - window that holds the canvas was moved
4152     */
4153
4154    /**
4155     * @defgroup Bg Bg
4156     *
4157     * @image html img/widget/bg/preview-00.png
4158     * @image latex img/widget/bg/preview-00.eps
4159     *
4160     * @brief Background object, used for setting a solid color, image or Edje
4161     * group as background to a window or any container object.
4162     *
4163     * The bg object is used for setting a solid background to a window or
4164     * packing into any container object. It works just like an image, but has
4165     * some properties useful to a background, like setting it to tiled,
4166     * centered, scaled or stretched.
4167     *
4168     * Here is some sample code using it:
4169     * @li @ref bg_01_example_page
4170     * @li @ref bg_02_example_page
4171     * @li @ref bg_03_example_page
4172     */
4173
4174    /* bg */
4175    typedef enum _Elm_Bg_Option
4176      {
4177         ELM_BG_OPTION_CENTER,  /**< center the background */
4178         ELM_BG_OPTION_SCALE,   /**< scale the background retaining aspect ratio */
4179         ELM_BG_OPTION_STRETCH, /**< stretch the background to fill */
4180         ELM_BG_OPTION_TILE     /**< tile background at its original size */
4181      } Elm_Bg_Option;
4182
4183    /**
4184     * Add a new background to the parent
4185     *
4186     * @param parent The parent object
4187     * @return The new object or NULL if it cannot be created
4188     *
4189     * @ingroup Bg
4190     */
4191    EAPI Evas_Object  *elm_bg_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4192
4193    /**
4194     * Set the file (image or edje) used for the background
4195     *
4196     * @param obj The bg object
4197     * @param file The file path
4198     * @param group Optional key (group in Edje) within the file
4199     *
4200     * This sets the image file used in the background object. The image (or edje)
4201     * will be stretched (retaining aspect if its an image file) to completely fill
4202     * the bg object. This may mean some parts are not visible.
4203     *
4204     * @note  Once the image of @p obj is set, a previously set one will be deleted,
4205     * even if @p file is NULL.
4206     *
4207     * @ingroup Bg
4208     */
4209    EAPI void          elm_bg_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
4210
4211    /**
4212     * Get the file (image or edje) used for the background
4213     *
4214     * @param obj The bg object
4215     * @param file The file path
4216     * @param group Optional key (group in Edje) within the file
4217     *
4218     * @ingroup Bg
4219     */
4220    EAPI void          elm_bg_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4221
4222    /**
4223     * Set the option used for the background image
4224     *
4225     * @param obj The bg object
4226     * @param option The desired background option (TILE, SCALE)
4227     *
4228     * This sets the option used for manipulating the display of the background
4229     * image. The image can be tiled or scaled.
4230     *
4231     * @ingroup Bg
4232     */
4233    EAPI void          elm_bg_option_set(Evas_Object *obj, Elm_Bg_Option option) EINA_ARG_NONNULL(1);
4234
4235    /**
4236     * Get the option used for the background image
4237     *
4238     * @param obj The bg object
4239     * @return The desired background option (CENTER, SCALE, STRETCH or TILE)
4240     *
4241     * @ingroup Bg
4242     */
4243    EAPI Elm_Bg_Option elm_bg_option_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4244    /**
4245     * Set the option used for the background color
4246     *
4247     * @param obj The bg object
4248     * @param r
4249     * @param g
4250     * @param b
4251     *
4252     * This sets the color used for the background rectangle. Its range goes
4253     * from 0 to 255.
4254     *
4255     * @ingroup Bg
4256     */
4257    EAPI void          elm_bg_color_set(Evas_Object *obj, int r, int g, int b) EINA_ARG_NONNULL(1);
4258    /**
4259     * Get the option used for the background color
4260     *
4261     * @param obj The bg object
4262     * @param r
4263     * @param g
4264     * @param b
4265     *
4266     * @ingroup Bg
4267     */
4268    EAPI void          elm_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b) EINA_ARG_NONNULL(1);
4269
4270    /**
4271     * Set the overlay object used for the background object.
4272     *
4273     * @param obj The bg object
4274     * @param overlay The overlay object
4275     *
4276     * This provides a way for elm_bg to have an 'overlay' that will be on top
4277     * of the bg. Once the over object is set, a previously set one will be
4278     * deleted, even if you set the new one to NULL. If you want to keep that
4279     * old content object, use the elm_bg_overlay_unset() function.
4280     *
4281     * @ingroup Bg
4282     */
4283
4284    EAPI void          elm_bg_overlay_set(Evas_Object *obj, Evas_Object *overlay) EINA_ARG_NONNULL(1);
4285
4286    /**
4287     * Get the overlay object used for the background object.
4288     *
4289     * @param obj The bg object
4290     * @return The content that is being used
4291     *
4292     * Return the content object which is set for this widget
4293     *
4294     * @ingroup Bg
4295     */
4296    EAPI Evas_Object  *elm_bg_overlay_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4297
4298    /**
4299     * Get the overlay object used for the background object.
4300     *
4301     * @param obj The bg object
4302     * @return The content that was being used
4303     *
4304     * Unparent and return the overlay object which was set for this widget
4305     *
4306     * @ingroup Bg
4307     */
4308    EAPI Evas_Object  *elm_bg_overlay_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4309
4310    /**
4311     * Set the size of the pixmap representation of the image.
4312     *
4313     * This option just makes sense if an image is going to be set in the bg.
4314     *
4315     * @param obj The bg object
4316     * @param w The new width of the image pixmap representation.
4317     * @param h The new height of the image pixmap representation.
4318     *
4319     * This function sets a new size for pixmap representation of the given bg
4320     * image. It allows the image to be loaded already in the specified size,
4321     * reducing the memory usage and load time when loading a big image with load
4322     * size set to a smaller size.
4323     *
4324     * NOTE: this is just a hint, the real size of the pixmap may differ
4325     * depending on the type of image being loaded, being bigger than requested.
4326     *
4327     * @ingroup Bg
4328     */
4329    EAPI void          elm_bg_load_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
4330    /* smart callbacks called:
4331     */
4332
4333    /**
4334     * @defgroup Icon Icon
4335     *
4336     * @image html img/widget/icon/preview-00.png
4337     * @image latex img/widget/icon/preview-00.eps
4338     *
4339     * An object that provides standard icon images (delete, edit, arrows, etc.)
4340     * or a custom file (PNG, JPG, EDJE, etc.) used for an icon.
4341     *
4342     * The icon image requested can be in the elementary theme, or in the
4343     * freedesktop.org paths. It's possible to set the order of preference from
4344     * where the image will be used.
4345     *
4346     * This API is very similar to @ref Image, but with ready to use images.
4347     *
4348     * Default images provided by the theme are described below.
4349     *
4350     * The first list contains icons that were first intended to be used in
4351     * toolbars, but can be used in many other places too:
4352     * @li home
4353     * @li close
4354     * @li apps
4355     * @li arrow_up
4356     * @li arrow_down
4357     * @li arrow_left
4358     * @li arrow_right
4359     * @li chat
4360     * @li clock
4361     * @li delete
4362     * @li edit
4363     * @li refresh
4364     * @li folder
4365     * @li file
4366     *
4367     * Now some icons that were designed to be used in menus (but again, you can
4368     * use them anywhere else):
4369     * @li menu/home
4370     * @li menu/close
4371     * @li menu/apps
4372     * @li menu/arrow_up
4373     * @li menu/arrow_down
4374     * @li menu/arrow_left
4375     * @li menu/arrow_right
4376     * @li menu/chat
4377     * @li menu/clock
4378     * @li menu/delete
4379     * @li menu/edit
4380     * @li menu/refresh
4381     * @li menu/folder
4382     * @li menu/file
4383     *
4384     * And here we have some media player specific icons:
4385     * @li media_player/forward
4386     * @li media_player/info
4387     * @li media_player/next
4388     * @li media_player/pause
4389     * @li media_player/play
4390     * @li media_player/prev
4391     * @li media_player/rewind
4392     * @li media_player/stop
4393     *
4394     * Signals that you can add callbacks for are:
4395     *
4396     * "clicked" - This is called when a user has clicked the icon
4397     *
4398     * An example of usage for this API follows:
4399     * @li @ref tutorial_icon
4400     */
4401
4402    /**
4403     * @addtogroup Icon
4404     * @{
4405     */
4406
4407    typedef enum _Elm_Icon_Type
4408      {
4409         ELM_ICON_NONE,
4410         ELM_ICON_FILE,
4411         ELM_ICON_STANDARD
4412      } Elm_Icon_Type;
4413    /**
4414     * @enum _Elm_Icon_Lookup_Order
4415     * @typedef Elm_Icon_Lookup_Order
4416     *
4417     * Lookup order used by elm_icon_standard_set(). Should look for icons in the
4418     * theme, FDO paths, or both?
4419     *
4420     * @ingroup Icon
4421     */
4422    typedef enum _Elm_Icon_Lookup_Order
4423      {
4424         ELM_ICON_LOOKUP_FDO_THEME, /**< icon look up order: freedesktop, theme */
4425         ELM_ICON_LOOKUP_THEME_FDO, /**< icon look up order: theme, freedesktop */
4426         ELM_ICON_LOOKUP_FDO,       /**< icon look up order: freedesktop */
4427         ELM_ICON_LOOKUP_THEME      /**< icon look up order: theme */
4428      } Elm_Icon_Lookup_Order;
4429
4430    /**
4431     * Add a new icon object to the parent.
4432     *
4433     * @param parent The parent object
4434     * @return The new object or NULL if it cannot be created
4435     *
4436     * @see elm_icon_file_set()
4437     *
4438     * @ingroup Icon
4439     */
4440    EAPI Evas_Object          *elm_icon_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4441    /**
4442     * Set the file that will be used as icon.
4443     *
4444     * @param obj The icon object
4445     * @param file The path to file that will be used as icon image
4446     * @param group The group that the icon belongs to in edje file
4447     *
4448     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4449     *
4450     * @note The icon image set by this function can be changed by
4451     * elm_icon_standard_set().
4452     *
4453     * @see elm_icon_file_get()
4454     *
4455     * @ingroup Icon
4456     */
4457    EAPI Eina_Bool             elm_icon_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
4458    /**
4459     * Set a location in memory to be used as an icon
4460     *
4461     * @param obj The icon object
4462     * @param img The binary data that will be used as an image
4463     * @param size The size of binary data @p img
4464     * @param format Optional format of @p img to pass to the image loader
4465     * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
4466     *
4467     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4468     *
4469     * @note The icon image set by this function can be changed by
4470     * elm_icon_standard_set().
4471     *
4472     * @ingroup Icon
4473     */
4474    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);
4475    /**
4476     * Get the file that will be used as icon.
4477     *
4478     * @param obj The icon object
4479     * @param file The path to file that will be used as icon icon image
4480     * @param group The group that the icon belongs to in edje file
4481     *
4482     * @see elm_icon_file_set()
4483     *
4484     * @ingroup Icon
4485     */
4486    EAPI void                  elm_icon_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4487    EAPI void                  elm_icon_thumb_set(const Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
4488    /**
4489     * Set the icon by icon standards names.
4490     *
4491     * @param obj The icon object
4492     * @param name The icon name
4493     *
4494     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4495     *
4496     * For example, freedesktop.org defines standard icon names such as "home",
4497     * "network", etc. There can be different icon sets to match those icon
4498     * keys. The @p name given as parameter is one of these "keys", and will be
4499     * used to look in the freedesktop.org paths and elementary theme. One can
4500     * change the lookup order with elm_icon_order_lookup_set().
4501     *
4502     * If name is not found in any of the expected locations and it is the
4503     * absolute path of an image file, this image will be used.
4504     *
4505     * @note The icon image set by this function can be changed by
4506     * elm_icon_file_set().
4507     *
4508     * @see elm_icon_standard_get()
4509     * @see elm_icon_file_set()
4510     *
4511     * @ingroup Icon
4512     */
4513    EAPI Eina_Bool             elm_icon_standard_set(Evas_Object *obj, const char *name) EINA_ARG_NONNULL(1);
4514    /**
4515     * Get the icon name set by icon standard names.
4516     *
4517     * @param obj The icon object
4518     * @return The icon name
4519     *
4520     * If the icon image was set using elm_icon_file_set() instead of
4521     * elm_icon_standard_set(), then this function will return @c NULL.
4522     *
4523     * @see elm_icon_standard_set()
4524     *
4525     * @ingroup Icon
4526     */
4527    EAPI const char           *elm_icon_standard_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4528    /**
4529     * Set the smooth effect for an icon object.
4530     *
4531     * @param obj The icon object
4532     * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
4533     * otherwise. Default is @c EINA_TRUE.
4534     *
4535     * Set the scaling algorithm to be used when scaling the icon image. Smooth
4536     * scaling provides a better resulting image, but is slower.
4537     *
4538     * The smooth scaling should be disabled when making animations that change
4539     * the icon size, since they will be faster. Animations that don't require
4540     * resizing of the icon can keep the smooth scaling enabled (even if the icon
4541     * is already scaled, since the scaled icon image will be cached).
4542     *
4543     * @see elm_icon_smooth_get()
4544     *
4545     * @ingroup Icon
4546     */
4547    EAPI void                  elm_icon_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
4548    /**
4549     * Get the smooth effect for an icon object.
4550     *
4551     * @param obj The icon object
4552     * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
4553     *
4554     * @see elm_icon_smooth_set()
4555     *
4556     * @ingroup Icon
4557     */
4558    EAPI Eina_Bool             elm_icon_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4559    /**
4560     * Disable scaling of this object.
4561     *
4562     * @param obj The icon object.
4563     * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
4564     * otherwise. Default is @c EINA_FALSE.
4565     *
4566     * This function disables scaling of the icon object through the function
4567     * elm_object_scale_set(). However, this does not affect the object
4568     * size/resize in any way. For that effect, take a look at
4569     * elm_icon_scale_set().
4570     *
4571     * @see elm_icon_no_scale_get()
4572     * @see elm_icon_scale_set()
4573     * @see elm_object_scale_set()
4574     *
4575     * @ingroup Icon
4576     */
4577    EAPI void                  elm_icon_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
4578    /**
4579     * Get whether scaling is disabled on the object.
4580     *
4581     * @param obj The icon object
4582     * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
4583     *
4584     * @see elm_icon_no_scale_set()
4585     *
4586     * @ingroup Icon
4587     */
4588    EAPI Eina_Bool             elm_icon_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4589    /**
4590     * Set if the object is (up/down) resizeable.
4591     *
4592     * @param obj The icon object
4593     * @param scale_up A bool to set if the object is resizeable up. Default is
4594     * @c EINA_TRUE.
4595     * @param scale_down A bool to set if the object is resizeable down. Default
4596     * is @c EINA_TRUE.
4597     *
4598     * This function limits the icon object resize ability. If @p scale_up is set to
4599     * @c EINA_FALSE, the object can't have its height or width resized to a value
4600     * higher than the original icon size. Same is valid for @p scale_down.
4601     *
4602     * @see elm_icon_scale_get()
4603     *
4604     * @ingroup Icon
4605     */
4606    EAPI void                  elm_icon_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
4607    /**
4608     * Get if the object is (up/down) resizeable.
4609     *
4610     * @param obj The icon object
4611     * @param scale_up A bool to set if the object is resizeable up
4612     * @param scale_down A bool to set if the object is resizeable down
4613     *
4614     * @see elm_icon_scale_set()
4615     *
4616     * @ingroup Icon
4617     */
4618    EAPI void                  elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
4619    /**
4620     * Get the object's image size
4621     *
4622     * @param obj The icon object
4623     * @param w A pointer to store the width in
4624     * @param h A pointer to store the height in
4625     *
4626     * @ingroup Icon
4627     */
4628    EAPI void                  elm_icon_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
4629    /**
4630     * Set if the icon fill the entire object area.
4631     *
4632     * @param obj The icon object
4633     * @param fill_outside @c EINA_TRUE if the object is filled outside,
4634     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
4635     *
4636     * When the icon object is resized to a different aspect ratio from the
4637     * original icon image, the icon image will still keep its aspect. This flag
4638     * tells how the image should fill the object's area. They are: keep the
4639     * entire icon inside the limits of height and width of the object (@p
4640     * fill_outside is @c EINA_FALSE) or let the extra width or height go outside
4641     * of the object, and the icon will fill the entire object (@p fill_outside
4642     * is @c EINA_TRUE).
4643     *
4644     * @note Unlike @ref Image, there's no option in icon to set the aspect ratio
4645     * retain property to false. Thus, the icon image will always keep its
4646     * original aspect ratio.
4647     *
4648     * @see elm_icon_fill_outside_get()
4649     * @see elm_image_fill_outside_set()
4650     *
4651     * @ingroup Icon
4652     */
4653    EAPI void                  elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
4654    /**
4655     * Get if the object is filled outside.
4656     *
4657     * @param obj The icon object
4658     * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
4659     *
4660     * @see elm_icon_fill_outside_set()
4661     *
4662     * @ingroup Icon
4663     */
4664    EAPI Eina_Bool             elm_icon_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4665    /**
4666     * Set the prescale size for the icon.
4667     *
4668     * @param obj The icon object
4669     * @param size The prescale size. This value is used for both width and
4670     * height.
4671     *
4672     * This function sets a new size for pixmap representation of the given
4673     * icon. It allows the icon to be loaded already in the specified size,
4674     * reducing the memory usage and load time when loading a big icon with load
4675     * size set to a smaller size.
4676     *
4677     * It's equivalent to the elm_bg_load_size_set() function for bg.
4678     *
4679     * @note this is just a hint, the real size of the pixmap may differ
4680     * depending on the type of icon being loaded, being bigger than requested.
4681     *
4682     * @see elm_icon_prescale_get()
4683     * @see elm_bg_load_size_set()
4684     *
4685     * @ingroup Icon
4686     */
4687    EAPI void                  elm_icon_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
4688    /**
4689     * Get the prescale size for the icon.
4690     *
4691     * @param obj The icon object
4692     * @return The prescale size
4693     *
4694     * @see elm_icon_prescale_set()
4695     *
4696     * @ingroup Icon
4697     */
4698    EAPI int                   elm_icon_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4699    /**
4700     * Sets the icon lookup order used by elm_icon_standard_set().
4701     *
4702     * @param obj The icon object
4703     * @param order The icon lookup order (can be one of
4704     * ELM_ICON_LOOKUP_FDO_THEME, ELM_ICON_LOOKUP_THEME_FDO, ELM_ICON_LOOKUP_FDO
4705     * or ELM_ICON_LOOKUP_THEME)
4706     *
4707     * @see elm_icon_order_lookup_get()
4708     * @see Elm_Icon_Lookup_Order
4709     *
4710     * @ingroup Icon
4711     */
4712    EAPI void                  elm_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
4713    /**
4714     * Gets the icon lookup order.
4715     *
4716     * @param obj The icon object
4717     * @return The icon lookup order
4718     *
4719     * @see elm_icon_order_lookup_set()
4720     * @see Elm_Icon_Lookup_Order
4721     *
4722     * @ingroup Icon
4723     */
4724    EAPI Elm_Icon_Lookup_Order elm_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4725
4726    /**
4727     * @}
4728     */
4729
4730    /**
4731     * @defgroup Image Image
4732     *
4733     * @image html img/widget/image/preview-00.png
4734     * @image latex img/widget/image/preview-00.eps
4735     *
4736     * An object that allows one to load an image file to it. It can be used
4737     * anywhere like any other elementary widget.
4738     *
4739     * This widget provides most of the functionality provided from @ref Bg or @ref
4740     * Icon, but with a slightly different API (use the one that fits better your
4741     * needs).
4742     *
4743     * The features not provided by those two other image widgets are:
4744     * @li allowing to get the basic @c Evas_Object with elm_image_object_get();
4745     * @li change the object orientation with elm_image_orient_set();
4746     * @li and turning the image editable with elm_image_editable_set().
4747     *
4748     * Signals that you can add callbacks for are:
4749     *
4750     * @li @c "clicked" - This is called when a user has clicked the image
4751     *
4752     * An example of usage for this API follows:
4753     * @li @ref tutorial_image
4754     */
4755
4756    /**
4757     * @addtogroup Image
4758     * @{
4759     */
4760
4761    /**
4762     * @enum _Elm_Image_Orient
4763     * @typedef Elm_Image_Orient
4764     *
4765     * Possible orientation options for elm_image_orient_set().
4766     *
4767     * @image html elm_image_orient_set.png
4768     * @image latex elm_image_orient_set.eps width=\textwidth
4769     *
4770     * @ingroup Image
4771     */
4772    typedef enum _Elm_Image_Orient
4773      {
4774         ELM_IMAGE_ORIENT_NONE, /**< no orientation change */
4775         ELM_IMAGE_ROTATE_90_CW, /**< rotate 90 degrees clockwise */
4776         ELM_IMAGE_ROTATE_180_CW, /**< rotate 180 degrees clockwise */
4777         ELM_IMAGE_ROTATE_90_CCW, /**< rotate 90 degrees counter-clockwise (i.e. 270 degrees clockwise) */
4778         ELM_IMAGE_FLIP_HORIZONTAL, /**< flip image horizontally */
4779         ELM_IMAGE_FLIP_VERTICAL, /**< flip image vertically */
4780         ELM_IMAGE_FLIP_TRANSPOSE, /**< flip the image along the y = (side - x) line*/
4781         ELM_IMAGE_FLIP_TRANSVERSE /**< flip the image along the y = x line */
4782      } Elm_Image_Orient;
4783
4784    /**
4785     * Add a new image to the parent.
4786     *
4787     * @param parent The parent object
4788     * @return The new object or NULL if it cannot be created
4789     *
4790     * @see elm_image_file_set()
4791     *
4792     * @ingroup Image
4793     */
4794    EAPI Evas_Object     *elm_image_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4795    /**
4796     * Set the file that will be used as image.
4797     *
4798     * @param obj The image object
4799     * @param file The path to file that will be used as image
4800     * @param group The group that the image belongs in edje file (if it's an
4801     * edje image)
4802     *
4803     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4804     *
4805     * @see elm_image_file_get()
4806     *
4807     * @ingroup Image
4808     */
4809    EAPI Eina_Bool        elm_image_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
4810    /**
4811     * Get the file that will be used as image.
4812     *
4813     * @param obj The image object
4814     * @param file The path to file
4815     * @param group The group that the image belongs in edje file
4816     *
4817     * @see elm_image_file_set()
4818     *
4819     * @ingroup Image
4820     */
4821    EAPI void             elm_image_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4822    /**
4823     * Set the smooth effect for an image.
4824     *
4825     * @param obj The image object
4826     * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
4827     * otherwise. Default is @c EINA_TRUE.
4828     *
4829     * Set the scaling algorithm to be used when scaling the image. Smooth
4830     * scaling provides a better resulting image, but is slower.
4831     *
4832     * The smooth scaling should be disabled when making animations that change
4833     * the image size, since it will be faster. Animations that don't require
4834     * resizing of the image can keep the smooth scaling enabled (even if the
4835     * image is already scaled, since the scaled image will be cached).
4836     *
4837     * @see elm_image_smooth_get()
4838     *
4839     * @ingroup Image
4840     */
4841    EAPI void             elm_image_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
4842    /**
4843     * Get the smooth effect for an image.
4844     *
4845     * @param obj The image object
4846     * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
4847     *
4848     * @see elm_image_smooth_get()
4849     *
4850     * @ingroup Image
4851     */
4852    EAPI Eina_Bool        elm_image_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4853    /**
4854     * Gets the current size of the image.
4855     *
4856     * @param obj The image object.
4857     * @param w Pointer to store width, or NULL.
4858     * @param h Pointer to store height, or NULL.
4859     *
4860     * This is the real size of the image, not the size of the object.
4861     *
4862     * On error, neither w or h will be written.
4863     *
4864     * @ingroup Image
4865     */
4866    EAPI void             elm_image_object_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
4867    /**
4868     * Disable scaling of this object.
4869     *
4870     * @param obj The image object.
4871     * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
4872     * otherwise. Default is @c EINA_FALSE.
4873     *
4874     * This function disables scaling of the elm_image widget through the
4875     * function elm_object_scale_set(). However, this does not affect the widget
4876     * size/resize in any way. For that effect, take a look at
4877     * elm_image_scale_set().
4878     *
4879     * @see elm_image_no_scale_get()
4880     * @see elm_image_scale_set()
4881     * @see elm_object_scale_set()
4882     *
4883     * @ingroup Image
4884     */
4885    EAPI void             elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
4886    /**
4887     * Get whether scaling is disabled on the object.
4888     *
4889     * @param obj The image object
4890     * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
4891     *
4892     * @see elm_image_no_scale_set()
4893     *
4894     * @ingroup Image
4895     */
4896    EAPI Eina_Bool        elm_image_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4897    /**
4898     * Set if the object is (up/down) resizeable.
4899     *
4900     * @param obj The image object
4901     * @param scale_up A bool to set if the object is resizeable up. Default is
4902     * @c EINA_TRUE.
4903     * @param scale_down A bool to set if the object is resizeable down. Default
4904     * is @c EINA_TRUE.
4905     *
4906     * This function limits the image resize ability. If @p scale_up is set to
4907     * @c EINA_FALSE, the object can't have its height or width resized to a value
4908     * higher than the original image size. Same is valid for @p scale_down.
4909     *
4910     * @see elm_image_scale_get()
4911     *
4912     * @ingroup Image
4913     */
4914    EAPI void             elm_image_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
4915    /**
4916     * Get if the object is (up/down) resizeable.
4917     *
4918     * @param obj The image object
4919     * @param scale_up A bool to set if the object is resizeable up
4920     * @param scale_down A bool to set if the object is resizeable down
4921     *
4922     * @see elm_image_scale_set()
4923     *
4924     * @ingroup Image
4925     */
4926    EAPI void             elm_image_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
4927    /**
4928     * Set if the image fill the entire object area when keeping the aspect ratio.
4929     *
4930     * @param obj The image object
4931     * @param fill_outside @c EINA_TRUE if the object is filled outside,
4932     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
4933     *
4934     * When the image should keep its aspect ratio even if resized to another
4935     * aspect ratio, there are two possibilities to resize it: keep the entire
4936     * image inside the limits of height and width of the object (@p fill_outside
4937     * is @c EINA_FALSE) or let the extra width or height go outside of the object,
4938     * and the image will fill the entire object (@p fill_outside is @c EINA_TRUE).
4939     *
4940     * @note This option will have no effect if
4941     * elm_image_aspect_ratio_retained_set() is set to @c EINA_FALSE.
4942     *
4943     * @see elm_image_fill_outside_get()
4944     * @see elm_image_aspect_ratio_retained_set()
4945     *
4946     * @ingroup Image
4947     */
4948    EAPI void             elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
4949    /**
4950     * Get if the object is filled outside
4951     *
4952     * @param obj The image object
4953     * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
4954     *
4955     * @see elm_image_fill_outside_set()
4956     *
4957     * @ingroup Image
4958     */
4959    EAPI Eina_Bool        elm_image_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4960    /**
4961     * Set the prescale size for the image
4962     *
4963     * @param obj The image object
4964     * @param size The prescale size. This value is used for both width and
4965     * height.
4966     *
4967     * This function sets a new size for pixmap representation of the given
4968     * image. It allows the image to be loaded already in the specified size,
4969     * reducing the memory usage and load time when loading a big image with load
4970     * size set to a smaller size.
4971     *
4972     * It's equivalent to the elm_bg_load_size_set() function for bg.
4973     *
4974     * @note this is just a hint, the real size of the pixmap may differ
4975     * depending on the type of image being loaded, being bigger than requested.
4976     *
4977     * @see elm_image_prescale_get()
4978     * @see elm_bg_load_size_set()
4979     *
4980     * @ingroup Image
4981     */
4982    EAPI void             elm_image_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
4983    /**
4984     * Get the prescale size for the image
4985     *
4986     * @param obj The image object
4987     * @return The prescale size
4988     *
4989     * @see elm_image_prescale_set()
4990     *
4991     * @ingroup Image
4992     */
4993    EAPI int              elm_image_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4994    /**
4995     * Set the image orientation.
4996     *
4997     * @param obj The image object
4998     * @param orient The image orientation
4999     * (one of #ELM_IMAGE_ORIENT_NONE, #ELM_IMAGE_ROTATE_90_CW,
5000     *  #ELM_IMAGE_ROTATE_180_CW, #ELM_IMAGE_ROTATE_90_CCW,
5001     *  #ELM_IMAGE_FLIP_HORIZONTAL, #ELM_IMAGE_FLIP_VERTICAL,
5002     *  #ELM_IMAGE_FLIP_TRANSPOSE, #ELM_IMAGE_FLIP_TRANSVERSE).
5003     *  Default is #ELM_IMAGE_ORIENT_NONE.
5004     *
5005     * This function allows to rotate or flip the given image.
5006     *
5007     * @see elm_image_orient_get()
5008     * @see @ref Elm_Image_Orient
5009     *
5010     * @ingroup Image
5011     */
5012    EAPI void             elm_image_orient_set(Evas_Object *obj, Elm_Image_Orient orient) EINA_ARG_NONNULL(1);
5013    /**
5014     * Get the image orientation.
5015     *
5016     * @param obj The image object
5017     * @return The image orientation
5018     * (one of #ELM_IMAGE_ORIENT_NONE, #ELM_IMAGE_ROTATE_90_CW,
5019     *  #ELM_IMAGE_ROTATE_180_CW, #ELM_IMAGE_ROTATE_90_CCW,
5020     *  #ELM_IMAGE_FLIP_HORIZONTAL, #ELM_IMAGE_FLIP_VERTICAL,
5021     *  #ELM_IMAGE_FLIP_TRANSPOSE, #ELM_IMAGE_FLIP_TRANSVERSE)
5022     *
5023     * @see elm_image_orient_set()
5024     * @see @ref Elm_Image_Orient
5025     *
5026     * @ingroup Image
5027     */
5028    EAPI Elm_Image_Orient elm_image_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5029    /**
5030     * Make the image 'editable'.
5031     *
5032     * @param obj Image object.
5033     * @param set Turn on or off editability. Default is @c EINA_FALSE.
5034     *
5035     * This means the image is a valid drag target for drag and drop, and can be
5036     * cut or pasted too.
5037     *
5038     * @ingroup Image
5039     */
5040    EAPI void             elm_image_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
5041    /**
5042     * Make the image 'editable'.
5043     *
5044     * @param obj Image object.
5045     * @return Editability.
5046     *
5047     * This means the image is a valid drag target for drag and drop, and can be
5048     * cut or pasted too.
5049     *
5050     * @ingroup Image
5051     */
5052    EAPI Eina_Bool        elm_image_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5053    /**
5054     * Get the basic Evas_Image object from this object (widget).
5055     *
5056     * @param obj The image object to get the inlined image from
5057     * @return The inlined image object, or NULL if none exists
5058     *
5059     * This function allows one to get the underlying @c Evas_Object of type
5060     * Image from this elementary widget. It can be useful to do things like get
5061     * the pixel data, save the image to a file, etc.
5062     *
5063     * @note Be careful to not manipulate it, as it is under control of
5064     * elementary.
5065     *
5066     * @ingroup Image
5067     */
5068    EAPI Evas_Object     *elm_image_object_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5069    /**
5070     * Set whether the original aspect ratio of the image should be kept on resize.
5071     *
5072     * @param obj The image object.
5073     * @param retained @c EINA_TRUE if the image should retain the aspect,
5074     * @c EINA_FALSE otherwise.
5075     *
5076     * The original aspect ratio (width / height) of the image is usually
5077     * distorted to match the object's size. Enabling this option will retain
5078     * this original aspect, and the way that the image is fit into the object's
5079     * area depends on the option set by elm_image_fill_outside_set().
5080     *
5081     * @see elm_image_aspect_ratio_retained_get()
5082     * @see elm_image_fill_outside_set()
5083     *
5084     * @ingroup Image
5085     */
5086    EAPI void             elm_image_aspect_ratio_retained_set(Evas_Object *obj, Eina_Bool retained) EINA_ARG_NONNULL(1);
5087    /**
5088     * Get if the object retains the original aspect ratio.
5089     *
5090     * @param obj The image object.
5091     * @return @c EINA_TRUE if the object keeps the original aspect, @c EINA_FALSE
5092     * otherwise.
5093     *
5094     * @ingroup Image
5095     */
5096    EAPI Eina_Bool        elm_image_aspect_ratio_retained_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5097
5098    /* smart callbacks called:
5099     * "clicked" - the user clicked the image
5100     */
5101
5102    /**
5103     * @}
5104     */
5105
5106    /* glview */
5107    typedef void (*Elm_GLView_Func_Cb)(Evas_Object *obj);
5108
5109    typedef enum _Elm_GLView_Mode
5110      {
5111         ELM_GLVIEW_ALPHA   = 1,
5112         ELM_GLVIEW_DEPTH   = 2,
5113         ELM_GLVIEW_STENCIL = 4
5114      } Elm_GLView_Mode;
5115
5116    /**
5117     * Defines a policy for the glview resizing.
5118     *
5119     * @note Default is ELM_GLVIEW_RESIZE_POLICY_RECREATE
5120     */
5121    typedef enum _Elm_GLView_Resize_Policy
5122      {
5123         ELM_GLVIEW_RESIZE_POLICY_RECREATE = 1,      /**< Resize the internal surface along with the image */
5124         ELM_GLVIEW_RESIZE_POLICY_SCALE    = 2       /**< Only reize the internal image and not the surface */
5125      } Elm_GLView_Resize_Policy;
5126
5127    typedef enum _Elm_GLView_Render_Policy
5128      {
5129         ELM_GLVIEW_RENDER_POLICY_ON_DEMAND = 1,     /**< Render only when there is a need for redrawing */
5130         ELM_GLVIEW_RENDER_POLICY_ALWAYS    = 2      /**< Render always even when it is not visible */
5131      } Elm_GLView_Render_Policy;
5132
5133    /**
5134     * @defgroup GLView
5135     *
5136     * A simple GLView widget that allows GL rendering.
5137     *
5138     * Signals that you can add callbacks for are:
5139     *
5140     * @{
5141     */
5142
5143    /**
5144     * Add a new glview to the parent
5145     *
5146     * @param parent The parent object
5147     * @return The new object or NULL if it cannot be created
5148     *
5149     * @ingroup GLView
5150     */
5151    EAPI Evas_Object     *elm_glview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5152
5153    /**
5154     * Sets the size of the glview
5155     *
5156     * @param obj The glview object
5157     * @param width width of the glview object
5158     * @param height height of the glview object
5159     *
5160     * @ingroup GLView
5161     */
5162    EAPI void             elm_glview_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
5163
5164    /**
5165     * Gets the size of the glview.
5166     *
5167     * @param obj The glview object
5168     * @param width width of the glview object
5169     * @param height height of the glview object
5170     *
5171     * Note that this function returns the actual image size of the
5172     * glview.  This means that when the scale policy is set to
5173     * ELM_GLVIEW_RESIZE_POLICY_SCALE, it'll return the non-scaled
5174     * size.
5175     *
5176     * @ingroup GLView
5177     */
5178    EAPI void             elm_glview_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
5179
5180    /**
5181     * Gets the gl api struct for gl rendering
5182     *
5183     * @param obj The glview object
5184     * @return The api object or NULL if it cannot be created
5185     *
5186     * @ingroup GLView
5187     */
5188    EAPI Evas_GL_API     *elm_glview_gl_api_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5189
5190    /**
5191     * Set the mode of the GLView. Supports Three simple modes.
5192     *
5193     * @param obj The glview object
5194     * @param mode The mode Options OR'ed enabling Alpha, Depth, Stencil.
5195     * @return True if set properly.
5196     *
5197     * @ingroup GLView
5198     */
5199    EAPI Eina_Bool        elm_glview_mode_set(Evas_Object *obj, Elm_GLView_Mode mode) EINA_ARG_NONNULL(1);
5200
5201    /**
5202     * Set the resize policy for the glview object.
5203     *
5204     * @param obj The glview object.
5205     * @param policy The scaling policy.
5206     *
5207     * By default, the resize policy is set to
5208     * ELM_GLVIEW_RESIZE_POLICY_RECREATE.  When resize is called it
5209     * destroys the previous surface and recreates the newly specified
5210     * size. If the policy is set to ELM_GLVIEW_RESIZE_POLICY_SCALE,
5211     * however, glview only scales the image object and not the underlying
5212     * GL Surface.
5213     *
5214     * @ingroup GLView
5215     */
5216    EAPI Eina_Bool        elm_glview_resize_policy_set(Evas_Object *obj, Elm_GLView_Resize_Policy policy) EINA_ARG_NONNULL(1);
5217
5218    /**
5219     * Set the render policy for the glview object.
5220     *
5221     * @param obj The glview object.
5222     * @param policy The render policy.
5223     *
5224     * By default, the render policy is set to
5225     * ELM_GLVIEW_RENDER_POLICY_ON_DEMAND.  This policy is set such
5226     * that during the render loop, glview is only redrawn if it needs
5227     * to be redrawn. (i.e. When it is visible) If the policy is set to
5228     * ELM_GLVIEWW_RENDER_POLICY_ALWAYS, it redraws regardless of
5229     * whether it is visible/need redrawing or not.
5230     *
5231     * @ingroup GLView
5232     */
5233    EAPI Eina_Bool        elm_glview_render_policy_set(Evas_Object *obj, Elm_GLView_Render_Policy policy) EINA_ARG_NONNULL(1);
5234
5235    /**
5236     * Set the init function that runs once in the main loop.
5237     *
5238     * @param obj The glview object.
5239     * @param func The init function to be registered.
5240     *
5241     * The registered init function gets called once during the render loop.
5242     *
5243     * @ingroup GLView
5244     */
5245    EAPI void             elm_glview_init_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5246
5247    /**
5248     * Set the render function that runs in the main loop.
5249     *
5250     * @param obj The glview object.
5251     * @param func The delete function to be registered.
5252     *
5253     * The registered del function gets called when GLView object is deleted.
5254     *
5255     * @ingroup GLView
5256     */
5257    EAPI void             elm_glview_del_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5258
5259    /**
5260     * Set the resize function that gets called when resize happens.
5261     *
5262     * @param obj The glview object.
5263     * @param func The resize function to be registered.
5264     *
5265     * @ingroup GLView
5266     */
5267    EAPI void             elm_glview_resize_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5268
5269    /**
5270     * Set the render function that runs in the main loop.
5271     *
5272     * @param obj The glview object.
5273     * @param func The render function to be registered.
5274     *
5275     * @ingroup GLView
5276     */
5277    EAPI void             elm_glview_render_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5278
5279    /**
5280     * Notifies that there has been changes in the GLView.
5281     *
5282     * @param obj The glview object.
5283     *
5284     * @ingroup GLView
5285     */
5286    EAPI void             elm_glview_changed_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
5287
5288    /**
5289     * @}
5290     */
5291
5292    /* box */
5293    /**
5294     * @defgroup Box Box
5295     *
5296     * @image html img/widget/box/preview-00.png
5297     * @image latex img/widget/box/preview-00.eps width=\textwidth
5298     *
5299     * @image html img/box.png
5300     * @image latex img/box.eps width=\textwidth
5301     *
5302     * A box arranges objects in a linear fashion, governed by a layout function
5303     * that defines the details of this arrangement.
5304     *
5305     * By default, the box will use an internal function to set the layout to
5306     * a single row, either vertical or horizontal. This layout is affected
5307     * by a number of parameters, such as the homogeneous flag set by
5308     * elm_box_homogeneous_set(), the values given by elm_box_padding_set() and
5309     * elm_box_align_set() and the hints set to each object in the box.
5310     *
5311     * For this default layout, it's possible to change the orientation with
5312     * elm_box_horizontal_set(). The box will start in the vertical orientation,
5313     * placing its elements ordered from top to bottom. When horizontal is set,
5314     * the order will go from left to right. If the box is set to be
5315     * homogeneous, every object in it will be assigned the same space, that
5316     * of the largest object. Padding can be used to set some spacing between
5317     * the cell given to each object. The alignment of the box, set with
5318     * elm_box_align_set(), determines how the bounding box of all the elements
5319     * will be placed within the space given to the box widget itself.
5320     *
5321     * The size hints of each object also affect how they are placed and sized
5322     * within the box. evas_object_size_hint_min_set() will give the minimum
5323     * size the object can have, and the box will use it as the basis for all
5324     * latter calculations. Elementary widgets set their own minimum size as
5325     * needed, so there's rarely any need to use it manually.
5326     *
5327     * evas_object_size_hint_weight_set(), when not in homogeneous mode, is
5328     * used to tell whether the object will be allocated the minimum size it
5329     * needs or if the space given to it should be expanded. It's important
5330     * to realize that expanding the size given to the object is not the same
5331     * thing as resizing the object. It could very well end being a small
5332     * widget floating in a much larger empty space. If not set, the weight
5333     * for objects will normally be 0.0 for both axis, meaning the widget will
5334     * not be expanded. To take as much space possible, set the weight to
5335     * EVAS_HINT_EXPAND (defined to 1.0) for the desired axis to expand.
5336     *
5337     * Besides how much space each object is allocated, it's possible to control
5338     * how the widget will be placed within that space using
5339     * evas_object_size_hint_align_set(). By default, this value will be 0.5
5340     * for both axis, meaning the object will be centered, but any value from
5341     * 0.0 (left or top, for the @c x and @c y axis, respectively) to 1.0
5342     * (right or bottom) can be used. The special value EVAS_HINT_FILL, which
5343     * is -1.0, means the object will be resized to fill the entire space it
5344     * was allocated.
5345     *
5346     * In addition, customized functions to define the layout can be set, which
5347     * allow the application developer to organize the objects within the box
5348     * in any number of ways.
5349     *
5350     * The special elm_box_layout_transition() function can be used
5351     * to switch from one layout to another, animating the motion of the
5352     * children of the box.
5353     *
5354     * @note Objects should not be added to box objects using _add() calls.
5355     *
5356     * Some examples on how to use boxes follow:
5357     * @li @ref box_example_01
5358     * @li @ref box_example_02
5359     *
5360     * @{
5361     */
5362    /**
5363     * @typedef Elm_Box_Transition
5364     *
5365     * Opaque handler containing the parameters to perform an animated
5366     * transition of the layout the box uses.
5367     *
5368     * @see elm_box_transition_new()
5369     * @see elm_box_layout_set()
5370     * @see elm_box_layout_transition()
5371     */
5372    typedef struct _Elm_Box_Transition Elm_Box_Transition;
5373
5374    /**
5375     * Add a new box to the parent
5376     *
5377     * By default, the box will be in vertical mode and non-homogeneous.
5378     *
5379     * @param parent The parent object
5380     * @return The new object or NULL if it cannot be created
5381     */
5382    EAPI Evas_Object        *elm_box_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5383    /**
5384     * Set the horizontal orientation
5385     *
5386     * By default, box object arranges their contents vertically from top to
5387     * bottom.
5388     * By calling this function with @p horizontal as EINA_TRUE, the box will
5389     * become horizontal, arranging contents from left to right.
5390     *
5391     * @note This flag is ignored if a custom layout function is set.
5392     *
5393     * @param obj The box object
5394     * @param horizontal The horizontal flag (EINA_TRUE = horizontal,
5395     * EINA_FALSE = vertical)
5396     */
5397    EAPI void                elm_box_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
5398    /**
5399     * Get the horizontal orientation
5400     *
5401     * @param obj The box object
5402     * @return EINA_TRUE if the box is set to horizontal mode, EINA_FALSE otherwise
5403     */
5404    EAPI Eina_Bool           elm_box_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5405    /**
5406     * Set the box to arrange its children homogeneously
5407     *
5408     * If enabled, homogeneous layout makes all items the same size, according
5409     * to the size of the largest of its children.
5410     *
5411     * @note This flag is ignored if a custom layout function is set.
5412     *
5413     * @param obj The box object
5414     * @param homogeneous The homogeneous flag
5415     */
5416    EAPI void                elm_box_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
5417    /**
5418     * Get whether the box is using homogeneous mode or not
5419     *
5420     * @param obj The box object
5421     * @return EINA_TRUE if it's homogeneous, EINA_FALSE otherwise
5422     */
5423    EAPI Eina_Bool           elm_box_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5424    EINA_DEPRECATED EAPI void elm_box_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
5425    EINA_DEPRECATED EAPI Eina_Bool elm_box_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5426    /**
5427     * Add an object to the beginning of the pack list
5428     *
5429     * Pack @p subobj into the box @p obj, placing it first in the list of
5430     * children objects. The actual position the object will get on screen
5431     * depends on the layout used. If no custom layout is set, it will be at
5432     * the top or left, depending if the box is vertical or horizontal,
5433     * respectively.
5434     *
5435     * @param obj The box object
5436     * @param subobj The object to add to the box
5437     *
5438     * @see elm_box_pack_end()
5439     * @see elm_box_pack_before()
5440     * @see elm_box_pack_after()
5441     * @see elm_box_unpack()
5442     * @see elm_box_unpack_all()
5443     * @see elm_box_clear()
5444     */
5445    EAPI void                elm_box_pack_start(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5446    /**
5447     * Add an object at the end of the pack list
5448     *
5449     * Pack @p subobj into the box @p obj, placing it last in the list of
5450     * children objects. The actual position the object will get on screen
5451     * depends on the layout used. If no custom layout is set, it will be at
5452     * the bottom or right, depending if the box is vertical or horizontal,
5453     * respectively.
5454     *
5455     * @param obj The box object
5456     * @param subobj The object to add to the box
5457     *
5458     * @see elm_box_pack_start()
5459     * @see elm_box_pack_before()
5460     * @see elm_box_pack_after()
5461     * @see elm_box_unpack()
5462     * @see elm_box_unpack_all()
5463     * @see elm_box_clear()
5464     */
5465    EAPI void                elm_box_pack_end(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5466    /**
5467     * Adds an object to the box before the indicated object
5468     *
5469     * This will add the @p subobj to the box indicated before the object
5470     * indicated with @p before. If @p before is not already in the box, results
5471     * are undefined. Before means either to the left of the indicated object or
5472     * above it depending on orientation.
5473     *
5474     * @param obj The box object
5475     * @param subobj The object to add to the box
5476     * @param before The object before which to add it
5477     *
5478     * @see elm_box_pack_start()
5479     * @see elm_box_pack_end()
5480     * @see elm_box_pack_after()
5481     * @see elm_box_unpack()
5482     * @see elm_box_unpack_all()
5483     * @see elm_box_clear()
5484     */
5485    EAPI void                elm_box_pack_before(Evas_Object *obj, Evas_Object *subobj, Evas_Object *before) EINA_ARG_NONNULL(1);
5486    /**
5487     * Adds an object to the box after the indicated object
5488     *
5489     * This will add the @p subobj to the box indicated after the object
5490     * indicated with @p after. If @p after is not already in the box, results
5491     * are undefined. After means either to the right of the indicated object or
5492     * below it depending on orientation.
5493     *
5494     * @param obj The box object
5495     * @param subobj The object to add to the box
5496     * @param after The object after which to add it
5497     *
5498     * @see elm_box_pack_start()
5499     * @see elm_box_pack_end()
5500     * @see elm_box_pack_before()
5501     * @see elm_box_unpack()
5502     * @see elm_box_unpack_all()
5503     * @see elm_box_clear()
5504     */
5505    EAPI void                elm_box_pack_after(Evas_Object *obj, Evas_Object *subobj, Evas_Object *after) EINA_ARG_NONNULL(1);
5506    /**
5507     * Clear the box of all children
5508     *
5509     * Remove all the elements contained by the box, deleting the respective
5510     * objects.
5511     *
5512     * @param obj The box object
5513     *
5514     * @see elm_box_unpack()
5515     * @see elm_box_unpack_all()
5516     */
5517    EAPI void                elm_box_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
5518    /**
5519     * Unpack a box item
5520     *
5521     * Remove the object given by @p subobj from the box @p obj without
5522     * deleting it.
5523     *
5524     * @param obj The box object
5525     *
5526     * @see elm_box_unpack_all()
5527     * @see elm_box_clear()
5528     */
5529    EAPI void                elm_box_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5530    /**
5531     * Remove all items from the box, without deleting them
5532     *
5533     * Clear the box from all children, but don't delete the respective objects.
5534     * If no other references of the box children exist, the objects will never
5535     * be deleted, and thus the application will leak the memory. Make sure
5536     * when using this function that you hold a reference to all the objects
5537     * in the box @p obj.
5538     *
5539     * @param obj The box object
5540     *
5541     * @see elm_box_clear()
5542     * @see elm_box_unpack()
5543     */
5544    EAPI void                elm_box_unpack_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
5545    /**
5546     * Retrieve a list of the objects packed into the box
5547     *
5548     * Returns a new @c Eina_List with a pointer to @c Evas_Object in its nodes.
5549     * The order of the list corresponds to the packing order the box uses.
5550     *
5551     * You must free this list with eina_list_free() once you are done with it.
5552     *
5553     * @param obj The box object
5554     */
5555    EAPI const Eina_List    *elm_box_children_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5556    /**
5557     * Set the space (padding) between the box's elements.
5558     *
5559     * Extra space in pixels that will be added between a box child and its
5560     * neighbors after its containing cell has been calculated. This padding
5561     * is set for all elements in the box, besides any possible padding that
5562     * individual elements may have through their size hints.
5563     *
5564     * @param obj The box object
5565     * @param horizontal The horizontal space between elements
5566     * @param vertical The vertical space between elements
5567     */
5568    EAPI void                elm_box_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
5569    /**
5570     * Get the space (padding) between the box's elements.
5571     *
5572     * @param obj The box object
5573     * @param horizontal The horizontal space between elements
5574     * @param vertical The vertical space between elements
5575     *
5576     * @see elm_box_padding_set()
5577     */
5578    EAPI void                elm_box_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
5579    /**
5580     * Set the alignment of the whole bouding box of contents.
5581     *
5582     * Sets how the bounding box containing all the elements of the box, after
5583     * their sizes and position has been calculated, will be aligned within
5584     * the space given for the whole box widget.
5585     *
5586     * @param obj The box object
5587     * @param horizontal The horizontal alignment of elements
5588     * @param vertical The vertical alignment of elements
5589     */
5590    EAPI void                elm_box_align_set(Evas_Object *obj, double horizontal, double vertical) EINA_ARG_NONNULL(1);
5591    /**
5592     * Get the alignment of the whole bouding box of contents.
5593     *
5594     * @param obj The box object
5595     * @param horizontal The horizontal alignment of elements
5596     * @param vertical The vertical alignment of elements
5597     *
5598     * @see elm_box_align_set()
5599     */
5600    EAPI void                elm_box_align_get(const Evas_Object *obj, double *horizontal, double *vertical) EINA_ARG_NONNULL(1);
5601
5602    /**
5603     * Set the layout defining function to be used by the box
5604     *
5605     * Whenever anything changes that requires the box in @p obj to recalculate
5606     * the size and position of its elements, the function @p cb will be called
5607     * to determine what the layout of the children will be.
5608     *
5609     * Once a custom function is set, everything about the children layout
5610     * is defined by it. The flags set by elm_box_horizontal_set() and
5611     * elm_box_homogeneous_set() no longer have any meaning, and the values
5612     * given by elm_box_padding_set() and elm_box_align_set() are up to this
5613     * layout function to decide if they are used and how. These last two
5614     * will be found in the @c priv parameter, of type @c Evas_Object_Box_Data,
5615     * passed to @p cb. The @c Evas_Object the function receives is not the
5616     * Elementary widget, but the internal Evas Box it uses, so none of the
5617     * functions described here can be used on it.
5618     *
5619     * Any of the layout functions in @c Evas can be used here, as well as the
5620     * special elm_box_layout_transition().
5621     *
5622     * The final @p data argument received by @p cb is the same @p data passed
5623     * here, and the @p free_data function will be called to free it
5624     * whenever the box is destroyed or another layout function is set.
5625     *
5626     * Setting @p cb to NULL will revert back to the default layout function.
5627     *
5628     * @param obj The box object
5629     * @param cb The callback function used for layout
5630     * @param data Data that will be passed to layout function
5631     * @param free_data Function called to free @p data
5632     *
5633     * @see elm_box_layout_transition()
5634     */
5635    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);
5636    /**
5637     * Special layout function that animates the transition from one layout to another
5638     *
5639     * Normally, when switching the layout function for a box, this will be
5640     * reflected immediately on screen on the next render, but it's also
5641     * possible to do this through an animated transition.
5642     *
5643     * This is done by creating an ::Elm_Box_Transition and setting the box
5644     * layout to this function.
5645     *
5646     * For example:
5647     * @code
5648     * Elm_Box_Transition *t = elm_box_transition_new(1.0,
5649     *                            evas_object_box_layout_vertical, // start
5650     *                            NULL, // data for initial layout
5651     *                            NULL, // free function for initial data
5652     *                            evas_object_box_layout_horizontal, // end
5653     *                            NULL, // data for final layout
5654     *                            NULL, // free function for final data
5655     *                            anim_end, // will be called when animation ends
5656     *                            NULL); // data for anim_end function\
5657     * elm_box_layout_set(box, elm_box_layout_transition, t,
5658     *                    elm_box_transition_free);
5659     * @endcode
5660     *
5661     * @note This function can only be used with elm_box_layout_set(). Calling
5662     * it directly will not have the expected results.
5663     *
5664     * @see elm_box_transition_new
5665     * @see elm_box_transition_free
5666     * @see elm_box_layout_set
5667     */
5668    EAPI void                elm_box_layout_transition(Evas_Object *obj, Evas_Object_Box_Data *priv, void *data);
5669    /**
5670     * Create a new ::Elm_Box_Transition to animate the switch of layouts
5671     *
5672     * If you want to animate the change from one layout to another, you need
5673     * to set the layout function of the box to elm_box_layout_transition(),
5674     * passing as user data to it an instance of ::Elm_Box_Transition with the
5675     * necessary information to perform this animation. The free function to
5676     * set for the layout is elm_box_transition_free().
5677     *
5678     * The parameters to create an ::Elm_Box_Transition sum up to how long
5679     * will it be, in seconds, a layout function to describe the initial point,
5680     * another for the final position of the children and one function to be
5681     * called when the whole animation ends. This last function is useful to
5682     * set the definitive layout for the box, usually the same as the end
5683     * layout for the animation, but could be used to start another transition.
5684     *
5685     * @param start_layout The layout function that will be used to start the animation
5686     * @param start_layout_data The data to be passed the @p start_layout function
5687     * @param start_layout_free_data Function to free @p start_layout_data
5688     * @param end_layout The layout function that will be used to end the animation
5689     * @param end_layout_free_data The data to be passed the @p end_layout function
5690     * @param end_layout_free_data Function to free @p end_layout_data
5691     * @param transition_end_cb Callback function called when animation ends
5692     * @param transition_end_data Data to be passed to @p transition_end_cb
5693     * @return An instance of ::Elm_Box_Transition
5694     *
5695     * @see elm_box_transition_new
5696     * @see elm_box_layout_transition
5697     */
5698    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);
5699    /**
5700     * Free a Elm_Box_Transition instance created with elm_box_transition_new().
5701     *
5702     * This function is mostly useful as the @c free_data parameter in
5703     * elm_box_layout_set() when elm_box_layout_transition().
5704     *
5705     * @param data The Elm_Box_Transition instance to be freed.
5706     *
5707     * @see elm_box_transition_new
5708     * @see elm_box_layout_transition
5709     */
5710    EAPI void                elm_box_transition_free(void *data);
5711    /**
5712     * @}
5713     */
5714
5715    /* button */
5716    /**
5717     * @defgroup Button Button
5718     *
5719     * @image html img/widget/button/preview-00.png
5720     * @image latex img/widget/button/preview-00.eps
5721     * @image html img/widget/button/preview-01.png
5722     * @image latex img/widget/button/preview-01.eps
5723     * @image html img/widget/button/preview-02.png
5724     * @image latex img/widget/button/preview-02.eps
5725     *
5726     * This is a push-button. Press it and run some function. It can contain
5727     * a simple label and icon object and it also has an autorepeat feature.
5728     *
5729     * This widgets emits the following signals:
5730     * @li "clicked": the user clicked the button (press/release).
5731     * @li "repeated": the user pressed the button without releasing it.
5732     * @li "pressed": button was pressed.
5733     * @li "unpressed": button was released after being pressed.
5734     * In all three cases, the @c event parameter of the callback will be
5735     * @c NULL.
5736     *
5737     * Also, defined in the default theme, the button has the following styles
5738     * available:
5739     * @li default: a normal button.
5740     * @li anchor: Like default, but the button fades away when the mouse is not
5741     * over it, leaving only the text or icon.
5742     * @li hoversel_vertical: Internally used by @ref Hoversel to give a
5743     * continuous look across its options.
5744     * @li hoversel_vertical_entry: Another internal for @ref Hoversel.
5745     *
5746     * Follow through a complete example @ref button_example_01 "here".
5747     * @{
5748     */
5749    /**
5750     * Add a new button to the parent's canvas
5751     *
5752     * @param parent The parent object
5753     * @return The new object or NULL if it cannot be created
5754     */
5755    EAPI Evas_Object *elm_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5756    /**
5757     * Set the label used in the button
5758     *
5759     * The passed @p label can be NULL to clean any existing text in it and
5760     * leave the button as an icon only object.
5761     *
5762     * @param obj The button object
5763     * @param label The text will be written on the button
5764     * @deprecated use elm_object_text_set() instead.
5765     */
5766    EINA_DEPRECATED EAPI void         elm_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
5767    /**
5768     * Get the label set for the button
5769     *
5770     * The string returned is an internal pointer and should not be freed or
5771     * altered. It will also become invalid when the button is destroyed.
5772     * The string returned, if not NULL, is a stringshare, so if you need to
5773     * keep it around even after the button is destroyed, you can use
5774     * eina_stringshare_ref().
5775     *
5776     * @param obj The button object
5777     * @return The text set to the label, or NULL if nothing is set
5778     * @deprecated use elm_object_text_set() instead.
5779     */
5780    EINA_DEPRECATED EAPI const char  *elm_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5781    /**
5782     * Set the icon used for the button
5783     *
5784     * Setting a new icon will delete any other that was previously set, making
5785     * any reference to them invalid. If you need to maintain the previous
5786     * object alive, unset it first with elm_button_icon_unset().
5787     *
5788     * @param obj The button object
5789     * @param icon The icon object for the button
5790     */
5791    EAPI void         elm_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
5792    /**
5793     * Get the icon used for the button
5794     *
5795     * Return the icon object which is set for this widget. If the button is
5796     * destroyed or another icon is set, the returned object will be deleted
5797     * and any reference to it will be invalid.
5798     *
5799     * @param obj The button object
5800     * @return The icon object that is being used
5801     *
5802     * @see elm_button_icon_unset()
5803     */
5804    EAPI Evas_Object *elm_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5805    /**
5806     * Remove the icon set without deleting it and return the object
5807     *
5808     * This function drops the reference the button holds of the icon object
5809     * and returns this last object. It is used in case you want to remove any
5810     * icon, or set another one, without deleting the actual object. The button
5811     * will be left without an icon set.
5812     *
5813     * @param obj The button object
5814     * @return The icon object that was being used
5815     */
5816    EAPI Evas_Object *elm_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
5817    /**
5818     * Turn on/off the autorepeat event generated when the button is kept pressed
5819     *
5820     * When off, no autorepeat is performed and buttons emit a normal @c clicked
5821     * signal when they are clicked.
5822     *
5823     * When on, keeping a button pressed will continuously emit a @c repeated
5824     * signal until the button is released. The time it takes until it starts
5825     * emitting the signal is given by
5826     * elm_button_autorepeat_initial_timeout_set(), and the time between each
5827     * new emission by elm_button_autorepeat_gap_timeout_set().
5828     *
5829     * @param obj The button object
5830     * @param on  A bool to turn on/off the event
5831     */
5832    EAPI void         elm_button_autorepeat_set(Evas_Object *obj, Eina_Bool on) EINA_ARG_NONNULL(1);
5833    /**
5834     * Get whether the autorepeat feature is enabled
5835     *
5836     * @param obj The button object
5837     * @return EINA_TRUE if autorepeat is on, EINA_FALSE otherwise
5838     *
5839     * @see elm_button_autorepeat_set()
5840     */
5841    EAPI Eina_Bool    elm_button_autorepeat_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5842    /**
5843     * Set the initial timeout before the autorepeat event is generated
5844     *
5845     * Sets the timeout, in seconds, since the button is pressed until the
5846     * first @c repeated signal is emitted. If @p t is 0.0 or less, there
5847     * won't be any delay and the even will be fired the moment the button is
5848     * pressed.
5849     *
5850     * @param obj The button object
5851     * @param t   Timeout in seconds
5852     *
5853     * @see elm_button_autorepeat_set()
5854     * @see elm_button_autorepeat_gap_timeout_set()
5855     */
5856    EAPI void         elm_button_autorepeat_initial_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
5857    /**
5858     * Get the initial timeout before the autorepeat event is generated
5859     *
5860     * @param obj The button object
5861     * @return Timeout in seconds
5862     *
5863     * @see elm_button_autorepeat_initial_timeout_set()
5864     */
5865    EAPI double       elm_button_autorepeat_initial_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5866    /**
5867     * Set the interval between each generated autorepeat event
5868     *
5869     * After the first @c repeated event is fired, all subsequent ones will
5870     * follow after a delay of @p t seconds for each.
5871     *
5872     * @param obj The button object
5873     * @param t   Interval in seconds
5874     *
5875     * @see elm_button_autorepeat_initial_timeout_set()
5876     */
5877    EAPI void         elm_button_autorepeat_gap_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
5878    /**
5879     * Get the interval between each generated autorepeat event
5880     *
5881     * @param obj The button object
5882     * @return Interval in seconds
5883     */
5884    EAPI double       elm_button_autorepeat_gap_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5885    /**
5886     * @}
5887     */
5888
5889    /**
5890     * @defgroup File_Selector_Button File Selector Button
5891     *
5892     * @image html img/widget/fileselector_button/preview-00.png
5893     * @image latex img/widget/fileselector_button/preview-00.eps
5894     * @image html img/widget/fileselector_button/preview-01.png
5895     * @image latex img/widget/fileselector_button/preview-01.eps
5896     * @image html img/widget/fileselector_button/preview-02.png
5897     * @image latex img/widget/fileselector_button/preview-02.eps
5898     *
5899     * This is a button that, when clicked, creates an Elementary
5900     * window (or inner window) <b> with a @ref Fileselector "file
5901     * selector widget" within</b>. When a file is chosen, the (inner)
5902     * window is closed and the button emits a signal having the
5903     * selected file as it's @c event_info.
5904     *
5905     * This widget encapsulates operations on its internal file
5906     * selector on its own API. There is less control over its file
5907     * selector than that one would have instatiating one directly.
5908     *
5909     * The following styles are available for this button:
5910     * @li @c "default"
5911     * @li @c "anchor"
5912     * @li @c "hoversel_vertical"
5913     * @li @c "hoversel_vertical_entry"
5914     *
5915     * Smart callbacks one can register to:
5916     * - @c "file,chosen" - the user has selected a path, whose string
5917     *   pointer comes as the @c event_info data (a stringshared
5918     *   string)
5919     *
5920     * Here is an example on its usage:
5921     * @li @ref fileselector_button_example
5922     *
5923     * @see @ref File_Selector_Entry for a similar widget.
5924     * @{
5925     */
5926
5927    /**
5928     * Add a new file selector button widget to the given parent
5929     * Elementary (container) object
5930     *
5931     * @param parent The parent object
5932     * @return a new file selector button widget handle or @c NULL, on
5933     * errors
5934     */
5935    EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5936
5937    /**
5938     * Set the label for a given file selector button widget
5939     *
5940     * @param obj The file selector button widget
5941     * @param label The text label to be displayed on @p obj
5942     *
5943     * @deprecated use elm_object_text_set() instead.
5944     */
5945    EINA_DEPRECATED EAPI void         elm_fileselector_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
5946
5947    /**
5948     * Get the label set for a given file selector button widget
5949     *
5950     * @param obj The file selector button widget
5951     * @return The button label
5952     *
5953     * @deprecated use elm_object_text_set() instead.
5954     */
5955    EINA_DEPRECATED EAPI const char  *elm_fileselector_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5956
5957    /**
5958     * Set the icon on a given file selector button widget
5959     *
5960     * @param obj The file selector button widget
5961     * @param icon The icon object for the button
5962     *
5963     * Once the icon object is set, a previously set one will be
5964     * deleted. If you want to keep the latter, use the
5965     * elm_fileselector_button_icon_unset() function.
5966     *
5967     * @see elm_fileselector_button_icon_get()
5968     */
5969    EAPI void         elm_fileselector_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
5970
5971    /**
5972     * Get the icon set for a given file selector button widget
5973     *
5974     * @param obj The file selector button widget
5975     * @return The icon object currently set on @p obj or @c NULL, if
5976     * none is
5977     *
5978     * @see elm_fileselector_button_icon_set()
5979     */
5980    EAPI Evas_Object *elm_fileselector_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5981
5982    /**
5983     * Unset the icon used in a given file selector button widget
5984     *
5985     * @param obj The file selector button widget
5986     * @return The icon object that was being used on @p obj or @c
5987     * NULL, on errors
5988     *
5989     * Unparent and return the icon object which was set for this
5990     * widget.
5991     *
5992     * @see elm_fileselector_button_icon_set()
5993     */
5994    EAPI Evas_Object *elm_fileselector_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
5995
5996    /**
5997     * Set the title for a given file selector button widget's window
5998     *
5999     * @param obj The file selector button widget
6000     * @param title The title string
6001     *
6002     * This will change the window's title, when the file selector pops
6003     * out after a click on the button. Those windows have the default
6004     * (unlocalized) value of @c "Select a file" as titles.
6005     *
6006     * @note It will only take any effect if the file selector
6007     * button widget is @b not under "inwin mode".
6008     *
6009     * @see elm_fileselector_button_window_title_get()
6010     */
6011    EAPI void         elm_fileselector_button_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6012
6013    /**
6014     * Get the title set for a given file selector button widget's
6015     * window
6016     *
6017     * @param obj The file selector button widget
6018     * @return Title of the file selector button's window
6019     *
6020     * @see elm_fileselector_button_window_title_get() for more details
6021     */
6022    EAPI const char  *elm_fileselector_button_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6023
6024    /**
6025     * Set the size of a given file selector button widget's window,
6026     * holding the file selector itself.
6027     *
6028     * @param obj The file selector button widget
6029     * @param width The window's width
6030     * @param height The window's height
6031     *
6032     * @note it will only take any effect if the file selector button
6033     * widget is @b not under "inwin mode". The default size for the
6034     * window (when applicable) is 400x400 pixels.
6035     *
6036     * @see elm_fileselector_button_window_size_get()
6037     */
6038    EAPI void         elm_fileselector_button_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6039
6040    /**
6041     * Get the size of a given file selector button widget's window,
6042     * holding the file selector itself.
6043     *
6044     * @param obj The file selector button widget
6045     * @param width Pointer into which to store the width value
6046     * @param height Pointer into which to store the height value
6047     *
6048     * @note Use @c NULL pointers on the size values you're not
6049     * interested in: they'll be ignored by the function.
6050     *
6051     * @see elm_fileselector_button_window_size_set(), for more details
6052     */
6053    EAPI void         elm_fileselector_button_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6054
6055    /**
6056     * Set the initial file system path for a given file selector
6057     * button widget
6058     *
6059     * @param obj The file selector button widget
6060     * @param path The path string
6061     *
6062     * It must be a <b>directory</b> path, which will have the contents
6063     * displayed initially in the file selector's view, when invoked
6064     * from @p obj. The default initial path is the @c "HOME"
6065     * environment variable's value.
6066     *
6067     * @see elm_fileselector_button_path_get()
6068     */
6069    EAPI void         elm_fileselector_button_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6070
6071    /**
6072     * Get the initial file system path set for a given file selector
6073     * button widget
6074     *
6075     * @param obj The file selector button widget
6076     * @return path The path string
6077     *
6078     * @see elm_fileselector_button_path_set() for more details
6079     */
6080    EAPI const char  *elm_fileselector_button_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6081
6082    /**
6083     * Enable/disable a tree view in the given file selector button
6084     * widget's internal file selector
6085     *
6086     * @param obj The file selector button widget
6087     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6088     * disable
6089     *
6090     * This has the same effect as elm_fileselector_expandable_set(),
6091     * but now applied to a file selector button's internal file
6092     * selector.
6093     *
6094     * @note There's no way to put a file selector button's internal
6095     * file selector in "grid mode", as one may do with "pure" file
6096     * selectors.
6097     *
6098     * @see elm_fileselector_expandable_get()
6099     */
6100    EAPI void         elm_fileselector_button_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6101
6102    /**
6103     * Get whether tree view is enabled for the given file selector
6104     * button widget's internal file selector
6105     *
6106     * @param obj The file selector button widget
6107     * @return @c EINA_TRUE if @p obj widget's internal file selector
6108     * is in tree view, @c EINA_FALSE otherwise (and or errors)
6109     *
6110     * @see elm_fileselector_expandable_set() for more details
6111     */
6112    EAPI Eina_Bool    elm_fileselector_button_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6113
6114    /**
6115     * Set whether a given file selector button widget's internal file
6116     * selector is to display folders only or the directory contents,
6117     * as well.
6118     *
6119     * @param obj The file selector button widget
6120     * @param only @c EINA_TRUE to make @p obj widget's internal file
6121     * selector only display directories, @c EINA_FALSE to make files
6122     * to be displayed in it too
6123     *
6124     * This has the same effect as elm_fileselector_folder_only_set(),
6125     * but now applied to a file selector button's internal file
6126     * selector.
6127     *
6128     * @see elm_fileselector_folder_only_get()
6129     */
6130    EAPI void         elm_fileselector_button_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6131
6132    /**
6133     * Get whether a given file selector button widget's internal file
6134     * selector is displaying folders only or the directory contents,
6135     * as well.
6136     *
6137     * @param obj The file selector button widget
6138     * @return @c EINA_TRUE if @p obj widget's internal file
6139     * selector is only displaying directories, @c EINA_FALSE if files
6140     * are being displayed in it too (and on errors)
6141     *
6142     * @see elm_fileselector_button_folder_only_set() for more details
6143     */
6144    EAPI Eina_Bool    elm_fileselector_button_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6145
6146    /**
6147     * Enable/disable the file name entry box where the user can type
6148     * in a name for a file, in a given file selector button widget's
6149     * internal file selector.
6150     *
6151     * @param obj The file selector button widget
6152     * @param is_save @c EINA_TRUE to make @p obj widget's internal
6153     * file selector a "saving dialog", @c EINA_FALSE otherwise
6154     *
6155     * This has the same effect as elm_fileselector_is_save_set(),
6156     * but now applied to a file selector button's internal file
6157     * selector.
6158     *
6159     * @see elm_fileselector_is_save_get()
6160     */
6161    EAPI void         elm_fileselector_button_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6162
6163    /**
6164     * Get whether the given file selector button widget's internal
6165     * file selector is in "saving dialog" mode
6166     *
6167     * @param obj The file selector button widget
6168     * @return @c EINA_TRUE, if @p obj widget's internal file selector
6169     * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
6170     * errors)
6171     *
6172     * @see elm_fileselector_button_is_save_set() for more details
6173     */
6174    EAPI Eina_Bool    elm_fileselector_button_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6175
6176    /**
6177     * Set whether a given file selector button widget's internal file
6178     * selector will raise an Elementary "inner window", instead of a
6179     * dedicated Elementary window. By default, it won't.
6180     *
6181     * @param obj The file selector button widget
6182     * @param value @c EINA_TRUE to make it use an inner window, @c
6183     * EINA_TRUE to make it use a dedicated window
6184     *
6185     * @see elm_win_inwin_add() for more information on inner windows
6186     * @see elm_fileselector_button_inwin_mode_get()
6187     */
6188    EAPI void         elm_fileselector_button_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6189
6190    /**
6191     * Get whether a given file selector button widget's internal file
6192     * selector will raise an Elementary "inner window", instead of a
6193     * dedicated Elementary window.
6194     *
6195     * @param obj The file selector button widget
6196     * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
6197     * if it will use a dedicated window
6198     *
6199     * @see elm_fileselector_button_inwin_mode_set() for more details
6200     */
6201    EAPI Eina_Bool    elm_fileselector_button_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6202
6203    /**
6204     * @}
6205     */
6206
6207     /**
6208     * @defgroup File_Selector_Entry File Selector Entry
6209     *
6210     * @image html img/widget/fileselector_entry/preview-00.png
6211     * @image latex img/widget/fileselector_entry/preview-00.eps
6212     *
6213     * This is an entry made to be filled with or display a <b>file
6214     * system path string</b>. Besides the entry itself, the widget has
6215     * a @ref File_Selector_Button "file selector button" on its side,
6216     * which will raise an internal @ref Fileselector "file selector widget",
6217     * when clicked, for path selection aided by file system
6218     * navigation.
6219     *
6220     * This file selector may appear in an Elementary window or in an
6221     * inner window. When a file is chosen from it, the (inner) window
6222     * is closed and the selected file's path string is exposed both as
6223     * an smart event and as the new text on the entry.
6224     *
6225     * This widget encapsulates operations on its internal file
6226     * selector on its own API. There is less control over its file
6227     * selector than that one would have instatiating one directly.
6228     *
6229     * Smart callbacks one can register to:
6230     * - @c "changed" - The text within the entry was changed
6231     * - @c "activated" - The entry has had editing finished and
6232     *   changes are to be "committed"
6233     * - @c "press" - The entry has been clicked
6234     * - @c "longpressed" - The entry has been clicked (and held) for a
6235     *   couple seconds
6236     * - @c "clicked" - The entry has been clicked
6237     * - @c "clicked,double" - The entry has been double clicked
6238     * - @c "focused" - The entry has received focus
6239     * - @c "unfocused" - The entry has lost focus
6240     * - @c "selection,paste" - A paste action has occurred on the
6241     *   entry
6242     * - @c "selection,copy" - A copy action has occurred on the entry
6243     * - @c "selection,cut" - A cut action has occurred on the entry
6244     * - @c "unpressed" - The file selector entry's button was released
6245     *   after being pressed.
6246     * - @c "file,chosen" - The user has selected a path via the file
6247     *   selector entry's internal file selector, whose string pointer
6248     *   comes as the @c event_info data (a stringshared string)
6249     *
6250     * Here is an example on its usage:
6251     * @li @ref fileselector_entry_example
6252     *
6253     * @see @ref File_Selector_Button for a similar widget.
6254     * @{
6255     */
6256
6257    /**
6258     * Add a new file selector entry widget to the given parent
6259     * Elementary (container) object
6260     *
6261     * @param parent The parent object
6262     * @return a new file selector entry widget handle or @c NULL, on
6263     * errors
6264     */
6265    EAPI Evas_Object *elm_fileselector_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6266
6267    /**
6268     * Set the label for a given file selector entry widget's button
6269     *
6270     * @param obj The file selector entry widget
6271     * @param label The text label to be displayed on @p obj widget's
6272     * button
6273     *
6274     * @deprecated use elm_object_text_set() instead.
6275     */
6276    EINA_DEPRECATED EAPI void         elm_fileselector_entry_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6277
6278    /**
6279     * Get the label set for a given file selector entry widget's button
6280     *
6281     * @param obj The file selector entry widget
6282     * @return The widget button's label
6283     *
6284     * @deprecated use elm_object_text_set() instead.
6285     */
6286    EINA_DEPRECATED EAPI const char  *elm_fileselector_entry_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6287
6288    /**
6289     * Set the icon on a given file selector entry widget's button
6290     *
6291     * @param obj The file selector entry widget
6292     * @param icon The icon object for the entry's button
6293     *
6294     * Once the icon object is set, a previously set one will be
6295     * deleted. If you want to keep the latter, use the
6296     * elm_fileselector_entry_button_icon_unset() function.
6297     *
6298     * @see elm_fileselector_entry_button_icon_get()
6299     */
6300    EAPI void         elm_fileselector_entry_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6301
6302    /**
6303     * Get the icon set for a given file selector entry widget's button
6304     *
6305     * @param obj The file selector entry widget
6306     * @return The icon object currently set on @p obj widget's button
6307     * or @c NULL, if none is
6308     *
6309     * @see elm_fileselector_entry_button_icon_set()
6310     */
6311    EAPI Evas_Object *elm_fileselector_entry_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6312
6313    /**
6314     * Unset the icon used in a given file selector entry widget's
6315     * button
6316     *
6317     * @param obj The file selector entry widget
6318     * @return The icon object that was being used on @p obj widget's
6319     * button or @c NULL, on errors
6320     *
6321     * Unparent and return the icon object which was set for this
6322     * widget's button.
6323     *
6324     * @see elm_fileselector_entry_button_icon_set()
6325     */
6326    EAPI Evas_Object *elm_fileselector_entry_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6327
6328    /**
6329     * Set the title for a given file selector entry widget's window
6330     *
6331     * @param obj The file selector entry widget
6332     * @param title The title string
6333     *
6334     * This will change the window's title, when the file selector pops
6335     * out after a click on the entry's button. Those windows have the
6336     * default (unlocalized) value of @c "Select a file" as titles.
6337     *
6338     * @note It will only take any effect if the file selector
6339     * entry widget is @b not under "inwin mode".
6340     *
6341     * @see elm_fileselector_entry_window_title_get()
6342     */
6343    EAPI void         elm_fileselector_entry_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6344
6345    /**
6346     * Get the title set for a given file selector entry widget's
6347     * window
6348     *
6349     * @param obj The file selector entry widget
6350     * @return Title of the file selector entry's window
6351     *
6352     * @see elm_fileselector_entry_window_title_get() for more details
6353     */
6354    EAPI const char  *elm_fileselector_entry_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6355
6356    /**
6357     * Set the size of a given file selector entry widget's window,
6358     * holding the file selector itself.
6359     *
6360     * @param obj The file selector entry widget
6361     * @param width The window's width
6362     * @param height The window's height
6363     *
6364     * @note it will only take any effect if the file selector entry
6365     * widget is @b not under "inwin mode". The default size for the
6366     * window (when applicable) is 400x400 pixels.
6367     *
6368     * @see elm_fileselector_entry_window_size_get()
6369     */
6370    EAPI void         elm_fileselector_entry_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6371
6372    /**
6373     * Get the size of a given file selector entry widget's window,
6374     * holding the file selector itself.
6375     *
6376     * @param obj The file selector entry widget
6377     * @param width Pointer into which to store the width value
6378     * @param height Pointer into which to store the height value
6379     *
6380     * @note Use @c NULL pointers on the size values you're not
6381     * interested in: they'll be ignored by the function.
6382     *
6383     * @see elm_fileselector_entry_window_size_set(), for more details
6384     */
6385    EAPI void         elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6386
6387    /**
6388     * Set the initial file system path and the entry's path string for
6389     * a given file selector entry widget
6390     *
6391     * @param obj The file selector entry widget
6392     * @param path The path string
6393     *
6394     * It must be a <b>directory</b> path, which will have the contents
6395     * displayed initially in the file selector's view, when invoked
6396     * from @p obj. The default initial path is the @c "HOME"
6397     * environment variable's value.
6398     *
6399     * @see elm_fileselector_entry_path_get()
6400     */
6401    EAPI void         elm_fileselector_entry_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6402
6403    /**
6404     * Get the entry's path string for a given file selector entry
6405     * widget
6406     *
6407     * @param obj The file selector entry widget
6408     * @return path The path string
6409     *
6410     * @see elm_fileselector_entry_path_set() for more details
6411     */
6412    EAPI const char  *elm_fileselector_entry_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6413
6414    /**
6415     * Enable/disable a tree view in the given file selector entry
6416     * widget's internal file selector
6417     *
6418     * @param obj The file selector entry widget
6419     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6420     * disable
6421     *
6422     * This has the same effect as elm_fileselector_expandable_set(),
6423     * but now applied to a file selector entry's internal file
6424     * selector.
6425     *
6426     * @note There's no way to put a file selector entry's internal
6427     * file selector in "grid mode", as one may do with "pure" file
6428     * selectors.
6429     *
6430     * @see elm_fileselector_expandable_get()
6431     */
6432    EAPI void         elm_fileselector_entry_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6433
6434    /**
6435     * Get whether tree view is enabled for the given file selector
6436     * entry widget's internal file selector
6437     *
6438     * @param obj The file selector entry widget
6439     * @return @c EINA_TRUE if @p obj widget's internal file selector
6440     * is in tree view, @c EINA_FALSE otherwise (and or errors)
6441     *
6442     * @see elm_fileselector_expandable_set() for more details
6443     */
6444    EAPI Eina_Bool    elm_fileselector_entry_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6445
6446    /**
6447     * Set whether a given file selector entry widget's internal file
6448     * selector is to display folders only or the directory contents,
6449     * as well.
6450     *
6451     * @param obj The file selector entry widget
6452     * @param only @c EINA_TRUE to make @p obj widget's internal file
6453     * selector only display directories, @c EINA_FALSE to make files
6454     * to be displayed in it too
6455     *
6456     * This has the same effect as elm_fileselector_folder_only_set(),
6457     * but now applied to a file selector entry's internal file
6458     * selector.
6459     *
6460     * @see elm_fileselector_folder_only_get()
6461     */
6462    EAPI void         elm_fileselector_entry_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6463
6464    /**
6465     * Get whether a given file selector entry widget's internal file
6466     * selector is displaying folders only or the directory contents,
6467     * as well.
6468     *
6469     * @param obj The file selector entry widget
6470     * @return @c EINA_TRUE if @p obj widget's internal file
6471     * selector is only displaying directories, @c EINA_FALSE if files
6472     * are being displayed in it too (and on errors)
6473     *
6474     * @see elm_fileselector_entry_folder_only_set() for more details
6475     */
6476    EAPI Eina_Bool    elm_fileselector_entry_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6477
6478    /**
6479     * Enable/disable the file name entry box where the user can type
6480     * in a name for a file, in a given file selector entry widget's
6481     * internal file selector.
6482     *
6483     * @param obj The file selector entry widget
6484     * @param is_save @c EINA_TRUE to make @p obj widget's internal
6485     * file selector a "saving dialog", @c EINA_FALSE otherwise
6486     *
6487     * This has the same effect as elm_fileselector_is_save_set(),
6488     * but now applied to a file selector entry's internal file
6489     * selector.
6490     *
6491     * @see elm_fileselector_is_save_get()
6492     */
6493    EAPI void         elm_fileselector_entry_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6494
6495    /**
6496     * Get whether the given file selector entry widget's internal
6497     * file selector is in "saving dialog" mode
6498     *
6499     * @param obj The file selector entry widget
6500     * @return @c EINA_TRUE, if @p obj widget's internal file selector
6501     * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
6502     * errors)
6503     *
6504     * @see elm_fileselector_entry_is_save_set() for more details
6505     */
6506    EAPI Eina_Bool    elm_fileselector_entry_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6507
6508    /**
6509     * Set whether a given file selector entry widget's internal file
6510     * selector will raise an Elementary "inner window", instead of a
6511     * dedicated Elementary window. By default, it won't.
6512     *
6513     * @param obj The file selector entry widget
6514     * @param value @c EINA_TRUE to make it use an inner window, @c
6515     * EINA_TRUE to make it use a dedicated window
6516     *
6517     * @see elm_win_inwin_add() for more information on inner windows
6518     * @see elm_fileselector_entry_inwin_mode_get()
6519     */
6520    EAPI void         elm_fileselector_entry_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6521
6522    /**
6523     * Get whether a given file selector entry widget's internal file
6524     * selector will raise an Elementary "inner window", instead of a
6525     * dedicated Elementary window.
6526     *
6527     * @param obj The file selector entry widget
6528     * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
6529     * if it will use a dedicated window
6530     *
6531     * @see elm_fileselector_entry_inwin_mode_set() for more details
6532     */
6533    EAPI Eina_Bool    elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6534
6535    /**
6536     * Set the initial file system path for a given file selector entry
6537     * widget
6538     *
6539     * @param obj The file selector entry widget
6540     * @param path The path string
6541     *
6542     * It must be a <b>directory</b> path, which will have the contents
6543     * displayed initially in the file selector's view, when invoked
6544     * from @p obj. The default initial path is the @c "HOME"
6545     * environment variable's value.
6546     *
6547     * @see elm_fileselector_entry_path_get()
6548     */
6549    EAPI void         elm_fileselector_entry_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6550
6551    /**
6552     * Get the parent directory's path to the latest file selection on
6553     * a given filer selector entry widget
6554     *
6555     * @param obj The file selector object
6556     * @return The (full) path of the directory of the last selection
6557     * on @p obj widget, a @b stringshared string
6558     *
6559     * @see elm_fileselector_entry_path_set()
6560     */
6561    EAPI const char  *elm_fileselector_entry_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6562
6563    /**
6564     * @}
6565     */
6566
6567    /**
6568     * @defgroup Scroller Scroller
6569     *
6570     * A scroller holds a single object and "scrolls it around". This means that
6571     * it allows the user to use a scrollbar (or a finger) to drag the viewable
6572     * region around, allowing to move through a much larger object that is
6573     * contained in the scroller. The scroiller will always have a small minimum
6574     * size by default as it won't be limited by the contents of the scroller.
6575     *
6576     * Signals that you can add callbacks for are:
6577     * @li "edge,left" - the left edge of the content has been reached
6578     * @li "edge,right" - the right edge of the content has been reached
6579     * @li "edge,top" - the top edge of the content has been reached
6580     * @li "edge,bottom" - the bottom edge of the content has been reached
6581     * @li "scroll" - the content has been scrolled (moved)
6582     * @li "scroll,anim,start" - scrolling animation has started
6583     * @li "scroll,anim,stop" - scrolling animation has stopped
6584     * @li "scroll,drag,start" - dragging the contents around has started
6585     * @li "scroll,drag,stop" - dragging the contents around has stopped
6586     * @note The "scroll,anim,*" and "scroll,drag,*" signals are only emitted by
6587     * user intervetion.
6588     *
6589     * @note When Elemementary is in embedded mode the scrollbars will not be
6590     * dragable, they appear merely as indicators of how much has been scrolled.
6591     * @note When Elementary is in desktop mode the thumbscroll(a.k.a.
6592     * fingerscroll) won't work.
6593     *
6594     * In @ref tutorial_scroller you'll find an example of how to use most of
6595     * this API.
6596     * @{
6597     */
6598    /**
6599     * @brief Type that controls when scrollbars should appear.
6600     *
6601     * @see elm_scroller_policy_set()
6602     */
6603    typedef enum _Elm_Scroller_Policy
6604      {
6605         ELM_SCROLLER_POLICY_AUTO = 0, /**< Show scrollbars as needed */
6606         ELM_SCROLLER_POLICY_ON, /**< Always show scrollbars */
6607         ELM_SCROLLER_POLICY_OFF, /**< Never show scrollbars */
6608         ELM_SCROLLER_POLICY_LAST
6609      } Elm_Scroller_Policy;
6610    /**
6611     * @brief Add a new scroller to the parent
6612     *
6613     * @param parent The parent object
6614     * @return The new object or NULL if it cannot be created
6615     */
6616    EAPI Evas_Object *elm_scroller_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6617    /**
6618     * @brief Set the content of the scroller widget (the object to be scrolled around).
6619     *
6620     * @param obj The scroller object
6621     * @param content The new content object
6622     *
6623     * Once the content object is set, a previously set one will be deleted.
6624     * If you want to keep that old content object, use the
6625     * elm_scroller_content_unset() function.
6626     */
6627    EAPI void         elm_scroller_content_set(Evas_Object *obj, Evas_Object *child) EINA_ARG_NONNULL(1);
6628    /**
6629     * @brief Get the content of the scroller widget
6630     *
6631     * @param obj The slider object
6632     * @return The content that is being used
6633     *
6634     * Return the content object which is set for this widget
6635     *
6636     * @see elm_scroller_content_set()
6637     */
6638    EAPI Evas_Object *elm_scroller_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6639    /**
6640     * @brief Unset the content of the scroller widget
6641     *
6642     * @param obj The slider object
6643     * @return The content that was being used
6644     *
6645     * Unparent and return the content object which was set for this widget
6646     *
6647     * @see elm_scroller_content_set()
6648     */
6649    EAPI Evas_Object *elm_scroller_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6650    /**
6651     * @brief Set custom theme elements for the scroller
6652     *
6653     * @param obj The scroller object
6654     * @param widget The widget name to use (default is "scroller")
6655     * @param base The base name to use (default is "base")
6656     */
6657    EAPI void         elm_scroller_custom_widget_base_theme_set(Evas_Object *obj, const char *widget, const char *base) EINA_ARG_NONNULL(1, 2, 3);
6658    /**
6659     * @brief Make the scroller minimum size limited to the minimum size of the content
6660     *
6661     * @param obj The scroller object
6662     * @param w Enable limiting minimum size horizontally
6663     * @param h Enable limiting minimum size vertically
6664     *
6665     * By default the scroller will be as small as its design allows,
6666     * irrespective of its content. This will make the scroller minimum size the
6667     * right size horizontally and/or vertically to perfectly fit its content in
6668     * that direction.
6669     */
6670    EAPI void         elm_scroller_content_min_limit(Evas_Object *obj, Eina_Bool w, Eina_Bool h) EINA_ARG_NONNULL(1);
6671    /**
6672     * @brief Show a specific virtual region within the scroller content object
6673     *
6674     * @param obj The scroller object
6675     * @param x X coordinate of the region
6676     * @param y Y coordinate of the region
6677     * @param w Width of the region
6678     * @param h Height of the region
6679     *
6680     * This will ensure all (or part if it does not fit) of the designated
6681     * region in the virtual content object (0, 0 starting at the top-left of the
6682     * virtual content object) is shown within the scroller.
6683     */
6684    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);
6685    /**
6686     * @brief Set the scrollbar visibility policy
6687     *
6688     * @param obj The scroller object
6689     * @param policy_h Horizontal scrollbar policy
6690     * @param policy_v Vertical scrollbar policy
6691     *
6692     * This sets the scrollbar visibility policy for the given scroller.
6693     * ELM_SCROLLER_POLICY_AUTO means the scrollber is made visible if it is
6694     * needed, and otherwise kept hidden. ELM_SCROLLER_POLICY_ON turns it on all
6695     * the time, and ELM_SCROLLER_POLICY_OFF always keeps it off. This applies
6696     * respectively for the horizontal and vertical scrollbars.
6697     */
6698    EAPI void         elm_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
6699    /**
6700     * @brief Gets scrollbar visibility policy
6701     *
6702     * @param obj The scroller object
6703     * @param policy_h Horizontal scrollbar policy
6704     * @param policy_v Vertical scrollbar policy
6705     *
6706     * @see elm_scroller_policy_set()
6707     */
6708    EAPI void         elm_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
6709    /**
6710     * @brief Get the currently visible content region
6711     *
6712     * @param obj The scroller object
6713     * @param x X coordinate of the region
6714     * @param y Y coordinate of the region
6715     * @param w Width of the region
6716     * @param h Height of the region
6717     *
6718     * This gets the current region in the content object that is visible through
6719     * the scroller. The region co-ordinates are returned in the @p x, @p y, @p
6720     * w, @p h values pointed to.
6721     *
6722     * @note All coordinates are relative to the content.
6723     *
6724     * @see elm_scroller_region_show()
6725     */
6726    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);
6727    /**
6728     * @brief Get the size of the content object
6729     *
6730     * @param obj The scroller object
6731     * @param w Width return
6732     * @param h Height return
6733     *
6734     * This gets the size of the content object of the scroller.
6735     */
6736    EAPI void         elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
6737    /**
6738     * @brief Set bouncing behavior
6739     *
6740     * @param obj The scroller object
6741     * @param h_bounce Will the scroller bounce horizontally or not
6742     * @param v_bounce Will the scroller bounce vertically or not
6743     *
6744     * When scrolling, the scroller may "bounce" when reaching an edge of the
6745     * content object. This is a visual way to indicate the end has been reached.
6746     * This is enabled by default for both axis. This will set if it is enabled
6747     * for that axis with the boolean parameters for each axis.
6748     */
6749    EAPI void         elm_scroller_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
6750    /**
6751     * @brief Get the bounce mode
6752     *
6753     * @param obj The Scroller object
6754     * @param h_bounce Allow bounce horizontally
6755     * @param v_bounce Allow bounce vertically
6756     *
6757     * @see elm_scroller_bounce_set()
6758     */
6759    EAPI void         elm_scroller_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
6760    /**
6761     * @brief Set scroll page size relative to viewport size.
6762     *
6763     * @param obj The scroller object
6764     * @param h_pagerel The horizontal page relative size
6765     * @param v_pagerel The vertical page relative size
6766     *
6767     * The scroller is capable of limiting scrolling by the user to "pages". That
6768     * is to jump by and only show a "whole page" at a time as if the continuous
6769     * area of the scroller content is split into page sized pieces. This sets
6770     * the size of a page relative to the viewport of the scroller. 1.0 is "1
6771     * viewport" is size (horizontally or vertically). 0.0 turns it off in that
6772     * axis. This is mutually exclusive with page size
6773     * (see elm_scroller_page_size_set()  for more information). Likewise 0.5
6774     * is "half a viewport". Sane usable valus are normally between 0.0 and 1.0
6775     * including 1.0. If you only want 1 axis to be page "limited", use 0.0 for
6776     * the other axis.
6777     */
6778    EAPI void         elm_scroller_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
6779    /**
6780     * @brief Set scroll page size.
6781     *
6782     * @param obj The scroller object
6783     * @param h_pagesize The horizontal page size
6784     * @param v_pagesize The vertical page size
6785     *
6786     * This sets the page size to an absolute fixed value, with 0 turning it off
6787     * for that axis.
6788     *
6789     * @see elm_scroller_page_relative_set()
6790     */
6791    EAPI void         elm_scroller_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
6792    /**
6793     * @brief Show a specific virtual region within the scroller content object.
6794     *
6795     * @param obj The scroller object
6796     * @param x X coordinate of the region
6797     * @param y Y coordinate of the region
6798     * @param w Width of the region
6799     * @param h Height of the region
6800     *
6801     * This will ensure all (or part if it does not fit) of the designated
6802     * region in the virtual content object (0, 0 starting at the top-left of the
6803     * virtual content object) is shown within the scroller. Unlike
6804     * elm_scroller_region_show(), this allow the scroller to "smoothly slide"
6805     * to this location (if configuration in general calls for transitions). It
6806     * may not jump immediately to the new location and make take a while and
6807     * show other content along the way.
6808     *
6809     * @see elm_scroller_region_show()
6810     */
6811    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);
6812    /**
6813     * @brief Set event propagation on a scroller
6814     *
6815     * @param obj The scroller object
6816     * @param propagation If propagation is enabled or not
6817     *
6818     * This enables or disabled event propagation from the scroller content to
6819     * the scroller and its parent. By default event propagation is disabled.
6820     */
6821    EAPI void         elm_scroller_propagate_events_set(Evas_Object *obj, Eina_Bool propagation);
6822    /**
6823     * @brief Get event propagation for a scroller
6824     *
6825     * @param obj The scroller object
6826     * @return The propagation state
6827     *
6828     * This gets the event propagation for a scroller.
6829     *
6830     * @see elm_scroller_propagate_events_set()
6831     */
6832    EAPI Eina_Bool    elm_scroller_propagate_events_get(const Evas_Object *obj);
6833    /**
6834     * @}
6835     */
6836
6837    /**
6838     * @defgroup Label Label
6839     *
6840     * @image html img/widget/label/preview-00.png
6841     * @image latex img/widget/label/preview-00.eps
6842     *
6843     * @brief Widget to display text, with simple html-like markup.
6844     *
6845     * The Label widget @b doesn't allow text to overflow its boundaries, if the
6846     * text doesn't fit the geometry of the label it will be ellipsized or be
6847     * cut. Elementary provides several themes for this widget:
6848     * @li default - No animation
6849     * @li marker - Centers the text in the label and make it bold by default
6850     * @li slide_long - The entire text appears from the right of the screen and
6851     * slides until it disappears in the left of the screen(reappering on the
6852     * right again).
6853     * @li slide_short - The text appears in the left of the label and slides to
6854     * the right to show the overflow. When all of the text has been shown the
6855     * position is reset.
6856     * @li slide_bounce - The text appears in the left of the label and slides to
6857     * the right to show the overflow. When all of the text has been shown the
6858     * animation reverses, moving the text to the left.
6859     *
6860     * Custom themes can of course invent new markup tags and style them any way
6861     * they like.
6862     *
6863     * See @ref tutorial_label for a demonstration of how to use a label widget.
6864     * @{
6865     */
6866    /**
6867     * @brief Add a new label to the parent
6868     *
6869     * @param parent The parent object
6870     * @return The new object or NULL if it cannot be created
6871     */
6872    EAPI Evas_Object *elm_label_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6873    /**
6874     * @brief Set the label on the label object
6875     *
6876     * @param obj The label object
6877     * @param label The label will be used on the label object
6878     * @deprecated See elm_object_text_set()
6879     */
6880    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 */
6881    /**
6882     * @brief Get the label used on the label object
6883     *
6884     * @param obj The label object
6885     * @return The string inside the label
6886     * @deprecated See elm_object_text_get()
6887     */
6888    EINA_DEPRECATED EAPI const char *elm_label_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); /* deprecated, use elm_object_text_get instead */
6889    /**
6890     * @brief Set the wrapping behavior of the label
6891     *
6892     * @param obj The label object
6893     * @param wrap To wrap text or not
6894     *
6895     * By default no wrapping is done. Possible values for @p wrap are:
6896     * @li ELM_WRAP_NONE - No wrapping
6897     * @li ELM_WRAP_CHAR - wrap between characters
6898     * @li ELM_WRAP_WORD - wrap between words
6899     * @li ELM_WRAP_MIXED - Word wrap, and if that fails, char wrap
6900     */
6901    EAPI void         elm_label_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
6902    /**
6903     * @brief Get the wrapping behavior of the label
6904     *
6905     * @param obj The label object
6906     * @return Wrap type
6907     *
6908     * @see elm_label_line_wrap_set()
6909     */
6910    EAPI Elm_Wrap_Type elm_label_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6911    /**
6912     * @brief Set wrap width of the label
6913     *
6914     * @param obj The label object
6915     * @param w The wrap width in pixels at a minimum where words need to wrap
6916     *
6917     * This function sets the maximum width size hint of the label.
6918     *
6919     * @warning This is only relevant if the label is inside a container.
6920     */
6921    EAPI void         elm_label_wrap_width_set(Evas_Object *obj, Evas_Coord w) EINA_ARG_NONNULL(1);
6922    /**
6923     * @brief Get wrap width of the label
6924     *
6925     * @param obj The label object
6926     * @return The wrap width in pixels at a minimum where words need to wrap
6927     *
6928     * @see elm_label_wrap_width_set()
6929     */
6930    EAPI Evas_Coord   elm_label_wrap_width_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6931    /**
6932     * @brief Set wrap height of the label
6933     *
6934     * @param obj The label object
6935     * @param h The wrap height in pixels at a minimum where words need to wrap
6936     *
6937     * This function sets the maximum height size hint of the label.
6938     *
6939     * @warning This is only relevant if the label is inside a container.
6940     */
6941    EAPI void         elm_label_wrap_height_set(Evas_Object *obj, Evas_Coord h) EINA_ARG_NONNULL(1);
6942    /**
6943     * @brief get wrap width of the label
6944     *
6945     * @param obj The label object
6946     * @return The wrap height in pixels at a minimum where words need to wrap
6947     */
6948    EAPI Evas_Coord   elm_label_wrap_height_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6949    /**
6950     * @brief Set the font size on the label object.
6951     *
6952     * @param obj The label object
6953     * @param size font size
6954     *
6955     * @warning NEVER use this. It is for hyper-special cases only. use styles
6956     * instead. e.g. "big", "medium", "small" - or better name them by use:
6957     * "title", "footnote", "quote" etc.
6958     */
6959    EAPI void         elm_label_fontsize_set(Evas_Object *obj, int fontsize) EINA_ARG_NONNULL(1);
6960    /**
6961     * @brief Set the text color on the label object
6962     *
6963     * @param obj The label object
6964     * @param r Red property background color of The label object
6965     * @param g Green property background color of The label object
6966     * @param b Blue property background color of The label object
6967     * @param a Alpha property background color of The label object
6968     *
6969     * @warning NEVER use this. It is for hyper-special cases only. use styles
6970     * instead. e.g. "big", "medium", "small" - or better name them by use:
6971     * "title", "footnote", "quote" etc.
6972     */
6973    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);
6974    /**
6975     * @brief Set the text align on the label object
6976     *
6977     * @param obj The label object
6978     * @param align align mode ("left", "center", "right")
6979     *
6980     * @warning NEVER use this. It is for hyper-special cases only. use styles
6981     * instead. e.g. "big", "medium", "small" - or better name them by use:
6982     * "title", "footnote", "quote" etc.
6983     */
6984    EAPI void         elm_label_text_align_set(Evas_Object *obj, const char *alignmode) EINA_ARG_NONNULL(1);
6985    /**
6986     * @brief Set background color of the label
6987     *
6988     * @param obj The label object
6989     * @param r Red property background color of The label object
6990     * @param g Green property background color of The label object
6991     * @param b Blue property background color of The label object
6992     * @param a Alpha property background alpha of The label object
6993     *
6994     * @warning NEVER use this. It is for hyper-special cases only. use styles
6995     * instead. e.g. "big", "medium", "small" - or better name them by use:
6996     * "title", "footnote", "quote" etc.
6997     */
6998    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);
6999    /**
7000     * @brief Set the ellipsis behavior of the label
7001     *
7002     * @param obj The label object
7003     * @param ellipsis To ellipsis text or not
7004     *
7005     * If set to true and the text doesn't fit in the label an ellipsis("...")
7006     * will be shown at the end of the widget.
7007     *
7008     * @warning This doesn't work with slide(elm_label_slide_set()) or if the
7009     * choosen wrap method was ELM_WRAP_WORD.
7010     */
7011    EAPI void         elm_label_ellipsis_set(Evas_Object *obj, Eina_Bool ellipsis) EINA_ARG_NONNULL(1);
7012    /**
7013     * @brief Set the text slide of the label
7014     *
7015     * @param obj The label object
7016     * @param slide To start slide or stop
7017     *
7018     * If set to true the text of the label will slide throught the length of
7019     * label.
7020     *
7021     * @warning This only work with the themes "slide_short", "slide_long" and
7022     * "slide_bounce".
7023     */
7024    EAPI void         elm_label_slide_set(Evas_Object *obj, Eina_Bool slide) EINA_ARG_NONNULL(1);
7025    /**
7026     * @brief Get the text slide mode of the label
7027     *
7028     * @param obj The label object
7029     * @return slide slide mode value
7030     *
7031     * @see elm_label_slide_set()
7032     */
7033    EAPI Eina_Bool    elm_label_slide_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7034    /**
7035     * @brief Set the slide duration(speed) of the label
7036     *
7037     * @param obj The label object
7038     * @return The duration in seconds in moving text from slide begin position
7039     * to slide end position
7040     */
7041    EAPI void         elm_label_slide_duration_set(Evas_Object *obj, double duration) EINA_ARG_NONNULL(1);
7042    /**
7043     * @brief Get the slide duration(speed) of the label
7044     *
7045     * @param obj The label object
7046     * @return The duration time in moving text from slide begin position to slide end position
7047     *
7048     * @see elm_label_slide_duration_set()
7049     */
7050    EAPI double       elm_label_slide_duration_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7051    /**
7052     * @}
7053     */
7054
7055    /**
7056     * @defgroup Toggle Toggle
7057     *
7058     * @image html img/widget/toggle/preview-00.png
7059     * @image latex img/widget/toggle/preview-00.eps
7060     *
7061     * @brief A toggle is a slider which can be used to toggle between
7062     * two values.  It has two states: on and off.
7063     *
7064     * Signals that you can add callbacks for are:
7065     * @li "changed" - Whenever the toggle value has been changed.  Is not called
7066     *                 until the toggle is released by the cursor (assuming it
7067     *                 has been triggered by the cursor in the first place).
7068     *
7069     * @ref tutorial_toggle show how to use a toggle.
7070     * @{
7071     */
7072    /**
7073     * @brief Add a toggle to @p parent.
7074     *
7075     * @param parent The parent object
7076     *
7077     * @return The toggle object
7078     */
7079    EAPI Evas_Object *elm_toggle_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7080    /**
7081     * @brief Sets the label to be displayed with the toggle.
7082     *
7083     * @param obj The toggle object
7084     * @param label The label to be displayed
7085     *
7086     * @deprecated use elm_object_text_set() instead.
7087     */
7088    EINA_DEPRECATED EAPI void         elm_toggle_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7089    /**
7090     * @brief Gets the label of the toggle
7091     *
7092     * @param obj  toggle object
7093     * @return The label of the toggle
7094     *
7095     * @deprecated use elm_object_text_get() instead.
7096     */
7097    EINA_DEPRECATED EAPI const char  *elm_toggle_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7098    /**
7099     * @brief Set the icon used for the toggle
7100     *
7101     * @param obj The toggle object
7102     * @param icon The icon object for the button
7103     *
7104     * Once the icon object is set, a previously set one will be deleted
7105     * If you want to keep that old content object, use the
7106     * elm_toggle_icon_unset() function.
7107     */
7108    EAPI void         elm_toggle_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
7109    /**
7110     * @brief Get the icon used for the toggle
7111     *
7112     * @param obj The toggle object
7113     * @return The icon object that is being used
7114     *
7115     * Return the icon object which is set for this widget.
7116     *
7117     * @see elm_toggle_icon_set()
7118     */
7119    EAPI Evas_Object *elm_toggle_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7120    /**
7121     * @brief Unset the icon used for the toggle
7122     *
7123     * @param obj The toggle object
7124     * @return The icon object that was being used
7125     *
7126     * Unparent and return the icon object which was set for this widget.
7127     *
7128     * @see elm_toggle_icon_set()
7129     */
7130    EAPI Evas_Object *elm_toggle_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7131    /**
7132     * @brief Sets the labels to be associated with the on and off states of the toggle.
7133     *
7134     * @param obj The toggle object
7135     * @param onlabel The label displayed when the toggle is in the "on" state
7136     * @param offlabel The label displayed when the toggle is in the "off" state
7137     */
7138    EAPI void         elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel) EINA_ARG_NONNULL(1);
7139    /**
7140     * @brief Gets the labels associated with the on and off states of the toggle.
7141     *
7142     * @param obj The toggle object
7143     * @param onlabel A char** to place the onlabel of @p obj into
7144     * @param offlabel A char** to place the offlabel of @p obj into
7145     */
7146    EAPI void         elm_toggle_states_labels_get(const Evas_Object *obj, const char **onlabel, const char **offlabel) EINA_ARG_NONNULL(1);
7147    /**
7148     * @brief Sets the state of the toggle to @p state.
7149     *
7150     * @param obj The toggle object
7151     * @param state The state of @p obj
7152     */
7153    EAPI void         elm_toggle_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
7154    /**
7155     * @brief Gets the state of the toggle to @p state.
7156     *
7157     * @param obj The toggle object
7158     * @return The state of @p obj
7159     */
7160    EAPI Eina_Bool    elm_toggle_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7161    /**
7162     * @brief Sets the state pointer of the toggle to @p statep.
7163     *
7164     * @param obj The toggle object
7165     * @param statep The state pointer of @p obj
7166     */
7167    EAPI void         elm_toggle_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
7168    /**
7169     * @}
7170     */
7171
7172    /**
7173     * @defgroup Frame Frame
7174     *
7175     * @image html img/widget/frame/preview-00.png
7176     * @image latex img/widget/frame/preview-00.eps
7177     *
7178     * @brief Frame is a widget that holds some content and has a title.
7179     *
7180     * The default look is a frame with a title, but Frame supports multple
7181     * styles:
7182     * @li default
7183     * @li pad_small
7184     * @li pad_medium
7185     * @li pad_large
7186     * @li pad_huge
7187     * @li outdent_top
7188     * @li outdent_bottom
7189     *
7190     * Of all this styles only default shows the title. Frame emits no signals.
7191     *
7192     * For a detailed example see the @ref tutorial_frame.
7193     *
7194     * @{
7195     */
7196    /**
7197     * @brief Add a new frame to the parent
7198     *
7199     * @param parent The parent object
7200     * @return The new object or NULL if it cannot be created
7201     */
7202    EAPI Evas_Object *elm_frame_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7203    /**
7204     * @brief Set the frame label
7205     *
7206     * @param obj The frame object
7207     * @param label The label of this frame object
7208     *
7209     * @deprecated use elm_object_text_set() instead.
7210     */
7211    EINA_DEPRECATED EAPI void         elm_frame_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7212    /**
7213     * @brief Get the frame label
7214     *
7215     * @param obj The frame object
7216     *
7217     * @return The label of this frame objet or NULL if unable to get frame
7218     *
7219     * @deprecated use elm_object_text_get() instead.
7220     */
7221    EINA_DEPRECATED EAPI const char  *elm_frame_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7222    /**
7223     * @brief Set the content of the frame widget
7224     *
7225     * Once the content object is set, a previously set one will be deleted.
7226     * If you want to keep that old content object, use the
7227     * elm_frame_content_unset() function.
7228     *
7229     * @param obj The frame object
7230     * @param content The content will be filled in this frame object
7231     */
7232    EAPI void         elm_frame_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
7233    /**
7234     * @brief Get the content of the frame widget
7235     *
7236     * Return the content object which is set for this widget
7237     *
7238     * @param obj The frame object
7239     * @return The content that is being used
7240     */
7241    EAPI Evas_Object *elm_frame_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7242    /**
7243     * @brief Unset the content of the frame widget
7244     *
7245     * Unparent and return the content object which was set for this widget
7246     *
7247     * @param obj The frame object
7248     * @return The content that was being used
7249     */
7250    EAPI Evas_Object *elm_frame_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7251    /**
7252     * @}
7253     */
7254
7255    /**
7256     * @defgroup Table Table
7257     *
7258     * A container widget to arrange other widgets in a table where items can
7259     * also span multiple columns or rows - even overlap (and then be raised or
7260     * lowered accordingly to adjust stacking if they do overlap).
7261     *
7262     * The followin are examples of how to use a table:
7263     * @li @ref tutorial_table_01
7264     * @li @ref tutorial_table_02
7265     *
7266     * @{
7267     */
7268    /**
7269     * @brief Add a new table to the parent
7270     *
7271     * @param parent The parent object
7272     * @return The new object or NULL if it cannot be created
7273     */
7274    EAPI Evas_Object *elm_table_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7275    /**
7276     * @brief Set the homogeneous layout in the table
7277     *
7278     * @param obj The layout object
7279     * @param homogeneous A boolean to set if the layout is homogeneous in the
7280     * table (EINA_TRUE = homogeneous,  EINA_FALSE = no homogeneous)
7281     */
7282    EAPI void         elm_table_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
7283    /**
7284     * @brief Get the current table homogeneous mode.
7285     *
7286     * @param obj The table object
7287     * @return A boolean to indicating if the layout is homogeneous in the table
7288     * (EINA_TRUE = homogeneous,  EINA_FALSE = no homogeneous)
7289     */
7290    EAPI Eina_Bool    elm_table_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7291    /**
7292     * @warning <b>Use elm_table_homogeneous_set() instead</b>
7293     */
7294    EINA_DEPRECATED EAPI void elm_table_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
7295    /**
7296     * @warning <b>Use elm_table_homogeneous_get() instead</b>
7297     */
7298    EINA_DEPRECATED EAPI Eina_Bool elm_table_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7299    /**
7300     * @brief Set padding between cells.
7301     *
7302     * @param obj The layout object.
7303     * @param horizontal set the horizontal padding.
7304     * @param vertical set the vertical padding.
7305     *
7306     * Default value is 0.
7307     */
7308    EAPI void         elm_table_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
7309    /**
7310     * @brief Get padding between cells.
7311     *
7312     * @param obj The layout object.
7313     * @param horizontal set the horizontal padding.
7314     * @param vertical set the vertical padding.
7315     */
7316    EAPI void         elm_table_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
7317    /**
7318     * @brief Add a subobject on the table with the coordinates passed
7319     *
7320     * @param obj The table object
7321     * @param subobj The subobject to be added to the table
7322     * @param x Row number
7323     * @param y Column number
7324     * @param w rowspan
7325     * @param h colspan
7326     *
7327     * @note All positioning inside the table is relative to rows and columns, so
7328     * a value of 0 for x and y, means the top left cell of the table, and a
7329     * value of 1 for w and h means @p subobj only takes that 1 cell.
7330     */
7331    EAPI void         elm_table_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
7332    /**
7333     * @brief Remove child from table.
7334     *
7335     * @param obj The table object
7336     * @param subobj The subobject
7337     */
7338    EAPI void         elm_table_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
7339    /**
7340     * @brief Faster way to remove all child objects from a table object.
7341     *
7342     * @param obj The table object
7343     * @param clear If true, will delete children, else just remove from table.
7344     */
7345    EAPI void         elm_table_clear(Evas_Object *obj, Eina_Bool clear) EINA_ARG_NONNULL(1);
7346    /**
7347     * @brief Set the packing location of an existing child of the table
7348     *
7349     * @param subobj The subobject to be modified in the table
7350     * @param x Row number
7351     * @param y Column number
7352     * @param w rowspan
7353     * @param h colspan
7354     *
7355     * Modifies the position of an object already in the table.
7356     *
7357     * @note All positioning inside the table is relative to rows and columns, so
7358     * a value of 0 for x and y, means the top left cell of the table, and a
7359     * value of 1 for w and h means @p subobj only takes that 1 cell.
7360     */
7361    EAPI void         elm_table_pack_set(Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
7362    /**
7363     * @brief Get the packing location of an existing child of the table
7364     *
7365     * @param subobj The subobject to be modified in the table
7366     * @param x Row number
7367     * @param y Column number
7368     * @param w rowspan
7369     * @param h colspan
7370     *
7371     * @see elm_table_pack_set()
7372     */
7373    EAPI void         elm_table_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
7374    /**
7375     * @}
7376     */
7377
7378    /**
7379     * @defgroup Gengrid Gengrid (Generic grid)
7380     *
7381     * This widget aims to position objects in a grid layout while
7382     * actually creating and rendering only the visible ones, using the
7383     * same idea as the @ref Genlist "genlist": the user defines a @b
7384     * class for each item, specifying functions that will be called at
7385     * object creation, deletion, etc. When those items are selected by
7386     * the user, a callback function is issued. Users may interact with
7387     * a gengrid via the mouse (by clicking on items to select them and
7388     * clicking on the grid's viewport and swiping to pan the whole
7389     * view) or via the keyboard, navigating through item with the
7390     * arrow keys.
7391     *
7392     * @section Gengrid_Layouts Gengrid layouts
7393     *
7394     * Gengrids may layout its items in one of two possible layouts:
7395     * - horizontal or
7396     * - vertical.
7397     *
7398     * When in "horizontal mode", items will be placed in @b columns,
7399     * from top to bottom and, when the space for a column is filled,
7400     * another one is started on the right, thus expanding the grid
7401     * horizontally, making for horizontal scrolling. When in "vertical
7402     * mode" , though, items will be placed in @b rows, from left to
7403     * right and, when the space for a row is filled, another one is
7404     * started below, thus expanding the grid vertically (and making
7405     * for vertical scrolling).
7406     *
7407     * @section Gengrid_Items Gengrid items
7408     *
7409     * An item in a gengrid can have 0 or more text labels (they can be
7410     * regular text or textblock Evas objects - that's up to the style
7411     * to determine), 0 or more icons (which are simply objects
7412     * swallowed into the gengrid item's theming Edje object) and 0 or
7413     * more <b>boolean states</b>, which have the behavior left to the
7414     * user to define. The Edje part names for each of these properties
7415     * will be looked up, in the theme file for the gengrid, under the
7416     * Edje (string) data items named @c "labels", @c "icons" and @c
7417     * "states", respectively. For each of those properties, if more
7418     * than one part is provided, they must have names listed separated
7419     * by spaces in the data fields. For the default gengrid item
7420     * theme, we have @b one label part (@c "elm.text"), @b two icon
7421     * parts (@c "elm.swalllow.icon" and @c "elm.swallow.end") and @b
7422     * no state parts.
7423     *
7424     * A gengrid item may be at one of several styles. Elementary
7425     * provides one by default - "default", but this can be extended by
7426     * system or application custom themes/overlays/extensions (see
7427     * @ref Theme "themes" for more details).
7428     *
7429     * @section Gengrid_Item_Class Gengrid item classes
7430     *
7431     * In order to have the ability to add and delete items on the fly,
7432     * gengrid implements a class (callback) system where the
7433     * application provides a structure with information about that
7434     * type of item (gengrid may contain multiple different items with
7435     * different classes, states and styles). Gengrid will call the
7436     * functions in this struct (methods) when an item is "realized"
7437     * (i.e., created dynamically, while the user is scrolling the
7438     * grid). All objects will simply be deleted when no longer needed
7439     * with evas_object_del(). The #Elm_GenGrid_Item_Class structure
7440     * contains the following members:
7441     * - @c item_style - This is a constant string and simply defines
7442     * the name of the item style. It @b must be specified and the
7443     * default should be @c "default".
7444     * - @c func.label_get - This function is called when an item
7445     * object is actually created. The @c data parameter will point to
7446     * the same data passed to elm_gengrid_item_append() and related
7447     * item creation functions. The @c obj parameter is the gengrid
7448     * object itself, while the @c part one is the name string of one
7449     * of the existing text parts in the Edje group implementing the
7450     * item's theme. This function @b must return a strdup'()ed string,
7451     * as the caller will free() it when done. See
7452     * #Elm_Gengrid_Item_Label_Get_Cb.
7453     * - @c func.icon_get - This function is called when an item object
7454     * is actually created. The @c data parameter will point to the
7455     * same data passed to elm_gengrid_item_append() and related item
7456     * creation functions. The @c obj parameter is the gengrid object
7457     * itself, while the @c part one is the name string of one of the
7458     * existing (icon) swallow parts in the Edje group implementing the
7459     * item's theme. It must return @c NULL, when no icon is desired,
7460     * or a valid object handle, otherwise. The object will be deleted
7461     * by the gengrid on its deletion or when the item is "unrealized".
7462     * See #Elm_Gengrid_Item_Icon_Get_Cb.
7463     * - @c func.state_get - This function is called when an item
7464     * object is actually created. The @c data parameter will point to
7465     * the same data passed to elm_gengrid_item_append() and related
7466     * item creation functions. The @c obj parameter is the gengrid
7467     * object itself, while the @c part one is the name string of one
7468     * of the state parts in the Edje group implementing the item's
7469     * theme. Return @c EINA_FALSE for false/off or @c EINA_TRUE for
7470     * true/on. Gengrids will emit a signal to its theming Edje object
7471     * with @c "elm,state,XXX,active" and @c "elm" as "emission" and
7472     * "source" arguments, respectively, when the state is true (the
7473     * default is false), where @c XXX is the name of the (state) part.
7474     * See #Elm_Gengrid_Item_State_Get_Cb.
7475     * - @c func.del - This is called when elm_gengrid_item_del() is
7476     * called on an item or elm_gengrid_clear() is called on the
7477     * gengrid. This is intended for use when gengrid items are
7478     * deleted, so any data attached to the item (e.g. its data
7479     * parameter on creation) can be deleted. See #Elm_Gengrid_Item_Del_Cb.
7480     *
7481     * @section Gengrid_Usage_Hints Usage hints
7482     *
7483     * If the user wants to have multiple items selected at the same
7484     * time, elm_gengrid_multi_select_set() will permit it. If the
7485     * gengrid is single-selection only (the default), then
7486     * elm_gengrid_select_item_get() will return the selected item or
7487     * @c NULL, if none is selected. If the gengrid is under
7488     * multi-selection, then elm_gengrid_selected_items_get() will
7489     * return a list (that is only valid as long as no items are
7490     * modified (added, deleted, selected or unselected) of child items
7491     * on a gengrid.
7492     *
7493     * If an item changes (internal (boolean) state, label or icon
7494     * changes), then use elm_gengrid_item_update() to have gengrid
7495     * update the item with the new state. A gengrid will re-"realize"
7496     * the item, thus calling the functions in the
7497     * #Elm_Gengrid_Item_Class set for that item.
7498     *
7499     * To programmatically (un)select an item, use
7500     * elm_gengrid_item_selected_set(). To get its selected state use
7501     * elm_gengrid_item_selected_get(). To make an item disabled
7502     * (unable to be selected and appear differently) use
7503     * elm_gengrid_item_disabled_set() to set this and
7504     * elm_gengrid_item_disabled_get() to get the disabled state.
7505     *
7506     * Grid cells will only have their selection smart callbacks called
7507     * when firstly getting selected. Any further clicks will do
7508     * nothing, unless you enable the "always select mode", with
7509     * elm_gengrid_always_select_mode_set(), thus making every click to
7510     * issue selection callbacks. elm_gengrid_no_select_mode_set() will
7511     * turn off the ability to select items entirely in the widget and
7512     * they will neither appear selected nor call the selection smart
7513     * callbacks.
7514     *
7515     * Remember that you can create new styles and add your own theme
7516     * augmentation per application with elm_theme_extension_add(). If
7517     * you absolutely must have a specific style that overrides any
7518     * theme the user or system sets up you can use
7519     * elm_theme_overlay_add() to add such a file.
7520     *
7521     * @section Gengrid_Smart_Events Gengrid smart events
7522     *
7523     * Smart events that you can add callbacks for are:
7524     * - @c "activated" - The user has double-clicked or pressed
7525     *   (enter|return|spacebar) on an item. The @c event_info parameter
7526     *   is the gengrid item that was activated.
7527     * - @c "clicked,double" - The user has double-clicked an item.
7528     *   The @c event_info parameter is the gengrid item that was double-clicked.
7529     * - @c "selected" - The user has made an item selected. The
7530     *   @c event_info parameter is the gengrid item that was selected.
7531     * - @c "unselected" - The user has made an item unselected. The
7532     *   @c event_info parameter is the gengrid item that was unselected.
7533     * - @c "realized" - This is called when the item in the gengrid
7534     *   has its implementing Evas object instantiated, de facto. @c
7535     *   event_info is the gengrid item that was created. The object
7536     *   may be deleted at any time, so it is highly advised to the
7537     *   caller @b not to use the object pointer returned from
7538     *   elm_gengrid_item_object_get(), because it may point to freed
7539     *   objects.
7540     * - @c "unrealized" - This is called when the implementing Evas
7541     *   object for this item is deleted. @c event_info is the gengrid
7542     *   item that was deleted.
7543     * - @c "changed" - Called when an item is added, removed, resized
7544     *   or moved and when the gengrid is resized or gets "horizontal"
7545     *   property changes.
7546     * - @c "drag,start,up" - Called when the item in the gengrid has
7547     *   been dragged (not scrolled) up.
7548     * - @c "drag,start,down" - Called when the item in the gengrid has
7549     *   been dragged (not scrolled) down.
7550     * - @c "drag,start,left" - Called when the item in the gengrid has
7551     *   been dragged (not scrolled) left.
7552     * - @c "drag,start,right" - Called when the item in the gengrid has
7553     *   been dragged (not scrolled) right.
7554     * - @c "drag,stop" - Called when the item in the gengrid has
7555     *   stopped being dragged.
7556     * - @c "drag" - Called when the item in the gengrid is being
7557     *   dragged.
7558     * - @c "scroll" - called when the content has been scrolled
7559     *   (moved).
7560     * - @c "scroll,drag,start" - called when dragging the content has
7561     *   started.
7562     * - @c "scroll,drag,stop" - called when dragging the content has
7563     *   stopped.
7564     *
7565     * List of gendrid examples:
7566     * @li @ref gengrid_example
7567     */
7568
7569    /**
7570     * @addtogroup Gengrid
7571     * @{
7572     */
7573
7574    typedef struct _Elm_Gengrid_Item_Class Elm_Gengrid_Item_Class; /**< Gengrid item class definition structs */
7575    typedef struct _Elm_Gengrid_Item_Class_Func Elm_Gengrid_Item_Class_Func; /**< Class functions for gengrid item classes. */
7576    typedef struct _Elm_Gengrid_Item Elm_Gengrid_Item; /**< Gengrid item handles */
7577    typedef char        *(*Elm_Gengrid_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for gengrid item classes. */
7578    typedef Evas_Object *(*Elm_Gengrid_Item_Icon_Get_Cb)  (void *data, Evas_Object *obj, const char *part); /**< Icon fetching class function for gengrid item classes. */
7579    typedef Eina_Bool    (*Elm_Gengrid_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< State fetching class function for gengrid item classes. */
7580    typedef void         (*Elm_Gengrid_Item_Del_Cb)      (void *data, Evas_Object *obj); /**< Deletion class function for gengrid item classes. */
7581
7582    typedef char        *(*GridItemLabelGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Gengrid_Item_Label_Get_Cb. */
7583    typedef Evas_Object *(*GridItemIconGetFunc)  (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Gengrid_Item_Icon_Get_Cb. */
7584    typedef Eina_Bool    (*GridItemStateGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Gengrid_Item_State_Get_Cb. */
7585    typedef void         (*GridItemDelFunc)      (void *data, Evas_Object *obj) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Gengrid_Item_Del_Cb. */
7586
7587    /**
7588     * @struct _Elm_Gengrid_Item_Class
7589     *
7590     * Gengrid item class definition. See @ref Gengrid_Item_Class for
7591     * field details.
7592     */
7593    struct _Elm_Gengrid_Item_Class
7594      {
7595         const char             *item_style;
7596         struct _Elm_Gengrid_Item_Class_Func
7597           {
7598              Elm_Gengrid_Item_Label_Get_Cb label_get;
7599              Elm_Gengrid_Item_Icon_Get_Cb  icon_get;
7600              Elm_Gengrid_Item_State_Get_Cb state_get;
7601              Elm_Gengrid_Item_Del_Cb       del;
7602           } func;
7603      }; /**< #Elm_Gengrid_Item_Class member definitions */
7604
7605    /**
7606     * Add a new gengrid widget to the given parent Elementary
7607     * (container) object
7608     *
7609     * @param parent The parent object
7610     * @return a new gengrid widget handle or @c NULL, on errors
7611     *
7612     * This function inserts a new gengrid widget on the canvas.
7613     *
7614     * @see elm_gengrid_item_size_set()
7615     * @see elm_gengrid_horizontal_set()
7616     * @see elm_gengrid_item_append()
7617     * @see elm_gengrid_item_del()
7618     * @see elm_gengrid_clear()
7619     *
7620     * @ingroup Gengrid
7621     */
7622    EAPI Evas_Object       *elm_gengrid_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7623
7624    /**
7625     * Set the size for the items of a given gengrid widget
7626     *
7627     * @param obj The gengrid object.
7628     * @param w The items' width.
7629     * @param h The items' height;
7630     *
7631     * A gengrid, after creation, has still no information on the size
7632     * to give to each of its cells. So, you most probably will end up
7633     * with squares one @ref Fingers "finger" wide, the default
7634     * size. Use this function to force a custom size for you items,
7635     * making them as big as you wish.
7636     *
7637     * @see elm_gengrid_item_size_get()
7638     *
7639     * @ingroup Gengrid
7640     */
7641    EAPI void               elm_gengrid_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
7642
7643    /**
7644     * Get the size set for the items of a given gengrid widget
7645     *
7646     * @param obj The gengrid object.
7647     * @param w Pointer to a variable where to store the items' width.
7648     * @param h Pointer to a variable where to store the items' height.
7649     *
7650     * @note Use @c NULL pointers on the size values you're not
7651     * interested in: they'll be ignored by the function.
7652     *
7653     * @see elm_gengrid_item_size_get() for more details
7654     *
7655     * @ingroup Gengrid
7656     */
7657    EAPI void               elm_gengrid_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
7658
7659    /**
7660     * Set the items grid's alignment within a given gengrid widget
7661     *
7662     * @param obj The gengrid object.
7663     * @param align_x Alignment in the horizontal axis (0 <= align_x <= 1).
7664     * @param align_y Alignment in the vertical axis (0 <= align_y <= 1).
7665     *
7666     * This sets the alignment of the whole grid of items of a gengrid
7667     * within its given viewport. By default, those values are both
7668     * 0.5, meaning that the gengrid will have its items grid placed
7669     * exactly in the middle of its viewport.
7670     *
7671     * @note If given alignment values are out of the cited ranges,
7672     * they'll be changed to the nearest boundary values on the valid
7673     * ranges.
7674     *
7675     * @see elm_gengrid_align_get()
7676     *
7677     * @ingroup Gengrid
7678     */
7679    EAPI void               elm_gengrid_align_set(Evas_Object *obj, double align_x, double align_y) EINA_ARG_NONNULL(1);
7680
7681    /**
7682     * Get the items grid's alignment values within a given gengrid
7683     * widget
7684     *
7685     * @param obj The gengrid object.
7686     * @param align_x Pointer to a variable where to store the
7687     * horizontal alignment.
7688     * @param align_y Pointer to a variable where to store the vertical
7689     * alignment.
7690     *
7691     * @note Use @c NULL pointers on the alignment values you're not
7692     * interested in: they'll be ignored by the function.
7693     *
7694     * @see elm_gengrid_align_set() for more details
7695     *
7696     * @ingroup Gengrid
7697     */
7698    EAPI void               elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y) EINA_ARG_NONNULL(1);
7699
7700    /**
7701     * Set whether a given gengrid widget is or not able have items
7702     * @b reordered
7703     *
7704     * @param obj The gengrid object
7705     * @param reorder_mode Use @c EINA_TRUE to turn reoderding on,
7706     * @c EINA_FALSE to turn it off
7707     *
7708     * If a gengrid is set to allow reordering, a click held for more
7709     * than 0.5 over a given item will highlight it specially,
7710     * signalling the gengrid has entered the reordering state. From
7711     * that time on, the user will be able to, while still holding the
7712     * mouse button down, move the item freely in the gengrid's
7713     * viewport, replacing to said item to the locations it goes to.
7714     * The replacements will be animated and, whenever the user
7715     * releases the mouse button, the item being replaced gets a new
7716     * definitive place in the grid.
7717     *
7718     * @see elm_gengrid_reorder_mode_get()
7719     *
7720     * @ingroup Gengrid
7721     */
7722    EAPI void               elm_gengrid_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
7723
7724    /**
7725     * Get whether a given gengrid widget is or not able have items
7726     * @b reordered
7727     *
7728     * @param obj The gengrid object
7729     * @return @c EINA_TRUE, if reoderding is on, @c EINA_FALSE if it's
7730     * off
7731     *
7732     * @see elm_gengrid_reorder_mode_set() for more details
7733     *
7734     * @ingroup Gengrid
7735     */
7736    EAPI Eina_Bool          elm_gengrid_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7737
7738    /**
7739     * Append a new item in a given gengrid widget.
7740     *
7741     * @param obj The gengrid object.
7742     * @param gic The item class for the item.
7743     * @param data The item data.
7744     * @param func Convenience function called when the item is
7745     * selected.
7746     * @param func_data Data to be passed to @p func.
7747     * @return A handle to the item added or @c NULL, on errors.
7748     *
7749     * This adds an item to the beginning of the gengrid.
7750     *
7751     * @see elm_gengrid_item_prepend()
7752     * @see elm_gengrid_item_insert_before()
7753     * @see elm_gengrid_item_insert_after()
7754     * @see elm_gengrid_item_del()
7755     *
7756     * @ingroup Gengrid
7757     */
7758    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);
7759
7760    /**
7761     * Prepend a new item in a given gengrid widget.
7762     *
7763     * @param obj The gengrid object.
7764     * @param gic The item class for the item.
7765     * @param data The item data.
7766     * @param func Convenience function called when the item is
7767     * selected.
7768     * @param func_data Data to be passed to @p func.
7769     * @return A handle to the item added or @c NULL, on errors.
7770     *
7771     * This adds an item to the end of the gengrid.
7772     *
7773     * @see elm_gengrid_item_append()
7774     * @see elm_gengrid_item_insert_before()
7775     * @see elm_gengrid_item_insert_after()
7776     * @see elm_gengrid_item_del()
7777     *
7778     * @ingroup Gengrid
7779     */
7780    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);
7781
7782    /**
7783     * Insert an item before another in a gengrid widget
7784     *
7785     * @param obj The gengrid object.
7786     * @param gic The item class for the item.
7787     * @param data The item data.
7788     * @param relative The item to place this new one before.
7789     * @param func Convenience function called when the item is
7790     * selected.
7791     * @param func_data Data to be passed to @p func.
7792     * @return A handle to the item added or @c NULL, on errors.
7793     *
7794     * This inserts an item before another in the gengrid.
7795     *
7796     * @see elm_gengrid_item_append()
7797     * @see elm_gengrid_item_prepend()
7798     * @see elm_gengrid_item_insert_after()
7799     * @see elm_gengrid_item_del()
7800     *
7801     * @ingroup Gengrid
7802     */
7803    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);
7804
7805    /**
7806     * Insert an item after another in a gengrid widget
7807     *
7808     * @param obj The gengrid object.
7809     * @param gic The item class for the item.
7810     * @param data The item data.
7811     * @param relative The item to place this new one after.
7812     * @param func Convenience function called when the item is
7813     * selected.
7814     * @param func_data Data to be passed to @p func.
7815     * @return A handle to the item added or @c NULL, on errors.
7816     *
7817     * This inserts an item after another in the gengrid.
7818     *
7819     * @see elm_gengrid_item_append()
7820     * @see elm_gengrid_item_prepend()
7821     * @see elm_gengrid_item_insert_after()
7822     * @see elm_gengrid_item_del()
7823     *
7824     * @ingroup Gengrid
7825     */
7826    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);
7827
7828    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);
7829
7830    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);
7831
7832    /**
7833     * Set whether items on a given gengrid widget are to get their
7834     * selection callbacks issued for @b every subsequent selection
7835     * click on them or just for the first click.
7836     *
7837     * @param obj The gengrid object
7838     * @param always_select @c EINA_TRUE to make items "always
7839     * selected", @c EINA_FALSE, otherwise
7840     *
7841     * By default, grid items will only call their selection callback
7842     * function when firstly getting selected, any subsequent further
7843     * clicks will do nothing. With this call, you make those
7844     * subsequent clicks also to issue the selection callbacks.
7845     *
7846     * @note <b>Double clicks</b> will @b always be reported on items.
7847     *
7848     * @see elm_gengrid_always_select_mode_get()
7849     *
7850     * @ingroup Gengrid
7851     */
7852    EAPI void               elm_gengrid_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
7853
7854    /**
7855     * Get whether items on a given gengrid widget have their selection
7856     * callbacks issued for @b every subsequent selection click on them
7857     * or just for the first click.
7858     *
7859     * @param obj The gengrid object.
7860     * @return @c EINA_TRUE if the gengrid items are "always selected",
7861     * @c EINA_FALSE, otherwise
7862     *
7863     * @see elm_gengrid_always_select_mode_set() for more details
7864     *
7865     * @ingroup Gengrid
7866     */
7867    EAPI Eina_Bool          elm_gengrid_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7868
7869    /**
7870     * Set whether items on a given gengrid widget can be selected or not.
7871     *
7872     * @param obj The gengrid object
7873     * @param no_select @c EINA_TRUE to make items selectable,
7874     * @c EINA_FALSE otherwise
7875     *
7876     * This will make items in @p obj selectable or not. In the latter
7877     * case, any user interacion on the gendrid items will neither make
7878     * them appear selected nor them call their selection callback
7879     * functions.
7880     *
7881     * @see elm_gengrid_no_select_mode_get()
7882     *
7883     * @ingroup Gengrid
7884     */
7885    EAPI void               elm_gengrid_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
7886
7887    /**
7888     * Get whether items on a given gengrid widget can be selected or
7889     * not.
7890     *
7891     * @param obj The gengrid object
7892     * @return @c EINA_TRUE, if items are selectable, @c EINA_FALSE
7893     * otherwise
7894     *
7895     * @see elm_gengrid_no_select_mode_set() for more details
7896     *
7897     * @ingroup Gengrid
7898     */
7899    EAPI Eina_Bool          elm_gengrid_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7900
7901    /**
7902     * Enable or disable multi-selection in a given gengrid widget
7903     *
7904     * @param obj The gengrid object.
7905     * @param multi @c EINA_TRUE, to enable multi-selection,
7906     * @c EINA_FALSE to disable it.
7907     *
7908     * Multi-selection is the ability for one to have @b more than one
7909     * item selected, on a given gengrid, simultaneously. When it is
7910     * enabled, a sequence of clicks on different items will make them
7911     * all selected, progressively. A click on an already selected item
7912     * will unselect it. If interecting via the keyboard,
7913     * multi-selection is enabled while holding the "Shift" key.
7914     *
7915     * @note By default, multi-selection is @b disabled on gengrids
7916     *
7917     * @see elm_gengrid_multi_select_get()
7918     *
7919     * @ingroup Gengrid
7920     */
7921    EAPI void               elm_gengrid_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
7922
7923    /**
7924     * Get whether multi-selection is enabled or disabled for a given
7925     * gengrid widget
7926     *
7927     * @param obj The gengrid object.
7928     * @return @c EINA_TRUE, if multi-selection is enabled, @c
7929     * EINA_FALSE otherwise
7930     *
7931     * @see elm_gengrid_multi_select_set() for more details
7932     *
7933     * @ingroup Gengrid
7934     */
7935    EAPI Eina_Bool          elm_gengrid_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7936
7937    /**
7938     * Enable or disable bouncing effect for a given gengrid widget
7939     *
7940     * @param obj The gengrid object
7941     * @param h_bounce @c EINA_TRUE, to enable @b horizontal bouncing,
7942     * @c EINA_FALSE to disable it
7943     * @param v_bounce @c EINA_TRUE, to enable @b vertical bouncing,
7944     * @c EINA_FALSE to disable it
7945     *
7946     * The bouncing effect occurs whenever one reaches the gengrid's
7947     * edge's while panning it -- it will scroll past its limits a
7948     * little bit and return to the edge again, in a animated for,
7949     * automatically.
7950     *
7951     * @note By default, gengrids have bouncing enabled on both axis
7952     *
7953     * @see elm_gengrid_bounce_get()
7954     *
7955     * @ingroup Gengrid
7956     */
7957    EAPI void               elm_gengrid_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
7958
7959    /**
7960     * Get whether bouncing effects are enabled or disabled, for a
7961     * given gengrid widget, on each axis
7962     *
7963     * @param obj The gengrid object
7964     * @param h_bounce Pointer to a variable where to store the
7965     * horizontal bouncing flag.
7966     * @param v_bounce Pointer to a variable where to store the
7967     * vertical bouncing flag.
7968     *
7969     * @see elm_gengrid_bounce_set() for more details
7970     *
7971     * @ingroup Gengrid
7972     */
7973    EAPI void               elm_gengrid_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
7974
7975    /**
7976     * Set a given gengrid widget's scrolling page size, relative to
7977     * its viewport size.
7978     *
7979     * @param obj The gengrid object
7980     * @param h_pagerel The horizontal page (relative) size
7981     * @param v_pagerel The vertical page (relative) size
7982     *
7983     * The gengrid's scroller is capable of binding scrolling by the
7984     * user to "pages". It means that, while scrolling and, specially
7985     * after releasing the mouse button, the grid will @b snap to the
7986     * nearest displaying page's area. When page sizes are set, the
7987     * grid's continuous content area is split into (equal) page sized
7988     * pieces.
7989     *
7990     * This function sets the size of a page <b>relatively to the
7991     * viewport dimensions</b> of the gengrid, for each axis. A value
7992     * @c 1.0 means "the exact viewport's size", in that axis, while @c
7993     * 0.0 turns paging off in that axis. Likewise, @c 0.5 means "half
7994     * a viewport". Sane usable values are, than, between @c 0.0 and @c
7995     * 1.0. Values beyond those will make it behave behave
7996     * inconsistently. If you only want one axis to snap to pages, use
7997     * the value @c 0.0 for the other one.
7998     *
7999     * There is a function setting page size values in @b absolute
8000     * values, too -- elm_gengrid_page_size_set(). Naturally, its use
8001     * is mutually exclusive to this one.
8002     *
8003     * @see elm_gengrid_page_relative_get()
8004     *
8005     * @ingroup Gengrid
8006     */
8007    EAPI void               elm_gengrid_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
8008
8009    /**
8010     * Get a given gengrid widget's scrolling page size, relative to
8011     * its viewport size.
8012     *
8013     * @param obj The gengrid object
8014     * @param h_pagerel Pointer to a variable where to store the
8015     * horizontal page (relative) size
8016     * @param v_pagerel Pointer to a variable where to store the
8017     * vertical page (relative) size
8018     *
8019     * @see elm_gengrid_page_relative_set() for more details
8020     *
8021     * @ingroup Gengrid
8022     */
8023    EAPI void               elm_gengrid_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel) EINA_ARG_NONNULL(1);
8024
8025    /**
8026     * Set a given gengrid widget's scrolling page size
8027     *
8028     * @param obj The gengrid object
8029     * @param h_pagerel The horizontal page size, in pixels
8030     * @param v_pagerel The vertical page size, in pixels
8031     *
8032     * The gengrid's scroller is capable of binding scrolling by the
8033     * user to "pages". It means that, while scrolling and, specially
8034     * after releasing the mouse button, the grid will @b snap to the
8035     * nearest displaying page's area. When page sizes are set, the
8036     * grid's continuous content area is split into (equal) page sized
8037     * pieces.
8038     *
8039     * This function sets the size of a page of the gengrid, in pixels,
8040     * for each axis. Sane usable values are, between @c 0 and the
8041     * dimensions of @p obj, for each axis. Values beyond those will
8042     * make it behave behave inconsistently. If you only want one axis
8043     * to snap to pages, use the value @c 0 for the other one.
8044     *
8045     * There is a function setting page size values in @b relative
8046     * values, too -- elm_gengrid_page_relative_set(). Naturally, its
8047     * use is mutually exclusive to this one.
8048     *
8049     * @ingroup Gengrid
8050     */
8051    EAPI void               elm_gengrid_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
8052
8053    /**
8054     * Set for what direction a given gengrid widget will expand while
8055     * placing its items.
8056     *
8057     * @param obj The gengrid object.
8058     * @param setting @c EINA_TRUE to make the gengrid expand
8059     * horizontally, @c EINA_FALSE to expand vertically.
8060     *
8061     * When in "horizontal mode" (@c EINA_TRUE), items will be placed
8062     * in @b columns, from top to bottom and, when the space for a
8063     * column is filled, another one is started on the right, thus
8064     * expanding the grid horizontally. When in "vertical mode"
8065     * (@c EINA_FALSE), though, items will be placed in @b rows, from left
8066     * to right and, when the space for a row is filled, another one is
8067     * started below, thus expanding the grid vertically.
8068     *
8069     * @see elm_gengrid_horizontal_get()
8070     *
8071     * @ingroup Gengrid
8072     */
8073    EAPI void               elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
8074
8075    /**
8076     * Get for what direction a given gengrid widget will expand while
8077     * placing its items.
8078     *
8079     * @param obj The gengrid object.
8080     * @return @c EINA_TRUE, if @p obj is set to expand horizontally,
8081     * @c EINA_FALSE if it's set to expand vertically.
8082     *
8083     * @see elm_gengrid_horizontal_set() for more detais
8084     *
8085     * @ingroup Gengrid
8086     */
8087    EAPI Eina_Bool          elm_gengrid_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8088
8089    /**
8090     * Get the first item in a given gengrid widget
8091     *
8092     * @param obj The gengrid object
8093     * @return The first item's handle or @c NULL, if there are no
8094     * items in @p obj (and on errors)
8095     *
8096     * This returns the first item in the @p obj's internal list of
8097     * items.
8098     *
8099     * @see elm_gengrid_last_item_get()
8100     *
8101     * @ingroup Gengrid
8102     */
8103    EAPI Elm_Gengrid_Item  *elm_gengrid_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8104
8105    /**
8106     * Get the last item in a given gengrid widget
8107     *
8108     * @param obj The gengrid object
8109     * @return The last item's handle or @c NULL, if there are no
8110     * items in @p obj (and on errors)
8111     *
8112     * This returns the last item in the @p obj's internal list of
8113     * items.
8114     *
8115     * @see elm_gengrid_first_item_get()
8116     *
8117     * @ingroup Gengrid
8118     */
8119    EAPI Elm_Gengrid_Item  *elm_gengrid_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8120
8121    /**
8122     * Get the @b next item in a gengrid widget's internal list of items,
8123     * given a handle to one of those items.
8124     *
8125     * @param item The gengrid item to fetch next from
8126     * @return The item after @p item, or @c NULL if there's none (and
8127     * on errors)
8128     *
8129     * This returns the item placed after the @p item, on the container
8130     * gengrid.
8131     *
8132     * @see elm_gengrid_item_prev_get()
8133     *
8134     * @ingroup Gengrid
8135     */
8136    EAPI Elm_Gengrid_Item  *elm_gengrid_item_next_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8137
8138    /**
8139     * Get the @b previous item in a gengrid widget's internal list of items,
8140     * given a handle to one of those items.
8141     *
8142     * @param item The gengrid item to fetch previous from
8143     * @return The item before @p item, or @c NULL if there's none (and
8144     * on errors)
8145     *
8146     * This returns the item placed before the @p item, on the container
8147     * gengrid.
8148     *
8149     * @see elm_gengrid_item_next_get()
8150     *
8151     * @ingroup Gengrid
8152     */
8153    EAPI Elm_Gengrid_Item  *elm_gengrid_item_prev_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8154
8155    /**
8156     * Get the gengrid object's handle which contains a given gengrid
8157     * item
8158     *
8159     * @param item The item to fetch the container from
8160     * @return The gengrid (parent) object
8161     *
8162     * This returns the gengrid object itself that an item belongs to.
8163     *
8164     * @ingroup Gengrid
8165     */
8166    EAPI Evas_Object       *elm_gengrid_item_gengrid_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8167
8168    /**
8169     * Remove a gengrid item from the its parent, deleting it.
8170     *
8171     * @param item The item to be removed.
8172     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
8173     *
8174     * @see elm_gengrid_clear(), to remove all items in a gengrid at
8175     * once.
8176     *
8177     * @ingroup Gengrid
8178     */
8179    EAPI void               elm_gengrid_item_del(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8180
8181    /**
8182     * Update the contents of a given gengrid item
8183     *
8184     * @param item The gengrid item
8185     *
8186     * This updates an item by calling all the item class functions
8187     * again to get the icons, labels and states. Use this when the
8188     * original item data has changed and you want thta changes to be
8189     * reflected.
8190     *
8191     * @ingroup Gengrid
8192     */
8193    EAPI void               elm_gengrid_item_update(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8194    EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8195    EAPI void               elm_gengrid_item_item_class_set(Elm_Gengrid_Item *item, const Elm_Gengrid_Item_Class *gic) EINA_ARG_NONNULL(1, 2);
8196
8197    /**
8198     * Return the data associated to a given gengrid item
8199     *
8200     * @param item The gengrid item.
8201     * @return the data associated to this item.
8202     *
8203     * This returns the @c data value passed on the
8204     * elm_gengrid_item_append() and related item addition calls.
8205     *
8206     * @see elm_gengrid_item_append()
8207     * @see elm_gengrid_item_data_set()
8208     *
8209     * @ingroup Gengrid
8210     */
8211    EAPI void              *elm_gengrid_item_data_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8212
8213    /**
8214     * Set the data associated to a given gengrid item
8215     *
8216     * @param item The gengrid item
8217     * @param data The new data pointer to set on it
8218     *
8219     * This @b overrides the @c data value passed on the
8220     * elm_gengrid_item_append() and related item addition calls. This
8221     * function @b won't call elm_gengrid_item_update() automatically,
8222     * so you'd issue it afterwards if you want to hove the item
8223     * updated to reflect the that new data.
8224     *
8225     * @see elm_gengrid_item_data_get()
8226     *
8227     * @ingroup Gengrid
8228     */
8229    EAPI void               elm_gengrid_item_data_set(Elm_Gengrid_Item *item, const void *data) EINA_ARG_NONNULL(1);
8230
8231    /**
8232     * Get a given gengrid item's position, relative to the whole
8233     * gengrid's grid area.
8234     *
8235     * @param item The Gengrid item.
8236     * @param x Pointer to variable where to store the item's <b>row
8237     * number</b>.
8238     * @param y Pointer to variable where to store the item's <b>column
8239     * number</b>.
8240     *
8241     * This returns the "logical" position of the item whithin the
8242     * gengrid. For example, @c (0, 1) would stand for first row,
8243     * second column.
8244     *
8245     * @ingroup Gengrid
8246     */
8247    EAPI void               elm_gengrid_item_pos_get(const Elm_Gengrid_Item *item, unsigned int *x, unsigned int *y) EINA_ARG_NONNULL(1);
8248
8249    /**
8250     * Set whether a given gengrid item is selected or not
8251     *
8252     * @param item The gengrid item
8253     * @param selected Use @c EINA_TRUE, to make it selected, @c
8254     * EINA_FALSE to make it unselected
8255     *
8256     * This sets the selected state of an item. If multi selection is
8257     * not enabled on the containing gengrid and @p selected is @c
8258     * EINA_TRUE, any other previously selected items will get
8259     * unselected in favor of this new one.
8260     *
8261     * @see elm_gengrid_item_selected_get()
8262     *
8263     * @ingroup Gengrid
8264     */
8265    EAPI void               elm_gengrid_item_selected_set(Elm_Gengrid_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
8266
8267    /**
8268     * Get whether a given gengrid item is selected or not
8269     *
8270     * @param item The gengrid item
8271     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
8272     *
8273     * @see elm_gengrid_item_selected_set() for more details
8274     *
8275     * @ingroup Gengrid
8276     */
8277    EAPI Eina_Bool          elm_gengrid_item_selected_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8278
8279    /**
8280     * Get the real Evas object created to implement the view of a
8281     * given gengrid item
8282     *
8283     * @param item The gengrid item.
8284     * @return the Evas object implementing this item's view.
8285     *
8286     * This returns the actual Evas object used to implement the
8287     * specified gengrid item's view. This may be @c NULL, as it may
8288     * not have been created or may have been deleted, at any time, by
8289     * the gengrid. <b>Do not modify this object</b> (move, resize,
8290     * show, hide, etc.), as the gengrid is controlling it. This
8291     * function is for querying, emitting custom signals or hooking
8292     * lower level callbacks for events on that object. Do not delete
8293     * this object under any circumstances.
8294     *
8295     * @see elm_gengrid_item_data_get()
8296     *
8297     * @ingroup Gengrid
8298     */
8299    EAPI const Evas_Object *elm_gengrid_item_object_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8300
8301    /**
8302     * Show the portion of a gengrid's internal grid containing a given
8303     * item, @b immediately.
8304     *
8305     * @param item The item to display
8306     *
8307     * This causes gengrid to @b redraw its viewport's contents to the
8308     * region contining the given @p item item, if it is not fully
8309     * visible.
8310     *
8311     * @see elm_gengrid_item_bring_in()
8312     *
8313     * @ingroup Gengrid
8314     */
8315    EAPI void               elm_gengrid_item_show(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8316
8317    /**
8318     * Animatedly bring in, to the visible are of a gengrid, a given
8319     * item on it.
8320     *
8321     * @param item The gengrid item to display
8322     *
8323     * This causes gengrig to jump to the given @p item item and show
8324     * it (by scrolling), if it is not fully visible. This will use
8325     * animation to do so and take a period of time to complete.
8326     *
8327     * @see elm_gengrid_item_show()
8328     *
8329     * @ingroup Gengrid
8330     */
8331    EAPI void               elm_gengrid_item_bring_in(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8332
8333    /**
8334     * Set whether a given gengrid item is disabled or not.
8335     *
8336     * @param item The gengrid item
8337     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
8338     * to enable it back.
8339     *
8340     * A disabled item cannot be selected or unselected. It will also
8341     * change its appearance, to signal the user it's disabled.
8342     *
8343     * @see elm_gengrid_item_disabled_get()
8344     *
8345     * @ingroup Gengrid
8346     */
8347    EAPI void               elm_gengrid_item_disabled_set(Elm_Gengrid_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
8348
8349    /**
8350     * Get whether a given gengrid item is disabled or not.
8351     *
8352     * @param item The gengrid item
8353     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
8354     * (and on errors).
8355     *
8356     * @see elm_gengrid_item_disabled_set() for more details
8357     *
8358     * @ingroup Gengrid
8359     */
8360    EAPI Eina_Bool          elm_gengrid_item_disabled_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8361
8362    /**
8363     * Set the text to be shown in a given gengrid item's tooltips.
8364     *
8365     * @param item The gengrid item
8366     * @param text The text to set in the content
8367     *
8368     * This call will setup the text to be used as tooltip to that item
8369     * (analogous to elm_object_tooltip_text_set(), but being item
8370     * tooltips with higher precedence than object tooltips). It can
8371     * have only one tooltip at a time, so any previous tooltip data
8372     * will get removed.
8373     *
8374     * @ingroup Gengrid
8375     */
8376    EAPI void               elm_gengrid_item_tooltip_text_set(Elm_Gengrid_Item *item, const char *text) EINA_ARG_NONNULL(1);
8377
8378    /**
8379     * Set the content to be shown in a given gengrid item's tooltips
8380     *
8381     * @param item The gengrid item.
8382     * @param func The function returning the tooltip contents.
8383     * @param data What to provide to @a func as callback data/context.
8384     * @param del_cb Called when data is not needed anymore, either when
8385     *        another callback replaces @p func, the tooltip is unset with
8386     *        elm_gengrid_item_tooltip_unset() or the owner @p item
8387     *        dies. This callback receives as its first parameter the
8388     *        given @p data, being @c event_info the item handle.
8389     *
8390     * This call will setup the tooltip's contents to @p item
8391     * (analogous to elm_object_tooltip_content_cb_set(), but being
8392     * item tooltips with higher precedence than object tooltips). It
8393     * can have only one tooltip at a time, so any previous tooltip
8394     * content will get removed. @p func (with @p data) will be called
8395     * every time Elementary needs to show the tooltip and it should
8396     * return a valid Evas object, which will be fully managed by the
8397     * tooltip system, getting deleted when the tooltip is gone.
8398     *
8399     * @ingroup Gengrid
8400     */
8401    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);
8402
8403    /**
8404     * Unset a tooltip from a given gengrid item
8405     *
8406     * @param item gengrid item to remove a previously set tooltip from.
8407     *
8408     * This call removes any tooltip set on @p item. The callback
8409     * provided as @c del_cb to
8410     * elm_gengrid_item_tooltip_content_cb_set() will be called to
8411     * notify it is not used anymore (and have resources cleaned, if
8412     * need be).
8413     *
8414     * @see elm_gengrid_item_tooltip_content_cb_set()
8415     *
8416     * @ingroup Gengrid
8417     */
8418    EAPI void               elm_gengrid_item_tooltip_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8419
8420    /**
8421     * Set a different @b style for a given gengrid item's tooltip.
8422     *
8423     * @param item gengrid item with tooltip set
8424     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
8425     * "default", @c "transparent", etc)
8426     *
8427     * Tooltips can have <b>alternate styles</b> to be displayed on,
8428     * which are defined by the theme set on Elementary. This function
8429     * works analogously as elm_object_tooltip_style_set(), but here
8430     * applied only to gengrid item objects. The default style for
8431     * tooltips is @c "default".
8432     *
8433     * @note before you set a style you should define a tooltip with
8434     *       elm_gengrid_item_tooltip_content_cb_set() or
8435     *       elm_gengrid_item_tooltip_text_set()
8436     *
8437     * @see elm_gengrid_item_tooltip_style_get()
8438     *
8439     * @ingroup Gengrid
8440     */
8441    EAPI void               elm_gengrid_item_tooltip_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
8442
8443    /**
8444     * Get the style set a given gengrid item's tooltip.
8445     *
8446     * @param item gengrid item with tooltip already set on.
8447     * @return style the theme style in use, which defaults to
8448     *         "default". If the object does not have a tooltip set,
8449     *         then @c NULL is returned.
8450     *
8451     * @see elm_gengrid_item_tooltip_style_set() for more details
8452     *
8453     * @ingroup Gengrid
8454     */
8455    EAPI const char        *elm_gengrid_item_tooltip_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8456    /**
8457     * @brief Disable size restrictions on an object's tooltip
8458     * @param item The tooltip's anchor object
8459     * @param disable If EINA_TRUE, size restrictions are disabled
8460     * @return EINA_FALSE on failure, EINA_TRUE on success
8461     *
8462     * This function allows a tooltip to expand beyond its parant window's canvas.
8463     * It will instead be limited only by the size of the display.
8464     */
8465    EAPI Eina_Bool          elm_gengrid_item_tooltip_size_restrict_disable(Elm_Gengrid_Item *item, Eina_Bool disable);
8466    /**
8467     * @brief Retrieve size restriction state of an object's tooltip
8468     * @param item The tooltip's anchor object
8469     * @return If EINA_TRUE, size restrictions are disabled
8470     *
8471     * This function returns whether a tooltip is allowed to expand beyond
8472     * its parant window's canvas.
8473     * It will instead be limited only by the size of the display.
8474     */
8475    EAPI Eina_Bool          elm_gengrid_item_tooltip_size_restrict_disabled_get(const Elm_Gengrid_Item *item);
8476    /**
8477     * Set the type of mouse pointer/cursor decoration to be shown,
8478     * when the mouse pointer is over the given gengrid widget item
8479     *
8480     * @param item gengrid item to customize cursor on
8481     * @param cursor the cursor type's name
8482     *
8483     * This function works analogously as elm_object_cursor_set(), but
8484     * here the cursor's changing area is restricted to the item's
8485     * area, and not the whole widget's. Note that that item cursors
8486     * have precedence over widget cursors, so that a mouse over @p
8487     * item will always show cursor @p type.
8488     *
8489     * If this function is called twice for an object, a previously set
8490     * cursor will be unset on the second call.
8491     *
8492     * @see elm_object_cursor_set()
8493     * @see elm_gengrid_item_cursor_get()
8494     * @see elm_gengrid_item_cursor_unset()
8495     *
8496     * @ingroup Gengrid
8497     */
8498    EAPI void               elm_gengrid_item_cursor_set(Elm_Gengrid_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
8499
8500    /**
8501     * Get the type of mouse pointer/cursor decoration set to be shown,
8502     * when the mouse pointer is over the given gengrid widget item
8503     *
8504     * @param item gengrid item with custom cursor set
8505     * @return the cursor type's name or @c NULL, if no custom cursors
8506     * were set to @p item (and on errors)
8507     *
8508     * @see elm_object_cursor_get()
8509     * @see elm_gengrid_item_cursor_set() for more details
8510     * @see elm_gengrid_item_cursor_unset()
8511     *
8512     * @ingroup Gengrid
8513     */
8514    EAPI const char        *elm_gengrid_item_cursor_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8515
8516    /**
8517     * Unset any custom mouse pointer/cursor decoration set to be
8518     * shown, when the mouse pointer is over the given gengrid widget
8519     * item, thus making it show the @b default cursor again.
8520     *
8521     * @param item a gengrid item
8522     *
8523     * Use this call to undo any custom settings on this item's cursor
8524     * decoration, bringing it back to defaults (no custom style set).
8525     *
8526     * @see elm_object_cursor_unset()
8527     * @see elm_gengrid_item_cursor_set() for more details
8528     *
8529     * @ingroup Gengrid
8530     */
8531    EAPI void               elm_gengrid_item_cursor_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8532
8533    /**
8534     * Set a different @b style for a given custom cursor set for a
8535     * gengrid item.
8536     *
8537     * @param item gengrid item with custom cursor set
8538     * @param style the <b>theme style</b> to use (e.g. @c "default",
8539     * @c "transparent", etc)
8540     *
8541     * This function only makes sense when one is using custom mouse
8542     * cursor decorations <b>defined in a theme file</b> , which can
8543     * have, given a cursor name/type, <b>alternate styles</b> on
8544     * it. It works analogously as elm_object_cursor_style_set(), but
8545     * here applied only to gengrid item objects.
8546     *
8547     * @warning Before you set a cursor style you should have defined a
8548     *       custom cursor previously on the item, with
8549     *       elm_gengrid_item_cursor_set()
8550     *
8551     * @see elm_gengrid_item_cursor_engine_only_set()
8552     * @see elm_gengrid_item_cursor_style_get()
8553     *
8554     * @ingroup Gengrid
8555     */
8556    EAPI void               elm_gengrid_item_cursor_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
8557
8558    /**
8559     * Get the current @b style set for a given gengrid item's custom
8560     * cursor
8561     *
8562     * @param item gengrid item with custom cursor set.
8563     * @return style the cursor style in use. If the object does not
8564     *         have a cursor set, then @c NULL is returned.
8565     *
8566     * @see elm_gengrid_item_cursor_style_set() for more details
8567     *
8568     * @ingroup Gengrid
8569     */
8570    EAPI const char        *elm_gengrid_item_cursor_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8571
8572    /**
8573     * Set if the (custom) cursor for a given gengrid item should be
8574     * searched in its theme, also, or should only rely on the
8575     * rendering engine.
8576     *
8577     * @param item item with custom (custom) cursor already set on
8578     * @param engine_only Use @c EINA_TRUE to have cursors looked for
8579     * only on those provided by the rendering engine, @c EINA_FALSE to
8580     * have them searched on the widget's theme, as well.
8581     *
8582     * @note This call is of use only if you've set a custom cursor
8583     * for gengrid items, with elm_gengrid_item_cursor_set().
8584     *
8585     * @note By default, cursors will only be looked for between those
8586     * provided by the rendering engine.
8587     *
8588     * @ingroup Gengrid
8589     */
8590    EAPI void               elm_gengrid_item_cursor_engine_only_set(Elm_Gengrid_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
8591
8592    /**
8593     * Get if the (custom) cursor for a given gengrid item is being
8594     * searched in its theme, also, or is only relying on the rendering
8595     * engine.
8596     *
8597     * @param item a gengrid item
8598     * @return @c EINA_TRUE, if cursors are being looked for only on
8599     * those provided by the rendering engine, @c EINA_FALSE if they
8600     * are being searched on the widget's theme, as well.
8601     *
8602     * @see elm_gengrid_item_cursor_engine_only_set(), for more details
8603     *
8604     * @ingroup Gengrid
8605     */
8606    EAPI Eina_Bool          elm_gengrid_item_cursor_engine_only_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8607
8608    /**
8609     * Remove all items from a given gengrid widget
8610     *
8611     * @param obj The gengrid object.
8612     *
8613     * This removes (and deletes) all items in @p obj, leaving it
8614     * empty.
8615     *
8616     * @see elm_gengrid_item_del(), to remove just one item.
8617     *
8618     * @ingroup Gengrid
8619     */
8620    EAPI void               elm_gengrid_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
8621
8622    /**
8623     * Get the selected item in a given gengrid widget
8624     *
8625     * @param obj The gengrid object.
8626     * @return The selected item's handleor @c NULL, if none is
8627     * selected at the moment (and on errors)
8628     *
8629     * This returns the selected item in @p obj. If multi selection is
8630     * enabled on @p obj (@see elm_gengrid_multi_select_set()), only
8631     * the first item in the list is selected, which might not be very
8632     * useful. For that case, see elm_gengrid_selected_items_get().
8633     *
8634     * @ingroup Gengrid
8635     */
8636    EAPI Elm_Gengrid_Item  *elm_gengrid_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8637
8638    /**
8639     * Get <b>a list</b> of selected items in a given gengrid
8640     *
8641     * @param obj The gengrid object.
8642     * @return The list of selected items or @c NULL, if none is
8643     * selected at the moment (and on errors)
8644     *
8645     * This returns a list of the selected items, in the order that
8646     * they appear in the grid. This list is only valid as long as no
8647     * more items are selected or unselected (or unselected implictly
8648     * by deletion). The list contains #Elm_Gengrid_Item pointers as
8649     * data, naturally.
8650     *
8651     * @see elm_gengrid_selected_item_get()
8652     *
8653     * @ingroup Gengrid
8654     */
8655    EAPI const Eina_List   *elm_gengrid_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8656
8657    /**
8658     * @}
8659     */
8660
8661    /**
8662     * @defgroup Clock Clock
8663     *
8664     * @image html img/widget/clock/preview-00.png
8665     * @image latex img/widget/clock/preview-00.eps
8666     *
8667     * This is a @b digital clock widget. In its default theme, it has a
8668     * vintage "flipping numbers clock" appearance, which will animate
8669     * sheets of individual algarisms individually as time goes by.
8670     *
8671     * A newly created clock will fetch system's time (already
8672     * considering local time adjustments) to start with, and will tick
8673     * accondingly. It may or may not show seconds.
8674     *
8675     * Clocks have an @b edition mode. When in it, the sheets will
8676     * display extra arrow indications on the top and bottom and the
8677     * user may click on them to raise or lower the time values. After
8678     * it's told to exit edition mode, it will keep ticking with that
8679     * new time set (it keeps the difference from local time).
8680     *
8681     * Also, when under edition mode, user clicks on the cited arrows
8682     * which are @b held for some time will make the clock to flip the
8683     * sheet, thus editing the time, continuosly and automatically for
8684     * the user. The interval between sheet flips will keep growing in
8685     * time, so that it helps the user to reach a time which is distant
8686     * from the one set.
8687     *
8688     * The time display is, by default, in military mode (24h), but an
8689     * am/pm indicator may be optionally shown, too, when it will
8690     * switch to 12h.
8691     *
8692     * Smart callbacks one can register to:
8693     * - "changed" - the clock's user changed the time
8694     *
8695     * Here is an example on its usage:
8696     * @li @ref clock_example
8697     */
8698
8699    /**
8700     * @addtogroup Clock
8701     * @{
8702     */
8703
8704    /**
8705     * Identifiers for which clock digits should be editable, when a
8706     * clock widget is in edition mode. Values may be ORed together to
8707     * make a mask, naturally.
8708     *
8709     * @see elm_clock_edit_set()
8710     * @see elm_clock_digit_edit_set()
8711     */
8712    typedef enum _Elm_Clock_Digedit
8713      {
8714         ELM_CLOCK_NONE         = 0, /**< Default value. Means that all digits are editable, when in edition mode. */
8715         ELM_CLOCK_HOUR_DECIMAL = 1 << 0, /**< Decimal algarism of hours value should be editable */
8716         ELM_CLOCK_HOUR_UNIT    = 1 << 1, /**< Unit algarism of hours value should be editable */
8717         ELM_CLOCK_MIN_DECIMAL  = 1 << 2, /**< Decimal algarism of minutes value should be editable */
8718         ELM_CLOCK_MIN_UNIT     = 1 << 3, /**< Unit algarism of minutes value should be editable */
8719         ELM_CLOCK_SEC_DECIMAL  = 1 << 4, /**< Decimal algarism of seconds value should be editable */
8720         ELM_CLOCK_SEC_UNIT     = 1 << 5, /**< Unit algarism of seconds value should be editable */
8721         ELM_CLOCK_ALL          = (1 << 6) - 1 /**< All digits should be editable */
8722      } Elm_Clock_Digedit;
8723
8724    /**
8725     * Add a new clock widget to the given parent Elementary
8726     * (container) object
8727     *
8728     * @param parent The parent object
8729     * @return a new clock widget handle or @c NULL, on errors
8730     *
8731     * This function inserts a new clock widget on the canvas.
8732     *
8733     * @ingroup Clock
8734     */
8735    EAPI Evas_Object      *elm_clock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
8736
8737    /**
8738     * Set a clock widget's time, programmatically
8739     *
8740     * @param obj The clock widget object
8741     * @param hrs The hours to set
8742     * @param min The minutes to set
8743     * @param sec The secondes to set
8744     *
8745     * This function updates the time that is showed by the clock
8746     * widget.
8747     *
8748     *  Values @b must be set within the following ranges:
8749     * - 0 - 23, for hours
8750     * - 0 - 59, for minutes
8751     * - 0 - 59, for seconds,
8752     *
8753     * even if the clock is not in "military" mode.
8754     *
8755     * @warning The behavior for values set out of those ranges is @b
8756     * indefined.
8757     *
8758     * @ingroup Clock
8759     */
8760    EAPI void              elm_clock_time_set(Evas_Object *obj, int hrs, int min, int sec) EINA_ARG_NONNULL(1);
8761
8762    /**
8763     * Get a clock widget's time values
8764     *
8765     * @param obj The clock object
8766     * @param[out] hrs Pointer to the variable to get the hours value
8767     * @param[out] min Pointer to the variable to get the minutes value
8768     * @param[out] sec Pointer to the variable to get the seconds value
8769     *
8770     * This function gets the time set for @p obj, returning
8771     * it on the variables passed as the arguments to function
8772     *
8773     * @note Use @c NULL pointers on the time values you're not
8774     * interested in: they'll be ignored by the function.
8775     *
8776     * @ingroup Clock
8777     */
8778    EAPI void              elm_clock_time_get(const Evas_Object *obj, int *hrs, int *min, int *sec) EINA_ARG_NONNULL(1);
8779
8780    /**
8781     * Set whether a given clock widget is under <b>edition mode</b> or
8782     * under (default) displaying-only mode.
8783     *
8784     * @param obj The clock object
8785     * @param edit @c EINA_TRUE to put it in edition, @c EINA_FALSE to
8786     * put it back to "displaying only" mode
8787     *
8788     * This function makes a clock's time to be editable or not <b>by
8789     * user interaction</b>. When in edition mode, clocks @b stop
8790     * ticking, until one brings them back to canonical mode. The
8791     * elm_clock_digit_edit_set() function will influence which digits
8792     * of the clock will be editable. By default, all of them will be
8793     * (#ELM_CLOCK_NONE).
8794     *
8795     * @note am/pm sheets, if being shown, will @b always be editable
8796     * under edition mode.
8797     *
8798     * @see elm_clock_edit_get()
8799     *
8800     * @ingroup Clock
8801     */
8802    EAPI void              elm_clock_edit_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
8803
8804    /**
8805     * Retrieve whether a given clock widget is under <b>edition
8806     * mode</b> or under (default) displaying-only mode.
8807     *
8808     * @param obj The clock object
8809     * @param edit @c EINA_TRUE, if it's in edition mode, @c EINA_FALSE
8810     * otherwise
8811     *
8812     * This function retrieves whether the clock's time can be edited
8813     * or not by user interaction.
8814     *
8815     * @see elm_clock_edit_set() for more details
8816     *
8817     * @ingroup Clock
8818     */
8819    EAPI Eina_Bool         elm_clock_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8820
8821    /**
8822     * Set what digits of the given clock widget should be editable
8823     * when in edition mode.
8824     *
8825     * @param obj The clock object
8826     * @param digedit Bit mask indicating the digits to be editable
8827     * (values in #Elm_Clock_Digedit).
8828     *
8829     * If the @p digedit param is #ELM_CLOCK_NONE, editing will be
8830     * disabled on @p obj (same effect as elm_clock_edit_set(), with @c
8831     * EINA_FALSE).
8832     *
8833     * @see elm_clock_digit_edit_get()
8834     *
8835     * @ingroup Clock
8836     */
8837    EAPI void              elm_clock_digit_edit_set(Evas_Object *obj, Elm_Clock_Digedit digedit) EINA_ARG_NONNULL(1);
8838
8839    /**
8840     * Retrieve what digits of the given clock widget should be
8841     * editable when in edition mode.
8842     *
8843     * @param obj The clock object
8844     * @return Bit mask indicating the digits to be editable
8845     * (values in #Elm_Clock_Digedit).
8846     *
8847     * @see elm_clock_digit_edit_set() for more details
8848     *
8849     * @ingroup Clock
8850     */
8851    EAPI Elm_Clock_Digedit elm_clock_digit_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8852
8853    /**
8854     * Set if the given clock widget must show hours in military or
8855     * am/pm mode
8856     *
8857     * @param obj The clock object
8858     * @param am_pm @c EINA_TRUE to put it in am/pm mode, @c EINA_FALSE
8859     * to military mode
8860     *
8861     * This function sets if the clock must show hours in military or
8862     * am/pm mode. In some countries like Brazil the military mode
8863     * (00-24h-format) is used, in opposition to the USA, where the
8864     * am/pm mode is more commonly used.
8865     *
8866     * @see elm_clock_show_am_pm_get()
8867     *
8868     * @ingroup Clock
8869     */
8870    EAPI void              elm_clock_show_am_pm_set(Evas_Object *obj, Eina_Bool am_pm) EINA_ARG_NONNULL(1);
8871
8872    /**
8873     * Get if the given clock widget shows hours in military or am/pm
8874     * mode
8875     *
8876     * @param obj The clock object
8877     * @return @c EINA_TRUE, if in am/pm mode, @c EINA_FALSE if in
8878     * military
8879     *
8880     * This function gets if the clock shows hours in military or am/pm
8881     * mode.
8882     *
8883     * @see elm_clock_show_am_pm_set() for more details
8884     *
8885     * @ingroup Clock
8886     */
8887    EAPI Eina_Bool         elm_clock_show_am_pm_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8888
8889    /**
8890     * Set if the given clock widget must show time with seconds or not
8891     *
8892     * @param obj The clock object
8893     * @param seconds @c EINA_TRUE to show seconds, @c EINA_FALSE otherwise
8894     *
8895     * This function sets if the given clock must show or not elapsed
8896     * seconds. By default, they are @b not shown.
8897     *
8898     * @see elm_clock_show_seconds_get()
8899     *
8900     * @ingroup Clock
8901     */
8902    EAPI void              elm_clock_show_seconds_set(Evas_Object *obj, Eina_Bool seconds) EINA_ARG_NONNULL(1);
8903
8904    /**
8905     * Get whether the given clock widget is showing time with seconds
8906     * or not
8907     *
8908     * @param obj The clock object
8909     * @return @c EINA_TRUE if it's showing seconds, @c EINA_FALSE otherwise
8910     *
8911     * This function gets whether @p obj is showing or not the elapsed
8912     * seconds.
8913     *
8914     * @see elm_clock_show_seconds_set()
8915     *
8916     * @ingroup Clock
8917     */
8918    EAPI Eina_Bool         elm_clock_show_seconds_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8919
8920    /**
8921     * Set the interval on time updates for an user mouse button hold
8922     * on clock widgets' time edition.
8923     *
8924     * @param obj The clock object
8925     * @param interval The (first) interval value in seconds
8926     *
8927     * This interval value is @b decreased while the user holds the
8928     * mouse pointer either incrementing or decrementing a given the
8929     * clock digit's value.
8930     *
8931     * This helps the user to get to a given time distant from the
8932     * current one easier/faster, as it will start to flip quicker and
8933     * quicker on mouse button holds.
8934     *
8935     * The calculation for the next flip interval value, starting from
8936     * the one set with this call, is the previous interval divided by
8937     * 1.05, so it decreases a little bit.
8938     *
8939     * The default starting interval value for automatic flips is
8940     * @b 0.85 seconds.
8941     *
8942     * @see elm_clock_interval_get()
8943     *
8944     * @ingroup Clock
8945     */
8946    EAPI void              elm_clock_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
8947
8948    /**
8949     * Get the interval on time updates for an user mouse button hold
8950     * on clock widgets' time edition.
8951     *
8952     * @param obj The clock object
8953     * @return The (first) interval value, in seconds, set on it
8954     *
8955     * @see elm_clock_interval_set() for more details
8956     *
8957     * @ingroup Clock
8958     */
8959    EAPI double            elm_clock_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8960
8961    /**
8962     * @}
8963     */
8964
8965    /**
8966     * @defgroup Layout Layout
8967     *
8968     * @image html img/widget/layout/preview-00.png
8969     * @image latex img/widget/layout/preview-00.eps width=\textwidth
8970     *
8971     * @image html img/layout-predefined.png
8972     * @image latex img/layout-predefined.eps width=\textwidth
8973     *
8974     * This is a container widget that takes a standard Edje design file and
8975     * wraps it very thinly in a widget.
8976     *
8977     * An Edje design (theme) file has a very wide range of possibilities to
8978     * describe the behavior of elements added to the Layout. Check out the Edje
8979     * documentation and the EDC reference to get more information about what can
8980     * be done with Edje.
8981     *
8982     * Just like @ref List, @ref Box, and other container widgets, any
8983     * object added to the Layout will become its child, meaning that it will be
8984     * deleted if the Layout is deleted, move if the Layout is moved, and so on.
8985     *
8986     * The Layout widget can contain as many Contents, Boxes or Tables as
8987     * described in its theme file. For instance, objects can be added to
8988     * different Tables by specifying the respective Table part names. The same
8989     * is valid for Content and Box.
8990     *
8991     * The objects added as child of the Layout will behave as described in the
8992     * part description where they were added. There are 3 possible types of
8993     * parts where a child can be added:
8994     *
8995     * @section secContent Content (SWALLOW part)
8996     *
8997     * Only one object can be added to the @c SWALLOW part (but you still can
8998     * have many @c SWALLOW parts and one object on each of them). Use the @c
8999     * elm_layout_content_* set of functions to set, retrieve and unset objects
9000     * as content of the @c SWALLOW. After being set to this part, the object
9001     * size, position, visibility, clipping and other description properties
9002     * will be totally controled by the description of the given part (inside
9003     * the Edje theme file).
9004     *
9005     * One can use @c evas_object_size_hint_* functions on the child to have some
9006     * kind of control over its behavior, but the resulting behavior will still
9007     * depend heavily on the @c SWALLOW part description.
9008     *
9009     * The Edje theme also can change the part description, based on signals or
9010     * scripts running inside the theme. This change can also be animated. All of
9011     * this will affect the child object set as content accordingly. The object
9012     * size will be changed if the part size is changed, it will animate move if
9013     * the part is moving, and so on.
9014     *
9015     * The following picture demonstrates a Layout widget with a child object
9016     * added to its @c SWALLOW:
9017     *
9018     * @image html layout_swallow.png
9019     * @image latex layout_swallow.eps width=\textwidth
9020     *
9021     * @section secBox Box (BOX part)
9022     *
9023     * An Edje @c BOX part is very similar to the Elementary @ref Box widget. It
9024     * allows one to add objects to the box and have them distributed along its
9025     * area, accordingly to the specified @a layout property (now by @a layout we
9026     * mean the chosen layouting design of the Box, not the Layout widget
9027     * itself).
9028     *
9029     * A similar effect for having a box with its position, size and other things
9030     * controled by the Layout theme would be to create an Elementary @ref Box
9031     * widget and add it as a Content in the @c SWALLOW part.
9032     *
9033     * The main difference of using the Layout Box is that its behavior, the box
9034     * properties like layouting format, padding, align, etc. will be all
9035     * controled by the theme. This means, for example, that a signal could be
9036     * sent to the Layout theme (with elm_object_signal_emit()) and the theme
9037     * handled the signal by changing the box padding, or align, or both. Using
9038     * the Elementary @ref Box widget is not necessarily harder or easier, it
9039     * just depends on the circunstances and requirements.
9040     *
9041     * The Layout Box can be used through the @c elm_layout_box_* set of
9042     * functions.
9043     *
9044     * The following picture demonstrates a Layout widget with many child objects
9045     * added to its @c BOX part:
9046     *
9047     * @image html layout_box.png
9048     * @image latex layout_box.eps width=\textwidth
9049     *
9050     * @section secTable Table (TABLE part)
9051     *
9052     * Just like the @ref secBox, the Layout Table is very similar to the
9053     * Elementary @ref Table widget. It allows one to add objects to the Table
9054     * specifying the row and column where the object should be added, and any
9055     * column or row span if necessary.
9056     *
9057     * Again, we could have this design by adding a @ref Table widget to the @c
9058     * SWALLOW part using elm_layout_content_set(). The same difference happens
9059     * here when choosing to use the Layout Table (a @c TABLE part) instead of
9060     * the @ref Table plus @c SWALLOW part. It's just a matter of convenience.
9061     *
9062     * The Layout Table can be used through the @c elm_layout_table_* set of
9063     * functions.
9064     *
9065     * The following picture demonstrates a Layout widget with many child objects
9066     * added to its @c TABLE part:
9067     *
9068     * @image html layout_table.png
9069     * @image latex layout_table.eps width=\textwidth
9070     *
9071     * @section secPredef Predefined Layouts
9072     *
9073     * Another interesting thing about the Layout widget is that it offers some
9074     * predefined themes that come with the default Elementary theme. These
9075     * themes can be set by the call elm_layout_theme_set(), and provide some
9076     * basic functionality depending on the theme used.
9077     *
9078     * Most of them already send some signals, some already provide a toolbar or
9079     * back and next buttons.
9080     *
9081     * These are available predefined theme layouts. All of them have class = @c
9082     * layout, group = @c application, and style = one of the following options:
9083     *
9084     * @li @c toolbar-content - application with toolbar and main content area
9085     * @li @c toolbar-content-back - application with toolbar and main content
9086     * area with a back button and title area
9087     * @li @c toolbar-content-back-next - application with toolbar and main
9088     * content area with a back and next buttons and title area
9089     * @li @c content-back - application with a main content area with a back
9090     * button and title area
9091     * @li @c content-back-next - application with a main content area with a
9092     * back and next buttons and title area
9093     * @li @c toolbar-vbox - application with toolbar and main content area as a
9094     * vertical box
9095     * @li @c toolbar-table - application with toolbar and main content area as a
9096     * table
9097     *
9098     * @section secExamples Examples
9099     *
9100     * Some examples of the Layout widget can be found here:
9101     * @li @ref layout_example_01
9102     * @li @ref layout_example_02
9103     * @li @ref layout_example_03
9104     * @li @ref layout_example_edc
9105     *
9106     */
9107
9108    /**
9109     * Add a new layout to the parent
9110     *
9111     * @param parent The parent object
9112     * @return The new object or NULL if it cannot be created
9113     *
9114     * @see elm_layout_file_set()
9115     * @see elm_layout_theme_set()
9116     *
9117     * @ingroup Layout
9118     */
9119    EAPI Evas_Object       *elm_layout_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9120    /**
9121     * Set the file that will be used as layout
9122     *
9123     * @param obj The layout object
9124     * @param file The path to file (edj) that will be used as layout
9125     * @param group The group that the layout belongs in edje file
9126     *
9127     * @return (1 = success, 0 = error)
9128     *
9129     * @ingroup Layout
9130     */
9131    EAPI Eina_Bool          elm_layout_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
9132    /**
9133     * Set the edje group from the elementary theme that will be used as layout
9134     *
9135     * @param obj The layout object
9136     * @param clas the clas of the group
9137     * @param group the group
9138     * @param style the style to used
9139     *
9140     * @return (1 = success, 0 = error)
9141     *
9142     * @ingroup Layout
9143     */
9144    EAPI Eina_Bool          elm_layout_theme_set(Evas_Object *obj, const char *clas, const char *group, const char *style) EINA_ARG_NONNULL(1);
9145    /**
9146     * Set the layout content.
9147     *
9148     * @param obj The layout object
9149     * @param swallow The swallow part name in the edje file
9150     * @param content The child that will be added in this layout object
9151     *
9152     * Once the content object is set, a previously set one will be deleted.
9153     * If you want to keep that old content object, use the
9154     * elm_layout_content_unset() function.
9155     *
9156     * @note In an Edje theme, the part used as a content container is called @c
9157     * SWALLOW. This is why the parameter name is called @p swallow, but it is
9158     * expected to be a part name just like the second parameter of
9159     * elm_layout_box_append().
9160     *
9161     * @see elm_layout_box_append()
9162     * @see elm_layout_content_get()
9163     * @see elm_layout_content_unset()
9164     * @see @ref secBox
9165     *
9166     * @ingroup Layout
9167     */
9168    EAPI void               elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
9169    /**
9170     * Get the child object in the given content part.
9171     *
9172     * @param obj The layout object
9173     * @param swallow The SWALLOW part to get its content
9174     *
9175     * @return The swallowed object or NULL if none or an error occurred
9176     *
9177     * @see elm_layout_content_set()
9178     *
9179     * @ingroup Layout
9180     */
9181    EAPI Evas_Object       *elm_layout_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
9182    /**
9183     * Unset the layout content.
9184     *
9185     * @param obj The layout object
9186     * @param swallow The swallow part name in the edje file
9187     * @return The content that was being used
9188     *
9189     * Unparent and return the content object which was set for this part.
9190     *
9191     * @see elm_layout_content_set()
9192     *
9193     * @ingroup Layout
9194     */
9195     EAPI Evas_Object       *elm_layout_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
9196    /**
9197     * Set the text of the given part
9198     *
9199     * @param obj The layout object
9200     * @param part The TEXT part where to set the text
9201     * @param text The text to set
9202     *
9203     * @ingroup Layout
9204     * @deprecated use elm_object_text_* instead.
9205     */
9206    EINA_DEPRECATED EAPI void               elm_layout_text_set(Evas_Object *obj, const char *part, const char *text) EINA_ARG_NONNULL(1);
9207    /**
9208     * Get the text set in the given part
9209     *
9210     * @param obj The layout object
9211     * @param part The TEXT part to retrieve the text off
9212     *
9213     * @return The text set in @p part
9214     *
9215     * @ingroup Layout
9216     * @deprecated use elm_object_text_* instead.
9217     */
9218    EINA_DEPRECATED EAPI const char        *elm_layout_text_get(const Evas_Object *obj, const char *part) EINA_ARG_NONNULL(1);
9219    /**
9220     * Append child to layout box part.
9221     *
9222     * @param obj the layout object
9223     * @param part the box part to which the object will be appended.
9224     * @param child the child object to append to box.
9225     *
9226     * Once the object is appended, it will become child of the layout. Its
9227     * lifetime will be bound to the layout, whenever the layout dies the child
9228     * will be deleted automatically. One should use elm_layout_box_remove() to
9229     * make this layout forget about the object.
9230     *
9231     * @see elm_layout_box_prepend()
9232     * @see elm_layout_box_insert_before()
9233     * @see elm_layout_box_insert_at()
9234     * @see elm_layout_box_remove()
9235     *
9236     * @ingroup Layout
9237     */
9238    EAPI void               elm_layout_box_append(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
9239    /**
9240     * Prepend child to layout box part.
9241     *
9242     * @param obj the layout object
9243     * @param part the box part to prepend.
9244     * @param child the child object to prepend to box.
9245     *
9246     * Once the object is prepended, it will become child of the layout. Its
9247     * lifetime will be bound to the layout, whenever the layout dies the child
9248     * will be deleted automatically. One should use elm_layout_box_remove() to
9249     * make this layout forget about the object.
9250     *
9251     * @see elm_layout_box_append()
9252     * @see elm_layout_box_insert_before()
9253     * @see elm_layout_box_insert_at()
9254     * @see elm_layout_box_remove()
9255     *
9256     * @ingroup Layout
9257     */
9258    EAPI void               elm_layout_box_prepend(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
9259    /**
9260     * Insert child to layout box part before a reference object.
9261     *
9262     * @param obj the layout object
9263     * @param part the box part to insert.
9264     * @param child the child object to insert into box.
9265     * @param reference another reference object to insert before in box.
9266     *
9267     * Once the object is inserted, it will become child of the layout. Its
9268     * lifetime will be bound to the layout, whenever the layout dies the child
9269     * will be deleted automatically. One should use elm_layout_box_remove() to
9270     * make this layout forget about the object.
9271     *
9272     * @see elm_layout_box_append()
9273     * @see elm_layout_box_prepend()
9274     * @see elm_layout_box_insert_before()
9275     * @see elm_layout_box_remove()
9276     *
9277     * @ingroup Layout
9278     */
9279    EAPI void               elm_layout_box_insert_before(Evas_Object *obj, const char *part, Evas_Object *child, const Evas_Object *reference) EINA_ARG_NONNULL(1);
9280    /**
9281     * Insert child to layout box part at a given position.
9282     *
9283     * @param obj the layout object
9284     * @param part the box part to insert.
9285     * @param child the child object to insert into box.
9286     * @param pos the numeric position >=0 to insert the child.
9287     *
9288     * Once the object is inserted, it will become child of the layout. Its
9289     * lifetime will be bound to the layout, whenever the layout dies the child
9290     * will be deleted automatically. One should use elm_layout_box_remove() to
9291     * make this layout forget about the object.
9292     *
9293     * @see elm_layout_box_append()
9294     * @see elm_layout_box_prepend()
9295     * @see elm_layout_box_insert_before()
9296     * @see elm_layout_box_remove()
9297     *
9298     * @ingroup Layout
9299     */
9300    EAPI void               elm_layout_box_insert_at(Evas_Object *obj, const char *part, Evas_Object *child, unsigned int pos) EINA_ARG_NONNULL(1);
9301    /**
9302     * Remove a child of the given part box.
9303     *
9304     * @param obj The layout object
9305     * @param part The box part name to remove child.
9306     * @param child The object to remove from box.
9307     * @return The object that was being used, or NULL if not found.
9308     *
9309     * The object will be removed from the box part and its lifetime will
9310     * not be handled by the layout anymore. This is equivalent to
9311     * elm_layout_content_unset() for box.
9312     *
9313     * @see elm_layout_box_append()
9314     * @see elm_layout_box_remove_all()
9315     *
9316     * @ingroup Layout
9317     */
9318    EAPI Evas_Object       *elm_layout_box_remove(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1, 2, 3);
9319    /**
9320     * Remove all child of the given part box.
9321     *
9322     * @param obj The layout object
9323     * @param part The box part name to remove child.
9324     * @param clear If EINA_TRUE, then all objects will be deleted as
9325     *        well, otherwise they will just be removed and will be
9326     *        dangling on the canvas.
9327     *
9328     * The objects will be removed from the box part and their lifetime will
9329     * not be handled by the layout anymore. This is equivalent to
9330     * elm_layout_box_remove() for all box children.
9331     *
9332     * @see elm_layout_box_append()
9333     * @see elm_layout_box_remove()
9334     *
9335     * @ingroup Layout
9336     */
9337    EAPI void               elm_layout_box_remove_all(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
9338    /**
9339     * Insert child to layout table part.
9340     *
9341     * @param obj the layout object
9342     * @param part the box part to pack child.
9343     * @param child_obj the child object to pack into table.
9344     * @param col the column to which the child should be added. (>= 0)
9345     * @param row the row to which the child should be added. (>= 0)
9346     * @param colspan how many columns should be used to store this object. (>=
9347     *        1)
9348     * @param rowspan how many rows should be used to store this object. (>= 1)
9349     *
9350     * Once the object is inserted, it will become child of the table. Its
9351     * lifetime will be bound to the layout, and whenever the layout dies the
9352     * child will be deleted automatically. One should use
9353     * elm_layout_table_remove() to make this layout forget about the object.
9354     *
9355     * If @p colspan or @p rowspan are bigger than 1, that object will occupy
9356     * more space than a single cell. For instance, the following code:
9357     * @code
9358     * elm_layout_table_pack(layout, "table_part", child, 0, 1, 3, 1);
9359     * @endcode
9360     *
9361     * Would result in an object being added like the following picture:
9362     *
9363     * @image html layout_colspan.png
9364     * @image latex layout_colspan.eps width=\textwidth
9365     *
9366     * @see elm_layout_table_unpack()
9367     * @see elm_layout_table_clear()
9368     *
9369     * @ingroup Layout
9370     */
9371    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);
9372    /**
9373     * Unpack (remove) a child of the given part table.
9374     *
9375     * @param obj The layout object
9376     * @param part The table part name to remove child.
9377     * @param child_obj The object to remove from table.
9378     * @return The object that was being used, or NULL if not found.
9379     *
9380     * The object will be unpacked from the table part and its lifetime
9381     * will not be handled by the layout anymore. This is equivalent to
9382     * elm_layout_content_unset() for table.
9383     *
9384     * @see elm_layout_table_pack()
9385     * @see elm_layout_table_clear()
9386     *
9387     * @ingroup Layout
9388     */
9389    EAPI Evas_Object       *elm_layout_table_unpack(Evas_Object *obj, const char *part, Evas_Object *child_obj) EINA_ARG_NONNULL(1, 2, 3);
9390    /**
9391     * Remove all child of the given part table.
9392     *
9393     * @param obj The layout object
9394     * @param part The table part name to remove child.
9395     * @param clear If EINA_TRUE, then all objects will be deleted as
9396     *        well, otherwise they will just be removed and will be
9397     *        dangling on the canvas.
9398     *
9399     * The objects will be removed from the table part and their lifetime will
9400     * not be handled by the layout anymore. This is equivalent to
9401     * elm_layout_table_unpack() for all table children.
9402     *
9403     * @see elm_layout_table_pack()
9404     * @see elm_layout_table_unpack()
9405     *
9406     * @ingroup Layout
9407     */
9408    EAPI void               elm_layout_table_clear(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
9409    /**
9410     * Get the edje layout
9411     *
9412     * @param obj The layout object
9413     *
9414     * @return A Evas_Object with the edje layout settings loaded
9415     * with function elm_layout_file_set
9416     *
9417     * This returns the edje object. It is not expected to be used to then
9418     * swallow objects via edje_object_part_swallow() for example. Use
9419     * elm_layout_content_set() instead so child object handling and sizing is
9420     * done properly.
9421     *
9422     * @note This function should only be used if you really need to call some
9423     * low level Edje function on this edje object. All the common stuff (setting
9424     * text, emitting signals, hooking callbacks to signals, etc.) can be done
9425     * with proper elementary functions.
9426     *
9427     * @see elm_object_signal_callback_add()
9428     * @see elm_object_signal_emit()
9429     * @see elm_object_text_part_set()
9430     * @see elm_layout_content_set()
9431     * @see elm_layout_box_append()
9432     * @see elm_layout_table_pack()
9433     * @see elm_layout_data_get()
9434     *
9435     * @ingroup Layout
9436     */
9437    EAPI Evas_Object       *elm_layout_edje_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9438    /**
9439     * Get the edje data from the given layout
9440     *
9441     * @param obj The layout object
9442     * @param key The data key
9443     *
9444     * @return The edje data string
9445     *
9446     * This function fetches data specified inside the edje theme of this layout.
9447     * This function return NULL if data is not found.
9448     *
9449     * In EDC this comes from a data block within the group block that @p
9450     * obj was loaded from. E.g.
9451     *
9452     * @code
9453     * collections {
9454     *   group {
9455     *     name: "a_group";
9456     *     data {
9457     *       item: "key1" "value1";
9458     *       item: "key2" "value2";
9459     *     }
9460     *   }
9461     * }
9462     * @endcode
9463     *
9464     * @ingroup Layout
9465     */
9466    EAPI const char        *elm_layout_data_get(const Evas_Object *obj, const char *key) EINA_ARG_NONNULL(1, 2);
9467    /**
9468     * Eval sizing
9469     *
9470     * @param obj The layout object
9471     *
9472     * Manually forces a sizing re-evaluation. This is useful when the minimum
9473     * size required by the edje theme of this layout has changed. The change on
9474     * the minimum size required by the edje theme is not immediately reported to
9475     * the elementary layout, so one needs to call this function in order to tell
9476     * the widget (layout) that it needs to reevaluate its own size.
9477     *
9478     * The minimum size of the theme is calculated based on minimum size of
9479     * parts, the size of elements inside containers like box and table, etc. All
9480     * of this can change due to state changes, and that's when this function
9481     * should be called.
9482     *
9483     * Also note that a standard signal of "size,eval" "elm" emitted from the
9484     * edje object will cause this to happen too.
9485     *
9486     * @ingroup Layout
9487     */
9488    EAPI void               elm_layout_sizing_eval(Evas_Object *obj) EINA_ARG_NONNULL(1);
9489
9490    /**
9491     * Sets a specific cursor for an edje part.
9492     *
9493     * @param obj The layout object.
9494     * @param part_name a part from loaded edje group.
9495     * @param cursor cursor name to use, see Elementary_Cursor.h
9496     *
9497     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
9498     *         part not exists or it has "mouse_events: 0".
9499     *
9500     * @ingroup Layout
9501     */
9502    EAPI Eina_Bool          elm_layout_part_cursor_set(Evas_Object *obj, const char *part_name, const char *cursor) EINA_ARG_NONNULL(1, 2);
9503
9504    /**
9505     * Get the cursor to be shown when mouse is over an edje part
9506     *
9507     * @param obj The layout object.
9508     * @param part_name a part from loaded edje group.
9509     * @return the cursor name.
9510     *
9511     * @ingroup Layout
9512     */
9513    EAPI const char        *elm_layout_part_cursor_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
9514
9515    /**
9516     * Unsets a cursor previously set with elm_layout_part_cursor_set().
9517     *
9518     * @param obj The layout object.
9519     * @param part_name a part from loaded edje group, that had a cursor set
9520     *        with elm_layout_part_cursor_set().
9521     *
9522     * @ingroup Layout
9523     */
9524    EAPI void               elm_layout_part_cursor_unset(Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
9525
9526    /**
9527     * Sets a specific cursor style for an edje part.
9528     *
9529     * @param obj The layout object.
9530     * @param part_name a part from loaded edje group.
9531     * @param style the theme style to use (default, transparent, ...)
9532     *
9533     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
9534     *         part not exists or it did not had a cursor set.
9535     *
9536     * @ingroup Layout
9537     */
9538    EAPI Eina_Bool          elm_layout_part_cursor_style_set(Evas_Object *obj, const char *part_name, const char *style) EINA_ARG_NONNULL(1, 2);
9539
9540    /**
9541     * Gets a specific cursor style for an edje part.
9542     *
9543     * @param obj The layout object.
9544     * @param part_name a part from loaded edje group.
9545     *
9546     * @return the theme style in use, defaults to "default". If the
9547     *         object does not have a cursor set, then NULL is returned.
9548     *
9549     * @ingroup Layout
9550     */
9551    EAPI const char        *elm_layout_part_cursor_style_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
9552
9553    /**
9554     * Sets if the cursor set should be searched on the theme or should use
9555     * the provided by the engine, only.
9556     *
9557     * @note before you set if should look on theme you should define a
9558     * cursor with elm_layout_part_cursor_set(). By default it will only
9559     * look for cursors provided by the engine.
9560     *
9561     * @param obj The layout object.
9562     * @param part_name a part from loaded edje group.
9563     * @param engine_only if cursors should be just provided by the engine
9564     *        or should also search on widget's theme as well
9565     *
9566     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
9567     *         part not exists or it did not had a cursor set.
9568     *
9569     * @ingroup Layout
9570     */
9571    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);
9572
9573    /**
9574     * Gets a specific cursor engine_only for an edje part.
9575     *
9576     * @param obj The layout object.
9577     * @param part_name a part from loaded edje group.
9578     *
9579     * @return whenever the cursor is just provided by engine or also from theme.
9580     *
9581     * @ingroup Layout
9582     */
9583    EAPI Eina_Bool          elm_layout_part_cursor_engine_only_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
9584
9585 /**
9586  * @def elm_layout_icon_set
9587  * Convienience macro to set the icon object in a layout that follows the
9588  * Elementary naming convention for its parts.
9589  *
9590  * @ingroup Layout
9591  */
9592 #define elm_layout_icon_set(_ly, _obj) \
9593   do { \
9594     const char *sig; \
9595     elm_layout_content_set((_ly), "elm.swallow.icon", (_obj)); \
9596     if ((_obj)) sig = "elm,state,icon,visible"; \
9597     else sig = "elm,state,icon,hidden"; \
9598     elm_object_signal_emit((_ly), sig, "elm"); \
9599   } while (0)
9600
9601 /**
9602  * @def elm_layout_icon_get
9603  * Convienience macro to get the icon object from a layout that follows the
9604  * Elementary naming convention for its parts.
9605  *
9606  * @ingroup Layout
9607  */
9608 #define elm_layout_icon_get(_ly) \
9609   elm_layout_content_get((_ly), "elm.swallow.icon")
9610
9611 /**
9612  * @def elm_layout_end_set
9613  * Convienience macro to set the end object in a layout that follows the
9614  * Elementary naming convention for its parts.
9615  *
9616  * @ingroup Layout
9617  */
9618 #define elm_layout_end_set(_ly, _obj) \
9619   do { \
9620     const char *sig; \
9621     elm_layout_content_set((_ly), "elm.swallow.end", (_obj)); \
9622     if ((_obj)) sig = "elm,state,end,visible"; \
9623     else sig = "elm,state,end,hidden"; \
9624     elm_object_signal_emit((_ly), sig, "elm"); \
9625   } while (0)
9626
9627 /**
9628  * @def elm_layout_end_get
9629  * Convienience macro to get the end object in a layout that follows the
9630  * Elementary naming convention for its parts.
9631  *
9632  * @ingroup Layout
9633  */
9634 #define elm_layout_end_get(_ly) \
9635   elm_layout_content_get((_ly), "elm.swallow.end")
9636
9637 /**
9638  * @def elm_layout_label_set
9639  * Convienience macro to set the label in a layout that follows the
9640  * Elementary naming convention for its parts.
9641  *
9642  * @ingroup Layout
9643  * @deprecated use elm_object_text_* instead.
9644  */
9645 #define elm_layout_label_set(_ly, _txt) \
9646   elm_layout_text_set((_ly), "elm.text", (_txt))
9647
9648 /**
9649  * @def elm_layout_label_get
9650  * Convienience macro to get the label in a layout that follows the
9651  * Elementary naming convention for its parts.
9652  *
9653  * @ingroup Layout
9654  * @deprecated use elm_object_text_* instead.
9655  */
9656 #define elm_layout_label_get(_ly) \
9657   elm_layout_text_get((_ly), "elm.text")
9658
9659    /* smart callbacks called:
9660     * "theme,changed" - when elm theme is changed.
9661     */
9662
9663    /**
9664     * @defgroup Notify Notify
9665     *
9666     * @image html img/widget/notify/preview-00.png
9667     * @image latex img/widget/notify/preview-00.eps
9668     *
9669     * Display a container in a particular region of the parent(top, bottom,
9670     * etc.  A timeout can be set to automatically hide the notify. This is so
9671     * that, after an evas_object_show() on a notify object, if a timeout was set
9672     * on it, it will @b automatically get hidden after that time.
9673     *
9674     * Signals that you can add callbacks for are:
9675     * @li "timeout" - when timeout happens on notify and it's hidden
9676     * @li "block,clicked" - when a click outside of the notify happens
9677     *
9678     * @ref tutorial_notify show usage of the API.
9679     *
9680     * @{
9681     */
9682    /**
9683     * @brief Possible orient values for notify.
9684     *
9685     * This values should be used in conjunction to elm_notify_orient_set() to
9686     * set the position in which the notify should appear(relative to its parent)
9687     * and in conjunction with elm_notify_orient_get() to know where the notify
9688     * is appearing.
9689     */
9690    typedef enum _Elm_Notify_Orient
9691      {
9692         ELM_NOTIFY_ORIENT_TOP, /**< Notify should appear in the top of parent, default */
9693         ELM_NOTIFY_ORIENT_CENTER, /**< Notify should appear in the center of parent */
9694         ELM_NOTIFY_ORIENT_BOTTOM, /**< Notify should appear in the bottom of parent */
9695         ELM_NOTIFY_ORIENT_LEFT, /**< Notify should appear in the left of parent */
9696         ELM_NOTIFY_ORIENT_RIGHT, /**< Notify should appear in the right of parent */
9697         ELM_NOTIFY_ORIENT_TOP_LEFT, /**< Notify should appear in the top left of parent */
9698         ELM_NOTIFY_ORIENT_TOP_RIGHT, /**< Notify should appear in the top right of parent */
9699         ELM_NOTIFY_ORIENT_BOTTOM_LEFT, /**< Notify should appear in the bottom left of parent */
9700         ELM_NOTIFY_ORIENT_BOTTOM_RIGHT, /**< Notify should appear in the bottom right of parent */
9701         ELM_NOTIFY_ORIENT_LAST /**< Sentinel value, @b don't use */
9702      } Elm_Notify_Orient;
9703    /**
9704     * @brief Add a new notify to the parent
9705     *
9706     * @param parent The parent object
9707     * @return The new object or NULL if it cannot be created
9708     */
9709    EAPI Evas_Object      *elm_notify_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9710    /**
9711     * @brief Set the content of the notify widget
9712     *
9713     * @param obj The notify object
9714     * @param content The content will be filled in this notify object
9715     *
9716     * Once the content object is set, a previously set one will be deleted. If
9717     * you want to keep that old content object, use the
9718     * elm_notify_content_unset() function.
9719     */
9720    EAPI void              elm_notify_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
9721    /**
9722     * @brief Unset the content of the notify widget
9723     *
9724     * @param obj The notify object
9725     * @return The content that was being used
9726     *
9727     * Unparent and return the content object which was set for this widget
9728     *
9729     * @see elm_notify_content_set()
9730     */
9731    EAPI Evas_Object      *elm_notify_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
9732    /**
9733     * @brief Return the content of the notify widget
9734     *
9735     * @param obj The notify object
9736     * @return The content that is being used
9737     *
9738     * @see elm_notify_content_set()
9739     */
9740    EAPI Evas_Object      *elm_notify_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9741    /**
9742     * @brief Set the notify parent
9743     *
9744     * @param obj The notify object
9745     * @param content The new parent
9746     *
9747     * Once the parent object is set, a previously set one will be disconnected
9748     * and replaced.
9749     */
9750    EAPI void              elm_notify_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
9751    /**
9752     * @brief Get the notify parent
9753     *
9754     * @param obj The notify object
9755     * @return The parent
9756     *
9757     * @see elm_notify_parent_set()
9758     */
9759    EAPI Evas_Object      *elm_notify_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9760    /**
9761     * @brief Set the orientation
9762     *
9763     * @param obj The notify object
9764     * @param orient The new orientation
9765     *
9766     * Sets the position in which the notify will appear in its parent.
9767     *
9768     * @see @ref Elm_Notify_Orient for possible values.
9769     */
9770    EAPI void              elm_notify_orient_set(Evas_Object *obj, Elm_Notify_Orient orient) EINA_ARG_NONNULL(1);
9771    /**
9772     * @brief Return the orientation
9773     * @param obj The notify object
9774     * @return The orientation of the notification
9775     *
9776     * @see elm_notify_orient_set()
9777     * @see Elm_Notify_Orient
9778     */
9779    EAPI Elm_Notify_Orient elm_notify_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9780    /**
9781     * @brief Set the time interval after which the notify window is going to be
9782     * hidden.
9783     *
9784     * @param obj The notify object
9785     * @param time The timeout in seconds
9786     *
9787     * This function sets a timeout and starts the timer controlling when the
9788     * notify is hidden. Since calling evas_object_show() on a notify restarts
9789     * the timer controlling when the notify is hidden, setting this before the
9790     * notify is shown will in effect mean starting the timer when the notify is
9791     * shown.
9792     *
9793     * @note Set a value <= 0.0 to disable a running timer.
9794     *
9795     * @note If the value > 0.0 and the notify is previously visible, the
9796     * timer will be started with this value, canceling any running timer.
9797     */
9798    EAPI void              elm_notify_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
9799    /**
9800     * @brief Return the timeout value (in seconds)
9801     * @param obj the notify object
9802     *
9803     * @see elm_notify_timeout_set()
9804     */
9805    EAPI double            elm_notify_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9806    /**
9807     * @brief Sets whether events should be passed to by a click outside
9808     * its area.
9809     *
9810     * @param obj The notify object
9811     * @param repeats EINA_TRUE Events are repeats, else no
9812     *
9813     * When true if the user clicks outside the window the events will be caught
9814     * by the others widgets, else the events are blocked.
9815     *
9816     * @note The default value is EINA_TRUE.
9817     */
9818    EAPI void              elm_notify_repeat_events_set(Evas_Object *obj, Eina_Bool repeat) EINA_ARG_NONNULL(1);
9819    /**
9820     * @brief Return true if events are repeat below the notify object
9821     * @param obj the notify object
9822     *
9823     * @see elm_notify_repeat_events_set()
9824     */
9825    EAPI Eina_Bool         elm_notify_repeat_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9826    /**
9827     * @}
9828     */
9829
9830    /**
9831     * @defgroup Hover Hover
9832     *
9833     * @image html img/widget/hover/preview-00.png
9834     * @image latex img/widget/hover/preview-00.eps
9835     *
9836     * A Hover object will hover over its @p parent object at the @p target
9837     * location. Anything in the background will be given a darker coloring to
9838     * indicate that the hover object is on top (at the default theme). When the
9839     * hover is clicked it is dismissed(hidden), if the contents of the hover are
9840     * clicked that @b doesn't cause the hover to be dismissed.
9841     *
9842     * @note The hover object will take up the entire space of @p target
9843     * object.
9844     *
9845     * Elementary has the following styles for the hover widget:
9846     * @li default
9847     * @li popout
9848     * @li menu
9849     * @li hoversel_vertical
9850     *
9851     * The following are the available position for content:
9852     * @li left
9853     * @li top-left
9854     * @li top
9855     * @li top-right
9856     * @li right
9857     * @li bottom-right
9858     * @li bottom
9859     * @li bottom-left
9860     * @li middle
9861     * @li smart
9862     *
9863     * Signals that you can add callbacks for are:
9864     * @li "clicked" - the user clicked the empty space in the hover to dismiss
9865     * @li "smart,changed" - a content object placed under the "smart"
9866     *                   policy was replaced to a new slot direction.
9867     *
9868     * See @ref tutorial_hover for more information.
9869     *
9870     * @{
9871     */
9872    typedef enum _Elm_Hover_Axis
9873      {
9874         ELM_HOVER_AXIS_NONE, /**< ELM_HOVER_AXIS_NONE -- no prefered orientation */
9875         ELM_HOVER_AXIS_HORIZONTAL, /**< ELM_HOVER_AXIS_HORIZONTAL -- horizontal */
9876         ELM_HOVER_AXIS_VERTICAL, /**< ELM_HOVER_AXIS_VERTICAL -- vertical */
9877         ELM_HOVER_AXIS_BOTH /**< ELM_HOVER_AXIS_BOTH -- both */
9878      } Elm_Hover_Axis;
9879    /**
9880     * @brief Adds a hover object to @p parent
9881     *
9882     * @param parent The parent object
9883     * @return The hover object or NULL if one could not be created
9884     */
9885    EAPI Evas_Object *elm_hover_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9886    /**
9887     * @brief Sets the target object for the hover.
9888     *
9889     * @param obj The hover object
9890     * @param target The object to center the hover onto. The hover
9891     *
9892     * This function will cause the hover to be centered on the target object.
9893     */
9894    EAPI void         elm_hover_target_set(Evas_Object *obj, Evas_Object *target) EINA_ARG_NONNULL(1);
9895    /**
9896     * @brief Gets the target object for the hover.
9897     *
9898     * @param obj The hover object
9899     * @param parent The object to locate the hover over.
9900     *
9901     * @see elm_hover_target_set()
9902     */
9903    EAPI Evas_Object *elm_hover_target_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9904    /**
9905     * @brief Sets the parent object for the hover.
9906     *
9907     * @param obj The hover object
9908     * @param parent The object to locate the hover over.
9909     *
9910     * This function will cause the hover to take up the entire space that the
9911     * parent object fills.
9912     */
9913    EAPI void         elm_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
9914    /**
9915     * @brief Gets the parent object for the hover.
9916     *
9917     * @param obj The hover object
9918     * @return The parent object to locate the hover over.
9919     *
9920     * @see elm_hover_parent_set()
9921     */
9922    EAPI Evas_Object *elm_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9923    /**
9924     * @brief Sets the content of the hover object and the direction in which it
9925     * will pop out.
9926     *
9927     * @param obj The hover object
9928     * @param swallow The direction that the object will be displayed
9929     * at. Accepted values are "left", "top-left", "top", "top-right",
9930     * "right", "bottom-right", "bottom", "bottom-left", "middle" and
9931     * "smart".
9932     * @param content The content to place at @p swallow
9933     *
9934     * Once the content object is set for a given direction, a previously
9935     * set one (on the same direction) will be deleted. If you want to
9936     * keep that old content object, use the elm_hover_content_unset()
9937     * function.
9938     *
9939     * All directions may have contents at the same time, except for
9940     * "smart". This is a special placement hint and its use case
9941     * independs of the calculations coming from
9942     * elm_hover_best_content_location_get(). Its use is for cases when
9943     * one desires only one hover content, but with a dinamic special
9944     * placement within the hover area. The content's geometry, whenever
9945     * it changes, will be used to decide on a best location not
9946     * extrapolating the hover's parent object view to show it in (still
9947     * being the hover's target determinant of its medium part -- move and
9948     * resize it to simulate finger sizes, for example). If one of the
9949     * directions other than "smart" are used, a previously content set
9950     * using it will be deleted, and vice-versa.
9951     */
9952    EAPI void         elm_hover_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
9953    /**
9954     * @brief Get the content of the hover object, in a given direction.
9955     *
9956     * Return the content object which was set for this widget in the
9957     * @p swallow direction.
9958     *
9959     * @param obj The hover object
9960     * @param swallow The direction that the object was display at.
9961     * @return The content that was being used
9962     *
9963     * @see elm_hover_content_set()
9964     */
9965    EAPI Evas_Object *elm_hover_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
9966    /**
9967     * @brief Unset the content of the hover object, in a given direction.
9968     *
9969     * Unparent and return the content object set at @p swallow direction.
9970     *
9971     * @param obj The hover object
9972     * @param swallow The direction that the object was display at.
9973     * @return The content that was being used.
9974     *
9975     * @see elm_hover_content_set()
9976     */
9977    EAPI Evas_Object *elm_hover_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
9978    /**
9979     * @brief Returns the best swallow location for content in the hover.
9980     *
9981     * @param obj The hover object
9982     * @param pref_axis The preferred orientation axis for the hover object to use
9983     * @return The edje location to place content into the hover or @c
9984     *         NULL, on errors.
9985     *
9986     * Best is defined here as the location at which there is the most available
9987     * space.
9988     *
9989     * @p pref_axis may be one of
9990     * - @c ELM_HOVER_AXIS_NONE -- no prefered orientation
9991     * - @c ELM_HOVER_AXIS_HORIZONTAL -- horizontal
9992     * - @c ELM_HOVER_AXIS_VERTICAL -- vertical
9993     * - @c ELM_HOVER_AXIS_BOTH -- both
9994     *
9995     * If ELM_HOVER_AXIS_HORIZONTAL is choosen the returned position will
9996     * nescessarily be along the horizontal axis("left" or "right"). If
9997     * ELM_HOVER_AXIS_VERTICAL is choosen the returned position will nescessarily
9998     * be along the vertical axis("top" or "bottom"). Chossing
9999     * ELM_HOVER_AXIS_BOTH or ELM_HOVER_AXIS_NONE has the same effect and the
10000     * returned position may be in either axis.
10001     *
10002     * @see elm_hover_content_set()
10003     */
10004    EAPI const char  *elm_hover_best_content_location_get(const Evas_Object *obj, Elm_Hover_Axis pref_axis) EINA_ARG_NONNULL(1);
10005    /**
10006     * @}
10007     */
10008
10009    /* entry */
10010    /**
10011     * @defgroup Entry Entry
10012     *
10013     * @image html img/widget/entry/preview-00.png
10014     * @image latex img/widget/entry/preview-00.eps width=\textwidth
10015     * @image html img/widget/entry/preview-01.png
10016     * @image latex img/widget/entry/preview-01.eps width=\textwidth
10017     * @image html img/widget/entry/preview-02.png
10018     * @image latex img/widget/entry/preview-02.eps width=\textwidth
10019     * @image html img/widget/entry/preview-03.png
10020     * @image latex img/widget/entry/preview-03.eps width=\textwidth
10021     *
10022     * An entry is a convenience widget which shows a box that the user can
10023     * enter text into. Entries by default don't scroll, so they grow to
10024     * accomodate the entire text, resizing the parent window as needed. This
10025     * can be changed with the elm_entry_scrollable_set() function.
10026     *
10027     * They can also be single line or multi line (the default) and when set
10028     * to multi line mode they support text wrapping in any of the modes
10029     * indicated by #Elm_Wrap_Type.
10030     *
10031     * Other features include password mode, filtering of inserted text with
10032     * elm_entry_text_filter_append() and related functions, inline "items" and
10033     * formatted markup text.
10034     *
10035     * @section entry-markup Formatted text
10036     *
10037     * The markup tags supported by the Entry are defined by the theme, but
10038     * even when writing new themes or extensions it's a good idea to stick to
10039     * a sane default, to maintain coherency and avoid application breakages.
10040     * Currently defined by the default theme are the following tags:
10041     * @li \<br\>: Inserts a line break.
10042     * @li \<ps\>: Inserts a paragraph separator. This is preferred over line
10043     * breaks.
10044     * @li \<tab\>: Inserts a tab.
10045     * @li \<em\>...\</em\>: Emphasis. Sets the @em oblique style for the
10046     * enclosed text.
10047     * @li \<b\>...\</b\>: Sets the @b bold style for the enclosed text.
10048     * @li \<link\>...\</link\>: Underlines the enclosed text.
10049     * @li \<hilight\>...\</hilight\>: Hilights the enclosed text.
10050     *
10051     * @section entry-special Special markups
10052     *
10053     * Besides those used to format text, entries support two special markup
10054     * tags used to insert clickable portions of text or items inlined within
10055     * the text.
10056     *
10057     * @subsection entry-anchors Anchors
10058     *
10059     * Anchors are similar to HTML anchors. Text can be surrounded by \<a\> and
10060     * \</a\> tags and an event will be generated when this text is clicked,
10061     * like this:
10062     *
10063     * @code
10064     * This text is outside <a href=anc-01>but this one is an anchor</a>
10065     * @endcode
10066     *
10067     * The @c href attribute in the opening tag gives the name that will be
10068     * used to identify the anchor and it can be any valid utf8 string.
10069     *
10070     * When an anchor is clicked, an @c "anchor,clicked" signal is emitted with
10071     * an #Elm_Entry_Anchor_Info in the @c event_info parameter for the
10072     * callback function. The same applies for "anchor,in" (mouse in), "anchor,out"
10073     * (mouse out), "anchor,down" (mouse down), and "anchor,up" (mouse up) events on
10074     * an anchor.
10075     *
10076     * @subsection entry-items Items
10077     *
10078     * Inlined in the text, any other @c Evas_Object can be inserted by using
10079     * \<item\> tags this way:
10080     *
10081     * @code
10082     * <item size=16x16 vsize=full href=emoticon/haha></item>
10083     * @endcode
10084     *
10085     * Just like with anchors, the @c href identifies each item, but these need,
10086     * in addition, to indicate their size, which is done using any one of
10087     * @c size, @c absize or @c relsize attributes. These attributes take their
10088     * value in the WxH format, where W is the width and H the height of the
10089     * item.
10090     *
10091     * @li absize: Absolute pixel size for the item. Whatever value is set will
10092     * be the item's size regardless of any scale value the object may have
10093     * been set to. The final line height will be adjusted to fit larger items.
10094     * @li size: Similar to @c absize, but it's adjusted to the scale value set
10095     * for the object.
10096     * @li relsize: Size is adjusted for the item to fit within the current
10097     * line height.
10098     *
10099     * Besides their size, items are specificed a @c vsize value that affects
10100     * how their final size and position are calculated. The possible values
10101     * are:
10102     * @li ascent: Item will be placed within the line's baseline and its
10103     * ascent. That is, the height between the line where all characters are
10104     * positioned and the highest point in the line. For @c size and @c absize
10105     * items, the descent value will be added to the total line height to make
10106     * them fit. @c relsize items will be adjusted to fit within this space.
10107     * @li full: Items will be placed between the descent and ascent, or the
10108     * lowest point in the line and its highest.
10109     *
10110     * The next image shows different configurations of items and how they
10111     * are the previously mentioned options affect their sizes. In all cases,
10112     * the green line indicates the ascent, blue for the baseline and red for
10113     * the descent.
10114     *
10115     * @image html entry_item.png
10116     * @image latex entry_item.eps width=\textwidth
10117     *
10118     * And another one to show how size differs from absize. In the first one,
10119     * the scale value is set to 1.0, while the second one is using one of 2.0.
10120     *
10121     * @image html entry_item_scale.png
10122     * @image latex entry_item_scale.eps width=\textwidth
10123     *
10124     * After the size for an item is calculated, the entry will request an
10125     * object to place in its space. For this, the functions set with
10126     * elm_entry_item_provider_append() and related functions will be called
10127     * in order until one of them returns a @c non-NULL value. If no providers
10128     * are available, or all of them return @c NULL, then the entry falls back
10129     * to one of the internal defaults, provided the name matches with one of
10130     * them.
10131     *
10132     * All of the following are currently supported:
10133     *
10134     * - emoticon/angry
10135     * - emoticon/angry-shout
10136     * - emoticon/crazy-laugh
10137     * - emoticon/evil-laugh
10138     * - emoticon/evil
10139     * - emoticon/goggle-smile
10140     * - emoticon/grumpy
10141     * - emoticon/grumpy-smile
10142     * - emoticon/guilty
10143     * - emoticon/guilty-smile
10144     * - emoticon/haha
10145     * - emoticon/half-smile
10146     * - emoticon/happy-panting
10147     * - emoticon/happy
10148     * - emoticon/indifferent
10149     * - emoticon/kiss
10150     * - emoticon/knowing-grin
10151     * - emoticon/laugh
10152     * - emoticon/little-bit-sorry
10153     * - emoticon/love-lots
10154     * - emoticon/love
10155     * - emoticon/minimal-smile
10156     * - emoticon/not-happy
10157     * - emoticon/not-impressed
10158     * - emoticon/omg
10159     * - emoticon/opensmile
10160     * - emoticon/smile
10161     * - emoticon/sorry
10162     * - emoticon/squint-laugh
10163     * - emoticon/surprised
10164     * - emoticon/suspicious
10165     * - emoticon/tongue-dangling
10166     * - emoticon/tongue-poke
10167     * - emoticon/uh
10168     * - emoticon/unhappy
10169     * - emoticon/very-sorry
10170     * - emoticon/what
10171     * - emoticon/wink
10172     * - emoticon/worried
10173     * - emoticon/wtf
10174     *
10175     * Alternatively, an item may reference an image by its path, using
10176     * the URI form @c file:///path/to/an/image.png and the entry will then
10177     * use that image for the item.
10178     *
10179     * @section entry-files Loading and saving files
10180     *
10181     * Entries have convinience functions to load text from a file and save
10182     * changes back to it after a short delay. The automatic saving is enabled
10183     * by default, but can be disabled with elm_entry_autosave_set() and files
10184     * can be loaded directly as plain text or have any markup in them
10185     * recognized. See elm_entry_file_set() for more details.
10186     *
10187     * @section entry-signals Emitted signals
10188     *
10189     * This widget emits the following signals:
10190     *
10191     * @li "changed": The text within the entry was changed.
10192     * @li "changed,user": The text within the entry was changed because of user interaction.
10193     * @li "activated": The enter key was pressed on a single line entry.
10194     * @li "press": A mouse button has been pressed on the entry.
10195     * @li "longpressed": A mouse button has been pressed and held for a couple
10196     * seconds.
10197     * @li "clicked": The entry has been clicked (mouse press and release).
10198     * @li "clicked,double": The entry has been double clicked.
10199     * @li "clicked,triple": The entry has been triple clicked.
10200     * @li "focused": The entry has received focus.
10201     * @li "unfocused": The entry has lost focus.
10202     * @li "selection,paste": A paste of the clipboard contents was requested.
10203     * @li "selection,copy": A copy of the selected text into the clipboard was
10204     * requested.
10205     * @li "selection,cut": A cut of the selected text into the clipboard was
10206     * requested.
10207     * @li "selection,start": A selection has begun and no previous selection
10208     * existed.
10209     * @li "selection,changed": The current selection has changed.
10210     * @li "selection,cleared": The current selection has been cleared.
10211     * @li "cursor,changed": The cursor has changed position.
10212     * @li "anchor,clicked": An anchor has been clicked. The event_info
10213     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10214     * @li "anchor,in": Mouse cursor has moved into an anchor. The event_info
10215     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10216     * @li "anchor,out": Mouse cursor has moved out of an anchor. The event_info
10217     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10218     * @li "anchor,up": Mouse button has been unpressed on an anchor. The event_info
10219     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10220     * @li "anchor,down": Mouse button has been pressed on an anchor. The event_info
10221     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10222     * @li "preedit,changed": The preedit string has changed.
10223     *
10224     * @section entry-examples
10225     *
10226     * An overview of the Entry API can be seen in @ref entry_example_01
10227     *
10228     * @{
10229     */
10230    /**
10231     * @typedef Elm_Entry_Anchor_Info
10232     *
10233     * The info sent in the callback for the "anchor,clicked" signals emitted
10234     * by entries.
10235     */
10236    typedef struct _Elm_Entry_Anchor_Info Elm_Entry_Anchor_Info;
10237    /**
10238     * @struct _Elm_Entry_Anchor_Info
10239     *
10240     * The info sent in the callback for the "anchor,clicked" signals emitted
10241     * by entries.
10242     */
10243    struct _Elm_Entry_Anchor_Info
10244      {
10245         const char *name; /**< The name of the anchor, as stated in its href */
10246         int         button; /**< The mouse button used to click on it */
10247         Evas_Coord  x, /**< Anchor geometry, relative to canvas */
10248                     y, /**< Anchor geometry, relative to canvas */
10249                     w, /**< Anchor geometry, relative to canvas */
10250                     h; /**< Anchor geometry, relative to canvas */
10251      };
10252    /**
10253     * @typedef Elm_Entry_Filter_Cb
10254     * This callback type is used by entry filters to modify text.
10255     * @param data The data specified as the last param when adding the filter
10256     * @param entry The entry object
10257     * @param text A pointer to the location of the text being filtered. This data can be modified,
10258     * but any additional allocations must be managed by the user.
10259     * @see elm_entry_text_filter_append
10260     * @see elm_entry_text_filter_prepend
10261     */
10262    typedef void (*Elm_Entry_Filter_Cb)(void *data, Evas_Object *entry, char **text);
10263
10264    /**
10265     * This adds an entry to @p parent object.
10266     *
10267     * By default, entries are:
10268     * @li not scrolled
10269     * @li multi-line
10270     * @li word wrapped
10271     * @li autosave is enabled
10272     *
10273     * @param parent The parent object
10274     * @return The new object or NULL if it cannot be created
10275     */
10276    EAPI Evas_Object *elm_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10277    /**
10278     * Sets the entry to single line mode.
10279     *
10280     * In single line mode, entries don't ever wrap when the text reaches the
10281     * edge, and instead they keep growing horizontally. Pressing the @c Enter
10282     * key will generate an @c "activate" event instead of adding a new line.
10283     *
10284     * When @p single_line is @c EINA_FALSE, line wrapping takes effect again
10285     * and pressing enter will break the text into a different line
10286     * without generating any events.
10287     *
10288     * @param obj The entry object
10289     * @param single_line If true, the text in the entry
10290     * will be on a single line.
10291     */
10292    EAPI void         elm_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
10293    /**
10294     * Gets whether the entry is set to be single line.
10295     *
10296     * @param obj The entry object
10297     * @return single_line If true, the text in the entry is set to display
10298     * on a single line.
10299     *
10300     * @see elm_entry_single_line_set()
10301     */
10302    EAPI Eina_Bool    elm_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10303    /**
10304     * Sets the entry to password mode.
10305     *
10306     * In password mode, entries are implicitly single line and the display of
10307     * any text in them is replaced with asterisks (*).
10308     *
10309     * @param obj The entry object
10310     * @param password If true, password mode is enabled.
10311     */
10312    EAPI void         elm_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
10313    /**
10314     * Gets whether the entry is set to password mode.
10315     *
10316     * @param obj The entry object
10317     * @return If true, the entry is set to display all characters
10318     * as asterisks (*).
10319     *
10320     * @see elm_entry_password_set()
10321     */
10322    EAPI Eina_Bool    elm_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10323    /**
10324     * This sets the text displayed within the entry to @p entry.
10325     *
10326     * @param obj The entry object
10327     * @param entry The text to be displayed
10328     *
10329     * @deprecated Use elm_object_text_set() instead.
10330     */
10331    EAPI void         elm_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
10332    /**
10333     * This returns the text currently shown in object @p entry.
10334     * See also elm_entry_entry_set().
10335     *
10336     * @param obj The entry object
10337     * @return The currently displayed text or NULL on failure
10338     *
10339     * @deprecated Use elm_object_text_get() instead.
10340     */
10341    EAPI const char  *elm_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10342    /**
10343     * Appends @p entry to the text of the entry.
10344     *
10345     * Adds the text in @p entry to the end of any text already present in the
10346     * widget.
10347     *
10348     * The appended text is subject to any filters set for the widget.
10349     *
10350     * @param obj The entry object
10351     * @param entry The text to be displayed
10352     *
10353     * @see elm_entry_text_filter_append()
10354     */
10355    EAPI void         elm_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
10356    /**
10357     * Gets whether the entry is empty.
10358     *
10359     * Empty means no text at all. If there are any markup tags, like an item
10360     * tag for which no provider finds anything, and no text is displayed, this
10361     * function still returns EINA_FALSE.
10362     *
10363     * @param obj The entry object
10364     * @return EINA_TRUE if the entry is empty, EINA_FALSE otherwise.
10365     */
10366    EAPI Eina_Bool    elm_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10367    /**
10368     * Gets any selected text within the entry.
10369     *
10370     * If there's any selected text in the entry, this function returns it as
10371     * a string in markup format. NULL is returned if no selection exists or
10372     * if an error occurred.
10373     *
10374     * The returned value points to an internal string and should not be freed
10375     * or modified in any way. If the @p entry object is deleted or its
10376     * contents are changed, the returned pointer should be considered invalid.
10377     *
10378     * @param obj The entry object
10379     * @return The selected text within the entry or NULL on failure
10380     */
10381    EAPI const char  *elm_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10382    /**
10383     * Inserts the given text into the entry at the current cursor position.
10384     *
10385     * This inserts text at the cursor position as if it was typed
10386     * by the user (note that this also allows markup which a user
10387     * can't just "type" as it would be converted to escaped text, so this
10388     * call can be used to insert things like emoticon items or bold push/pop
10389     * tags, other font and color change tags etc.)
10390     *
10391     * If any selection exists, it will be replaced by the inserted text.
10392     *
10393     * The inserted text is subject to any filters set for the widget.
10394     *
10395     * @param obj The entry object
10396     * @param entry The text to insert
10397     *
10398     * @see elm_entry_text_filter_append()
10399     */
10400    EAPI void         elm_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
10401    /**
10402     * Set the line wrap type to use on multi-line entries.
10403     *
10404     * Sets the wrap type used by the entry to any of the specified in
10405     * #Elm_Wrap_Type. This tells how the text will be implicitly cut into a new
10406     * line (without inserting a line break or paragraph separator) when it
10407     * reaches the far edge of the widget.
10408     *
10409     * Note that this only makes sense for multi-line entries. A widget set
10410     * to be single line will never wrap.
10411     *
10412     * @param obj The entry object
10413     * @param wrap The wrap mode to use. See #Elm_Wrap_Type for details on them
10414     */
10415    EAPI void         elm_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
10416    /**
10417     * Gets the wrap mode the entry was set to use.
10418     *
10419     * @param obj The entry object
10420     * @return Wrap type
10421     *
10422     * @see also elm_entry_line_wrap_set()
10423     */
10424    EAPI Elm_Wrap_Type elm_entry_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10425    /**
10426     * Sets if the entry is to be editable or not.
10427     *
10428     * By default, entries are editable and when focused, any text input by the
10429     * user will be inserted at the current cursor position. But calling this
10430     * function with @p editable as EINA_FALSE will prevent the user from
10431     * inputting text into the entry.
10432     *
10433     * The only way to change the text of a non-editable entry is to use
10434     * elm_object_text_set(), elm_entry_entry_insert() and other related
10435     * functions.
10436     *
10437     * @param obj The entry object
10438     * @param editable If EINA_TRUE, user input will be inserted in the entry,
10439     * if not, the entry is read-only and no user input is allowed.
10440     */
10441    EAPI void         elm_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
10442    /**
10443     * Gets whether the entry is editable or not.
10444     *
10445     * @param obj The entry object
10446     * @return If true, the entry is editable by the user.
10447     * If false, it is not editable by the user
10448     *
10449     * @see elm_entry_editable_set()
10450     */
10451    EAPI Eina_Bool    elm_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10452    /**
10453     * This drops any existing text selection within the entry.
10454     *
10455     * @param obj The entry object
10456     */
10457    EAPI void         elm_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
10458    /**
10459     * This selects all text within the entry.
10460     *
10461     * @param obj The entry object
10462     */
10463    EAPI void         elm_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
10464    /**
10465     * This moves the cursor one place to the right within the entry.
10466     *
10467     * @param obj The entry object
10468     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10469     */
10470    EAPI Eina_Bool    elm_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
10471    /**
10472     * This moves the cursor one place to the left within the entry.
10473     *
10474     * @param obj The entry object
10475     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10476     */
10477    EAPI Eina_Bool    elm_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
10478    /**
10479     * This moves the cursor one line up within the entry.
10480     *
10481     * @param obj The entry object
10482     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10483     */
10484    EAPI Eina_Bool    elm_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
10485    /**
10486     * This moves the cursor one line down within the entry.
10487     *
10488     * @param obj The entry object
10489     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10490     */
10491    EAPI Eina_Bool    elm_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
10492    /**
10493     * This moves the cursor to the beginning of the entry.
10494     *
10495     * @param obj The entry object
10496     */
10497    EAPI void         elm_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10498    /**
10499     * This moves the cursor to the end of the entry.
10500     *
10501     * @param obj The entry object
10502     */
10503    EAPI void         elm_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10504    /**
10505     * This moves the cursor to the beginning of the current line.
10506     *
10507     * @param obj The entry object
10508     */
10509    EAPI void         elm_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10510    /**
10511     * This moves the cursor to the end of the current line.
10512     *
10513     * @param obj The entry object
10514     */
10515    EAPI void         elm_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10516    /**
10517     * This begins a selection within the entry as though
10518     * the user were holding down the mouse button to make a selection.
10519     *
10520     * @param obj The entry object
10521     */
10522    EAPI void         elm_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
10523    /**
10524     * This ends a selection within the entry as though
10525     * the user had just released the mouse button while making a selection.
10526     *
10527     * @param obj The entry object
10528     */
10529    EAPI void         elm_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
10530    /**
10531     * Gets whether a format node exists at the current cursor position.
10532     *
10533     * A format node is anything that defines how the text is rendered. It can
10534     * be a visible format node, such as a line break or a paragraph separator,
10535     * or an invisible one, such as bold begin or end tag.
10536     * This function returns whether any format node exists at the current
10537     * cursor position.
10538     *
10539     * @param obj The entry object
10540     * @return EINA_TRUE if the current cursor position contains a format node,
10541     * EINA_FALSE otherwise.
10542     *
10543     * @see elm_entry_cursor_is_visible_format_get()
10544     */
10545    EAPI Eina_Bool    elm_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10546    /**
10547     * Gets if the current cursor position holds a visible format node.
10548     *
10549     * @param obj The entry object
10550     * @return EINA_TRUE if the current cursor is a visible format, EINA_FALSE
10551     * if it's an invisible one or no format exists.
10552     *
10553     * @see elm_entry_cursor_is_format_get()
10554     */
10555    EAPI Eina_Bool    elm_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10556    /**
10557     * Gets the character pointed by the cursor at its current position.
10558     *
10559     * This function returns a string with the utf8 character stored at the
10560     * current cursor position.
10561     * Only the text is returned, any format that may exist will not be part
10562     * of the return value.
10563     *
10564     * @param obj The entry object
10565     * @return The text pointed by the cursors.
10566     */
10567    EAPI const char  *elm_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10568    /**
10569     * This function returns the geometry of the cursor.
10570     *
10571     * It's useful if you want to draw something on the cursor (or where it is),
10572     * or for example in the case of scrolled entry where you want to show the
10573     * cursor.
10574     *
10575     * @param obj The entry object
10576     * @param x returned geometry
10577     * @param y returned geometry
10578     * @param w returned geometry
10579     * @param h returned geometry
10580     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10581     */
10582    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);
10583    /**
10584     * Sets the cursor position in the entry to the given value
10585     *
10586     * The value in @p pos is the index of the character position within the
10587     * contents of the string as returned by elm_entry_cursor_pos_get().
10588     *
10589     * @param obj The entry object
10590     * @param pos The position of the cursor
10591     */
10592    EAPI void         elm_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
10593    /**
10594     * Retrieves the current position of the cursor in the entry
10595     *
10596     * @param obj The entry object
10597     * @return The cursor position
10598     */
10599    EAPI int          elm_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10600    /**
10601     * This executes a "cut" action on the selected text in the entry.
10602     *
10603     * @param obj The entry object
10604     */
10605    EAPI void         elm_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
10606    /**
10607     * This executes a "copy" action on the selected text in the entry.
10608     *
10609     * @param obj The entry object
10610     */
10611    EAPI void         elm_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
10612    /**
10613     * This executes a "paste" action in the entry.
10614     *
10615     * @param obj The entry object
10616     */
10617    EAPI void         elm_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
10618    /**
10619     * This clears and frees the items in a entry's contextual (longpress)
10620     * menu.
10621     *
10622     * @param obj The entry object
10623     *
10624     * @see elm_entry_context_menu_item_add()
10625     */
10626    EAPI void         elm_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
10627    /**
10628     * This adds an item to the entry's contextual menu.
10629     *
10630     * A longpress on an entry will make the contextual menu show up, if this
10631     * hasn't been disabled with elm_entry_context_menu_disabled_set().
10632     * By default, this menu provides a few options like enabling selection mode,
10633     * which is useful on embedded devices that need to be explicit about it,
10634     * and when a selection exists it also shows the copy and cut actions.
10635     *
10636     * With this function, developers can add other options to this menu to
10637     * perform any action they deem necessary.
10638     *
10639     * @param obj The entry object
10640     * @param label The item's text label
10641     * @param icon_file The item's icon file
10642     * @param icon_type The item's icon type
10643     * @param func The callback to execute when the item is clicked
10644     * @param data The data to associate with the item for related functions
10645     */
10646    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);
10647    /**
10648     * This disables the entry's contextual (longpress) menu.
10649     *
10650     * @param obj The entry object
10651     * @param disabled If true, the menu is disabled
10652     */
10653    EAPI void         elm_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
10654    /**
10655     * This returns whether the entry's contextual (longpress) menu is
10656     * disabled.
10657     *
10658     * @param obj The entry object
10659     * @return If true, the menu is disabled
10660     */
10661    EAPI Eina_Bool    elm_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10662    /**
10663     * This appends a custom item provider to the list for that entry
10664     *
10665     * This appends the given callback. The list is walked from beginning to end
10666     * with each function called given the item href string in the text. If the
10667     * function returns an object handle other than NULL (it should create an
10668     * object to do this), then this object is used to replace that item. If
10669     * not the next provider is called until one provides an item object, or the
10670     * default provider in entry does.
10671     *
10672     * @param obj The entry object
10673     * @param func The function called to provide the item object
10674     * @param data The data passed to @p func
10675     *
10676     * @see @ref entry-items
10677     */
10678    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);
10679    /**
10680     * This prepends a custom item provider to the list for that entry
10681     *
10682     * This prepends the given callback. See elm_entry_item_provider_append() for
10683     * more information
10684     *
10685     * @param obj The entry object
10686     * @param func The function called to provide the item object
10687     * @param data The data passed to @p func
10688     */
10689    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);
10690    /**
10691     * This removes a custom item provider to the list for that entry
10692     *
10693     * This removes the given callback. See elm_entry_item_provider_append() for
10694     * more information
10695     *
10696     * @param obj The entry object
10697     * @param func The function called to provide the item object
10698     * @param data The data passed to @p func
10699     */
10700    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);
10701    /**
10702     * Append a filter function for text inserted in the entry
10703     *
10704     * Append the given callback to the list. This functions will be called
10705     * whenever any text is inserted into the entry, with the text to be inserted
10706     * as a parameter. The callback function is free to alter the text in any way
10707     * it wants, but it must remember to free the given pointer and update it.
10708     * If the new text is to be discarded, the function can free it and set its
10709     * text parameter to NULL. This will also prevent any following filters from
10710     * being called.
10711     *
10712     * @param obj The entry object
10713     * @param func The function to use as text filter
10714     * @param data User data to pass to @p func
10715     */
10716    EAPI void         elm_entry_text_filter_append(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
10717    /**
10718     * Prepend a filter function for text insdrted in the entry
10719     *
10720     * Prepend the given callback to the list. See elm_entry_text_filter_append()
10721     * for more information
10722     *
10723     * @param obj The entry object
10724     * @param func The function to use as text filter
10725     * @param data User data to pass to @p func
10726     */
10727    EAPI void         elm_entry_text_filter_prepend(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
10728    /**
10729     * Remove a filter from the list
10730     *
10731     * Removes the given callback from the filter list. See
10732     * elm_entry_text_filter_append() for more information.
10733     *
10734     * @param obj The entry object
10735     * @param func The filter function to remove
10736     * @param data The user data passed when adding the function
10737     */
10738    EAPI void         elm_entry_text_filter_remove(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
10739    /**
10740     * This converts a markup (HTML-like) string into UTF-8.
10741     *
10742     * The returned string is a malloc'ed buffer and it should be freed when
10743     * not needed anymore.
10744     *
10745     * @param s The string (in markup) to be converted
10746     * @return The converted string (in UTF-8). It should be freed.
10747     */
10748    EAPI char        *elm_entry_markup_to_utf8(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
10749    /**
10750     * This converts a UTF-8 string into markup (HTML-like).
10751     *
10752     * The returned string is a malloc'ed buffer and it should be freed when
10753     * not needed anymore.
10754     *
10755     * @param s The string (in UTF-8) to be converted
10756     * @return The converted string (in markup). It should be freed.
10757     */
10758    EAPI char        *elm_entry_utf8_to_markup(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
10759    /**
10760     * This sets the file (and implicitly loads it) for the text to display and
10761     * then edit. All changes are written back to the file after a short delay if
10762     * the entry object is set to autosave (which is the default).
10763     *
10764     * If the entry had any other file set previously, any changes made to it
10765     * will be saved if the autosave feature is enabled, otherwise, the file
10766     * will be silently discarded and any non-saved changes will be lost.
10767     *
10768     * @param obj The entry object
10769     * @param file The path to the file to load and save
10770     * @param format The file format
10771     */
10772    EAPI void         elm_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
10773    /**
10774     * Gets the file being edited by the entry.
10775     *
10776     * This function can be used to retrieve any file set on the entry for
10777     * edition, along with the format used to load and save it.
10778     *
10779     * @param obj The entry object
10780     * @param file The path to the file to load and save
10781     * @param format The file format
10782     */
10783    EAPI void         elm_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
10784    /**
10785     * This function writes any changes made to the file set with
10786     * elm_entry_file_set()
10787     *
10788     * @param obj The entry object
10789     */
10790    EAPI void         elm_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
10791    /**
10792     * This sets the entry object to 'autosave' the loaded text file or not.
10793     *
10794     * @param obj The entry object
10795     * @param autosave Autosave the loaded file or not
10796     *
10797     * @see elm_entry_file_set()
10798     */
10799    EAPI void         elm_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
10800    /**
10801     * This gets the entry object's 'autosave' status.
10802     *
10803     * @param obj The entry object
10804     * @return Autosave the loaded file or not
10805     *
10806     * @see elm_entry_file_set()
10807     */
10808    EAPI Eina_Bool    elm_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10809    /**
10810     * Control pasting of text and images for the widget.
10811     *
10812     * Normally the entry allows both text and images to be pasted.  By setting
10813     * textonly to be true, this prevents images from being pasted.
10814     *
10815     * Note this only changes the behaviour of text.
10816     *
10817     * @param obj The entry object
10818     * @param textonly paste mode - EINA_TRUE is text only, EINA_FALSE is
10819     * text+image+other.
10820     */
10821    EAPI void         elm_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
10822    /**
10823     * Getting elm_entry text paste/drop mode.
10824     *
10825     * In textonly mode, only text may be pasted or dropped into the widget.
10826     *
10827     * @param obj The entry object
10828     * @return If the widget only accepts text from pastes.
10829     */
10830    EAPI Eina_Bool    elm_entry_cnp_textonly_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10831    /**
10832     * Enable or disable scrolling in entry
10833     *
10834     * Normally the entry is not scrollable unless you enable it with this call.
10835     *
10836     * @param obj The entry object
10837     * @param scroll EINA_TRUE if it is to be scrollable, EINA_FALSE otherwise
10838     */
10839    EAPI void         elm_entry_scrollable_set(Evas_Object *obj, Eina_Bool scroll);
10840    /**
10841     * Get the scrollable state of the entry
10842     *
10843     * Normally the entry is not scrollable. This gets the scrollable state
10844     * of the entry. See elm_entry_scrollable_set() for more information.
10845     *
10846     * @param obj The entry object
10847     * @return The scrollable state
10848     */
10849    EAPI Eina_Bool    elm_entry_scrollable_get(const Evas_Object *obj);
10850    /**
10851     * This sets a widget to be displayed to the left of a scrolled entry.
10852     *
10853     * @param obj The scrolled entry object
10854     * @param icon The widget to display on the left side of the scrolled
10855     * entry.
10856     *
10857     * @note A previously set widget will be destroyed.
10858     * @note If the object being set does not have minimum size hints set,
10859     * it won't get properly displayed.
10860     *
10861     * @see elm_entry_end_set()
10862     */
10863    EAPI void         elm_entry_icon_set(Evas_Object *obj, Evas_Object *icon);
10864    /**
10865     * Gets the leftmost widget of the scrolled entry. This object is
10866     * owned by the scrolled entry and should not be modified.
10867     *
10868     * @param obj The scrolled entry object
10869     * @return the left widget inside the scroller
10870     */
10871    EAPI Evas_Object *elm_entry_icon_get(const Evas_Object *obj);
10872    /**
10873     * Unset the leftmost widget of the scrolled entry, unparenting and
10874     * returning it.
10875     *
10876     * @param obj The scrolled entry object
10877     * @return the previously set icon sub-object of this entry, on
10878     * success.
10879     *
10880     * @see elm_entry_icon_set()
10881     */
10882    EAPI Evas_Object *elm_entry_icon_unset(Evas_Object *obj);
10883    /**
10884     * Sets the visibility of the left-side widget of the scrolled entry,
10885     * set by elm_entry_icon_set().
10886     *
10887     * @param obj The scrolled entry object
10888     * @param setting EINA_TRUE if the object should be displayed,
10889     * EINA_FALSE if not.
10890     */
10891    EAPI void         elm_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting);
10892    /**
10893     * This sets a widget to be displayed to the end of a scrolled entry.
10894     *
10895     * @param obj The scrolled entry object
10896     * @param end The widget to display on the right side of the scrolled
10897     * entry.
10898     *
10899     * @note A previously set widget will be destroyed.
10900     * @note If the object being set does not have minimum size hints set,
10901     * it won't get properly displayed.
10902     *
10903     * @see elm_entry_icon_set
10904     */
10905    EAPI void         elm_entry_end_set(Evas_Object *obj, Evas_Object *end);
10906    /**
10907     * Gets the endmost widget of the scrolled entry. This object is owned
10908     * by the scrolled entry and should not be modified.
10909     *
10910     * @param obj The scrolled entry object
10911     * @return the right widget inside the scroller
10912     */
10913    EAPI Evas_Object *elm_entry_end_get(const Evas_Object *obj);
10914    /**
10915     * Unset the endmost widget of the scrolled entry, unparenting and
10916     * returning it.
10917     *
10918     * @param obj The scrolled entry object
10919     * @return the previously set icon sub-object of this entry, on
10920     * success.
10921     *
10922     * @see elm_entry_icon_set()
10923     */
10924    EAPI Evas_Object *elm_entry_end_unset(Evas_Object *obj);
10925    /**
10926     * Sets the visibility of the end widget of the scrolled entry, set by
10927     * elm_entry_end_set().
10928     *
10929     * @param obj The scrolled entry object
10930     * @param setting EINA_TRUE if the object should be displayed,
10931     * EINA_FALSE if not.
10932     */
10933    EAPI void         elm_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting);
10934    /**
10935     * This sets the scrolled entry's scrollbar policy (ie. enabling/disabling
10936     * them).
10937     *
10938     * Setting an entry to single-line mode with elm_entry_single_line_set()
10939     * will automatically disable the display of scrollbars when the entry
10940     * moves inside its scroller.
10941     *
10942     * @param obj The scrolled entry object
10943     * @param h The horizontal scrollbar policy to apply
10944     * @param v The vertical scrollbar policy to apply
10945     */
10946    EAPI void         elm_entry_scrollbar_policy_set(Evas_Object *obj, Elm_Scroller_Policy h, Elm_Scroller_Policy v);
10947    /**
10948     * This enables/disables bouncing within the entry.
10949     *
10950     * This function sets whether the entry will bounce when scrolling reaches
10951     * the end of the contained entry.
10952     *
10953     * @param obj The scrolled entry object
10954     * @param h The horizontal bounce state
10955     * @param v The vertical bounce state
10956     */
10957    EAPI void         elm_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
10958    /**
10959     * Get the bounce mode
10960     *
10961     * @param obj The Entry object
10962     * @param h_bounce Allow bounce horizontally
10963     * @param v_bounce Allow bounce vertically
10964     */
10965    EAPI void         elm_entry_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
10966
10967    /* pre-made filters for entries */
10968    /**
10969     * @typedef Elm_Entry_Filter_Limit_Size
10970     *
10971     * Data for the elm_entry_filter_limit_size() entry filter.
10972     */
10973    typedef struct _Elm_Entry_Filter_Limit_Size Elm_Entry_Filter_Limit_Size;
10974    /**
10975     * @struct _Elm_Entry_Filter_Limit_Size
10976     *
10977     * Data for the elm_entry_filter_limit_size() entry filter.
10978     */
10979    struct _Elm_Entry_Filter_Limit_Size
10980      {
10981         int max_char_count; /**< The maximum number of characters allowed. */
10982         int max_byte_count; /**< The maximum number of bytes allowed*/
10983      };
10984    /**
10985     * Filter inserted text based on user defined character and byte limits
10986     *
10987     * Add this filter to an entry to limit the characters that it will accept
10988     * based the the contents of the provided #Elm_Entry_Filter_Limit_Size.
10989     * The funtion works on the UTF-8 representation of the string, converting
10990     * it from the set markup, thus not accounting for any format in it.
10991     *
10992     * The user must create an #Elm_Entry_Filter_Limit_Size structure and pass
10993     * it as data when setting the filter. In it, it's possible to set limits
10994     * by character count or bytes (any of them is disabled if 0), and both can
10995     * be set at the same time. In that case, it first checks for characters,
10996     * then bytes.
10997     *
10998     * The function will cut the inserted text in order to allow only the first
10999     * number of characters that are still allowed. The cut is made in
11000     * characters, even when limiting by bytes, in order to always contain
11001     * valid ones and avoid half unicode characters making it in.
11002     *
11003     * This filter, like any others, does not apply when setting the entry text
11004     * directly with elm_object_text_set() (or the deprecated
11005     * elm_entry_entry_set()).
11006     */
11007    EAPI void         elm_entry_filter_limit_size(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 2, 3);
11008    /**
11009     * @typedef Elm_Entry_Filter_Accept_Set
11010     *
11011     * Data for the elm_entry_filter_accept_set() entry filter.
11012     */
11013    typedef struct _Elm_Entry_Filter_Accept_Set Elm_Entry_Filter_Accept_Set;
11014    /**
11015     * @struct _Elm_Entry_Filter_Accept_Set
11016     *
11017     * Data for the elm_entry_filter_accept_set() entry filter.
11018     */
11019    struct _Elm_Entry_Filter_Accept_Set
11020      {
11021         const char *accepted; /**< Set of characters accepted in the entry. */
11022         const char *rejected; /**< Set of characters rejected from the entry. */
11023      };
11024    /**
11025     * Filter inserted text based on accepted or rejected sets of characters
11026     *
11027     * Add this filter to an entry to restrict the set of accepted characters
11028     * based on the sets in the provided #Elm_Entry_Filter_Accept_Set.
11029     * This structure contains both accepted and rejected sets, but they are
11030     * mutually exclusive.
11031     *
11032     * The @c accepted set takes preference, so if it is set, the filter will
11033     * only work based on the accepted characters, ignoring anything in the
11034     * @c rejected value. If @c accepted is @c NULL, then @c rejected is used.
11035     *
11036     * In both cases, the function filters by matching utf8 characters to the
11037     * raw markup text, so it can be used to remove formatting tags.
11038     *
11039     * This filter, like any others, does not apply when setting the entry text
11040     * directly with elm_object_text_set() (or the deprecated
11041     * elm_entry_entry_set()).
11042     */
11043    EAPI void         elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 3);
11044    /**
11045     * @}
11046     */
11047
11048    /* composite widgets - these basically put together basic widgets above
11049     * in convenient packages that do more than basic stuff */
11050
11051    /* anchorview */
11052    /**
11053     * @defgroup Anchorview Anchorview
11054     *
11055     * @image html img/widget/anchorview/preview-00.png
11056     * @image latex img/widget/anchorview/preview-00.eps
11057     *
11058     * Anchorview is for displaying text that contains markup with anchors
11059     * like <c>\<a href=1234\>something\</\></c> in it.
11060     *
11061     * Besides being styled differently, the anchorview widget provides the
11062     * necessary functionality so that clicking on these anchors brings up a
11063     * popup with user defined content such as "call", "add to contacts" or
11064     * "open web page". This popup is provided using the @ref Hover widget.
11065     *
11066     * This widget is very similar to @ref Anchorblock, so refer to that
11067     * widget for an example. The only difference Anchorview has is that the
11068     * widget is already provided with scrolling functionality, so if the
11069     * text set to it is too large to fit in the given space, it will scroll,
11070     * whereas the @ref Anchorblock widget will keep growing to ensure all the
11071     * text can be displayed.
11072     *
11073     * This widget emits the following signals:
11074     * @li "anchor,clicked": will be called when an anchor is clicked. The
11075     * @p event_info parameter on the callback will be a pointer of type
11076     * ::Elm_Entry_Anchorview_Info.
11077     *
11078     * See @ref Anchorblock for an example on how to use both of them.
11079     *
11080     * @see Anchorblock
11081     * @see Entry
11082     * @see Hover
11083     *
11084     * @{
11085     */
11086    /**
11087     * @typedef Elm_Entry_Anchorview_Info
11088     *
11089     * The info sent in the callback for "anchor,clicked" signals emitted by
11090     * the Anchorview widget.
11091     */
11092    typedef struct _Elm_Entry_Anchorview_Info Elm_Entry_Anchorview_Info;
11093    /**
11094     * @struct _Elm_Entry_Anchorview_Info
11095     *
11096     * The info sent in the callback for "anchor,clicked" signals emitted by
11097     * the Anchorview widget.
11098     */
11099    struct _Elm_Entry_Anchorview_Info
11100      {
11101         const char     *name; /**< Name of the anchor, as indicated in its href
11102                                    attribute */
11103         int             button; /**< The mouse button used to click on it */
11104         Evas_Object    *hover; /**< The hover object to use for the popup */
11105         struct {
11106              Evas_Coord    x, y, w, h;
11107         } anchor, /**< Geometry selection of text used as anchor */
11108           hover_parent; /**< Geometry of the object used as parent by the
11109                              hover */
11110         Eina_Bool       hover_left : 1; /**< Hint indicating if there's space
11111                                              for content on the left side of
11112                                              the hover. Before calling the
11113                                              callback, the widget will make the
11114                                              necessary calculations to check
11115                                              which sides are fit to be set with
11116                                              content, based on the position the
11117                                              hover is activated and its distance
11118                                              to the edges of its parent object
11119                                              */
11120         Eina_Bool       hover_right : 1; /**< Hint indicating content fits on
11121                                               the right side of the hover.
11122                                               See @ref hover_left */
11123         Eina_Bool       hover_top : 1; /**< Hint indicating content fits on top
11124                                             of the hover. See @ref hover_left */
11125         Eina_Bool       hover_bottom : 1; /**< Hint indicating content fits
11126                                                below the hover. See @ref
11127                                                hover_left */
11128      };
11129    /**
11130     * Add a new Anchorview object
11131     *
11132     * @param parent The parent object
11133     * @return The new object or NULL if it cannot be created
11134     */
11135    EAPI Evas_Object *elm_anchorview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11136    /**
11137     * Set the text to show in the anchorview
11138     *
11139     * Sets the text of the anchorview to @p text. This text can include markup
11140     * format tags, including <c>\<a href=anchorname\></c> to begin a segment of
11141     * text that will be specially styled and react to click events, ended with
11142     * either of \</a\> or \</\>. When clicked, the anchor will emit an
11143     * "anchor,clicked" signal that you can attach a callback to with
11144     * evas_object_smart_callback_add(). The name of the anchor given in the
11145     * event info struct will be the one set in the href attribute, in this
11146     * case, anchorname.
11147     *
11148     * Other markup can be used to style the text in different ways, but it's
11149     * up to the style defined in the theme which tags do what.
11150     * @deprecated use elm_object_text_set() instead.
11151     */
11152    EINA_DEPRECATED EAPI void         elm_anchorview_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
11153    /**
11154     * Get the markup text set for the anchorview
11155     *
11156     * Retrieves the text set on the anchorview, with markup tags included.
11157     *
11158     * @param obj The anchorview object
11159     * @return The markup text set or @c NULL if nothing was set or an error
11160     * occurred
11161     * @deprecated use elm_object_text_set() instead.
11162     */
11163    EINA_DEPRECATED EAPI const char  *elm_anchorview_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11164    /**
11165     * Set the parent of the hover popup
11166     *
11167     * Sets the parent object to use by the hover created by the anchorview
11168     * when an anchor is clicked. See @ref Hover for more details on this.
11169     * If no parent is set, the same anchorview object will be used.
11170     *
11171     * @param obj The anchorview object
11172     * @param parent The object to use as parent for the hover
11173     */
11174    EAPI void         elm_anchorview_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
11175    /**
11176     * Get the parent of the hover popup
11177     *
11178     * Get the object used as parent for the hover created by the anchorview
11179     * widget. See @ref Hover for more details on this.
11180     *
11181     * @param obj The anchorview object
11182     * @return The object used as parent for the hover, NULL if none is set.
11183     */
11184    EAPI Evas_Object *elm_anchorview_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11185    /**
11186     * Set the style that the hover should use
11187     *
11188     * When creating the popup hover, anchorview will request that it's
11189     * themed according to @p style.
11190     *
11191     * @param obj The anchorview object
11192     * @param style The style to use for the underlying hover
11193     *
11194     * @see elm_object_style_set()
11195     */
11196    EAPI void         elm_anchorview_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
11197    /**
11198     * Get the style that the hover should use
11199     *
11200     * Get the style the hover created by anchorview will use.
11201     *
11202     * @param obj The anchorview object
11203     * @return The style to use by the hover. NULL means the default is used.
11204     *
11205     * @see elm_object_style_set()
11206     */
11207    EAPI const char  *elm_anchorview_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11208    /**
11209     * Ends the hover popup in the anchorview
11210     *
11211     * When an anchor is clicked, the anchorview widget will create a hover
11212     * object to use as a popup with user provided content. This function
11213     * terminates this popup, returning the anchorview to its normal state.
11214     *
11215     * @param obj The anchorview object
11216     */
11217    EAPI void         elm_anchorview_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
11218    /**
11219     * Set bouncing behaviour when the scrolled content reaches an edge
11220     *
11221     * Tell the internal scroller object whether it should bounce or not
11222     * when it reaches the respective edges for each axis.
11223     *
11224     * @param obj The anchorview object
11225     * @param h_bounce Whether to bounce or not in the horizontal axis
11226     * @param v_bounce Whether to bounce or not in the vertical axis
11227     *
11228     * @see elm_scroller_bounce_set()
11229     */
11230    EAPI void         elm_anchorview_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
11231    /**
11232     * Get the set bouncing behaviour of the internal scroller
11233     *
11234     * Get whether the internal scroller should bounce when the edge of each
11235     * axis is reached scrolling.
11236     *
11237     * @param obj The anchorview object
11238     * @param h_bounce Pointer where to store the bounce state of the horizontal
11239     *                 axis
11240     * @param v_bounce Pointer where to store the bounce state of the vertical
11241     *                 axis
11242     *
11243     * @see elm_scroller_bounce_get()
11244     */
11245    EAPI void         elm_anchorview_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
11246    /**
11247     * Appends a custom item provider to the given anchorview
11248     *
11249     * Appends the given function to the list of items providers. This list is
11250     * called, one function at a time, with the given @p data pointer, the
11251     * anchorview object and, in the @p item parameter, the item name as
11252     * referenced in its href string. Following functions in the list will be
11253     * called in order until one of them returns something different to NULL,
11254     * which should be an Evas_Object which will be used in place of the item
11255     * element.
11256     *
11257     * Items in the markup text take the form \<item relsize=16x16 vsize=full
11258     * href=item/name\>\</item\>
11259     *
11260     * @param obj The anchorview object
11261     * @param func The function to add to the list of providers
11262     * @param data User data that will be passed to the callback function
11263     *
11264     * @see elm_entry_item_provider_append()
11265     */
11266    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);
11267    /**
11268     * Prepend a custom item provider to the given anchorview
11269     *
11270     * Like elm_anchorview_item_provider_append(), but it adds the function
11271     * @p func to the beginning of the list, instead of the end.
11272     *
11273     * @param obj The anchorview object
11274     * @param func The function to add to the list of providers
11275     * @param data User data that will be passed to the callback function
11276     */
11277    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);
11278    /**
11279     * Remove a custom item provider from the list of the given anchorview
11280     *
11281     * Removes the function and data pairing that matches @p func and @p data.
11282     * That is, unless the same function and same user data are given, the
11283     * function will not be removed from the list. This allows us to add the
11284     * same callback several times, with different @p data pointers and be
11285     * able to remove them later without conflicts.
11286     *
11287     * @param obj The anchorview object
11288     * @param func The function to remove from the list
11289     * @param data The data matching the function to remove from the list
11290     */
11291    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);
11292    /**
11293     * @}
11294     */
11295
11296    /* anchorblock */
11297    /**
11298     * @defgroup Anchorblock Anchorblock
11299     *
11300     * @image html img/widget/anchorblock/preview-00.png
11301     * @image latex img/widget/anchorblock/preview-00.eps
11302     *
11303     * Anchorblock is for displaying text that contains markup with anchors
11304     * like <c>\<a href=1234\>something\</\></c> in it.
11305     *
11306     * Besides being styled differently, the anchorblock widget provides the
11307     * necessary functionality so that clicking on these anchors brings up a
11308     * popup with user defined content such as "call", "add to contacts" or
11309     * "open web page". This popup is provided using the @ref Hover widget.
11310     *
11311     * This widget emits the following signals:
11312     * @li "anchor,clicked": will be called when an anchor is clicked. The
11313     * @p event_info parameter on the callback will be a pointer of type
11314     * ::Elm_Entry_Anchorblock_Info.
11315     *
11316     * @see Anchorview
11317     * @see Entry
11318     * @see Hover
11319     *
11320     * Since examples are usually better than plain words, we might as well
11321     * try @ref tutorial_anchorblock_example "one".
11322     */
11323    /**
11324     * @addtogroup Anchorblock
11325     * @{
11326     */
11327    /**
11328     * @typedef Elm_Entry_Anchorblock_Info
11329     *
11330     * The info sent in the callback for "anchor,clicked" signals emitted by
11331     * the Anchorblock widget.
11332     */
11333    typedef struct _Elm_Entry_Anchorblock_Info Elm_Entry_Anchorblock_Info;
11334    /**
11335     * @struct _Elm_Entry_Anchorblock_Info
11336     *
11337     * The info sent in the callback for "anchor,clicked" signals emitted by
11338     * the Anchorblock widget.
11339     */
11340    struct _Elm_Entry_Anchorblock_Info
11341      {
11342         const char     *name; /**< Name of the anchor, as indicated in its href
11343                                    attribute */
11344         int             button; /**< The mouse button used to click on it */
11345         Evas_Object    *hover; /**< The hover object to use for the popup */
11346         struct {
11347              Evas_Coord    x, y, w, h;
11348         } anchor, /**< Geometry selection of text used as anchor */
11349           hover_parent; /**< Geometry of the object used as parent by the
11350                              hover */
11351         Eina_Bool       hover_left : 1; /**< Hint indicating if there's space
11352                                              for content on the left side of
11353                                              the hover. Before calling the
11354                                              callback, the widget will make the
11355                                              necessary calculations to check
11356                                              which sides are fit to be set with
11357                                              content, based on the position the
11358                                              hover is activated and its distance
11359                                              to the edges of its parent object
11360                                              */
11361         Eina_Bool       hover_right : 1; /**< Hint indicating content fits on
11362                                               the right side of the hover.
11363                                               See @ref hover_left */
11364         Eina_Bool       hover_top : 1; /**< Hint indicating content fits on top
11365                                             of the hover. See @ref hover_left */
11366         Eina_Bool       hover_bottom : 1; /**< Hint indicating content fits
11367                                                below the hover. See @ref
11368                                                hover_left */
11369      };
11370    /**
11371     * Add a new Anchorblock object
11372     *
11373     * @param parent The parent object
11374     * @return The new object or NULL if it cannot be created
11375     */
11376    EAPI Evas_Object *elm_anchorblock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11377    /**
11378     * Set the text to show in the anchorblock
11379     *
11380     * Sets the text of the anchorblock to @p text. This text can include markup
11381     * format tags, including <c>\<a href=anchorname\></a></c> to begin a segment
11382     * of text that will be specially styled and react to click events, ended
11383     * with either of \</a\> or \</\>. When clicked, the anchor will emit an
11384     * "anchor,clicked" signal that you can attach a callback to with
11385     * evas_object_smart_callback_add(). The name of the anchor given in the
11386     * event info struct will be the one set in the href attribute, in this
11387     * case, anchorname.
11388     *
11389     * Other markup can be used to style the text in different ways, but it's
11390     * up to the style defined in the theme which tags do what.
11391     * @deprecated use elm_object_text_set() instead.
11392     */
11393    EINA_DEPRECATED EAPI void         elm_anchorblock_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
11394    /**
11395     * Get the markup text set for the anchorblock
11396     *
11397     * Retrieves the text set on the anchorblock, with markup tags included.
11398     *
11399     * @param obj The anchorblock object
11400     * @return The markup text set or @c NULL if nothing was set or an error
11401     * occurred
11402     * @deprecated use elm_object_text_set() instead.
11403     */
11404    EINA_DEPRECATED EAPI const char  *elm_anchorblock_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11405    /**
11406     * Set the parent of the hover popup
11407     *
11408     * Sets the parent object to use by the hover created by the anchorblock
11409     * when an anchor is clicked. See @ref Hover for more details on this.
11410     *
11411     * @param obj The anchorblock object
11412     * @param parent The object to use as parent for the hover
11413     */
11414    EAPI void         elm_anchorblock_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
11415    /**
11416     * Get the parent of the hover popup
11417     *
11418     * Get the object used as parent for the hover created by the anchorblock
11419     * widget. See @ref Hover for more details on this.
11420     * If no parent is set, the same anchorblock object will be used.
11421     *
11422     * @param obj The anchorblock object
11423     * @return The object used as parent for the hover, NULL if none is set.
11424     */
11425    EAPI Evas_Object *elm_anchorblock_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11426    /**
11427     * Set the style that the hover should use
11428     *
11429     * When creating the popup hover, anchorblock will request that it's
11430     * themed according to @p style.
11431     *
11432     * @param obj The anchorblock object
11433     * @param style The style to use for the underlying hover
11434     *
11435     * @see elm_object_style_set()
11436     */
11437    EAPI void         elm_anchorblock_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
11438    /**
11439     * Get the style that the hover should use
11440     *
11441     * Get the style the hover created by anchorblock will use.
11442     *
11443     * @param obj The anchorblock object
11444     * @return The style to use by the hover. NULL means the default is used.
11445     *
11446     * @see elm_object_style_set()
11447     */
11448    EAPI const char  *elm_anchorblock_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11449    /**
11450     * Ends the hover popup in the anchorblock
11451     *
11452     * When an anchor is clicked, the anchorblock widget will create a hover
11453     * object to use as a popup with user provided content. This function
11454     * terminates this popup, returning the anchorblock to its normal state.
11455     *
11456     * @param obj The anchorblock object
11457     */
11458    EAPI void         elm_anchorblock_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
11459    /**
11460     * Appends a custom item provider to the given anchorblock
11461     *
11462     * Appends the given function to the list of items providers. This list is
11463     * called, one function at a time, with the given @p data pointer, the
11464     * anchorblock object and, in the @p item parameter, the item name as
11465     * referenced in its href string. Following functions in the list will be
11466     * called in order until one of them returns something different to NULL,
11467     * which should be an Evas_Object which will be used in place of the item
11468     * element.
11469     *
11470     * Items in the markup text take the form \<item relsize=16x16 vsize=full
11471     * href=item/name\>\</item\>
11472     *
11473     * @param obj The anchorblock object
11474     * @param func The function to add to the list of providers
11475     * @param data User data that will be passed to the callback function
11476     *
11477     * @see elm_entry_item_provider_append()
11478     */
11479    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);
11480    /**
11481     * Prepend a custom item provider to the given anchorblock
11482     *
11483     * Like elm_anchorblock_item_provider_append(), but it adds the function
11484     * @p func to the beginning of the list, instead of the end.
11485     *
11486     * @param obj The anchorblock object
11487     * @param func The function to add to the list of providers
11488     * @param data User data that will be passed to the callback function
11489     */
11490    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);
11491    /**
11492     * Remove a custom item provider from the list of the given anchorblock
11493     *
11494     * Removes the function and data pairing that matches @p func and @p data.
11495     * That is, unless the same function and same user data are given, the
11496     * function will not be removed from the list. This allows us to add the
11497     * same callback several times, with different @p data pointers and be
11498     * able to remove them later without conflicts.
11499     *
11500     * @param obj The anchorblock object
11501     * @param func The function to remove from the list
11502     * @param data The data matching the function to remove from the list
11503     */
11504    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);
11505    /**
11506     * @}
11507     */
11508
11509    /**
11510     * @defgroup Bubble Bubble
11511     *
11512     * @image html img/widget/bubble/preview-00.png
11513     * @image latex img/widget/bubble/preview-00.eps
11514     * @image html img/widget/bubble/preview-01.png
11515     * @image latex img/widget/bubble/preview-01.eps
11516     * @image html img/widget/bubble/preview-02.png
11517     * @image latex img/widget/bubble/preview-02.eps
11518     *
11519     * @brief The Bubble is a widget to show text similarly to how speech is
11520     * represented in comics.
11521     *
11522     * The bubble widget contains 5 important visual elements:
11523     * @li The frame is a rectangle with rounded rectangles and an "arrow".
11524     * @li The @p icon is an image to which the frame's arrow points to.
11525     * @li The @p label is a text which appears to the right of the icon if the
11526     * corner is "top_left" or "bottom_left" and is right aligned to the frame
11527     * otherwise.
11528     * @li The @p info is a text which appears to the right of the label. Info's
11529     * font is of a ligther color than label.
11530     * @li The @p content is an evas object that is shown inside the frame.
11531     *
11532     * The position of the arrow, icon, label and info depends on which corner is
11533     * selected. The four available corners are:
11534     * @li "top_left" - Default
11535     * @li "top_right"
11536     * @li "bottom_left"
11537     * @li "bottom_right"
11538     *
11539     * Signals that you can add callbacks for are:
11540     * @li "clicked" - This is called when a user has clicked the bubble.
11541     *
11542     * For an example of using a buble see @ref bubble_01_example_page "this".
11543     *
11544     * @{
11545     */
11546    /**
11547     * Add a new bubble to the parent
11548     *
11549     * @param parent The parent object
11550     * @return The new object or NULL if it cannot be created
11551     *
11552     * This function adds a text bubble to the given parent evas object.
11553     */
11554    EAPI Evas_Object *elm_bubble_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11555    /**
11556     * Set the label of the bubble
11557     *
11558     * @param obj The bubble object
11559     * @param label The string to set in the label
11560     *
11561     * This function sets the title of the bubble. Where this appears depends on
11562     * the selected corner.
11563     * @deprecated use elm_object_text_set() instead.
11564     */
11565    EINA_DEPRECATED EAPI void         elm_bubble_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
11566    /**
11567     * Get the label of the bubble
11568     *
11569     * @param obj The bubble object
11570     * @return The string of set in the label
11571     *
11572     * This function gets the title of the bubble.
11573     * @deprecated use elm_object_text_get() instead.
11574     */
11575    EINA_DEPRECATED EAPI const char  *elm_bubble_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11576    /**
11577     * Set the info of the bubble
11578     *
11579     * @param obj The bubble object
11580     * @param info The given info about the bubble
11581     *
11582     * This function sets the info of the bubble. Where this appears depends on
11583     * the selected corner.
11584     * @deprecated use elm_object_text_part_set() instead. (with "info" as the parameter).
11585     */
11586    EINA_DEPRECATED EAPI void         elm_bubble_info_set(Evas_Object *obj, const char *info) EINA_ARG_NONNULL(1);
11587    /**
11588     * Get the info of the bubble
11589     *
11590     * @param obj The bubble object
11591     *
11592     * @return The "info" string of the bubble
11593     *
11594     * This function gets the info text.
11595     * @deprecated use elm_object_text_part_get() instead. (with "info" as the parameter).
11596     */
11597    EINA_DEPRECATED EAPI const char  *elm_bubble_info_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11598    /**
11599     * Set the content to be shown in the bubble
11600     *
11601     * Once the content object is set, a previously set one will be deleted.
11602     * If you want to keep the old content object, use the
11603     * elm_bubble_content_unset() function.
11604     *
11605     * @param obj The bubble object
11606     * @param content The given content of the bubble
11607     *
11608     * This function sets the content shown on the middle of the bubble.
11609     */
11610    EAPI void         elm_bubble_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
11611    /**
11612     * Get the content shown in the bubble
11613     *
11614     * Return the content object which is set for this widget.
11615     *
11616     * @param obj The bubble object
11617     * @return The content that is being used
11618     */
11619    EAPI Evas_Object *elm_bubble_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11620    /**
11621     * Unset the content shown in the bubble
11622     *
11623     * Unparent and return the content object which was set for this widget.
11624     *
11625     * @param obj The bubble object
11626     * @return The content that was being used
11627     */
11628    EAPI Evas_Object *elm_bubble_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
11629    /**
11630     * Set the icon of the bubble
11631     *
11632     * Once the icon object is set, a previously set one will be deleted.
11633     * If you want to keep the old content object, use the
11634     * elm_icon_content_unset() function.
11635     *
11636     * @param obj The bubble object
11637     * @param icon The given icon for the bubble
11638     */
11639    EAPI void         elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
11640    /**
11641     * Get the icon of the bubble
11642     *
11643     * @param obj The bubble object
11644     * @return The icon for the bubble
11645     *
11646     * This function gets the icon shown on the top left of bubble.
11647     */
11648    EAPI Evas_Object *elm_bubble_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11649    /**
11650     * Unset the icon of the bubble
11651     *
11652     * Unparent and return the icon object which was set for this widget.
11653     *
11654     * @param obj The bubble object
11655     * @return The icon that was being used
11656     */
11657    EAPI Evas_Object *elm_bubble_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
11658    /**
11659     * Set the corner of the bubble
11660     *
11661     * @param obj The bubble object.
11662     * @param corner The given corner for the bubble.
11663     *
11664     * This function sets the corner of the bubble. The corner will be used to
11665     * determine where the arrow in the frame points to and where label, icon and
11666     * info arre shown.
11667     *
11668     * Possible values for corner are:
11669     * @li "top_left" - Default
11670     * @li "top_right"
11671     * @li "bottom_left"
11672     * @li "bottom_right"
11673     */
11674    EAPI void         elm_bubble_corner_set(Evas_Object *obj, const char *corner) EINA_ARG_NONNULL(1, 2);
11675    /**
11676     * Get the corner of the bubble
11677     *
11678     * @param obj The bubble object.
11679     * @return The given corner for the bubble.
11680     *
11681     * This function gets the selected corner of the bubble.
11682     */
11683    EAPI const char  *elm_bubble_corner_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11684    /**
11685     * @}
11686     */
11687
11688    /**
11689     * @defgroup Photo Photo
11690     *
11691     * For displaying the photo of a person (contact). Simple yet
11692     * with a very specific purpose.
11693     *
11694     * Signals that you can add callbacks for are:
11695     *
11696     * "clicked" - This is called when a user has clicked the photo
11697     * "drag,start" - Someone started dragging the image out of the object
11698     * "drag,end" - Dragged item was dropped (somewhere)
11699     *
11700     * @{
11701     */
11702
11703    /**
11704     * Add a new photo to the parent
11705     *
11706     * @param parent The parent object
11707     * @return The new object or NULL if it cannot be created
11708     *
11709     * @ingroup Photo
11710     */
11711    EAPI Evas_Object *elm_photo_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11712
11713    /**
11714     * Set the file that will be used as photo
11715     *
11716     * @param obj The photo object
11717     * @param file The path to file that will be used as photo
11718     *
11719     * @return (1 = success, 0 = error)
11720     *
11721     * @ingroup Photo
11722     */
11723    EAPI Eina_Bool    elm_photo_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
11724
11725    /**
11726     * Set the size that will be used on the photo
11727     *
11728     * @param obj The photo object
11729     * @param size The size that the photo will be
11730     *
11731     * @ingroup Photo
11732     */
11733    EAPI void         elm_photo_size_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
11734
11735    /**
11736     * Set if the photo should be completely visible or not.
11737     *
11738     * @param obj The photo object
11739     * @param fill if true the photo will be completely visible
11740     *
11741     * @ingroup Photo
11742     */
11743    EAPI void         elm_photo_fill_inside_set(Evas_Object *obj, Eina_Bool fill) EINA_ARG_NONNULL(1);
11744
11745    /**
11746     * Set editability of the photo.
11747     *
11748     * An editable photo can be dragged to or from, and can be cut or
11749     * pasted too.  Note that pasting an image or dropping an item on
11750     * the image will delete the existing content.
11751     *
11752     * @param obj The photo object.
11753     * @param set To set of clear editablity.
11754     */
11755    EAPI void         elm_photo_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
11756
11757    /**
11758     * @}
11759     */
11760
11761    /* gesture layer */
11762    /**
11763     * @defgroup Elm_Gesture_Layer Gesture Layer
11764     * Gesture Layer Usage:
11765     *
11766     * Use Gesture Layer to detect gestures.
11767     * The advantage is that you don't have to implement
11768     * gesture detection, just set callbacks of gesture state.
11769     * By using gesture layer we make standard interface.
11770     *
11771     * In order to use Gesture Layer you start with @ref elm_gesture_layer_add
11772     * with a parent object parameter.
11773     * Next 'activate' gesture layer with a @ref elm_gesture_layer_attach
11774     * call. Usually with same object as target (2nd parameter).
11775     *
11776     * Now you need to tell gesture layer what gestures you follow.
11777     * This is done with @ref elm_gesture_layer_cb_set call.
11778     * By setting the callback you actually saying to gesture layer:
11779     * I would like to know when the gesture @ref Elm_Gesture_Types
11780     * switches to state @ref Elm_Gesture_State.
11781     *
11782     * Next, you need to implement the actual action that follows the input
11783     * in your callback.
11784     *
11785     * Note that if you like to stop being reported about a gesture, just set
11786     * all callbacks referring this gesture to NULL.
11787     * (again with @ref elm_gesture_layer_cb_set)
11788     *
11789     * The information reported by gesture layer to your callback is depending
11790     * on @ref Elm_Gesture_Types:
11791     * @ref Elm_Gesture_Taps_Info is the info reported for tap gestures:
11792     * @ref ELM_GESTURE_N_TAPS, @ref ELM_GESTURE_N_LONG_TAPS,
11793     * @ref ELM_GESTURE_N_DOUBLE_TAPS, @ref ELM_GESTURE_N_TRIPLE_TAPS.
11794     *
11795     * @ref Elm_Gesture_Momentum_Info is info reported for momentum gestures:
11796     * @ref ELM_GESTURE_MOMENTUM.
11797     *
11798     * @ref Elm_Gesture_Line_Info is the info reported for line gestures:
11799     * (this also contains @ref Elm_Gesture_Momentum_Info internal structure)
11800     * @ref ELM_GESTURE_N_LINES, @ref ELM_GESTURE_N_FLICKS.
11801     * Note that we consider a flick as a line-gesture that should be completed
11802     * in flick-time-limit as defined in @ref Config.
11803     *
11804     * @ref Elm_Gesture_Zoom_Info is the info reported for @ref ELM_GESTURE_ZOOM gesture.
11805     *
11806     * @ref Elm_Gesture_Rotate_Info is the info reported for @ref ELM_GESTURE_ROTATE gesture.
11807     * */
11808
11809    /**
11810     * @enum _Elm_Gesture_Types
11811     * Enum of supported gesture types.
11812     * @ingroup Elm_Gesture_Layer
11813     */
11814    enum _Elm_Gesture_Types
11815      {
11816         ELM_GESTURE_FIRST = 0,
11817
11818         ELM_GESTURE_N_TAPS, /**< N fingers single taps */
11819         ELM_GESTURE_N_LONG_TAPS, /**< N fingers single long-taps */
11820         ELM_GESTURE_N_DOUBLE_TAPS, /**< N fingers double-single taps */
11821         ELM_GESTURE_N_TRIPLE_TAPS, /**< N fingers triple-single taps */
11822
11823         ELM_GESTURE_MOMENTUM, /**< Reports momentum in the dircetion of move */
11824
11825         ELM_GESTURE_N_LINES, /**< N fingers line gesture */
11826         ELM_GESTURE_N_FLICKS, /**< N fingers flick gesture */
11827
11828         ELM_GESTURE_ZOOM, /**< Zoom */
11829         ELM_GESTURE_ROTATE, /**< Rotate */
11830
11831         ELM_GESTURE_LAST
11832      };
11833
11834    /**
11835     * @typedef Elm_Gesture_Types
11836     * gesture types enum
11837     * @ingroup Elm_Gesture_Layer
11838     */
11839    typedef enum _Elm_Gesture_Types Elm_Gesture_Types;
11840
11841    /**
11842     * @enum _Elm_Gesture_State
11843     * Enum of gesture states.
11844     * @ingroup Elm_Gesture_Layer
11845     */
11846    enum _Elm_Gesture_State
11847      {
11848         ELM_GESTURE_STATE_UNDEFINED = -1, /**< Gesture not STARTed */
11849         ELM_GESTURE_STATE_START,          /**< Gesture STARTed     */
11850         ELM_GESTURE_STATE_MOVE,           /**< Gesture is ongoing  */
11851         ELM_GESTURE_STATE_END,            /**< Gesture completed   */
11852         ELM_GESTURE_STATE_ABORT    /**< Onging gesture was ABORTed */
11853      };
11854
11855    /**
11856     * @typedef Elm_Gesture_State
11857     * gesture states enum
11858     * @ingroup Elm_Gesture_Layer
11859     */
11860    typedef enum _Elm_Gesture_State Elm_Gesture_State;
11861
11862    /**
11863     * @struct _Elm_Gesture_Taps_Info
11864     * Struct holds taps info for user
11865     * @ingroup Elm_Gesture_Layer
11866     */
11867    struct _Elm_Gesture_Taps_Info
11868      {
11869         Evas_Coord x, y;         /**< Holds center point between fingers */
11870         unsigned int n;          /**< Number of fingers tapped           */
11871         unsigned int timestamp;  /**< event timestamp       */
11872      };
11873
11874    /**
11875     * @typedef Elm_Gesture_Taps_Info
11876     * holds taps info for user
11877     * @ingroup Elm_Gesture_Layer
11878     */
11879    typedef struct _Elm_Gesture_Taps_Info Elm_Gesture_Taps_Info;
11880
11881    /**
11882     * @struct _Elm_Gesture_Momentum_Info
11883     * Struct holds momentum info for user
11884     * x1 and y1 are not necessarily in sync
11885     * x1 holds x value of x direction starting point
11886     * and same holds for y1.
11887     * This is noticeable when doing V-shape movement
11888     * @ingroup Elm_Gesture_Layer
11889     */
11890    struct _Elm_Gesture_Momentum_Info
11891      {  /* Report line ends, timestamps, and momentum computed        */
11892         Evas_Coord x1; /**< Final-swipe direction starting point on X */
11893         Evas_Coord y1; /**< Final-swipe direction starting point on Y */
11894         Evas_Coord x2; /**< Final-swipe direction ending point on X   */
11895         Evas_Coord y2; /**< Final-swipe direction ending point on Y   */
11896
11897         unsigned int tx; /**< Timestamp of start of final x-swipe */
11898         unsigned int ty; /**< Timestamp of start of final y-swipe */
11899
11900         Evas_Coord mx; /**< Momentum on X */
11901         Evas_Coord my; /**< Momentum on Y */
11902      };
11903
11904    /**
11905     * @typedef Elm_Gesture_Momentum_Info
11906     * holds momentum info for user
11907     * @ingroup Elm_Gesture_Layer
11908     */
11909     typedef struct _Elm_Gesture_Momentum_Info Elm_Gesture_Momentum_Info;
11910
11911    /**
11912     * @struct _Elm_Gesture_Line_Info
11913     * Struct holds line info for user
11914     * @ingroup Elm_Gesture_Layer
11915     */
11916    struct _Elm_Gesture_Line_Info
11917      {  /* Report line ends, timestamps, and momentum computed      */
11918         Elm_Gesture_Momentum_Info momentum; /**< Line momentum info */
11919         unsigned int n;            /**< Number of fingers (lines)   */
11920         /* FIXME should be radians, bot degrees */
11921         double angle;              /**< Angle (direction) of lines  */
11922      };
11923
11924    /**
11925     * @typedef Elm_Gesture_Line_Info
11926     * Holds line info for user
11927     * @ingroup Elm_Gesture_Layer
11928     */
11929     typedef struct  _Elm_Gesture_Line_Info Elm_Gesture_Line_Info;
11930
11931    /**
11932     * @struct _Elm_Gesture_Zoom_Info
11933     * Struct holds zoom info for user
11934     * @ingroup Elm_Gesture_Layer
11935     */
11936    struct _Elm_Gesture_Zoom_Info
11937      {
11938         Evas_Coord x, y;       /**< Holds zoom center point reported to user  */
11939         Evas_Coord radius; /**< Holds radius between fingers reported to user */
11940         double zoom;            /**< Zoom value: 1.0 means no zoom             */
11941         double momentum;        /**< Zoom momentum: zoom growth per second (NOT YET SUPPORTED) */
11942      };
11943
11944    /**
11945     * @typedef Elm_Gesture_Zoom_Info
11946     * Holds zoom info for user
11947     * @ingroup Elm_Gesture_Layer
11948     */
11949    typedef struct _Elm_Gesture_Zoom_Info Elm_Gesture_Zoom_Info;
11950
11951    /**
11952     * @struct _Elm_Gesture_Rotate_Info
11953     * Struct holds rotation info for user
11954     * @ingroup Elm_Gesture_Layer
11955     */
11956    struct _Elm_Gesture_Rotate_Info
11957      {
11958         Evas_Coord x, y;   /**< Holds zoom center point reported to user      */
11959         Evas_Coord radius; /**< Holds radius between fingers reported to user */
11960         double base_angle; /**< Holds start-angle */
11961         double angle;      /**< Rotation value: 0.0 means no rotation         */
11962         double momentum;   /**< Rotation momentum: rotation done per second (NOT YET SUPPORTED) */
11963      };
11964
11965    /**
11966     * @typedef Elm_Gesture_Rotate_Info
11967     * Holds rotation info for user
11968     * @ingroup Elm_Gesture_Layer
11969     */
11970    typedef struct _Elm_Gesture_Rotate_Info Elm_Gesture_Rotate_Info;
11971
11972    /**
11973     * @typedef Elm_Gesture_Event_Cb
11974     * User callback used to stream gesture info from gesture layer
11975     * @param data user data
11976     * @param event_info gesture report info
11977     * Returns a flag field to be applied on the causing event.
11978     * You should probably return EVAS_EVENT_FLAG_ON_HOLD if your widget acted
11979     * upon the event, in an irreversible way.
11980     *
11981     * @ingroup Elm_Gesture_Layer
11982     */
11983    typedef Evas_Event_Flags (*Elm_Gesture_Event_Cb) (void *data, void *event_info);
11984
11985    /**
11986     * Use function to set callbacks to be notified about
11987     * change of state of gesture.
11988     * When a user registers a callback with this function
11989     * this means this gesture has to be tested.
11990     *
11991     * When ALL callbacks for a gesture are set to NULL
11992     * it means user isn't interested in gesture-state
11993     * and it will not be tested.
11994     *
11995     * @param obj Pointer to gesture-layer.
11996     * @param idx The gesture you would like to track its state.
11997     * @param cb callback function pointer.
11998     * @param cb_type what event this callback tracks: START, MOVE, END, ABORT.
11999     * @param data user info to be sent to callback (usually, Smart Data)
12000     *
12001     * @ingroup Elm_Gesture_Layer
12002     */
12003    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);
12004
12005    /**
12006     * Call this function to get repeat-events settings.
12007     *
12008     * @param obj Pointer to gesture-layer.
12009     *
12010     * @return repeat events settings.
12011     * @see elm_gesture_layer_hold_events_set()
12012     * @ingroup Elm_Gesture_Layer
12013     */
12014    EAPI Eina_Bool elm_gesture_layer_hold_events_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12015
12016    /**
12017     * This function called in order to make gesture-layer repeat events.
12018     * Set this of you like to get the raw events only if gestures were not detected.
12019     * Clear this if you like gesture layer to fwd events as testing gestures.
12020     *
12021     * @param obj Pointer to gesture-layer.
12022     * @param r Repeat: TRUE/FALSE
12023     *
12024     * @ingroup Elm_Gesture_Layer
12025     */
12026    EAPI void elm_gesture_layer_hold_events_set(Evas_Object *obj, Eina_Bool r) EINA_ARG_NONNULL(1);
12027
12028    /**
12029     * This function sets step-value for zoom action.
12030     * Set step to any positive value.
12031     * Cancel step setting by setting to 0.0
12032     *
12033     * @param obj Pointer to gesture-layer.
12034     * @param s new zoom step value.
12035     *
12036     * @ingroup Elm_Gesture_Layer
12037     */
12038    EAPI void elm_gesture_layer_zoom_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
12039
12040    /**
12041     * This function sets step-value for rotate action.
12042     * Set step to any positive value.
12043     * Cancel step setting by setting to 0.0
12044     *
12045     * @param obj Pointer to gesture-layer.
12046     * @param s new roatate step value.
12047     *
12048     * @ingroup Elm_Gesture_Layer
12049     */
12050    EAPI void elm_gesture_layer_rotate_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
12051
12052    /**
12053     * This function called to attach gesture-layer to an Evas_Object.
12054     * @param obj Pointer to gesture-layer.
12055     * @param t Pointer to underlying object (AKA Target)
12056     *
12057     * @return TRUE, FALSE on success, failure.
12058     *
12059     * @ingroup Elm_Gesture_Layer
12060     */
12061    EAPI Eina_Bool elm_gesture_layer_attach(Evas_Object *obj, Evas_Object *t) EINA_ARG_NONNULL(1, 2);
12062
12063    /**
12064     * Call this function to construct a new gesture-layer object.
12065     * This does not activate the gesture layer. You have to
12066     * call elm_gesture_layer_attach in order to 'activate' gesture-layer.
12067     *
12068     * @param parent the parent object.
12069     *
12070     * @return Pointer to new gesture-layer object.
12071     *
12072     * @ingroup Elm_Gesture_Layer
12073     */
12074    EAPI Evas_Object *elm_gesture_layer_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12075
12076    /**
12077     * @defgroup Thumb Thumb
12078     *
12079     * @image html img/widget/thumb/preview-00.png
12080     * @image latex img/widget/thumb/preview-00.eps
12081     *
12082     * A thumb object is used for displaying the thumbnail of an image or video.
12083     * You must have compiled Elementary with Ethumb_Client support and the DBus
12084     * service must be present and auto-activated in order to have thumbnails to
12085     * be generated.
12086     *
12087     * Once the thumbnail object becomes visible, it will check if there is a
12088     * previously generated thumbnail image for the file set on it. If not, it
12089     * will start generating this thumbnail.
12090     *
12091     * Different config settings will cause different thumbnails to be generated
12092     * even on the same file.
12093     *
12094     * Generated thumbnails are stored under @c $HOME/.thumbnails/. Check the
12095     * Ethumb documentation to change this path, and to see other configuration
12096     * options.
12097     *
12098     * Signals that you can add callbacks for are:
12099     *
12100     * - "clicked" - This is called when a user has clicked the thumb without dragging
12101     *             around.
12102     * - "clicked,double" - This is called when a user has double-clicked the thumb.
12103     * - "press" - This is called when a user has pressed down the thumb.
12104     * - "generate,start" - The thumbnail generation started.
12105     * - "generate,stop" - The generation process stopped.
12106     * - "generate,error" - The generation failed.
12107     * - "load,error" - The thumbnail image loading failed.
12108     *
12109     * available styles:
12110     * - default
12111     * - noframe
12112     *
12113     * An example of use of thumbnail:
12114     *
12115     * - @ref thumb_example_01
12116     */
12117
12118    /**
12119     * @addtogroup Thumb
12120     * @{
12121     */
12122
12123    /**
12124     * @enum _Elm_Thumb_Animation_Setting
12125     * @typedef Elm_Thumb_Animation_Setting
12126     *
12127     * Used to set if a video thumbnail is animating or not.
12128     *
12129     * @ingroup Thumb
12130     */
12131    typedef enum _Elm_Thumb_Animation_Setting
12132      {
12133         ELM_THUMB_ANIMATION_START = 0, /**< Play animation once */
12134         ELM_THUMB_ANIMATION_LOOP,      /**< Keep playing animation until stop is requested */
12135         ELM_THUMB_ANIMATION_STOP,      /**< Stop playing the animation */
12136         ELM_THUMB_ANIMATION_LAST
12137      } Elm_Thumb_Animation_Setting;
12138
12139    /**
12140     * Add a new thumb object to the parent.
12141     *
12142     * @param parent The parent object.
12143     * @return The new object or NULL if it cannot be created.
12144     *
12145     * @see elm_thumb_file_set()
12146     * @see elm_thumb_ethumb_client_get()
12147     *
12148     * @ingroup Thumb
12149     */
12150    EAPI Evas_Object                 *elm_thumb_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12151    /**
12152     * Reload thumbnail if it was generated before.
12153     *
12154     * @param obj The thumb object to reload
12155     *
12156     * This is useful if the ethumb client configuration changed, like its
12157     * size, aspect or any other property one set in the handle returned
12158     * by elm_thumb_ethumb_client_get().
12159     *
12160     * If the options didn't change, the thumbnail won't be generated again, but
12161     * the old one will still be used.
12162     *
12163     * @see elm_thumb_file_set()
12164     *
12165     * @ingroup Thumb
12166     */
12167    EAPI void                         elm_thumb_reload(Evas_Object *obj) EINA_ARG_NONNULL(1);
12168    /**
12169     * Set the file that will be used as thumbnail.
12170     *
12171     * @param obj The thumb object.
12172     * @param file The path to file that will be used as thumb.
12173     * @param key The key used in case of an EET file.
12174     *
12175     * The file can be an image or a video (in that case, acceptable extensions are:
12176     * avi, mp4, ogv, mov, mpg and wmv). To start the video animation, use the
12177     * function elm_thumb_animate().
12178     *
12179     * @see elm_thumb_file_get()
12180     * @see elm_thumb_reload()
12181     * @see elm_thumb_animate()
12182     *
12183     * @ingroup Thumb
12184     */
12185    EAPI void                         elm_thumb_file_set(Evas_Object *obj, const char *file, const char *key) EINA_ARG_NONNULL(1);
12186    /**
12187     * Get the image or video path and key used to generate the thumbnail.
12188     *
12189     * @param obj The thumb object.
12190     * @param file Pointer to filename.
12191     * @param key Pointer to key.
12192     *
12193     * @see elm_thumb_file_set()
12194     * @see elm_thumb_path_get()
12195     *
12196     * @ingroup Thumb
12197     */
12198    EAPI void                         elm_thumb_file_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
12199    /**
12200     * Get the path and key to the image or video generated by ethumb.
12201     *
12202     * One just need to make sure that the thumbnail was generated before getting
12203     * its path; otherwise, the path will be NULL. One way to do that is by asking
12204     * for the path when/after the "generate,stop" smart callback is called.
12205     *
12206     * @param obj The thumb object.
12207     * @param file Pointer to thumb path.
12208     * @param key Pointer to thumb key.
12209     *
12210     * @see elm_thumb_file_get()
12211     *
12212     * @ingroup Thumb
12213     */
12214    EAPI void                         elm_thumb_path_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
12215    /**
12216     * Set the animation state for the thumb object. If its content is an animated
12217     * video, you may start/stop the animation or tell it to play continuously and
12218     * looping.
12219     *
12220     * @param obj The thumb object.
12221     * @param setting The animation setting.
12222     *
12223     * @see elm_thumb_file_set()
12224     *
12225     * @ingroup Thumb
12226     */
12227    EAPI void                         elm_thumb_animate_set(Evas_Object *obj, Elm_Thumb_Animation_Setting s) EINA_ARG_NONNULL(1);
12228    /**
12229     * Get the animation state for the thumb object.
12230     *
12231     * @param obj The thumb object.
12232     * @return getting The animation setting or @c ELM_THUMB_ANIMATION_LAST,
12233     * on errors.
12234     *
12235     * @see elm_thumb_animate_set()
12236     *
12237     * @ingroup Thumb
12238     */
12239    EAPI Elm_Thumb_Animation_Setting  elm_thumb_animate_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12240    /**
12241     * Get the ethumb_client handle so custom configuration can be made.
12242     *
12243     * @return Ethumb_Client instance or NULL.
12244     *
12245     * This must be called before the objects are created to be sure no object is
12246     * visible and no generation started.
12247     *
12248     * Example of usage:
12249     *
12250     * @code
12251     * #include <Elementary.h>
12252     * #ifndef ELM_LIB_QUICKLAUNCH
12253     * EAPI int
12254     * elm_main(int argc, char **argv)
12255     * {
12256     *    Ethumb_Client *client;
12257     *
12258     *    elm_need_ethumb();
12259     *
12260     *    // ... your code
12261     *
12262     *    client = elm_thumb_ethumb_client_get();
12263     *    if (!client)
12264     *      {
12265     *         ERR("could not get ethumb_client");
12266     *         return 1;
12267     *      }
12268     *    ethumb_client_size_set(client, 100, 100);
12269     *    ethumb_client_crop_align_set(client, 0.5, 0.5);
12270     *    // ... your code
12271     *
12272     *    // Create elm_thumb objects here
12273     *
12274     *    elm_run();
12275     *    elm_shutdown();
12276     *    return 0;
12277     * }
12278     * #endif
12279     * ELM_MAIN()
12280     * @endcode
12281     *
12282     * @note There's only one client handle for Ethumb, so once a configuration
12283     * change is done to it, any other request for thumbnails (for any thumbnail
12284     * object) will use that configuration. Thus, this configuration is global.
12285     *
12286     * @ingroup Thumb
12287     */
12288    EAPI void                        *elm_thumb_ethumb_client_get(void);
12289    /**
12290     * Get the ethumb_client connection state.
12291     *
12292     * @return EINA_TRUE if the client is connected to the server or EINA_FALSE
12293     * otherwise.
12294     */
12295    EAPI Eina_Bool                    elm_thumb_ethumb_client_connected(void);
12296    /**
12297     * Make the thumbnail 'editable'.
12298     *
12299     * @param obj Thumb object.
12300     * @param set Turn on or off editability. Default is @c EINA_FALSE.
12301     *
12302     * This means the thumbnail is a valid drag target for drag and drop, and can be
12303     * cut or pasted too.
12304     *
12305     * @see elm_thumb_editable_get()
12306     *
12307     * @ingroup Thumb
12308     */
12309    EAPI Eina_Bool                    elm_thumb_editable_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
12310    /**
12311     * Make the thumbnail 'editable'.
12312     *
12313     * @param obj Thumb object.
12314     * @return Editability.
12315     *
12316     * This means the thumbnail is a valid drag target for drag and drop, and can be
12317     * cut or pasted too.
12318     *
12319     * @see elm_thumb_editable_set()
12320     *
12321     * @ingroup Thumb
12322     */
12323    EAPI Eina_Bool                    elm_thumb_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12324
12325    /**
12326     * @}
12327     */
12328
12329    /**
12330     * @defgroup Hoversel Hoversel
12331     *
12332     * @image html img/widget/hoversel/preview-00.png
12333     * @image latex img/widget/hoversel/preview-00.eps
12334     *
12335     * A hoversel is a button that pops up a list of items (automatically
12336     * choosing the direction to display) that have a label and, optionally, an
12337     * icon to select from. It is a convenience widget to avoid the need to do
12338     * all the piecing together yourself. It is intended for a small number of
12339     * items in the hoversel menu (no more than 8), though is capable of many
12340     * more.
12341     *
12342     * Signals that you can add callbacks for are:
12343     * "clicked" - the user clicked the hoversel button and popped up the sel
12344     * "selected" - an item in the hoversel list is selected. event_info is the item
12345     * "dismissed" - the hover is dismissed
12346     *
12347     * See @ref tutorial_hoversel for an example.
12348     * @{
12349     */
12350    typedef struct _Elm_Hoversel_Item Elm_Hoversel_Item; /**< Item of Elm_Hoversel. Sub-type of Elm_Widget_Item */
12351    /**
12352     * @brief Add a new Hoversel object
12353     *
12354     * @param parent The parent object
12355     * @return The new object or NULL if it cannot be created
12356     */
12357    EAPI Evas_Object       *elm_hoversel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12358    /**
12359     * @brief This sets the hoversel to expand horizontally.
12360     *
12361     * @param obj The hoversel object
12362     * @param horizontal If true, the hover will expand horizontally to the
12363     * right.
12364     *
12365     * @note The initial button will display horizontally regardless of this
12366     * setting.
12367     */
12368    EAPI void               elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
12369    /**
12370     * @brief This returns whether the hoversel is set to expand horizontally.
12371     *
12372     * @param obj The hoversel object
12373     * @return If true, the hover will expand horizontally to the right.
12374     *
12375     * @see elm_hoversel_horizontal_set()
12376     */
12377    EAPI Eina_Bool          elm_hoversel_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12378    /**
12379     * @brief Set the Hover parent
12380     *
12381     * @param obj The hoversel object
12382     * @param parent The parent to use
12383     *
12384     * Sets the hover parent object, the area that will be darkened when the
12385     * hoversel is clicked. Should probably be the window that the hoversel is
12386     * in. See @ref Hover objects for more information.
12387     */
12388    EAPI void               elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
12389    /**
12390     * @brief Get the Hover parent
12391     *
12392     * @param obj The hoversel object
12393     * @return The used parent
12394     *
12395     * Gets the hover parent object.
12396     *
12397     * @see elm_hoversel_hover_parent_set()
12398     */
12399    EAPI Evas_Object       *elm_hoversel_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12400    /**
12401     * @brief Set the hoversel button label
12402     *
12403     * @param obj The hoversel object
12404     * @param label The label text.
12405     *
12406     * This sets the label of the button that is always visible (before it is
12407     * clicked and expanded).
12408     *
12409     * @deprecated elm_object_text_set()
12410     */
12411    EINA_DEPRECATED EAPI void               elm_hoversel_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
12412    /**
12413     * @brief Get the hoversel button label
12414     *
12415     * @param obj The hoversel object
12416     * @return The label text.
12417     *
12418     * @deprecated elm_object_text_get()
12419     */
12420    EINA_DEPRECATED EAPI const char        *elm_hoversel_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12421    /**
12422     * @brief Set the icon of the hoversel button
12423     *
12424     * @param obj The hoversel object
12425     * @param icon The icon object
12426     *
12427     * Sets the icon of the button that is always visible (before it is clicked
12428     * and expanded).  Once the icon object is set, a previously set one will be
12429     * deleted, if you want to keep that old content object, use the
12430     * elm_hoversel_icon_unset() function.
12431     *
12432     * @see elm_button_icon_set()
12433     */
12434    EAPI void               elm_hoversel_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
12435    /**
12436     * @brief Get the icon of the hoversel button
12437     *
12438     * @param obj The hoversel object
12439     * @return The icon object
12440     *
12441     * Get the icon of the button that is always visible (before it is clicked
12442     * and expanded). Also see elm_button_icon_get().
12443     *
12444     * @see elm_hoversel_icon_set()
12445     */
12446    EAPI Evas_Object       *elm_hoversel_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12447    /**
12448     * @brief Get and unparent the icon of the hoversel button
12449     *
12450     * @param obj The hoversel object
12451     * @return The icon object that was being used
12452     *
12453     * Unparent and return the icon of the button that is always visible
12454     * (before it is clicked and expanded).
12455     *
12456     * @see elm_hoversel_icon_set()
12457     * @see elm_button_icon_unset()
12458     */
12459    EAPI Evas_Object       *elm_hoversel_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12460    /**
12461     * @brief This triggers the hoversel popup from code, the same as if the user
12462     * had clicked the button.
12463     *
12464     * @param obj The hoversel object
12465     */
12466    EAPI void               elm_hoversel_hover_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
12467    /**
12468     * @brief This dismisses the hoversel popup as if the user had clicked
12469     * outside the hover.
12470     *
12471     * @param obj The hoversel object
12472     */
12473    EAPI void               elm_hoversel_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
12474    /**
12475     * @brief Returns whether the hoversel is expanded.
12476     *
12477     * @param obj The hoversel object
12478     * @return  This will return EINA_TRUE if the hoversel is expanded or
12479     * EINA_FALSE if it is not expanded.
12480     */
12481    EAPI Eina_Bool          elm_hoversel_expanded_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12482    /**
12483     * @brief This will remove all the children items from the hoversel.
12484     *
12485     * @param obj The hoversel object
12486     *
12487     * @warning Should @b not be called while the hoversel is active; use
12488     * elm_hoversel_expanded_get() to check first.
12489     *
12490     * @see elm_hoversel_item_del_cb_set()
12491     * @see elm_hoversel_item_del()
12492     */
12493    EAPI void               elm_hoversel_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
12494    /**
12495     * @brief Get the list of items within the given hoversel.
12496     *
12497     * @param obj The hoversel object
12498     * @return Returns a list of Elm_Hoversel_Item*
12499     *
12500     * @see elm_hoversel_item_add()
12501     */
12502    EAPI const Eina_List   *elm_hoversel_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12503    /**
12504     * @brief Add an item to the hoversel button
12505     *
12506     * @param obj The hoversel object
12507     * @param label The text label to use for the item (NULL if not desired)
12508     * @param icon_file An image file path on disk to use for the icon or standard
12509     * icon name (NULL if not desired)
12510     * @param icon_type The icon type if relevant
12511     * @param func Convenience function to call when this item is selected
12512     * @param data Data to pass to item-related functions
12513     * @return A handle to the item added.
12514     *
12515     * This adds an item to the hoversel to show when it is clicked. Note: if you
12516     * need to use an icon from an edje file then use
12517     * elm_hoversel_item_icon_set() right after the this function, and set
12518     * icon_file to NULL here.
12519     *
12520     * For more information on what @p icon_file and @p icon_type are see the
12521     * @ref Icon "icon documentation".
12522     */
12523    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);
12524    /**
12525     * @brief Delete an item from the hoversel
12526     *
12527     * @param item The item to delete
12528     *
12529     * This deletes the item from the hoversel (should not be called while the
12530     * hoversel is active; use elm_hoversel_expanded_get() to check first).
12531     *
12532     * @see elm_hoversel_item_add()
12533     * @see elm_hoversel_item_del_cb_set()
12534     */
12535    EAPI void               elm_hoversel_item_del(Elm_Hoversel_Item *item) EINA_ARG_NONNULL(1);
12536    /**
12537     * @brief Set the function to be called when an item from the hoversel is
12538     * freed.
12539     *
12540     * @param item The item to set the callback on
12541     * @param func The function called
12542     *
12543     * That function will receive these parameters:
12544     * @li void *item_data
12545     * @li Evas_Object *the_item_object
12546     * @li Elm_Hoversel_Item *the_object_struct
12547     *
12548     * @see elm_hoversel_item_add()
12549     */
12550    EAPI void               elm_hoversel_item_del_cb_set(Elm_Hoversel_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
12551    /**
12552     * @brief This returns the data pointer supplied with elm_hoversel_item_add()
12553     * that will be passed to associated function callbacks.
12554     *
12555     * @param item The item to get the data from
12556     * @return The data pointer set with elm_hoversel_item_add()
12557     *
12558     * @see elm_hoversel_item_add()
12559     */
12560    EAPI void              *elm_hoversel_item_data_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
12561    /**
12562     * @brief This returns the label text of the given hoversel item.
12563     *
12564     * @param item The item to get the label
12565     * @return The label text of the hoversel item
12566     *
12567     * @see elm_hoversel_item_add()
12568     */
12569    EAPI const char        *elm_hoversel_item_label_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
12570    /**
12571     * @brief This sets the icon for the given hoversel item.
12572     *
12573     * @param item The item to set the icon
12574     * @param icon_file An image file path on disk to use for the icon or standard
12575     * icon name
12576     * @param icon_group The edje group to use if @p icon_file is an edje file. Set this
12577     * to NULL if the icon is not an edje file
12578     * @param icon_type The icon type
12579     *
12580     * The icon can be loaded from the standard set, from an image file, or from
12581     * an edje file.
12582     *
12583     * @see elm_hoversel_item_add()
12584     */
12585    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);
12586    /**
12587     * @brief Get the icon object of the hoversel item
12588     *
12589     * @param item The item to get the icon from
12590     * @param icon_file The image file path on disk used for the icon or standard
12591     * icon name
12592     * @param icon_group The edje group used if @p icon_file is an edje file. NULL
12593     * if the icon is not an edje file
12594     * @param icon_type The icon type
12595     *
12596     * @see elm_hoversel_item_icon_set()
12597     * @see elm_hoversel_item_add()
12598     */
12599    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);
12600    /**
12601     * @}
12602     */
12603
12604    /**
12605     * @defgroup Toolbar Toolbar
12606     * @ingroup Elementary
12607     *
12608     * @image html img/widget/toolbar/preview-00.png
12609     * @image latex img/widget/toolbar/preview-00.eps width=\textwidth
12610     *
12611     * @image html img/toolbar.png
12612     * @image latex img/toolbar.eps width=\textwidth
12613     *
12614     * A toolbar is a widget that displays a list of items inside
12615     * a box. It can be scrollable, show a menu with items that don't fit
12616     * to toolbar size or even crop them.
12617     *
12618     * Only one item can be selected at a time.
12619     *
12620     * Items can have multiple states, or show menus when selected by the user.
12621     *
12622     * Smart callbacks one can listen to:
12623     * - "clicked" - when the user clicks on a toolbar item and becomes selected.
12624     *
12625     * Available styles for it:
12626     * - @c "default"
12627     * - @c "transparent" - no background or shadow, just show the content
12628     *
12629     * List of examples:
12630     * @li @ref toolbar_example_01
12631     * @li @ref toolbar_example_02
12632     * @li @ref toolbar_example_03
12633     */
12634
12635    /**
12636     * @addtogroup Toolbar
12637     * @{
12638     */
12639
12640    /**
12641     * @enum _Elm_Toolbar_Shrink_Mode
12642     * @typedef Elm_Toolbar_Shrink_Mode
12643     *
12644     * Set toolbar's items display behavior, it can be scrollabel,
12645     * show a menu with exceeding items, or simply hide them.
12646     *
12647     * @note Default value is #ELM_TOOLBAR_SHRINK_MENU. It reads value
12648     * from elm config.
12649     *
12650     * Values <b> don't </b> work as bitmask, only one can be choosen.
12651     *
12652     * @see elm_toolbar_mode_shrink_set()
12653     * @see elm_toolbar_mode_shrink_get()
12654     *
12655     * @ingroup Toolbar
12656     */
12657    typedef enum _Elm_Toolbar_Shrink_Mode
12658      {
12659         ELM_TOOLBAR_SHRINK_NONE,   /**< Set toolbar minimun size to fit all the items. */
12660         ELM_TOOLBAR_SHRINK_HIDE,   /**< Hide exceeding items. */
12661         ELM_TOOLBAR_SHRINK_SCROLL, /**< Allow accessing exceeding items through a scroller. */
12662         ELM_TOOLBAR_SHRINK_MENU    /**< Inserts a button to pop up a menu with exceeding items. */
12663      } Elm_Toolbar_Shrink_Mode;
12664
12665    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(). */
12666
12667    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(). */
12668
12669    /**
12670     * Add a new toolbar widget to the given parent Elementary
12671     * (container) object.
12672     *
12673     * @param parent The parent object.
12674     * @return a new toolbar widget handle or @c NULL, on errors.
12675     *
12676     * This function inserts a new toolbar widget on the canvas.
12677     *
12678     * @ingroup Toolbar
12679     */
12680    EAPI Evas_Object            *elm_toolbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12681
12682    /**
12683     * Set the icon size, in pixels, to be used by toolbar items.
12684     *
12685     * @param obj The toolbar object
12686     * @param icon_size The icon size in pixels
12687     *
12688     * @note Default value is @c 32. It reads value from elm config.
12689     *
12690     * @see elm_toolbar_icon_size_get()
12691     *
12692     * @ingroup Toolbar
12693     */
12694    EAPI void                    elm_toolbar_icon_size_set(Evas_Object *obj, int icon_size) EINA_ARG_NONNULL(1);
12695
12696    /**
12697     * Get the icon size, in pixels, to be used by toolbar items.
12698     *
12699     * @param obj The toolbar object.
12700     * @return The icon size in pixels.
12701     *
12702     * @see elm_toolbar_icon_size_set() for details.
12703     *
12704     * @ingroup Toolbar
12705     */
12706    EAPI int                     elm_toolbar_icon_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12707
12708    /**
12709     * Sets icon lookup order, for toolbar items' icons.
12710     *
12711     * @param obj The toolbar object.
12712     * @param order The icon lookup order.
12713     *
12714     * Icons added before calling this function will not be affected.
12715     * The default lookup order is #ELM_ICON_LOOKUP_THEME_FDO.
12716     *
12717     * @see elm_toolbar_icon_order_lookup_get()
12718     *
12719     * @ingroup Toolbar
12720     */
12721    EAPI void                    elm_toolbar_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
12722
12723    /**
12724     * Gets the icon lookup order.
12725     *
12726     * @param obj The toolbar object.
12727     * @return The icon lookup order.
12728     *
12729     * @see elm_toolbar_icon_order_lookup_set() for details.
12730     *
12731     * @ingroup Toolbar
12732     */
12733    EAPI Elm_Icon_Lookup_Order   elm_toolbar_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12734
12735    /**
12736     * Set whether the toolbar items' should be selected by the user or not.
12737     *
12738     * @param obj The toolbar object.
12739     * @param wrap @c EINA_TRUE to disable selection or @c EINA_FALSE to
12740     * enable it.
12741     *
12742     * This will turn off the ability to select items entirely and they will
12743     * neither appear selected nor emit selected signals. The clicked
12744     * callback function will still be called.
12745     *
12746     * Selection is enabled by default.
12747     *
12748     * @see elm_toolbar_no_select_mode_get().
12749     *
12750     * @ingroup Toolbar
12751     */
12752    EAPI void                    elm_toolbar_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
12753
12754    /**
12755     * Set whether the toolbar items' should be selected by the user or not.
12756     *
12757     * @param obj The toolbar object.
12758     * @return @c EINA_TRUE means items can be selected. @c EINA_FALSE indicates
12759     * they can't. If @p obj is @c NULL, @c EINA_FALSE is returned.
12760     *
12761     * @see elm_toolbar_no_select_mode_set() for details.
12762     *
12763     * @ingroup Toolbar
12764     */
12765    EAPI Eina_Bool               elm_toolbar_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12766
12767    /**
12768     * Append item to the toolbar.
12769     *
12770     * @param obj The toolbar object.
12771     * @param icon A string with icon name or the absolute path of an image file.
12772     * @param label The label of the item.
12773     * @param func The function to call when the item is clicked.
12774     * @param data The data to associate with the item for related callbacks.
12775     * @return The created item or @c NULL upon failure.
12776     *
12777     * A new item will be created and appended to the toolbar, i.e., will
12778     * be set as @b last item.
12779     *
12780     * Items created with this method can be deleted with
12781     * elm_toolbar_item_del().
12782     *
12783     * Associated @p data can be properly freed when item is deleted if a
12784     * callback function is set with elm_toolbar_item_del_cb_set().
12785     *
12786     * If a function is passed as argument, it will be called everytime this item
12787     * is selected, i.e., the user clicks over an unselected item.
12788     * If such function isn't needed, just passing
12789     * @c NULL as @p func is enough. The same should be done for @p data.
12790     *
12791     * Toolbar will load icon image from fdo or current theme.
12792     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
12793     * If an absolute path is provided it will load it direct from a file.
12794     *
12795     * @see elm_toolbar_item_icon_set()
12796     * @see elm_toolbar_item_del()
12797     * @see elm_toolbar_item_del_cb_set()
12798     *
12799     * @ingroup Toolbar
12800     */
12801    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);
12802
12803    /**
12804     * Prepend item to the toolbar.
12805     *
12806     * @param obj The toolbar object.
12807     * @param icon A string with icon name or the absolute path of an image file.
12808     * @param label The label of the item.
12809     * @param func The function to call when the item is clicked.
12810     * @param data The data to associate with the item for related callbacks.
12811     * @return The created item or @c NULL upon failure.
12812     *
12813     * A new item will be created and prepended to the toolbar, i.e., will
12814     * be set as @b first item.
12815     *
12816     * Items created with this method can be deleted with
12817     * elm_toolbar_item_del().
12818     *
12819     * Associated @p data can be properly freed when item is deleted if a
12820     * callback function is set with elm_toolbar_item_del_cb_set().
12821     *
12822     * If a function is passed as argument, it will be called everytime this item
12823     * is selected, i.e., the user clicks over an unselected item.
12824     * If such function isn't needed, just passing
12825     * @c NULL as @p func is enough. The same should be done for @p data.
12826     *
12827     * Toolbar will load icon image from fdo or current theme.
12828     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
12829     * If an absolute path is provided it will load it direct from a file.
12830     *
12831     * @see elm_toolbar_item_icon_set()
12832     * @see elm_toolbar_item_del()
12833     * @see elm_toolbar_item_del_cb_set()
12834     *
12835     * @ingroup Toolbar
12836     */
12837    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);
12838
12839    /**
12840     * Insert a new item into the toolbar object before item @p before.
12841     *
12842     * @param obj The toolbar object.
12843     * @param before The toolbar item to insert before.
12844     * @param icon A string with icon name or the absolute path of an image file.
12845     * @param label The label of the item.
12846     * @param func The function to call when the item is clicked.
12847     * @param data The data to associate with the item for related callbacks.
12848     * @return The created item or @c NULL upon failure.
12849     *
12850     * A new item will be created and added to the toolbar. Its position in
12851     * this toolbar will be just before item @p before.
12852     *
12853     * Items created with this method can be deleted with
12854     * elm_toolbar_item_del().
12855     *
12856     * Associated @p data can be properly freed when item is deleted if a
12857     * callback function is set with elm_toolbar_item_del_cb_set().
12858     *
12859     * If a function is passed as argument, it will be called everytime this item
12860     * is selected, i.e., the user clicks over an unselected item.
12861     * If such function isn't needed, just passing
12862     * @c NULL as @p func is enough. The same should be done for @p data.
12863     *
12864     * Toolbar will load icon image from fdo or current theme.
12865     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
12866     * If an absolute path is provided it will load it direct from a file.
12867     *
12868     * @see elm_toolbar_item_icon_set()
12869     * @see elm_toolbar_item_del()
12870     * @see elm_toolbar_item_del_cb_set()
12871     *
12872     * @ingroup Toolbar
12873     */
12874    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);
12875
12876    /**
12877     * Insert a new item into the toolbar object after item @p after.
12878     *
12879     * @param obj The toolbar object.
12880     * @param before The toolbar item to insert before.
12881     * @param icon A string with icon name or the absolute path of an image file.
12882     * @param label The label of the item.
12883     * @param func The function to call when the item is clicked.
12884     * @param data The data to associate with the item for related callbacks.
12885     * @return The created item or @c NULL upon failure.
12886     *
12887     * A new item will be created and added to the toolbar. Its position in
12888     * this toolbar will be just after item @p after.
12889     *
12890     * Items created with this method can be deleted with
12891     * elm_toolbar_item_del().
12892     *
12893     * Associated @p data can be properly freed when item is deleted if a
12894     * callback function is set with elm_toolbar_item_del_cb_set().
12895     *
12896     * If a function is passed as argument, it will be called everytime this item
12897     * is selected, i.e., the user clicks over an unselected item.
12898     * If such function isn't needed, just passing
12899     * @c NULL as @p func is enough. The same should be done for @p data.
12900     *
12901     * Toolbar will load icon image from fdo or current theme.
12902     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
12903     * If an absolute path is provided it will load it direct from a file.
12904     *
12905     * @see elm_toolbar_item_icon_set()
12906     * @see elm_toolbar_item_del()
12907     * @see elm_toolbar_item_del_cb_set()
12908     *
12909     * @ingroup Toolbar
12910     */
12911    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);
12912
12913    /**
12914     * Get the first item in the given toolbar widget's list of
12915     * items.
12916     *
12917     * @param obj The toolbar object
12918     * @return The first item or @c NULL, if it has no items (and on
12919     * errors)
12920     *
12921     * @see elm_toolbar_item_append()
12922     * @see elm_toolbar_last_item_get()
12923     *
12924     * @ingroup Toolbar
12925     */
12926    EAPI Elm_Toolbar_Item       *elm_toolbar_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12927
12928    /**
12929     * Get the last item in the given toolbar widget's list of
12930     * items.
12931     *
12932     * @param obj The toolbar object
12933     * @return The last item or @c NULL, if it has no items (and on
12934     * errors)
12935     *
12936     * @see elm_toolbar_item_prepend()
12937     * @see elm_toolbar_first_item_get()
12938     *
12939     * @ingroup Toolbar
12940     */
12941    EAPI Elm_Toolbar_Item       *elm_toolbar_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12942
12943    /**
12944     * Get the item after @p item in toolbar.
12945     *
12946     * @param item The toolbar item.
12947     * @return The item after @p item, or @c NULL if none or on failure.
12948     *
12949     * @note If it is the last item, @c NULL will be returned.
12950     *
12951     * @see elm_toolbar_item_append()
12952     *
12953     * @ingroup Toolbar
12954     */
12955    EAPI Elm_Toolbar_Item       *elm_toolbar_item_next_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
12956
12957    /**
12958     * Get the item before @p item in toolbar.
12959     *
12960     * @param item The toolbar item.
12961     * @return The item before @p item, or @c NULL if none or on failure.
12962     *
12963     * @note If it is the first item, @c NULL will be returned.
12964     *
12965     * @see elm_toolbar_item_prepend()
12966     *
12967     * @ingroup Toolbar
12968     */
12969    EAPI Elm_Toolbar_Item       *elm_toolbar_item_prev_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
12970
12971    /**
12972     * Get the toolbar object from an item.
12973     *
12974     * @param item The item.
12975     * @return The toolbar object.
12976     *
12977     * This returns the toolbar object itself that an item belongs to.
12978     *
12979     * @ingroup Toolbar
12980     */
12981    EAPI Evas_Object            *elm_toolbar_item_toolbar_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
12982
12983    /**
12984     * Set the priority of a toolbar item.
12985     *
12986     * @param item The toolbar item.
12987     * @param priority The item priority. The default is zero.
12988     *
12989     * This is used only when the toolbar shrink mode is set to
12990     * #ELM_TOOLBAR_SHRINK_MENU or #ELM_TOOLBAR_SHRINK_HIDE.
12991     * When space is less than required, items with low priority
12992     * will be removed from the toolbar and added to a dynamically-created menu,
12993     * while items with higher priority will remain on the toolbar,
12994     * with the same order they were added.
12995     *
12996     * @see elm_toolbar_item_priority_get()
12997     *
12998     * @ingroup Toolbar
12999     */
13000    EAPI void                    elm_toolbar_item_priority_set(Elm_Toolbar_Item *item, int priority) EINA_ARG_NONNULL(1);
13001
13002    /**
13003     * Get the priority of a toolbar item.
13004     *
13005     * @param item The toolbar item.
13006     * @return The @p item priority, or @c 0 on failure.
13007     *
13008     * @see elm_toolbar_item_priority_set() for details.
13009     *
13010     * @ingroup Toolbar
13011     */
13012    EAPI int                     elm_toolbar_item_priority_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13013
13014    /**
13015     * Get the label of item.
13016     *
13017     * @param item The item of toolbar.
13018     * @return The label of item.
13019     *
13020     * The return value is a pointer to the label associated to @p item when
13021     * it was created, with function elm_toolbar_item_append() or similar,
13022     * or later,
13023     * with function elm_toolbar_item_label_set. If no label
13024     * was passed as argument, it will return @c NULL.
13025     *
13026     * @see elm_toolbar_item_label_set() for more details.
13027     * @see elm_toolbar_item_append()
13028     *
13029     * @ingroup Toolbar
13030     */
13031    EAPI const char             *elm_toolbar_item_label_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13032
13033    /**
13034     * Set the label of item.
13035     *
13036     * @param item The item of toolbar.
13037     * @param text The label of item.
13038     *
13039     * The label to be displayed by the item.
13040     * Label will be placed at icons bottom (if set).
13041     *
13042     * If a label was passed as argument on item creation, with function
13043     * elm_toolbar_item_append() or similar, it will be already
13044     * displayed by the item.
13045     *
13046     * @see elm_toolbar_item_label_get()
13047     * @see elm_toolbar_item_append()
13048     *
13049     * @ingroup Toolbar
13050     */
13051    EAPI void                    elm_toolbar_item_label_set(Elm_Toolbar_Item *item, const char *label) EINA_ARG_NONNULL(1);
13052
13053    /**
13054     * Return the data associated with a given toolbar widget item.
13055     *
13056     * @param item The toolbar widget item handle.
13057     * @return The data associated with @p item.
13058     *
13059     * @see elm_toolbar_item_data_set()
13060     *
13061     * @ingroup Toolbar
13062     */
13063    EAPI void                   *elm_toolbar_item_data_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13064
13065    /**
13066     * Set the data associated with a given toolbar widget item.
13067     *
13068     * @param item The toolbar widget item handle.
13069     * @param data The new data pointer to set to @p item.
13070     *
13071     * This sets new item data on @p item.
13072     *
13073     * @warning The old data pointer won't be touched by this function, so
13074     * the user had better to free that old data himself/herself.
13075     *
13076     * @ingroup Toolbar
13077     */
13078    EAPI void                    elm_toolbar_item_data_set(Elm_Toolbar_Item *item, const void *data) EINA_ARG_NONNULL(1);
13079
13080    /**
13081     * Returns a pointer to a toolbar item by its label.
13082     *
13083     * @param obj The toolbar object.
13084     * @param label The label of the item to find.
13085     *
13086     * @return The pointer to the toolbar item matching @p label or @c NULL
13087     * on failure.
13088     *
13089     * @ingroup Toolbar
13090     */
13091    EAPI Elm_Toolbar_Item       *elm_toolbar_item_find_by_label(const Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
13092
13093    /*
13094     * Get whether the @p item is selected or not.
13095     *
13096     * @param item The toolbar item.
13097     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
13098     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
13099     *
13100     * @see elm_toolbar_selected_item_set() for details.
13101     * @see elm_toolbar_item_selected_get()
13102     *
13103     * @ingroup Toolbar
13104     */
13105    EAPI Eina_Bool               elm_toolbar_item_selected_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13106
13107    /**
13108     * Set the selected state of an item.
13109     *
13110     * @param item The toolbar item
13111     * @param selected The selected state
13112     *
13113     * This sets the selected state of the given item @p it.
13114     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
13115     *
13116     * If a new item is selected the previosly selected will be unselected.
13117     * Previoulsy selected item can be get with function
13118     * elm_toolbar_selected_item_get().
13119     *
13120     * Selected items will be highlighted.
13121     *
13122     * @see elm_toolbar_item_selected_get()
13123     * @see elm_toolbar_selected_item_get()
13124     *
13125     * @ingroup Toolbar
13126     */
13127    EAPI void                    elm_toolbar_item_selected_set(Elm_Toolbar_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
13128
13129    /**
13130     * Get the selected item.
13131     *
13132     * @param obj The toolbar object.
13133     * @return The selected toolbar item.
13134     *
13135     * The selected item can be unselected with function
13136     * elm_toolbar_item_selected_set().
13137     *
13138     * The selected item always will be highlighted on toolbar.
13139     *
13140     * @see elm_toolbar_selected_items_get()
13141     *
13142     * @ingroup Toolbar
13143     */
13144    EAPI Elm_Toolbar_Item       *elm_toolbar_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13145
13146    /**
13147     * Set the icon associated with @p item.
13148     *
13149     * @param obj The parent of this item.
13150     * @param item The toolbar item.
13151     * @param icon A string with icon name or the absolute path of an image file.
13152     *
13153     * Toolbar will load icon image from fdo or current theme.
13154     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13155     * If an absolute path is provided it will load it direct from a file.
13156     *
13157     * @see elm_toolbar_icon_order_lookup_set()
13158     * @see elm_toolbar_icon_order_lookup_get()
13159     *
13160     * @ingroup Toolbar
13161     */
13162    EAPI void                    elm_toolbar_item_icon_set(Elm_Toolbar_Item *item, const char *icon) EINA_ARG_NONNULL(1);
13163
13164    /**
13165     * Get the string used to set the icon of @p item.
13166     *
13167     * @param item The toolbar item.
13168     * @return The string associated with the icon object.
13169     *
13170     * @see elm_toolbar_item_icon_set() for details.
13171     *
13172     * @ingroup Toolbar
13173     */
13174    EAPI const char             *elm_toolbar_item_icon_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13175
13176    /**
13177     * Delete them item from the toolbar.
13178     *
13179     * @param item The item of toolbar to be deleted.
13180     *
13181     * @see elm_toolbar_item_append()
13182     * @see elm_toolbar_item_del_cb_set()
13183     *
13184     * @ingroup Toolbar
13185     */
13186    EAPI void                    elm_toolbar_item_del(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13187
13188    /**
13189     * Set the function called when a toolbar item is freed.
13190     *
13191     * @param item The item to set the callback on.
13192     * @param func The function called.
13193     *
13194     * If there is a @p func, then it will be called prior item's memory release.
13195     * That will be called with the following arguments:
13196     * @li item's data;
13197     * @li item's Evas object;
13198     * @li item itself;
13199     *
13200     * This way, a data associated to a toolbar item could be properly freed.
13201     *
13202     * @ingroup Toolbar
13203     */
13204    EAPI void                    elm_toolbar_item_del_cb_set(Elm_Toolbar_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
13205
13206    /**
13207     * Get a value whether toolbar item is disabled or not.
13208     *
13209     * @param item The item.
13210     * @return The disabled state.
13211     *
13212     * @see elm_toolbar_item_disabled_set() for more details.
13213     *
13214     * @ingroup Toolbar
13215     */
13216    EAPI Eina_Bool               elm_toolbar_item_disabled_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13217
13218    /**
13219     * Sets the disabled/enabled state of a toolbar item.
13220     *
13221     * @param item The item.
13222     * @param disabled The disabled state.
13223     *
13224     * A disabled item cannot be selected or unselected. It will also
13225     * change its appearance (generally greyed out). This sets the
13226     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
13227     * enabled).
13228     *
13229     * @ingroup Toolbar
13230     */
13231    EAPI void                    elm_toolbar_item_disabled_set(Elm_Toolbar_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
13232
13233    /**
13234     * Set or unset item as a separator.
13235     *
13236     * @param item The toolbar item.
13237     * @param setting @c EINA_TRUE to set item @p item as separator or
13238     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
13239     *
13240     * Items aren't set as separator by default.
13241     *
13242     * If set as separator it will display separator theme, so won't display
13243     * icons or label.
13244     *
13245     * @see elm_toolbar_item_separator_get()
13246     *
13247     * @ingroup Toolbar
13248     */
13249    EAPI void                    elm_toolbar_item_separator_set(Elm_Toolbar_Item *item, Eina_Bool separator) EINA_ARG_NONNULL(1);
13250
13251    /**
13252     * Get a value whether item is a separator or not.
13253     *
13254     * @param item The toolbar item.
13255     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
13256     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
13257     *
13258     * @see elm_toolbar_item_separator_set() for details.
13259     *
13260     * @ingroup Toolbar
13261     */
13262    EAPI Eina_Bool               elm_toolbar_item_separator_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13263
13264    /**
13265     * Set the shrink state of toolbar @p obj.
13266     *
13267     * @param obj The toolbar object.
13268     * @param shrink_mode Toolbar's items display behavior.
13269     *
13270     * The toolbar won't scroll if #ELM_TOOLBAR_SHRINK_NONE,
13271     * but will enforce a minimun size so all the items will fit, won't scroll
13272     * and won't show the items that don't fit if #ELM_TOOLBAR_SHRINK_HIDE,
13273     * will scroll if #ELM_TOOLBAR_SHRINK_SCROLL, and will create a button to
13274     * pop up excess elements with #ELM_TOOLBAR_SHRINK_MENU.
13275     *
13276     * @ingroup Toolbar
13277     */
13278    EAPI void                    elm_toolbar_mode_shrink_set(Evas_Object *obj, Elm_Toolbar_Shrink_Mode shrink_mode) EINA_ARG_NONNULL(1);
13279
13280    /**
13281     * Get the shrink mode of toolbar @p obj.
13282     *
13283     * @param obj The toolbar object.
13284     * @return Toolbar's items display behavior.
13285     *
13286     * @see elm_toolbar_mode_shrink_set() for details.
13287     *
13288     * @ingroup Toolbar
13289     */
13290    EAPI Elm_Toolbar_Shrink_Mode elm_toolbar_mode_shrink_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13291
13292    /**
13293     * Enable/disable homogenous mode.
13294     *
13295     * @param obj The toolbar object
13296     * @param homogeneous Assume the items within the toolbar are of the
13297     * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
13298     *
13299     * This will enable the homogeneous mode where items are of the same size.
13300     * @see elm_toolbar_homogeneous_get()
13301     *
13302     * @ingroup Toolbar
13303     */
13304    EAPI void                    elm_toolbar_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
13305
13306    /**
13307     * Get whether the homogenous mode is enabled.
13308     *
13309     * @param obj The toolbar object.
13310     * @return Assume the items within the toolbar are of the same height
13311     * and width (EINA_TRUE = on, EINA_FALSE = off).
13312     *
13313     * @see elm_toolbar_homogeneous_set()
13314     *
13315     * @ingroup Toolbar
13316     */
13317    EAPI Eina_Bool               elm_toolbar_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13318
13319    /**
13320     * Enable/disable homogenous mode.
13321     *
13322     * @param obj The toolbar object
13323     * @param homogeneous Assume the items within the toolbar are of the
13324     * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
13325     *
13326     * This will enable the homogeneous mode where items are of the same size.
13327     * @see elm_toolbar_homogeneous_get()
13328     *
13329     * @deprecated use elm_toolbar_homogeneous_set() instead.
13330     *
13331     * @ingroup Toolbar
13332     */
13333    EINA_DEPRECATED EAPI void    elm_toolbar_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
13334
13335    /**
13336     * Get whether the homogenous mode is enabled.
13337     *
13338     * @param obj The toolbar object.
13339     * @return Assume the items within the toolbar are of the same height
13340     * and width (EINA_TRUE = on, EINA_FALSE = off).
13341     *
13342     * @see elm_toolbar_homogeneous_set()
13343     * @deprecated use elm_toolbar_homogeneous_get() instead.
13344     *
13345     * @ingroup Toolbar
13346     */
13347    EINA_DEPRECATED EAPI Eina_Bool elm_toolbar_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13348
13349    /**
13350     * Set the parent object of the toolbar items' menus.
13351     *
13352     * @param obj The toolbar object.
13353     * @param parent The parent of the menu objects.
13354     *
13355     * Each item can be set as item menu, with elm_toolbar_item_menu_set().
13356     *
13357     * For more details about setting the parent for toolbar menus, see
13358     * elm_menu_parent_set().
13359     *
13360     * @see elm_menu_parent_set() for details.
13361     * @see elm_toolbar_item_menu_set() for details.
13362     *
13363     * @ingroup Toolbar
13364     */
13365    EAPI void                    elm_toolbar_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
13366
13367    /**
13368     * Get the parent object of the toolbar items' menus.
13369     *
13370     * @param obj The toolbar object.
13371     * @return The parent of the menu objects.
13372     *
13373     * @see elm_toolbar_menu_parent_set() for details.
13374     *
13375     * @ingroup Toolbar
13376     */
13377    EAPI Evas_Object            *elm_toolbar_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13378
13379    /**
13380     * Set the alignment of the items.
13381     *
13382     * @param obj The toolbar object.
13383     * @param align The new alignment, a float between <tt> 0.0 </tt>
13384     * and <tt> 1.0 </tt>.
13385     *
13386     * Alignment of toolbar items, from <tt> 0.0 </tt> to indicates to align
13387     * left, to <tt> 1.0 </tt>, to align to right. <tt> 0.5 </tt> centralize
13388     * items.
13389     *
13390     * Centered items by default.
13391     *
13392     * @see elm_toolbar_align_get()
13393     *
13394     * @ingroup Toolbar
13395     */
13396    EAPI void                    elm_toolbar_align_set(Evas_Object *obj, double align) EINA_ARG_NONNULL(1);
13397
13398    /**
13399     * Get the alignment of the items.
13400     *
13401     * @param obj The toolbar object.
13402     * @return toolbar items alignment, a float between <tt> 0.0 </tt> and
13403     * <tt> 1.0 </tt>.
13404     *
13405     * @see elm_toolbar_align_set() for details.
13406     *
13407     * @ingroup Toolbar
13408     */
13409    EAPI double                  elm_toolbar_align_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13410
13411    /**
13412     * Set whether the toolbar item opens a menu.
13413     *
13414     * @param item The toolbar item.
13415     * @param menu If @c EINA_TRUE, @p item will opens a menu when selected.
13416     *
13417     * A toolbar item can be set to be a menu, using this function.
13418     *
13419     * Once it is set to be a menu, it can be manipulated through the
13420     * menu-like function elm_toolbar_menu_parent_set() and the other
13421     * elm_menu functions, using the Evas_Object @c menu returned by
13422     * elm_toolbar_item_menu_get().
13423     *
13424     * So, items to be displayed in this item's menu should be added with
13425     * elm_menu_item_add().
13426     *
13427     * The following code exemplifies the most basic usage:
13428     * @code
13429     * tb = elm_toolbar_add(win)
13430     * item = elm_toolbar_item_append(tb, "refresh", "Menu", NULL, NULL);
13431     * elm_toolbar_item_menu_set(item, EINA_TRUE);
13432     * elm_toolbar_menu_parent_set(tb, win);
13433     * menu = elm_toolbar_item_menu_get(item);
13434     * elm_menu_item_add(menu, NULL, "edit-cut", "Cut", NULL, NULL);
13435     * menu_item = elm_menu_item_add(menu, NULL, "edit-copy", "Copy", NULL,
13436     * NULL);
13437     * @endcode
13438     *
13439     * @see elm_toolbar_item_menu_get()
13440     *
13441     * @ingroup Toolbar
13442     */
13443    EAPI void                    elm_toolbar_item_menu_set(Elm_Toolbar_Item *item, Eina_Bool menu) EINA_ARG_NONNULL(1);
13444
13445    /**
13446     * Get toolbar item's menu.
13447     *
13448     * @param item The toolbar item.
13449     * @return Item's menu object or @c NULL on failure.
13450     *
13451     * If @p item wasn't set as menu item with elm_toolbar_item_menu_set(),
13452     * this function will set it.
13453     *
13454     * @see elm_toolbar_item_menu_set() for details.
13455     *
13456     * @ingroup Toolbar
13457     */
13458    EAPI Evas_Object            *elm_toolbar_item_menu_get(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13459
13460    /**
13461     * Add a new state to @p item.
13462     *
13463     * @param item The item.
13464     * @param icon A string with icon name or the absolute path of an image file.
13465     * @param label The label of the new state.
13466     * @param func The function to call when the item is clicked when this
13467     * state is selected.
13468     * @param data The data to associate with the state.
13469     * @return The toolbar item state, or @c NULL upon failure.
13470     *
13471     * Toolbar will load icon image from fdo or current theme.
13472     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13473     * If an absolute path is provided it will load it direct from a file.
13474     *
13475     * States created with this function can be removed with
13476     * elm_toolbar_item_state_del().
13477     *
13478     * @see elm_toolbar_item_state_del()
13479     * @see elm_toolbar_item_state_sel()
13480     * @see elm_toolbar_item_state_get()
13481     *
13482     * @ingroup Toolbar
13483     */
13484    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);
13485
13486    /**
13487     * Delete a previoulsy added state to @p item.
13488     *
13489     * @param item The toolbar item.
13490     * @param state The state to be deleted.
13491     * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
13492     *
13493     * @see elm_toolbar_item_state_add()
13494     */
13495    EAPI Eina_Bool               elm_toolbar_item_state_del(Elm_Toolbar_Item *item, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
13496
13497    /**
13498     * Set @p state as the current state of @p it.
13499     *
13500     * @param it The item.
13501     * @param state The state to use.
13502     * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
13503     *
13504     * If @p state is @c NULL, it won't select any state and the default item's
13505     * icon and label will be used. It's the same behaviour than
13506     * elm_toolbar_item_state_unser().
13507     *
13508     * @see elm_toolbar_item_state_unset()
13509     *
13510     * @ingroup Toolbar
13511     */
13512    EAPI Eina_Bool               elm_toolbar_item_state_set(Elm_Toolbar_Item *it, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
13513
13514    /**
13515     * Unset the state of @p it.
13516     *
13517     * @param it The item.
13518     *
13519     * The default icon and label from this item will be displayed.
13520     *
13521     * @see elm_toolbar_item_state_set() for more details.
13522     *
13523     * @ingroup Toolbar
13524     */
13525    EAPI void                    elm_toolbar_item_state_unset(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
13526
13527    /**
13528     * Get the current state of @p it.
13529     *
13530     * @param item The item.
13531     * @return The selected state or @c NULL if none is selected or on failure.
13532     *
13533     * @see elm_toolbar_item_state_set() for details.
13534     * @see elm_toolbar_item_state_unset()
13535     * @see elm_toolbar_item_state_add()
13536     *
13537     * @ingroup Toolbar
13538     */
13539    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_get(const Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
13540
13541    /**
13542     * Get the state after selected state in toolbar's @p item.
13543     *
13544     * @param it The toolbar item to change state.
13545     * @return The state after current state, or @c NULL on failure.
13546     *
13547     * If last state is selected, this function will return first state.
13548     *
13549     * @see elm_toolbar_item_state_set()
13550     * @see elm_toolbar_item_state_add()
13551     *
13552     * @ingroup Toolbar
13553     */
13554    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_next(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
13555
13556    /**
13557     * Get the state before selected state in toolbar's @p item.
13558     *
13559     * @param it The toolbar item to change state.
13560     * @return The state before current state, or @c NULL on failure.
13561     *
13562     * If first state is selected, this function will return last state.
13563     *
13564     * @see elm_toolbar_item_state_set()
13565     * @see elm_toolbar_item_state_add()
13566     *
13567     * @ingroup Toolbar
13568     */
13569    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_prev(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
13570
13571    /**
13572     * Set the text to be shown in a given toolbar item's tooltips.
13573     *
13574     * @param item Target item.
13575     * @param text The text to set in the content.
13576     *
13577     * Setup the text as tooltip to object. The item can have only one tooltip,
13578     * so any previous tooltip data - set with this function or
13579     * elm_toolbar_item_tooltip_content_cb_set() - is removed.
13580     *
13581     * @see elm_object_tooltip_text_set() for more details.
13582     *
13583     * @ingroup Toolbar
13584     */
13585    EAPI void             elm_toolbar_item_tooltip_text_set(Elm_Toolbar_Item *item, const char *text) EINA_ARG_NONNULL(1);
13586
13587    /**
13588     * Set the content to be shown in the tooltip item.
13589     *
13590     * Setup the tooltip to item. The item can have only one tooltip,
13591     * so any previous tooltip data is removed. @p func(with @p data) will
13592     * be called every time that need show the tooltip and it should
13593     * return a valid Evas_Object. This object is then managed fully by
13594     * tooltip system and is deleted when the tooltip is gone.
13595     *
13596     * @param item the toolbar item being attached a tooltip.
13597     * @param func the function used to create the tooltip contents.
13598     * @param data what to provide to @a func as callback data/context.
13599     * @param del_cb called when data is not needed anymore, either when
13600     *        another callback replaces @a func, the tooltip is unset with
13601     *        elm_toolbar_item_tooltip_unset() or the owner @a item
13602     *        dies. This callback receives as the first parameter the
13603     *        given @a data, and @c event_info is the item.
13604     *
13605     * @see elm_object_tooltip_content_cb_set() for more details.
13606     *
13607     * @ingroup Toolbar
13608     */
13609    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);
13610
13611    /**
13612     * Unset tooltip from item.
13613     *
13614     * @param item toolbar item to remove previously set tooltip.
13615     *
13616     * Remove tooltip from item. The callback provided as del_cb to
13617     * elm_toolbar_item_tooltip_content_cb_set() will be called to notify
13618     * it is not used anymore.
13619     *
13620     * @see elm_object_tooltip_unset() for more details.
13621     * @see elm_toolbar_item_tooltip_content_cb_set()
13622     *
13623     * @ingroup Toolbar
13624     */
13625    EAPI void             elm_toolbar_item_tooltip_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13626
13627    /**
13628     * Sets a different style for this item tooltip.
13629     *
13630     * @note before you set a style you should define a tooltip with
13631     *       elm_toolbar_item_tooltip_content_cb_set() or
13632     *       elm_toolbar_item_tooltip_text_set()
13633     *
13634     * @param item toolbar item with tooltip already set.
13635     * @param style the theme style to use (default, transparent, ...)
13636     *
13637     * @see elm_object_tooltip_style_set() for more details.
13638     *
13639     * @ingroup Toolbar
13640     */
13641    EAPI void             elm_toolbar_item_tooltip_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
13642
13643    /**
13644     * Get the style for this item tooltip.
13645     *
13646     * @param item toolbar item with tooltip already set.
13647     * @return style the theme style in use, defaults to "default". If the
13648     *         object does not have a tooltip set, then NULL is returned.
13649     *
13650     * @see elm_object_tooltip_style_get() for more details.
13651     * @see elm_toolbar_item_tooltip_style_set()
13652     *
13653     * @ingroup Toolbar
13654     */
13655    EAPI const char      *elm_toolbar_item_tooltip_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13656
13657    /**
13658     * Set the type of mouse pointer/cursor decoration to be shown,
13659     * when the mouse pointer is over the given toolbar widget item
13660     *
13661     * @param item toolbar item to customize cursor on
13662     * @param cursor the cursor type's name
13663     *
13664     * This function works analogously as elm_object_cursor_set(), but
13665     * here the cursor's changing area is restricted to the item's
13666     * area, and not the whole widget's. Note that that item cursors
13667     * have precedence over widget cursors, so that a mouse over an
13668     * item with custom cursor set will always show @b that cursor.
13669     *
13670     * If this function is called twice for an object, a previously set
13671     * cursor will be unset on the second call.
13672     *
13673     * @see elm_object_cursor_set()
13674     * @see elm_toolbar_item_cursor_get()
13675     * @see elm_toolbar_item_cursor_unset()
13676     *
13677     * @ingroup Toolbar
13678     */
13679    EAPI void             elm_toolbar_item_cursor_set(Elm_Toolbar_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
13680
13681    /*
13682     * Get the type of mouse pointer/cursor decoration set to be shown,
13683     * when the mouse pointer is over the given toolbar widget item
13684     *
13685     * @param item toolbar item with custom cursor set
13686     * @return the cursor type's name or @c NULL, if no custom cursors
13687     * were set to @p item (and on errors)
13688     *
13689     * @see elm_object_cursor_get()
13690     * @see elm_toolbar_item_cursor_set()
13691     * @see elm_toolbar_item_cursor_unset()
13692     *
13693     * @ingroup Toolbar
13694     */
13695    EAPI const char      *elm_toolbar_item_cursor_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13696
13697    /**
13698     * Unset any custom mouse pointer/cursor decoration set to be
13699     * shown, when the mouse pointer is over the given toolbar widget
13700     * item, thus making it show the @b default cursor again.
13701     *
13702     * @param item a toolbar item
13703     *
13704     * Use this call to undo any custom settings on this item's cursor
13705     * decoration, bringing it back to defaults (no custom style set).
13706     *
13707     * @see elm_object_cursor_unset()
13708     * @see elm_toolbar_item_cursor_set()
13709     *
13710     * @ingroup Toolbar
13711     */
13712    EAPI void             elm_toolbar_item_cursor_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13713
13714    /**
13715     * Set a different @b style for a given custom cursor set for a
13716     * toolbar item.
13717     *
13718     * @param item toolbar item with custom cursor set
13719     * @param style the <b>theme style</b> to use (e.g. @c "default",
13720     * @c "transparent", etc)
13721     *
13722     * This function only makes sense when one is using custom mouse
13723     * cursor decorations <b>defined in a theme file</b>, which can have,
13724     * given a cursor name/type, <b>alternate styles</b> on it. It
13725     * works analogously as elm_object_cursor_style_set(), but here
13726     * applyed only to toolbar item objects.
13727     *
13728     * @warning Before you set a cursor style you should have definen a
13729     *       custom cursor previously on the item, with
13730     *       elm_toolbar_item_cursor_set()
13731     *
13732     * @see elm_toolbar_item_cursor_engine_only_set()
13733     * @see elm_toolbar_item_cursor_style_get()
13734     *
13735     * @ingroup Toolbar
13736     */
13737    EAPI void             elm_toolbar_item_cursor_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
13738
13739    /**
13740     * Get the current @b style set for a given toolbar item's custom
13741     * cursor
13742     *
13743     * @param item toolbar item with custom cursor set.
13744     * @return style the cursor style in use. If the object does not
13745     *         have a cursor set, then @c NULL is returned.
13746     *
13747     * @see elm_toolbar_item_cursor_style_set() for more details
13748     *
13749     * @ingroup Toolbar
13750     */
13751    EAPI const char      *elm_toolbar_item_cursor_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13752
13753    /**
13754     * Set if the (custom)cursor for a given toolbar item should be
13755     * searched in its theme, also, or should only rely on the
13756     * rendering engine.
13757     *
13758     * @param item item with custom (custom) cursor already set on
13759     * @param engine_only Use @c EINA_TRUE to have cursors looked for
13760     * only on those provided by the rendering engine, @c EINA_FALSE to
13761     * have them searched on the widget's theme, as well.
13762     *
13763     * @note This call is of use only if you've set a custom cursor
13764     * for toolbar items, with elm_toolbar_item_cursor_set().
13765     *
13766     * @note By default, cursors will only be looked for between those
13767     * provided by the rendering engine.
13768     *
13769     * @ingroup Toolbar
13770     */
13771    EAPI void             elm_toolbar_item_cursor_engine_only_set(Elm_Toolbar_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
13772
13773    /**
13774     * Get if the (custom) cursor for a given toolbar item is being
13775     * searched in its theme, also, or is only relying on the rendering
13776     * engine.
13777     *
13778     * @param item a toolbar item
13779     * @return @c EINA_TRUE, if cursors are being looked for only on
13780     * those provided by the rendering engine, @c EINA_FALSE if they
13781     * are being searched on the widget's theme, as well.
13782     *
13783     * @see elm_toolbar_item_cursor_engine_only_set(), for more details
13784     *
13785     * @ingroup Toolbar
13786     */
13787    EAPI Eina_Bool        elm_toolbar_item_cursor_engine_only_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13788
13789    /**
13790     * Change a toolbar's orientation
13791     * @param obj The toolbar object
13792     * @param vertical If @c EINA_TRUE, the toolbar is vertical
13793     * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
13794     * @ingroup Toolbar
13795     */
13796    EAPI void             elm_toolbar_orientation_set(Evas_Object *obj, Eina_Bool vertical) EINA_ARG_NONNULL(1);
13797
13798    /**
13799     * Get a toolbar's orientation
13800     * @param obj The toolbar object
13801     * @return If @c EINA_TRUE, the toolbar is vertical
13802     * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
13803     * @ingroup Toolbar
13804     */
13805    EAPI Eina_Bool        elm_toolbar_orientation_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
13806
13807    /**
13808     * @}
13809     */
13810
13811    /**
13812     * @defgroup Tooltips Tooltips
13813     *
13814     * The Tooltip is an (internal, for now) smart object used to show a
13815     * content in a frame on mouse hover of objects(or widgets), with
13816     * tips/information about them.
13817     *
13818     * @{
13819     */
13820
13821    EAPI double       elm_tooltip_delay_get(void);
13822    EAPI Eina_Bool    elm_tooltip_delay_set(double delay);
13823    EAPI void         elm_object_tooltip_show(Evas_Object *obj) EINA_ARG_NONNULL(1);
13824    EAPI void         elm_object_tooltip_hide(Evas_Object *obj) EINA_ARG_NONNULL(1);
13825    EAPI void         elm_object_tooltip_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1, 2);
13826    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);
13827    EAPI void         elm_object_tooltip_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
13828    EAPI void         elm_object_tooltip_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
13829    EAPI const char  *elm_object_tooltip_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13830    EAPI Eina_Bool    elm_tooltip_size_restrict_disable(Evas_Object *obj, Eina_Bool disable); EINA_ARG_NONNULL(1);
13831    EAPI Eina_Bool    elm_tooltip_size_restrict_disabled_get(const Evas_Object *obj); EINA_ARG_NONNULL(1);
13832
13833    /**
13834     * @}
13835     */
13836
13837    /**
13838     * @defgroup Cursors Cursors
13839     *
13840     * The Cursor is an internal smart object used to customize the
13841     * cursor displayed over objects (or widgets).
13842     * It can use default X cursors (if using X), or cursors from a
13843     * theme.
13844     *
13845     * @{
13846     */
13847
13848    /**
13849     * Set the cursor to be shown when mouse is over the object
13850     *
13851     * Set the cursor that will be displayed when mouse is over the
13852     * object. The object can have only one cursor set to it, so if
13853     * this function is called twice for an object, the previous set
13854     * will be unset.
13855     * If using X cursors, a definition of all the valid cursor names
13856     * is listed on Elementary_Cursors.h. If an invalid name is set
13857     * the default cursor will be used.
13858     *
13859     * @param obj the object being set a cursor.
13860     * @param cursor the cursor name to be used.
13861     *
13862     * @ingroup Cursors
13863     */
13864    EAPI void         elm_object_cursor_set(Evas_Object *obj, const char *cursor) EINA_ARG_NONNULL(1);
13865
13866    /**
13867     * Get the cursor to be shown when mouse is over the object
13868     *
13869     * @param obj an object with cursor already set.
13870     * @return the cursor name.
13871     *
13872     * @ingroup Cursors
13873     */
13874    EAPI const char  *elm_object_cursor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13875
13876    /**
13877     * Unset cursor for object
13878     *
13879     * Unset cursor for object, and set the cursor to default if the mouse
13880     * was over this object.
13881     *
13882     * @param obj Target object
13883     * @see elm_object_cursor_set()
13884     *
13885     * @ingroup Cursors
13886     */
13887    EAPI void         elm_object_cursor_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
13888
13889    /**
13890     * Sets a different style for this object cursor.
13891     *
13892     * @note before you set a style you should define a cursor with
13893     *       elm_object_cursor_set()
13894     *
13895     * @param obj an object with cursor already set.
13896     * @param style the theme style to use (default, transparent, ...)
13897     *
13898     * @ingroup Cursors
13899     */
13900    EAPI void         elm_object_cursor_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
13901
13902    /**
13903     * Get the style for this object cursor.
13904     *
13905     * @param obj an object with cursor already set.
13906     * @return style the theme style in use, defaults to "default". If the
13907     *         object does not have a cursor set, then NULL is returned.
13908     *
13909     * @ingroup Cursors
13910     */
13911    EAPI const char  *elm_object_cursor_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13912
13913    /**
13914     * Set if the cursor set should be searched on the theme or should use
13915     * the provided by the engine, only.
13916     *
13917     * @note before you set if should look on theme you should define a cursor
13918     * with elm_object_cursor_set(). By default it will only look for cursors
13919     * provided by the engine.
13920     *
13921     * @param obj an object with cursor already set.
13922     * @param engine_only boolean to define it cursors should be looked only
13923     * between the provided by the engine or searched on widget's theme as well.
13924     *
13925     * @ingroup Cursors
13926     */
13927    EAPI void         elm_object_cursor_engine_only_set(Evas_Object *obj, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
13928
13929    /**
13930     * Get the cursor engine only usage for this object cursor.
13931     *
13932     * @param obj an object with cursor already set.
13933     * @return engine_only boolean to define it cursors should be
13934     * looked only between the provided by the engine or searched on
13935     * widget's theme as well. If the object does not have a cursor
13936     * set, then EINA_FALSE is returned.
13937     *
13938     * @ingroup Cursors
13939     */
13940    EAPI Eina_Bool    elm_object_cursor_engine_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13941
13942    /**
13943     * Get the configured cursor engine only usage
13944     *
13945     * This gets the globally configured exclusive usage of engine cursors.
13946     *
13947     * @return 1 if only engine cursors should be used
13948     * @ingroup Cursors
13949     */
13950    EAPI int          elm_cursor_engine_only_get(void);
13951
13952    /**
13953     * Set the configured cursor engine only usage
13954     *
13955     * This sets the globally configured exclusive usage of engine cursors.
13956     * It won't affect cursors set before changing this value.
13957     *
13958     * @param engine_only If 1 only engine cursors will be enabled, if 0 will
13959     * look for them on theme before.
13960     * @return EINA_TRUE if value is valid and setted (0 or 1)
13961     * @ingroup Cursors
13962     */
13963    EAPI Eina_Bool    elm_cursor_engine_only_set(int engine_only);
13964
13965    /**
13966     * @}
13967     */
13968
13969    /**
13970     * @defgroup Menu Menu
13971     *
13972     * @image html img/widget/menu/preview-00.png
13973     * @image latex img/widget/menu/preview-00.eps
13974     *
13975     * A menu is a list of items displayed above its parent. When the menu is
13976     * showing its parent is darkened. Each item can have a sub-menu. The menu
13977     * object can be used to display a menu on a right click event, in a toolbar,
13978     * anywhere.
13979     *
13980     * Signals that you can add callbacks for are:
13981     * @li "clicked" - the user clicked the empty space in the menu to dismiss.
13982     *             event_info is NULL.
13983     *
13984     * @see @ref tutorial_menu
13985     * @{
13986     */
13987    typedef struct _Elm_Menu_Item Elm_Menu_Item; /**< Item of Elm_Menu. Sub-type of Elm_Widget_Item */
13988    /**
13989     * @brief Add a new menu to the parent
13990     *
13991     * @param parent The parent object.
13992     * @return The new object or NULL if it cannot be created.
13993     */
13994    EAPI Evas_Object       *elm_menu_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13995    /**
13996     * @brief Set the parent for the given menu widget
13997     *
13998     * @param obj The menu object.
13999     * @param parent The new parent.
14000     */
14001    EAPI void               elm_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
14002    /**
14003     * @brief Get the parent for the given menu widget
14004     *
14005     * @param obj The menu object.
14006     * @return The parent.
14007     *
14008     * @see elm_menu_parent_set()
14009     */
14010    EAPI Evas_Object       *elm_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14011    /**
14012     * @brief Move the menu to a new position
14013     *
14014     * @param obj The menu object.
14015     * @param x The new position.
14016     * @param y The new position.
14017     *
14018     * Sets the top-left position of the menu to (@p x,@p y).
14019     *
14020     * @note @p x and @p y coordinates are relative to parent.
14021     */
14022    EAPI void               elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
14023    /**
14024     * @brief Close a opened menu
14025     *
14026     * @param obj the menu object
14027     * @return void
14028     *
14029     * Hides the menu and all it's sub-menus.
14030     */
14031    EAPI void               elm_menu_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
14032    /**
14033     * @brief Returns a list of @p item's items.
14034     *
14035     * @param obj The menu object
14036     * @return An Eina_List* of @p item's items
14037     */
14038    EAPI const Eina_List   *elm_menu_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14039    /**
14040     * @brief Get the Evas_Object of an Elm_Menu_Item
14041     *
14042     * @param item The menu item object.
14043     * @return The edje object containing the swallowed content
14044     *
14045     * @warning Don't manipulate this object!
14046     */
14047    EAPI Evas_Object       *elm_menu_item_object_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14048    /**
14049     * @brief Add an item at the end of the given menu widget
14050     *
14051     * @param obj The menu object.
14052     * @param parent The parent menu item (optional)
14053     * @param icon A icon display on the item. The icon will be destryed by the menu.
14054     * @param label The label of the item.
14055     * @param func Function called when the user select the item.
14056     * @param data Data sent by the callback.
14057     * @return Returns the new item.
14058     */
14059    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);
14060    /**
14061     * @brief Add an object swallowed in an item at the end of the given menu
14062     * widget
14063     *
14064     * @param obj The menu object.
14065     * @param parent The parent menu item (optional)
14066     * @param subobj The object to swallow
14067     * @param func Function called when the user select the item.
14068     * @param data Data sent by the callback.
14069     * @return Returns the new item.
14070     *
14071     * Add an evas object as an item to the menu.
14072     */
14073    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);
14074    /**
14075     * @brief Set the label of a menu item
14076     *
14077     * @param item The menu item object.
14078     * @param label The label to set for @p item
14079     *
14080     * @warning Don't use this funcion on items created with
14081     * elm_menu_item_add_object() or elm_menu_item_separator_add().
14082     */
14083    EAPI void               elm_menu_item_label_set(Elm_Menu_Item *item, const char *label) EINA_ARG_NONNULL(1);
14084    /**
14085     * @brief Get the label of a menu item
14086     *
14087     * @param item The menu item object.
14088     * @return The label of @p item
14089     */
14090    EAPI const char        *elm_menu_item_label_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14091    /**
14092     * @brief Set the icon of a menu item to the standard icon with name @p icon
14093     *
14094     * @param item The menu item object.
14095     * @param icon The icon object to set for the content of @p item
14096     *
14097     * Once this icon is set, any previously set icon will be deleted.
14098     */
14099    EAPI void               elm_menu_item_object_icon_name_set(Elm_Menu_Item *item, const char *icon) EINA_ARG_NONNULL(1, 2);
14100    /**
14101     * @brief Get the string representation from the icon of a menu item
14102     *
14103     * @param item The menu item object.
14104     * @return The string representation of @p item's icon or NULL
14105     *
14106     * @see elm_menu_item_object_icon_name_set()
14107     */
14108    EAPI const char        *elm_menu_item_object_icon_name_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14109    /**
14110     * @brief Set the content object of a menu item
14111     *
14112     * @param item The menu item object
14113     * @param The content object or NULL
14114     * @return EINA_TRUE on success, else EINA_FALSE
14115     *
14116     * Use this function to change the object swallowed by a menu item, deleting
14117     * any previously swallowed object.
14118     */
14119    EAPI Eina_Bool          elm_menu_item_object_content_set(Elm_Menu_Item *item, Evas_Object *obj) EINA_ARG_NONNULL(1);
14120    /**
14121     * @brief Get the content object of a menu item
14122     *
14123     * @param item The menu item object
14124     * @return The content object or NULL
14125     * @note If @p item was added with elm_menu_item_add_object, this
14126     * function will return the object passed, else it will return the
14127     * icon object.
14128     *
14129     * @see elm_menu_item_object_content_set()
14130     */
14131    EAPI Evas_Object *elm_menu_item_object_content_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14132    /**
14133     * @brief Set the selected state of @p item.
14134     *
14135     * @param item The menu item object.
14136     * @param selected The selected/unselected state of the item
14137     */
14138    EAPI void               elm_menu_item_selected_set(Elm_Menu_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
14139    /**
14140     * @brief Get the selected state of @p item.
14141     *
14142     * @param item The menu item object.
14143     * @return The selected/unselected state of the item
14144     *
14145     * @see elm_menu_item_selected_set()
14146     */
14147    EAPI Eina_Bool          elm_menu_item_selected_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14148    /**
14149     * @brief Set the disabled state of @p item.
14150     *
14151     * @param item The menu item object.
14152     * @param disabled The enabled/disabled state of the item
14153     */
14154    EAPI void               elm_menu_item_disabled_set(Elm_Menu_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
14155    /**
14156     * @brief Get the disabled state of @p item.
14157     *
14158     * @param item The menu item object.
14159     * @return The enabled/disabled state of the item
14160     *
14161     * @see elm_menu_item_disabled_set()
14162     */
14163    EAPI Eina_Bool          elm_menu_item_disabled_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14164    /**
14165     * @brief Add a separator item to menu @p obj under @p parent.
14166     *
14167     * @param obj The menu object
14168     * @param parent The item to add the separator under
14169     * @return The created item or NULL on failure
14170     *
14171     * This is item is a @ref Separator.
14172     */
14173    EAPI Elm_Menu_Item     *elm_menu_item_separator_add(Evas_Object *obj, Elm_Menu_Item *parent) EINA_ARG_NONNULL(1);
14174    /**
14175     * @brief Returns whether @p item is a separator.
14176     *
14177     * @param item The item to check
14178     * @return If true, @p item is a separator
14179     *
14180     * @see elm_menu_item_separator_add()
14181     */
14182    EAPI Eina_Bool          elm_menu_item_is_separator(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14183    /**
14184     * @brief Deletes an item from the menu.
14185     *
14186     * @param item The item to delete.
14187     *
14188     * @see elm_menu_item_add()
14189     */
14190    EAPI void               elm_menu_item_del(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14191    /**
14192     * @brief Set the function called when a menu item is deleted.
14193     *
14194     * @param item The item to set the callback on
14195     * @param func The function called
14196     *
14197     * @see elm_menu_item_add()
14198     * @see elm_menu_item_del()
14199     */
14200    EAPI void               elm_menu_item_del_cb_set(Elm_Menu_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
14201    /**
14202     * @brief Returns the data associated with menu item @p item.
14203     *
14204     * @param item The item
14205     * @return The data associated with @p item or NULL if none was set.
14206     *
14207     * This is the data set with elm_menu_add() or elm_menu_item_data_set().
14208     */
14209    EAPI void              *elm_menu_item_data_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14210    /**
14211     * @brief Sets the data to be associated with menu item @p item.
14212     *
14213     * @param item The item
14214     * @param data The data to be associated with @p item
14215     */
14216    EAPI void               elm_menu_item_data_set(Elm_Menu_Item *item, const void *data) EINA_ARG_NONNULL(1);
14217    /**
14218     * @brief Returns a list of @p item's subitems.
14219     *
14220     * @param item The item
14221     * @return An Eina_List* of @p item's subitems
14222     *
14223     * @see elm_menu_add()
14224     */
14225    EAPI const Eina_List   *elm_menu_item_subitems_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14226    /**
14227     * @brief Get the position of a menu item
14228     *
14229     * @param item The menu item
14230     * @return The item's index
14231     *
14232     * This function returns the index position of a menu item in a menu.
14233     * For a sub-menu, this number is relative to the first item in the sub-menu.
14234     *
14235     * @note Index values begin with 0
14236     */
14237    EAPI unsigned int       elm_menu_item_index_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
14238    /**
14239     * @brief @brief Return a menu item's owner menu
14240     *
14241     * @param item The menu item
14242     * @return The menu object owning @p item, or NULL on failure
14243     *
14244     * Use this function to get the menu object owning an item.
14245     */
14246    EAPI Evas_Object       *elm_menu_item_menu_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
14247    /**
14248     * @brief Get the selected item in the menu
14249     *
14250     * @param obj The menu object
14251     * @return The selected item, or NULL if none
14252     *
14253     * @see elm_menu_item_selected_get()
14254     * @see elm_menu_item_selected_set()
14255     */
14256    EAPI Elm_Menu_Item *elm_menu_selected_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
14257    /**
14258     * @brief Get the last item in the menu
14259     *
14260     * @param obj The menu object
14261     * @return The last item, or NULL if none
14262     */
14263    EAPI Elm_Menu_Item *elm_menu_last_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
14264    /**
14265     * @brief Get the first item in the menu
14266     *
14267     * @param obj The menu object
14268     * @return The first item, or NULL if none
14269     */
14270    EAPI Elm_Menu_Item *elm_menu_first_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
14271    /**
14272     * @brief Get the next item in the menu.
14273     *
14274     * @param item The menu item object.
14275     * @return The item after it, or NULL if none
14276     */
14277    EAPI Elm_Menu_Item *elm_menu_item_next_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14278    /**
14279     * @brief Get the previous item in the menu.
14280     *
14281     * @param item The menu item object.
14282     * @return The item before it, or NULL if none
14283     */
14284    EAPI Elm_Menu_Item *elm_menu_item_prev_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14285    /**
14286     * @}
14287     */
14288
14289    /**
14290     * @defgroup List List
14291     * @ingroup Elementary
14292     *
14293     * @image html img/widget/list/preview-00.png
14294     * @image latex img/widget/list/preview-00.eps width=\textwidth
14295     *
14296     * @image html img/list.png
14297     * @image latex img/list.eps width=\textwidth
14298     *
14299     * A list widget is a container whose children are displayed vertically or
14300     * horizontally, in order, and can be selected.
14301     * The list can accept only one or multiple items selection. Also has many
14302     * modes of items displaying.
14303     *
14304     * A list is a very simple type of list widget.  For more robust
14305     * lists, @ref Genlist should probably be used.
14306     *
14307     * Smart callbacks one can listen to:
14308     * - @c "activated" - The user has double-clicked or pressed
14309     *   (enter|return|spacebar) on an item. The @c event_info parameter
14310     *   is the item that was activated.
14311     * - @c "clicked,double" - The user has double-clicked an item.
14312     *   The @c event_info parameter is the item that was double-clicked.
14313     * - "selected" - when the user selected an item
14314     * - "unselected" - when the user unselected an item
14315     * - "longpressed" - an item in the list is long-pressed
14316     * - "scroll,edge,top" - the list is scrolled until the top edge
14317     * - "scroll,edge,bottom" - the list is scrolled until the bottom edge
14318     * - "scroll,edge,left" - the list is scrolled until the left edge
14319     * - "scroll,edge,right" - the list is scrolled until the right edge
14320     *
14321     * Available styles for it:
14322     * - @c "default"
14323     *
14324     * List of examples:
14325     * @li @ref list_example_01
14326     * @li @ref list_example_02
14327     * @li @ref list_example_03
14328     */
14329
14330    /**
14331     * @addtogroup List
14332     * @{
14333     */
14334
14335    /**
14336     * @enum _Elm_List_Mode
14337     * @typedef Elm_List_Mode
14338     *
14339     * Set list's resize behavior, transverse axis scroll and
14340     * items cropping. See each mode's description for more details.
14341     *
14342     * @note Default value is #ELM_LIST_SCROLL.
14343     *
14344     * Values <b> don't </b> work as bitmask, only one can be choosen.
14345     *
14346     * @see elm_list_mode_set()
14347     * @see elm_list_mode_get()
14348     *
14349     * @ingroup List
14350     */
14351    typedef enum _Elm_List_Mode
14352      {
14353         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. */
14354         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). */
14355         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. */
14356         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. */
14357         ELM_LIST_LAST /**< Indicates error if returned by elm_list_mode_get() */
14358      } Elm_List_Mode;
14359
14360    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().  */
14361
14362    /**
14363     * Add a new list widget to the given parent Elementary
14364     * (container) object.
14365     *
14366     * @param parent The parent object.
14367     * @return a new list widget handle or @c NULL, on errors.
14368     *
14369     * This function inserts a new list widget on the canvas.
14370     *
14371     * @ingroup List
14372     */
14373    EAPI Evas_Object     *elm_list_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14374
14375    /**
14376     * Starts the list.
14377     *
14378     * @param obj The list object
14379     *
14380     * @note Call before running show() on the list object.
14381     * @warning If not called, it won't display the list properly.
14382     *
14383     * @code
14384     * li = elm_list_add(win);
14385     * elm_list_item_append(li, "First", NULL, NULL, NULL, NULL);
14386     * elm_list_item_append(li, "Second", NULL, NULL, NULL, NULL);
14387     * elm_list_go(li);
14388     * evas_object_show(li);
14389     * @endcode
14390     *
14391     * @ingroup List
14392     */
14393    EAPI void             elm_list_go(Evas_Object *obj) EINA_ARG_NONNULL(1);
14394
14395    /**
14396     * Enable or disable multiple items selection on the list object.
14397     *
14398     * @param obj The list object
14399     * @param multi @c EINA_TRUE to enable multi selection or @c EINA_FALSE to
14400     * disable it.
14401     *
14402     * Disabled by default. If disabled, the user can select a single item of
14403     * the list each time. Selected items are highlighted on list.
14404     * If enabled, many items can be selected.
14405     *
14406     * If a selected item is selected again, it will be unselected.
14407     *
14408     * @see elm_list_multi_select_get()
14409     *
14410     * @ingroup List
14411     */
14412    EAPI void             elm_list_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
14413
14414    /**
14415     * Get a value whether multiple items selection is enabled or not.
14416     *
14417     * @see elm_list_multi_select_set() for details.
14418     *
14419     * @param obj The list object.
14420     * @return @c EINA_TRUE means multiple items selection is enabled.
14421     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
14422     * @c EINA_FALSE is returned.
14423     *
14424     * @ingroup List
14425     */
14426    EAPI Eina_Bool        elm_list_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14427
14428    /**
14429     * Set which mode to use for the list object.
14430     *
14431     * @param obj The list object
14432     * @param mode One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
14433     * #ELM_LIST_LIMIT or #ELM_LIST_EXPAND.
14434     *
14435     * Set list's resize behavior, transverse axis scroll and
14436     * items cropping. See each mode's description for more details.
14437     *
14438     * @note Default value is #ELM_LIST_SCROLL.
14439     *
14440     * Only one can be set, if a previous one was set, it will be changed
14441     * by the new mode set. Bitmask won't work as well.
14442     *
14443     * @see elm_list_mode_get()
14444     *
14445     * @ingroup List
14446     */
14447    EAPI void             elm_list_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
14448
14449    /**
14450     * Get the mode the list is at.
14451     *
14452     * @param obj The list object
14453     * @return One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
14454     * #ELM_LIST_LIMIT, #ELM_LIST_EXPAND or #ELM_LIST_LAST on errors.
14455     *
14456     * @note see elm_list_mode_set() for more information.
14457     *
14458     * @ingroup List
14459     */
14460    EAPI Elm_List_Mode    elm_list_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14461
14462    /**
14463     * Enable or disable horizontal mode on the list object.
14464     *
14465     * @param obj The list object.
14466     * @param horizontal @c EINA_TRUE to enable horizontal or @c EINA_FALSE to
14467     * disable it, i.e., to enable vertical mode.
14468     *
14469     * @note Vertical mode is set by default.
14470     *
14471     * On horizontal mode items are displayed on list from left to right,
14472     * instead of from top to bottom. Also, the list will scroll horizontally.
14473     * Each item will presents left icon on top and right icon, or end, at
14474     * the bottom.
14475     *
14476     * @see elm_list_horizontal_get()
14477     *
14478     * @ingroup List
14479     */
14480    EAPI void             elm_list_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
14481
14482    /**
14483     * Get a value whether horizontal mode is enabled or not.
14484     *
14485     * @param obj The list object.
14486     * @return @c EINA_TRUE means horizontal mode selection is enabled.
14487     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
14488     * @c EINA_FALSE is returned.
14489     *
14490     * @see elm_list_horizontal_set() for details.
14491     *
14492     * @ingroup List
14493     */
14494    EAPI Eina_Bool        elm_list_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14495
14496    /**
14497     * Enable or disable always select mode on the list object.
14498     *
14499     * @param obj The list object
14500     * @param always_select @c EINA_TRUE to enable always select mode or
14501     * @c EINA_FALSE to disable it.
14502     *
14503     * @note Always select mode is disabled by default.
14504     *
14505     * Default behavior of list items is to only call its callback function
14506     * the first time it's pressed, i.e., when it is selected. If a selected
14507     * item is pressed again, and multi-select is disabled, it won't call
14508     * this function (if multi-select is enabled it will unselect the item).
14509     *
14510     * If always select is enabled, it will call the callback function
14511     * everytime a item is pressed, so it will call when the item is selected,
14512     * and again when a selected item is pressed.
14513     *
14514     * @see elm_list_always_select_mode_get()
14515     * @see elm_list_multi_select_set()
14516     *
14517     * @ingroup List
14518     */
14519    EAPI void             elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
14520
14521    /**
14522     * Get a value whether always select mode is enabled or not, meaning that
14523     * an item will always call its callback function, even if already selected.
14524     *
14525     * @param obj The list object
14526     * @return @c EINA_TRUE means horizontal mode selection is enabled.
14527     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
14528     * @c EINA_FALSE is returned.
14529     *
14530     * @see elm_list_always_select_mode_set() for details.
14531     *
14532     * @ingroup List
14533     */
14534    EAPI Eina_Bool        elm_list_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14535
14536    /**
14537     * Set bouncing behaviour when the scrolled content reaches an edge.
14538     *
14539     * Tell the internal scroller object whether it should bounce or not
14540     * when it reaches the respective edges for each axis.
14541     *
14542     * @param obj The list object
14543     * @param h_bounce Whether to bounce or not in the horizontal axis.
14544     * @param v_bounce Whether to bounce or not in the vertical axis.
14545     *
14546     * @see elm_scroller_bounce_set()
14547     *
14548     * @ingroup List
14549     */
14550    EAPI void             elm_list_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
14551
14552    /**
14553     * Get the bouncing behaviour of the internal scroller.
14554     *
14555     * Get whether the internal scroller should bounce when the edge of each
14556     * axis is reached scrolling.
14557     *
14558     * @param obj The list object.
14559     * @param h_bounce Pointer where to store the bounce state of the horizontal
14560     * axis.
14561     * @param v_bounce Pointer where to store the bounce state of the vertical
14562     * axis.
14563     *
14564     * @see elm_scroller_bounce_get()
14565     * @see elm_list_bounce_set()
14566     *
14567     * @ingroup List
14568     */
14569    EAPI void             elm_list_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
14570
14571    /**
14572     * Set the scrollbar policy.
14573     *
14574     * @param obj The list object
14575     * @param policy_h Horizontal scrollbar policy.
14576     * @param policy_v Vertical scrollbar policy.
14577     *
14578     * This sets the scrollbar visibility policy for the given scroller.
14579     * #ELM_SCROLLER_POLICY_AUTO means the scrollber is made visible if it
14580     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
14581     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
14582     * This applies respectively for the horizontal and vertical scrollbars.
14583     *
14584     * The both are disabled by default, i.e., are set to
14585     * #ELM_SCROLLER_POLICY_OFF.
14586     *
14587     * @ingroup List
14588     */
14589    EAPI void             elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
14590
14591    /**
14592     * Get the scrollbar policy.
14593     *
14594     * @see elm_list_scroller_policy_get() for details.
14595     *
14596     * @param obj The list object.
14597     * @param policy_h Pointer where to store horizontal scrollbar policy.
14598     * @param policy_v Pointer where to store vertical scrollbar policy.
14599     *
14600     * @ingroup List
14601     */
14602    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);
14603
14604    /**
14605     * Append a new item to the list object.
14606     *
14607     * @param obj The list object.
14608     * @param label The label of the list item.
14609     * @param icon The icon object to use for the left side of the item. An
14610     * icon can be any Evas object, but usually it is an icon created
14611     * with elm_icon_add().
14612     * @param end The icon object to use for the right side of the item. An
14613     * icon can be any Evas object.
14614     * @param func The function to call when the item is clicked.
14615     * @param data The data to associate with the item for related callbacks.
14616     *
14617     * @return The created item or @c NULL upon failure.
14618     *
14619     * A new item will be created and appended to the list, i.e., will
14620     * be set as @b last item.
14621     *
14622     * Items created with this method can be deleted with
14623     * elm_list_item_del().
14624     *
14625     * Associated @p data can be properly freed when item is deleted if a
14626     * callback function is set with elm_list_item_del_cb_set().
14627     *
14628     * If a function is passed as argument, it will be called everytime this item
14629     * is selected, i.e., the user clicks over an unselected item.
14630     * If always select is enabled it will call this function every time
14631     * user clicks over an item (already selected or not).
14632     * If such function isn't needed, just passing
14633     * @c NULL as @p func is enough. The same should be done for @p data.
14634     *
14635     * Simple example (with no function callback or data associated):
14636     * @code
14637     * li = elm_list_add(win);
14638     * ic = elm_icon_add(win);
14639     * elm_icon_file_set(ic, "path/to/image", NULL);
14640     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
14641     * elm_list_item_append(li, "label", ic, NULL, NULL, NULL);
14642     * elm_list_go(li);
14643     * evas_object_show(li);
14644     * @endcode
14645     *
14646     * @see elm_list_always_select_mode_set()
14647     * @see elm_list_item_del()
14648     * @see elm_list_item_del_cb_set()
14649     * @see elm_list_clear()
14650     * @see elm_icon_add()
14651     *
14652     * @ingroup List
14653     */
14654    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);
14655
14656    /**
14657     * Prepend a new item to the list object.
14658     *
14659     * @param obj The list object.
14660     * @param label The label of the list item.
14661     * @param icon The icon object to use for the left side of the item. An
14662     * icon can be any Evas object, but usually it is an icon created
14663     * with elm_icon_add().
14664     * @param end The icon object to use for the right side of the item. An
14665     * icon can be any Evas object.
14666     * @param func The function to call when the item is clicked.
14667     * @param data The data to associate with the item for related callbacks.
14668     *
14669     * @return The created item or @c NULL upon failure.
14670     *
14671     * A new item will be created and prepended to the list, i.e., will
14672     * be set as @b first item.
14673     *
14674     * Items created with this method can be deleted with
14675     * elm_list_item_del().
14676     *
14677     * Associated @p data can be properly freed when item is deleted if a
14678     * callback function is set with elm_list_item_del_cb_set().
14679     *
14680     * If a function is passed as argument, it will be called everytime this item
14681     * is selected, i.e., the user clicks over an unselected item.
14682     * If always select is enabled it will call this function every time
14683     * user clicks over an item (already selected or not).
14684     * If such function isn't needed, just passing
14685     * @c NULL as @p func is enough. The same should be done for @p data.
14686     *
14687     * @see elm_list_item_append() for a simple code example.
14688     * @see elm_list_always_select_mode_set()
14689     * @see elm_list_item_del()
14690     * @see elm_list_item_del_cb_set()
14691     * @see elm_list_clear()
14692     * @see elm_icon_add()
14693     *
14694     * @ingroup List
14695     */
14696    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);
14697
14698    /**
14699     * Insert a new item into the list object before item @p before.
14700     *
14701     * @param obj The list object.
14702     * @param before The list item to insert before.
14703     * @param label The label of the list item.
14704     * @param icon The icon object to use for the left side of the item. An
14705     * icon can be any Evas object, but usually it is an icon created
14706     * with elm_icon_add().
14707     * @param end The icon object to use for the right side of the item. An
14708     * icon can be any Evas object.
14709     * @param func The function to call when the item is clicked.
14710     * @param data The data to associate with the item for related callbacks.
14711     *
14712     * @return The created item or @c NULL upon failure.
14713     *
14714     * A new item will be created and added to the list. Its position in
14715     * this list will be just before item @p before.
14716     *
14717     * Items created with this method can be deleted with
14718     * elm_list_item_del().
14719     *
14720     * Associated @p data can be properly freed when item is deleted if a
14721     * callback function is set with elm_list_item_del_cb_set().
14722     *
14723     * If a function is passed as argument, it will be called everytime this item
14724     * is selected, i.e., the user clicks over an unselected item.
14725     * If always select is enabled it will call this function every time
14726     * user clicks over an item (already selected or not).
14727     * If such function isn't needed, just passing
14728     * @c NULL as @p func is enough. The same should be done for @p data.
14729     *
14730     * @see elm_list_item_append() for a simple code example.
14731     * @see elm_list_always_select_mode_set()
14732     * @see elm_list_item_del()
14733     * @see elm_list_item_del_cb_set()
14734     * @see elm_list_clear()
14735     * @see elm_icon_add()
14736     *
14737     * @ingroup List
14738     */
14739    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);
14740
14741    /**
14742     * Insert a new item into the list object after item @p after.
14743     *
14744     * @param obj The list object.
14745     * @param after The list item to insert after.
14746     * @param label The label of the list item.
14747     * @param icon The icon object to use for the left side of the item. An
14748     * icon can be any Evas object, but usually it is an icon created
14749     * with elm_icon_add().
14750     * @param end The icon object to use for the right side of the item. An
14751     * icon can be any Evas object.
14752     * @param func The function to call when the item is clicked.
14753     * @param data The data to associate with the item for related callbacks.
14754     *
14755     * @return The created item or @c NULL upon failure.
14756     *
14757     * A new item will be created and added to the list. Its position in
14758     * this list will be just after item @p after.
14759     *
14760     * Items created with this method can be deleted with
14761     * elm_list_item_del().
14762     *
14763     * Associated @p data can be properly freed when item is deleted if a
14764     * callback function is set with elm_list_item_del_cb_set().
14765     *
14766     * If a function is passed as argument, it will be called everytime this item
14767     * is selected, i.e., the user clicks over an unselected item.
14768     * If always select is enabled it will call this function every time
14769     * user clicks over an item (already selected or not).
14770     * If such function isn't needed, just passing
14771     * @c NULL as @p func is enough. The same should be done for @p data.
14772     *
14773     * @see elm_list_item_append() for a simple code example.
14774     * @see elm_list_always_select_mode_set()
14775     * @see elm_list_item_del()
14776     * @see elm_list_item_del_cb_set()
14777     * @see elm_list_clear()
14778     * @see elm_icon_add()
14779     *
14780     * @ingroup List
14781     */
14782    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);
14783
14784    /**
14785     * Insert a new item into the sorted list object.
14786     *
14787     * @param obj The list object.
14788     * @param label The label of the list item.
14789     * @param icon The icon object to use for the left side of the item. An
14790     * icon can be any Evas object, but usually it is an icon created
14791     * with elm_icon_add().
14792     * @param end The icon object to use for the right side of the item. An
14793     * icon can be any Evas object.
14794     * @param func The function to call when the item is clicked.
14795     * @param data The data to associate with the item for related callbacks.
14796     * @param cmp_func The comparing function to be used to sort list
14797     * items <b>by #Elm_List_Item item handles</b>. This function will
14798     * receive two items and compare them, returning a non-negative integer
14799     * if the second item should be place after the first, or negative value
14800     * if should be placed before.
14801     *
14802     * @return The created item or @c NULL upon failure.
14803     *
14804     * @note This function inserts values into a list object assuming it was
14805     * sorted and the result will be sorted.
14806     *
14807     * A new item will be created and added to the list. Its position in
14808     * this list will be found comparing the new item with previously inserted
14809     * items using function @p cmp_func.
14810     *
14811     * Items created with this method can be deleted with
14812     * elm_list_item_del().
14813     *
14814     * Associated @p data can be properly freed when item is deleted if a
14815     * callback function is set with elm_list_item_del_cb_set().
14816     *
14817     * If a function is passed as argument, it will be called everytime this item
14818     * is selected, i.e., the user clicks over an unselected item.
14819     * If always select is enabled it will call this function every time
14820     * user clicks over an item (already selected or not).
14821     * If such function isn't needed, just passing
14822     * @c NULL as @p func is enough. The same should be done for @p data.
14823     *
14824     * @see elm_list_item_append() for a simple code example.
14825     * @see elm_list_always_select_mode_set()
14826     * @see elm_list_item_del()
14827     * @see elm_list_item_del_cb_set()
14828     * @see elm_list_clear()
14829     * @see elm_icon_add()
14830     *
14831     * @ingroup List
14832     */
14833    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);
14834
14835    /**
14836     * Remove all list's items.
14837     *
14838     * @param obj The list object
14839     *
14840     * @see elm_list_item_del()
14841     * @see elm_list_item_append()
14842     *
14843     * @ingroup List
14844     */
14845    EAPI void             elm_list_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
14846
14847    /**
14848     * Get a list of all the list items.
14849     *
14850     * @param obj The list object
14851     * @return An @c Eina_List of list items, #Elm_List_Item,
14852     * or @c NULL on failure.
14853     *
14854     * @see elm_list_item_append()
14855     * @see elm_list_item_del()
14856     * @see elm_list_clear()
14857     *
14858     * @ingroup List
14859     */
14860    EAPI const Eina_List *elm_list_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14861
14862    /**
14863     * Get the selected item.
14864     *
14865     * @param obj The list object.
14866     * @return The selected list item.
14867     *
14868     * The selected item can be unselected with function
14869     * elm_list_item_selected_set().
14870     *
14871     * The selected item always will be highlighted on list.
14872     *
14873     * @see elm_list_selected_items_get()
14874     *
14875     * @ingroup List
14876     */
14877    EAPI Elm_List_Item   *elm_list_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14878
14879    /**
14880     * Return a list of the currently selected list items.
14881     *
14882     * @param obj The list object.
14883     * @return An @c Eina_List of list items, #Elm_List_Item,
14884     * or @c NULL on failure.
14885     *
14886     * Multiple items can be selected if multi select is enabled. It can be
14887     * done with elm_list_multi_select_set().
14888     *
14889     * @see elm_list_selected_item_get()
14890     * @see elm_list_multi_select_set()
14891     *
14892     * @ingroup List
14893     */
14894    EAPI const Eina_List *elm_list_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14895
14896    /**
14897     * Set the selected state of an item.
14898     *
14899     * @param item The list item
14900     * @param selected The selected state
14901     *
14902     * This sets the selected state of the given item @p it.
14903     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
14904     *
14905     * If a new item is selected the previosly selected will be unselected,
14906     * unless multiple selection is enabled with elm_list_multi_select_set().
14907     * Previoulsy selected item can be get with function
14908     * elm_list_selected_item_get().
14909     *
14910     * Selected items will be highlighted.
14911     *
14912     * @see elm_list_item_selected_get()
14913     * @see elm_list_selected_item_get()
14914     * @see elm_list_multi_select_set()
14915     *
14916     * @ingroup List
14917     */
14918    EAPI void             elm_list_item_selected_set(Elm_List_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
14919
14920    /*
14921     * Get whether the @p item is selected or not.
14922     *
14923     * @param item The list item.
14924     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
14925     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
14926     *
14927     * @see elm_list_selected_item_set() for details.
14928     * @see elm_list_item_selected_get()
14929     *
14930     * @ingroup List
14931     */
14932    EAPI Eina_Bool        elm_list_item_selected_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
14933
14934    /**
14935     * Set or unset item as a separator.
14936     *
14937     * @param it The list item.
14938     * @param setting @c EINA_TRUE to set item @p it as separator or
14939     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
14940     *
14941     * Items aren't set as separator by default.
14942     *
14943     * If set as separator it will display separator theme, so won't display
14944     * icons or label.
14945     *
14946     * @see elm_list_item_separator_get()
14947     *
14948     * @ingroup List
14949     */
14950    EAPI void             elm_list_item_separator_set(Elm_List_Item *it, Eina_Bool setting) EINA_ARG_NONNULL(1);
14951
14952    /**
14953     * Get a value whether item is a separator or not.
14954     *
14955     * @see elm_list_item_separator_set() for details.
14956     *
14957     * @param it The list item.
14958     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
14959     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
14960     *
14961     * @ingroup List
14962     */
14963    EAPI Eina_Bool        elm_list_item_separator_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
14964
14965    /**
14966     * Show @p item in the list view.
14967     *
14968     * @param item The list item to be shown.
14969     *
14970     * It won't animate list until item is visible. If such behavior is wanted,
14971     * use elm_list_bring_in() intead.
14972     *
14973     * @ingroup List
14974     */
14975    EAPI void             elm_list_item_show(Elm_List_Item *item) EINA_ARG_NONNULL(1);
14976
14977    /**
14978     * Bring in the given item to list view.
14979     *
14980     * @param item The item.
14981     *
14982     * This causes list to jump to the given item @p item and show it
14983     * (by scrolling), if it is not fully visible.
14984     *
14985     * This may use animation to do so and take a period of time.
14986     *
14987     * If animation isn't wanted, elm_list_item_show() can be used.
14988     *
14989     * @ingroup List
14990     */
14991    EAPI void             elm_list_item_bring_in(Elm_List_Item *item) EINA_ARG_NONNULL(1);
14992
14993    /**
14994     * Delete them item from the list.
14995     *
14996     * @param item The item of list to be deleted.
14997     *
14998     * If deleting all list items is required, elm_list_clear()
14999     * should be used instead of getting items list and deleting each one.
15000     *
15001     * @see elm_list_clear()
15002     * @see elm_list_item_append()
15003     * @see elm_list_item_del_cb_set()
15004     *
15005     * @ingroup List
15006     */
15007    EAPI void             elm_list_item_del(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15008
15009    /**
15010     * Set the function called when a list item is freed.
15011     *
15012     * @param item The item to set the callback on
15013     * @param func The function called
15014     *
15015     * If there is a @p func, then it will be called prior item's memory release.
15016     * That will be called with the following arguments:
15017     * @li item's data;
15018     * @li item's Evas object;
15019     * @li item itself;
15020     *
15021     * This way, a data associated to a list item could be properly freed.
15022     *
15023     * @ingroup List
15024     */
15025    EAPI void             elm_list_item_del_cb_set(Elm_List_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
15026
15027    /**
15028     * Get the data associated to the item.
15029     *
15030     * @param item The list item
15031     * @return The data associated to @p item
15032     *
15033     * The return value is a pointer to data associated to @p item when it was
15034     * created, with function elm_list_item_append() or similar. If no data
15035     * was passed as argument, it will return @c NULL.
15036     *
15037     * @see elm_list_item_append()
15038     *
15039     * @ingroup List
15040     */
15041    EAPI void            *elm_list_item_data_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15042
15043    /**
15044     * Get the left side icon associated to the item.
15045     *
15046     * @param item The list item
15047     * @return The left side icon associated to @p item
15048     *
15049     * The return value is a pointer to the icon associated to @p item when
15050     * it was
15051     * created, with function elm_list_item_append() or similar, or later
15052     * with function elm_list_item_icon_set(). If no icon
15053     * was passed as argument, it will return @c NULL.
15054     *
15055     * @see elm_list_item_append()
15056     * @see elm_list_item_icon_set()
15057     *
15058     * @ingroup List
15059     */
15060    EAPI Evas_Object     *elm_list_item_icon_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15061
15062    /**
15063     * Set the left side icon associated to the item.
15064     *
15065     * @param item The list item
15066     * @param icon The left side icon object to associate with @p item
15067     *
15068     * The icon object to use at left side of the item. An
15069     * icon can be any Evas object, but usually it is an icon created
15070     * with elm_icon_add().
15071     *
15072     * Once the icon object is set, a previously set one will be deleted.
15073     * @warning Setting the same icon for two items will cause the icon to
15074     * dissapear from the first item.
15075     *
15076     * If an icon was passed as argument on item creation, with function
15077     * elm_list_item_append() or similar, it will be already
15078     * associated to the item.
15079     *
15080     * @see elm_list_item_append()
15081     * @see elm_list_item_icon_get()
15082     *
15083     * @ingroup List
15084     */
15085    EAPI void             elm_list_item_icon_set(Elm_List_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
15086
15087    /**
15088     * Get the right side icon associated to the item.
15089     *
15090     * @param item The list item
15091     * @return The right side icon associated to @p item
15092     *
15093     * The return value is a pointer to the icon associated to @p item when
15094     * it was
15095     * created, with function elm_list_item_append() or similar, or later
15096     * with function elm_list_item_icon_set(). If no icon
15097     * was passed as argument, it will return @c NULL.
15098     *
15099     * @see elm_list_item_append()
15100     * @see elm_list_item_icon_set()
15101     *
15102     * @ingroup List
15103     */
15104    EAPI Evas_Object     *elm_list_item_end_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15105
15106    /**
15107     * Set the right side icon associated to the item.
15108     *
15109     * @param item The list item
15110     * @param end The right side icon object to associate with @p item
15111     *
15112     * The icon object to use at right side of the item. An
15113     * icon can be any Evas object, but usually it is an icon created
15114     * with elm_icon_add().
15115     *
15116     * Once the icon object is set, a previously set one will be deleted.
15117     * @warning Setting the same icon for two items will cause the icon to
15118     * dissapear from the first item.
15119     *
15120     * If an icon was passed as argument on item creation, with function
15121     * elm_list_item_append() or similar, it will be already
15122     * associated to the item.
15123     *
15124     * @see elm_list_item_append()
15125     * @see elm_list_item_end_get()
15126     *
15127     * @ingroup List
15128     */
15129    EAPI void             elm_list_item_end_set(Elm_List_Item *item, Evas_Object *end) EINA_ARG_NONNULL(1);
15130
15131    /**
15132     * Gets the base object of the item.
15133     *
15134     * @param item The list item
15135     * @return The base object associated with @p item
15136     *
15137     * Base object is the @c Evas_Object that represents that item.
15138     *
15139     * @ingroup List
15140     */
15141    EAPI Evas_Object     *elm_list_item_base_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15142
15143    /**
15144     * Get the label of item.
15145     *
15146     * @param item The item of list.
15147     * @return The label of item.
15148     *
15149     * The return value is a pointer to the label associated to @p item when
15150     * it was created, with function elm_list_item_append(), or later
15151     * with function elm_list_item_label_set. If no label
15152     * was passed as argument, it will return @c NULL.
15153     *
15154     * @see elm_list_item_label_set() for more details.
15155     * @see elm_list_item_append()
15156     *
15157     * @ingroup List
15158     */
15159    EAPI const char      *elm_list_item_label_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15160
15161    /**
15162     * Set the label of item.
15163     *
15164     * @param item The item of list.
15165     * @param text The label of item.
15166     *
15167     * The label to be displayed by the item.
15168     * Label will be placed between left and right side icons (if set).
15169     *
15170     * If a label was passed as argument on item creation, with function
15171     * elm_list_item_append() or similar, it will be already
15172     * displayed by the item.
15173     *
15174     * @see elm_list_item_label_get()
15175     * @see elm_list_item_append()
15176     *
15177     * @ingroup List
15178     */
15179    EAPI void             elm_list_item_label_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
15180
15181
15182    /**
15183     * Get the item before @p it in list.
15184     *
15185     * @param it The list item.
15186     * @return The item before @p it, or @c NULL if none or on failure.
15187     *
15188     * @note If it is the first item, @c NULL will be returned.
15189     *
15190     * @see elm_list_item_append()
15191     * @see elm_list_items_get()
15192     *
15193     * @ingroup List
15194     */
15195    EAPI Elm_List_Item   *elm_list_item_prev(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15196
15197    /**
15198     * Get the item after @p it in list.
15199     *
15200     * @param it The list item.
15201     * @return The item after @p it, or @c NULL if none or on failure.
15202     *
15203     * @note If it is the last item, @c NULL will be returned.
15204     *
15205     * @see elm_list_item_append()
15206     * @see elm_list_items_get()
15207     *
15208     * @ingroup List
15209     */
15210    EAPI Elm_List_Item   *elm_list_item_next(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15211
15212    /**
15213     * Sets the disabled/enabled state of a list item.
15214     *
15215     * @param it The item.
15216     * @param disabled The disabled state.
15217     *
15218     * A disabled item cannot be selected or unselected. It will also
15219     * change its appearance (generally greyed out). This sets the
15220     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
15221     * enabled).
15222     *
15223     * @ingroup List
15224     */
15225    EAPI void             elm_list_item_disabled_set(Elm_List_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
15226
15227    /**
15228     * Get a value whether list item is disabled or not.
15229     *
15230     * @param it The item.
15231     * @return The disabled state.
15232     *
15233     * @see elm_list_item_disabled_set() for more details.
15234     *
15235     * @ingroup List
15236     */
15237    EAPI Eina_Bool        elm_list_item_disabled_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15238
15239    /**
15240     * Set the text to be shown in a given list item's tooltips.
15241     *
15242     * @param item Target item.
15243     * @param text The text to set in the content.
15244     *
15245     * Setup the text as tooltip to object. The item can have only one tooltip,
15246     * so any previous tooltip data - set with this function or
15247     * elm_list_item_tooltip_content_cb_set() - is removed.
15248     *
15249     * @see elm_object_tooltip_text_set() for more details.
15250     *
15251     * @ingroup List
15252     */
15253    EAPI void             elm_list_item_tooltip_text_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
15254
15255
15256    /**
15257     * @brief Disable size restrictions on an object's tooltip
15258     * @param item The tooltip's anchor object
15259     * @param disable If EINA_TRUE, size restrictions are disabled
15260     * @return EINA_FALSE on failure, EINA_TRUE on success
15261     *
15262     * This function allows a tooltip to expand beyond its parant window's canvas.
15263     * It will instead be limited only by the size of the display.
15264     */
15265    EAPI Eina_Bool        elm_list_item_tooltip_size_restrict_disable(Elm_List_Item *item, Eina_Bool disable) EINA_ARG_NONNULL(1);
15266    /**
15267     * @brief Retrieve size restriction state of an object's tooltip
15268     * @param obj The tooltip's anchor object
15269     * @return If EINA_TRUE, size restrictions are disabled
15270     *
15271     * This function returns whether a tooltip is allowed to expand beyond
15272     * its parant window's canvas.
15273     * It will instead be limited only by the size of the display.
15274     */
15275    EAPI Eina_Bool        elm_list_item_tooltip_size_restrict_disabled_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15276
15277    /**
15278     * Set the content to be shown in the tooltip item.
15279     *
15280     * Setup the tooltip to item. The item can have only one tooltip,
15281     * so any previous tooltip data is removed. @p func(with @p data) will
15282     * be called every time that need show the tooltip and it should
15283     * return a valid Evas_Object. This object is then managed fully by
15284     * tooltip system and is deleted when the tooltip is gone.
15285     *
15286     * @param item the list item being attached a tooltip.
15287     * @param func the function used to create the tooltip contents.
15288     * @param data what to provide to @a func as callback data/context.
15289     * @param del_cb called when data is not needed anymore, either when
15290     *        another callback replaces @a func, the tooltip is unset with
15291     *        elm_list_item_tooltip_unset() or the owner @a item
15292     *        dies. This callback receives as the first parameter the
15293     *        given @a data, and @c event_info is the item.
15294     *
15295     * @see elm_object_tooltip_content_cb_set() for more details.
15296     *
15297     * @ingroup List
15298     */
15299    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);
15300
15301    /**
15302     * Unset tooltip from item.
15303     *
15304     * @param item list item to remove previously set tooltip.
15305     *
15306     * Remove tooltip from item. The callback provided as del_cb to
15307     * elm_list_item_tooltip_content_cb_set() will be called to notify
15308     * it is not used anymore.
15309     *
15310     * @see elm_object_tooltip_unset() for more details.
15311     * @see elm_list_item_tooltip_content_cb_set()
15312     *
15313     * @ingroup List
15314     */
15315    EAPI void             elm_list_item_tooltip_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15316
15317    /**
15318     * Sets a different style for this item tooltip.
15319     *
15320     * @note before you set a style you should define a tooltip with
15321     *       elm_list_item_tooltip_content_cb_set() or
15322     *       elm_list_item_tooltip_text_set()
15323     *
15324     * @param item list item with tooltip already set.
15325     * @param style the theme style to use (default, transparent, ...)
15326     *
15327     * @see elm_object_tooltip_style_set() for more details.
15328     *
15329     * @ingroup List
15330     */
15331    EAPI void             elm_list_item_tooltip_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
15332
15333    /**
15334     * Get the style for this item tooltip.
15335     *
15336     * @param item list item with tooltip already set.
15337     * @return style the theme style in use, defaults to "default". If the
15338     *         object does not have a tooltip set, then NULL is returned.
15339     *
15340     * @see elm_object_tooltip_style_get() for more details.
15341     * @see elm_list_item_tooltip_style_set()
15342     *
15343     * @ingroup List
15344     */
15345    EAPI const char      *elm_list_item_tooltip_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15346
15347    /**
15348     * Set the type of mouse pointer/cursor decoration to be shown,
15349     * when the mouse pointer is over the given list widget item
15350     *
15351     * @param item list item to customize cursor on
15352     * @param cursor the cursor type's name
15353     *
15354     * This function works analogously as elm_object_cursor_set(), but
15355     * here the cursor's changing area is restricted to the item's
15356     * area, and not the whole widget's. Note that that item cursors
15357     * have precedence over widget cursors, so that a mouse over an
15358     * item with custom cursor set will always show @b that cursor.
15359     *
15360     * If this function is called twice for an object, a previously set
15361     * cursor will be unset on the second call.
15362     *
15363     * @see elm_object_cursor_set()
15364     * @see elm_list_item_cursor_get()
15365     * @see elm_list_item_cursor_unset()
15366     *
15367     * @ingroup List
15368     */
15369    EAPI void             elm_list_item_cursor_set(Elm_List_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
15370
15371    /*
15372     * Get the type of mouse pointer/cursor decoration set to be shown,
15373     * when the mouse pointer is over the given list widget item
15374     *
15375     * @param item list item with custom cursor set
15376     * @return the cursor type's name or @c NULL, if no custom cursors
15377     * were set to @p item (and on errors)
15378     *
15379     * @see elm_object_cursor_get()
15380     * @see elm_list_item_cursor_set()
15381     * @see elm_list_item_cursor_unset()
15382     *
15383     * @ingroup List
15384     */
15385    EAPI const char      *elm_list_item_cursor_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15386
15387    /**
15388     * Unset any custom mouse pointer/cursor decoration set to be
15389     * shown, when the mouse pointer is over the given list widget
15390     * item, thus making it show the @b default cursor again.
15391     *
15392     * @param item a list item
15393     *
15394     * Use this call to undo any custom settings on this item's cursor
15395     * decoration, bringing it back to defaults (no custom style set).
15396     *
15397     * @see elm_object_cursor_unset()
15398     * @see elm_list_item_cursor_set()
15399     *
15400     * @ingroup List
15401     */
15402    EAPI void             elm_list_item_cursor_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15403
15404    /**
15405     * Set a different @b style for a given custom cursor set for a
15406     * list item.
15407     *
15408     * @param item list item with custom cursor set
15409     * @param style the <b>theme style</b> to use (e.g. @c "default",
15410     * @c "transparent", etc)
15411     *
15412     * This function only makes sense when one is using custom mouse
15413     * cursor decorations <b>defined in a theme file</b>, which can have,
15414     * given a cursor name/type, <b>alternate styles</b> on it. It
15415     * works analogously as elm_object_cursor_style_set(), but here
15416     * applyed only to list item objects.
15417     *
15418     * @warning Before you set a cursor style you should have definen a
15419     *       custom cursor previously on the item, with
15420     *       elm_list_item_cursor_set()
15421     *
15422     * @see elm_list_item_cursor_engine_only_set()
15423     * @see elm_list_item_cursor_style_get()
15424     *
15425     * @ingroup List
15426     */
15427    EAPI void             elm_list_item_cursor_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
15428
15429    /**
15430     * Get the current @b style set for a given list item's custom
15431     * cursor
15432     *
15433     * @param item list item with custom cursor set.
15434     * @return style the cursor style in use. If the object does not
15435     *         have a cursor set, then @c NULL is returned.
15436     *
15437     * @see elm_list_item_cursor_style_set() for more details
15438     *
15439     * @ingroup List
15440     */
15441    EAPI const char      *elm_list_item_cursor_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15442
15443    /**
15444     * Set if the (custom)cursor for a given list item should be
15445     * searched in its theme, also, or should only rely on the
15446     * rendering engine.
15447     *
15448     * @param item item with custom (custom) cursor already set on
15449     * @param engine_only Use @c EINA_TRUE to have cursors looked for
15450     * only on those provided by the rendering engine, @c EINA_FALSE to
15451     * have them searched on the widget's theme, as well.
15452     *
15453     * @note This call is of use only if you've set a custom cursor
15454     * for list items, with elm_list_item_cursor_set().
15455     *
15456     * @note By default, cursors will only be looked for between those
15457     * provided by the rendering engine.
15458     *
15459     * @ingroup List
15460     */
15461    EAPI void             elm_list_item_cursor_engine_only_set(Elm_List_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
15462
15463    /**
15464     * Get if the (custom) cursor for a given list item is being
15465     * searched in its theme, also, or is only relying on the rendering
15466     * engine.
15467     *
15468     * @param item a list item
15469     * @return @c EINA_TRUE, if cursors are being looked for only on
15470     * those provided by the rendering engine, @c EINA_FALSE if they
15471     * are being searched on the widget's theme, as well.
15472     *
15473     * @see elm_list_item_cursor_engine_only_set(), for more details
15474     *
15475     * @ingroup List
15476     */
15477    EAPI Eina_Bool        elm_list_item_cursor_engine_only_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15478
15479    /**
15480     * @}
15481     */
15482
15483    /**
15484     * @defgroup Slider Slider
15485     * @ingroup Elementary
15486     *
15487     * @image html img/widget/slider/preview-00.png
15488     * @image latex img/widget/slider/preview-00.eps width=\textwidth
15489     *
15490     * The slider adds a dragable “slider” widget for selecting the value of
15491     * something within a range.
15492     *
15493     * A slider can be horizontal or vertical. It can contain an Icon and has a
15494     * primary label as well as a units label (that is formatted with floating
15495     * point values and thus accepts a printf-style format string, like
15496     * “%1.2f units”. There is also an indicator string that may be somewhere
15497     * else (like on the slider itself) that also accepts a format string like
15498     * units. Label, Icon Unit and Indicator strings/objects are optional.
15499     *
15500     * A slider may be inverted which means values invert, with high vales being
15501     * on the left or top and low values on the right or bottom (as opposed to
15502     * normally being low on the left or top and high on the bottom and right).
15503     *
15504     * The slider should have its minimum and maximum values set by the
15505     * application with  elm_slider_min_max_set() and value should also be set by
15506     * the application before use with  elm_slider_value_set(). The span of the
15507     * slider is its length (horizontally or vertically). This will be scaled by
15508     * the object or applications scaling factor. At any point code can query the
15509     * slider for its value with elm_slider_value_get().
15510     *
15511     * Smart callbacks one can listen to:
15512     * - "changed" - Whenever the slider value is changed by the user.
15513     * - "slider,drag,start" - dragging the slider indicator around has started.
15514     * - "slider,drag,stop" - dragging the slider indicator around has stopped.
15515     * - "delay,changed" - A short time after the value is changed by the user.
15516     * This will be called only when the user stops dragging for
15517     * a very short period or when they release their
15518     * finger/mouse, so it avoids possibly expensive reactions to
15519     * the value change.
15520     *
15521     * Available styles for it:
15522     * - @c "default"
15523     *
15524     * Here is an example on its usage:
15525     * @li @ref slider_example
15526     */
15527
15528    /**
15529     * @addtogroup Slider
15530     * @{
15531     */
15532
15533    /**
15534     * Add a new slider widget to the given parent Elementary
15535     * (container) object.
15536     *
15537     * @param parent The parent object.
15538     * @return a new slider widget handle or @c NULL, on errors.
15539     *
15540     * This function inserts a new slider widget on the canvas.
15541     *
15542     * @ingroup Slider
15543     */
15544    EAPI Evas_Object       *elm_slider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
15545
15546    /**
15547     * Set the label of a given slider widget
15548     *
15549     * @param obj The progress bar object
15550     * @param label The text label string, in UTF-8
15551     *
15552     * @ingroup Slider
15553     * @deprecated use elm_object_text_set() instead.
15554     */
15555    EINA_DEPRECATED EAPI void               elm_slider_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
15556
15557    /**
15558     * Get the label of a given slider widget
15559     *
15560     * @param obj The progressbar object
15561     * @return The text label string, in UTF-8
15562     *
15563     * @ingroup Slider
15564     * @deprecated use elm_object_text_get() instead.
15565     */
15566    EINA_DEPRECATED EAPI const char        *elm_slider_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15567
15568    /**
15569     * Set the icon object of the slider object.
15570     *
15571     * @param obj The slider object.
15572     * @param icon The icon object.
15573     *
15574     * On horizontal mode, icon is placed at left, and on vertical mode,
15575     * placed at top.
15576     *
15577     * @note Once the icon object is set, a previously set one will be deleted.
15578     * If you want to keep that old content object, use the
15579     * elm_slider_icon_unset() function.
15580     *
15581     * @warning If the object being set does not have minimum size hints set,
15582     * it won't get properly displayed.
15583     *
15584     * @ingroup Slider
15585     */
15586    EAPI void               elm_slider_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
15587
15588    /**
15589     * Unset an icon set on a given slider widget.
15590     *
15591     * @param obj The slider object.
15592     * @return The icon object that was being used, if any was set, or
15593     * @c NULL, otherwise (and on errors).
15594     *
15595     * On horizontal mode, icon is placed at left, and on vertical mode,
15596     * placed at top.
15597     *
15598     * This call will unparent and return the icon object which was set
15599     * for this widget, previously, on success.
15600     *
15601     * @see elm_slider_icon_set() for more details
15602     * @see elm_slider_icon_get()
15603     *
15604     * @ingroup Slider
15605     */
15606    EAPI Evas_Object       *elm_slider_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
15607
15608    /**
15609     * Retrieve the icon object set for a given slider widget.
15610     *
15611     * @param obj The slider object.
15612     * @return The icon object's handle, if @p obj had one set, or @c NULL,
15613     * otherwise (and on errors).
15614     *
15615     * On horizontal mode, icon is placed at left, and on vertical mode,
15616     * placed at top.
15617     *
15618     * @see elm_slider_icon_set() for more details
15619     * @see elm_slider_icon_unset()
15620     *
15621     * @ingroup Slider
15622     */
15623    EAPI Evas_Object       *elm_slider_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15624
15625    /**
15626     * Set the end object of the slider object.
15627     *
15628     * @param obj The slider object.
15629     * @param end The end object.
15630     *
15631     * On horizontal mode, end is placed at left, and on vertical mode,
15632     * placed at bottom.
15633     *
15634     * @note Once the icon object is set, a previously set one will be deleted.
15635     * If you want to keep that old content object, use the
15636     * elm_slider_end_unset() function.
15637     *
15638     * @warning If the object being set does not have minimum size hints set,
15639     * it won't get properly displayed.
15640     *
15641     * @ingroup Slider
15642     */
15643    EAPI void               elm_slider_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1);
15644
15645    /**
15646     * Unset an end object set on a given slider widget.
15647     *
15648     * @param obj The slider object.
15649     * @return The end object that was being used, if any was set, or
15650     * @c NULL, otherwise (and on errors).
15651     *
15652     * On horizontal mode, end is placed at left, and on vertical mode,
15653     * placed at bottom.
15654     *
15655     * This call will unparent and return the icon object which was set
15656     * for this widget, previously, on success.
15657     *
15658     * @see elm_slider_end_set() for more details.
15659     * @see elm_slider_end_get()
15660     *
15661     * @ingroup Slider
15662     */
15663    EAPI Evas_Object       *elm_slider_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
15664
15665    /**
15666     * Retrieve the end object set for a given slider widget.
15667     *
15668     * @param obj The slider object.
15669     * @return The end object's handle, if @p obj had one set, or @c NULL,
15670     * otherwise (and on errors).
15671     *
15672     * On horizontal mode, icon is placed at right, and on vertical mode,
15673     * placed at bottom.
15674     *
15675     * @see elm_slider_end_set() for more details.
15676     * @see elm_slider_end_unset()
15677     *
15678     * @ingroup Slider
15679     */
15680    EAPI Evas_Object       *elm_slider_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15681
15682    /**
15683     * Set the (exact) length of the bar region of a given slider widget.
15684     *
15685     * @param obj The slider object.
15686     * @param size The length of the slider's bar region.
15687     *
15688     * This sets the minimum width (when in horizontal mode) or height
15689     * (when in vertical mode) of the actual bar area of the slider
15690     * @p obj. This in turn affects the object's minimum size. Use
15691     * this when you're not setting other size hints expanding on the
15692     * given direction (like weight and alignment hints) and you would
15693     * like it to have a specific size.
15694     *
15695     * @note Icon, end, label, indicator and unit text around @p obj
15696     * will require their
15697     * own space, which will make @p obj to require more the @p size,
15698     * actually.
15699     *
15700     * @see elm_slider_span_size_get()
15701     *
15702     * @ingroup Slider
15703     */
15704    EAPI void               elm_slider_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
15705
15706    /**
15707     * Get the length set for the bar region of a given slider widget
15708     *
15709     * @param obj The slider object.
15710     * @return The length of the slider's bar region.
15711     *
15712     * If that size was not set previously, with
15713     * elm_slider_span_size_set(), this call will return @c 0.
15714     *
15715     * @ingroup Slider
15716     */
15717    EAPI Evas_Coord         elm_slider_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15718
15719    /**
15720     * Set the format string for the unit label.
15721     *
15722     * @param obj The slider object.
15723     * @param format The format string for the unit display.
15724     *
15725     * Unit label is displayed all the time, if set, after slider's bar.
15726     * In horizontal mode, at right and in vertical mode, at bottom.
15727     *
15728     * If @c NULL, unit label won't be visible. If not it sets the format
15729     * string for the label text. To the label text is provided a floating point
15730     * value, so the label text can display up to 1 floating point value.
15731     * Note that this is optional.
15732     *
15733     * Use a format string such as "%1.2f meters" for example, and it will
15734     * display values like: "3.14 meters" for a value equal to 3.14159.
15735     *
15736     * Default is unit label disabled.
15737     *
15738     * @see elm_slider_indicator_format_get()
15739     *
15740     * @ingroup Slider
15741     */
15742    EAPI void               elm_slider_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
15743
15744    /**
15745     * Get the unit label format of the slider.
15746     *
15747     * @param obj The slider object.
15748     * @return The unit label format string in UTF-8.
15749     *
15750     * Unit label is displayed all the time, if set, after slider's bar.
15751     * In horizontal mode, at right and in vertical mode, at bottom.
15752     *
15753     * @see elm_slider_unit_format_set() for more
15754     * information on how this works.
15755     *
15756     * @ingroup Slider
15757     */
15758    EAPI const char        *elm_slider_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15759
15760    /**
15761     * Set the format string for the indicator label.
15762     *
15763     * @param obj The slider object.
15764     * @param indicator The format string for the indicator display.
15765     *
15766     * The slider may display its value somewhere else then unit label,
15767     * for example, above the slider knob that is dragged around. This function
15768     * sets the format string used for this.
15769     *
15770     * If @c NULL, indicator label won't be visible. If not it sets the format
15771     * string for the label text. To the label text is provided a floating point
15772     * value, so the label text can display up to 1 floating point value.
15773     * Note that this is optional.
15774     *
15775     * Use a format string such as "%1.2f meters" for example, and it will
15776     * display values like: "3.14 meters" for a value equal to 3.14159.
15777     *
15778     * Default is indicator label disabled.
15779     *
15780     * @see elm_slider_indicator_format_get()
15781     *
15782     * @ingroup Slider
15783     */
15784    EAPI void               elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator) EINA_ARG_NONNULL(1);
15785
15786    /**
15787     * Get the indicator label format of the slider.
15788     *
15789     * @param obj The slider object.
15790     * @return The indicator label format string in UTF-8.
15791     *
15792     * The slider may display its value somewhere else then unit label,
15793     * for example, above the slider knob that is dragged around. This function
15794     * gets the format string used for this.
15795     *
15796     * @see elm_slider_indicator_format_set() for more
15797     * information on how this works.
15798     *
15799     * @ingroup Slider
15800     */
15801    EAPI const char        *elm_slider_indicator_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15802
15803    /**
15804     * Set the format function pointer for the indicator label
15805     *
15806     * @param obj The slider object.
15807     * @param func The indicator format function.
15808     * @param free_func The freeing function for the format string.
15809     *
15810     * Set the callback function to format the indicator string.
15811     *
15812     * @see elm_slider_indicator_format_set() for more info on how this works.
15813     *
15814     * @ingroup Slider
15815     */
15816   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);
15817
15818   /**
15819    * Set the format function pointer for the units label
15820    *
15821    * @param obj The slider object.
15822    * @param func The units format function.
15823    * @param free_func The freeing function for the format string.
15824    *
15825    * Set the callback function to format the indicator string.
15826    *
15827    * @see elm_slider_units_format_set() for more info on how this works.
15828    *
15829    * @ingroup Slider
15830    */
15831   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);
15832
15833   /**
15834    * Set the orientation of a given slider widget.
15835    *
15836    * @param obj The slider object.
15837    * @param horizontal Use @c EINA_TRUE to make @p obj to be
15838    * @b horizontal, @c EINA_FALSE to make it @b vertical.
15839    *
15840    * Use this function to change how your slider is to be
15841    * disposed: vertically or horizontally.
15842    *
15843    * By default it's displayed horizontally.
15844    *
15845    * @see elm_slider_horizontal_get()
15846    *
15847    * @ingroup Slider
15848    */
15849    EAPI void               elm_slider_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
15850
15851    /**
15852     * Retrieve the orientation of a given slider widget
15853     *
15854     * @param obj The slider object.
15855     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
15856     * @c EINA_FALSE if it's @b vertical (and on errors).
15857     *
15858     * @see elm_slider_horizontal_set() for more details.
15859     *
15860     * @ingroup Slider
15861     */
15862    EAPI Eina_Bool          elm_slider_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15863
15864    /**
15865     * Set the minimum and maximum values for the slider.
15866     *
15867     * @param obj The slider object.
15868     * @param min The minimum value.
15869     * @param max The maximum value.
15870     *
15871     * Define the allowed range of values to be selected by the user.
15872     *
15873     * If actual value is less than @p min, it will be updated to @p min. If it
15874     * is bigger then @p max, will be updated to @p max. Actual value can be
15875     * get with elm_slider_value_get().
15876     *
15877     * By default, min is equal to 0.0, and max is equal to 1.0.
15878     *
15879     * @warning Maximum must be greater than minimum, otherwise behavior
15880     * is undefined.
15881     *
15882     * @see elm_slider_min_max_get()
15883     *
15884     * @ingroup Slider
15885     */
15886    EAPI void               elm_slider_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
15887
15888    /**
15889     * Get the minimum and maximum values of the slider.
15890     *
15891     * @param obj The slider object.
15892     * @param min Pointer where to store the minimum value.
15893     * @param max Pointer where to store the maximum value.
15894     *
15895     * @note If only one value is needed, the other pointer can be passed
15896     * as @c NULL.
15897     *
15898     * @see elm_slider_min_max_set() for details.
15899     *
15900     * @ingroup Slider
15901     */
15902    EAPI void               elm_slider_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
15903
15904    /**
15905     * Set the value the slider displays.
15906     *
15907     * @param obj The slider object.
15908     * @param val The value to be displayed.
15909     *
15910     * Value will be presented on the unit label following format specified with
15911     * elm_slider_unit_format_set() and on indicator with
15912     * elm_slider_indicator_format_set().
15913     *
15914     * @warning The value must to be between min and max values. This values
15915     * are set by elm_slider_min_max_set().
15916     *
15917     * @see elm_slider_value_get()
15918     * @see elm_slider_unit_format_set()
15919     * @see elm_slider_indicator_format_set()
15920     * @see elm_slider_min_max_set()
15921     *
15922     * @ingroup Slider
15923     */
15924    EAPI void               elm_slider_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
15925
15926    /**
15927     * Get the value displayed by the spinner.
15928     *
15929     * @param obj The spinner object.
15930     * @return The value displayed.
15931     *
15932     * @see elm_spinner_value_set() for details.
15933     *
15934     * @ingroup Slider
15935     */
15936    EAPI double             elm_slider_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15937
15938    /**
15939     * Invert a given slider widget's displaying values order
15940     *
15941     * @param obj The slider object.
15942     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
15943     * @c EINA_FALSE to bring it back to default, non-inverted values.
15944     *
15945     * A slider may be @b inverted, in which state it gets its
15946     * values inverted, with high vales being on the left or top and
15947     * low values on the right or bottom, as opposed to normally have
15948     * the low values on the former and high values on the latter,
15949     * respectively, for horizontal and vertical modes.
15950     *
15951     * @see elm_slider_inverted_get()
15952     *
15953     * @ingroup Slider
15954     */
15955    EAPI void               elm_slider_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
15956
15957    /**
15958     * Get whether a given slider widget's displaying values are
15959     * inverted or not.
15960     *
15961     * @param obj The slider object.
15962     * @return @c EINA_TRUE, if @p obj has inverted values,
15963     * @c EINA_FALSE otherwise (and on errors).
15964     *
15965     * @see elm_slider_inverted_set() for more details.
15966     *
15967     * @ingroup Slider
15968     */
15969    EAPI Eina_Bool          elm_slider_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15970
15971    /**
15972     * Set whether to enlarge slider indicator (augmented knob) or not.
15973     *
15974     * @param obj The slider object.
15975     * @param show @c EINA_TRUE will make it enlarge, @c EINA_FALSE will
15976     * let the knob always at default size.
15977     *
15978     * By default, indicator will be bigger while dragged by the user.
15979     *
15980     * @warning It won't display values set with
15981     * elm_slider_indicator_format_set() if you disable indicator.
15982     *
15983     * @ingroup Slider
15984     */
15985    EAPI void               elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show) EINA_ARG_NONNULL(1);
15986
15987    /**
15988     * Get whether a given slider widget's enlarging indicator or not.
15989     *
15990     * @param obj The slider object.
15991     * @return @c EINA_TRUE, if @p obj is enlarging indicator, or
15992     * @c EINA_FALSE otherwise (and on errors).
15993     *
15994     * @see elm_slider_indicator_show_set() for details.
15995     *
15996     * @ingroup Slider
15997     */
15998    EAPI Eina_Bool          elm_slider_indicator_show_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15999
16000    /**
16001     * @}
16002     */
16003
16004    /**
16005     * @addtogroup Actionslider Actionslider
16006     *
16007     * @image html img/widget/actionslider/preview-00.png
16008     * @image latex img/widget/actionslider/preview-00.eps
16009     *
16010     * A actionslider is a switcher for 2 or 3 labels with customizable magnet
16011     * properties. The indicator is the element the user drags to choose a label.
16012     * When the position is set with magnet, when released the indicator will be
16013     * moved to it if it's nearest the magnetized position.
16014     *
16015     * @note By default all positions are set as enabled.
16016     *
16017     * Signals that you can add callbacks for are:
16018     *
16019     * "selected" - when user selects an enabled position (the label is passed
16020     *              as event info)".
16021     * @n
16022     * "pos_changed" - when the indicator reaches any of the positions("left",
16023     *                 "right" or "center").
16024     *
16025     * See an example of actionslider usage @ref actionslider_example_page "here"
16026     * @{
16027     */
16028    typedef enum _Elm_Actionslider_Pos
16029      {
16030         ELM_ACTIONSLIDER_NONE = 0,
16031         ELM_ACTIONSLIDER_LEFT = 1 << 0,
16032         ELM_ACTIONSLIDER_CENTER = 1 << 1,
16033         ELM_ACTIONSLIDER_RIGHT = 1 << 2,
16034         ELM_ACTIONSLIDER_ALL = (1 << 3) -1
16035      } Elm_Actionslider_Pos;
16036
16037    /**
16038     * Add a new actionslider to the parent.
16039     *
16040     * @param parent The parent object
16041     * @return The new actionslider object or NULL if it cannot be created
16042     */
16043    EAPI Evas_Object          *elm_actionslider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16044    /**
16045     * Set actionslider labels.
16046     *
16047     * @param obj The actionslider object
16048     * @param left_label The label to be set on the left.
16049     * @param center_label The label to be set on the center.
16050     * @param right_label The label to be set on the right.
16051     * @deprecated use elm_object_text_set() instead.
16052     */
16053    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);
16054    /**
16055     * Get actionslider labels.
16056     *
16057     * @param obj The actionslider object
16058     * @param left_label A char** to place the left_label of @p obj into.
16059     * @param center_label A char** to place the center_label of @p obj into.
16060     * @param right_label A char** to place the right_label of @p obj into.
16061     * @deprecated use elm_object_text_set() instead.
16062     */
16063    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);
16064    /**
16065     * Get actionslider selected label.
16066     *
16067     * @param obj The actionslider object
16068     * @return The selected label
16069     */
16070    EAPI const char           *elm_actionslider_selected_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16071    /**
16072     * Set actionslider indicator position.
16073     *
16074     * @param obj The actionslider object.
16075     * @param pos The position of the indicator.
16076     */
16077    EAPI void                  elm_actionslider_indicator_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
16078    /**
16079     * Get actionslider indicator position.
16080     *
16081     * @param obj The actionslider object.
16082     * @return The position of the indicator.
16083     */
16084    EAPI Elm_Actionslider_Pos  elm_actionslider_indicator_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16085    /**
16086     * Set actionslider magnet position. To make multiple positions magnets @c or
16087     * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT)
16088     *
16089     * @param obj The actionslider object.
16090     * @param pos Bit mask indicating the magnet positions.
16091     */
16092    EAPI void                  elm_actionslider_magnet_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
16093    /**
16094     * Get actionslider magnet position.
16095     *
16096     * @param obj The actionslider object.
16097     * @return The positions with magnet property.
16098     */
16099    EAPI Elm_Actionslider_Pos  elm_actionslider_magnet_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16100    /**
16101     * Set actionslider enabled position. To set multiple positions as enabled @c or
16102     * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT).
16103     *
16104     * @note All the positions are enabled by default.
16105     *
16106     * @param obj The actionslider object.
16107     * @param pos Bit mask indicating the enabled positions.
16108     */
16109    EAPI void                  elm_actionslider_enabled_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
16110    /**
16111     * Get actionslider enabled position.
16112     *
16113     * @param obj The actionslider object.
16114     * @return The enabled positions.
16115     */
16116    EAPI Elm_Actionslider_Pos  elm_actionslider_enabled_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16117    /**
16118     * Set the label used on the indicator.
16119     *
16120     * @param obj The actionslider object
16121     * @param label The label to be set on the indicator.
16122     * @deprecated use elm_object_text_set() instead.
16123     */
16124    EINA_DEPRECATED EAPI void                  elm_actionslider_indicator_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
16125    /**
16126     * Get the label used on the indicator object.
16127     *
16128     * @param obj The actionslider object
16129     * @return The indicator label
16130     * @deprecated use elm_object_text_get() instead.
16131     */
16132    EINA_DEPRECATED EAPI const char           *elm_actionslider_indicator_label_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
16133    /**
16134     * @}
16135     */
16136
16137    /**
16138     * @defgroup Genlist Genlist
16139     *
16140     * @image html img/widget/genlist/preview-00.png
16141     * @image latex img/widget/genlist/preview-00.eps
16142     * @image html img/genlist.png
16143     * @image latex img/genlist.eps
16144     *
16145     * This widget aims to have more expansive list than the simple list in
16146     * Elementary that could have more flexible items and allow many more entries
16147     * while still being fast and low on memory usage. At the same time it was
16148     * also made to be able to do tree structures. But the price to pay is more
16149     * complexity when it comes to usage. If all you want is a simple list with
16150     * icons and a single label, use the normal @ref List object.
16151     *
16152     * Genlist has a fairly large API, mostly because it's relatively complex,
16153     * trying to be both expansive, powerful and efficient. First we will begin
16154     * an overview on the theory behind genlist.
16155     *
16156     * @section Genlist_Item_Class Genlist item classes - creating items
16157     *
16158     * In order to have the ability to add and delete items on the fly, genlist
16159     * implements a class (callback) system where the application provides a
16160     * structure with information about that type of item (genlist may contain
16161     * multiple different items with different classes, states and styles).
16162     * Genlist will call the functions in this struct (methods) when an item is
16163     * "realized" (i.e., created dynamically, while the user is scrolling the
16164     * grid). All objects will simply be deleted when no longer needed with
16165     * evas_object_del(). The #Elm_Genlist_Item_Class structure contains the
16166     * following members:
16167     * - @c item_style - This is a constant string and simply defines the name
16168     *   of the item style. It @b must be specified and the default should be @c
16169     *   "default".
16170     * - @c mode_item_style - This is a constant string and simply defines the
16171     *   name of the style that will be used for mode animations. It can be left
16172     *   as @c NULL if you don't plan to use Genlist mode. See
16173     *   elm_genlist_item_mode_set() for more info.
16174     *
16175     * - @c func - A struct with pointers to functions that will be called when
16176     *   an item is going to be actually created. All of them receive a @c data
16177     *   parameter that will point to the same data passed to
16178     *   elm_genlist_item_append() and related item creation functions, and a @c
16179     *   obj parameter that points to the genlist object itself.
16180     *
16181     * The function pointers inside @c func are @c label_get, @c icon_get, @c
16182     * state_get and @c del. The 3 first functions also receive a @c part
16183     * parameter described below. A brief description of these functions follows:
16184     *
16185     * - @c label_get - The @c part parameter is the name string of one of the
16186     *   existing text parts in the Edje group implementing the item's theme.
16187     *   This function @b must return a strdup'()ed string, as the caller will
16188     *   free() it when done. See #Elm_Genlist_Item_Label_Get_Cb.
16189     * - @c icon_get - The @c part parameter is the name string of one of the
16190     *   existing (icon) swallow parts in the Edje group implementing the item's
16191     *   theme. It must return @c NULL, when no icon is desired, or a valid
16192     *   object handle, otherwise.  The object will be deleted by the genlist on
16193     *   its deletion or when the item is "unrealized".  See
16194     *   #Elm_Genlist_Item_Icon_Get_Cb.
16195     * - @c func.state_get - The @c part parameter is the name string of one of
16196     *   the state parts in the Edje group implementing the item's theme. Return
16197     *   @c EINA_FALSE for false/off or @c EINA_TRUE for true/on. Genlists will
16198     *   emit a signal to its theming Edje object with @c "elm,state,XXX,active"
16199     *   and @c "elm" as "emission" and "source" arguments, respectively, when
16200     *   the state is true (the default is false), where @c XXX is the name of
16201     *   the (state) part.  See #Elm_Genlist_Item_State_Get_Cb.
16202     * - @c func.del - This is intended for use when genlist items are deleted,
16203     *   so any data attached to the item (e.g. its data parameter on creation)
16204     *   can be deleted. See #Elm_Genlist_Item_Del_Cb.
16205     *
16206     * available item styles:
16207     * - default
16208     * - default_style - The text part is a textblock
16209     *
16210     * @image html img/widget/genlist/preview-04.png
16211     * @image latex img/widget/genlist/preview-04.eps
16212     *
16213     * - double_label
16214     *
16215     * @image html img/widget/genlist/preview-01.png
16216     * @image latex img/widget/genlist/preview-01.eps
16217     *
16218     * - icon_top_text_bottom
16219     *
16220     * @image html img/widget/genlist/preview-02.png
16221     * @image latex img/widget/genlist/preview-02.eps
16222     *
16223     * - group_index
16224     *
16225     * @image html img/widget/genlist/preview-03.png
16226     * @image latex img/widget/genlist/preview-03.eps
16227     *
16228     * @section Genlist_Items Structure of items
16229     *
16230     * An item in a genlist can have 0 or more text labels (they can be regular
16231     * text or textblock Evas objects - that's up to the style to determine), 0
16232     * or more icons (which are simply objects swallowed into the genlist item's
16233     * theming Edje object) and 0 or more <b>boolean states</b>, which have the
16234     * behavior left to the user to define. The Edje part names for each of
16235     * these properties will be looked up, in the theme file for the genlist,
16236     * under the Edje (string) data items named @c "labels", @c "icons" and @c
16237     * "states", respectively. For each of those properties, if more than one
16238     * part is provided, they must have names listed separated by spaces in the
16239     * data fields. For the default genlist item theme, we have @b one label
16240     * part (@c "elm.text"), @b two icon parts (@c "elm.swalllow.icon" and @c
16241     * "elm.swallow.end") and @b no state parts.
16242     *
16243     * A genlist item may be at one of several styles. Elementary provides one
16244     * by default - "default", but this can be extended by system or application
16245     * custom themes/overlays/extensions (see @ref Theme "themes" for more
16246     * details).
16247     *
16248     * @section Genlist_Manipulation Editing and Navigating
16249     *
16250     * Items can be added by several calls. All of them return a @ref
16251     * Elm_Genlist_Item handle that is an internal member inside the genlist.
16252     * They all take a data parameter that is meant to be used for a handle to
16253     * the applications internal data (eg the struct with the original item
16254     * data). The parent parameter is the parent genlist item this belongs to if
16255     * it is a tree or an indexed group, and NULL if there is no parent. The
16256     * flags can be a bitmask of #ELM_GENLIST_ITEM_NONE,
16257     * #ELM_GENLIST_ITEM_SUBITEMS and #ELM_GENLIST_ITEM_GROUP. If
16258     * #ELM_GENLIST_ITEM_SUBITEMS is set then this item is displayed as an item
16259     * that is able to expand and have child items.  If ELM_GENLIST_ITEM_GROUP
16260     * is set then this item is group index item that is displayed at the top
16261     * until the next group comes. The func parameter is a convenience callback
16262     * that is called when the item is selected and the data parameter will be
16263     * the func_data parameter, obj be the genlist object and event_info will be
16264     * the genlist item.
16265     *
16266     * elm_genlist_item_append() adds an item to the end of the list, or if
16267     * there is a parent, to the end of all the child items of the parent.
16268     * elm_genlist_item_prepend() is the same but adds to the beginning of
16269     * the list or children list. elm_genlist_item_insert_before() inserts at
16270     * item before another item and elm_genlist_item_insert_after() inserts after
16271     * the indicated item.
16272     *
16273     * The application can clear the list with elm_genlist_clear() which deletes
16274     * all the items in the list and elm_genlist_item_del() will delete a specific
16275     * item. elm_genlist_item_subitems_clear() will clear all items that are
16276     * children of the indicated parent item.
16277     *
16278     * To help inspect list items you can jump to the item at the top of the list
16279     * with elm_genlist_first_item_get() which will return the item pointer, and
16280     * similarly elm_genlist_last_item_get() gets the item at the end of the list.
16281     * elm_genlist_item_next_get() and elm_genlist_item_prev_get() get the next
16282     * and previous items respectively relative to the indicated item. Using
16283     * these calls you can walk the entire item list/tree. Note that as a tree
16284     * the items are flattened in the list, so elm_genlist_item_parent_get() will
16285     * let you know which item is the parent (and thus know how to skip them if
16286     * wanted).
16287     *
16288     * @section Genlist_Muti_Selection Multi-selection
16289     *
16290     * If the application wants multiple items to be able to be selected,
16291     * elm_genlist_multi_select_set() can enable this. If the list is
16292     * single-selection only (the default), then elm_genlist_selected_item_get()
16293     * will return the selected item, if any, or NULL I none is selected. If the
16294     * list is multi-select then elm_genlist_selected_items_get() will return a
16295     * list (that is only valid as long as no items are modified (added, deleted,
16296     * selected or unselected)).
16297     *
16298     * @section Genlist_Usage_Hints Usage hints
16299     *
16300     * There are also convenience functions. elm_genlist_item_genlist_get() will
16301     * return the genlist object the item belongs to. elm_genlist_item_show()
16302     * will make the scroller scroll to show that specific item so its visible.
16303     * elm_genlist_item_data_get() returns the data pointer set by the item
16304     * creation functions.
16305     *
16306     * If an item changes (state of boolean changes, label or icons change),
16307     * then use elm_genlist_item_update() to have genlist update the item with
16308     * the new state. Genlist will re-realize the item thus call the functions
16309     * in the _Elm_Genlist_Item_Class for that item.
16310     *
16311     * To programmatically (un)select an item use elm_genlist_item_selected_set().
16312     * To get its selected state use elm_genlist_item_selected_get(). Similarly
16313     * to expand/contract an item and get its expanded state, use
16314     * elm_genlist_item_expanded_set() and elm_genlist_item_expanded_get(). And
16315     * again to make an item disabled (unable to be selected and appear
16316     * differently) use elm_genlist_item_disabled_set() to set this and
16317     * elm_genlist_item_disabled_get() to get the disabled state.
16318     *
16319     * In general to indicate how the genlist should expand items horizontally to
16320     * fill the list area, use elm_genlist_horizontal_set(). Valid modes are
16321     * ELM_LIST_LIMIT and ELM_LIST_SCROLL . The default is ELM_LIST_SCROLL. This
16322     * mode means that if items are too wide to fit, the scroller will scroll
16323     * horizontally. Otherwise items are expanded to fill the width of the
16324     * viewport of the scroller. If it is ELM_LIST_LIMIT, items will be expanded
16325     * to the viewport width and limited to that size. This can be combined with
16326     * a different style that uses edjes' ellipsis feature (cutting text off like
16327     * this: "tex...").
16328     *
16329     * Items will only call their selection func and callback when first becoming
16330     * selected. Any further clicks will do nothing, unless you enable always
16331     * select with elm_genlist_always_select_mode_set(). This means even if
16332     * selected, every click will make the selected callbacks be called.
16333     * elm_genlist_no_select_mode_set() will turn off the ability to select
16334     * items entirely and they will neither appear selected nor call selected
16335     * callback functions.
16336     *
16337     * Remember that you can create new styles and add your own theme augmentation
16338     * per application with elm_theme_extension_add(). If you absolutely must
16339     * have a specific style that overrides any theme the user or system sets up
16340     * you can use elm_theme_overlay_add() to add such a file.
16341     *
16342     * @section Genlist_Implementation Implementation
16343     *
16344     * Evas tracks every object you create. Every time it processes an event
16345     * (mouse move, down, up etc.) it needs to walk through objects and find out
16346     * what event that affects. Even worse every time it renders display updates,
16347     * in order to just calculate what to re-draw, it needs to walk through many
16348     * many many objects. Thus, the more objects you keep active, the more
16349     * overhead Evas has in just doing its work. It is advisable to keep your
16350     * active objects to the minimum working set you need. Also remember that
16351     * object creation and deletion carries an overhead, so there is a
16352     * middle-ground, which is not easily determined. But don't keep massive lists
16353     * of objects you can't see or use. Genlist does this with list objects. It
16354     * creates and destroys them dynamically as you scroll around. It groups them
16355     * into blocks so it can determine the visibility etc. of a whole block at
16356     * once as opposed to having to walk the whole list. This 2-level list allows
16357     * for very large numbers of items to be in the list (tests have used up to
16358     * 2,000,000 items). Also genlist employs a queue for adding items. As items
16359     * may be different sizes, every item added needs to be calculated as to its
16360     * size and thus this presents a lot of overhead on populating the list, this
16361     * genlist employs a queue. Any item added is queued and spooled off over
16362     * time, actually appearing some time later, so if your list has many members
16363     * you may find it takes a while for them to all appear, with your process
16364     * consuming a lot of CPU while it is busy spooling.
16365     *
16366     * Genlist also implements a tree structure, but it does so with callbacks to
16367     * the application, with the application filling in tree structures when
16368     * requested (allowing for efficient building of a very deep tree that could
16369     * even be used for file-management). See the above smart signal callbacks for
16370     * details.
16371     *
16372     * @section Genlist_Smart_Events Genlist smart events
16373     *
16374     * Signals that you can add callbacks for are:
16375     * - @c "activated" - The user has double-clicked or pressed
16376     *   (enter|return|spacebar) on an item. The @c event_info parameter is the
16377     *   item that was activated.
16378     * - @c "clicked,double" - The user has double-clicked an item.  The @c
16379     *   event_info parameter is the item that was double-clicked.
16380     * - @c "selected" - This is called when a user has made an item selected.
16381     *   The event_info parameter is the genlist item that was selected.
16382     * - @c "unselected" - This is called when a user has made an item
16383     *   unselected. The event_info parameter is the genlist item that was
16384     *   unselected.
16385     * - @c "expanded" - This is called when elm_genlist_item_expanded_set() is
16386     *   called and the item is now meant to be expanded. The event_info
16387     *   parameter is the genlist item that was indicated to expand.  It is the
16388     *   job of this callback to then fill in the child items.
16389     * - @c "contracted" - This is called when elm_genlist_item_expanded_set() is
16390     *   called and the item is now meant to be contracted. The event_info
16391     *   parameter is the genlist item that was indicated to contract. It is the
16392     *   job of this callback to then delete the child items.
16393     * - @c "expand,request" - This is called when a user has indicated they want
16394     *   to expand a tree branch item. The callback should decide if the item can
16395     *   expand (has any children) and then call elm_genlist_item_expanded_set()
16396     *   appropriately to set the state. The event_info parameter is the genlist
16397     *   item that was indicated to expand.
16398     * - @c "contract,request" - This is called when a user has indicated they
16399     *   want to contract a tree branch item. The callback should decide if the
16400     *   item can contract (has any children) and then call
16401     *   elm_genlist_item_expanded_set() appropriately to set the state. The
16402     *   event_info parameter is the genlist item that was indicated to contract.
16403     * - @c "realized" - This is called when the item in the list is created as a
16404     *   real evas object. event_info parameter is the genlist item that was
16405     *   created. The object may be deleted at any time, so it is up to the
16406     *   caller to not use the object pointer from elm_genlist_item_object_get()
16407     *   in a way where it may point to freed objects.
16408     * - @c "unrealized" - This is called just before an item is unrealized.
16409     *   After this call icon objects provided will be deleted and the item
16410     *   object itself delete or be put into a floating cache.
16411     * - @c "drag,start,up" - This is called when the item in the list has been
16412     *   dragged (not scrolled) up.
16413     * - @c "drag,start,down" - This is called when the item in the list has been
16414     *   dragged (not scrolled) down.
16415     * - @c "drag,start,left" - This is called when the item in the list has been
16416     *   dragged (not scrolled) left.
16417     * - @c "drag,start,right" - This is called when the item in the list has
16418     *   been dragged (not scrolled) right.
16419     * - @c "drag,stop" - This is called when the item in the list has stopped
16420     *   being dragged.
16421     * - @c "drag" - This is called when the item in the list is being dragged.
16422     * - @c "longpressed" - This is called when the item is pressed for a certain
16423     *   amount of time. By default it's 1 second.
16424     * - @c "scroll,edge,top" - This is called when the genlist is scrolled until
16425     *   the top edge.
16426     * - @c "scroll,edge,bottom" - This is called when the genlist is scrolled
16427     *   until the bottom edge.
16428     * - @c "scroll,edge,left" - This is called when the genlist is scrolled
16429     *   until the left edge.
16430     * - @c "scroll,edge,right" - This is called when the genlist is scrolled
16431     *   until the right edge.
16432     * - @c "multi,swipe,left" - This is called when the genlist is multi-touch
16433     *   swiped left.
16434     * - @c "multi,swipe,right" - This is called when the genlist is multi-touch
16435     *   swiped right.
16436     * - @c "multi,swipe,up" - This is called when the genlist is multi-touch
16437     *   swiped up.
16438     * - @c "multi,swipe,down" - This is called when the genlist is multi-touch
16439     *   swiped down.
16440     * - @c "multi,pinch,out" - This is called when the genlist is multi-touch
16441     *   pinched out.  "- @c multi,pinch,in" - This is called when the genlist is
16442     *   multi-touch pinched in.
16443     * - @c "swipe" - This is called when the genlist is swiped.
16444     *
16445     * @section Genlist_Examples Examples
16446     *
16447     * Here is a list of examples that use the genlist, trying to show some of
16448     * its capabilities:
16449     * - @ref genlist_example_01
16450     * - @ref genlist_example_02
16451     * - @ref genlist_example_03
16452     * - @ref genlist_example_04
16453     * - @ref genlist_example_05
16454     */
16455
16456    /**
16457     * @addtogroup Genlist
16458     * @{
16459     */
16460
16461    /**
16462     * @enum _Elm_Genlist_Item_Flags
16463     * @typedef Elm_Genlist_Item_Flags
16464     *
16465     * Defines if the item is of any special type (has subitems or it's the
16466     * index of a group), or is just a simple item.
16467     *
16468     * @ingroup Genlist
16469     */
16470    typedef enum _Elm_Genlist_Item_Flags
16471      {
16472         ELM_GENLIST_ITEM_NONE = 0, /**< simple item */
16473         ELM_GENLIST_ITEM_SUBITEMS = (1 << 0), /**< may expand and have child items */
16474         ELM_GENLIST_ITEM_GROUP = (1 << 1) /**< index of a group of items */
16475      } Elm_Genlist_Item_Flags;
16476    typedef struct _Elm_Genlist_Item_Class Elm_Genlist_Item_Class;  /**< Genlist item class definition structs */
16477    typedef struct _Elm_Genlist_Item       Elm_Genlist_Item; /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
16478    typedef struct _Elm_Genlist_Item_Class_Func Elm_Genlist_Item_Class_Func; /**< Class functions for genlist item class */
16479    typedef char        *(*Elm_Genlist_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for genlist item classes. */
16480    typedef Evas_Object *(*Elm_Genlist_Item_Icon_Get_Cb)  (void *data, Evas_Object *obj, const char *part); /**< Icon fetching class function for genlist item classes. */
16481    typedef Eina_Bool    (*Elm_Genlist_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< State fetching class function for genlist item classes. */
16482    typedef void         (*Elm_Genlist_Item_Del_Cb)      (void *data, Evas_Object *obj); /**< Deletion class function for genlist item classes. */
16483    typedef void         (*GenlistItemMovedFunc)    (Evas_Object *obj, Elm_Genlist_Item *item, Elm_Genlist_Item *rel_item, Eina_Bool move_after); /** TODO: remove this by SeoZ **/
16484
16485    typedef char        *(*GenlistItemLabelGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_Label_Get_Cb instead. */
16486    typedef Evas_Object *(*GenlistItemIconGetFunc)  (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_Icon_Get_Cb instead. */
16487    typedef Eina_Bool    (*GenlistItemStateGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_State_Get_Cb instead. */
16488    typedef void         (*GenlistItemDelFunc)      (void *data, Evas_Object *obj) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_Del_Cb instead. */
16489
16490    /**
16491     * @struct _Elm_Genlist_Item_Class
16492     *
16493     * Genlist item class definition structs.
16494     *
16495     * This struct contains the style and fetching functions that will define the
16496     * contents of each item.
16497     *
16498     * @see @ref Genlist_Item_Class
16499     */
16500    struct _Elm_Genlist_Item_Class
16501      {
16502         const char                *item_style; /**< style of this class. */
16503         struct
16504           {
16505              Elm_Genlist_Item_Label_Get_Cb  label_get; /**< Label fetching class function for genlist item classes.*/
16506              Elm_Genlist_Item_Icon_Get_Cb   icon_get; /**< Icon fetching class function for genlist item classes. */
16507              Elm_Genlist_Item_State_Get_Cb  state_get; /**< State fetching class function for genlist item classes. */
16508              Elm_Genlist_Item_Del_Cb        del; /**< Deletion class function for genlist item classes. */
16509              GenlistItemMovedFunc     moved; // TODO: do not use this. change this to smart callback.
16510           } func;
16511         const char                *mode_item_style;
16512      };
16513
16514    /**
16515     * Add a new genlist widget to the given parent Elementary
16516     * (container) object
16517     *
16518     * @param parent The parent object
16519     * @return a new genlist widget handle or @c NULL, on errors
16520     *
16521     * This function inserts a new genlist widget on the canvas.
16522     *
16523     * @see elm_genlist_item_append()
16524     * @see elm_genlist_item_del()
16525     * @see elm_genlist_clear()
16526     *
16527     * @ingroup Genlist
16528     */
16529    EAPI Evas_Object      *elm_genlist_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16530    /**
16531     * Remove all items from a given genlist widget.
16532     *
16533     * @param obj The genlist object
16534     *
16535     * This removes (and deletes) all items in @p obj, leaving it empty.
16536     *
16537     * @see elm_genlist_item_del(), to remove just one item.
16538     *
16539     * @ingroup Genlist
16540     */
16541    EAPI void              elm_genlist_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
16542    /**
16543     * Enable or disable multi-selection in the genlist
16544     *
16545     * @param obj The genlist object
16546     * @param multi Multi-select enable/disable. Default is disabled.
16547     *
16548     * This enables (@c EINA_TRUE) or disables (@c EINA_FALSE) multi-selection in
16549     * the list. This allows more than 1 item to be selected. To retrieve the list
16550     * of selected items, use elm_genlist_selected_items_get().
16551     *
16552     * @see elm_genlist_selected_items_get()
16553     * @see elm_genlist_multi_select_get()
16554     *
16555     * @ingroup Genlist
16556     */
16557    EAPI void              elm_genlist_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
16558    /**
16559     * Gets if multi-selection in genlist is enabled or disabled.
16560     *
16561     * @param obj The genlist object
16562     * @return Multi-select enabled/disabled
16563     * (@c EINA_TRUE = enabled/@c EINA_FALSE = disabled). Default is @c EINA_FALSE.
16564     *
16565     * @see elm_genlist_multi_select_set()
16566     *
16567     * @ingroup Genlist
16568     */
16569    EAPI Eina_Bool         elm_genlist_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16570    /**
16571     * This sets the horizontal stretching mode.
16572     *
16573     * @param obj The genlist object
16574     * @param mode The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).
16575     *
16576     * This sets the mode used for sizing items horizontally. Valid modes
16577     * are #ELM_LIST_LIMIT and #ELM_LIST_SCROLL. The default is
16578     * ELM_LIST_SCROLL. This mode means that if items are too wide to fit,
16579     * the scroller will scroll horizontally. Otherwise items are expanded
16580     * to fill the width of the viewport of the scroller. If it is
16581     * ELM_LIST_LIMIT, items will be expanded to the viewport width and
16582     * limited to that size.
16583     *
16584     * @see elm_genlist_horizontal_get()
16585     *
16586     * @ingroup Genlist
16587     */
16588    EAPI void              elm_genlist_horizontal_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
16589    EINA_DEPRECATED EAPI void              elm_genlist_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
16590    /**
16591     * Gets the horizontal stretching mode.
16592     *
16593     * @param obj The genlist object
16594     * @return The mode to use
16595     * (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
16596     *
16597     * @see elm_genlist_horizontal_set()
16598     *
16599     * @ingroup Genlist
16600     */
16601    EAPI Elm_List_Mode     elm_genlist_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16602    EINA_DEPRECATED EAPI Elm_List_Mode     elm_genlist_horizontal_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16603    /**
16604     * Set the always select mode.
16605     *
16606     * @param obj The genlist object
16607     * @param always_select The always select mode (@c EINA_TRUE = on, @c
16608     * EINA_FALSE = off). Default is @c EINA_FALSE.
16609     *
16610     * Items will only call their selection func and callback when first
16611     * becoming selected. Any further clicks will do nothing, unless you
16612     * enable always select with elm_genlist_always_select_mode_set().
16613     * This means that, even if selected, every click will make the selected
16614     * callbacks be called.
16615     *
16616     * @see elm_genlist_always_select_mode_get()
16617     *
16618     * @ingroup Genlist
16619     */
16620    EAPI void              elm_genlist_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
16621    /**
16622     * Get the always select mode.
16623     *
16624     * @param obj The genlist object
16625     * @return The always select mode
16626     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
16627     *
16628     * @see elm_genlist_always_select_mode_set()
16629     *
16630     * @ingroup Genlist
16631     */
16632    EAPI Eina_Bool         elm_genlist_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16633    /**
16634     * Enable/disable the no select mode.
16635     *
16636     * @param obj The genlist object
16637     * @param no_select The no select mode
16638     * (EINA_TRUE = on, EINA_FALSE = off)
16639     *
16640     * This will turn off the ability to select items entirely and they
16641     * will neither appear selected nor call selected callback functions.
16642     *
16643     * @see elm_genlist_no_select_mode_get()
16644     *
16645     * @ingroup Genlist
16646     */
16647    EAPI void              elm_genlist_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
16648    /**
16649     * Gets whether the no select mode is enabled.
16650     *
16651     * @param obj The genlist object
16652     * @return The no select mode
16653     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
16654     *
16655     * @see elm_genlist_no_select_mode_set()
16656     *
16657     * @ingroup Genlist
16658     */
16659    EAPI Eina_Bool         elm_genlist_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16660    /**
16661     * Enable/disable compress mode.
16662     *
16663     * @param obj The genlist object
16664     * @param compress The compress mode
16665     * (@c EINA_TRUE = on, @c EINA_FALSE = off). Default is @c EINA_FALSE.
16666     *
16667     * This will enable the compress mode where items are "compressed"
16668     * horizontally to fit the genlist scrollable viewport width. This is
16669     * special for genlist.  Do not rely on
16670     * elm_genlist_horizontal_set() being set to @c ELM_LIST_COMPRESS to
16671     * work as genlist needs to handle it specially.
16672     *
16673     * @see elm_genlist_compress_mode_get()
16674     *
16675     * @ingroup Genlist
16676     */
16677    EAPI void              elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress) EINA_ARG_NONNULL(1);
16678    /**
16679     * Get whether the compress mode is enabled.
16680     *
16681     * @param obj The genlist object
16682     * @return The compress mode
16683     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
16684     *
16685     * @see elm_genlist_compress_mode_set()
16686     *
16687     * @ingroup Genlist
16688     */
16689    EAPI Eina_Bool         elm_genlist_compress_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16690    /**
16691     * Enable/disable height-for-width mode.
16692     *
16693     * @param obj The genlist object
16694     * @param setting The height-for-width mode (@c EINA_TRUE = on,
16695     * @c EINA_FALSE = off). Default is @c EINA_FALSE.
16696     *
16697     * With height-for-width mode the item width will be fixed (restricted
16698     * to a minimum of) to the list width when calculating its size in
16699     * order to allow the height to be calculated based on it. This allows,
16700     * for instance, text block to wrap lines if the Edje part is
16701     * configured with "text.min: 0 1".
16702     *
16703     * @note This mode will make list resize slower as it will have to
16704     *       recalculate every item height again whenever the list width
16705     *       changes!
16706     *
16707     * @note When height-for-width mode is enabled, it also enables
16708     *       compress mode (see elm_genlist_compress_mode_set()) and
16709     *       disables homogeneous (see elm_genlist_homogeneous_set()).
16710     *
16711     * @ingroup Genlist
16712     */
16713    EAPI void              elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width) EINA_ARG_NONNULL(1);
16714    /**
16715     * Get whether the height-for-width mode is enabled.
16716     *
16717     * @param obj The genlist object
16718     * @return The height-for-width mode (@c EINA_TRUE = on, @c EINA_FALSE =
16719     * off)
16720     *
16721     * @ingroup Genlist
16722     */
16723    EAPI Eina_Bool         elm_genlist_height_for_width_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16724    /**
16725     * Enable/disable horizontal and vertical bouncing effect.
16726     *
16727     * @param obj The genlist object
16728     * @param h_bounce Allow bounce horizontally (@c EINA_TRUE = on, @c
16729     * EINA_FALSE = off). Default is @c EINA_FALSE.
16730     * @param v_bounce Allow bounce vertically (@c EINA_TRUE = on, @c
16731     * EINA_FALSE = off). Default is @c EINA_TRUE.
16732     *
16733     * This will enable or disable the scroller bouncing effect for the
16734     * genlist. See elm_scroller_bounce_set() for details.
16735     *
16736     * @see elm_scroller_bounce_set()
16737     * @see elm_genlist_bounce_get()
16738     *
16739     * @ingroup Genlist
16740     */
16741    EAPI void              elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
16742    /**
16743     * Get whether the horizontal and vertical bouncing effect is enabled.
16744     *
16745     * @param obj The genlist object
16746     * @param h_bounce Pointer to a bool to receive if the bounce horizontally
16747     * option is set.
16748     * @param v_bounce Pointer to a bool to receive if the bounce vertically
16749     * option is set.
16750     *
16751     * @see elm_genlist_bounce_set()
16752     *
16753     * @ingroup Genlist
16754     */
16755    EAPI void              elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
16756    /**
16757     * Enable/disable homogenous mode.
16758     *
16759     * @param obj The genlist object
16760     * @param homogeneous Assume the items within the genlist are of the
16761     * same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is @c
16762     * EINA_FALSE.
16763     *
16764     * This will enable the homogeneous mode where items are of the same
16765     * height and width so that genlist may do the lazy-loading at its
16766     * maximum (which increases the performance for scrolling the list). This
16767     * implies 'compressed' mode.
16768     *
16769     * @see elm_genlist_compress_mode_set()
16770     * @see elm_genlist_homogeneous_get()
16771     *
16772     * @ingroup Genlist
16773     */
16774    EAPI void              elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
16775    /**
16776     * Get whether the homogenous mode is enabled.
16777     *
16778     * @param obj The genlist object
16779     * @return Assume the items within the genlist are of the same height
16780     * and width (EINA_TRUE = on, EINA_FALSE = off)
16781     *
16782     * @see elm_genlist_homogeneous_set()
16783     *
16784     * @ingroup Genlist
16785     */
16786    EAPI Eina_Bool         elm_genlist_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16787    /**
16788     * Set the maximum number of items within an item block
16789     *
16790     * @param obj The genlist object
16791     * @param n   Maximum number of items within an item block. Default is 32.
16792     *
16793     * This will configure the block count to tune to the target with
16794     * particular performance matrix.
16795     *
16796     * A block of objects will be used to reduce the number of operations due to
16797     * many objects in the screen. It can determine the visibility, or if the
16798     * object has changed, it theme needs to be updated, etc. doing this kind of
16799     * calculation to the entire block, instead of per object.
16800     *
16801     * The default value for the block count is enough for most lists, so unless
16802     * you know you will have a lot of objects visible in the screen at the same
16803     * time, don't try to change this.
16804     *
16805     * @see elm_genlist_block_count_get()
16806     * @see @ref Genlist_Implementation
16807     *
16808     * @ingroup Genlist
16809     */
16810    EAPI void              elm_genlist_block_count_set(Evas_Object *obj, int n) EINA_ARG_NONNULL(1);
16811    /**
16812     * Get the maximum number of items within an item block
16813     *
16814     * @param obj The genlist object
16815     * @return Maximum number of items within an item block
16816     *
16817     * @see elm_genlist_block_count_set()
16818     *
16819     * @ingroup Genlist
16820     */
16821    EAPI int               elm_genlist_block_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16822    /**
16823     * Set the timeout in seconds for the longpress event.
16824     *
16825     * @param obj The genlist object
16826     * @param timeout timeout in seconds. Default is 1.
16827     *
16828     * This option will change how long it takes to send an event "longpressed"
16829     * after the mouse down signal is sent to the list. If this event occurs, no
16830     * "clicked" event will be sent.
16831     *
16832     * @see elm_genlist_longpress_timeout_set()
16833     *
16834     * @ingroup Genlist
16835     */
16836    EAPI void              elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
16837    /**
16838     * Get the timeout in seconds for the longpress event.
16839     *
16840     * @param obj The genlist object
16841     * @return timeout in seconds
16842     *
16843     * @see elm_genlist_longpress_timeout_get()
16844     *
16845     * @ingroup Genlist
16846     */
16847    EAPI double            elm_genlist_longpress_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16848    /**
16849     * Append a new item in a given genlist widget.
16850     *
16851     * @param obj The genlist object
16852     * @param itc The item class for the item
16853     * @param data The item data
16854     * @param parent The parent item, or NULL if none
16855     * @param flags Item flags
16856     * @param func Convenience function called when the item is selected
16857     * @param func_data Data passed to @p func above.
16858     * @return A handle to the item added or @c NULL if not possible
16859     *
16860     * This adds the given item to the end of the list or the end of
16861     * the children list if the @p parent is given.
16862     *
16863     * @see elm_genlist_item_prepend()
16864     * @see elm_genlist_item_insert_before()
16865     * @see elm_genlist_item_insert_after()
16866     * @see elm_genlist_item_del()
16867     *
16868     * @ingroup Genlist
16869     */
16870    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);
16871    /**
16872     * Prepend a new item in a given genlist widget.
16873     *
16874     * @param obj The genlist object
16875     * @param itc The item class for the item
16876     * @param data The item data
16877     * @param parent The parent item, or NULL if none
16878     * @param flags Item flags
16879     * @param func Convenience function called when the item is selected
16880     * @param func_data Data passed to @p func above.
16881     * @return A handle to the item added or NULL if not possible
16882     *
16883     * This adds an item to the beginning of the list or beginning of the
16884     * children of the parent if given.
16885     *
16886     * @see elm_genlist_item_append()
16887     * @see elm_genlist_item_insert_before()
16888     * @see elm_genlist_item_insert_after()
16889     * @see elm_genlist_item_del()
16890     *
16891     * @ingroup Genlist
16892     */
16893    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);
16894    /**
16895     * Insert an item before another in a genlist widget
16896     *
16897     * @param obj The genlist object
16898     * @param itc The item class for the item
16899     * @param data The item data
16900     * @param before The item to place this new one before.
16901     * @param flags Item flags
16902     * @param func Convenience function called when the item is selected
16903     * @param func_data Data passed to @p func above.
16904     * @return A handle to the item added or @c NULL if not possible
16905     *
16906     * This inserts an item before another in the list. It will be in the
16907     * same tree level or group as the item it is inserted before.
16908     *
16909     * @see elm_genlist_item_append()
16910     * @see elm_genlist_item_prepend()
16911     * @see elm_genlist_item_insert_after()
16912     * @see elm_genlist_item_del()
16913     *
16914     * @ingroup Genlist
16915     */
16916    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);
16917    /**
16918     * Insert an item after another in a genlist widget
16919     *
16920     * @param obj The genlist object
16921     * @param itc The item class for the item
16922     * @param data The item data
16923     * @param after The item to place this new one after.
16924     * @param flags Item flags
16925     * @param func Convenience function called when the item is selected
16926     * @param func_data Data passed to @p func above.
16927     * @return A handle to the item added or @c NULL if not possible
16928     *
16929     * This inserts an item after another in the list. It will be in the
16930     * same tree level or group as the item it is inserted after.
16931     *
16932     * @see elm_genlist_item_append()
16933     * @see elm_genlist_item_prepend()
16934     * @see elm_genlist_item_insert_before()
16935     * @see elm_genlist_item_del()
16936     *
16937     * @ingroup Genlist
16938     */
16939    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);
16940    /**
16941     * Insert a new item into the sorted genlist object
16942     *
16943     * @param obj The genlist object
16944     * @param itc The item class for the item
16945     * @param data The item data
16946     * @param parent The parent item, or NULL if none
16947     * @param flags Item flags
16948     * @param comp The function called for the sort
16949     * @param func Convenience function called when item selected
16950     * @param func_data Data passed to @p func above.
16951     * @return A handle to the item added or NULL if not possible
16952     *
16953     * @ingroup Genlist
16954     */
16955    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);
16956    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);
16957    /* operations to retrieve existing items */
16958    /**
16959     * Get the selectd item in the genlist.
16960     *
16961     * @param obj The genlist object
16962     * @return The selected item, or NULL if none is selected.
16963     *
16964     * This gets the selected item in the list (if multi-selection is enabled, only
16965     * the item that was first selected in the list is returned - which is not very
16966     * useful, so see elm_genlist_selected_items_get() for when multi-selection is
16967     * used).
16968     *
16969     * If no item is selected, NULL is returned.
16970     *
16971     * @see elm_genlist_selected_items_get()
16972     *
16973     * @ingroup Genlist
16974     */
16975    EAPI Elm_Genlist_Item *elm_genlist_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16976    /**
16977     * Get a list of selected items in the genlist.
16978     *
16979     * @param obj The genlist object
16980     * @return The list of selected items, or NULL if none are selected.
16981     *
16982     * It returns a list of the selected items. This list pointer is only valid so
16983     * long as the selection doesn't change (no items are selected or unselected, or
16984     * unselected implicitly by deletion). The list contains Elm_Genlist_Item
16985     * pointers. The order of the items in this list is the order which they were
16986     * selected, i.e. the first item in this list is the first item that was
16987     * selected, and so on.
16988     *
16989     * @note If not in multi-select mode, consider using function
16990     * elm_genlist_selected_item_get() instead.
16991     *
16992     * @see elm_genlist_multi_select_set()
16993     * @see elm_genlist_selected_item_get()
16994     *
16995     * @ingroup Genlist
16996     */
16997    EAPI const Eina_List  *elm_genlist_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16998    /**
16999     * Get a list of realized items in genlist
17000     *
17001     * @param obj The genlist object
17002     * @return The list of realized items, nor NULL if none are realized.
17003     *
17004     * This returns a list of the realized items in the genlist. The list
17005     * contains Elm_Genlist_Item pointers. The list must be freed by the
17006     * caller when done with eina_list_free(). The item pointers in the
17007     * list are only valid so long as those items are not deleted or the
17008     * genlist is not deleted.
17009     *
17010     * @see elm_genlist_realized_items_update()
17011     *
17012     * @ingroup Genlist
17013     */
17014    EAPI Eina_List        *elm_genlist_realized_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17015    /**
17016     * Get the item that is at the x, y canvas coords.
17017     *
17018     * @param obj The gelinst object.
17019     * @param x The input x coordinate
17020     * @param y The input y coordinate
17021     * @param posret The position relative to the item returned here
17022     * @return The item at the coordinates or NULL if none
17023     *
17024     * This returns the item at the given coordinates (which are canvas
17025     * relative, not object-relative). If an item is at that coordinate,
17026     * that item handle is returned, and if @p posret is not NULL, the
17027     * integer pointed to is set to a value of -1, 0 or 1, depending if
17028     * the coordinate is on the upper portion of that item (-1), on the
17029     * middle section (0) or on the lower part (1). If NULL is returned as
17030     * an item (no item found there), then posret may indicate -1 or 1
17031     * based if the coordinate is above or below all items respectively in
17032     * the genlist.
17033     *
17034     * @ingroup Genlist
17035     */
17036    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);
17037    /**
17038     * Get the first item in the genlist
17039     *
17040     * This returns the first item in the list.
17041     *
17042     * @param obj The genlist object
17043     * @return The first item, or NULL if none
17044     *
17045     * @ingroup Genlist
17046     */
17047    EAPI Elm_Genlist_Item *elm_genlist_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17048    /**
17049     * Get the last item in the genlist
17050     *
17051     * This returns the last item in the list.
17052     *
17053     * @return The last item, or NULL if none
17054     *
17055     * @ingroup Genlist
17056     */
17057    EAPI Elm_Genlist_Item *elm_genlist_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17058    /**
17059     * Set the scrollbar policy
17060     *
17061     * @param obj The genlist object
17062     * @param policy_h Horizontal scrollbar policy.
17063     * @param policy_v Vertical scrollbar policy.
17064     *
17065     * This sets the scrollbar visibility policy for the given genlist
17066     * scroller. #ELM_SMART_SCROLLER_POLICY_AUTO means the scrollbar is
17067     * made visible if it is needed, and otherwise kept hidden.
17068     * #ELM_SMART_SCROLLER_POLICY_ON turns it on all the time, and
17069     * #ELM_SMART_SCROLLER_POLICY_OFF always keeps it off. This applies
17070     * respectively for the horizontal and vertical scrollbars. Default is
17071     * #ELM_SMART_SCROLLER_POLICY_AUTO
17072     *
17073     * @see elm_genlist_scroller_policy_get()
17074     *
17075     * @ingroup Genlist
17076     */
17077    EAPI void              elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
17078    /**
17079     * Get the scrollbar policy
17080     *
17081     * @param obj The genlist object
17082     * @param policy_h Pointer to store the horizontal scrollbar policy.
17083     * @param policy_v Pointer to store the vertical scrollbar policy.
17084     *
17085     * @see elm_genlist_scroller_policy_set()
17086     *
17087     * @ingroup Genlist
17088     */
17089    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);
17090    /**
17091     * Get the @b next item in a genlist widget's internal list of items,
17092     * given a handle to one of those items.
17093     *
17094     * @param item The genlist item to fetch next from
17095     * @return The item after @p item, or @c NULL if there's none (and
17096     * on errors)
17097     *
17098     * This returns the item placed after the @p item, on the container
17099     * genlist.
17100     *
17101     * @see elm_genlist_item_prev_get()
17102     *
17103     * @ingroup Genlist
17104     */
17105    EAPI Elm_Genlist_Item  *elm_genlist_item_next_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17106    /**
17107     * Get the @b previous item in a genlist widget's internal list of items,
17108     * given a handle to one of those items.
17109     *
17110     * @param item The genlist item to fetch previous from
17111     * @return The item before @p item, or @c NULL if there's none (and
17112     * on errors)
17113     *
17114     * This returns the item placed before the @p item, on the container
17115     * genlist.
17116     *
17117     * @see elm_genlist_item_next_get()
17118     *
17119     * @ingroup Genlist
17120     */
17121    EAPI Elm_Genlist_Item  *elm_genlist_item_prev_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17122    /**
17123     * Get the genlist object's handle which contains a given genlist
17124     * item
17125     *
17126     * @param item The item to fetch the container from
17127     * @return The genlist (parent) object
17128     *
17129     * This returns the genlist object itself that an item belongs to.
17130     *
17131     * @ingroup Genlist
17132     */
17133    EAPI Evas_Object       *elm_genlist_item_genlist_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17134    /**
17135     * Get the parent item of the given item
17136     *
17137     * @param it The item
17138     * @return The parent of the item or @c NULL if it has no parent.
17139     *
17140     * This returns the item that was specified as parent of the item @p it on
17141     * elm_genlist_item_append() and insertion related functions.
17142     *
17143     * @ingroup Genlist
17144     */
17145    EAPI Elm_Genlist_Item  *elm_genlist_item_parent_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17146    /**
17147     * Remove all sub-items (children) of the given item
17148     *
17149     * @param it The item
17150     *
17151     * This removes all items that are children (and their descendants) of the
17152     * given item @p it.
17153     *
17154     * @see elm_genlist_clear()
17155     * @see elm_genlist_item_del()
17156     *
17157     * @ingroup Genlist
17158     */
17159    EAPI void               elm_genlist_item_subitems_clear(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17160    /**
17161     * Set whether a given genlist item is selected or not
17162     *
17163     * @param it The item
17164     * @param selected Use @c EINA_TRUE, to make it selected, @c
17165     * EINA_FALSE to make it unselected
17166     *
17167     * This sets the selected state of an item. If multi selection is
17168     * not enabled on the containing genlist and @p selected is @c
17169     * EINA_TRUE, any other previously selected items will get
17170     * unselected in favor of this new one.
17171     *
17172     * @see elm_genlist_item_selected_get()
17173     *
17174     * @ingroup Genlist
17175     */
17176    EAPI void               elm_genlist_item_selected_set(Elm_Genlist_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
17177    /**
17178     * Get whether a given genlist item is selected or not
17179     *
17180     * @param it The item
17181     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
17182     *
17183     * @see elm_genlist_item_selected_set() for more details
17184     *
17185     * @ingroup Genlist
17186     */
17187    EAPI Eina_Bool          elm_genlist_item_selected_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17188    /**
17189     * Sets the expanded state of an item.
17190     *
17191     * @param it The item
17192     * @param expanded The expanded state (@c EINA_TRUE expanded, @c EINA_FALSE not expanded).
17193     *
17194     * This function flags the item of type #ELM_GENLIST_ITEM_SUBITEMS as
17195     * expanded or not.
17196     *
17197     * The theme will respond to this change visually, and a signal "expanded" or
17198     * "contracted" will be sent from the genlist with a pointer to the item that
17199     * has been expanded/contracted.
17200     *
17201     * Calling this function won't show or hide any child of this item (if it is
17202     * a parent). You must manually delete and create them on the callbacks fo
17203     * the "expanded" or "contracted" signals.
17204     *
17205     * @see elm_genlist_item_expanded_get()
17206     *
17207     * @ingroup Genlist
17208     */
17209    EAPI void               elm_genlist_item_expanded_set(Elm_Genlist_Item *item, Eina_Bool expanded) EINA_ARG_NONNULL(1);
17210    /**
17211     * Get the expanded state of an item
17212     *
17213     * @param it The item
17214     * @return The expanded state
17215     *
17216     * This gets the expanded state of an item.
17217     *
17218     * @see elm_genlist_item_expanded_set()
17219     *
17220     * @ingroup Genlist
17221     */
17222    EAPI Eina_Bool          elm_genlist_item_expanded_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17223    /**
17224     * Get the depth of expanded item
17225     *
17226     * @param it The genlist item object
17227     * @return The depth of expanded item
17228     *
17229     * @ingroup Genlist
17230     */
17231    EAPI int                elm_genlist_item_expanded_depth_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17232    /**
17233     * Set whether a given genlist item is disabled or not.
17234     *
17235     * @param it The item
17236     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
17237     * to enable it back.
17238     *
17239     * A disabled item cannot be selected or unselected. It will also
17240     * change its appearance, to signal the user it's disabled.
17241     *
17242     * @see elm_genlist_item_disabled_get()
17243     *
17244     * @ingroup Genlist
17245     */
17246    EAPI void               elm_genlist_item_disabled_set(Elm_Genlist_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
17247    /**
17248     * Get whether a given genlist item is disabled or not.
17249     *
17250     * @param it The item
17251     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
17252     * (and on errors).
17253     *
17254     * @see elm_genlist_item_disabled_set() for more details
17255     *
17256     * @ingroup Genlist
17257     */
17258    EAPI Eina_Bool          elm_genlist_item_disabled_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17259    /**
17260     * Sets the display only state of an item.
17261     *
17262     * @param it The item
17263     * @param display_only @c EINA_TRUE if the item is display only, @c
17264     * EINA_FALSE otherwise.
17265     *
17266     * A display only item cannot be selected or unselected. It is for
17267     * display only and not selecting or otherwise clicking, dragging
17268     * etc. by the user, thus finger size rules will not be applied to
17269     * this item.
17270     *
17271     * It's good to set group index items to display only state.
17272     *
17273     * @see elm_genlist_item_display_only_get()
17274     *
17275     * @ingroup Genlist
17276     */
17277    EAPI void               elm_genlist_item_display_only_set(Elm_Genlist_Item *it, Eina_Bool display_only) EINA_ARG_NONNULL(1);
17278    /**
17279     * Get the display only state of an item
17280     *
17281     * @param it The item
17282     * @return @c EINA_TRUE if the item is display only, @c
17283     * EINA_FALSE otherwise.
17284     *
17285     * @see elm_genlist_item_display_only_set()
17286     *
17287     * @ingroup Genlist
17288     */
17289    EAPI Eina_Bool          elm_genlist_item_display_only_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17290    /**
17291     * Show the portion of a genlist's internal list containing a given
17292     * item, immediately.
17293     *
17294     * @param it The item to display
17295     *
17296     * This causes genlist to jump to the given item @p it and show it (by
17297     * immediately scrolling to that position), if it is not fully visible.
17298     *
17299     * @see elm_genlist_item_bring_in()
17300     * @see elm_genlist_item_top_show()
17301     * @see elm_genlist_item_middle_show()
17302     *
17303     * @ingroup Genlist
17304     */
17305    EAPI void               elm_genlist_item_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17306    /**
17307     * Animatedly bring in, to the visible are of a genlist, a given
17308     * item on it.
17309     *
17310     * @param it The item to display
17311     *
17312     * This causes genlist to jump to the given item @p it and show it (by
17313     * animatedly scrolling), if it is not fully visible. This may use animation
17314     * to do so and take a period of time
17315     *
17316     * @see elm_genlist_item_show()
17317     * @see elm_genlist_item_top_bring_in()
17318     * @see elm_genlist_item_middle_bring_in()
17319     *
17320     * @ingroup Genlist
17321     */
17322    EAPI void               elm_genlist_item_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17323    /**
17324     * Show the portion of a genlist's internal list containing a given
17325     * item, immediately.
17326     *
17327     * @param it The item to display
17328     *
17329     * This causes genlist to jump to the given item @p it and show it (by
17330     * immediately scrolling to that position), if it is not fully visible.
17331     *
17332     * The item will be positioned at the top of the genlist viewport.
17333     *
17334     * @see elm_genlist_item_show()
17335     * @see elm_genlist_item_top_bring_in()
17336     *
17337     * @ingroup Genlist
17338     */
17339    EAPI void               elm_genlist_item_top_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17340    /**
17341     * Animatedly bring in, to the visible are of a genlist, a given
17342     * item on it.
17343     *
17344     * @param it The item
17345     *
17346     * This causes genlist to jump to the given item @p it and show it (by
17347     * animatedly scrolling), if it is not fully visible. This may use animation
17348     * to do so and take a period of time
17349     *
17350     * The item will be positioned at the top of the genlist viewport.
17351     *
17352     * @see elm_genlist_item_bring_in()
17353     * @see elm_genlist_item_top_show()
17354     *
17355     * @ingroup Genlist
17356     */
17357    EAPI void               elm_genlist_item_top_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17358    /**
17359     * Show the portion of a genlist's internal list containing a given
17360     * item, immediately.
17361     *
17362     * @param it The item to display
17363     *
17364     * This causes genlist to jump to the given item @p it and show it (by
17365     * immediately scrolling to that position), if it is not fully visible.
17366     *
17367     * The item will be positioned at the middle of the genlist viewport.
17368     *
17369     * @see elm_genlist_item_show()
17370     * @see elm_genlist_item_middle_bring_in()
17371     *
17372     * @ingroup Genlist
17373     */
17374    EAPI void               elm_genlist_item_middle_show(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17375    /**
17376     * Animatedly bring in, to the visible are of a genlist, a given
17377     * item on it.
17378     *
17379     * @param it The item
17380     *
17381     * This causes genlist to jump to the given item @p it and show it (by
17382     * animatedly scrolling), if it is not fully visible. This may use animation
17383     * to do so and take a period of time
17384     *
17385     * The item will be positioned at the middle of the genlist viewport.
17386     *
17387     * @see elm_genlist_item_bring_in()
17388     * @see elm_genlist_item_middle_show()
17389     *
17390     * @ingroup Genlist
17391     */
17392    EAPI void               elm_genlist_item_middle_bring_in(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17393    /**
17394     * Remove a genlist item from the its parent, deleting it.
17395     *
17396     * @param item The item to be removed.
17397     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
17398     *
17399     * @see elm_genlist_clear(), to remove all items in a genlist at
17400     * once.
17401     *
17402     * @ingroup Genlist
17403     */
17404    EAPI void               elm_genlist_item_del(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17405    /**
17406     * Return the data associated to a given genlist item
17407     *
17408     * @param item The genlist item.
17409     * @return the data associated to this item.
17410     *
17411     * This returns the @c data value passed on the
17412     * elm_genlist_item_append() and related item addition calls.
17413     *
17414     * @see elm_genlist_item_append()
17415     * @see elm_genlist_item_data_set()
17416     *
17417     * @ingroup Genlist
17418     */
17419    EAPI void              *elm_genlist_item_data_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17420    /**
17421     * Set the data associated to a given genlist item
17422     *
17423     * @param item The genlist item
17424     * @param data The new data pointer to set on it
17425     *
17426     * This @b overrides the @c data value passed on the
17427     * elm_genlist_item_append() and related item addition calls. This
17428     * function @b won't call elm_genlist_item_update() automatically,
17429     * so you'd issue it afterwards if you want to hove the item
17430     * updated to reflect the that new data.
17431     *
17432     * @see elm_genlist_item_data_get()
17433     *
17434     * @ingroup Genlist
17435     */
17436    EAPI void               elm_genlist_item_data_set(Elm_Genlist_Item *it, const void *data) EINA_ARG_NONNULL(1);
17437    /**
17438     * Tells genlist to "orphan" icons fetchs by the item class
17439     *
17440     * @param it The item
17441     *
17442     * This instructs genlist to release references to icons in the item,
17443     * meaning that they will no longer be managed by genlist and are
17444     * floating "orphans" that can be re-used elsewhere if the user wants
17445     * to.
17446     *
17447     * @ingroup Genlist
17448     */
17449    EAPI void               elm_genlist_item_icons_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17450    /**
17451     * Get the real Evas object created to implement the view of a
17452     * given genlist item
17453     *
17454     * @param item The genlist item.
17455     * @return the Evas object implementing this item's view.
17456     *
17457     * This returns the actual Evas object used to implement the
17458     * specified genlist item's view. This may be @c NULL, as it may
17459     * not have been created or may have been deleted, at any time, by
17460     * the genlist. <b>Do not modify this object</b> (move, resize,
17461     * show, hide, etc.), as the genlist is controlling it. This
17462     * function is for querying, emitting custom signals or hooking
17463     * lower level callbacks for events on that object. Do not delete
17464     * this object under any circumstances.
17465     *
17466     * @see elm_genlist_item_data_get()
17467     *
17468     * @ingroup Genlist
17469     */
17470    EAPI const Evas_Object *elm_genlist_item_object_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17471    /**
17472     * Update the contents of an item
17473     *
17474     * @param it The item
17475     *
17476     * This updates an item by calling all the item class functions again
17477     * to get the icons, labels and states. Use this when the original
17478     * item data has changed and the changes are desired to be reflected.
17479     *
17480     * Use elm_genlist_realized_items_update() to update all already realized
17481     * items.
17482     *
17483     * @see elm_genlist_realized_items_update()
17484     *
17485     * @ingroup Genlist
17486     */
17487    EAPI void               elm_genlist_item_update(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17488    /**
17489     * Update the item class of an item
17490     *
17491     * @param it The item
17492     * @param itc The item class for the item
17493     *
17494     * This sets another class fo the item, changing the way that it is
17495     * displayed. After changing the item class, elm_genlist_item_update() is
17496     * called on the item @p it.
17497     *
17498     * @ingroup Genlist
17499     */
17500    EAPI void               elm_genlist_item_item_class_update(Elm_Genlist_Item *it, const Elm_Genlist_Item_Class *itc) EINA_ARG_NONNULL(1, 2);
17501    EAPI const Elm_Genlist_Item_Class *elm_genlist_item_item_class_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17502    /**
17503     * Set the text to be shown in a given genlist item's tooltips.
17504     *
17505     * @param item The genlist item
17506     * @param text The text to set in the content
17507     *
17508     * This call will setup the text to be used as tooltip to that item
17509     * (analogous to elm_object_tooltip_text_set(), but being item
17510     * tooltips with higher precedence than object tooltips). It can
17511     * have only one tooltip at a time, so any previous tooltip data
17512     * will get removed.
17513     *
17514     * In order to set an icon or something else as a tooltip, look at
17515     * elm_genlist_item_tooltip_content_cb_set().
17516     *
17517     * @ingroup Genlist
17518     */
17519    EAPI void               elm_genlist_item_tooltip_text_set(Elm_Genlist_Item *item, const char *text) EINA_ARG_NONNULL(1);
17520    /**
17521     * Set the content to be shown in a given genlist item's tooltips
17522     *
17523     * @param item The genlist item.
17524     * @param func The function returning the tooltip contents.
17525     * @param data What to provide to @a func as callback data/context.
17526     * @param del_cb Called when data is not needed anymore, either when
17527     *        another callback replaces @p func, the tooltip is unset with
17528     *        elm_genlist_item_tooltip_unset() or the owner @p item
17529     *        dies. This callback receives as its first parameter the
17530     *        given @p data, being @c event_info the item handle.
17531     *
17532     * This call will setup the tooltip's contents to @p item
17533     * (analogous to elm_object_tooltip_content_cb_set(), but being
17534     * item tooltips with higher precedence than object tooltips). It
17535     * can have only one tooltip at a time, so any previous tooltip
17536     * content will get removed. @p func (with @p data) will be called
17537     * every time Elementary needs to show the tooltip and it should
17538     * return a valid Evas object, which will be fully managed by the
17539     * tooltip system, getting deleted when the tooltip is gone.
17540     *
17541     * In order to set just a text as a tooltip, look at
17542     * elm_genlist_item_tooltip_text_set().
17543     *
17544     * @ingroup Genlist
17545     */
17546    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);
17547    /**
17548     * Unset a tooltip from a given genlist item
17549     *
17550     * @param item genlist item to remove a previously set tooltip from.
17551     *
17552     * This call removes any tooltip set on @p item. The callback
17553     * provided as @c del_cb to
17554     * elm_genlist_item_tooltip_content_cb_set() will be called to
17555     * notify it is not used anymore (and have resources cleaned, if
17556     * need be).
17557     *
17558     * @see elm_genlist_item_tooltip_content_cb_set()
17559     *
17560     * @ingroup Genlist
17561     */
17562    EAPI void               elm_genlist_item_tooltip_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17563    /**
17564     * Set a different @b style for a given genlist item's tooltip.
17565     *
17566     * @param item genlist item with tooltip set
17567     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
17568     * "default", @c "transparent", etc)
17569     *
17570     * Tooltips can have <b>alternate styles</b> to be displayed on,
17571     * which are defined by the theme set on Elementary. This function
17572     * works analogously as elm_object_tooltip_style_set(), but here
17573     * applied only to genlist item objects. The default style for
17574     * tooltips is @c "default".
17575     *
17576     * @note before you set a style you should define a tooltip with
17577     *       elm_genlist_item_tooltip_content_cb_set() or
17578     *       elm_genlist_item_tooltip_text_set()
17579     *
17580     * @see elm_genlist_item_tooltip_style_get()
17581     *
17582     * @ingroup Genlist
17583     */
17584    EAPI void               elm_genlist_item_tooltip_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
17585    /**
17586     * Get the style set a given genlist item's tooltip.
17587     *
17588     * @param item genlist item with tooltip already set on.
17589     * @return style the theme style in use, which defaults to
17590     *         "default". If the object does not have a tooltip set,
17591     *         then @c NULL is returned.
17592     *
17593     * @see elm_genlist_item_tooltip_style_set() for more details
17594     *
17595     * @ingroup Genlist
17596     */
17597    EAPI const char        *elm_genlist_item_tooltip_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17598    /**
17599     * @brief Disable size restrictions on an object's tooltip
17600     * @param item The tooltip's anchor object
17601     * @param disable If EINA_TRUE, size restrictions are disabled
17602     * @return EINA_FALSE on failure, EINA_TRUE on success
17603     *
17604     * This function allows a tooltip to expand beyond its parant window's canvas.
17605     * It will instead be limited only by the size of the display.
17606     */
17607    EAPI Eina_Bool          elm_genlist_item_tooltip_size_restrict_disable(Elm_Genlist_Item *item, Eina_Bool disable);
17608    /**
17609     * @brief Retrieve size restriction state of an object's tooltip
17610     * @param item The tooltip's anchor object
17611     * @return If EINA_TRUE, size restrictions are disabled
17612     *
17613     * This function returns whether a tooltip is allowed to expand beyond
17614     * its parant window's canvas.
17615     * It will instead be limited only by the size of the display.
17616     */
17617    EAPI Eina_Bool          elm_genlist_item_tooltip_size_restrict_disabled_get(const Elm_Genlist_Item *item);
17618    /**
17619     * Set the type of mouse pointer/cursor decoration to be shown,
17620     * when the mouse pointer is over the given genlist widget item
17621     *
17622     * @param item genlist item to customize cursor on
17623     * @param cursor the cursor type's name
17624     *
17625     * This function works analogously as elm_object_cursor_set(), but
17626     * here the cursor's changing area is restricted to the item's
17627     * area, and not the whole widget's. Note that that item cursors
17628     * have precedence over widget cursors, so that a mouse over @p
17629     * item will always show cursor @p type.
17630     *
17631     * If this function is called twice for an object, a previously set
17632     * cursor will be unset on the second call.
17633     *
17634     * @see elm_object_cursor_set()
17635     * @see elm_genlist_item_cursor_get()
17636     * @see elm_genlist_item_cursor_unset()
17637     *
17638     * @ingroup Genlist
17639     */
17640    EAPI void               elm_genlist_item_cursor_set(Elm_Genlist_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
17641    /**
17642     * Get the type of mouse pointer/cursor decoration set to be shown,
17643     * when the mouse pointer is over the given genlist widget item
17644     *
17645     * @param item genlist item with custom cursor set
17646     * @return the cursor type's name or @c NULL, if no custom cursors
17647     * were set to @p item (and on errors)
17648     *
17649     * @see elm_object_cursor_get()
17650     * @see elm_genlist_item_cursor_set() for more details
17651     * @see elm_genlist_item_cursor_unset()
17652     *
17653     * @ingroup Genlist
17654     */
17655    EAPI const char        *elm_genlist_item_cursor_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17656    /**
17657     * Unset any custom mouse pointer/cursor decoration set to be
17658     * shown, when the mouse pointer is over the given genlist widget
17659     * item, thus making it show the @b default cursor again.
17660     *
17661     * @param item a genlist item
17662     *
17663     * Use this call to undo any custom settings on this item's cursor
17664     * decoration, bringing it back to defaults (no custom style set).
17665     *
17666     * @see elm_object_cursor_unset()
17667     * @see elm_genlist_item_cursor_set() for more details
17668     *
17669     * @ingroup Genlist
17670     */
17671    EAPI void               elm_genlist_item_cursor_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17672    /**
17673     * Set a different @b style for a given custom cursor set for a
17674     * genlist item.
17675     *
17676     * @param item genlist item with custom cursor set
17677     * @param style the <b>theme style</b> to use (e.g. @c "default",
17678     * @c "transparent", etc)
17679     *
17680     * This function only makes sense when one is using custom mouse
17681     * cursor decorations <b>defined in a theme file</b> , which can
17682     * have, given a cursor name/type, <b>alternate styles</b> on
17683     * it. It works analogously as elm_object_cursor_style_set(), but
17684     * here applied only to genlist item objects.
17685     *
17686     * @warning Before you set a cursor style you should have defined a
17687     *       custom cursor previously on the item, with
17688     *       elm_genlist_item_cursor_set()
17689     *
17690     * @see elm_genlist_item_cursor_engine_only_set()
17691     * @see elm_genlist_item_cursor_style_get()
17692     *
17693     * @ingroup Genlist
17694     */
17695    EAPI void               elm_genlist_item_cursor_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
17696    /**
17697     * Get the current @b style set for a given genlist item's custom
17698     * cursor
17699     *
17700     * @param item genlist item with custom cursor set.
17701     * @return style the cursor style in use. If the object does not
17702     *         have a cursor set, then @c NULL is returned.
17703     *
17704     * @see elm_genlist_item_cursor_style_set() for more details
17705     *
17706     * @ingroup Genlist
17707     */
17708    EAPI const char        *elm_genlist_item_cursor_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17709    /**
17710     * Set if the (custom) cursor for a given genlist item should be
17711     * searched in its theme, also, or should only rely on the
17712     * rendering engine.
17713     *
17714     * @param item item with custom (custom) cursor already set on
17715     * @param engine_only Use @c EINA_TRUE to have cursors looked for
17716     * only on those provided by the rendering engine, @c EINA_FALSE to
17717     * have them searched on the widget's theme, as well.
17718     *
17719     * @note This call is of use only if you've set a custom cursor
17720     * for genlist items, with elm_genlist_item_cursor_set().
17721     *
17722     * @note By default, cursors will only be looked for between those
17723     * provided by the rendering engine.
17724     *
17725     * @ingroup Genlist
17726     */
17727    EAPI void               elm_genlist_item_cursor_engine_only_set(Elm_Genlist_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
17728    /**
17729     * Get if the (custom) cursor for a given genlist item is being
17730     * searched in its theme, also, or is only relying on the rendering
17731     * engine.
17732     *
17733     * @param item a genlist item
17734     * @return @c EINA_TRUE, if cursors are being looked for only on
17735     * those provided by the rendering engine, @c EINA_FALSE if they
17736     * are being searched on the widget's theme, as well.
17737     *
17738     * @see elm_genlist_item_cursor_engine_only_set(), for more details
17739     *
17740     * @ingroup Genlist
17741     */
17742    EAPI Eina_Bool          elm_genlist_item_cursor_engine_only_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17743    /**
17744     * Update the contents of all realized items.
17745     *
17746     * @param obj The genlist object.
17747     *
17748     * This updates all realized items by calling all the item class functions again
17749     * to get the icons, labels and states. Use this when the original
17750     * item data has changed and the changes are desired to be reflected.
17751     *
17752     * To update just one item, use elm_genlist_item_update().
17753     *
17754     * @see elm_genlist_realized_items_get()
17755     * @see elm_genlist_item_update()
17756     *
17757     * @ingroup Genlist
17758     */
17759    EAPI void               elm_genlist_realized_items_update(Evas_Object *obj) EINA_ARG_NONNULL(1);
17760    /**
17761     * Activate a genlist mode on an item
17762     *
17763     * @param item The genlist item
17764     * @param mode Mode name
17765     * @param mode_set Boolean to define set or unset mode.
17766     *
17767     * A genlist mode is a different way of selecting an item. Once a mode is
17768     * activated on an item, any other selected item is immediately unselected.
17769     * This feature provides an easy way of implementing a new kind of animation
17770     * for selecting an item, without having to entirely rewrite the item style
17771     * theme. However, the elm_genlist_selected_* API can't be used to get what
17772     * item is activate for a mode.
17773     *
17774     * The current item style will still be used, but applying a genlist mode to
17775     * an item will select it using a different kind of animation.
17776     *
17777     * The current active item for a mode can be found by
17778     * elm_genlist_mode_item_get().
17779     *
17780     * The characteristics of genlist mode are:
17781     * - Only one mode can be active at any time, and for only one item.
17782     * - Genlist handles deactivating other items when one item is activated.
17783     * - A mode is defined in the genlist theme (edc), and more modes can easily
17784     *   be added.
17785     * - A mode style and the genlist item style are different things. They
17786     *   can be combined to provide a default style to the item, with some kind
17787     *   of animation for that item when the mode is activated.
17788     *
17789     * When a mode is activated on an item, a new view for that item is created.
17790     * The theme of this mode defines the animation that will be used to transit
17791     * the item from the old view to the new view. This second (new) view will be
17792     * active for that item while the mode is active on the item, and will be
17793     * destroyed after the mode is totally deactivated from that item.
17794     *
17795     * @see elm_genlist_mode_get()
17796     * @see elm_genlist_mode_item_get()
17797     *
17798     * @ingroup Genlist
17799     */
17800    EAPI void               elm_genlist_item_mode_set(Elm_Genlist_Item *it, const char *mode_type, Eina_Bool mode_set) EINA_ARG_NONNULL(1, 2);
17801    /**
17802     * Get the last (or current) genlist mode used.
17803     *
17804     * @param obj The genlist object
17805     *
17806     * This function just returns the name of the last used genlist mode. It will
17807     * be the current mode if it's still active.
17808     *
17809     * @see elm_genlist_item_mode_set()
17810     * @see elm_genlist_mode_item_get()
17811     *
17812     * @ingroup Genlist
17813     */
17814    EAPI const char        *elm_genlist_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17815    /**
17816     * Get active genlist mode item
17817     *
17818     * @param obj The genlist object
17819     * @return The active item for that current mode. Or @c NULL if no item is
17820     * activated with any mode.
17821     *
17822     * This function returns the item that was activated with a mode, by the
17823     * function elm_genlist_item_mode_set().
17824     *
17825     * @see elm_genlist_item_mode_set()
17826     * @see elm_genlist_mode_get()
17827     *
17828     * @ingroup Genlist
17829     */
17830    EAPI const Elm_Genlist_Item *elm_genlist_mode_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17831
17832    /**
17833     * Set reorder mode
17834     *
17835     * @param obj The genlist object
17836     * @param reorder_mode The reorder mode
17837     * (EINA_TRUE = on, EINA_FALSE = off)
17838     *
17839     * @ingroup Genlist
17840     */
17841    EAPI void               elm_genlist_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
17842
17843    /**
17844     * Get the reorder mode
17845     *
17846     * @param obj The genlist object
17847     * @return The reorder mode
17848     * (EINA_TRUE = on, EINA_FALSE = off)
17849     *
17850     * @ingroup Genlist
17851     */
17852    EAPI Eina_Bool          elm_genlist_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17853
17854    /**
17855     * @}
17856     */
17857
17858    /**
17859     * @defgroup Check Check
17860     *
17861     * @image html img/widget/check/preview-00.png
17862     * @image latex img/widget/check/preview-00.eps
17863     * @image html img/widget/check/preview-01.png
17864     * @image latex img/widget/check/preview-01.eps
17865     * @image html img/widget/check/preview-02.png
17866     * @image latex img/widget/check/preview-02.eps
17867     *
17868     * @brief The check widget allows for toggling a value between true and
17869     * false.
17870     *
17871     * Check objects are a lot like radio objects in layout and functionality
17872     * except they do not work as a group, but independently and only toggle the
17873     * value of a boolean from false to true (0 or 1). elm_check_state_set() sets
17874     * the boolean state (1 for true, 0 for false), and elm_check_state_get()
17875     * returns the current state. For convenience, like the radio objects, you
17876     * can set a pointer to a boolean directly with elm_check_state_pointer_set()
17877     * for it to modify.
17878     *
17879     * Signals that you can add callbacks for are:
17880     * "changed" - This is called whenever the user changes the state of one of
17881     *             the check object(event_info is NULL).
17882     *
17883     * @ref tutorial_check should give you a firm grasp of how to use this widget.
17884     * @{
17885     */
17886    /**
17887     * @brief Add a new Check object
17888     *
17889     * @param parent The parent object
17890     * @return The new object or NULL if it cannot be created
17891     */
17892    EAPI Evas_Object *elm_check_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
17893    /**
17894     * @brief Set the text label of the check object
17895     *
17896     * @param obj The check object
17897     * @param label The text label string in UTF-8
17898     *
17899     * @deprecated use elm_object_text_set() instead.
17900     */
17901    EINA_DEPRECATED EAPI void         elm_check_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
17902    /**
17903     * @brief Get the text label of the check object
17904     *
17905     * @param obj The check object
17906     * @return The text label string in UTF-8
17907     *
17908     * @deprecated use elm_object_text_get() instead.
17909     */
17910    EINA_DEPRECATED EAPI const char  *elm_check_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17911    /**
17912     * @brief Set the icon object of the check object
17913     *
17914     * @param obj The check object
17915     * @param icon The icon object
17916     *
17917     * Once the icon object is set, a previously set one will be deleted.
17918     * If you want to keep that old content object, use the
17919     * elm_check_icon_unset() function.
17920     */
17921    EAPI void         elm_check_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
17922    /**
17923     * @brief Get the icon object of the check object
17924     *
17925     * @param obj The check object
17926     * @return The icon object
17927     */
17928    EAPI Evas_Object *elm_check_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17929    /**
17930     * @brief Unset the icon used for the check object
17931     *
17932     * @param obj The check object
17933     * @return The icon object that was being used
17934     *
17935     * Unparent and return the icon object which was set for this widget.
17936     */
17937    EAPI Evas_Object *elm_check_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
17938    /**
17939     * @brief Set the on/off state of the check object
17940     *
17941     * @param obj The check object
17942     * @param state The state to use (1 == on, 0 == off)
17943     *
17944     * This sets the state of the check. If set
17945     * with elm_check_state_pointer_set() the state of that variable is also
17946     * changed. Calling this @b doesn't cause the "changed" signal to be emited.
17947     */
17948    EAPI void         elm_check_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
17949    /**
17950     * @brief Get the state of the check object
17951     *
17952     * @param obj The check object
17953     * @return The boolean state
17954     */
17955    EAPI Eina_Bool    elm_check_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17956    /**
17957     * @brief Set a convenience pointer to a boolean to change
17958     *
17959     * @param obj The check object
17960     * @param statep Pointer to the boolean to modify
17961     *
17962     * This sets a pointer to a boolean, that, in addition to the check objects
17963     * state will also be modified directly. To stop setting the object pointed
17964     * to simply use NULL as the @p statep parameter. If @p statep is not NULL,
17965     * then when this is called, the check objects state will also be modified to
17966     * reflect the value of the boolean @p statep points to, just like calling
17967     * elm_check_state_set().
17968     */
17969    EAPI void         elm_check_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
17970    /**
17971     * @}
17972     */
17973
17974    /**
17975     * @defgroup Radio Radio
17976     *
17977     * @image html img/widget/radio/preview-00.png
17978     * @image latex img/widget/radio/preview-00.eps
17979     *
17980     * @brief Radio is a widget that allows for 1 or more options to be displayed
17981     * and have the user choose only 1 of them.
17982     *
17983     * A radio object contains an indicator, an optional Label and an optional
17984     * icon object. While it's possible to have a group of only one radio they,
17985     * are normally used in groups of 2 or more. To add a radio to a group use
17986     * elm_radio_group_add(). The radio object(s) will select from one of a set
17987     * of integer values, so any value they are configuring needs to be mapped to
17988     * a set of integers. To configure what value that radio object represents,
17989     * use  elm_radio_state_value_set() to set the integer it represents. To set
17990     * the value the whole group(which one is currently selected) is to indicate
17991     * use elm_radio_value_set() on any group member, and to get the groups value
17992     * use elm_radio_value_get(). For convenience the radio objects are also able
17993     * to directly set an integer(int) to the value that is selected. To specify
17994     * the pointer to this integer to modify, use elm_radio_value_pointer_set().
17995     * The radio objects will modify this directly. That implies the pointer must
17996     * point to valid memory for as long as the radio objects exist.
17997     *
17998     * Signals that you can add callbacks for are:
17999     * @li changed - This is called whenever the user changes the state of one of
18000     * the radio objects within the group of radio objects that work together.
18001     *
18002     * @ref tutorial_radio show most of this API in action.
18003     * @{
18004     */
18005    /**
18006     * @brief Add a new radio to the parent
18007     *
18008     * @param parent The parent object
18009     * @return The new object or NULL if it cannot be created
18010     */
18011    EAPI Evas_Object *elm_radio_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18012    /**
18013     * @brief Set the text label of the radio object
18014     *
18015     * @param obj The radio object
18016     * @param label The text label string in UTF-8
18017     *
18018     * @deprecated use elm_object_text_set() instead.
18019     */
18020    EINA_DEPRECATED EAPI void         elm_radio_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
18021    /**
18022     * @brief Get the text label of the radio object
18023     *
18024     * @param obj The radio object
18025     * @return The text label string in UTF-8
18026     *
18027     * @deprecated use elm_object_text_set() instead.
18028     */
18029    EINA_DEPRECATED EAPI const char  *elm_radio_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18030    /**
18031     * @brief Set the icon object of the radio object
18032     *
18033     * @param obj The radio object
18034     * @param icon The icon object
18035     *
18036     * Once the icon object is set, a previously set one will be deleted. If you
18037     * want to keep that old content object, use the elm_radio_icon_unset()
18038     * function.
18039     */
18040    EAPI void         elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
18041    /**
18042     * @brief Get the icon object of the radio object
18043     *
18044     * @param obj The radio object
18045     * @return The icon object
18046     *
18047     * @see elm_radio_icon_set()
18048     */
18049    EAPI Evas_Object *elm_radio_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18050    /**
18051     * @brief Unset the icon used for the radio object
18052     *
18053     * @param obj The radio object
18054     * @return The icon object that was being used
18055     *
18056     * Unparent and return the icon object which was set for this widget.
18057     *
18058     * @see elm_radio_icon_set()
18059     */
18060    EAPI Evas_Object *elm_radio_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
18061    /**
18062     * @brief Add this radio to a group of other radio objects
18063     *
18064     * @param obj The radio object
18065     * @param group Any object whose group the @p obj is to join.
18066     *
18067     * Radio objects work in groups. Each member should have a different integer
18068     * value assigned. In order to have them work as a group, they need to know
18069     * about each other. This adds the given radio object to the group of which
18070     * the group object indicated is a member.
18071     */
18072    EAPI void         elm_radio_group_add(Evas_Object *obj, Evas_Object *group) EINA_ARG_NONNULL(1);
18073    /**
18074     * @brief Set the integer value that this radio object represents
18075     *
18076     * @param obj The radio object
18077     * @param value The value to use if this radio object is selected
18078     *
18079     * This sets the value of the radio.
18080     */
18081    EAPI void         elm_radio_state_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
18082    /**
18083     * @brief Get the integer value that this radio object represents
18084     *
18085     * @param obj The radio object
18086     * @return The value used if this radio object is selected
18087     *
18088     * This gets the value of the radio.
18089     *
18090     * @see elm_radio_value_set()
18091     */
18092    EAPI int          elm_radio_state_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18093    /**
18094     * @brief Set the value of the radio.
18095     *
18096     * @param obj The radio object
18097     * @param value The value to use for the group
18098     *
18099     * This sets the value of the radio group and will also set the value if
18100     * pointed to, to the value supplied, but will not call any callbacks.
18101     */
18102    EAPI void         elm_radio_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
18103    /**
18104     * @brief Get the state of the radio object
18105     *
18106     * @param obj The radio object
18107     * @return The integer state
18108     */
18109    EAPI int          elm_radio_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18110    /**
18111     * @brief Set a convenience pointer to a integer to change
18112     *
18113     * @param obj The radio object
18114     * @param valuep Pointer to the integer to modify
18115     *
18116     * This sets a pointer to a integer, that, in addition to the radio objects
18117     * state will also be modified directly. To stop setting the object pointed
18118     * to simply use NULL as the @p valuep argument. If valuep is not NULL, then
18119     * when this is called, the radio objects state will also be modified to
18120     * reflect the value of the integer valuep points to, just like calling
18121     * elm_radio_value_set().
18122     */
18123    EAPI void         elm_radio_value_pointer_set(Evas_Object *obj, int *valuep) EINA_ARG_NONNULL(1);
18124    /**
18125     * @}
18126     */
18127
18128    /**
18129     * @defgroup Pager Pager
18130     *
18131     * @image html img/widget/pager/preview-00.png
18132     * @image latex img/widget/pager/preview-00.eps
18133     *
18134     * @brief Widget that allows flipping between 1 or more “pages” of objects.
18135     *
18136     * The flipping between “pages” of objects is animated. All content in pager
18137     * is kept in a stack, the last content to be added will be on the top of the
18138     * stack(be visible).
18139     *
18140     * Objects can be pushed or popped from the stack or deleted as normal.
18141     * Pushes and pops will animate (and a pop will delete the object once the
18142     * animation is finished). Any object already in the pager can be promoted to
18143     * the top(from its current stacking position) through the use of
18144     * elm_pager_content_promote(). Objects are pushed to the top with
18145     * elm_pager_content_push() and when the top item is no longer wanted, simply
18146     * pop it with elm_pager_content_pop() and it will also be deleted. If an
18147     * object is no longer needed and is not the top item, just delete it as
18148     * normal. You can query which objects are the top and bottom with
18149     * elm_pager_content_bottom_get() and elm_pager_content_top_get().
18150     *
18151     * Signals that you can add callbacks for are:
18152     * "hide,finished" - when the previous page is hided
18153     *
18154     * This widget has the following styles available:
18155     * @li default
18156     * @li fade
18157     * @li fade_translucide
18158     * @li fade_invisible
18159     * @note This styles affect only the flipping animations, the appearance when
18160     * not animating is unaffected by styles.
18161     *
18162     * @ref tutorial_pager gives a good overview of the usage of the API.
18163     * @{
18164     */
18165    /**
18166     * Add a new pager to the parent
18167     *
18168     * @param parent The parent object
18169     * @return The new object or NULL if it cannot be created
18170     *
18171     * @ingroup Pager
18172     */
18173    EAPI Evas_Object *elm_pager_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18174    /**
18175     * @brief Push an object to the top of the pager stack (and show it).
18176     *
18177     * @param obj The pager object
18178     * @param content The object to push
18179     *
18180     * The object pushed becomes a child of the pager, it will be controlled and
18181     * deleted when the pager is deleted.
18182     *
18183     * @note If the content is already in the stack use
18184     * elm_pager_content_promote().
18185     * @warning Using this function on @p content already in the stack results in
18186     * undefined behavior.
18187     */
18188    EAPI void         elm_pager_content_push(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
18189    /**
18190     * @brief Pop the object that is on top of the stack
18191     *
18192     * @param obj The pager object
18193     *
18194     * This pops the object that is on the top(visible) of the pager, makes it
18195     * disappear, then deletes the object. The object that was underneath it on
18196     * the stack will become visible.
18197     */
18198    EAPI void         elm_pager_content_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
18199    /**
18200     * @brief Moves an object already in the pager stack to the top of the stack.
18201     *
18202     * @param obj The pager object
18203     * @param content The object to promote
18204     *
18205     * This will take the @p content and move it to the top of the stack as
18206     * if it had been pushed there.
18207     *
18208     * @note If the content isn't already in the stack use
18209     * elm_pager_content_push().
18210     * @warning Using this function on @p content not already in the stack
18211     * results in undefined behavior.
18212     */
18213    EAPI void         elm_pager_content_promote(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
18214    /**
18215     * @brief Return the object at the bottom of the pager stack
18216     *
18217     * @param obj The pager object
18218     * @return The bottom object or NULL if none
18219     */
18220    EAPI Evas_Object *elm_pager_content_bottom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18221    /**
18222     * @brief  Return the object at the top of the pager stack
18223     *
18224     * @param obj The pager object
18225     * @return The top object or NULL if none
18226     */
18227    EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18228    /**
18229     * @}
18230     */
18231
18232    /**
18233     * @defgroup Slideshow Slideshow
18234     *
18235     * @image html img/widget/slideshow/preview-00.png
18236     * @image latex img/widget/slideshow/preview-00.eps
18237     *
18238     * This widget, as the name indicates, is a pre-made image
18239     * slideshow panel, with API functions acting on (child) image
18240     * items presentation. Between those actions, are:
18241     * - advance to next/previous image
18242     * - select the style of image transition animation
18243     * - set the exhibition time for each image
18244     * - start/stop the slideshow
18245     *
18246     * The transition animations are defined in the widget's theme,
18247     * consequently new animations can be added without having to
18248     * update the widget's code.
18249     *
18250     * @section Slideshow_Items Slideshow items
18251     *
18252     * For slideshow items, just like for @ref Genlist "genlist" ones,
18253     * the user defines a @b classes, specifying functions that will be
18254     * called on the item's creation and deletion times.
18255     *
18256     * The #Elm_Slideshow_Item_Class structure contains the following
18257     * members:
18258     *
18259     * - @c func.get - When an item is displayed, this function is
18260     *   called, and it's where one should create the item object, de
18261     *   facto. For example, the object can be a pure Evas image object
18262     *   or an Elementary @ref Photocam "photocam" widget. See
18263     *   #SlideshowItemGetFunc.
18264     * - @c func.del - When an item is no more displayed, this function
18265     *   is called, where the user must delete any data associated to
18266     *   the item. See #SlideshowItemDelFunc.
18267     *
18268     * @section Slideshow_Caching Slideshow caching
18269     *
18270     * The slideshow provides facilities to have items adjacent to the
18271     * one being displayed <b>already "realized"</b> (i.e. loaded) for
18272     * you, so that the system does not have to decode image data
18273     * anymore at the time it has to actually switch images on its
18274     * viewport. The user is able to set the numbers of items to be
18275     * cached @b before and @b after the current item, in the widget's
18276     * item list.
18277     *
18278     * Smart events one can add callbacks for are:
18279     *
18280     * - @c "changed" - when the slideshow switches its view to a new
18281     *   item
18282     *
18283     * List of examples for the slideshow widget:
18284     * @li @ref slideshow_example
18285     */
18286
18287    /**
18288     * @addtogroup Slideshow
18289     * @{
18290     */
18291
18292    typedef struct _Elm_Slideshow_Item_Class Elm_Slideshow_Item_Class; /**< Slideshow item class definition struct */
18293    typedef struct _Elm_Slideshow_Item_Class_Func Elm_Slideshow_Item_Class_Func; /**< Class functions for slideshow item classes. */
18294    typedef struct _Elm_Slideshow_Item       Elm_Slideshow_Item; /**< Slideshow item handle */
18295    typedef Evas_Object *(*SlideshowItemGetFunc) (void *data, Evas_Object *obj); /**< Image fetching class function for slideshow item classes. */
18296    typedef void         (*SlideshowItemDelFunc) (void *data, Evas_Object *obj); /**< Deletion class function for slideshow item classes. */
18297
18298    /**
18299     * @struct _Elm_Slideshow_Item_Class
18300     *
18301     * Slideshow item class definition. See @ref Slideshow_Items for
18302     * field details.
18303     */
18304    struct _Elm_Slideshow_Item_Class
18305      {
18306         struct _Elm_Slideshow_Item_Class_Func
18307           {
18308              SlideshowItemGetFunc get;
18309              SlideshowItemDelFunc del;
18310           } func;
18311      }; /**< #Elm_Slideshow_Item_Class member definitions */
18312
18313    /**
18314     * Add a new slideshow widget to the given parent Elementary
18315     * (container) object
18316     *
18317     * @param parent The parent object
18318     * @return A new slideshow widget handle or @c NULL, on errors
18319     *
18320     * This function inserts a new slideshow widget on the canvas.
18321     *
18322     * @ingroup Slideshow
18323     */
18324    EAPI Evas_Object        *elm_slideshow_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18325
18326    /**
18327     * Add (append) a new item in a given slideshow widget.
18328     *
18329     * @param obj The slideshow object
18330     * @param itc The item class for the item
18331     * @param data The item's data
18332     * @return A handle to the item added or @c NULL, on errors
18333     *
18334     * Add a new item to @p obj's internal list of items, appending it.
18335     * The item's class must contain the function really fetching the
18336     * image object to show for this item, which could be an Evas image
18337     * object or an Elementary photo, for example. The @p data
18338     * parameter is going to be passed to both class functions of the
18339     * item.
18340     *
18341     * @see #Elm_Slideshow_Item_Class
18342     * @see elm_slideshow_item_sorted_insert()
18343     *
18344     * @ingroup Slideshow
18345     */
18346    EAPI Elm_Slideshow_Item *elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data) EINA_ARG_NONNULL(1);
18347
18348    /**
18349     * Insert a new item into the given slideshow widget, using the @p func
18350     * function to sort items (by item handles).
18351     *
18352     * @param obj The slideshow object
18353     * @param itc The item class for the item
18354     * @param data The item's data
18355     * @param func The comparing function to be used to sort slideshow
18356     * items <b>by #Elm_Slideshow_Item item handles</b>
18357     * @return Returns The slideshow item handle, on success, or
18358     * @c NULL, on errors
18359     *
18360     * Add a new item to @p obj's internal list of items, in a position
18361     * determined by the @p func comparing function. The item's class
18362     * must contain the function really fetching the image object to
18363     * show for this item, which could be an Evas image object or an
18364     * Elementary photo, for example. The @p data parameter is going to
18365     * be passed to both class functions of the item.
18366     *
18367     * @see #Elm_Slideshow_Item_Class
18368     * @see elm_slideshow_item_add()
18369     *
18370     * @ingroup Slideshow
18371     */
18372    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);
18373
18374    /**
18375     * Display a given slideshow widget's item, programmatically.
18376     *
18377     * @param obj The slideshow object
18378     * @param item The item to display on @p obj's viewport
18379     *
18380     * The change between the current item and @p item will use the
18381     * transition @p obj is set to use (@see
18382     * elm_slideshow_transition_set()).
18383     *
18384     * @ingroup Slideshow
18385     */
18386    EAPI void                elm_slideshow_show(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
18387
18388    /**
18389     * Slide to the @b next item, in a given slideshow widget
18390     *
18391     * @param obj The slideshow object
18392     *
18393     * The sliding animation @p obj is set to use will be the
18394     * transition effect used, after this call is issued.
18395     *
18396     * @note If the end of the slideshow's internal list of items is
18397     * reached, it'll wrap around to the list's beginning, again.
18398     *
18399     * @ingroup Slideshow
18400     */
18401    EAPI void                elm_slideshow_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
18402
18403    /**
18404     * Slide to the @b previous item, in a given slideshow widget
18405     *
18406     * @param obj The slideshow object
18407     *
18408     * The sliding animation @p obj is set to use will be the
18409     * transition effect used, after this call is issued.
18410     *
18411     * @note If the beginning of the slideshow's internal list of items
18412     * is reached, it'll wrap around to the list's end, again.
18413     *
18414     * @ingroup Slideshow
18415     */
18416    EAPI void                elm_slideshow_previous(Evas_Object *obj) EINA_ARG_NONNULL(1);
18417
18418    /**
18419     * Returns the list of sliding transition/effect names available, for a
18420     * given slideshow widget.
18421     *
18422     * @param obj The slideshow object
18423     * @return The list of transitions (list of @b stringshared strings
18424     * as data)
18425     *
18426     * The transitions, which come from @p obj's theme, must be an EDC
18427     * data item named @c "transitions" on the theme file, with (prefix)
18428     * names of EDC programs actually implementing them.
18429     *
18430     * The available transitions for slideshows on the default theme are:
18431     * - @c "fade" - the current item fades out, while the new one
18432     *   fades in to the slideshow's viewport.
18433     * - @c "black_fade" - the current item fades to black, and just
18434     *   then, the new item will fade in.
18435     * - @c "horizontal" - the current item slides horizontally, until
18436     *   it gets out of the slideshow's viewport, while the new item
18437     *   comes from the left to take its place.
18438     * - @c "vertical" - the current item slides vertically, until it
18439     *   gets out of the slideshow's viewport, while the new item comes
18440     *   from the bottom to take its place.
18441     * - @c "square" - the new item starts to appear from the middle of
18442     *   the current one, but with a tiny size, growing until its
18443     *   target (full) size and covering the old one.
18444     *
18445     * @warning The stringshared strings get no new references
18446     * exclusive to the user grabbing the list, here, so if you'd like
18447     * to use them out of this call's context, you'd better @c
18448     * eina_stringshare_ref() them.
18449     *
18450     * @see elm_slideshow_transition_set()
18451     *
18452     * @ingroup Slideshow
18453     */
18454    EAPI const Eina_List    *elm_slideshow_transitions_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18455
18456    /**
18457     * Set the current slide transition/effect in use for a given
18458     * slideshow widget
18459     *
18460     * @param obj The slideshow object
18461     * @param transition The new transition's name string
18462     *
18463     * If @p transition is implemented in @p obj's theme (i.e., is
18464     * contained in the list returned by
18465     * elm_slideshow_transitions_get()), this new sliding effect will
18466     * be used on the widget.
18467     *
18468     * @see elm_slideshow_transitions_get() for more details
18469     *
18470     * @ingroup Slideshow
18471     */
18472    EAPI void                elm_slideshow_transition_set(Evas_Object *obj, const char *transition) EINA_ARG_NONNULL(1);
18473
18474    /**
18475     * Get the current slide transition/effect in use for a given
18476     * slideshow widget
18477     *
18478     * @param obj The slideshow object
18479     * @return The current transition's name
18480     *
18481     * @see elm_slideshow_transition_set() for more details
18482     *
18483     * @ingroup Slideshow
18484     */
18485    EAPI const char         *elm_slideshow_transition_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18486
18487    /**
18488     * Set the interval between each image transition on a given
18489     * slideshow widget, <b>and start the slideshow, itself</b>
18490     *
18491     * @param obj The slideshow object
18492     * @param timeout The new displaying timeout for images
18493     *
18494     * After this call, the slideshow widget will start cycling its
18495     * view, sequentially and automatically, with the images of the
18496     * items it has. The time between each new image displayed is going
18497     * to be @p timeout, in @b seconds. If a different timeout was set
18498     * previously and an slideshow was in progress, it will continue
18499     * with the new time between transitions, after this call.
18500     *
18501     * @note A value less than or equal to 0 on @p timeout will disable
18502     * the widget's internal timer, thus halting any slideshow which
18503     * could be happening on @p obj.
18504     *
18505     * @see elm_slideshow_timeout_get()
18506     *
18507     * @ingroup Slideshow
18508     */
18509    EAPI void                elm_slideshow_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
18510
18511    /**
18512     * Get the interval set for image transitions on a given slideshow
18513     * widget.
18514     *
18515     * @param obj The slideshow object
18516     * @return Returns the timeout set on it
18517     *
18518     * @see elm_slideshow_timeout_set() for more details
18519     *
18520     * @ingroup Slideshow
18521     */
18522    EAPI double              elm_slideshow_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18523
18524    /**
18525     * Set if, after a slideshow is started, for a given slideshow
18526     * widget, its items should be displayed cyclically or not.
18527     *
18528     * @param obj The slideshow object
18529     * @param loop Use @c EINA_TRUE to make it cycle through items or
18530     * @c EINA_FALSE for it to stop at the end of @p obj's internal
18531     * list of items
18532     *
18533     * @note elm_slideshow_next() and elm_slideshow_previous() will @b
18534     * ignore what is set by this functions, i.e., they'll @b always
18535     * cycle through items. This affects only the "automatic"
18536     * slideshow, as set by elm_slideshow_timeout_set().
18537     *
18538     * @see elm_slideshow_loop_get()
18539     *
18540     * @ingroup Slideshow
18541     */
18542    EAPI void                elm_slideshow_loop_set(Evas_Object *obj, Eina_Bool loop) EINA_ARG_NONNULL(1);
18543
18544    /**
18545     * Get if, after a slideshow is started, for a given slideshow
18546     * widget, its items are to be displayed cyclically or not.
18547     *
18548     * @param obj The slideshow object
18549     * @return @c EINA_TRUE, if the items in @p obj will be cycled
18550     * through or @c EINA_FALSE, otherwise
18551     *
18552     * @see elm_slideshow_loop_set() for more details
18553     *
18554     * @ingroup Slideshow
18555     */
18556    EAPI Eina_Bool           elm_slideshow_loop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18557
18558    /**
18559     * Remove all items from a given slideshow widget
18560     *
18561     * @param obj The slideshow object
18562     *
18563     * This removes (and deletes) all items in @p obj, leaving it
18564     * empty.
18565     *
18566     * @see elm_slideshow_item_del(), to remove just one item.
18567     *
18568     * @ingroup Slideshow
18569     */
18570    EAPI void                elm_slideshow_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
18571
18572    /**
18573     * Get the internal list of items in a given slideshow widget.
18574     *
18575     * @param obj The slideshow object
18576     * @return The list of items (#Elm_Slideshow_Item as data) or
18577     * @c NULL on errors.
18578     *
18579     * This list is @b not to be modified in any way and must not be
18580     * freed. Use the list members with functions like
18581     * elm_slideshow_item_del(), elm_slideshow_item_data_get().
18582     *
18583     * @warning This list is only valid until @p obj object's internal
18584     * items list is changed. It should be fetched again with another
18585     * call to this function when changes happen.
18586     *
18587     * @ingroup Slideshow
18588     */
18589    EAPI const Eina_List    *elm_slideshow_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18590
18591    /**
18592     * Delete a given item from a slideshow widget.
18593     *
18594     * @param item The slideshow item
18595     *
18596     * @ingroup Slideshow
18597     */
18598    EAPI void                elm_slideshow_item_del(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
18599
18600    /**
18601     * Return the data associated with a given slideshow item
18602     *
18603     * @param item The slideshow item
18604     * @return Returns the data associated to this item
18605     *
18606     * @ingroup Slideshow
18607     */
18608    EAPI void               *elm_slideshow_item_data_get(const Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
18609
18610    /**
18611     * Returns the currently displayed item, in a given slideshow widget
18612     *
18613     * @param obj The slideshow object
18614     * @return A handle to the item being displayed in @p obj or
18615     * @c NULL, if none is (and on errors)
18616     *
18617     * @ingroup Slideshow
18618     */
18619    EAPI Elm_Slideshow_Item *elm_slideshow_item_current_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18620
18621    /**
18622     * Get the real Evas object created to implement the view of a
18623     * given slideshow item
18624     *
18625     * @param item The slideshow item.
18626     * @return the Evas object implementing this item's view.
18627     *
18628     * This returns the actual Evas object used to implement the
18629     * specified slideshow item's view. This may be @c NULL, as it may
18630     * not have been created or may have been deleted, at any time, by
18631     * the slideshow. <b>Do not modify this object</b> (move, resize,
18632     * show, hide, etc.), as the slideshow is controlling it. This
18633     * function is for querying, emitting custom signals or hooking
18634     * lower level callbacks for events on that object. Do not delete
18635     * this object under any circumstances.
18636     *
18637     * @see elm_slideshow_item_data_get()
18638     *
18639     * @ingroup Slideshow
18640     */
18641    EAPI Evas_Object*        elm_slideshow_item_object_get(const Elm_Slideshow_Item* item) EINA_ARG_NONNULL(1);
18642
18643    /**
18644     * Get the the item, in a given slideshow widget, placed at
18645     * position @p nth, in its internal items list
18646     *
18647     * @param obj The slideshow object
18648     * @param nth The number of the item to grab a handle to (0 being
18649     * the first)
18650     * @return The item stored in @p obj at position @p nth or @c NULL,
18651     * if there's no item with that index (and on errors)
18652     *
18653     * @ingroup Slideshow
18654     */
18655    EAPI Elm_Slideshow_Item *elm_slideshow_item_nth_get(const Evas_Object *obj, unsigned int nth) EINA_ARG_NONNULL(1);
18656
18657    /**
18658     * Set the current slide layout in use for a given slideshow widget
18659     *
18660     * @param obj The slideshow object
18661     * @param layout The new layout's name string
18662     *
18663     * If @p layout is implemented in @p obj's theme (i.e., is contained
18664     * in the list returned by elm_slideshow_layouts_get()), this new
18665     * images layout will be used on the widget.
18666     *
18667     * @see elm_slideshow_layouts_get() for more details
18668     *
18669     * @ingroup Slideshow
18670     */
18671    EAPI void                elm_slideshow_layout_set(Evas_Object *obj, const char *layout) EINA_ARG_NONNULL(1);
18672
18673    /**
18674     * Get the current slide layout in use for a given slideshow widget
18675     *
18676     * @param obj The slideshow object
18677     * @return The current layout's name
18678     *
18679     * @see elm_slideshow_layout_set() for more details
18680     *
18681     * @ingroup Slideshow
18682     */
18683    EAPI const char         *elm_slideshow_layout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18684
18685    /**
18686     * Returns the list of @b layout names available, for a given
18687     * slideshow widget.
18688     *
18689     * @param obj The slideshow object
18690     * @return The list of layouts (list of @b stringshared strings
18691     * as data)
18692     *
18693     * Slideshow layouts will change how the widget is to dispose each
18694     * image item in its viewport, with regard to cropping, scaling,
18695     * etc.
18696     *
18697     * The layouts, which come from @p obj's theme, must be an EDC
18698     * data item name @c "layouts" on the theme file, with (prefix)
18699     * names of EDC programs actually implementing them.
18700     *
18701     * The available layouts for slideshows on the default theme are:
18702     * - @c "fullscreen" - item images with original aspect, scaled to
18703     *   touch top and down slideshow borders or, if the image's heigh
18704     *   is not enough, left and right slideshow borders.
18705     * - @c "not_fullscreen" - the same behavior as the @c "fullscreen"
18706     *   one, but always leaving 10% of the slideshow's dimensions of
18707     *   distance between the item image's borders and the slideshow
18708     *   borders, for each axis.
18709     *
18710     * @warning The stringshared strings get no new references
18711     * exclusive to the user grabbing the list, here, so if you'd like
18712     * to use them out of this call's context, you'd better @c
18713     * eina_stringshare_ref() them.
18714     *
18715     * @see elm_slideshow_layout_set()
18716     *
18717     * @ingroup Slideshow
18718     */
18719    EAPI const Eina_List    *elm_slideshow_layouts_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18720
18721    /**
18722     * Set the number of items to cache, on a given slideshow widget,
18723     * <b>before the current item</b>
18724     *
18725     * @param obj The slideshow object
18726     * @param count Number of items to cache before the current one
18727     *
18728     * The default value for this property is @c 2. See
18729     * @ref Slideshow_Caching "slideshow caching" for more details.
18730     *
18731     * @see elm_slideshow_cache_before_get()
18732     *
18733     * @ingroup Slideshow
18734     */
18735    EAPI void                elm_slideshow_cache_before_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
18736
18737    /**
18738     * Retrieve the number of items to cache, on a given slideshow widget,
18739     * <b>before the current item</b>
18740     *
18741     * @param obj The slideshow object
18742     * @return The number of items set to be cached before the current one
18743     *
18744     * @see elm_slideshow_cache_before_set() for more details
18745     *
18746     * @ingroup Slideshow
18747     */
18748    EAPI int                 elm_slideshow_cache_before_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18749
18750    /**
18751     * Set the number of items to cache, on a given slideshow widget,
18752     * <b>after the current item</b>
18753     *
18754     * @param obj The slideshow object
18755     * @param count Number of items to cache after the current one
18756     *
18757     * The default value for this property is @c 2. See
18758     * @ref Slideshow_Caching "slideshow caching" for more details.
18759     *
18760     * @see elm_slideshow_cache_after_get()
18761     *
18762     * @ingroup Slideshow
18763     */
18764    EAPI void                elm_slideshow_cache_after_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
18765
18766    /**
18767     * Retrieve the number of items to cache, on a given slideshow widget,
18768     * <b>after the current item</b>
18769     *
18770     * @param obj The slideshow object
18771     * @return The number of items set to be cached after the current one
18772     *
18773     * @see elm_slideshow_cache_after_set() for more details
18774     *
18775     * @ingroup Slideshow
18776     */
18777    EAPI int                 elm_slideshow_cache_after_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18778
18779    /**
18780     * Get the number of items stored in a given slideshow widget
18781     *
18782     * @param obj The slideshow object
18783     * @return The number of items on @p obj, at the moment of this call
18784     *
18785     * @ingroup Slideshow
18786     */
18787    EAPI unsigned int        elm_slideshow_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18788
18789    /**
18790     * @}
18791     */
18792
18793    /**
18794     * @defgroup Fileselector File Selector
18795     *
18796     * @image html img/widget/fileselector/preview-00.png
18797     * @image latex img/widget/fileselector/preview-00.eps
18798     *
18799     * A file selector is a widget that allows a user to navigate
18800     * through a file system, reporting file selections back via its
18801     * API.
18802     *
18803     * It contains shortcut buttons for home directory (@c ~) and to
18804     * jump one directory upwards (..), as well as cancel/ok buttons to
18805     * confirm/cancel a given selection. After either one of those two
18806     * former actions, the file selector will issue its @c "done" smart
18807     * callback.
18808     *
18809     * There's a text entry on it, too, showing the name of the current
18810     * selection. There's the possibility of making it editable, so it
18811     * is useful on file saving dialogs on applications, where one
18812     * gives a file name to save contents to, in a given directory in
18813     * the system. This custom file name will be reported on the @c
18814     * "done" smart callback (explained in sequence).
18815     *
18816     * Finally, it has a view to display file system items into in two
18817     * possible forms:
18818     * - list
18819     * - grid
18820     *
18821     * If Elementary is built with support of the Ethumb thumbnailing
18822     * library, the second form of view will display preview thumbnails
18823     * of files which it supports.
18824     *
18825     * Smart callbacks one can register to:
18826     *
18827     * - @c "selected" - the user has clicked on a file (when not in
18828     *      folders-only mode) or directory (when in folders-only mode)
18829     * - @c "directory,open" - the list has been populated with new
18830     *      content (@c event_info is a pointer to the directory's
18831     *      path, a @b stringshared string)
18832     * - @c "done" - the user has clicked on the "ok" or "cancel"
18833     *      buttons (@c event_info is a pointer to the selection's
18834     *      path, a @b stringshared string)
18835     *
18836     * Here is an example on its usage:
18837     * @li @ref fileselector_example
18838     */
18839
18840    /**
18841     * @addtogroup Fileselector
18842     * @{
18843     */
18844
18845    /**
18846     * Defines how a file selector widget is to layout its contents
18847     * (file system entries).
18848     */
18849    typedef enum _Elm_Fileselector_Mode
18850      {
18851         ELM_FILESELECTOR_LIST = 0, /**< layout as a list */
18852         ELM_FILESELECTOR_GRID, /**< layout as a grid */
18853         ELM_FILESELECTOR_LAST /**< sentinel (helper) value, not used */
18854      } Elm_Fileselector_Mode;
18855
18856    /**
18857     * Add a new file selector widget to the given parent Elementary
18858     * (container) object
18859     *
18860     * @param parent The parent object
18861     * @return a new file selector widget handle or @c NULL, on errors
18862     *
18863     * This function inserts a new file selector widget on the canvas.
18864     *
18865     * @ingroup Fileselector
18866     */
18867    EAPI Evas_Object          *elm_fileselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18868
18869    /**
18870     * Enable/disable the file name entry box where the user can type
18871     * in a name for a file, in a given file selector widget
18872     *
18873     * @param obj The file selector object
18874     * @param is_save @c EINA_TRUE to make the file selector a "saving
18875     * dialog", @c EINA_FALSE otherwise
18876     *
18877     * Having the entry editable is useful on file saving dialogs on
18878     * applications, where one gives a file name to save contents to,
18879     * in a given directory in the system. This custom file name will
18880     * be reported on the @c "done" smart callback.
18881     *
18882     * @see elm_fileselector_is_save_get()
18883     *
18884     * @ingroup Fileselector
18885     */
18886    EAPI void                  elm_fileselector_is_save_set(Evas_Object *obj, Eina_Bool is_save) EINA_ARG_NONNULL(1);
18887
18888    /**
18889     * Get whether the given file selector is in "saving dialog" mode
18890     *
18891     * @param obj The file selector object
18892     * @return @c EINA_TRUE, if the file selector is in "saving dialog"
18893     * mode, @c EINA_FALSE otherwise (and on errors)
18894     *
18895     * @see elm_fileselector_is_save_set() for more details
18896     *
18897     * @ingroup Fileselector
18898     */
18899    EAPI Eina_Bool             elm_fileselector_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18900
18901    /**
18902     * Enable/disable folder-only view for a given file selector widget
18903     *
18904     * @param obj The file selector object
18905     * @param only @c EINA_TRUE to make @p obj only display
18906     * directories, @c EINA_FALSE to make files to be displayed in it
18907     * too
18908     *
18909     * If enabled, the widget's view will only display folder items,
18910     * naturally.
18911     *
18912     * @see elm_fileselector_folder_only_get()
18913     *
18914     * @ingroup Fileselector
18915     */
18916    EAPI void                  elm_fileselector_folder_only_set(Evas_Object *obj, Eina_Bool only) EINA_ARG_NONNULL(1);
18917
18918    /**
18919     * Get whether folder-only view is set for a given file selector
18920     * widget
18921     *
18922     * @param obj The file selector object
18923     * @return only @c EINA_TRUE if @p obj is only displaying
18924     * directories, @c EINA_FALSE if files are being displayed in it
18925     * too (and on errors)
18926     *
18927     * @see elm_fileselector_folder_only_get()
18928     *
18929     * @ingroup Fileselector
18930     */
18931    EAPI Eina_Bool             elm_fileselector_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18932
18933    /**
18934     * Enable/disable the "ok" and "cancel" buttons on a given file
18935     * selector widget
18936     *
18937     * @param obj The file selector object
18938     * @param only @c EINA_TRUE to show them, @c EINA_FALSE to hide.
18939     *
18940     * @note A file selector without those buttons will never emit the
18941     * @c "done" smart event, and is only usable if one is just hooking
18942     * to the other two events.
18943     *
18944     * @see elm_fileselector_buttons_ok_cancel_get()
18945     *
18946     * @ingroup Fileselector
18947     */
18948    EAPI void                  elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool buttons) EINA_ARG_NONNULL(1);
18949
18950    /**
18951     * Get whether the "ok" and "cancel" buttons on a given file
18952     * selector widget are being shown.
18953     *
18954     * @param obj The file selector object
18955     * @return @c EINA_TRUE if they are being shown, @c EINA_FALSE
18956     * otherwise (and on errors)
18957     *
18958     * @see elm_fileselector_buttons_ok_cancel_set() for more details
18959     *
18960     * @ingroup Fileselector
18961     */
18962    EAPI Eina_Bool             elm_fileselector_buttons_ok_cancel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18963
18964    /**
18965     * Enable/disable a tree view in the given file selector widget,
18966     * <b>if it's in @c #ELM_FILESELECTOR_LIST mode</b>
18967     *
18968     * @param obj The file selector object
18969     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
18970     * disable
18971     *
18972     * In a tree view, arrows are created on the sides of directories,
18973     * allowing them to expand in place.
18974     *
18975     * @note If it's in other mode, the changes made by this function
18976     * will only be visible when one switches back to "list" mode.
18977     *
18978     * @see elm_fileselector_expandable_get()
18979     *
18980     * @ingroup Fileselector
18981     */
18982    EAPI void                  elm_fileselector_expandable_set(Evas_Object *obj, Eina_Bool expand) EINA_ARG_NONNULL(1);
18983
18984    /**
18985     * Get whether tree view is enabled for the given file selector
18986     * widget
18987     *
18988     * @param obj The file selector object
18989     * @return @c EINA_TRUE if @p obj is in tree view, @c EINA_FALSE
18990     * otherwise (and or errors)
18991     *
18992     * @see elm_fileselector_expandable_set() for more details
18993     *
18994     * @ingroup Fileselector
18995     */
18996    EAPI Eina_Bool             elm_fileselector_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18997
18998    /**
18999     * Set, programmatically, the @b directory that a given file
19000     * selector widget will display contents from
19001     *
19002     * @param obj The file selector object
19003     * @param path The path to display in @p obj
19004     *
19005     * This will change the @b directory that @p obj is displaying. It
19006     * will also clear the text entry area on the @p obj object, which
19007     * displays select files' names.
19008     *
19009     * @see elm_fileselector_path_get()
19010     *
19011     * @ingroup Fileselector
19012     */
19013    EAPI void                  elm_fileselector_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
19014
19015    /**
19016     * Get the parent directory's path that a given file selector
19017     * widget is displaying
19018     *
19019     * @param obj The file selector object
19020     * @return The (full) path of the directory the file selector is
19021     * displaying, a @b stringshared string
19022     *
19023     * @see elm_fileselector_path_set()
19024     *
19025     * @ingroup Fileselector
19026     */
19027    EAPI const char           *elm_fileselector_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19028
19029    /**
19030     * Set, programmatically, the currently selected file/directory in
19031     * the given file selector widget
19032     *
19033     * @param obj The file selector object
19034     * @param path The (full) path to a file or directory
19035     * @return @c EINA_TRUE on success, @c EINA_FALSE on failure. The
19036     * latter case occurs if the directory or file pointed to do not
19037     * exist.
19038     *
19039     * @see elm_fileselector_selected_get()
19040     *
19041     * @ingroup Fileselector
19042     */
19043    EAPI Eina_Bool             elm_fileselector_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
19044
19045    /**
19046     * Get the currently selected item's (full) path, in the given file
19047     * selector widget
19048     *
19049     * @param obj The file selector object
19050     * @return The absolute path of the selected item, a @b
19051     * stringshared string
19052     *
19053     * @note Custom editions on @p obj object's text entry, if made,
19054     * will appear on the return string of this function, naturally.
19055     *
19056     * @see elm_fileselector_selected_set() for more details
19057     *
19058     * @ingroup Fileselector
19059     */
19060    EAPI const char           *elm_fileselector_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19061
19062    /**
19063     * Set the mode in which a given file selector widget will display
19064     * (layout) file system entries in its view
19065     *
19066     * @param obj The file selector object
19067     * @param mode The mode of the fileselector, being it one of
19068     * #ELM_FILESELECTOR_LIST (default) or #ELM_FILESELECTOR_GRID. The
19069     * first one, naturally, will display the files in a list. The
19070     * latter will make the widget to display its entries in a grid
19071     * form.
19072     *
19073     * @note By using elm_fileselector_expandable_set(), the user may
19074     * trigger a tree view for that list.
19075     *
19076     * @note If Elementary is built with support of the Ethumb
19077     * thumbnailing library, the second form of view will display
19078     * preview thumbnails of files which it supports. You must have
19079     * elm_need_ethumb() called in your Elementary for thumbnailing to
19080     * work, though.
19081     *
19082     * @see elm_fileselector_expandable_set().
19083     * @see elm_fileselector_mode_get().
19084     *
19085     * @ingroup Fileselector
19086     */
19087    EAPI void                  elm_fileselector_mode_set(Evas_Object *obj, Elm_Fileselector_Mode mode) EINA_ARG_NONNULL(1);
19088
19089    /**
19090     * Get the mode in which a given file selector widget is displaying
19091     * (layouting) file system entries in its view
19092     *
19093     * @param obj The fileselector object
19094     * @return The mode in which the fileselector is at
19095     *
19096     * @see elm_fileselector_mode_set() for more details
19097     *
19098     * @ingroup Fileselector
19099     */
19100    EAPI Elm_Fileselector_Mode elm_fileselector_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19101
19102    /**
19103     * @}
19104     */
19105
19106    /**
19107     * @defgroup Progressbar Progress bar
19108     *
19109     * The progress bar is a widget for visually representing the
19110     * progress status of a given job/task.
19111     *
19112     * A progress bar may be horizontal or vertical. It may display an
19113     * icon besides it, as well as primary and @b units labels. The
19114     * former is meant to label the widget as a whole, while the
19115     * latter, which is formatted with floating point values (and thus
19116     * accepts a <c>printf</c>-style format string, like <c>"%1.2f
19117     * units"</c>), is meant to label the widget's <b>progress
19118     * value</b>. Label, icon and unit strings/objects are @b optional
19119     * for progress bars.
19120     *
19121     * A progress bar may be @b inverted, in which state it gets its
19122     * values inverted, with high values being on the left or top and
19123     * low values on the right or bottom, as opposed to normally have
19124     * the low values on the former and high values on the latter,
19125     * respectively, for horizontal and vertical modes.
19126     *
19127     * The @b span of the progress, as set by
19128     * elm_progressbar_span_size_set(), is its length (horizontally or
19129     * vertically), unless one puts size hints on the widget to expand
19130     * on desired directions, by any container. That length will be
19131     * scaled by the object or applications scaling factor. At any
19132     * point code can query the progress bar for its value with
19133     * elm_progressbar_value_get().
19134     *
19135     * Available widget styles for progress bars:
19136     * - @c "default"
19137     * - @c "wheel" (simple style, no text, no progression, only
19138     *      "pulse" effect is available)
19139     *
19140     * Here is an example on its usage:
19141     * @li @ref progressbar_example
19142     */
19143
19144    /**
19145     * Add a new progress bar widget to the given parent Elementary
19146     * (container) object
19147     *
19148     * @param parent The parent object
19149     * @return a new progress bar widget handle or @c NULL, on errors
19150     *
19151     * This function inserts a new progress bar widget on the canvas.
19152     *
19153     * @ingroup Progressbar
19154     */
19155    EAPI Evas_Object *elm_progressbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19156
19157    /**
19158     * Set whether a given progress bar widget is at "pulsing mode" or
19159     * not.
19160     *
19161     * @param obj The progress bar object
19162     * @param pulse @c EINA_TRUE to put @p obj in pulsing mode,
19163     * @c EINA_FALSE to put it back to its default one
19164     *
19165     * By default, progress bars will display values from the low to
19166     * high value boundaries. There are, though, contexts in which the
19167     * state of progression of a given task is @b unknown.  For those,
19168     * one can set a progress bar widget to a "pulsing state", to give
19169     * the user an idea that some computation is being held, but
19170     * without exact progress values. In the default theme it will
19171     * animate its bar with the contents filling in constantly and back
19172     * to non-filled, in a loop. To start and stop this pulsing
19173     * animation, one has to explicitly call elm_progressbar_pulse().
19174     *
19175     * @see elm_progressbar_pulse_get()
19176     * @see elm_progressbar_pulse()
19177     *
19178     * @ingroup Progressbar
19179     */
19180    EAPI void         elm_progressbar_pulse_set(Evas_Object *obj, Eina_Bool pulse) EINA_ARG_NONNULL(1);
19181
19182    /**
19183     * Get whether a given progress bar widget is at "pulsing mode" or
19184     * not.
19185     *
19186     * @param obj The progress bar object
19187     * @return @c EINA_TRUE, if @p obj is in pulsing mode, @c EINA_FALSE
19188     * if it's in the default one (and on errors)
19189     *
19190     * @ingroup Progressbar
19191     */
19192    EAPI Eina_Bool    elm_progressbar_pulse_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19193
19194    /**
19195     * Start/stop a given progress bar "pulsing" animation, if its
19196     * under that mode
19197     *
19198     * @param obj The progress bar object
19199     * @param state @c EINA_TRUE, to @b start the pulsing animation,
19200     * @c EINA_FALSE to @b stop it
19201     *
19202     * @note This call won't do anything if @p obj is not under "pulsing mode".
19203     *
19204     * @see elm_progressbar_pulse_set() for more details.
19205     *
19206     * @ingroup Progressbar
19207     */
19208    EAPI void         elm_progressbar_pulse(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
19209
19210    /**
19211     * Set the progress value (in percentage) on a given progress bar
19212     * widget
19213     *
19214     * @param obj The progress bar object
19215     * @param val The progress value (@b must be between @c 0.0 and @c
19216     * 1.0)
19217     *
19218     * Use this call to set progress bar levels.
19219     *
19220     * @note If you passes a value out of the specified range for @p
19221     * val, it will be interpreted as the @b closest of the @b boundary
19222     * values in the range.
19223     *
19224     * @ingroup Progressbar
19225     */
19226    EAPI void         elm_progressbar_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
19227
19228    /**
19229     * Get the progress value (in percentage) on a given progress bar
19230     * widget
19231     *
19232     * @param obj The progress bar object
19233     * @return The value of the progressbar
19234     *
19235     * @see elm_progressbar_value_set() for more details
19236     *
19237     * @ingroup Progressbar
19238     */
19239    EAPI double       elm_progressbar_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19240
19241    /**
19242     * Set the label of a given progress bar widget
19243     *
19244     * @param obj The progress bar object
19245     * @param label The text label string, in UTF-8
19246     *
19247     * @ingroup Progressbar
19248     * @deprecated use elm_object_text_set() instead.
19249     */
19250    EINA_DEPRECATED EAPI void         elm_progressbar_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
19251
19252    /**
19253     * Get the label of a given progress bar widget
19254     *
19255     * @param obj The progressbar object
19256     * @return The text label string, in UTF-8
19257     *
19258     * @ingroup Progressbar
19259     * @deprecated use elm_object_text_set() instead.
19260     */
19261    EINA_DEPRECATED EAPI const char  *elm_progressbar_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19262
19263    /**
19264     * Set the icon object of a given progress bar widget
19265     *
19266     * @param obj The progress bar object
19267     * @param icon The icon object
19268     *
19269     * Use this call to decorate @p obj with an icon next to it.
19270     *
19271     * @note Once the icon object is set, a previously set one will be
19272     * deleted. If you want to keep that old content object, use the
19273     * elm_progressbar_icon_unset() function.
19274     *
19275     * @see elm_progressbar_icon_get()
19276     *
19277     * @ingroup Progressbar
19278     */
19279    EAPI void         elm_progressbar_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
19280
19281    /**
19282     * Retrieve the icon object set for a given progress bar widget
19283     *
19284     * @param obj The progress bar object
19285     * @return The icon object's handle, if @p obj had one set, or @c NULL,
19286     * otherwise (and on errors)
19287     *
19288     * @see elm_progressbar_icon_set() for more details
19289     *
19290     * @ingroup Progressbar
19291     */
19292    EAPI Evas_Object *elm_progressbar_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19293
19294    /**
19295     * Unset an icon set on a given progress bar widget
19296     *
19297     * @param obj The progress bar object
19298     * @return The icon object that was being used, if any was set, or
19299     * @c NULL, otherwise (and on errors)
19300     *
19301     * This call will unparent and return the icon object which was set
19302     * for this widget, previously, on success.
19303     *
19304     * @see elm_progressbar_icon_set() for more details
19305     *
19306     * @ingroup Progressbar
19307     */
19308    EAPI Evas_Object *elm_progressbar_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
19309
19310    /**
19311     * Set the (exact) length of the bar region of a given progress bar
19312     * widget
19313     *
19314     * @param obj The progress bar object
19315     * @param size The length of the progress bar's bar region
19316     *
19317     * This sets the minimum width (when in horizontal mode) or height
19318     * (when in vertical mode) of the actual bar area of the progress
19319     * bar @p obj. This in turn affects the object's minimum size. Use
19320     * this when you're not setting other size hints expanding on the
19321     * given direction (like weight and alignment hints) and you would
19322     * like it to have a specific size.
19323     *
19324     * @note Icon, label and unit text around @p obj will require their
19325     * own space, which will make @p obj to require more the @p size,
19326     * actually.
19327     *
19328     * @see elm_progressbar_span_size_get()
19329     *
19330     * @ingroup Progressbar
19331     */
19332    EAPI void         elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
19333
19334    /**
19335     * Get the length set for the bar region of a given progress bar
19336     * widget
19337     *
19338     * @param obj The progress bar object
19339     * @return The length of the progress bar's bar region
19340     *
19341     * If that size was not set previously, with
19342     * elm_progressbar_span_size_set(), this call will return @c 0.
19343     *
19344     * @ingroup Progressbar
19345     */
19346    EAPI Evas_Coord   elm_progressbar_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19347
19348    /**
19349     * Set the format string for a given progress bar widget's units
19350     * label
19351     *
19352     * @param obj The progress bar object
19353     * @param format The format string for @p obj's units label
19354     *
19355     * If @c NULL is passed on @p format, it will make @p obj's units
19356     * area to be hidden completely. If not, it'll set the <b>format
19357     * string</b> for the units label's @b text. The units label is
19358     * provided a floating point value, so the units text is up display
19359     * at most one floating point falue. Note that the units label is
19360     * optional. Use a format string such as "%1.2f meters" for
19361     * example.
19362     *
19363     * @note The default format string for a progress bar is an integer
19364     * percentage, as in @c "%.0f %%".
19365     *
19366     * @see elm_progressbar_unit_format_get()
19367     *
19368     * @ingroup Progressbar
19369     */
19370    EAPI void         elm_progressbar_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
19371
19372    /**
19373     * Retrieve the format string set for a given progress bar widget's
19374     * units label
19375     *
19376     * @param obj The progress bar object
19377     * @return The format set string for @p obj's units label or
19378     * @c NULL, if none was set (and on errors)
19379     *
19380     * @see elm_progressbar_unit_format_set() for more details
19381     *
19382     * @ingroup Progressbar
19383     */
19384    EAPI const char  *elm_progressbar_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19385
19386    /**
19387     * Set the orientation of a given progress bar widget
19388     *
19389     * @param obj The progress bar object
19390     * @param horizontal Use @c EINA_TRUE to make @p obj to be
19391     * @b horizontal, @c EINA_FALSE to make it @b vertical
19392     *
19393     * Use this function to change how your progress bar is to be
19394     * disposed: vertically or horizontally.
19395     *
19396     * @see elm_progressbar_horizontal_get()
19397     *
19398     * @ingroup Progressbar
19399     */
19400    EAPI void         elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
19401
19402    /**
19403     * Retrieve the orientation of a given progress bar widget
19404     *
19405     * @param obj The progress bar object
19406     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
19407     * @c EINA_FALSE if it's @b vertical (and on errors)
19408     *
19409     * @see elm_progressbar_horizontal_set() for more details
19410     *
19411     * @ingroup Progressbar
19412     */
19413    EAPI Eina_Bool    elm_progressbar_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19414
19415    /**
19416     * Invert a given progress bar widget's displaying values order
19417     *
19418     * @param obj The progress bar object
19419     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
19420     * @c EINA_FALSE to bring it back to default, non-inverted values.
19421     *
19422     * A progress bar may be @b inverted, in which state it gets its
19423     * values inverted, with high values being on the left or top and
19424     * low values on the right or bottom, as opposed to normally have
19425     * the low values on the former and high values on the latter,
19426     * respectively, for horizontal and vertical modes.
19427     *
19428     * @see elm_progressbar_inverted_get()
19429     *
19430     * @ingroup Progressbar
19431     */
19432    EAPI void         elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
19433
19434    /**
19435     * Get whether a given progress bar widget's displaying values are
19436     * inverted or not
19437     *
19438     * @param obj The progress bar object
19439     * @return @c EINA_TRUE, if @p obj has inverted values,
19440     * @c EINA_FALSE otherwise (and on errors)
19441     *
19442     * @see elm_progressbar_inverted_set() for more details
19443     *
19444     * @ingroup Progressbar
19445     */
19446    EAPI Eina_Bool    elm_progressbar_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19447
19448    /**
19449     * @defgroup Separator Separator
19450     *
19451     * @brief Separator is a very thin object used to separate other objects.
19452     *
19453     * A separator can be vertical or horizontal.
19454     *
19455     * @ref tutorial_separator is a good example of how to use a separator.
19456     * @{
19457     */
19458    /**
19459     * @brief Add a separator object to @p parent
19460     *
19461     * @param parent The parent object
19462     *
19463     * @return The separator object, or NULL upon failure
19464     */
19465    EAPI Evas_Object *elm_separator_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19466    /**
19467     * @brief Set the horizontal mode of a separator object
19468     *
19469     * @param obj The separator object
19470     * @param horizontal If true, the separator is horizontal
19471     */
19472    EAPI void         elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
19473    /**
19474     * @brief Get the horizontal mode of a separator object
19475     *
19476     * @param obj The separator object
19477     * @return If true, the separator is horizontal
19478     *
19479     * @see elm_separator_horizontal_set()
19480     */
19481    EAPI Eina_Bool    elm_separator_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19482    /**
19483     * @}
19484     */
19485
19486    /**
19487     * @defgroup Spinner Spinner
19488     * @ingroup Elementary
19489     *
19490     * @image html img/widget/spinner/preview-00.png
19491     * @image latex img/widget/spinner/preview-00.eps
19492     *
19493     * A spinner is a widget which allows the user to increase or decrease
19494     * numeric values using arrow buttons, or edit values directly, clicking
19495     * over it and typing the new value.
19496     *
19497     * By default the spinner will not wrap and has a label
19498     * of "%.0f" (just showing the integer value of the double).
19499     *
19500     * A spinner has a label that is formatted with floating
19501     * point values and thus accepts a printf-style format string, like
19502     * “%1.2f units”.
19503     *
19504     * It also allows specific values to be replaced by pre-defined labels.
19505     *
19506     * Smart callbacks one can register to:
19507     *
19508     * - "changed" - Whenever the spinner value is changed.
19509     * - "delay,changed" - A short time after the value is changed by the user.
19510     *    This will be called only when the user stops dragging for a very short
19511     *    period or when they release their finger/mouse, so it avoids possibly
19512     *    expensive reactions to the value change.
19513     *
19514     * Available styles for it:
19515     * - @c "default";
19516     * - @c "vertical": up/down buttons at the right side and text left aligned.
19517     *
19518     * Here is an example on its usage:
19519     * @ref spinner_example
19520     */
19521
19522    /**
19523     * @addtogroup Spinner
19524     * @{
19525     */
19526
19527    /**
19528     * Add a new spinner widget to the given parent Elementary
19529     * (container) object.
19530     *
19531     * @param parent The parent object.
19532     * @return a new spinner widget handle or @c NULL, on errors.
19533     *
19534     * This function inserts a new spinner widget on the canvas.
19535     *
19536     * @ingroup Spinner
19537     *
19538     */
19539    EAPI Evas_Object *elm_spinner_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19540
19541    /**
19542     * Set the format string of the displayed label.
19543     *
19544     * @param obj The spinner object.
19545     * @param fmt The format string for the label display.
19546     *
19547     * If @c NULL, this sets the format to "%.0f". If not it sets the format
19548     * string for the label text. The label text is provided a floating point
19549     * value, so the label text can display up to 1 floating point value.
19550     * Note that this is optional.
19551     *
19552     * Use a format string such as "%1.2f meters" for example, and it will
19553     * display values like: "3.14 meters" for a value equal to 3.14159.
19554     *
19555     * Default is "%0.f".
19556     *
19557     * @see elm_spinner_label_format_get()
19558     *
19559     * @ingroup Spinner
19560     */
19561    EAPI void         elm_spinner_label_format_set(Evas_Object *obj, const char *fmt) EINA_ARG_NONNULL(1);
19562
19563    /**
19564     * Get the label format of the spinner.
19565     *
19566     * @param obj The spinner object.
19567     * @return The text label format string in UTF-8.
19568     *
19569     * @see elm_spinner_label_format_set() for details.
19570     *
19571     * @ingroup Spinner
19572     */
19573    EAPI const char  *elm_spinner_label_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19574
19575    /**
19576     * Set the minimum and maximum values for the spinner.
19577     *
19578     * @param obj The spinner object.
19579     * @param min The minimum value.
19580     * @param max The maximum value.
19581     *
19582     * Define the allowed range of values to be selected by the user.
19583     *
19584     * If actual value is less than @p min, it will be updated to @p min. If it
19585     * is bigger then @p max, will be updated to @p max. Actual value can be
19586     * get with elm_spinner_value_get().
19587     *
19588     * By default, min is equal to 0, and max is equal to 100.
19589     *
19590     * @warning Maximum must be greater than minimum.
19591     *
19592     * @see elm_spinner_min_max_get()
19593     *
19594     * @ingroup Spinner
19595     */
19596    EAPI void         elm_spinner_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
19597
19598    /**
19599     * Get the minimum and maximum values of the spinner.
19600     *
19601     * @param obj The spinner object.
19602     * @param min Pointer where to store the minimum value.
19603     * @param max Pointer where to store the maximum value.
19604     *
19605     * @note If only one value is needed, the other pointer can be passed
19606     * as @c NULL.
19607     *
19608     * @see elm_spinner_min_max_set() for details.
19609     *
19610     * @ingroup Spinner
19611     */
19612    EAPI void         elm_spinner_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
19613
19614    /**
19615     * Set the step used to increment or decrement the spinner value.
19616     *
19617     * @param obj The spinner object.
19618     * @param step The step value.
19619     *
19620     * This value will be incremented or decremented to the displayed value.
19621     * It will be incremented while the user keep right or top arrow pressed,
19622     * and will be decremented while the user keep left or bottom arrow pressed.
19623     *
19624     * The interval to increment / decrement can be set with
19625     * elm_spinner_interval_set().
19626     *
19627     * By default step value is equal to 1.
19628     *
19629     * @see elm_spinner_step_get()
19630     *
19631     * @ingroup Spinner
19632     */
19633    EAPI void         elm_spinner_step_set(Evas_Object *obj, double step) EINA_ARG_NONNULL(1);
19634
19635    /**
19636     * Get the step used to increment or decrement the spinner value.
19637     *
19638     * @param obj The spinner object.
19639     * @return The step value.
19640     *
19641     * @see elm_spinner_step_get() for more details.
19642     *
19643     * @ingroup Spinner
19644     */
19645    EAPI double       elm_spinner_step_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19646
19647    /**
19648     * Set the value the spinner displays.
19649     *
19650     * @param obj The spinner object.
19651     * @param val The value to be displayed.
19652     *
19653     * Value will be presented on the label following format specified with
19654     * elm_spinner_format_set().
19655     *
19656     * @warning The value must to be between min and max values. This values
19657     * are set by elm_spinner_min_max_set().
19658     *
19659     * @see elm_spinner_value_get().
19660     * @see elm_spinner_format_set().
19661     * @see elm_spinner_min_max_set().
19662     *
19663     * @ingroup Spinner
19664     */
19665    EAPI void         elm_spinner_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
19666
19667    /**
19668     * Get the value displayed by the spinner.
19669     *
19670     * @param obj The spinner object.
19671     * @return The value displayed.
19672     *
19673     * @see elm_spinner_value_set() for details.
19674     *
19675     * @ingroup Spinner
19676     */
19677    EAPI double       elm_spinner_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19678
19679    /**
19680     * Set whether the spinner should wrap when it reaches its
19681     * minimum or maximum value.
19682     *
19683     * @param obj The spinner object.
19684     * @param wrap @c EINA_TRUE to enable wrap or @c EINA_FALSE to
19685     * disable it.
19686     *
19687     * Disabled by default. If disabled, when the user tries to increment the
19688     * value,
19689     * but displayed value plus step value is bigger than maximum value,
19690     * the spinner
19691     * won't allow it. The same happens when the user tries to decrement it,
19692     * but the value less step is less than minimum value.
19693     *
19694     * When wrap is enabled, in such situations it will allow these changes,
19695     * but will get the value that would be less than minimum and subtracts
19696     * from maximum. Or add the value that would be more than maximum to
19697     * the minimum.
19698     *
19699     * E.g.:
19700     * @li min value = 10
19701     * @li max value = 50
19702     * @li step value = 20
19703     * @li displayed value = 20
19704     *
19705     * When the user decrement value (using left or bottom arrow), it will
19706     * displays @c 40, because max - (min - (displayed - step)) is
19707     * @c 50 - (@c 10 - (@c 20 - @c 20)) = @c 40.
19708     *
19709     * @see elm_spinner_wrap_get().
19710     *
19711     * @ingroup Spinner
19712     */
19713    EAPI void         elm_spinner_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
19714
19715    /**
19716     * Get whether the spinner should wrap when it reaches its
19717     * minimum or maximum value.
19718     *
19719     * @param obj The spinner object
19720     * @return @c EINA_TRUE means wrap is enabled. @c EINA_FALSE indicates
19721     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
19722     *
19723     * @see elm_spinner_wrap_set() for details.
19724     *
19725     * @ingroup Spinner
19726     */
19727    EAPI Eina_Bool    elm_spinner_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19728
19729    /**
19730     * Set whether the spinner can be directly edited by the user or not.
19731     *
19732     * @param obj The spinner object.
19733     * @param editable @c EINA_TRUE to allow users to edit it or @c EINA_FALSE to
19734     * don't allow users to edit it directly.
19735     *
19736     * Spinner objects can have edition @b disabled, in which state they will
19737     * be changed only by arrows.
19738     * Useful for contexts
19739     * where you don't want your users to interact with it writting the value.
19740     * Specially
19741     * when using special values, the user can see real value instead
19742     * of special label on edition.
19743     *
19744     * It's enabled by default.
19745     *
19746     * @see elm_spinner_editable_get()
19747     *
19748     * @ingroup Spinner
19749     */
19750    EAPI void         elm_spinner_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
19751
19752    /**
19753     * Get whether the spinner can be directly edited by the user or not.
19754     *
19755     * @param obj The spinner object.
19756     * @return @c EINA_TRUE means edition is enabled. @c EINA_FALSE indicates
19757     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
19758     *
19759     * @see elm_spinner_editable_set() for details.
19760     *
19761     * @ingroup Spinner
19762     */
19763    EAPI Eina_Bool    elm_spinner_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19764
19765    /**
19766     * Set a special string to display in the place of the numerical value.
19767     *
19768     * @param obj The spinner object.
19769     * @param value The value to be replaced.
19770     * @param label The label to be used.
19771     *
19772     * It's useful for cases when a user should select an item that is
19773     * better indicated by a label than a value. For example, weekdays or months.
19774     *
19775     * E.g.:
19776     * @code
19777     * sp = elm_spinner_add(win);
19778     * elm_spinner_min_max_set(sp, 1, 3);
19779     * elm_spinner_special_value_add(sp, 1, "January");
19780     * elm_spinner_special_value_add(sp, 2, "February");
19781     * elm_spinner_special_value_add(sp, 3, "March");
19782     * evas_object_show(sp);
19783     * @endcode
19784     *
19785     * @ingroup Spinner
19786     */
19787    EAPI void         elm_spinner_special_value_add(Evas_Object *obj, double value, const char *label) EINA_ARG_NONNULL(1);
19788
19789    /**
19790     * Set the interval on time updates for an user mouse button hold
19791     * on spinner widgets' arrows.
19792     *
19793     * @param obj The spinner object.
19794     * @param interval The (first) interval value in seconds.
19795     *
19796     * This interval value is @b decreased while the user holds the
19797     * mouse pointer either incrementing or decrementing spinner's value.
19798     *
19799     * This helps the user to get to a given value distant from the
19800     * current one easier/faster, as it will start to change quicker and
19801     * quicker on mouse button holds.
19802     *
19803     * The calculation for the next change interval value, starting from
19804     * the one set with this call, is the previous interval divided by
19805     * @c 1.05, so it decreases a little bit.
19806     *
19807     * The default starting interval value for automatic changes is
19808     * @c 0.85 seconds.
19809     *
19810     * @see elm_spinner_interval_get()
19811     *
19812     * @ingroup Spinner
19813     */
19814    EAPI void         elm_spinner_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
19815
19816    /**
19817     * Get the interval on time updates for an user mouse button hold
19818     * on spinner widgets' arrows.
19819     *
19820     * @param obj The spinner object.
19821     * @return The (first) interval value, in seconds, set on it.
19822     *
19823     * @see elm_spinner_interval_set() for more details.
19824     *
19825     * @ingroup Spinner
19826     */
19827    EAPI double       elm_spinner_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19828
19829    /**
19830     * @}
19831     */
19832
19833    /**
19834     * @defgroup Index Index
19835     *
19836     * @image html img/widget/index/preview-00.png
19837     * @image latex img/widget/index/preview-00.eps
19838     *
19839     * An index widget gives you an index for fast access to whichever
19840     * group of other UI items one might have. It's a list of text
19841     * items (usually letters, for alphabetically ordered access).
19842     *
19843     * Index widgets are by default hidden and just appear when the
19844     * user clicks over it's reserved area in the canvas. In its
19845     * default theme, it's an area one @ref Fingers "finger" wide on
19846     * the right side of the index widget's container.
19847     *
19848     * When items on the index are selected, smart callbacks get
19849     * called, so that its user can make other container objects to
19850     * show a given area or child object depending on the index item
19851     * selected. You'd probably be using an index together with @ref
19852     * List "lists", @ref Genlist "generic lists" or @ref Gengrid
19853     * "general grids".
19854     *
19855     * Smart events one  can add callbacks for are:
19856     * - @c "changed" - When the selected index item changes. @c
19857     *      event_info is the selected item's data pointer.
19858     * - @c "delay,changed" - When the selected index item changes, but
19859     *      after a small idling period. @c event_info is the selected
19860     *      item's data pointer.
19861     * - @c "selected" - When the user releases a mouse button and
19862     *      selects an item. @c event_info is the selected item's data
19863     *      pointer.
19864     * - @c "level,up" - when the user moves a finger from the first
19865     *      level to the second level
19866     * - @c "level,down" - when the user moves a finger from the second
19867     *      level to the first level
19868     *
19869     * The @c "delay,changed" event is so that it'll wait a small time
19870     * before actually reporting those events and, moreover, just the
19871     * last event happening on those time frames will actually be
19872     * reported.
19873     *
19874     * Here are some examples on its usage:
19875     * @li @ref index_example_01
19876     * @li @ref index_example_02
19877     */
19878
19879    /**
19880     * @addtogroup Index
19881     * @{
19882     */
19883
19884    typedef struct _Elm_Index_Item Elm_Index_Item; /**< Opaque handle for items of Elementary index widgets */
19885
19886    /**
19887     * Add a new index widget to the given parent Elementary
19888     * (container) object
19889     *
19890     * @param parent The parent object
19891     * @return a new index widget handle or @c NULL, on errors
19892     *
19893     * This function inserts a new index widget on the canvas.
19894     *
19895     * @ingroup Index
19896     */
19897    EAPI Evas_Object    *elm_index_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19898
19899    /**
19900     * Set whether a given index widget is or not visible,
19901     * programatically.
19902     *
19903     * @param obj The index object
19904     * @param active @c EINA_TRUE to show it, @c EINA_FALSE to hide it
19905     *
19906     * Not to be confused with visible as in @c evas_object_show() --
19907     * visible with regard to the widget's auto hiding feature.
19908     *
19909     * @see elm_index_active_get()
19910     *
19911     * @ingroup Index
19912     */
19913    EAPI void            elm_index_active_set(Evas_Object *obj, Eina_Bool active) EINA_ARG_NONNULL(1);
19914
19915    /**
19916     * Get whether a given index widget is currently visible or not.
19917     *
19918     * @param obj The index object
19919     * @return @c EINA_TRUE, if it's shown, @c EINA_FALSE otherwise
19920     *
19921     * @see elm_index_active_set() for more details
19922     *
19923     * @ingroup Index
19924     */
19925    EAPI Eina_Bool       elm_index_active_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19926
19927    /**
19928     * Set the items level for a given index widget.
19929     *
19930     * @param obj The index object.
19931     * @param level @c 0 or @c 1, the currently implemented levels.
19932     *
19933     * @see elm_index_item_level_get()
19934     *
19935     * @ingroup Index
19936     */
19937    EAPI void            elm_index_item_level_set(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
19938
19939    /**
19940     * Get the items level set for a given index widget.
19941     *
19942     * @param obj The index object.
19943     * @return @c 0 or @c 1, which are the levels @p obj might be at.
19944     *
19945     * @see elm_index_item_level_set() for more information
19946     *
19947     * @ingroup Index
19948     */
19949    EAPI int             elm_index_item_level_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19950
19951    /**
19952     * Returns the last selected item's data, for a given index widget.
19953     *
19954     * @param obj The index object.
19955     * @return The item @b data associated to the last selected item on
19956     * @p obj (or @c NULL, on errors).
19957     *
19958     * @warning The returned value is @b not an #Elm_Index_Item item
19959     * handle, but the data associated to it (see the @c item parameter
19960     * in elm_index_item_append(), as an example).
19961     *
19962     * @ingroup Index
19963     */
19964    EAPI void           *elm_index_item_selected_get(const Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
19965
19966    /**
19967     * Append a new item on a given index widget.
19968     *
19969     * @param obj The index object.
19970     * @param letter Letter under which the item should be indexed
19971     * @param item The item data to set for the index's item
19972     *
19973     * Despite the most common usage of the @p letter argument is for
19974     * single char strings, one could use arbitrary strings as index
19975     * entries.
19976     *
19977     * @c item will be the pointer returned back on @c "changed", @c
19978     * "delay,changed" and @c "selected" smart events.
19979     *
19980     * @ingroup Index
19981     */
19982    EAPI void            elm_index_item_append(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
19983
19984    /**
19985     * Prepend a new item on a given index widget.
19986     *
19987     * @param obj The index object.
19988     * @param letter Letter under which the item should be indexed
19989     * @param item The item data to set for the index's item
19990     *
19991     * Despite the most common usage of the @p letter argument is for
19992     * single char strings, one could use arbitrary strings as index
19993     * entries.
19994     *
19995     * @c item will be the pointer returned back on @c "changed", @c
19996     * "delay,changed" and @c "selected" smart events.
19997     *
19998     * @ingroup Index
19999     */
20000    EAPI void            elm_index_item_prepend(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
20001
20002    /**
20003     * Append a new item, on a given index widget, <b>after the item
20004     * having @p relative as data</b>.
20005     *
20006     * @param obj The index object.
20007     * @param letter Letter under which the item should be indexed
20008     * @param item The item data to set for the index's item
20009     * @param relative The item data of the index item to be the
20010     * predecessor of this new one
20011     *
20012     * Despite the most common usage of the @p letter argument is for
20013     * single char strings, one could use arbitrary strings as index
20014     * entries.
20015     *
20016     * @c item will be the pointer returned back on @c "changed", @c
20017     * "delay,changed" and @c "selected" smart events.
20018     *
20019     * @note If @p relative is @c NULL or if it's not found to be data
20020     * set on any previous item on @p obj, this function will behave as
20021     * elm_index_item_append().
20022     *
20023     * @ingroup Index
20024     */
20025    EAPI void            elm_index_item_append_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
20026
20027    /**
20028     * Prepend a new item, on a given index widget, <b>after the item
20029     * having @p relative as data</b>.
20030     *
20031     * @param obj The index object.
20032     * @param letter Letter under which the item should be indexed
20033     * @param item The item data to set for the index's item
20034     * @param relative The item data of the index item to be the
20035     * successor of this new one
20036     *
20037     * Despite the most common usage of the @p letter argument is for
20038     * single char strings, one could use arbitrary strings as index
20039     * entries.
20040     *
20041     * @c item will be the pointer returned back on @c "changed", @c
20042     * "delay,changed" and @c "selected" smart events.
20043     *
20044     * @note If @p relative is @c NULL or if it's not found to be data
20045     * set on any previous item on @p obj, this function will behave as
20046     * elm_index_item_prepend().
20047     *
20048     * @ingroup Index
20049     */
20050    EAPI void            elm_index_item_prepend_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
20051
20052    /**
20053     * Insert a new item into the given index widget, using @p cmp_func
20054     * function to sort items (by item handles).
20055     *
20056     * @param obj The index object.
20057     * @param letter Letter under which the item should be indexed
20058     * @param item The item data to set for the index's item
20059     * @param cmp_func The comparing function to be used to sort index
20060     * items <b>by #Elm_Index_Item item handles</b>
20061     * @param cmp_data_func A @b fallback function to be called for the
20062     * sorting of index items <b>by item data</b>). It will be used
20063     * when @p cmp_func returns @c 0 (equality), which means an index
20064     * item with provided item data already exists. To decide which
20065     * data item should be pointed to by the index item in question, @p
20066     * cmp_data_func will be used. If @p cmp_data_func returns a
20067     * non-negative value, the previous index item data will be
20068     * replaced by the given @p item pointer. If the previous data need
20069     * to be freed, it should be done by the @p cmp_data_func function,
20070     * because all references to it will be lost. If this function is
20071     * not provided (@c NULL is given), index items will be @b
20072     * duplicated, if @p cmp_func returns @c 0.
20073     *
20074     * Despite the most common usage of the @p letter argument is for
20075     * single char strings, one could use arbitrary strings as index
20076     * entries.
20077     *
20078     * @c item will be the pointer returned back on @c "changed", @c
20079     * "delay,changed" and @c "selected" smart events.
20080     *
20081     * @ingroup Index
20082     */
20083    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);
20084
20085    /**
20086     * Remove an item from a given index widget, <b>to be referenced by
20087     * it's data value</b>.
20088     *
20089     * @param obj The index object
20090     * @param item The item's data pointer for the item to be removed
20091     * from @p obj
20092     *
20093     * If a deletion callback is set, via elm_index_item_del_cb_set(),
20094     * that callback function will be called by this one.
20095     *
20096     * @warning The item to be removed from @p obj will be found via
20097     * its item data pointer, and not by an #Elm_Index_Item handle.
20098     *
20099     * @ingroup Index
20100     */
20101    EAPI void            elm_index_item_del(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
20102
20103    /**
20104     * Find a given index widget's item, <b>using item data</b>.
20105     *
20106     * @param obj The index object
20107     * @param item The item data pointed to by the desired index item
20108     * @return The index item handle, if found, or @c NULL otherwise
20109     *
20110     * @ingroup Index
20111     */
20112    EAPI Elm_Index_Item *elm_index_item_find(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
20113
20114    /**
20115     * Removes @b all items from a given index widget.
20116     *
20117     * @param obj The index object.
20118     *
20119     * If deletion callbacks are set, via elm_index_item_del_cb_set(),
20120     * that callback function will be called for each item in @p obj.
20121     *
20122     * @ingroup Index
20123     */
20124    EAPI void            elm_index_item_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
20125
20126    /**
20127     * Go to a given items level on a index widget
20128     *
20129     * @param obj The index object
20130     * @param level The index level (one of @c 0 or @c 1)
20131     *
20132     * @ingroup Index
20133     */
20134    EAPI void            elm_index_item_go(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
20135
20136    /**
20137     * Return the data associated with a given index widget item
20138     *
20139     * @param it The index widget item handle
20140     * @return The data associated with @p it
20141     *
20142     * @see elm_index_item_data_set()
20143     *
20144     * @ingroup Index
20145     */
20146    EAPI void           *elm_index_item_data_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
20147
20148    /**
20149     * Set the data associated with a given index widget item
20150     *
20151     * @param it The index widget item handle
20152     * @param data The new data pointer to set to @p it
20153     *
20154     * This sets new item data on @p it.
20155     *
20156     * @warning The old data pointer won't be touched by this function, so
20157     * the user had better to free that old data himself/herself.
20158     *
20159     * @ingroup Index
20160     */
20161    EAPI void            elm_index_item_data_set(Elm_Index_Item *it, const void *data) EINA_ARG_NONNULL(1);
20162
20163    /**
20164     * Set the function to be called when a given index widget item is freed.
20165     *
20166     * @param it The item to set the callback on
20167     * @param func The function to call on the item's deletion
20168     *
20169     * When called, @p func will have both @c data and @c event_info
20170     * arguments with the @p it item's data value and, naturally, the
20171     * @c obj argument with a handle to the parent index widget.
20172     *
20173     * @ingroup Index
20174     */
20175    EAPI void            elm_index_item_del_cb_set(Elm_Index_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
20176
20177    /**
20178     * Get the letter (string) set on a given index widget item.
20179     *
20180     * @param it The index item handle
20181     * @return The letter string set on @p it
20182     *
20183     * @ingroup Index
20184     */
20185    EAPI const char     *elm_index_item_letter_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
20186
20187    /**
20188     * @}
20189     */
20190
20191    /**
20192     * @defgroup Photocam Photocam
20193     *
20194     * @image html img/widget/photocam/preview-00.png
20195     * @image latex img/widget/photocam/preview-00.eps
20196     *
20197     * This is a widget specifically for displaying high-resolution digital
20198     * camera photos giving speedy feedback (fast load), low memory footprint
20199     * and zooming and panning as well as fitting logic. It is entirely focused
20200     * on jpeg images, and takes advantage of properties of the jpeg format (via
20201     * evas loader features in the jpeg loader).
20202     *
20203     * Signals that you can add callbacks for are:
20204     * @li "clicked" - This is called when a user has clicked the photo without
20205     *                 dragging around.
20206     * @li "press" - This is called when a user has pressed down on the photo.
20207     * @li "longpressed" - This is called when a user has pressed down on the
20208     *                     photo for a long time without dragging around.
20209     * @li "clicked,double" - This is called when a user has double-clicked the
20210     *                        photo.
20211     * @li "load" - Photo load begins.
20212     * @li "loaded" - This is called when the image file load is complete for the
20213     *                first view (low resolution blurry version).
20214     * @li "load,detail" - Photo detailed data load begins.
20215     * @li "loaded,detail" - This is called when the image file load is complete
20216     *                      for the detailed image data (full resolution needed).
20217     * @li "zoom,start" - Zoom animation started.
20218     * @li "zoom,stop" - Zoom animation stopped.
20219     * @li "zoom,change" - Zoom changed when using an auto zoom mode.
20220     * @li "scroll" - the content has been scrolled (moved)
20221     * @li "scroll,anim,start" - scrolling animation has started
20222     * @li "scroll,anim,stop" - scrolling animation has stopped
20223     * @li "scroll,drag,start" - dragging the contents around has started
20224     * @li "scroll,drag,stop" - dragging the contents around has stopped
20225     *
20226     * @ref tutorial_photocam shows the API in action.
20227     * @{
20228     */
20229    /**
20230     * @brief Types of zoom available.
20231     */
20232    typedef enum _Elm_Photocam_Zoom_Mode
20233      {
20234         ELM_PHOTOCAM_ZOOM_MODE_MANUAL = 0, /**< Zoom controled normally by elm_photocam_zoom_set */
20235         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT, /**< Zoom until photo fits in photocam */
20236         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL, /**< Zoom until photo fills photocam */
20237         ELM_PHOTOCAM_ZOOM_MODE_LAST
20238      } Elm_Photocam_Zoom_Mode;
20239    /**
20240     * @brief Add a new Photocam object
20241     *
20242     * @param parent The parent object
20243     * @return The new object or NULL if it cannot be created
20244     */
20245    EAPI Evas_Object           *elm_photocam_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20246    /**
20247     * @brief Set the photo file to be shown
20248     *
20249     * @param obj The photocam object
20250     * @param file The photo file
20251     * @return The return error (see EVAS_LOAD_ERROR_NONE, EVAS_LOAD_ERROR_GENERIC etc.)
20252     *
20253     * This sets (and shows) the specified file (with a relative or absolute
20254     * path) and will return a load error (same error that
20255     * evas_object_image_load_error_get() will return). The image will change and
20256     * adjust its size at this point and begin a background load process for this
20257     * photo that at some time in the future will be displayed at the full
20258     * quality needed.
20259     */
20260    EAPI Evas_Load_Error        elm_photocam_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
20261    /**
20262     * @brief Returns the path of the current image file
20263     *
20264     * @param obj The photocam object
20265     * @return Returns the path
20266     *
20267     * @see elm_photocam_file_set()
20268     */
20269    EAPI const char            *elm_photocam_file_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20270    /**
20271     * @brief Set the zoom level of the photo
20272     *
20273     * @param obj The photocam object
20274     * @param zoom The zoom level to set
20275     *
20276     * This sets the zoom level. 1 will be 1:1 pixel for pixel. 2 will be 2:1
20277     * (that is 2x2 photo pixels will display as 1 on-screen pixel). 4:1 will be
20278     * 4x4 photo pixels as 1 screen pixel, and so on. The @p zoom parameter must
20279     * be greater than 0. It is usggested to stick to powers of 2. (1, 2, 4, 8,
20280     * 16, 32, etc.).
20281     */
20282    EAPI void                   elm_photocam_zoom_set(Evas_Object *obj, double zoom) EINA_ARG_NONNULL(1);
20283    /**
20284     * @brief Get the zoom level of the photo
20285     *
20286     * @param obj The photocam object
20287     * @return The current zoom level
20288     *
20289     * This returns the current zoom level of the photocam object. Note that if
20290     * you set the fill mode to other than ELM_PHOTOCAM_ZOOM_MODE_MANUAL
20291     * (which is the default), the zoom level may be changed at any time by the
20292     * photocam object itself to account for photo size and photocam viewpoer
20293     * size.
20294     *
20295     * @see elm_photocam_zoom_set()
20296     * @see elm_photocam_zoom_mode_set()
20297     */
20298    EAPI double                 elm_photocam_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20299    /**
20300     * @brief Set the zoom mode
20301     *
20302     * @param obj The photocam object
20303     * @param mode The desired mode
20304     *
20305     * This sets the zoom mode to manual or one of several automatic levels.
20306     * Manual (ELM_PHOTOCAM_ZOOM_MODE_MANUAL) means that zoom is set manually by
20307     * elm_photocam_zoom_set() and will stay at that level until changed by code
20308     * or until zoom mode is changed. This is the default mode. The Automatic
20309     * modes will allow the photocam object to automatically adjust zoom mode
20310     * based on properties. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT) will adjust zoom so
20311     * the photo fits EXACTLY inside the scroll frame with no pixels outside this
20312     * area. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL will be similar but ensure no
20313     * pixels within the frame are left unfilled.
20314     */
20315    EAPI void                   elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode) EINA_ARG_NONNULL(1);
20316    /**
20317     * @brief Get the zoom mode
20318     *
20319     * @param obj The photocam object
20320     * @return The current zoom mode
20321     *
20322     * This gets the current zoom mode of the photocam object.
20323     *
20324     * @see elm_photocam_zoom_mode_set()
20325     */
20326    EAPI Elm_Photocam_Zoom_Mode elm_photocam_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20327    /**
20328     * @brief Get the current image pixel width and height
20329     *
20330     * @param obj The photocam object
20331     * @param w A pointer to the width return
20332     * @param h A pointer to the height return
20333     *
20334     * This gets the current photo pixel width and height (for the original).
20335     * The size will be returned in the integers @p w and @p h that are pointed
20336     * to.
20337     */
20338    EAPI void                   elm_photocam_image_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
20339    /**
20340     * @brief Get the area of the image that is currently shown
20341     *
20342     * @param obj
20343     * @param x A pointer to the X-coordinate of region
20344     * @param y A pointer to the Y-coordinate of region
20345     * @param w A pointer to the width
20346     * @param h A pointer to the height
20347     *
20348     * @see elm_photocam_image_region_show()
20349     * @see elm_photocam_image_region_bring_in()
20350     */
20351    EAPI void                   elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
20352    /**
20353     * @brief Set the viewed portion of the image
20354     *
20355     * @param obj The photocam object
20356     * @param x X-coordinate of region in image original pixels
20357     * @param y Y-coordinate of region in image original pixels
20358     * @param w Width of region in image original pixels
20359     * @param h Height of region in image original pixels
20360     *
20361     * This shows the region of the image without using animation.
20362     */
20363    EAPI void                   elm_photocam_image_region_show(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
20364    /**
20365     * @brief Bring in the viewed portion of the image
20366     *
20367     * @param obj The photocam object
20368     * @param x X-coordinate of region in image original pixels
20369     * @param y Y-coordinate of region in image original pixels
20370     * @param w Width of region in image original pixels
20371     * @param h Height of region in image original pixels
20372     *
20373     * This shows the region of the image using animation.
20374     */
20375    EAPI void                   elm_photocam_image_region_bring_in(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
20376    /**
20377     * @brief Set the paused state for photocam
20378     *
20379     * @param obj The photocam object
20380     * @param paused The pause state to set
20381     *
20382     * This sets the paused state to on(EINA_TRUE) or off (EINA_FALSE) for
20383     * photocam. The default is off. This will stop zooming using animation on
20384     * zoom levels changes and change instantly. This will stop any existing
20385     * animations that are running.
20386     */
20387    EAPI void                   elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
20388    /**
20389     * @brief Get the paused state for photocam
20390     *
20391     * @param obj The photocam object
20392     * @return The current paused state
20393     *
20394     * This gets the current paused state for the photocam object.
20395     *
20396     * @see elm_photocam_paused_set()
20397     */
20398    EAPI Eina_Bool              elm_photocam_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20399    /**
20400     * @brief Get the internal low-res image used for photocam
20401     *
20402     * @param obj The photocam object
20403     * @return The internal image object handle, or NULL if none exists
20404     *
20405     * This gets the internal image object inside photocam. Do not modify it. It
20406     * is for inspection only, and hooking callbacks to. Nothing else. It may be
20407     * deleted at any time as well.
20408     */
20409    EAPI Evas_Object           *elm_photocam_internal_image_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20410    /**
20411     * @brief Set the photocam scrolling bouncing.
20412     *
20413     * @param obj The photocam object
20414     * @param h_bounce bouncing for horizontal
20415     * @param v_bounce bouncing for vertical
20416     */
20417    EAPI void                   elm_photocam_bounce_set(Evas_Object *obj,  Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
20418    /**
20419     * @brief Get the photocam scrolling bouncing.
20420     *
20421     * @param obj The photocam object
20422     * @param h_bounce bouncing for horizontal
20423     * @param v_bounce bouncing for vertical
20424     *
20425     * @see elm_photocam_bounce_set()
20426     */
20427    EAPI void                   elm_photocam_bounce_get(const Evas_Object *obj,  Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
20428    /**
20429     * @}
20430     */
20431
20432    /**
20433     * @defgroup Map Map
20434     * @ingroup Elementary
20435     *
20436     * @image html img/widget/map/preview-00.png
20437     * @image latex img/widget/map/preview-00.eps
20438     *
20439     * This is a widget specifically for displaying a map. It uses basically
20440     * OpenStreetMap provider http://www.openstreetmap.org/,
20441     * but custom providers can be added.
20442     *
20443     * It supports some basic but yet nice features:
20444     * @li zoom and scroll
20445     * @li markers with content to be displayed when user clicks over it
20446     * @li group of markers
20447     * @li routes
20448     *
20449     * Smart callbacks one can listen to:
20450     *
20451     * - "clicked" - This is called when a user has clicked the map without
20452     *   dragging around.
20453     * - "press" - This is called when a user has pressed down on the map.
20454     * - "longpressed" - This is called when a user has pressed down on the map
20455     *   for a long time without dragging around.
20456     * - "clicked,double" - This is called when a user has double-clicked
20457     *   the map.
20458     * - "load,detail" - Map detailed data load begins.
20459     * - "loaded,detail" - This is called when all currently visible parts of
20460     *   the map are loaded.
20461     * - "zoom,start" - Zoom animation started.
20462     * - "zoom,stop" - Zoom animation stopped.
20463     * - "zoom,change" - Zoom changed when using an auto zoom mode.
20464     * - "scroll" - the content has been scrolled (moved).
20465     * - "scroll,anim,start" - scrolling animation has started.
20466     * - "scroll,anim,stop" - scrolling animation has stopped.
20467     * - "scroll,drag,start" - dragging the contents around has started.
20468     * - "scroll,drag,stop" - dragging the contents around has stopped.
20469     * - "downloaded" - This is called when all currently required map images
20470     *   are downloaded.
20471     * - "route,load" - This is called when route request begins.
20472     * - "route,loaded" - This is called when route request ends.
20473     * - "name,load" - This is called when name request begins.
20474     * - "name,loaded- This is called when name request ends.
20475     *
20476     * Available style for map widget:
20477     * - @c "default"
20478     *
20479     * Available style for markers:
20480     * - @c "radio"
20481     * - @c "radio2"
20482     * - @c "empty"
20483     *
20484     * Available style for marker bubble:
20485     * - @c "default"
20486     *
20487     * List of examples:
20488     * @li @ref map_example_01
20489     * @li @ref map_example_02
20490     * @li @ref map_example_03
20491     */
20492
20493    /**
20494     * @addtogroup Map
20495     * @{
20496     */
20497
20498    /**
20499     * @enum _Elm_Map_Zoom_Mode
20500     * @typedef Elm_Map_Zoom_Mode
20501     *
20502     * Set map's zoom behavior. It can be set to manual or automatic.
20503     *
20504     * Default value is #ELM_MAP_ZOOM_MODE_MANUAL.
20505     *
20506     * Values <b> don't </b> work as bitmask, only one can be choosen.
20507     *
20508     * @note Valid sizes are 2^zoom, consequently the map may be smaller
20509     * than the scroller view.
20510     *
20511     * @see elm_map_zoom_mode_set()
20512     * @see elm_map_zoom_mode_get()
20513     *
20514     * @ingroup Map
20515     */
20516    typedef enum _Elm_Map_Zoom_Mode
20517      {
20518         ELM_MAP_ZOOM_MODE_MANUAL, /**< Zoom controled manually by elm_map_zoom_set(). It's set by default. */
20519         ELM_MAP_ZOOM_MODE_AUTO_FIT, /**< Zoom until map fits inside the scroll frame with no pixels outside this area. */
20520         ELM_MAP_ZOOM_MODE_AUTO_FILL, /**< Zoom until map fills scroll, ensuring no pixels are left unfilled. */
20521         ELM_MAP_ZOOM_MODE_LAST
20522      } Elm_Map_Zoom_Mode;
20523
20524    /**
20525     * @enum _Elm_Map_Route_Sources
20526     * @typedef Elm_Map_Route_Sources
20527     *
20528     * Set route service to be used. By default used source is
20529     * #ELM_MAP_ROUTE_SOURCE_YOURS.
20530     *
20531     * @see elm_map_route_source_set()
20532     * @see elm_map_route_source_get()
20533     *
20534     * @ingroup Map
20535     */
20536    typedef enum _Elm_Map_Route_Sources
20537      {
20538         ELM_MAP_ROUTE_SOURCE_YOURS, /**< Routing service http://www.yournavigation.org/ . Set by default.*/
20539         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. */
20540         ELM_MAP_ROUTE_SOURCE_ORS, /**< Open Route Service: http://www.openrouteservice.org/ . It's not working with Map yet. */
20541         ELM_MAP_ROUTE_SOURCE_LAST
20542      } Elm_Map_Route_Sources;
20543
20544    typedef enum _Elm_Map_Name_Sources
20545      {
20546         ELM_MAP_NAME_SOURCE_NOMINATIM,
20547         ELM_MAP_NAME_SOURCE_LAST
20548      } Elm_Map_Name_Sources;
20549
20550    /**
20551     * @enum _Elm_Map_Route_Type
20552     * @typedef Elm_Map_Route_Type
20553     *
20554     * Set type of transport used on route.
20555     *
20556     * @see elm_map_route_add()
20557     *
20558     * @ingroup Map
20559     */
20560    typedef enum _Elm_Map_Route_Type
20561      {
20562         ELM_MAP_ROUTE_TYPE_MOTOCAR, /**< Route should consider an automobile will be used. */
20563         ELM_MAP_ROUTE_TYPE_BICYCLE, /**< Route should consider a bicycle will be used by the user. */
20564         ELM_MAP_ROUTE_TYPE_FOOT, /**< Route should consider user will be walking. */
20565         ELM_MAP_ROUTE_TYPE_LAST
20566      } Elm_Map_Route_Type;
20567
20568    /**
20569     * @enum _Elm_Map_Route_Method
20570     * @typedef Elm_Map_Route_Method
20571     *
20572     * Set the routing method, what should be priorized, time or distance.
20573     *
20574     * @see elm_map_route_add()
20575     *
20576     * @ingroup Map
20577     */
20578    typedef enum _Elm_Map_Route_Method
20579      {
20580         ELM_MAP_ROUTE_METHOD_FASTEST, /**< Route should priorize time. */
20581         ELM_MAP_ROUTE_METHOD_SHORTEST, /**< Route should priorize distance. */
20582         ELM_MAP_ROUTE_METHOD_LAST
20583      } Elm_Map_Route_Method;
20584
20585    typedef enum _Elm_Map_Name_Method
20586      {
20587         ELM_MAP_NAME_METHOD_SEARCH,
20588         ELM_MAP_NAME_METHOD_REVERSE,
20589         ELM_MAP_NAME_METHOD_LAST
20590      } Elm_Map_Name_Method;
20591
20592    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(). */
20593    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(). */
20594    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(). */
20595    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(). */
20596    typedef struct _Elm_Map_Name            Elm_Map_Name; /**< A handle for specific coordinates. */
20597    typedef struct _Elm_Map_Track           Elm_Map_Track;
20598
20599    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. */
20600    typedef void         (*ElmMapMarkerDelFunc)      (Evas_Object *obj, Elm_Map_Marker *marker, void *data, Evas_Object *o); /**< Function to delete bubble content for marker classes. */
20601    typedef Evas_Object *(*ElmMapMarkerIconGetFunc)  (Evas_Object *obj, Elm_Map_Marker *marker, void *data); /**< Icon fetching class function for marker classes. */
20602    typedef Evas_Object *(*ElmMapGroupIconGetFunc)   (Evas_Object *obj, void *data); /**< Icon fetching class function for markers group classes. */
20603
20604    typedef char        *(*ElmMapModuleSourceFunc) (void);
20605    typedef int          (*ElmMapModuleZoomMinFunc) (void);
20606    typedef int          (*ElmMapModuleZoomMaxFunc) (void);
20607    typedef char        *(*ElmMapModuleUrlFunc) (Evas_Object *obj, int x, int y, int zoom);
20608    typedef int          (*ElmMapModuleRouteSourceFunc) (void);
20609    typedef char        *(*ElmMapModuleRouteUrlFunc) (Evas_Object *obj, char *type_name, int method, double flon, double flat, double tlon, double tlat);
20610    typedef char        *(*ElmMapModuleNameUrlFunc) (Evas_Object *obj, int method, char *name, double lon, double lat);
20611    typedef Eina_Bool    (*ElmMapModuleGeoIntoCoordFunc) (const Evas_Object *obj, int zoom, double lon, double lat, int size, int *x, int *y);
20612    typedef Eina_Bool    (*ElmMapModuleCoordIntoGeoFunc) (const Evas_Object *obj, int zoom, int x, int y, int size, double *lon, double *lat);
20613
20614    /**
20615     * Add a new map widget to the given parent Elementary (container) object.
20616     *
20617     * @param parent The parent object.
20618     * @return a new map widget handle or @c NULL, on errors.
20619     *
20620     * This function inserts a new map widget on the canvas.
20621     *
20622     * @ingroup Map
20623     */
20624    EAPI Evas_Object          *elm_map_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20625
20626    /**
20627     * Set the zoom level of the map.
20628     *
20629     * @param obj The map object.
20630     * @param zoom The zoom level to set.
20631     *
20632     * This sets the zoom level.
20633     *
20634     * It will respect limits defined by elm_map_source_zoom_min_set() and
20635     * elm_map_source_zoom_max_set().
20636     *
20637     * By default these values are 0 (world map) and 18 (maximum zoom).
20638     *
20639     * This function should be used when zoom mode is set to
20640     * #ELM_MAP_ZOOM_MODE_MANUAL. This is the default mode, and can be set
20641     * with elm_map_zoom_mode_set().
20642     *
20643     * @see elm_map_zoom_mode_set().
20644     * @see elm_map_zoom_get().
20645     *
20646     * @ingroup Map
20647     */
20648    EAPI void                  elm_map_zoom_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
20649
20650    /**
20651     * Get the zoom level of the map.
20652     *
20653     * @param obj The map object.
20654     * @return The current zoom level.
20655     *
20656     * This returns the current zoom level of the map object.
20657     *
20658     * Note that if you set the fill mode to other than #ELM_MAP_ZOOM_MODE_MANUAL
20659     * (which is the default), the zoom level may be changed at any time by the
20660     * map object itself to account for map size and map viewport size.
20661     *
20662     * @see elm_map_zoom_set() for details.
20663     *
20664     * @ingroup Map
20665     */
20666    EAPI int                   elm_map_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20667
20668    /**
20669     * Set the zoom mode used by the map object.
20670     *
20671     * @param obj The map object.
20672     * @param mode The zoom mode of the map, being it one of
20673     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
20674     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
20675     *
20676     * This sets the zoom mode to manual or one of the automatic levels.
20677     * Manual (#ELM_MAP_ZOOM_MODE_MANUAL) means that zoom is set manually by
20678     * elm_map_zoom_set() and will stay at that level until changed by code
20679     * or until zoom mode is changed. This is the default mode.
20680     *
20681     * The Automatic modes will allow the map object to automatically
20682     * adjust zoom mode based on properties. #ELM_MAP_ZOOM_MODE_AUTO_FIT will
20683     * adjust zoom so the map fits inside the scroll frame with no pixels
20684     * outside this area. #ELM_MAP_ZOOM_MODE_AUTO_FILL will be similar but
20685     * ensure no pixels within the frame are left unfilled. Do not forget that
20686     * the valid sizes are 2^zoom, consequently the map may be smaller than
20687     * the scroller view.
20688     *
20689     * @see elm_map_zoom_set()
20690     *
20691     * @ingroup Map
20692     */
20693    EAPI void                  elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode) EINA_ARG_NONNULL(1);
20694
20695    /**
20696     * Get the zoom mode used by the map object.
20697     *
20698     * @param obj The map object.
20699     * @return The zoom mode of the map, being it one of
20700     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
20701     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
20702     *
20703     * This function returns the current zoom mode used by the map object.
20704     *
20705     * @see elm_map_zoom_mode_set() for more details.
20706     *
20707     * @ingroup Map
20708     */
20709    EAPI Elm_Map_Zoom_Mode     elm_map_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20710
20711    /**
20712     * Get the current coordinates of the map.
20713     *
20714     * @param obj The map object.
20715     * @param lon Pointer where to store longitude.
20716     * @param lat Pointer where to store latitude.
20717     *
20718     * This gets the current center coordinates of the map object. It can be
20719     * set by elm_map_geo_region_bring_in() and elm_map_geo_region_show().
20720     *
20721     * @see elm_map_geo_region_bring_in()
20722     * @see elm_map_geo_region_show()
20723     *
20724     * @ingroup Map
20725     */
20726    EAPI void                  elm_map_geo_region_get(const Evas_Object *obj, double *lon, double *lat) EINA_ARG_NONNULL(1);
20727
20728    /**
20729     * Animatedly bring in given coordinates to the center of the map.
20730     *
20731     * @param obj The map object.
20732     * @param lon Longitude to center at.
20733     * @param lat Latitude to center at.
20734     *
20735     * This causes map to jump to the given @p lat and @p lon coordinates
20736     * and show it (by scrolling) in the center of the viewport, if it is not
20737     * already centered. This will use animation to do so and take a period
20738     * of time to complete.
20739     *
20740     * @see elm_map_geo_region_show() for a function to avoid animation.
20741     * @see elm_map_geo_region_get()
20742     *
20743     * @ingroup Map
20744     */
20745    EAPI void                  elm_map_geo_region_bring_in(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
20746
20747    /**
20748     * Show the given coordinates at the center of the map, @b immediately.
20749     *
20750     * @param obj The map object.
20751     * @param lon Longitude to center at.
20752     * @param lat Latitude to center at.
20753     *
20754     * This causes map to @b redraw its viewport's contents to the
20755     * region contining the given @p lat and @p lon, that will be moved to the
20756     * center of the map.
20757     *
20758     * @see elm_map_geo_region_bring_in() for a function to move with animation.
20759     * @see elm_map_geo_region_get()
20760     *
20761     * @ingroup Map
20762     */
20763    EAPI void                  elm_map_geo_region_show(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
20764
20765    /**
20766     * Pause or unpause the map.
20767     *
20768     * @param obj The map object.
20769     * @param paused Use @c EINA_TRUE to pause the map @p obj or @c EINA_FALSE
20770     * to unpause it.
20771     *
20772     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
20773     * for map.
20774     *
20775     * The default is off.
20776     *
20777     * This will stop zooming using animation, changing zoom levels will
20778     * change instantly. This will stop any existing animations that are running.
20779     *
20780     * @see elm_map_paused_get()
20781     *
20782     * @ingroup Map
20783     */
20784    EAPI void                  elm_map_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
20785
20786    /**
20787     * Get a value whether map is paused or not.
20788     *
20789     * @param obj The map object.
20790     * @return @c EINA_TRUE means map is pause. @c EINA_FALSE indicates
20791     * it is not. If @p obj is @c NULL, @c EINA_FALSE is returned.
20792     *
20793     * This gets the current paused state for the map object.
20794     *
20795     * @see elm_map_paused_set() for details.
20796     *
20797     * @ingroup Map
20798     */
20799    EAPI Eina_Bool             elm_map_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20800
20801    /**
20802     * Set to show markers during zoom level changes or not.
20803     *
20804     * @param obj The map object.
20805     * @param paused Use @c EINA_TRUE to @b not show markers or @c EINA_FALSE
20806     * to show them.
20807     *
20808     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
20809     * for map.
20810     *
20811     * The default is off.
20812     *
20813     * This will stop zooming using animation, changing zoom levels will
20814     * change instantly. This will stop any existing animations that are running.
20815     *
20816     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
20817     * for the markers.
20818     *
20819     * The default  is off.
20820     *
20821     * Enabling it will force the map to stop displaying the markers during
20822     * zoom level changes. Set to on if you have a large number of markers.
20823     *
20824     * @see elm_map_paused_markers_get()
20825     *
20826     * @ingroup Map
20827     */
20828    EAPI void                  elm_map_paused_markers_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
20829
20830    /**
20831     * Get a value whether markers will be displayed on zoom level changes or not
20832     *
20833     * @param obj The map object.
20834     * @return @c EINA_TRUE means map @b won't display markers or @c EINA_FALSE
20835     * indicates it will. If @p obj is @c NULL, @c EINA_FALSE is returned.
20836     *
20837     * This gets the current markers paused state for the map object.
20838     *
20839     * @see elm_map_paused_markers_set() for details.
20840     *
20841     * @ingroup Map
20842     */
20843    EAPI Eina_Bool             elm_map_paused_markers_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20844
20845    /**
20846     * Get the information of downloading status.
20847     *
20848     * @param obj The map object.
20849     * @param try_num Pointer where to store number of tiles being downloaded.
20850     * @param finish_num Pointer where to store number of tiles successfully
20851     * downloaded.
20852     *
20853     * This gets the current downloading status for the map object, the number
20854     * of tiles being downloaded and the number of tiles already downloaded.
20855     *
20856     * @ingroup Map
20857     */
20858    EAPI void                  elm_map_utils_downloading_status_get(const Evas_Object *obj, int *try_num, int *finish_num) EINA_ARG_NONNULL(1, 2, 3);
20859
20860    /**
20861     * Convert a pixel coordinate (x,y) into a geographic coordinate
20862     * (longitude, latitude).
20863     *
20864     * @param obj The map object.
20865     * @param x the coordinate.
20866     * @param y the coordinate.
20867     * @param size the size in pixels of the map.
20868     * The map is a square and generally his size is : pow(2.0, zoom)*256.
20869     * @param lon Pointer where to store the longitude that correspond to x.
20870     * @param lat Pointer where to store the latitude that correspond to y.
20871     *
20872     * @note Origin pixel point is the top left corner of the viewport.
20873     * Map zoom and size are taken on account.
20874     *
20875     * @see elm_map_utils_convert_geo_into_coord() if you need the inverse.
20876     *
20877     * @ingroup Map
20878     */
20879    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);
20880
20881    /**
20882     * Convert a geographic coordinate (longitude, latitude) into a pixel
20883     * coordinate (x, y).
20884     *
20885     * @param obj The map object.
20886     * @param lon the longitude.
20887     * @param lat the latitude.
20888     * @param size the size in pixels of the map. The map is a square
20889     * and generally his size is : pow(2.0, zoom)*256.
20890     * @param x Pointer where to store the horizontal pixel coordinate that
20891     * correspond to the longitude.
20892     * @param y Pointer where to store the vertical pixel coordinate that
20893     * correspond to the latitude.
20894     *
20895     * @note Origin pixel point is the top left corner of the viewport.
20896     * Map zoom and size are taken on account.
20897     *
20898     * @see elm_map_utils_convert_coord_into_geo() if you need the inverse.
20899     *
20900     * @ingroup Map
20901     */
20902    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);
20903
20904    /**
20905     * Convert a geographic coordinate (longitude, latitude) into a name
20906     * (address).
20907     *
20908     * @param obj The map object.
20909     * @param lon the longitude.
20910     * @param lat the latitude.
20911     * @return name A #Elm_Map_Name handle for this coordinate.
20912     *
20913     * To get the string for this address, elm_map_name_address_get()
20914     * should be used.
20915     *
20916     * @see elm_map_utils_convert_name_into_coord() if you need the inverse.
20917     *
20918     * @ingroup Map
20919     */
20920    EAPI Elm_Map_Name         *elm_map_utils_convert_coord_into_name(const Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
20921
20922    /**
20923     * Convert a name (address) into a geographic coordinate
20924     * (longitude, latitude).
20925     *
20926     * @param obj The map object.
20927     * @param name The address.
20928     * @return name A #Elm_Map_Name handle for this address.
20929     *
20930     * To get the longitude and latitude, elm_map_name_region_get()
20931     * should be used.
20932     *
20933     * @see elm_map_utils_convert_coord_into_name() if you need the inverse.
20934     *
20935     * @ingroup Map
20936     */
20937    EAPI Elm_Map_Name         *elm_map_utils_convert_name_into_coord(const Evas_Object *obj, char *address) EINA_ARG_NONNULL(1, 2);
20938
20939    /**
20940     * Convert a pixel coordinate into a rotated pixel coordinate.
20941     *
20942     * @param obj The map object.
20943     * @param x horizontal coordinate of the point to rotate.
20944     * @param y vertical coordinate of the point to rotate.
20945     * @param cx rotation's center horizontal position.
20946     * @param cy rotation's center vertical position.
20947     * @param degree amount of degrees from 0.0 to 360.0 to rotate arount Z axis.
20948     * @param xx Pointer where to store rotated x.
20949     * @param yy Pointer where to store rotated y.
20950     *
20951     * @ingroup Map
20952     */
20953    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);
20954
20955    /**
20956     * Add a new marker to the map object.
20957     *
20958     * @param obj The map object.
20959     * @param lon The longitude of the marker.
20960     * @param lat The latitude of the marker.
20961     * @param clas The class, to use when marker @b isn't grouped to others.
20962     * @param clas_group The class group, to use when marker is grouped to others
20963     * @param data The data passed to the callbacks.
20964     *
20965     * @return The created marker or @c NULL upon failure.
20966     *
20967     * A marker will be created and shown in a specific point of the map, defined
20968     * by @p lon and @p lat.
20969     *
20970     * It will be displayed using style defined by @p class when this marker
20971     * is displayed alone (not grouped). A new class can be created with
20972     * elm_map_marker_class_new().
20973     *
20974     * If the marker is grouped to other markers, it will be displayed with
20975     * style defined by @p class_group. Markers with the same group are grouped
20976     * if they are close. A new group class can be created with
20977     * elm_map_marker_group_class_new().
20978     *
20979     * Markers created with this method can be deleted with
20980     * elm_map_marker_remove().
20981     *
20982     * A marker can have associated content to be displayed by a bubble,
20983     * when a user click over it, as well as an icon. These objects will
20984     * be fetch using class' callback functions.
20985     *
20986     * @see elm_map_marker_class_new()
20987     * @see elm_map_marker_group_class_new()
20988     * @see elm_map_marker_remove()
20989     *
20990     * @ingroup Map
20991     */
20992    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);
20993
20994    /**
20995     * Set the maximum numbers of markers' content to be displayed in a group.
20996     *
20997     * @param obj The map object.
20998     * @param max The maximum numbers of items displayed in a bubble.
20999     *
21000     * A bubble will be displayed when the user clicks over the group,
21001     * and will place the content of markers that belong to this group
21002     * inside it.
21003     *
21004     * A group can have a long list of markers, consequently the creation
21005     * of the content of the bubble can be very slow.
21006     *
21007     * In order to avoid this, a maximum number of items is displayed
21008     * in a bubble.
21009     *
21010     * By default this number is 30.
21011     *
21012     * Marker with the same group class are grouped if they are close.
21013     *
21014     * @see elm_map_marker_add()
21015     *
21016     * @ingroup Map
21017     */
21018    EAPI void                  elm_map_max_marker_per_group_set(Evas_Object *obj, int max) EINA_ARG_NONNULL(1);
21019
21020    /**
21021     * Remove a marker from the map.
21022     *
21023     * @param marker The marker to remove.
21024     *
21025     * @see elm_map_marker_add()
21026     *
21027     * @ingroup Map
21028     */
21029    EAPI void                  elm_map_marker_remove(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21030
21031    /**
21032     * Get the current coordinates of the marker.
21033     *
21034     * @param marker marker.
21035     * @param lat Pointer where to store the marker's latitude.
21036     * @param lon Pointer where to store the marker's longitude.
21037     *
21038     * These values are set when adding markers, with function
21039     * elm_map_marker_add().
21040     *
21041     * @see elm_map_marker_add()
21042     *
21043     * @ingroup Map
21044     */
21045    EAPI void                  elm_map_marker_region_get(const Elm_Map_Marker *marker, double *lon, double *lat) EINA_ARG_NONNULL(1);
21046
21047    /**
21048     * Animatedly bring in given marker to the center of the map.
21049     *
21050     * @param marker The marker to center at.
21051     *
21052     * This causes map to jump to the given @p marker's coordinates
21053     * and show it (by scrolling) in the center of the viewport, if it is not
21054     * already centered. This will use animation to do so and take a period
21055     * of time to complete.
21056     *
21057     * @see elm_map_marker_show() for a function to avoid animation.
21058     * @see elm_map_marker_region_get()
21059     *
21060     * @ingroup Map
21061     */
21062    EAPI void                  elm_map_marker_bring_in(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21063
21064    /**
21065     * Show the given marker at the center of the map, @b immediately.
21066     *
21067     * @param marker The marker to center at.
21068     *
21069     * This causes map to @b redraw its viewport's contents to the
21070     * region contining the given @p marker's coordinates, that will be
21071     * moved to the center of the map.
21072     *
21073     * @see elm_map_marker_bring_in() for a function to move with animation.
21074     * @see elm_map_markers_list_show() if more than one marker need to be
21075     * displayed.
21076     * @see elm_map_marker_region_get()
21077     *
21078     * @ingroup Map
21079     */
21080    EAPI void                  elm_map_marker_show(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21081
21082    /**
21083     * Move and zoom the map to display a list of markers.
21084     *
21085     * @param markers A list of #Elm_Map_Marker handles.
21086     *
21087     * The map will be centered on the center point of the markers in the list.
21088     * Then the map will be zoomed in order to fit the markers using the maximum
21089     * zoom which allows display of all the markers.
21090     *
21091     * @warning All the markers should belong to the same map object.
21092     *
21093     * @see elm_map_marker_show() to show a single marker.
21094     * @see elm_map_marker_bring_in()
21095     *
21096     * @ingroup Map
21097     */
21098    EAPI void                  elm_map_markers_list_show(Eina_List *markers) EINA_ARG_NONNULL(1);
21099
21100    /**
21101     * Get the Evas object returned by the ElmMapMarkerGetFunc callback
21102     *
21103     * @param marker The marker wich content should be returned.
21104     * @return Return the evas object if it exists, else @c NULL.
21105     *
21106     * To set callback function #ElmMapMarkerGetFunc for the marker class,
21107     * elm_map_marker_class_get_cb_set() should be used.
21108     *
21109     * This content is what will be inside the bubble that will be displayed
21110     * when an user clicks over the marker.
21111     *
21112     * This returns the actual Evas object used to be placed inside
21113     * the bubble. This may be @c NULL, as it may
21114     * not have been created or may have been deleted, at any time, by
21115     * the map. <b>Do not modify this object</b> (move, resize,
21116     * show, hide, etc.), as the map is controlling it. This
21117     * function is for querying, emitting custom signals or hooking
21118     * lower level callbacks for events on that object. Do not delete
21119     * this object under any circumstances.
21120     *
21121     * @ingroup Map
21122     */
21123    EAPI Evas_Object          *elm_map_marker_object_get(const Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21124
21125    /**
21126     * Update the marker
21127     *
21128     * @param marker The marker to be updated.
21129     *
21130     * If a content is set to this marker, it will call function to delete it,
21131     * #ElmMapMarkerDelFunc, and then will fetch the content again with
21132     * #ElmMapMarkerGetFunc.
21133     *
21134     * These functions are set for the marker class with
21135     * elm_map_marker_class_get_cb_set() and elm_map_marker_class_del_cb_set().
21136     *
21137     * @ingroup Map
21138     */
21139    EAPI void                  elm_map_marker_update(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21140
21141    /**
21142     * Close all the bubbles opened by the user.
21143     *
21144     * @param obj The map object.
21145     *
21146     * A bubble is displayed with a content fetched with #ElmMapMarkerGetFunc
21147     * when the user clicks on a marker.
21148     *
21149     * This functions is set for the marker class with
21150     * elm_map_marker_class_get_cb_set().
21151     *
21152     * @ingroup Map
21153     */
21154    EAPI void                  elm_map_bubbles_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
21155
21156    /**
21157     * Create a new group class.
21158     *
21159     * @param obj The map object.
21160     * @return Returns the new group class.
21161     *
21162     * Each marker must be associated to a group class. Markers in the same
21163     * group are grouped if they are close.
21164     *
21165     * The group class defines the style of the marker when a marker is grouped
21166     * to others markers. When it is alone, another class will be used.
21167     *
21168     * A group class will need to be provided when creating a marker with
21169     * elm_map_marker_add().
21170     *
21171     * Some properties and functions can be set by class, as:
21172     * - style, with elm_map_group_class_style_set()
21173     * - data - to be associated to the group class. It can be set using
21174     *   elm_map_group_class_data_set().
21175     * - min zoom to display markers, set with
21176     *   elm_map_group_class_zoom_displayed_set().
21177     * - max zoom to group markers, set using
21178     *   elm_map_group_class_zoom_grouped_set().
21179     * - visibility - set if markers will be visible or not, set with
21180     *   elm_map_group_class_hide_set().
21181     * - #ElmMapGroupIconGetFunc - used to fetch icon for markers group classes.
21182     *   It can be set using elm_map_group_class_icon_cb_set().
21183     *
21184     * @see elm_map_marker_add()
21185     * @see elm_map_group_class_style_set()
21186     * @see elm_map_group_class_data_set()
21187     * @see elm_map_group_class_zoom_displayed_set()
21188     * @see elm_map_group_class_zoom_grouped_set()
21189     * @see elm_map_group_class_hide_set()
21190     * @see elm_map_group_class_icon_cb_set()
21191     *
21192     * @ingroup Map
21193     */
21194    EAPI Elm_Map_Group_Class  *elm_map_group_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
21195
21196    /**
21197     * Set the marker's style of a group class.
21198     *
21199     * @param clas The group class.
21200     * @param style The style to be used by markers.
21201     *
21202     * Each marker must be associated to a group class, and will use the style
21203     * defined by such class when grouped to other markers.
21204     *
21205     * The following styles are provided by default theme:
21206     * @li @c radio - blue circle
21207     * @li @c radio2 - green circle
21208     * @li @c empty
21209     *
21210     * @see elm_map_group_class_new() for more details.
21211     * @see elm_map_marker_add()
21212     *
21213     * @ingroup Map
21214     */
21215    EAPI void                  elm_map_group_class_style_set(Elm_Map_Group_Class *clas, const char *style) EINA_ARG_NONNULL(1);
21216
21217    /**
21218     * Set the icon callback function of a group class.
21219     *
21220     * @param clas The group class.
21221     * @param icon_get The callback function that will return the icon.
21222     *
21223     * Each marker must be associated to a group class, and it can display a
21224     * custom icon. The function @p icon_get must return this icon.
21225     *
21226     * @see elm_map_group_class_new() for more details.
21227     * @see elm_map_marker_add()
21228     *
21229     * @ingroup Map
21230     */
21231    EAPI void                  elm_map_group_class_icon_cb_set(Elm_Map_Group_Class *clas, ElmMapGroupIconGetFunc icon_get) EINA_ARG_NONNULL(1);
21232
21233    /**
21234     * Set the data associated to the group class.
21235     *
21236     * @param clas The group class.
21237     * @param data The new user data.
21238     *
21239     * This data will be passed for callback functions, like icon get callback,
21240     * that can be set with elm_map_group_class_icon_cb_set().
21241     *
21242     * If a data was previously set, the object will lose the pointer for it,
21243     * so if needs to be freed, you must do it yourself.
21244     *
21245     * @see elm_map_group_class_new() for more details.
21246     * @see elm_map_group_class_icon_cb_set()
21247     * @see elm_map_marker_add()
21248     *
21249     * @ingroup Map
21250     */
21251    EAPI void                  elm_map_group_class_data_set(Elm_Map_Group_Class *clas, void *data) EINA_ARG_NONNULL(1);
21252
21253    /**
21254     * Set the minimum zoom from where the markers are displayed.
21255     *
21256     * @param clas The group class.
21257     * @param zoom The minimum zoom.
21258     *
21259     * Markers only will be displayed when the map is displayed at @p zoom
21260     * or bigger.
21261     *
21262     * @see elm_map_group_class_new() for more details.
21263     * @see elm_map_marker_add()
21264     *
21265     * @ingroup Map
21266     */
21267    EAPI void                  elm_map_group_class_zoom_displayed_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
21268
21269    /**
21270     * Set the zoom from where the markers are no more grouped.
21271     *
21272     * @param clas The group class.
21273     * @param zoom The maximum zoom.
21274     *
21275     * Markers only will be grouped when the map is displayed at
21276     * less than @p zoom.
21277     *
21278     * @see elm_map_group_class_new() for more details.
21279     * @see elm_map_marker_add()
21280     *
21281     * @ingroup Map
21282     */
21283    EAPI void                  elm_map_group_class_zoom_grouped_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
21284
21285    /**
21286     * Set if the markers associated to the group class @clas are hidden or not.
21287     *
21288     * @param clas The group class.
21289     * @param hide Use @c EINA_TRUE to hide markers or @c EINA_FALSE
21290     * to show them.
21291     *
21292     * If @p hide is @c EINA_TRUE the markers will be hidden, but default
21293     * is to show them.
21294     *
21295     * @ingroup Map
21296     */
21297    EAPI void                  elm_map_group_class_hide_set(Evas_Object *obj, Elm_Map_Group_Class *clas, Eina_Bool hide) EINA_ARG_NONNULL(1, 2);
21298
21299    /**
21300     * Create a new marker class.
21301     *
21302     * @param obj The map object.
21303     * @return Returns the new group class.
21304     *
21305     * Each marker must be associated to a class.
21306     *
21307     * The marker class defines the style of the marker when a marker is
21308     * displayed alone, i.e., not grouped to to others markers. When grouped
21309     * it will use group class style.
21310     *
21311     * A marker class will need to be provided when creating a marker with
21312     * elm_map_marker_add().
21313     *
21314     * Some properties and functions can be set by class, as:
21315     * - style, with elm_map_marker_class_style_set()
21316     * - #ElmMapMarkerIconGetFunc - used to fetch icon for markers classes.
21317     *   It can be set using elm_map_marker_class_icon_cb_set().
21318     * - #ElmMapMarkerGetFunc - used to fetch bubble content for marker classes.
21319     *   Set using elm_map_marker_class_get_cb_set().
21320     * - #ElmMapMarkerDelFunc - used to delete bubble content for marker classes.
21321     *   Set using elm_map_marker_class_del_cb_set().
21322     *
21323     * @see elm_map_marker_add()
21324     * @see elm_map_marker_class_style_set()
21325     * @see elm_map_marker_class_icon_cb_set()
21326     * @see elm_map_marker_class_get_cb_set()
21327     * @see elm_map_marker_class_del_cb_set()
21328     *
21329     * @ingroup Map
21330     */
21331    EAPI Elm_Map_Marker_Class *elm_map_marker_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
21332
21333    /**
21334     * Set the marker's style of a marker class.
21335     *
21336     * @param clas The marker class.
21337     * @param style The style to be used by markers.
21338     *
21339     * Each marker must be associated to a marker class, and will use the style
21340     * defined by such class when alone, i.e., @b not grouped to other markers.
21341     *
21342     * The following styles are provided by default theme:
21343     * @li @c radio
21344     * @li @c radio2
21345     * @li @c empty
21346     *
21347     * @see elm_map_marker_class_new() for more details.
21348     * @see elm_map_marker_add()
21349     *
21350     * @ingroup Map
21351     */
21352    EAPI void                  elm_map_marker_class_style_set(Elm_Map_Marker_Class *clas, const char *style) EINA_ARG_NONNULL(1);
21353
21354    /**
21355     * Set the icon callback function of a marker class.
21356     *
21357     * @param clas The marker class.
21358     * @param icon_get The callback function that will return the icon.
21359     *
21360     * Each marker must be associated to a marker class, and it can display a
21361     * custom icon. The function @p icon_get must return this icon.
21362     *
21363     * @see elm_map_marker_class_new() for more details.
21364     * @see elm_map_marker_add()
21365     *
21366     * @ingroup Map
21367     */
21368    EAPI void                  elm_map_marker_class_icon_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerIconGetFunc icon_get) EINA_ARG_NONNULL(1);
21369
21370    /**
21371     * Set the bubble content callback function of a marker class.
21372     *
21373     * @param clas The marker class.
21374     * @param get The callback function that will return the content.
21375     *
21376     * Each marker must be associated to a marker class, and it can display a
21377     * a content on a bubble that opens when the user click over the marker.
21378     * The function @p get must return this content object.
21379     *
21380     * If this content will need to be deleted, elm_map_marker_class_del_cb_set()
21381     * can be used.
21382     *
21383     * @see elm_map_marker_class_new() for more details.
21384     * @see elm_map_marker_class_del_cb_set()
21385     * @see elm_map_marker_add()
21386     *
21387     * @ingroup Map
21388     */
21389    EAPI void                  elm_map_marker_class_get_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerGetFunc get) EINA_ARG_NONNULL(1);
21390
21391    /**
21392     * Set the callback function used to delete bubble content of a marker class.
21393     *
21394     * @param clas The marker class.
21395     * @param del The callback function that will delete the content.
21396     *
21397     * Each marker must be associated to a marker class, and it can display a
21398     * a content on a bubble that opens when the user click over the marker.
21399     * The function to return such content can be set with
21400     * elm_map_marker_class_get_cb_set().
21401     *
21402     * If this content must be freed, a callback function need to be
21403     * set for that task with this function.
21404     *
21405     * If this callback is defined it will have to delete (or not) the
21406     * object inside, but if the callback is not defined the object will be
21407     * destroyed with evas_object_del().
21408     *
21409     * @see elm_map_marker_class_new() for more details.
21410     * @see elm_map_marker_class_get_cb_set()
21411     * @see elm_map_marker_add()
21412     *
21413     * @ingroup Map
21414     */
21415    EAPI void                  elm_map_marker_class_del_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerDelFunc del) EINA_ARG_NONNULL(1);
21416
21417    /**
21418     * Get the list of available sources.
21419     *
21420     * @param obj The map object.
21421     * @return The source names list.
21422     *
21423     * It will provide a list with all available sources, that can be set as
21424     * current source with elm_map_source_name_set(), or get with
21425     * elm_map_source_name_get().
21426     *
21427     * Available sources:
21428     * @li "Mapnik"
21429     * @li "Osmarender"
21430     * @li "CycleMap"
21431     * @li "Maplint"
21432     *
21433     * @see elm_map_source_name_set() for more details.
21434     * @see elm_map_source_name_get()
21435     *
21436     * @ingroup Map
21437     */
21438    EAPI const char          **elm_map_source_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21439
21440    /**
21441     * Set the source of the map.
21442     *
21443     * @param obj The map object.
21444     * @param source The source to be used.
21445     *
21446     * Map widget retrieves images that composes the map from a web service.
21447     * This web service can be set with this method.
21448     *
21449     * A different service can return a different maps with different
21450     * information and it can use different zoom values.
21451     *
21452     * The @p source_name need to match one of the names provided by
21453     * elm_map_source_names_get().
21454     *
21455     * The current source can be get using elm_map_source_name_get().
21456     *
21457     * @see elm_map_source_names_get()
21458     * @see elm_map_source_name_get()
21459     *
21460     *
21461     * @ingroup Map
21462     */
21463    EAPI void                  elm_map_source_name_set(Evas_Object *obj, const char *source_name) EINA_ARG_NONNULL(1);
21464
21465    /**
21466     * Get the name of currently used source.
21467     *
21468     * @param obj The map object.
21469     * @return Returns the name of the source in use.
21470     *
21471     * @see elm_map_source_name_set() for more details.
21472     *
21473     * @ingroup Map
21474     */
21475    EAPI const char           *elm_map_source_name_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21476
21477    /**
21478     * Set the source of the route service to be used by the map.
21479     *
21480     * @param obj The map object.
21481     * @param source The route service to be used, being it one of
21482     * #ELM_MAP_ROUTE_SOURCE_YOURS (default), #ELM_MAP_ROUTE_SOURCE_MONAV,
21483     * and #ELM_MAP_ROUTE_SOURCE_ORS.
21484     *
21485     * Each one has its own algorithm, so the route retrieved may
21486     * differ depending on the source route. Now, only the default is working.
21487     *
21488     * #ELM_MAP_ROUTE_SOURCE_YOURS is the routing service provided at
21489     * http://www.yournavigation.org/.
21490     *
21491     * #ELM_MAP_ROUTE_SOURCE_MONAV, offers exact routing without heuristic
21492     * assumptions. Its routing core is based on Contraction Hierarchies.
21493     *
21494     * #ELM_MAP_ROUTE_SOURCE_ORS, is provided at http://www.openrouteservice.org/
21495     *
21496     * @see elm_map_route_source_get().
21497     *
21498     * @ingroup Map
21499     */
21500    EAPI void                  elm_map_route_source_set(Evas_Object *obj, Elm_Map_Route_Sources source) EINA_ARG_NONNULL(1);
21501
21502    /**
21503     * Get the current route source.
21504     *
21505     * @param obj The map object.
21506     * @return The source of the route service used by the map.
21507     *
21508     * @see elm_map_route_source_set() for details.
21509     *
21510     * @ingroup Map
21511     */
21512    EAPI Elm_Map_Route_Sources elm_map_route_source_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21513
21514    /**
21515     * Set the minimum zoom of the source.
21516     *
21517     * @param obj The map object.
21518     * @param zoom New minimum zoom value to be used.
21519     *
21520     * By default, it's 0.
21521     *
21522     * @ingroup Map
21523     */
21524    EAPI void                  elm_map_source_zoom_min_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
21525
21526    /**
21527     * Get the minimum zoom of the source.
21528     *
21529     * @param obj The map object.
21530     * @return Returns the minimum zoom of the source.
21531     *
21532     * @see elm_map_source_zoom_min_set() for details.
21533     *
21534     * @ingroup Map
21535     */
21536    EAPI int                   elm_map_source_zoom_min_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21537
21538    /**
21539     * Set the maximum zoom of the source.
21540     *
21541     * @param obj The map object.
21542     * @param zoom New maximum zoom value to be used.
21543     *
21544     * By default, it's 18.
21545     *
21546     * @ingroup Map
21547     */
21548    EAPI void                  elm_map_source_zoom_max_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
21549
21550    /**
21551     * Get the maximum zoom of the source.
21552     *
21553     * @param obj The map object.
21554     * @return Returns the maximum zoom of the source.
21555     *
21556     * @see elm_map_source_zoom_min_set() for details.
21557     *
21558     * @ingroup Map
21559     */
21560    EAPI int                   elm_map_source_zoom_max_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21561
21562    /**
21563     * Set the user agent used by the map object to access routing services.
21564     *
21565     * @param obj The map object.
21566     * @param user_agent The user agent to be used by the map.
21567     *
21568     * User agent is a client application implementing a network protocol used
21569     * in communications within a client–server distributed computing system
21570     *
21571     * The @p user_agent identification string will transmitted in a header
21572     * field @c User-Agent.
21573     *
21574     * @see elm_map_user_agent_get()
21575     *
21576     * @ingroup Map
21577     */
21578    EAPI void                  elm_map_user_agent_set(Evas_Object *obj, const char *user_agent) EINA_ARG_NONNULL(1, 2);
21579
21580    /**
21581     * Get the user agent used by the map object.
21582     *
21583     * @param obj The map object.
21584     * @return The user agent identification string used by the map.
21585     *
21586     * @see elm_map_user_agent_set() for details.
21587     *
21588     * @ingroup Map
21589     */
21590    EAPI const char           *elm_map_user_agent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21591
21592    /**
21593     * Add a new route to the map object.
21594     *
21595     * @param obj The map object.
21596     * @param type The type of transport to be considered when tracing a route.
21597     * @param method The routing method, what should be priorized.
21598     * @param flon The start longitude.
21599     * @param flat The start latitude.
21600     * @param tlon The destination longitude.
21601     * @param tlat The destination latitude.
21602     *
21603     * @return The created route or @c NULL upon failure.
21604     *
21605     * A route will be traced by point on coordinates (@p flat, @p flon)
21606     * to point on coordinates (@p tlat, @p tlon), using the route service
21607     * set with elm_map_route_source_set().
21608     *
21609     * It will take @p type on consideration to define the route,
21610     * depending if the user will be walking or driving, the route may vary.
21611     * One of #ELM_MAP_ROUTE_TYPE_MOTOCAR, #ELM_MAP_ROUTE_TYPE_BICYCLE, or
21612     * #ELM_MAP_ROUTE_TYPE_FOOT need to be used.
21613     *
21614     * Another parameter is what the route should priorize, the minor distance
21615     * or the less time to be spend on the route. So @p method should be one
21616     * of #ELM_MAP_ROUTE_METHOD_SHORTEST or #ELM_MAP_ROUTE_METHOD_FASTEST.
21617     *
21618     * Routes created with this method can be deleted with
21619     * elm_map_route_remove(), colored with elm_map_route_color_set(),
21620     * and distance can be get with elm_map_route_distance_get().
21621     *
21622     * @see elm_map_route_remove()
21623     * @see elm_map_route_color_set()
21624     * @see elm_map_route_distance_get()
21625     * @see elm_map_route_source_set()
21626     *
21627     * @ingroup Map
21628     */
21629    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);
21630
21631    /**
21632     * Remove a route from the map.
21633     *
21634     * @param route The route to remove.
21635     *
21636     * @see elm_map_route_add()
21637     *
21638     * @ingroup Map
21639     */
21640    EAPI void                  elm_map_route_remove(Elm_Map_Route *route) EINA_ARG_NONNULL(1);
21641
21642    /**
21643     * Set the route color.
21644     *
21645     * @param route The route object.
21646     * @param r Red channel value, from 0 to 255.
21647     * @param g Green channel value, from 0 to 255.
21648     * @param b Blue channel value, from 0 to 255.
21649     * @param a Alpha channel value, from 0 to 255.
21650     *
21651     * It uses an additive color model, so each color channel represents
21652     * how much of each primary colors must to be used. 0 represents
21653     * ausence of this color, so if all of the three are set to 0,
21654     * the color will be black.
21655     *
21656     * These component values should be integers in the range 0 to 255,
21657     * (single 8-bit byte).
21658     *
21659     * This sets the color used for the route. By default, it is set to
21660     * solid red (r = 255, g = 0, b = 0, a = 255).
21661     *
21662     * For alpha channel, 0 represents completely transparent, and 255, opaque.
21663     *
21664     * @see elm_map_route_color_get()
21665     *
21666     * @ingroup Map
21667     */
21668    EAPI void                  elm_map_route_color_set(Elm_Map_Route *route, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
21669
21670    /**
21671     * Get the route color.
21672     *
21673     * @param route The route object.
21674     * @param r Pointer where to store the red channel value.
21675     * @param g Pointer where to store the green channel value.
21676     * @param b Pointer where to store the blue channel value.
21677     * @param a Pointer where to store the alpha channel value.
21678     *
21679     * @see elm_map_route_color_set() for details.
21680     *
21681     * @ingroup Map
21682     */
21683    EAPI void                  elm_map_route_color_get(const Elm_Map_Route *route, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
21684
21685    /**
21686     * Get the route distance in kilometers.
21687     *
21688     * @param route The route object.
21689     * @return The distance of route (unit : km).
21690     *
21691     * @ingroup Map
21692     */
21693    EAPI double                elm_map_route_distance_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
21694
21695    /**
21696     * Get the information of route nodes.
21697     *
21698     * @param route The route object.
21699     * @return Returns a string with the nodes of route.
21700     *
21701     * @ingroup Map
21702     */
21703    EAPI const char           *elm_map_route_node_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
21704
21705    /**
21706     * Get the information of route waypoint.
21707     *
21708     * @param route the route object.
21709     * @return Returns a string with information about waypoint of route.
21710     *
21711     * @ingroup Map
21712     */
21713    EAPI const char           *elm_map_route_waypoint_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
21714
21715    /**
21716     * Get the address of the name.
21717     *
21718     * @param name The name handle.
21719     * @return Returns the address string of @p name.
21720     *
21721     * This gets the coordinates of the @p name, created with one of the
21722     * conversion functions.
21723     *
21724     * @see elm_map_utils_convert_name_into_coord()
21725     * @see elm_map_utils_convert_coord_into_name()
21726     *
21727     * @ingroup Map
21728     */
21729    EAPI const char           *elm_map_name_address_get(const Elm_Map_Name *name) EINA_ARG_NONNULL(1);
21730
21731    /**
21732     * Get the current coordinates of the name.
21733     *
21734     * @param name The name handle.
21735     * @param lat Pointer where to store the latitude.
21736     * @param lon Pointer where to store The longitude.
21737     *
21738     * This gets the coordinates of the @p name, created with one of the
21739     * conversion functions.
21740     *
21741     * @see elm_map_utils_convert_name_into_coord()
21742     * @see elm_map_utils_convert_coord_into_name()
21743     *
21744     * @ingroup Map
21745     */
21746    EAPI void                  elm_map_name_region_get(const Elm_Map_Name *name, double *lon, double *lat) EINA_ARG_NONNULL(1);
21747
21748    /**
21749     * Remove a name from the map.
21750     *
21751     * @param name The name to remove.
21752     *
21753     * Basically the struct handled by @p name will be freed, so convertions
21754     * between address and coordinates will be lost.
21755     *
21756     * @see elm_map_utils_convert_name_into_coord()
21757     * @see elm_map_utils_convert_coord_into_name()
21758     *
21759     * @ingroup Map
21760     */
21761    EAPI void                  elm_map_name_remove(Elm_Map_Name *name) EINA_ARG_NONNULL(1);
21762
21763    /**
21764     * Rotate the map.
21765     *
21766     * @param obj The map object.
21767     * @param degree Angle from 0.0 to 360.0 to rotate arount Z axis.
21768     * @param cx Rotation's center horizontal position.
21769     * @param cy Rotation's center vertical position.
21770     *
21771     * @see elm_map_rotate_get()
21772     *
21773     * @ingroup Map
21774     */
21775    EAPI void                  elm_map_rotate_set(Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy) EINA_ARG_NONNULL(1);
21776
21777    /**
21778     * Get the rotate degree of the map
21779     *
21780     * @param obj The map object
21781     * @param degree Pointer where to store degrees from 0.0 to 360.0
21782     * to rotate arount Z axis.
21783     * @param cx Pointer where to store rotation's center horizontal position.
21784     * @param cy Pointer where to store rotation's center vertical position.
21785     *
21786     * @see elm_map_rotate_set() to set map rotation.
21787     *
21788     * @ingroup Map
21789     */
21790    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);
21791
21792    /**
21793     * Enable or disable mouse wheel to be used to zoom in / out the map.
21794     *
21795     * @param obj The map object.
21796     * @param disabled Use @c EINA_TRUE to disable mouse wheel or @c EINA_FALSE
21797     * to enable it.
21798     *
21799     * Mouse wheel can be used for the user to zoom in or zoom out the map.
21800     *
21801     * It's disabled by default.
21802     *
21803     * @see elm_map_wheel_disabled_get()
21804     *
21805     * @ingroup Map
21806     */
21807    EAPI void                  elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
21808
21809    /**
21810     * Get a value whether mouse wheel is enabled or not.
21811     *
21812     * @param obj The map object.
21813     * @return @c EINA_TRUE means map is disabled. @c EINA_FALSE indicates
21814     * it is enabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
21815     *
21816     * Mouse wheel can be used for the user to zoom in or zoom out the map.
21817     *
21818     * @see elm_map_wheel_disabled_set() for details.
21819     *
21820     * @ingroup Map
21821     */
21822    EAPI Eina_Bool             elm_map_wheel_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21823
21824 #ifdef ELM_EMAP
21825    /**
21826     * Add a track on the map
21827     *
21828     * @param obj The map object.
21829     * @param emap The emap route object.
21830     * @return The route object. This is an elm object of type Route.
21831     *
21832     * @see elm_route_add() for details.
21833     *
21834     * @ingroup Map
21835     */
21836    EAPI Evas_Object          *elm_map_track_add(Evas_Object *obj, EMap_Route *emap) EINA_ARG_NONNULL(1);
21837 #endif
21838
21839    /**
21840     * Remove a track from the map
21841     *
21842     * @param obj The map object.
21843     * @param route The track to remove.
21844     *
21845     * @ingroup Map
21846     */
21847    EAPI void                  elm_map_track_remove(Evas_Object *obj, Evas_Object *route) EINA_ARG_NONNULL(1);
21848
21849    /**
21850     * @}
21851     */
21852
21853    /* Route */
21854    EAPI Evas_Object *elm_route_add(Evas_Object *parent);
21855 #ifdef ELM_EMAP
21856    EAPI void elm_route_emap_set(Evas_Object *obj, EMap_Route *emap);
21857 #endif
21858    EAPI double elm_route_lon_min_get(Evas_Object *obj);
21859    EAPI double elm_route_lat_min_get(Evas_Object *obj);
21860    EAPI double elm_route_lon_max_get(Evas_Object *obj);
21861    EAPI double elm_route_lat_max_get(Evas_Object *obj);
21862
21863
21864    /**
21865     * @defgroup Panel Panel
21866     *
21867     * @image html img/widget/panel/preview-00.png
21868     * @image latex img/widget/panel/preview-00.eps
21869     *
21870     * @brief A panel is a type of animated container that contains subobjects.
21871     * It can be expanded or contracted by clicking the button on it's edge.
21872     *
21873     * Orientations are as follows:
21874     * @li ELM_PANEL_ORIENT_TOP
21875     * @li ELM_PANEL_ORIENT_LEFT
21876     * @li ELM_PANEL_ORIENT_RIGHT
21877     *
21878     * @ref tutorial_panel shows one way to use this widget.
21879     * @{
21880     */
21881    typedef enum _Elm_Panel_Orient
21882      {
21883         ELM_PANEL_ORIENT_TOP, /**< Panel (dis)appears from the top */
21884         ELM_PANEL_ORIENT_BOTTOM, /**< Not implemented */
21885         ELM_PANEL_ORIENT_LEFT, /**< Panel (dis)appears from the left */
21886         ELM_PANEL_ORIENT_RIGHT, /**< Panel (dis)appears from the right */
21887      } Elm_Panel_Orient;
21888    /**
21889     * @brief Adds a panel object
21890     *
21891     * @param parent The parent object
21892     *
21893     * @return The panel object, or NULL on failure
21894     */
21895    EAPI Evas_Object          *elm_panel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21896    /**
21897     * @brief Sets the orientation of the panel
21898     *
21899     * @param parent The parent object
21900     * @param orient The panel orientation. Can be one of the following:
21901     * @li ELM_PANEL_ORIENT_TOP
21902     * @li ELM_PANEL_ORIENT_LEFT
21903     * @li ELM_PANEL_ORIENT_RIGHT
21904     *
21905     * Sets from where the panel will (dis)appear.
21906     */
21907    EAPI void                  elm_panel_orient_set(Evas_Object *obj, Elm_Panel_Orient orient) EINA_ARG_NONNULL(1);
21908    /**
21909     * @brief Get the orientation of the panel.
21910     *
21911     * @param obj The panel object
21912     * @return The Elm_Panel_Orient, or ELM_PANEL_ORIENT_LEFT on failure.
21913     */
21914    EAPI Elm_Panel_Orient      elm_panel_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21915    /**
21916     * @brief Set the content of the panel.
21917     *
21918     * @param obj The panel object
21919     * @param content The panel content
21920     *
21921     * Once the content object is set, a previously set one will be deleted.
21922     * If you want to keep that old content object, use the
21923     * elm_panel_content_unset() function.
21924     */
21925    EAPI void                  elm_panel_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
21926    /**
21927     * @brief Get the content of the panel.
21928     *
21929     * @param obj The panel object
21930     * @return The content that is being used
21931     *
21932     * Return the content object which is set for this widget.
21933     *
21934     * @see elm_panel_content_set()
21935     */
21936    EAPI Evas_Object          *elm_panel_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21937    /**
21938     * @brief Unset the content of the panel.
21939     *
21940     * @param obj The panel object
21941     * @return The content that was being used
21942     *
21943     * Unparent and return the content object which was set for this widget.
21944     *
21945     * @see elm_panel_content_set()
21946     */
21947    EAPI Evas_Object          *elm_panel_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
21948    /**
21949     * @brief Set the state of the panel.
21950     *
21951     * @param obj The panel object
21952     * @param hidden If true, the panel will run the animation to contract
21953     */
21954    EAPI void                  elm_panel_hidden_set(Evas_Object *obj, Eina_Bool hidden) EINA_ARG_NONNULL(1);
21955    /**
21956     * @brief Get the state of the panel.
21957     *
21958     * @param obj The panel object
21959     * @param hidden If true, the panel is in the "hide" state
21960     */
21961    EAPI Eina_Bool             elm_panel_hidden_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21962    /**
21963     * @brief Toggle the hidden state of the panel from code
21964     *
21965     * @param obj The panel object
21966     */
21967    EAPI void                  elm_panel_toggle(Evas_Object *obj) EINA_ARG_NONNULL(1);
21968    /**
21969     * @}
21970     */
21971
21972    /**
21973     * @defgroup Panes Panes
21974     * @ingroup Elementary
21975     *
21976     * @image html img/widget/panes/preview-00.png
21977     * @image latex img/widget/panes/preview-00.eps width=\textwidth
21978     *
21979     * @image html img/panes.png
21980     * @image latex img/panes.eps width=\textwidth
21981     *
21982     * The panes adds a dragable bar between two contents. When dragged
21983     * this bar will resize contents size.
21984     *
21985     * Panes can be displayed vertically or horizontally, and contents
21986     * size proportion can be customized (homogeneous by default).
21987     *
21988     * Smart callbacks one can listen to:
21989     * - "press" - The panes has been pressed (button wasn't released yet).
21990     * - "unpressed" - The panes was released after being pressed.
21991     * - "clicked" - The panes has been clicked>
21992     * - "clicked,double" - The panes has been double clicked
21993     *
21994     * Available styles for it:
21995     * - @c "default"
21996     *
21997     * Here is an example on its usage:
21998     * @li @ref panes_example
21999     */
22000
22001    /**
22002     * @addtogroup Panes
22003     * @{
22004     */
22005
22006    /**
22007     * Add a new panes widget to the given parent Elementary
22008     * (container) object.
22009     *
22010     * @param parent The parent object.
22011     * @return a new panes widget handle or @c NULL, on errors.
22012     *
22013     * This function inserts a new panes widget on the canvas.
22014     *
22015     * @ingroup Panes
22016     */
22017    EAPI Evas_Object          *elm_panes_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22018
22019    /**
22020     * Set the left content of the panes widget.
22021     *
22022     * @param obj The panes object.
22023     * @param content The new left content object.
22024     *
22025     * Once the content object is set, a previously set one will be deleted.
22026     * If you want to keep that old content object, use the
22027     * elm_panes_content_left_unset() function.
22028     *
22029     * If panes is displayed vertically, left content will be displayed at
22030     * top.
22031     *
22032     * @see elm_panes_content_left_get()
22033     * @see elm_panes_content_right_set() to set content on the other side.
22034     *
22035     * @ingroup Panes
22036     */
22037    EAPI void                  elm_panes_content_left_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22038
22039    /**
22040     * Set the right content of the panes widget.
22041     *
22042     * @param obj The panes object.
22043     * @param content The new right content object.
22044     *
22045     * Once the content object is set, a previously set one will be deleted.
22046     * If you want to keep that old content object, use the
22047     * elm_panes_content_right_unset() function.
22048     *
22049     * If panes is displayed vertically, left content will be displayed at
22050     * bottom.
22051     *
22052     * @see elm_panes_content_right_get()
22053     * @see elm_panes_content_left_set() to set content on the other side.
22054     *
22055     * @ingroup Panes
22056     */
22057    EAPI void                  elm_panes_content_right_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22058
22059    /**
22060     * Get the left content of the panes.
22061     *
22062     * @param obj The panes object.
22063     * @return The left content object that is being used.
22064     *
22065     * Return the left content object which is set for this widget.
22066     *
22067     * @see elm_panes_content_left_set() for details.
22068     *
22069     * @ingroup Panes
22070     */
22071    EAPI Evas_Object          *elm_panes_content_left_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22072
22073    /**
22074     * Get the right content of the panes.
22075     *
22076     * @param obj The panes object
22077     * @return The right content object that is being used
22078     *
22079     * Return the right content object which is set for this widget.
22080     *
22081     * @see elm_panes_content_right_set() for details.
22082     *
22083     * @ingroup Panes
22084     */
22085    EAPI Evas_Object          *elm_panes_content_right_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22086
22087    /**
22088     * Unset the left content used for the panes.
22089     *
22090     * @param obj The panes object.
22091     * @return The left content object that was being used.
22092     *
22093     * Unparent and return the left content object which was set for this widget.
22094     *
22095     * @see elm_panes_content_left_set() for details.
22096     * @see elm_panes_content_left_get().
22097     *
22098     * @ingroup Panes
22099     */
22100    EAPI Evas_Object          *elm_panes_content_left_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22101
22102    /**
22103     * Unset the right content used for the panes.
22104     *
22105     * @param obj The panes object.
22106     * @return The right content object that was being used.
22107     *
22108     * Unparent and return the right content object which was set for this
22109     * widget.
22110     *
22111     * @see elm_panes_content_right_set() for details.
22112     * @see elm_panes_content_right_get().
22113     *
22114     * @ingroup Panes
22115     */
22116    EAPI Evas_Object          *elm_panes_content_right_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22117
22118    /**
22119     * Get the size proportion of panes widget's left side.
22120     *
22121     * @param obj The panes object.
22122     * @return float value between 0.0 and 1.0 representing size proportion
22123     * of left side.
22124     *
22125     * @see elm_panes_content_left_size_set() for more details.
22126     *
22127     * @ingroup Panes
22128     */
22129    EAPI double                elm_panes_content_left_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22130
22131    /**
22132     * Set the size proportion of panes widget's left side.
22133     *
22134     * @param obj The panes object.
22135     * @param size Value between 0.0 and 1.0 representing size proportion
22136     * of left side.
22137     *
22138     * By default it's homogeneous, i.e., both sides have the same size.
22139     *
22140     * If something different is required, it can be set with this function.
22141     * For example, if the left content should be displayed over
22142     * 75% of the panes size, @p size should be passed as @c 0.75.
22143     * This way, right content will be resized to 25% of panes size.
22144     *
22145     * If displayed vertically, left content is displayed at top, and
22146     * right content at bottom.
22147     *
22148     * @note This proportion will change when user drags the panes bar.
22149     *
22150     * @see elm_panes_content_left_size_get()
22151     *
22152     * @ingroup Panes
22153     */
22154    EAPI void                  elm_panes_content_left_size_set(Evas_Object *obj, double size) EINA_ARG_NONNULL(1);
22155
22156   /**
22157    * Set the orientation of a given panes widget.
22158    *
22159    * @param obj The panes object.
22160    * @param horizontal Use @c EINA_TRUE to make @p obj to be
22161    * @b horizontal, @c EINA_FALSE to make it @b vertical.
22162    *
22163    * Use this function to change how your panes is to be
22164    * disposed: vertically or horizontally.
22165    *
22166    * By default it's displayed horizontally.
22167    *
22168    * @see elm_panes_horizontal_get()
22169    *
22170    * @ingroup Panes
22171    */
22172    EAPI void                  elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
22173
22174    /**
22175     * Retrieve the orientation of a given panes widget.
22176     *
22177     * @param obj The panes object.
22178     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
22179     * @c EINA_FALSE if it's @b vertical (and on errors).
22180     *
22181     * @see elm_panes_horizontal_set() for more details.
22182     *
22183     * @ingroup Panes
22184     */
22185    EAPI Eina_Bool             elm_panes_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22186
22187    /**
22188     * @}
22189     */
22190
22191    /**
22192     * @defgroup Flip Flip
22193     *
22194     * @image html img/widget/flip/preview-00.png
22195     * @image latex img/widget/flip/preview-00.eps
22196     *
22197     * This widget holds 2 content objects(Evas_Object): one on the front and one
22198     * on the back. It allows you to flip from front to back and vice-versa using
22199     * various animations.
22200     *
22201     * If either the front or back contents are not set the flip will treat that
22202     * as transparent. So if you wore to set the front content but not the back,
22203     * and then call elm_flip_go() you would see whatever is below the flip.
22204     *
22205     * For a list of supported animations see elm_flip_go().
22206     *
22207     * Signals that you can add callbacks for are:
22208     * "animate,begin" - when a flip animation was started
22209     * "animate,done" - when a flip animation is finished
22210     *
22211     * @ref tutorial_flip show how to use most of the API.
22212     *
22213     * @{
22214     */
22215    typedef enum _Elm_Flip_Mode
22216      {
22217         ELM_FLIP_ROTATE_Y_CENTER_AXIS,
22218         ELM_FLIP_ROTATE_X_CENTER_AXIS,
22219         ELM_FLIP_ROTATE_XZ_CENTER_AXIS,
22220         ELM_FLIP_ROTATE_YZ_CENTER_AXIS,
22221         ELM_FLIP_CUBE_LEFT,
22222         ELM_FLIP_CUBE_RIGHT,
22223         ELM_FLIP_CUBE_UP,
22224         ELM_FLIP_CUBE_DOWN,
22225         ELM_FLIP_PAGE_LEFT,
22226         ELM_FLIP_PAGE_RIGHT,
22227         ELM_FLIP_PAGE_UP,
22228         ELM_FLIP_PAGE_DOWN
22229      } Elm_Flip_Mode;
22230    typedef enum _Elm_Flip_Interaction
22231      {
22232         ELM_FLIP_INTERACTION_NONE,
22233         ELM_FLIP_INTERACTION_ROTATE,
22234         ELM_FLIP_INTERACTION_CUBE,
22235         ELM_FLIP_INTERACTION_PAGE
22236      } Elm_Flip_Interaction;
22237    typedef enum _Elm_Flip_Direction
22238      {
22239         ELM_FLIP_DIRECTION_UP, /**< Allows interaction with the top of the widget */
22240         ELM_FLIP_DIRECTION_DOWN, /**< Allows interaction with the bottom of the widget */
22241         ELM_FLIP_DIRECTION_LEFT, /**< Allows interaction with the left portion of the widget */
22242         ELM_FLIP_DIRECTION_RIGHT /**< Allows interaction with the right portion of the widget */
22243      } Elm_Flip_Direction;
22244    /**
22245     * @brief Add a new flip to the parent
22246     *
22247     * @param parent The parent object
22248     * @return The new object or NULL if it cannot be created
22249     */
22250    EAPI Evas_Object *elm_flip_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22251    /**
22252     * @brief Set the front content of the flip widget.
22253     *
22254     * @param obj The flip object
22255     * @param content The new front content object
22256     *
22257     * Once the content object is set, a previously set one will be deleted.
22258     * If you want to keep that old content object, use the
22259     * elm_flip_content_front_unset() function.
22260     */
22261    EAPI void         elm_flip_content_front_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22262    /**
22263     * @brief Set the back content of the flip widget.
22264     *
22265     * @param obj The flip object
22266     * @param content The new back content object
22267     *
22268     * Once the content object is set, a previously set one will be deleted.
22269     * If you want to keep that old content object, use the
22270     * elm_flip_content_back_unset() function.
22271     */
22272    EAPI void         elm_flip_content_back_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22273    /**
22274     * @brief Get the front content used for the flip
22275     *
22276     * @param obj The flip object
22277     * @return The front content object that is being used
22278     *
22279     * Return the front content object which is set for this widget.
22280     */
22281    EAPI Evas_Object *elm_flip_content_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22282    /**
22283     * @brief Get the back content used for the flip
22284     *
22285     * @param obj The flip object
22286     * @return The back content object that is being used
22287     *
22288     * Return the back content object which is set for this widget.
22289     */
22290    EAPI Evas_Object *elm_flip_content_back_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22291    /**
22292     * @brief Unset the front content used for the flip
22293     *
22294     * @param obj The flip object
22295     * @return The front content object that was being used
22296     *
22297     * Unparent and return the front content object which was set for this widget.
22298     */
22299    EAPI Evas_Object *elm_flip_content_front_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22300    /**
22301     * @brief Unset the back content used for the flip
22302     *
22303     * @param obj The flip object
22304     * @return The back content object that was being used
22305     *
22306     * Unparent and return the back content object which was set for this widget.
22307     */
22308    EAPI Evas_Object *elm_flip_content_back_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22309    /**
22310     * @brief Get flip front visibility state
22311     *
22312     * @param obj The flip objct
22313     * @return EINA_TRUE if front front is showing, EINA_FALSE if the back is
22314     * showing.
22315     */
22316    EAPI Eina_Bool    elm_flip_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22317    /**
22318     * @brief Set flip perspective
22319     *
22320     * @param obj The flip object
22321     * @param foc The coordinate to set the focus on
22322     * @param x The X coordinate
22323     * @param y The Y coordinate
22324     *
22325     * @warning This function currently does nothing.
22326     */
22327    EAPI void         elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
22328    /**
22329     * @brief Runs the flip animation
22330     *
22331     * @param obj The flip object
22332     * @param mode The mode type
22333     *
22334     * Flips the front and back contents using the @p mode animation. This
22335     * efectively hides the currently visible content and shows the hidden one.
22336     *
22337     * There a number of possible animations to use for the flipping:
22338     * @li ELM_FLIP_ROTATE_X_CENTER_AXIS - Rotate the currently visible content
22339     * around a horizontal axis in the middle of its height, the other content
22340     * is shown as the other side of the flip.
22341     * @li ELM_FLIP_ROTATE_Y_CENTER_AXIS - Rotate the currently visible content
22342     * around a vertical axis in the middle of its width, the other content is
22343     * shown as the other side of the flip.
22344     * @li ELM_FLIP_ROTATE_XZ_CENTER_AXIS - Rotate the currently visible content
22345     * around a diagonal axis in the middle of its width, the other content is
22346     * shown as the other side of the flip.
22347     * @li ELM_FLIP_ROTATE_YZ_CENTER_AXIS - Rotate the currently visible content
22348     * around a diagonal axis in the middle of its height, the other content is
22349     * shown as the other side of the flip.
22350     * @li ELM_FLIP_CUBE_LEFT - Rotate the currently visible content to the left
22351     * as if the flip was a cube, the other content is show as the right face of
22352     * the cube.
22353     * @li ELM_FLIP_CUBE_RIGHT - Rotate the currently visible content to the
22354     * right as if the flip was a cube, the other content is show as the left
22355     * face of the cube.
22356     * @li ELM_FLIP_CUBE_UP - Rotate the currently visible content up as if the
22357     * flip was a cube, the other content is show as the bottom face of the cube.
22358     * @li ELM_FLIP_CUBE_DOWN - Rotate the currently visible content down as if
22359     * the flip was a cube, the other content is show as the upper face of the
22360     * cube.
22361     * @li ELM_FLIP_PAGE_LEFT - Move the currently visible content to the left as
22362     * if the flip was a book, the other content is shown as the page below that.
22363     * @li ELM_FLIP_PAGE_RIGHT - Move the currently visible content to the right
22364     * as if the flip was a book, the other content is shown as the page below
22365     * that.
22366     * @li ELM_FLIP_PAGE_UP - Move the currently visible content up as if the
22367     * flip was a book, the other content is shown as the page below that.
22368     * @li ELM_FLIP_PAGE_DOWN - Move the currently visible content down as if the
22369     * flip was a book, the other content is shown as the page below that.
22370     *
22371     * @image html elm_flip.png
22372     * @image latex elm_flip.eps width=\textwidth
22373     */
22374    EAPI void         elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode) EINA_ARG_NONNULL(1);
22375    /**
22376     * @brief Set the interactive flip mode
22377     *
22378     * @param obj The flip object
22379     * @param mode The interactive flip mode to use
22380     *
22381     * This sets if the flip should be interactive (allow user to click and
22382     * drag a side of the flip to reveal the back page and cause it to flip).
22383     * By default a flip is not interactive. You may also need to set which
22384     * sides of the flip are "active" for flipping and how much space they use
22385     * (a minimum of a finger size) with elm_flip_interacton_direction_enabled_set()
22386     * and elm_flip_interacton_direction_hitsize_set()
22387     *
22388     * The four avilable mode of interaction are:
22389     * @li ELM_FLIP_INTERACTION_NONE - No interaction is allowed
22390     * @li ELM_FLIP_INTERACTION_ROTATE - Interaction will cause rotate animation
22391     * @li ELM_FLIP_INTERACTION_CUBE - Interaction will cause cube animation
22392     * @li ELM_FLIP_INTERACTION_PAGE - Interaction will cause page animation
22393     *
22394     * @note ELM_FLIP_INTERACTION_ROTATE won't cause
22395     * ELM_FLIP_ROTATE_XZ_CENTER_AXIS or ELM_FLIP_ROTATE_YZ_CENTER_AXIS to
22396     * happen, those can only be acheived with elm_flip_go();
22397     */
22398    EAPI void         elm_flip_interaction_set(Evas_Object *obj, Elm_Flip_Interaction mode);
22399    /**
22400     * @brief Get the interactive flip mode
22401     *
22402     * @param obj The flip object
22403     * @return The interactive flip mode
22404     *
22405     * Returns the interactive flip mode set by elm_flip_interaction_set()
22406     */
22407    EAPI Elm_Flip_Interaction elm_flip_interaction_get(const Evas_Object *obj);
22408    /**
22409     * @brief Set which directions of the flip respond to interactive flip
22410     *
22411     * @param obj The flip object
22412     * @param dir The direction to change
22413     * @param enabled If that direction is enabled or not
22414     *
22415     * By default all directions are disabled, so you may want to enable the
22416     * desired directions for flipping if you need interactive flipping. You must
22417     * call this function once for each direction that should be enabled.
22418     *
22419     * @see elm_flip_interaction_set()
22420     */
22421    EAPI void         elm_flip_interacton_direction_enabled_set(Evas_Object *obj, Elm_Flip_Direction dir, Eina_Bool enabled);
22422    /**
22423     * @brief Get the enabled state of that flip direction
22424     *
22425     * @param obj The flip object
22426     * @param dir The direction to check
22427     * @return If that direction is enabled or not
22428     *
22429     * Gets the enabled state set by elm_flip_interacton_direction_enabled_set()
22430     *
22431     * @see elm_flip_interaction_set()
22432     */
22433    EAPI Eina_Bool    elm_flip_interacton_direction_enabled_get(Evas_Object *obj, Elm_Flip_Direction dir);
22434    /**
22435     * @brief Set the amount of the flip that is sensitive to interactive flip
22436     *
22437     * @param obj The flip object
22438     * @param dir The direction to modify
22439     * @param hitsize The amount of that dimension (0.0 to 1.0) to use
22440     *
22441     * Set the amount of the flip that is sensitive to interactive flip, with 0
22442     * representing no area in the flip and 1 representing the entire flip. There
22443     * is however a consideration to be made in that the area will never be
22444     * smaller than the finger size set(as set in your Elementary configuration).
22445     *
22446     * @see elm_flip_interaction_set()
22447     */
22448    EAPI void         elm_flip_interacton_direction_hitsize_set(Evas_Object *obj, Elm_Flip_Direction dir, double hitsize);
22449    /**
22450     * @brief Get the amount of the flip that is sensitive to interactive flip
22451     *
22452     * @param obj The flip object
22453     * @param dir The direction to check
22454     * @return The size set for that direction
22455     *
22456     * Returns the amount os sensitive area set by
22457     * elm_flip_interacton_direction_hitsize_set().
22458     */
22459    EAPI double       elm_flip_interacton_direction_hitsize_get(Evas_Object *obj, Elm_Flip_Direction dir);
22460    /**
22461     * @}
22462     */
22463
22464    /* scrolledentry */
22465    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22466    EINA_DEPRECATED EAPI void         elm_scrolled_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
22467    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22468    EINA_DEPRECATED EAPI void         elm_scrolled_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
22469    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22470    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
22471    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22472    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
22473    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22474    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22475    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
22476    EINA_DEPRECATED EAPI void         elm_scrolled_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
22477    EINA_DEPRECATED EAPI void         elm_scrolled_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
22478    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22479    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
22480    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
22481    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
22482    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
22483    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
22484    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
22485    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
22486    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
22487    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
22488    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
22489    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
22490    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
22491    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22492    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22493    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22494    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
22495    EINA_DEPRECATED EAPI int          elm_scrolled_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22496    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
22497    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
22498    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
22499    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
22500    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);
22501    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
22502    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22503    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);
22504    EINA_DEPRECATED EAPI void         elm_scrolled_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
22505    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);
22506    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1, 2);
22507    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22508    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22509    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
22510    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1, 2);
22511    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22512    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22513    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
22514    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);
22515    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);
22516    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);
22517    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);
22518    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);
22519    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);
22520    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
22521    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
22522    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
22523    EINA_DEPRECATED EAPI void         elm_scrolled_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
22524    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22525    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
22526    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cnp_textonly_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
22527
22528    /**
22529     * @defgroup Conformant Conformant
22530     * @ingroup Elementary
22531     *
22532     * @image html img/widget/conformant/preview-00.png
22533     * @image latex img/widget/conformant/preview-00.eps width=\textwidth
22534     *
22535     * @image html img/conformant.png
22536     * @image latex img/conformant.eps width=\textwidth
22537     *
22538     * The aim is to provide a widget that can be used in elementary apps to
22539     * account for space taken up by the indicator, virtual keypad & softkey
22540     * windows when running the illume2 module of E17.
22541     *
22542     * So conformant content will be sized and positioned considering the
22543     * space required for such stuff, and when they popup, as a keyboard
22544     * shows when an entry is selected, conformant content won't change.
22545     *
22546     * Available styles for it:
22547     * - @c "default"
22548     *
22549     * See how to use this widget in this example:
22550     * @ref conformant_example
22551     */
22552
22553    /**
22554     * @addtogroup Conformant
22555     * @{
22556     */
22557
22558    /**
22559     * Add a new conformant widget to the given parent Elementary
22560     * (container) object.
22561     *
22562     * @param parent The parent object.
22563     * @return A new conformant widget handle or @c NULL, on errors.
22564     *
22565     * This function inserts a new conformant widget on the canvas.
22566     *
22567     * @ingroup Conformant
22568     */
22569    EAPI Evas_Object *elm_conformant_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22570
22571    /**
22572     * Set the content of the conformant widget.
22573     *
22574     * @param obj The conformant object.
22575     * @param content The content to be displayed by the conformant.
22576     *
22577     * Content will be sized and positioned considering the space required
22578     * to display a virtual keyboard. So it won't fill all the conformant
22579     * size. This way is possible to be sure that content won't resize
22580     * or be re-positioned after the keyboard is displayed.
22581     *
22582     * Once the content object is set, a previously set one will be deleted.
22583     * If you want to keep that old content object, use the
22584     * elm_conformat_content_unset() function.
22585     *
22586     * @see elm_conformant_content_unset()
22587     * @see elm_conformant_content_get()
22588     *
22589     * @ingroup Conformant
22590     */
22591    EAPI void         elm_conformant_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22592
22593    /**
22594     * Get the content of the conformant widget.
22595     *
22596     * @param obj The conformant object.
22597     * @return The content that is being used.
22598     *
22599     * Return the content object which is set for this widget.
22600     * It won't be unparent from conformant. For that, use
22601     * elm_conformant_content_unset().
22602     *
22603     * @see elm_conformant_content_set() for more details.
22604     * @see elm_conformant_content_unset()
22605     *
22606     * @ingroup Conformant
22607     */
22608    EAPI Evas_Object *elm_conformant_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22609
22610    /**
22611     * Unset the content of the conformant widget.
22612     *
22613     * @param obj The conformant object.
22614     * @return The content that was being used.
22615     *
22616     * Unparent and return the content object which was set for this widget.
22617     *
22618     * @see elm_conformant_content_set() for more details.
22619     *
22620     * @ingroup Conformant
22621     */
22622    EAPI Evas_Object *elm_conformant_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22623
22624    /**
22625     * Returns the Evas_Object that represents the content area.
22626     *
22627     * @param obj The conformant object.
22628     * @return The content area of the widget.
22629     *
22630     * @ingroup Conformant
22631     */
22632    EAPI Evas_Object *elm_conformant_content_area_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22633
22634    /**
22635     * @}
22636     */
22637
22638    /**
22639     * @defgroup Mapbuf Mapbuf
22640     * @ingroup Elementary
22641     *
22642     * @image html img/widget/mapbuf/preview-00.png
22643     * @image latex img/widget/mapbuf/preview-00.eps width=\textwidth
22644     *
22645     * This holds one content object and uses an Evas Map of transformation
22646     * points to be later used with this content. So the content will be
22647     * moved, resized, etc as a single image. So it will improve performance
22648     * when you have a complex interafce, with a lot of elements, and will
22649     * need to resize or move it frequently (the content object and its
22650     * children).
22651     *
22652     * See how to use this widget in this example:
22653     * @ref mapbuf_example
22654     */
22655
22656    /**
22657     * @addtogroup Mapbuf
22658     * @{
22659     */
22660
22661    /**
22662     * Add a new mapbuf widget to the given parent Elementary
22663     * (container) object.
22664     *
22665     * @param parent The parent object.
22666     * @return A new mapbuf widget handle or @c NULL, on errors.
22667     *
22668     * This function inserts a new mapbuf widget on the canvas.
22669     *
22670     * @ingroup Mapbuf
22671     */
22672    EAPI Evas_Object *elm_mapbuf_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22673
22674    /**
22675     * Set the content of the mapbuf.
22676     *
22677     * @param obj The mapbuf object.
22678     * @param content The content that will be filled in this mapbuf object.
22679     *
22680     * Once the content object is set, a previously set one will be deleted.
22681     * If you want to keep that old content object, use the
22682     * elm_mapbuf_content_unset() function.
22683     *
22684     * To enable map, elm_mapbuf_enabled_set() should be used.
22685     *
22686     * @ingroup Mapbuf
22687     */
22688    EAPI void         elm_mapbuf_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22689
22690    /**
22691     * Get the content of the mapbuf.
22692     *
22693     * @param obj The mapbuf object.
22694     * @return The content that is being used.
22695     *
22696     * Return the content object which is set for this widget.
22697     *
22698     * @see elm_mapbuf_content_set() for details.
22699     *
22700     * @ingroup Mapbuf
22701     */
22702    EAPI Evas_Object *elm_mapbuf_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22703
22704    /**
22705     * Unset the content of the mapbuf.
22706     *
22707     * @param obj The mapbuf object.
22708     * @return The content that was being used.
22709     *
22710     * Unparent and return the content object which was set for this widget.
22711     *
22712     * @see elm_mapbuf_content_set() for details.
22713     *
22714     * @ingroup Mapbuf
22715     */
22716    EAPI Evas_Object *elm_mapbuf_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22717
22718    /**
22719     * Enable or disable the map.
22720     *
22721     * @param obj The mapbuf object.
22722     * @param enabled @c EINA_TRUE to enable map or @c EINA_FALSE to disable it.
22723     *
22724     * This enables the map that is set or disables it. On enable, the object
22725     * geometry will be saved, and the new geometry will change (position and
22726     * size) to reflect the map geometry set.
22727     *
22728     * Also, when enabled, alpha and smooth states will be used, so if the
22729     * content isn't solid, alpha should be enabled, for example, otherwise
22730     * a black retangle will fill the content.
22731     *
22732     * When disabled, the stored map will be freed and geometry prior to
22733     * enabling the map will be restored.
22734     *
22735     * It's disabled by default.
22736     *
22737     * @see elm_mapbuf_alpha_set()
22738     * @see elm_mapbuf_smooth_set()
22739     *
22740     * @ingroup Mapbuf
22741     */
22742    EAPI void         elm_mapbuf_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
22743
22744    /**
22745     * Get a value whether map is enabled or not.
22746     *
22747     * @param obj The mapbuf object.
22748     * @return @c EINA_TRUE means map is enabled. @c EINA_FALSE indicates
22749     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
22750     *
22751     * @see elm_mapbuf_enabled_set() for details.
22752     *
22753     * @ingroup Mapbuf
22754     */
22755    EAPI Eina_Bool    elm_mapbuf_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22756
22757    /**
22758     * Enable or disable smooth map rendering.
22759     *
22760     * @param obj The mapbuf object.
22761     * @param smooth @c EINA_TRUE to enable smooth map rendering or @c EINA_FALSE
22762     * to disable it.
22763     *
22764     * This sets smoothing for map rendering. If the object is a type that has
22765     * its own smoothing settings, then both the smooth settings for this object
22766     * and the map must be turned off.
22767     *
22768     * By default smooth maps are enabled.
22769     *
22770     * @ingroup Mapbuf
22771     */
22772    EAPI void         elm_mapbuf_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
22773
22774    /**
22775     * Get a value whether smooth map rendering is enabled or not.
22776     *
22777     * @param obj The mapbuf object.
22778     * @return @c EINA_TRUE means smooth map rendering is enabled. @c EINA_FALSE
22779     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
22780     *
22781     * @see elm_mapbuf_smooth_set() for details.
22782     *
22783     * @ingroup Mapbuf
22784     */
22785    EAPI Eina_Bool    elm_mapbuf_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22786
22787    /**
22788     * Set or unset alpha flag for map rendering.
22789     *
22790     * @param obj The mapbuf object.
22791     * @param alpha @c EINA_TRUE to enable alpha blending or @c EINA_FALSE
22792     * to disable it.
22793     *
22794     * This sets alpha flag for map rendering. If the object is a type that has
22795     * its own alpha settings, then this will take precedence. Only image objects
22796     * have this currently. It stops alpha blending of the map area, and is
22797     * useful if you know the object and/or all sub-objects is 100% solid.
22798     *
22799     * Alpha is enabled by default.
22800     *
22801     * @ingroup Mapbuf
22802     */
22803    EAPI void         elm_mapbuf_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
22804
22805    /**
22806     * Get a value whether alpha blending is enabled or not.
22807     *
22808     * @param obj The mapbuf object.
22809     * @return @c EINA_TRUE means alpha blending is enabled. @c EINA_FALSE
22810     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
22811     *
22812     * @see elm_mapbuf_alpha_set() for details.
22813     *
22814     * @ingroup Mapbuf
22815     */
22816    EAPI Eina_Bool    elm_mapbuf_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22817
22818    /**
22819     * @}
22820     */
22821
22822    /**
22823     * @defgroup Flipselector Flip Selector
22824     *
22825     * @image html img/widget/flipselector/preview-00.png
22826     * @image latex img/widget/flipselector/preview-00.eps
22827     *
22828     * A flip selector is a widget to show a set of @b text items, one
22829     * at a time, with the same sheet switching style as the @ref Clock
22830     * "clock" widget, when one changes the current displaying sheet
22831     * (thus, the "flip" in the name).
22832     *
22833     * User clicks to flip sheets which are @b held for some time will
22834     * make the flip selector to flip continuosly and automatically for
22835     * the user. The interval between flips will keep growing in time,
22836     * so that it helps the user to reach an item which is distant from
22837     * the current selection.
22838     *
22839     * Smart callbacks one can register to:
22840     * - @c "selected" - when the widget's selected text item is changed
22841     * - @c "overflowed" - when the widget's current selection is changed
22842     *   from the first item in its list to the last
22843     * - @c "underflowed" - when the widget's current selection is changed
22844     *   from the last item in its list to the first
22845     *
22846     * Available styles for it:
22847     * - @c "default"
22848     *
22849     * Here is an example on its usage:
22850     * @li @ref flipselector_example
22851     */
22852
22853    /**
22854     * @addtogroup Flipselector
22855     * @{
22856     */
22857
22858    typedef struct _Elm_Flipselector_Item Elm_Flipselector_Item; /**< Item handle for a flip selector widget. */
22859
22860    /**
22861     * Add a new flip selector widget to the given parent Elementary
22862     * (container) widget
22863     *
22864     * @param parent The parent object
22865     * @return a new flip selector widget handle or @c NULL, on errors
22866     *
22867     * This function inserts a new flip selector widget on the canvas.
22868     *
22869     * @ingroup Flipselector
22870     */
22871    EAPI Evas_Object               *elm_flipselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22872
22873    /**
22874     * Programmatically select the next item of a flip selector widget
22875     *
22876     * @param obj The flipselector object
22877     *
22878     * @note The selection will be animated. Also, if it reaches the
22879     * end of its list of member items, it will continue with the first
22880     * one onwards.
22881     *
22882     * @ingroup Flipselector
22883     */
22884    EAPI void                       elm_flipselector_flip_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
22885
22886    /**
22887     * Programmatically select the previous item of a flip selector
22888     * widget
22889     *
22890     * @param obj The flipselector object
22891     *
22892     * @note The selection will be animated.  Also, if it reaches the
22893     * beginning of its list of member items, it will continue with the
22894     * last one backwards.
22895     *
22896     * @ingroup Flipselector
22897     */
22898    EAPI void                       elm_flipselector_flip_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
22899
22900    /**
22901     * Append a (text) item to a flip selector widget
22902     *
22903     * @param obj The flipselector object
22904     * @param label The (text) label of the new item
22905     * @param func Convenience callback function to take place when
22906     * item is selected
22907     * @param data Data passed to @p func, above
22908     * @return A handle to the item added or @c NULL, on errors
22909     *
22910     * The widget's list of labels to show will be appended with the
22911     * given value. If the user wishes so, a callback function pointer
22912     * can be passed, which will get called when this same item is
22913     * selected.
22914     *
22915     * @note The current selection @b won't be modified by appending an
22916     * element to the list.
22917     *
22918     * @note The maximum length of the text label is going to be
22919     * determined <b>by the widget's theme</b>. Strings larger than
22920     * that value are going to be @b truncated.
22921     *
22922     * @ingroup Flipselector
22923     */
22924    EAPI Elm_Flipselector_Item     *elm_flipselector_item_append(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
22925
22926    /**
22927     * Prepend a (text) item to a flip selector widget
22928     *
22929     * @param obj The flipselector object
22930     * @param label The (text) label of the new item
22931     * @param func Convenience callback function to take place when
22932     * item is selected
22933     * @param data Data passed to @p func, above
22934     * @return A handle to the item added or @c NULL, on errors
22935     *
22936     * The widget's list of labels to show will be prepended with the
22937     * given value. If the user wishes so, a callback function pointer
22938     * can be passed, which will get called when this same item is
22939     * selected.
22940     *
22941     * @note The current selection @b won't be modified by prepending
22942     * an element to the list.
22943     *
22944     * @note The maximum length of the text label is going to be
22945     * determined <b>by the widget's theme</b>. Strings larger than
22946     * that value are going to be @b truncated.
22947     *
22948     * @ingroup Flipselector
22949     */
22950    EAPI Elm_Flipselector_Item     *elm_flipselector_item_prepend(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
22951
22952    /**
22953     * Get the internal list of items in a given flip selector widget.
22954     *
22955     * @param obj The flipselector object
22956     * @return The list of items (#Elm_Flipselector_Item as data) or
22957     * @c NULL on errors.
22958     *
22959     * This list is @b not to be modified in any way and must not be
22960     * freed. Use the list members with functions like
22961     * elm_flipselector_item_label_set(),
22962     * elm_flipselector_item_label_get(),
22963     * elm_flipselector_item_del(),
22964     * elm_flipselector_item_selected_get(),
22965     * elm_flipselector_item_selected_set().
22966     *
22967     * @warning This list is only valid until @p obj object's internal
22968     * items list is changed. It should be fetched again with another
22969     * call to this function when changes happen.
22970     *
22971     * @ingroup Flipselector
22972     */
22973    EAPI const Eina_List           *elm_flipselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22974
22975    /**
22976     * Get the first item in the given flip selector widget's list of
22977     * items.
22978     *
22979     * @param obj The flipselector object
22980     * @return The first item or @c NULL, if it has no items (and on
22981     * errors)
22982     *
22983     * @see elm_flipselector_item_append()
22984     * @see elm_flipselector_last_item_get()
22985     *
22986     * @ingroup Flipselector
22987     */
22988    EAPI Elm_Flipselector_Item     *elm_flipselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22989
22990    /**
22991     * Get the last item in the given flip selector widget's list of
22992     * items.
22993     *
22994     * @param obj The flipselector object
22995     * @return The last item or @c NULL, if it has no items (and on
22996     * errors)
22997     *
22998     * @see elm_flipselector_item_prepend()
22999     * @see elm_flipselector_first_item_get()
23000     *
23001     * @ingroup Flipselector
23002     */
23003    EAPI Elm_Flipselector_Item     *elm_flipselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23004
23005    /**
23006     * Get the currently selected item in a flip selector widget.
23007     *
23008     * @param obj The flipselector object
23009     * @return The selected item or @c NULL, if the widget has no items
23010     * (and on erros)
23011     *
23012     * @ingroup Flipselector
23013     */
23014    EAPI Elm_Flipselector_Item     *elm_flipselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23015
23016    /**
23017     * Set whether a given flip selector widget's item should be the
23018     * currently selected one.
23019     *
23020     * @param item The flip selector item
23021     * @param selected @c EINA_TRUE to select it, @c EINA_FALSE to unselect.
23022     *
23023     * This sets whether @p item is or not the selected (thus, under
23024     * display) one. If @p item is different than one under display,
23025     * the latter will be unselected. If the @p item is set to be
23026     * unselected, on the other hand, the @b first item in the widget's
23027     * internal members list will be the new selected one.
23028     *
23029     * @see elm_flipselector_item_selected_get()
23030     *
23031     * @ingroup Flipselector
23032     */
23033    EAPI void                       elm_flipselector_item_selected_set(Elm_Flipselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
23034
23035    /**
23036     * Get whether a given flip selector widget's item is the currently
23037     * selected one.
23038     *
23039     * @param item The flip selector item
23040     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
23041     * (or on errors).
23042     *
23043     * @see elm_flipselector_item_selected_set()
23044     *
23045     * @ingroup Flipselector
23046     */
23047    EAPI Eina_Bool                  elm_flipselector_item_selected_get(const Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23048
23049    /**
23050     * Delete a given item from a flip selector widget.
23051     *
23052     * @param item The item to delete
23053     *
23054     * @ingroup Flipselector
23055     */
23056    EAPI void                       elm_flipselector_item_del(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23057
23058    /**
23059     * Get the label of a given flip selector widget's item.
23060     *
23061     * @param item The item to get label from
23062     * @return The text label of @p item or @c NULL, on errors
23063     *
23064     * @see elm_flipselector_item_label_set()
23065     *
23066     * @ingroup Flipselector
23067     */
23068    EAPI const char                *elm_flipselector_item_label_get(const Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23069
23070    /**
23071     * Set the label of a given flip selector widget's item.
23072     *
23073     * @param item The item to set label on
23074     * @param label The text label string, in UTF-8 encoding
23075     *
23076     * @see elm_flipselector_item_label_get()
23077     *
23078     * @ingroup Flipselector
23079     */
23080    EAPI void                       elm_flipselector_item_label_set(Elm_Flipselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
23081
23082    /**
23083     * Gets the item before @p item in a flip selector widget's
23084     * internal list of items.
23085     *
23086     * @param item The item to fetch previous from
23087     * @return The item before the @p item, in its parent's list. If
23088     *         there is no previous item for @p item or there's an
23089     *         error, @c NULL is returned.
23090     *
23091     * @see elm_flipselector_item_next_get()
23092     *
23093     * @ingroup Flipselector
23094     */
23095    EAPI Elm_Flipselector_Item     *elm_flipselector_item_prev_get(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23096
23097    /**
23098     * Gets the item after @p item in a flip selector widget's
23099     * internal list of items.
23100     *
23101     * @param item The item to fetch next from
23102     * @return The item after the @p item, in its parent's list. If
23103     *         there is no next item for @p item or there's an
23104     *         error, @c NULL is returned.
23105     *
23106     * @see elm_flipselector_item_next_get()
23107     *
23108     * @ingroup Flipselector
23109     */
23110    EAPI Elm_Flipselector_Item     *elm_flipselector_item_next_get(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23111
23112    /**
23113     * Set the interval on time updates for an user mouse button hold
23114     * on a flip selector widget.
23115     *
23116     * @param obj The flip selector object
23117     * @param interval The (first) interval value in seconds
23118     *
23119     * This interval value is @b decreased while the user holds the
23120     * mouse pointer either flipping up or flipping doww a given flip
23121     * selector.
23122     *
23123     * This helps the user to get to a given item distant from the
23124     * current one easier/faster, as it will start to flip quicker and
23125     * quicker on mouse button holds.
23126     *
23127     * The calculation for the next flip interval value, starting from
23128     * the one set with this call, is the previous interval divided by
23129     * 1.05, so it decreases a little bit.
23130     *
23131     * The default starting interval value for automatic flips is
23132     * @b 0.85 seconds.
23133     *
23134     * @see elm_flipselector_interval_get()
23135     *
23136     * @ingroup Flipselector
23137     */
23138    EAPI void                       elm_flipselector_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
23139
23140    /**
23141     * Get the interval on time updates for an user mouse button hold
23142     * on a flip selector widget.
23143     *
23144     * @param obj The flip selector object
23145     * @return The (first) interval value, in seconds, set on it
23146     *
23147     * @see elm_flipselector_interval_set() for more details
23148     *
23149     * @ingroup Flipselector
23150     */
23151    EAPI double                     elm_flipselector_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23152    /**
23153     * @}
23154     */
23155
23156    /**
23157     * @addtogroup Calendar
23158     * @{
23159     */
23160
23161    /**
23162     * @enum _Elm_Calendar_Mark_Repeat
23163     * @typedef Elm_Calendar_Mark_Repeat
23164     *
23165     * Event periodicity, used to define if a mark should be repeated
23166     * @b beyond event's day. It's set when a mark is added.
23167     *
23168     * So, for a mark added to 13th May with periodicity set to WEEKLY,
23169     * there will be marks every week after this date. Marks will be displayed
23170     * at 13th, 20th, 27th, 3rd June ...
23171     *
23172     * Values don't work as bitmask, only one can be choosen.
23173     *
23174     * @see elm_calendar_mark_add()
23175     *
23176     * @ingroup Calendar
23177     */
23178    typedef enum _Elm_Calendar_Mark_Repeat
23179      {
23180         ELM_CALENDAR_UNIQUE, /**< Default value. Marks will be displayed only on event day. */
23181         ELM_CALENDAR_DAILY, /**< Marks will be displayed everyday after event day (inclusive). */
23182         ELM_CALENDAR_WEEKLY, /**< Marks will be displayed every week after event day (inclusive) - i.e. each seven days. */
23183         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*/
23184         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. */
23185      } Elm_Calendar_Mark_Repeat;
23186
23187    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(). */
23188
23189    /**
23190     * Add a new calendar widget to the given parent Elementary
23191     * (container) object.
23192     *
23193     * @param parent The parent object.
23194     * @return a new calendar widget handle or @c NULL, on errors.
23195     *
23196     * This function inserts a new calendar widget on the canvas.
23197     *
23198     * @ref calendar_example_01
23199     *
23200     * @ingroup Calendar
23201     */
23202    EAPI Evas_Object       *elm_calendar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23203
23204    /**
23205     * Get weekdays names displayed by the calendar.
23206     *
23207     * @param obj The calendar object.
23208     * @return Array of seven strings to be used as weekday names.
23209     *
23210     * By default, weekdays abbreviations get from system are displayed:
23211     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
23212     * The first string is related to Sunday, the second to Monday...
23213     *
23214     * @see elm_calendar_weekdays_name_set()
23215     *
23216     * @ref calendar_example_05
23217     *
23218     * @ingroup Calendar
23219     */
23220    EAPI const char       **elm_calendar_weekdays_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23221
23222    /**
23223     * Set weekdays names to be displayed by the calendar.
23224     *
23225     * @param obj The calendar object.
23226     * @param weekdays Array of seven strings to be used as weekday names.
23227     * @warning It must have 7 elements, or it will access invalid memory.
23228     * @warning The strings must be NULL terminated ('@\0').
23229     *
23230     * By default, weekdays abbreviations get from system are displayed:
23231     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
23232     *
23233     * The first string should be related to Sunday, the second to Monday...
23234     *
23235     * The usage should be like this:
23236     * @code
23237     *   const char *weekdays[] =
23238     *   {
23239     *      "Sunday", "Monday", "Tuesday", "Wednesday",
23240     *      "Thursday", "Friday", "Saturday"
23241     *   };
23242     *   elm_calendar_weekdays_names_set(calendar, weekdays);
23243     * @endcode
23244     *
23245     * @see elm_calendar_weekdays_name_get()
23246     *
23247     * @ref calendar_example_02
23248     *
23249     * @ingroup Calendar
23250     */
23251    EAPI void               elm_calendar_weekdays_names_set(Evas_Object *obj, const char *weekdays[]) EINA_ARG_NONNULL(1, 2);
23252
23253    /**
23254     * Set the minimum and maximum values for the year
23255     *
23256     * @param obj The calendar object
23257     * @param min The minimum year, greater than 1901;
23258     * @param max The maximum year;
23259     *
23260     * Maximum must be greater than minimum, except if you don't wan't to set
23261     * maximum year.
23262     * Default values are 1902 and -1.
23263     *
23264     * If the maximum year is a negative value, it will be limited depending
23265     * on the platform architecture (year 2037 for 32 bits);
23266     *
23267     * @see elm_calendar_min_max_year_get()
23268     *
23269     * @ref calendar_example_03
23270     *
23271     * @ingroup Calendar
23272     */
23273    EAPI void               elm_calendar_min_max_year_set(Evas_Object *obj, int min, int max) EINA_ARG_NONNULL(1);
23274
23275    /**
23276     * Get the minimum and maximum values for the year
23277     *
23278     * @param obj The calendar object.
23279     * @param min The minimum year.
23280     * @param max The maximum year.
23281     *
23282     * Default values are 1902 and -1.
23283     *
23284     * @see elm_calendar_min_max_year_get() for more details.
23285     *
23286     * @ref calendar_example_05
23287     *
23288     * @ingroup Calendar
23289     */
23290    EAPI void               elm_calendar_min_max_year_get(const Evas_Object *obj, int *min, int *max) EINA_ARG_NONNULL(1);
23291
23292    /**
23293     * Enable or disable day selection
23294     *
23295     * @param obj The calendar object.
23296     * @param enabled @c EINA_TRUE to enable selection or @c EINA_FALSE to
23297     * disable it.
23298     *
23299     * Enabled by default. If disabled, the user still can select months,
23300     * but not days. Selected days are highlighted on calendar.
23301     * It should be used if you won't need such selection for the widget usage.
23302     *
23303     * When a day is selected, or month is changed, smart callbacks for
23304     * signal "changed" will be called.
23305     *
23306     * @see elm_calendar_day_selection_enable_get()
23307     *
23308     * @ref calendar_example_04
23309     *
23310     * @ingroup Calendar
23311     */
23312    EAPI void               elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
23313
23314    /**
23315     * Get a value whether day selection is enabled or not.
23316     *
23317     * @see elm_calendar_day_selection_enable_set() for details.
23318     *
23319     * @param obj The calendar object.
23320     * @return EINA_TRUE means day selection is enabled. EINA_FALSE indicates
23321     * it's disabled. If @p obj is NULL, EINA_FALSE is returned.
23322     *
23323     * @ref calendar_example_05
23324     *
23325     * @ingroup Calendar
23326     */
23327    EAPI Eina_Bool          elm_calendar_day_selection_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23328
23329
23330    /**
23331     * Set selected date to be highlighted on calendar.
23332     *
23333     * @param obj The calendar object.
23334     * @param selected_time A @b tm struct to represent the selected date.
23335     *
23336     * Set the selected date, changing the displayed month if needed.
23337     * Selected date changes when the user goes to next/previous month or
23338     * select a day pressing over it on calendar.
23339     *
23340     * @see elm_calendar_selected_time_get()
23341     *
23342     * @ref calendar_example_04
23343     *
23344     * @ingroup Calendar
23345     */
23346    EAPI void               elm_calendar_selected_time_set(Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1);
23347
23348    /**
23349     * Get selected date.
23350     *
23351     * @param obj The calendar object
23352     * @param selected_time A @b tm struct to point to selected date
23353     * @return EINA_FALSE means an error ocurred and returned time shouldn't
23354     * be considered.
23355     *
23356     * Get date selected by the user or set by function
23357     * elm_calendar_selected_time_set().
23358     * Selected date changes when the user goes to next/previous month or
23359     * select a day pressing over it on calendar.
23360     *
23361     * @see elm_calendar_selected_time_get()
23362     *
23363     * @ref calendar_example_05
23364     *
23365     * @ingroup Calendar
23366     */
23367    EAPI Eina_Bool          elm_calendar_selected_time_get(const Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1, 2);
23368
23369    /**
23370     * Set a function to format the string that will be used to display
23371     * month and year;
23372     *
23373     * @param obj The calendar object
23374     * @param format_function Function to set the month-year string given
23375     * the selected date
23376     *
23377     * By default it uses strftime with "%B %Y" format string.
23378     * It should allocate the memory that will be used by the string,
23379     * that will be freed by the widget after usage.
23380     * A pointer to the string and a pointer to the time struct will be provided.
23381     *
23382     * Example:
23383     * @code
23384     * static char *
23385     * _format_month_year(struct tm *selected_time)
23386     * {
23387     *    char buf[32];
23388     *    if (!strftime(buf, sizeof(buf), "%B %Y", selected_time)) return NULL;
23389     *    return strdup(buf);
23390     * }
23391     *
23392     * elm_calendar_format_function_set(calendar, _format_month_year);
23393     * @endcode
23394     *
23395     * @ref calendar_example_02
23396     *
23397     * @ingroup Calendar
23398     */
23399    EAPI void               elm_calendar_format_function_set(Evas_Object *obj, char * (*format_function) (struct tm *stime)) EINA_ARG_NONNULL(1);
23400
23401    /**
23402     * Add a new mark to the calendar
23403     *
23404     * @param obj The calendar object
23405     * @param mark_type A string used to define the type of mark. It will be
23406     * emitted to the theme, that should display a related modification on these
23407     * days representation.
23408     * @param mark_time A time struct to represent the date of inclusion of the
23409     * mark. For marks that repeats it will just be displayed after the inclusion
23410     * date in the calendar.
23411     * @param repeat Repeat the event following this periodicity. Can be a unique
23412     * mark (that don't repeat), daily, weekly, monthly or annually.
23413     * @return The created mark or @p NULL upon failure.
23414     *
23415     * Add a mark that will be drawn in the calendar respecting the insertion
23416     * time and periodicity. It will emit the type as signal to the widget theme.
23417     * Default theme supports "holiday" and "checked", but it can be extended.
23418     *
23419     * It won't immediately update the calendar, drawing the marks.
23420     * For this, call elm_calendar_marks_draw(). However, when user selects
23421     * next or previous month calendar forces marks drawn.
23422     *
23423     * Marks created with this method can be deleted with
23424     * elm_calendar_mark_del().
23425     *
23426     * Example
23427     * @code
23428     * struct tm selected_time;
23429     * time_t current_time;
23430     *
23431     * current_time = time(NULL) + 5 * 84600;
23432     * localtime_r(&current_time, &selected_time);
23433     * elm_calendar_mark_add(cal, "holiday", selected_time,
23434     *     ELM_CALENDAR_ANNUALLY);
23435     *
23436     * current_time = time(NULL) + 1 * 84600;
23437     * localtime_r(&current_time, &selected_time);
23438     * elm_calendar_mark_add(cal, "checked", selected_time, ELM_CALENDAR_UNIQUE);
23439     *
23440     * elm_calendar_marks_draw(cal);
23441     * @endcode
23442     *
23443     * @see elm_calendar_marks_draw()
23444     * @see elm_calendar_mark_del()
23445     *
23446     * @ref calendar_example_06
23447     *
23448     * @ingroup Calendar
23449     */
23450    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);
23451
23452    /**
23453     * Delete mark from the calendar.
23454     *
23455     * @param mark The mark to be deleted.
23456     *
23457     * If deleting all calendar marks is required, elm_calendar_marks_clear()
23458     * should be used instead of getting marks list and deleting each one.
23459     *
23460     * @see elm_calendar_mark_add()
23461     *
23462     * @ref calendar_example_06
23463     *
23464     * @ingroup Calendar
23465     */
23466    EAPI void               elm_calendar_mark_del(Elm_Calendar_Mark *mark) EINA_ARG_NONNULL(1);
23467
23468    /**
23469     * Remove all calendar's marks
23470     *
23471     * @param obj The calendar object.
23472     *
23473     * @see elm_calendar_mark_add()
23474     * @see elm_calendar_mark_del()
23475     *
23476     * @ingroup Calendar
23477     */
23478    EAPI void               elm_calendar_marks_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
23479
23480
23481    /**
23482     * Get a list of all the calendar marks.
23483     *
23484     * @param obj The calendar object.
23485     * @return An @c Eina_List of calendar marks objects, or @c NULL on failure.
23486     *
23487     * @see elm_calendar_mark_add()
23488     * @see elm_calendar_mark_del()
23489     * @see elm_calendar_marks_clear()
23490     *
23491     * @ingroup Calendar
23492     */
23493    EAPI const Eina_List   *elm_calendar_marks_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23494
23495    /**
23496     * Draw calendar marks.
23497     *
23498     * @param obj The calendar object.
23499     *
23500     * Should be used after adding, removing or clearing marks.
23501     * It will go through the entire marks list updating the calendar.
23502     * If lots of marks will be added, add all the marks and then call
23503     * this function.
23504     *
23505     * When the month is changed, i.e. user selects next or previous month,
23506     * marks will be drawed.
23507     *
23508     * @see elm_calendar_mark_add()
23509     * @see elm_calendar_mark_del()
23510     * @see elm_calendar_marks_clear()
23511     *
23512     * @ref calendar_example_06
23513     *
23514     * @ingroup Calendar
23515     */
23516    EAPI void               elm_calendar_marks_draw(Evas_Object *obj) EINA_ARG_NONNULL(1);
23517
23518    /**
23519     * Set a day text color to the same that represents Saturdays.
23520     *
23521     * @param obj The calendar object.
23522     * @param pos The text position. Position is the cell counter, from left
23523     * to right, up to down. It starts on 0 and ends on 41.
23524     *
23525     * @deprecated use elm_calendar_mark_add() instead like:
23526     *
23527     * @code
23528     * struct tm t = { 0, 0, 12, 6, 0, 0, 6, 6, -1 };
23529     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
23530     * @endcode
23531     *
23532     * @see elm_calendar_mark_add()
23533     *
23534     * @ingroup Calendar
23535     */
23536    EINA_DEPRECATED EAPI void               elm_calendar_text_saturday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
23537
23538    /**
23539     * Set a day text color to the same that represents Sundays.
23540     *
23541     * @param obj The calendar object.
23542     * @param pos The text position. Position is the cell counter, from left
23543     * to right, up to down. It starts on 0 and ends on 41.
23544
23545     * @deprecated use elm_calendar_mark_add() instead like:
23546     *
23547     * @code
23548     * struct tm t = { 0, 0, 12, 7, 0, 0, 0, 0, -1 };
23549     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
23550     * @endcode
23551     *
23552     * @see elm_calendar_mark_add()
23553     *
23554     * @ingroup Calendar
23555     */
23556    EINA_DEPRECATED EAPI void               elm_calendar_text_sunday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
23557
23558    /**
23559     * Set a day text color to the same that represents Weekdays.
23560     *
23561     * @param obj The calendar object
23562     * @param pos The text position. Position is the cell counter, from left
23563     * to right, up to down. It starts on 0 and ends on 41.
23564     *
23565     * @deprecated use elm_calendar_mark_add() instead like:
23566     *
23567     * @code
23568     * struct tm t = { 0, 0, 12, 1, 0, 0, 0, 0, -1 };
23569     *
23570     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // monday
23571     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
23572     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // tuesday
23573     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
23574     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // wednesday
23575     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
23576     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // thursday
23577     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
23578     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // friday
23579     * @endcode
23580     *
23581     * @see elm_calendar_mark_add()
23582     *
23583     * @ingroup Calendar
23584     */
23585    EINA_DEPRECATED EAPI void               elm_calendar_text_weekday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
23586
23587    /**
23588     * Set the interval on time updates for an user mouse button hold
23589     * on calendar widgets' month selection.
23590     *
23591     * @param obj The calendar object
23592     * @param interval The (first) interval value in seconds
23593     *
23594     * This interval value is @b decreased while the user holds the
23595     * mouse pointer either selecting next or previous month.
23596     *
23597     * This helps the user to get to a given month distant from the
23598     * current one easier/faster, as it will start to change quicker and
23599     * quicker on mouse button holds.
23600     *
23601     * The calculation for the next change interval value, starting from
23602     * the one set with this call, is the previous interval divided by
23603     * 1.05, so it decreases a little bit.
23604     *
23605     * The default starting interval value for automatic changes is
23606     * @b 0.85 seconds.
23607     *
23608     * @see elm_calendar_interval_get()
23609     *
23610     * @ingroup Calendar
23611     */
23612    EAPI void               elm_calendar_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
23613
23614    /**
23615     * Get the interval on time updates for an user mouse button hold
23616     * on calendar widgets' month selection.
23617     *
23618     * @param obj The calendar object
23619     * @return The (first) interval value, in seconds, set on it
23620     *
23621     * @see elm_calendar_interval_set() for more details
23622     *
23623     * @ingroup Calendar
23624     */
23625    EAPI double             elm_calendar_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23626
23627    /**
23628     * @}
23629     */
23630
23631    /**
23632     * @defgroup Diskselector Diskselector
23633     * @ingroup Elementary
23634     *
23635     * @image html img/widget/diskselector/preview-00.png
23636     * @image latex img/widget/diskselector/preview-00.eps
23637     *
23638     * A diskselector is a kind of list widget. It scrolls horizontally,
23639     * and can contain label and icon objects. Three items are displayed
23640     * with the selected one in the middle.
23641     *
23642     * It can act like a circular list with round mode and labels can be
23643     * reduced for a defined length for side items.
23644     *
23645     * Smart callbacks one can listen to:
23646     * - "selected" - when item is selected, i.e. scroller stops.
23647     *
23648     * Available styles for it:
23649     * - @c "default"
23650     *
23651     * List of examples:
23652     * @li @ref diskselector_example_01
23653     * @li @ref diskselector_example_02
23654     */
23655
23656    /**
23657     * @addtogroup Diskselector
23658     * @{
23659     */
23660
23661    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(). */
23662
23663    /**
23664     * Add a new diskselector widget to the given parent Elementary
23665     * (container) object.
23666     *
23667     * @param parent The parent object.
23668     * @return a new diskselector widget handle or @c NULL, on errors.
23669     *
23670     * This function inserts a new diskselector widget on the canvas.
23671     *
23672     * @ingroup Diskselector
23673     */
23674    EAPI Evas_Object           *elm_diskselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23675
23676    /**
23677     * Enable or disable round mode.
23678     *
23679     * @param obj The diskselector object.
23680     * @param round @c EINA_TRUE to enable round mode or @c EINA_FALSE to
23681     * disable it.
23682     *
23683     * Disabled by default. If round mode is enabled the items list will
23684     * work like a circle list, so when the user reaches the last item,
23685     * the first one will popup.
23686     *
23687     * @see elm_diskselector_round_get()
23688     *
23689     * @ingroup Diskselector
23690     */
23691    EAPI void                   elm_diskselector_round_set(Evas_Object *obj, Eina_Bool round) EINA_ARG_NONNULL(1);
23692
23693    /**
23694     * Get a value whether round mode is enabled or not.
23695     *
23696     * @see elm_diskselector_round_set() for details.
23697     *
23698     * @param obj The diskselector object.
23699     * @return @c EINA_TRUE means round mode is enabled. @c EINA_FALSE indicates
23700     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
23701     *
23702     * @ingroup Diskselector
23703     */
23704    EAPI Eina_Bool              elm_diskselector_round_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23705
23706    /**
23707     * Get the side labels max length.
23708     *
23709     * @deprecated use elm_diskselector_side_label_length_get() instead:
23710     *
23711     * @param obj The diskselector object.
23712     * @return The max length defined for side labels, or 0 if not a valid
23713     * diskselector.
23714     *
23715     * @ingroup Diskselector
23716     */
23717    EINA_DEPRECATED EAPI int    elm_diskselector_side_label_lenght_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23718
23719    /**
23720     * Set the side labels max length.
23721     *
23722     * @deprecated use elm_diskselector_side_label_length_set() instead:
23723     *
23724     * @param obj The diskselector object.
23725     * @param len The max length defined for side labels.
23726     *
23727     * @ingroup Diskselector
23728     */
23729    EINA_DEPRECATED EAPI void   elm_diskselector_side_label_lenght_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
23730
23731    /**
23732     * Get the side labels max length.
23733     *
23734     * @see elm_diskselector_side_label_length_set() for details.
23735     *
23736     * @param obj The diskselector object.
23737     * @return The max length defined for side labels, or 0 if not a valid
23738     * diskselector.
23739     *
23740     * @ingroup Diskselector
23741     */
23742    EAPI int                    elm_diskselector_side_label_length_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23743
23744    /**
23745     * Set the side labels max length.
23746     *
23747     * @param obj The diskselector object.
23748     * @param len The max length defined for side labels.
23749     *
23750     * Length is the number of characters of items' label that will be
23751     * visible when it's set on side positions. It will just crop
23752     * the string after defined size. E.g.:
23753     *
23754     * An item with label "January" would be displayed on side position as
23755     * "Jan" if max length is set to 3, or "Janu", if this property
23756     * is set to 4.
23757     *
23758     * When it's selected, the entire label will be displayed, except for
23759     * width restrictions. In this case label will be cropped and "..."
23760     * will be concatenated.
23761     *
23762     * Default side label max length is 3.
23763     *
23764     * This property will be applyed over all items, included before or
23765     * later this function call.
23766     *
23767     * @ingroup Diskselector
23768     */
23769    EAPI void                   elm_diskselector_side_label_length_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
23770
23771    /**
23772     * Set the number of items to be displayed.
23773     *
23774     * @param obj The diskselector object.
23775     * @param num The number of items the diskselector will display.
23776     *
23777     * Default value is 3, and also it's the minimun. If @p num is less
23778     * than 3, it will be set to 3.
23779     *
23780     * Also, it can be set on theme, using data item @c display_item_num
23781     * on group "elm/diskselector/item/X", where X is style set.
23782     * E.g.:
23783     *
23784     * group { name: "elm/diskselector/item/X";
23785     * data {
23786     *     item: "display_item_num" "5";
23787     *     }
23788     *
23789     * @ingroup Diskselector
23790     */
23791    EAPI void                   elm_diskselector_display_item_num_set(Evas_Object *obj, int num) EINA_ARG_NONNULL(1);
23792
23793    /**
23794     * Set bouncing behaviour when the scrolled content reaches an edge.
23795     *
23796     * Tell the internal scroller object whether it should bounce or not
23797     * when it reaches the respective edges for each axis.
23798     *
23799     * @param obj The diskselector object.
23800     * @param h_bounce Whether to bounce or not in the horizontal axis.
23801     * @param v_bounce Whether to bounce or not in the vertical axis.
23802     *
23803     * @see elm_scroller_bounce_set()
23804     *
23805     * @ingroup Diskselector
23806     */
23807    EAPI void                   elm_diskselector_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
23808
23809    /**
23810     * Get the bouncing behaviour of the internal scroller.
23811     *
23812     * Get whether the internal scroller should bounce when the edge of each
23813     * axis is reached scrolling.
23814     *
23815     * @param obj The diskselector object.
23816     * @param h_bounce Pointer where to store the bounce state of the horizontal
23817     * axis.
23818     * @param v_bounce Pointer where to store the bounce state of the vertical
23819     * axis.
23820     *
23821     * @see elm_scroller_bounce_get()
23822     * @see elm_diskselector_bounce_set()
23823     *
23824     * @ingroup Diskselector
23825     */
23826    EAPI void                   elm_diskselector_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
23827
23828    /**
23829     * Get the scrollbar policy.
23830     *
23831     * @see elm_diskselector_scroller_policy_get() for details.
23832     *
23833     * @param obj The diskselector object.
23834     * @param policy_h Pointer where to store horizontal scrollbar policy.
23835     * @param policy_v Pointer where to store vertical scrollbar policy.
23836     *
23837     * @ingroup Diskselector
23838     */
23839    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);
23840
23841    /**
23842     * Set the scrollbar policy.
23843     *
23844     * @param obj The diskselector object.
23845     * @param policy_h Horizontal scrollbar policy.
23846     * @param policy_v Vertical scrollbar policy.
23847     *
23848     * This sets the scrollbar visibility policy for the given scroller.
23849     * #ELM_SCROLLER_POLICY_AUTO means the scrollber is made visible if it
23850     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
23851     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
23852     * This applies respectively for the horizontal and vertical scrollbars.
23853     *
23854     * The both are disabled by default, i.e., are set to
23855     * #ELM_SCROLLER_POLICY_OFF.
23856     *
23857     * @ingroup Diskselector
23858     */
23859    EAPI void                   elm_diskselector_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
23860
23861    /**
23862     * Remove all diskselector's items.
23863     *
23864     * @param obj The diskselector object.
23865     *
23866     * @see elm_diskselector_item_del()
23867     * @see elm_diskselector_item_append()
23868     *
23869     * @ingroup Diskselector
23870     */
23871    EAPI void                   elm_diskselector_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
23872
23873    /**
23874     * Get a list of all the diskselector items.
23875     *
23876     * @param obj The diskselector object.
23877     * @return An @c Eina_List of diskselector items, #Elm_Diskselector_Item,
23878     * or @c NULL on failure.
23879     *
23880     * @see elm_diskselector_item_append()
23881     * @see elm_diskselector_item_del()
23882     * @see elm_diskselector_clear()
23883     *
23884     * @ingroup Diskselector
23885     */
23886    EAPI const Eina_List       *elm_diskselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23887
23888    /**
23889     * Appends a new item to the diskselector object.
23890     *
23891     * @param obj The diskselector object.
23892     * @param label The label of the diskselector item.
23893     * @param icon The icon object to use at left side of the item. An
23894     * icon can be any Evas object, but usually it is an icon created
23895     * with elm_icon_add().
23896     * @param func The function to call when the item is selected.
23897     * @param data The data to associate with the item for related callbacks.
23898     *
23899     * @return The created item or @c NULL upon failure.
23900     *
23901     * A new item will be created and appended to the diskselector, i.e., will
23902     * be set as last item. Also, if there is no selected item, it will
23903     * be selected. This will always happens for the first appended item.
23904     *
23905     * If no icon is set, label will be centered on item position, otherwise
23906     * the icon will be placed at left of the label, that will be shifted
23907     * to the right.
23908     *
23909     * Items created with this method can be deleted with
23910     * elm_diskselector_item_del().
23911     *
23912     * Associated @p data can be properly freed when item is deleted if a
23913     * callback function is set with elm_diskselector_item_del_cb_set().
23914     *
23915     * If a function is passed as argument, it will be called everytime this item
23916     * is selected, i.e., the user stops the diskselector with this
23917     * item on center position. If such function isn't needed, just passing
23918     * @c NULL as @p func is enough. The same should be done for @p data.
23919     *
23920     * Simple example (with no function callback or data associated):
23921     * @code
23922     * disk = elm_diskselector_add(win);
23923     * ic = elm_icon_add(win);
23924     * elm_icon_file_set(ic, "path/to/image", NULL);
23925     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
23926     * elm_diskselector_item_append(disk, "label", ic, NULL, NULL);
23927     * @endcode
23928     *
23929     * @see elm_diskselector_item_del()
23930     * @see elm_diskselector_item_del_cb_set()
23931     * @see elm_diskselector_clear()
23932     * @see elm_icon_add()
23933     *
23934     * @ingroup Diskselector
23935     */
23936    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);
23937
23938
23939    /**
23940     * Delete them item from the diskselector.
23941     *
23942     * @param it The item of diskselector to be deleted.
23943     *
23944     * If deleting all diskselector items is required, elm_diskselector_clear()
23945     * should be used instead of getting items list and deleting each one.
23946     *
23947     * @see elm_diskselector_clear()
23948     * @see elm_diskselector_item_append()
23949     * @see elm_diskselector_item_del_cb_set()
23950     *
23951     * @ingroup Diskselector
23952     */
23953    EAPI void                   elm_diskselector_item_del(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
23954
23955    /**
23956     * Set the function called when a diskselector item is freed.
23957     *
23958     * @param it The item to set the callback on
23959     * @param func The function called
23960     *
23961     * If there is a @p func, then it will be called prior item's memory release.
23962     * That will be called with the following arguments:
23963     * @li item's data;
23964     * @li item's Evas object;
23965     * @li item itself;
23966     *
23967     * This way, a data associated to a diskselector item could be properly
23968     * freed.
23969     *
23970     * @ingroup Diskselector
23971     */
23972    EAPI void                   elm_diskselector_item_del_cb_set(Elm_Diskselector_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
23973
23974    /**
23975     * Get the data associated to the item.
23976     *
23977     * @param it The diskselector item
23978     * @return The data associated to @p it
23979     *
23980     * The return value is a pointer to data associated to @p item when it was
23981     * created, with function elm_diskselector_item_append(). If no data
23982     * was passed as argument, it will return @c NULL.
23983     *
23984     * @see elm_diskselector_item_append()
23985     *
23986     * @ingroup Diskselector
23987     */
23988    EAPI void                  *elm_diskselector_item_data_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
23989
23990    /**
23991     * Set the icon associated to the item.
23992     *
23993     * @param it The diskselector item
23994     * @param icon The icon object to associate with @p it
23995     *
23996     * The icon object to use at left side of the item. An
23997     * icon can be any Evas object, but usually it is an icon created
23998     * with elm_icon_add().
23999     *
24000     * Once the icon object is set, a previously set one will be deleted.
24001     * @warning Setting the same icon for two items will cause the icon to
24002     * dissapear from the first item.
24003     *
24004     * If an icon was passed as argument on item creation, with function
24005     * elm_diskselector_item_append(), it will be already
24006     * associated to the item.
24007     *
24008     * @see elm_diskselector_item_append()
24009     * @see elm_diskselector_item_icon_get()
24010     *
24011     * @ingroup Diskselector
24012     */
24013    EAPI void                   elm_diskselector_item_icon_set(Elm_Diskselector_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
24014
24015    /**
24016     * Get the icon associated to the item.
24017     *
24018     * @param it The diskselector item
24019     * @return The icon associated to @p it
24020     *
24021     * The return value is a pointer to the icon associated to @p item when it was
24022     * created, with function elm_diskselector_item_append(), or later
24023     * with function elm_diskselector_item_icon_set. If no icon
24024     * was passed as argument, it will return @c NULL.
24025     *
24026     * @see elm_diskselector_item_append()
24027     * @see elm_diskselector_item_icon_set()
24028     *
24029     * @ingroup Diskselector
24030     */
24031    EAPI Evas_Object           *elm_diskselector_item_icon_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24032
24033    /**
24034     * Set the label of item.
24035     *
24036     * @param it The item of diskselector.
24037     * @param label The label of item.
24038     *
24039     * The label to be displayed by the item.
24040     *
24041     * If no icon is set, label will be centered on item position, otherwise
24042     * the icon will be placed at left of the label, that will be shifted
24043     * to the right.
24044     *
24045     * An item with label "January" would be displayed on side position as
24046     * "Jan" if max length is set to 3 with function
24047     * elm_diskselector_side_label_lenght_set(), or "Janu", if this property
24048     * is set to 4.
24049     *
24050     * When this @p item is selected, the entire label will be displayed,
24051     * except for width restrictions.
24052     * In this case label will be cropped and "..." will be concatenated,
24053     * but only for display purposes. It will keep the entire string, so
24054     * if diskselector is resized the remaining characters will be displayed.
24055     *
24056     * If a label was passed as argument on item creation, with function
24057     * elm_diskselector_item_append(), it will be already
24058     * displayed by the item.
24059     *
24060     * @see elm_diskselector_side_label_lenght_set()
24061     * @see elm_diskselector_item_label_get()
24062     * @see elm_diskselector_item_append()
24063     *
24064     * @ingroup Diskselector
24065     */
24066    EAPI void                   elm_diskselector_item_label_set(Elm_Diskselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
24067
24068    /**
24069     * Get the label of item.
24070     *
24071     * @param it The item of diskselector.
24072     * @return The label of item.
24073     *
24074     * The return value is a pointer to the label associated to @p item when it was
24075     * created, with function elm_diskselector_item_append(), or later
24076     * with function elm_diskselector_item_label_set. If no label
24077     * was passed as argument, it will return @c NULL.
24078     *
24079     * @see elm_diskselector_item_label_set() for more details.
24080     * @see elm_diskselector_item_append()
24081     *
24082     * @ingroup Diskselector
24083     */
24084    EAPI const char            *elm_diskselector_item_label_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24085
24086    /**
24087     * Get the selected item.
24088     *
24089     * @param obj The diskselector object.
24090     * @return The selected diskselector item.
24091     *
24092     * The selected item can be unselected with function
24093     * elm_diskselector_item_selected_set(), and the first item of
24094     * diskselector will be selected.
24095     *
24096     * The selected item always will be centered on diskselector, with
24097     * full label displayed, i.e., max lenght set to side labels won't
24098     * apply on the selected item. More details on
24099     * elm_diskselector_side_label_length_set().
24100     *
24101     * @ingroup Diskselector
24102     */
24103    EAPI Elm_Diskselector_Item *elm_diskselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24104
24105    /**
24106     * Set the selected state of an item.
24107     *
24108     * @param it The diskselector item
24109     * @param selected The selected state
24110     *
24111     * This sets the selected state of the given item @p it.
24112     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
24113     *
24114     * If a new item is selected the previosly selected will be unselected.
24115     * Previoulsy selected item can be get with function
24116     * elm_diskselector_selected_item_get().
24117     *
24118     * If the item @p it is unselected, the first item of diskselector will
24119     * be selected.
24120     *
24121     * Selected items will be visible on center position of diskselector.
24122     * So if it was on another position before selected, or was invisible,
24123     * diskselector will animate items until the selected item reaches center
24124     * position.
24125     *
24126     * @see elm_diskselector_item_selected_get()
24127     * @see elm_diskselector_selected_item_get()
24128     *
24129     * @ingroup Diskselector
24130     */
24131    EAPI void                   elm_diskselector_item_selected_set(Elm_Diskselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
24132
24133    /*
24134     * Get whether the @p item is selected or not.
24135     *
24136     * @param it The diskselector item.
24137     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
24138     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
24139     *
24140     * @see elm_diskselector_selected_item_set() for details.
24141     * @see elm_diskselector_item_selected_get()
24142     *
24143     * @ingroup Diskselector
24144     */
24145    EAPI Eina_Bool              elm_diskselector_item_selected_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24146
24147    /**
24148     * Get the first item of the diskselector.
24149     *
24150     * @param obj The diskselector object.
24151     * @return The first item, or @c NULL if none.
24152     *
24153     * The list of items follows append order. So it will return the first
24154     * item appended to the widget that wasn't deleted.
24155     *
24156     * @see elm_diskselector_item_append()
24157     * @see elm_diskselector_items_get()
24158     *
24159     * @ingroup Diskselector
24160     */
24161    EAPI Elm_Diskselector_Item *elm_diskselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24162
24163    /**
24164     * Get the last item of the diskselector.
24165     *
24166     * @param obj The diskselector object.
24167     * @return The last item, or @c NULL if none.
24168     *
24169     * The list of items follows append order. So it will return last first
24170     * item appended to the widget that wasn't deleted.
24171     *
24172     * @see elm_diskselector_item_append()
24173     * @see elm_diskselector_items_get()
24174     *
24175     * @ingroup Diskselector
24176     */
24177    EAPI Elm_Diskselector_Item *elm_diskselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24178
24179    /**
24180     * Get the item before @p item in diskselector.
24181     *
24182     * @param it The diskselector item.
24183     * @return The item before @p item, or @c NULL if none or on failure.
24184     *
24185     * The list of items follows append order. So it will return item appended
24186     * just before @p item and that wasn't deleted.
24187     *
24188     * If it is the first item, @c NULL will be returned.
24189     * First item can be get by elm_diskselector_first_item_get().
24190     *
24191     * @see elm_diskselector_item_append()
24192     * @see elm_diskselector_items_get()
24193     *
24194     * @ingroup Diskselector
24195     */
24196    EAPI Elm_Diskselector_Item *elm_diskselector_item_prev_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24197
24198    /**
24199     * Get the item after @p item in diskselector.
24200     *
24201     * @param it The diskselector item.
24202     * @return The item after @p item, or @c NULL if none or on failure.
24203     *
24204     * The list of items follows append order. So it will return item appended
24205     * just after @p item and that wasn't deleted.
24206     *
24207     * If it is the last item, @c NULL will be returned.
24208     * Last item can be get by elm_diskselector_last_item_get().
24209     *
24210     * @see elm_diskselector_item_append()
24211     * @see elm_diskselector_items_get()
24212     *
24213     * @ingroup Diskselector
24214     */
24215    EAPI Elm_Diskselector_Item *elm_diskselector_item_next_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24216
24217    /**
24218     * Set the text to be shown in the diskselector item.
24219     *
24220     * @param item Target item
24221     * @param text The text to set in the content
24222     *
24223     * Setup the text as tooltip to object. The item can have only one tooltip,
24224     * so any previous tooltip data is removed.
24225     *
24226     * @see elm_object_tooltip_text_set() for more details.
24227     *
24228     * @ingroup Diskselector
24229     */
24230    EAPI void                   elm_diskselector_item_tooltip_text_set(Elm_Diskselector_Item *item, const char *text) EINA_ARG_NONNULL(1);
24231
24232    /**
24233     * Set the content to be shown in the tooltip item.
24234     *
24235     * Setup the tooltip to item. The item can have only one tooltip,
24236     * so any previous tooltip data is removed. @p func(with @p data) will
24237     * be called every time that need show the tooltip and it should
24238     * return a valid Evas_Object. This object is then managed fully by
24239     * tooltip system and is deleted when the tooltip is gone.
24240     *
24241     * @param item the diskselector item being attached a tooltip.
24242     * @param func the function used to create the tooltip contents.
24243     * @param data what to provide to @a func as callback data/context.
24244     * @param del_cb called when data is not needed anymore, either when
24245     *        another callback replaces @p func, the tooltip is unset with
24246     *        elm_diskselector_item_tooltip_unset() or the owner @a item
24247     *        dies. This callback receives as the first parameter the
24248     *        given @a data, and @c event_info is the item.
24249     *
24250     * @see elm_object_tooltip_content_cb_set() for more details.
24251     *
24252     * @ingroup Diskselector
24253     */
24254    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);
24255
24256    /**
24257     * Unset tooltip from item.
24258     *
24259     * @param item diskselector item to remove previously set tooltip.
24260     *
24261     * Remove tooltip from item. The callback provided as del_cb to
24262     * elm_diskselector_item_tooltip_content_cb_set() will be called to notify
24263     * it is not used anymore.
24264     *
24265     * @see elm_object_tooltip_unset() for more details.
24266     * @see elm_diskselector_item_tooltip_content_cb_set()
24267     *
24268     * @ingroup Diskselector
24269     */
24270    EAPI void                   elm_diskselector_item_tooltip_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24271
24272
24273    /**
24274     * Sets a different style for this item tooltip.
24275     *
24276     * @note before you set a style you should define a tooltip with
24277     *       elm_diskselector_item_tooltip_content_cb_set() or
24278     *       elm_diskselector_item_tooltip_text_set()
24279     *
24280     * @param item diskselector item with tooltip already set.
24281     * @param style the theme style to use (default, transparent, ...)
24282     *
24283     * @see elm_object_tooltip_style_set() for more details.
24284     *
24285     * @ingroup Diskselector
24286     */
24287    EAPI void                   elm_diskselector_item_tooltip_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
24288
24289    /**
24290     * Get the style for this item tooltip.
24291     *
24292     * @param item diskselector item with tooltip already set.
24293     * @return style the theme style in use, defaults to "default". If the
24294     *         object does not have a tooltip set, then NULL is returned.
24295     *
24296     * @see elm_object_tooltip_style_get() for more details.
24297     * @see elm_diskselector_item_tooltip_style_set()
24298     *
24299     * @ingroup Diskselector
24300     */
24301    EAPI const char            *elm_diskselector_item_tooltip_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24302
24303    /**
24304     * Set the cursor to be shown when mouse is over the diskselector item
24305     *
24306     * @param item Target item
24307     * @param cursor the cursor name to be used.
24308     *
24309     * @see elm_object_cursor_set() for more details.
24310     *
24311     * @ingroup Diskselector
24312     */
24313    EAPI void                   elm_diskselector_item_cursor_set(Elm_Diskselector_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
24314
24315    /**
24316     * Get the cursor to be shown when mouse is over the diskselector item
24317     *
24318     * @param item diskselector item with cursor already set.
24319     * @return the cursor name.
24320     *
24321     * @see elm_object_cursor_get() for more details.
24322     * @see elm_diskselector_cursor_set()
24323     *
24324     * @ingroup Diskselector
24325     */
24326    EAPI const char            *elm_diskselector_item_cursor_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24327
24328
24329    /**
24330     * Unset the cursor to be shown when mouse is over the diskselector item
24331     *
24332     * @param item Target item
24333     *
24334     * @see elm_object_cursor_unset() for more details.
24335     * @see elm_diskselector_cursor_set()
24336     *
24337     * @ingroup Diskselector
24338     */
24339    EAPI void                   elm_diskselector_item_cursor_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24340
24341    /**
24342     * Sets a different style for this item cursor.
24343     *
24344     * @note before you set a style you should define a cursor with
24345     *       elm_diskselector_item_cursor_set()
24346     *
24347     * @param item diskselector item with cursor already set.
24348     * @param style the theme style to use (default, transparent, ...)
24349     *
24350     * @see elm_object_cursor_style_set() for more details.
24351     *
24352     * @ingroup Diskselector
24353     */
24354    EAPI void                   elm_diskselector_item_cursor_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
24355
24356
24357    /**
24358     * Get the style for this item cursor.
24359     *
24360     * @param item diskselector item with cursor already set.
24361     * @return style the theme style in use, defaults to "default". If the
24362     *         object does not have a cursor set, then @c NULL is returned.
24363     *
24364     * @see elm_object_cursor_style_get() for more details.
24365     * @see elm_diskselector_item_cursor_style_set()
24366     *
24367     * @ingroup Diskselector
24368     */
24369    EAPI const char            *elm_diskselector_item_cursor_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24370
24371
24372    /**
24373     * Set if the cursor set should be searched on the theme or should use
24374     * the provided by the engine, only.
24375     *
24376     * @note before you set if should look on theme you should define a cursor
24377     * with elm_diskselector_item_cursor_set().
24378     * By default it will only look for cursors provided by the engine.
24379     *
24380     * @param item widget item with cursor already set.
24381     * @param engine_only boolean to define if cursors set with
24382     * elm_diskselector_item_cursor_set() should be searched only
24383     * between cursors provided by the engine or searched on widget's
24384     * theme as well.
24385     *
24386     * @see elm_object_cursor_engine_only_set() for more details.
24387     *
24388     * @ingroup Diskselector
24389     */
24390    EAPI void                   elm_diskselector_item_cursor_engine_only_set(Elm_Diskselector_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
24391
24392    /**
24393     * Get the cursor engine only usage for this item cursor.
24394     *
24395     * @param item widget item with cursor already set.
24396     * @return engine_only boolean to define it cursors should be looked only
24397     * between the provided by the engine or searched on widget's theme as well.
24398     * If the item does not have a cursor set, then @c EINA_FALSE is returned.
24399     *
24400     * @see elm_object_cursor_engine_only_get() for more details.
24401     * @see elm_diskselector_item_cursor_engine_only_set()
24402     *
24403     * @ingroup Diskselector
24404     */
24405    EAPI Eina_Bool              elm_diskselector_item_cursor_engine_only_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24406
24407    /**
24408     * @}
24409     */
24410
24411    /**
24412     * @defgroup Colorselector Colorselector
24413     *
24414     * @{
24415     *
24416     * @image html img/widget/colorselector/preview-00.png
24417     * @image latex img/widget/colorselector/preview-00.eps
24418     *
24419     * @brief Widget for user to select a color.
24420     *
24421     * Signals that you can add callbacks for are:
24422     * "changed" - When the color value changes(event_info is NULL).
24423     *
24424     * See @ref tutorial_colorselector.
24425     */
24426    /**
24427     * @brief Add a new colorselector to the parent
24428     *
24429     * @param parent The parent object
24430     * @return The new object or NULL if it cannot be created
24431     *
24432     * @ingroup Colorselector
24433     */
24434    EAPI Evas_Object *elm_colorselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24435    /**
24436     * Set a color for the colorselector
24437     *
24438     * @param obj   Colorselector object
24439     * @param r     r-value of color
24440     * @param g     g-value of color
24441     * @param b     b-value of color
24442     * @param a     a-value of color
24443     *
24444     * @ingroup Colorselector
24445     */
24446    EAPI void         elm_colorselector_color_set(Evas_Object *obj, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
24447    /**
24448     * Get a color from the colorselector
24449     *
24450     * @param obj   Colorselector object
24451     * @param r     integer pointer for r-value of color
24452     * @param g     integer pointer for g-value of color
24453     * @param b     integer pointer for b-value of color
24454     * @param a     integer pointer for a-value of color
24455     *
24456     * @ingroup Colorselector
24457     */
24458    EAPI void         elm_colorselector_color_get(const Evas_Object *obj, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
24459    /**
24460     * @}
24461     */
24462
24463    /**
24464     * @defgroup Ctxpopup Ctxpopup
24465     *
24466     * @image html img/widget/ctxpopup/preview-00.png
24467     * @image latex img/widget/ctxpopup/preview-00.eps
24468     *
24469     * @brief Context popup widet.
24470     *
24471     * A ctxpopup is a widget that, when shown, pops up a list of items.
24472     * It automatically chooses an area inside its parent object's view
24473     * (set via elm_ctxpopup_add() and elm_ctxpopup_hover_parent_set()) to
24474     * optimally fit into it. In the default theme, it will also point an
24475     * arrow to it's top left position at the time one shows it. Ctxpopup
24476     * items have a label and/or an icon. It is intended for a small
24477     * number of items (hence the use of list, not genlist).
24478     *
24479     * @note Ctxpopup is a especialization of @ref Hover.
24480     *
24481     * Signals that you can add callbacks for are:
24482     * "dismissed" - the ctxpopup was dismissed
24483     *
24484     * @ref tutorial_ctxpopup shows the usage of a good deal of the API.
24485     * @{
24486     */
24487    typedef struct _Elm_Ctxpopup_Item Elm_Ctxpopup_Item;
24488
24489    typedef enum _Elm_Ctxpopup_Direction
24490      {
24491         ELM_CTXPOPUP_DIRECTION_DOWN, /**< ctxpopup show appear below clicked
24492                                           area */
24493         ELM_CTXPOPUP_DIRECTION_RIGHT, /**< ctxpopup show appear to the right of
24494                                            the clicked area */
24495         ELM_CTXPOPUP_DIRECTION_LEFT, /**< ctxpopup show appear to the left of
24496                                           the clicked area */
24497         ELM_CTXPOPUP_DIRECTION_UP, /**< ctxpopup show appear above the clicked
24498                                         area */
24499      } Elm_Ctxpopup_Direction;
24500
24501    /**
24502     * @brief Add a new Ctxpopup object to the parent.
24503     *
24504     * @param parent Parent object
24505     * @return New object or @c NULL, if it cannot be created
24506     */
24507    EAPI Evas_Object  *elm_ctxpopup_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24508    /**
24509     * @brief Set the Ctxpopup's parent
24510     *
24511     * @param obj The ctxpopup object
24512     * @param area The parent to use
24513     *
24514     * Set the parent object.
24515     *
24516     * @note elm_ctxpopup_add() will automatically call this function
24517     * with its @c parent argument.
24518     *
24519     * @see elm_ctxpopup_add()
24520     * @see elm_hover_parent_set()
24521     */
24522    EAPI void          elm_ctxpopup_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1, 2);
24523    /**
24524     * @brief Get the Ctxpopup's parent
24525     *
24526     * @param obj The ctxpopup object
24527     *
24528     * @see elm_ctxpopup_hover_parent_set() for more information
24529     */
24530    EAPI Evas_Object  *elm_ctxpopup_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24531    /**
24532     * @brief Clear all items in the given ctxpopup object.
24533     *
24534     * @param obj Ctxpopup object
24535     */
24536    EAPI void          elm_ctxpopup_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
24537    /**
24538     * @brief Change the ctxpopup's orientation to horizontal or vertical.
24539     *
24540     * @param obj Ctxpopup object
24541     * @param horizontal @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical
24542     */
24543    EAPI void          elm_ctxpopup_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
24544    /**
24545     * @brief Get the value of current ctxpopup object's orientation.
24546     *
24547     * @param obj Ctxpopup object
24548     * @return @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical mode (or errors)
24549     *
24550     * @see elm_ctxpopup_horizontal_set()
24551     */
24552    EAPI Eina_Bool     elm_ctxpopup_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24553    /**
24554     * @brief Add a new item to a ctxpopup object.
24555     *
24556     * @param obj Ctxpopup object
24557     * @param icon Icon to be set on new item
24558     * @param label The Label of the new item
24559     * @param func Convenience function called when item selected
24560     * @param data Data passed to @p func
24561     * @return A handle to the item added or @c NULL, on errors
24562     *
24563     * @warning Ctxpopup can't hold both an item list and a content at the same
24564     * time. When an item is added, any previous content will be removed.
24565     *
24566     * @see elm_ctxpopup_content_set()
24567     */
24568    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);
24569    /**
24570     * @brief Delete the given item in a ctxpopup object.
24571     *
24572     * @param item Ctxpopup item to be deleted
24573     *
24574     * @see elm_ctxpopup_item_append()
24575     */
24576    EAPI void          elm_ctxpopup_item_del(Elm_Ctxpopup_Item *it) EINA_ARG_NONNULL(1);
24577    /**
24578     * @brief Set the ctxpopup item's state as disabled or enabled.
24579     *
24580     * @param item Ctxpopup item to be enabled/disabled
24581     * @param disabled @c EINA_TRUE to disable it, @c EINA_FALSE to enable it
24582     *
24583     * When disabled the item is greyed out to indicate it's state.
24584     */
24585    EAPI void          elm_ctxpopup_item_disabled_set(Elm_Ctxpopup_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
24586    /**
24587     * @brief Get the ctxpopup item's disabled/enabled state.
24588     *
24589     * @param item Ctxpopup item to be enabled/disabled
24590     * @return disabled @c EINA_TRUE, if disabled, @c EINA_FALSE otherwise
24591     *
24592     * @see elm_ctxpopup_item_disabled_set()
24593     */
24594    EAPI Eina_Bool     elm_ctxpopup_item_disabled_get(const Elm_Ctxpopup_Item *item) EINA_ARG_NONNULL(1);
24595    /**
24596     * @brief Get the icon object for the given ctxpopup item.
24597     *
24598     * @param item Ctxpopup item
24599     * @return icon object or @c NULL, if the item does not have icon or an error
24600     * occurred
24601     *
24602     * @see elm_ctxpopup_item_append()
24603     * @see elm_ctxpopup_item_icon_set()
24604     */
24605    EAPI Evas_Object  *elm_ctxpopup_item_icon_get(const Elm_Ctxpopup_Item *item) EINA_ARG_NONNULL(1);
24606    /**
24607     * @brief Sets the side icon associated with the ctxpopup item
24608     *
24609     * @param item Ctxpopup item
24610     * @param icon Icon object to be set
24611     *
24612     * Once the icon object is set, a previously set one will be deleted.
24613     * @warning Setting the same icon for two items will cause the icon to
24614     * dissapear from the first item.
24615     *
24616     * @see elm_ctxpopup_item_append()
24617     */
24618    EAPI void          elm_ctxpopup_item_icon_set(Elm_Ctxpopup_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
24619    /**
24620     * @brief Get the label for the given ctxpopup item.
24621     *
24622     * @param item Ctxpopup item
24623     * @return label string or @c NULL, if the item does not have label or an
24624     * error occured
24625     *
24626     * @see elm_ctxpopup_item_append()
24627     * @see elm_ctxpopup_item_label_set()
24628     */
24629    EAPI const char   *elm_ctxpopup_item_label_get(const Elm_Ctxpopup_Item *item) EINA_ARG_NONNULL(1);
24630    /**
24631     * @brief (Re)set the label on the given ctxpopup item.
24632     *
24633     * @param item Ctxpopup item
24634     * @param label String to set as label
24635     */
24636    EAPI void          elm_ctxpopup_item_label_set(Elm_Ctxpopup_Item *item, const char *label) EINA_ARG_NONNULL(1);
24637    /**
24638     * @brief Set an elm widget as the content of the ctxpopup.
24639     *
24640     * @param obj Ctxpopup object
24641     * @param content Content to be swallowed
24642     *
24643     * If the content object is already set, a previous one will bedeleted. If
24644     * you want to keep that old content object, use the
24645     * elm_ctxpopup_content_unset() function.
24646     *
24647     * @deprecated use elm_object_content_set()
24648     *
24649     * @warning Ctxpopup can't hold both a item list and a content at the same
24650     * time. When a content is set, any previous items will be removed.
24651     */
24652    EINA_DEPRECATED EAPI void          elm_ctxpopup_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1, 2);
24653    /**
24654     * @brief Unset the ctxpopup content
24655     *
24656     * @param obj Ctxpopup object
24657     * @return The content that was being used
24658     *
24659     * Unparent and return the content object which was set for this widget.
24660     *
24661     * @deprecated use elm_object_content_unset()
24662     *
24663     * @see elm_ctxpopup_content_set()
24664     */
24665    EINA_DEPRECATED EAPI Evas_Object  *elm_ctxpopup_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24666    /**
24667     * @brief Set the direction priority of a ctxpopup.
24668     *
24669     * @param obj Ctxpopup object
24670     * @param first 1st priority of direction
24671     * @param second 2nd priority of direction
24672     * @param third 3th priority of direction
24673     * @param fourth 4th priority of direction
24674     *
24675     * This functions gives a chance to user to set the priority of ctxpopup
24676     * showing direction. This doesn't guarantee the ctxpopup will appear in the
24677     * requested direction.
24678     *
24679     * @see Elm_Ctxpopup_Direction
24680     */
24681    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);
24682    /**
24683     * @brief Get the direction priority of a ctxpopup.
24684     *
24685     * @param obj Ctxpopup object
24686     * @param first 1st priority of direction to be returned
24687     * @param second 2nd priority of direction to be returned
24688     * @param third 3th priority of direction to be returned
24689     * @param fourth 4th priority of direction to be returned
24690     *
24691     * @see elm_ctxpopup_direction_priority_set() for more information.
24692     */
24693    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);
24694    /**
24695     * @}
24696     */
24697
24698    /* transit */
24699    /**
24700     *
24701     * @defgroup Transit Transit
24702     * @ingroup Elementary
24703     *
24704     * Transit is designed to apply various animated transition effects to @c
24705     * Evas_Object, such like translation, rotation, etc. For using these
24706     * effects, create an @ref Elm_Transit and add the desired transition effects.
24707     *
24708     * Once the effects are added into transit, they will be automatically
24709     * managed (their callback will be called until the duration is ended, and
24710     * they will be deleted on completion).
24711     *
24712     * Example:
24713     * @code
24714     * Elm_Transit *trans = elm_transit_add();
24715     * elm_transit_object_add(trans, obj);
24716     * elm_transit_effect_translation_add(trans, 0, 0, 280, 280
24717     * elm_transit_duration_set(transit, 1);
24718     * elm_transit_auto_reverse_set(transit, EINA_TRUE);
24719     * elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
24720     * elm_transit_repeat_times_set(transit, 3);
24721     * @endcode
24722     *
24723     * Some transition effects are used to change the properties of objects. They
24724     * are:
24725     * @li @ref elm_transit_effect_translation_add
24726     * @li @ref elm_transit_effect_color_add
24727     * @li @ref elm_transit_effect_rotation_add
24728     * @li @ref elm_transit_effect_wipe_add
24729     * @li @ref elm_transit_effect_zoom_add
24730     * @li @ref elm_transit_effect_resizing_add
24731     *
24732     * Other transition effects are used to make one object disappear and another
24733     * object appear on its old place. These effects are:
24734     *
24735     * @li @ref elm_transit_effect_flip_add
24736     * @li @ref elm_transit_effect_resizable_flip_add
24737     * @li @ref elm_transit_effect_fade_add
24738     * @li @ref elm_transit_effect_blend_add
24739     *
24740     * It's also possible to make a transition chain with @ref
24741     * elm_transit_chain_transit_add.
24742     *
24743     * @warning We strongly recommend to use elm_transit just when edje can not do
24744     * the trick. Edje has more advantage than Elm_Transit, it has more flexibility and
24745     * animations can be manipulated inside the theme.
24746     *
24747     * List of examples:
24748     * @li @ref transit_example_01_explained
24749     * @li @ref transit_example_02_explained
24750     * @li @ref transit_example_03_c
24751     * @li @ref transit_example_04_c
24752     *
24753     * @{
24754     */
24755
24756    /**
24757     * @enum Elm_Transit_Tween_Mode
24758     *
24759     * The type of acceleration used in the transition.
24760     */
24761    typedef enum
24762      {
24763         ELM_TRANSIT_TWEEN_MODE_LINEAR, /**< Constant speed */
24764         ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL, /**< Starts slow, increase speed
24765                                              over time, then decrease again
24766                                              and stop slowly */
24767         ELM_TRANSIT_TWEEN_MODE_DECELERATE, /**< Starts fast and decrease
24768                                              speed over time */
24769         ELM_TRANSIT_TWEEN_MODE_ACCELERATE /**< Starts slow and increase speed
24770                                             over time */
24771      } Elm_Transit_Tween_Mode;
24772
24773    /**
24774     * @enum Elm_Transit_Effect_Flip_Axis
24775     *
24776     * The axis where flip effect should be applied.
24777     */
24778    typedef enum
24779      {
24780         ELM_TRANSIT_EFFECT_FLIP_AXIS_X, /**< Flip on X axis */
24781         ELM_TRANSIT_EFFECT_FLIP_AXIS_Y /**< Flip on Y axis */
24782      } Elm_Transit_Effect_Flip_Axis;
24783    /**
24784     * @enum Elm_Transit_Effect_Wipe_Dir
24785     *
24786     * The direction where the wipe effect should occur.
24787     */
24788    typedef enum
24789      {
24790         ELM_TRANSIT_EFFECT_WIPE_DIR_LEFT, /**< Wipe to the left */
24791         ELM_TRANSIT_EFFECT_WIPE_DIR_RIGHT, /**< Wipe to the right */
24792         ELM_TRANSIT_EFFECT_WIPE_DIR_UP, /**< Wipe up */
24793         ELM_TRANSIT_EFFECT_WIPE_DIR_DOWN /**< Wipe down */
24794      } Elm_Transit_Effect_Wipe_Dir;
24795    /** @enum Elm_Transit_Effect_Wipe_Type
24796     *
24797     * Whether the wipe effect should show or hide the object.
24798     */
24799    typedef enum
24800      {
24801         ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE, /**< Hide the object during the
24802                                              animation */
24803         ELM_TRANSIT_EFFECT_WIPE_TYPE_SHOW /**< Show the object during the
24804                                             animation */
24805      } Elm_Transit_Effect_Wipe_Type;
24806
24807    /**
24808     * @typedef Elm_Transit
24809     *
24810     * The Transit created with elm_transit_add(). This type has the information
24811     * about the objects which the transition will be applied, and the
24812     * transition effects that will be used. It also contains info about
24813     * duration, number of repetitions, auto-reverse, etc.
24814     */
24815    typedef struct _Elm_Transit Elm_Transit;
24816    typedef void Elm_Transit_Effect;
24817    /**
24818     * @typedef Elm_Transit_Effect_Transition_Cb
24819     *
24820     * Transition callback called for this effect on each transition iteration.
24821     */
24822    typedef void (*Elm_Transit_Effect_Transition_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit, double progress);
24823    /**
24824     * Elm_Transit_Effect_End_Cb
24825     *
24826     * Transition callback called for this effect when the transition is over.
24827     */
24828    typedef void (*Elm_Transit_Effect_End_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit);
24829
24830    /**
24831     * Elm_Transit_Del_Cb
24832     *
24833     * A callback called when the transit is deleted.
24834     */
24835    typedef void (*Elm_Transit_Del_Cb) (void *data, Elm_Transit *transit);
24836
24837    /**
24838     * Add new transit.
24839     *
24840     * @note Is not necessary to delete the transit object, it will be deleted at
24841     * the end of its operation.
24842     * @note The transit will start playing when the program enter in the main loop, is not
24843     * necessary to give a start to the transit.
24844     *
24845     * @return The transit object.
24846     *
24847     * @ingroup Transit
24848     */
24849    EAPI Elm_Transit                *elm_transit_add(void);
24850
24851    /**
24852     * Stops the animation and delete the @p transit object.
24853     *
24854     * Call this function if you wants to stop the animation before the duration
24855     * time. Make sure the @p transit object is still alive with
24856     * elm_transit_del_cb_set() function.
24857     * All added effects will be deleted, calling its repective data_free_cb
24858     * functions. The function setted by elm_transit_del_cb_set() will be called.
24859     *
24860     * @see elm_transit_del_cb_set()
24861     *
24862     * @param transit The transit object to be deleted.
24863     *
24864     * @ingroup Transit
24865     * @warning Just call this function if you are sure the transit is alive.
24866     */
24867    EAPI void                        elm_transit_del(Elm_Transit *transit) EINA_ARG_NONNULL(1);
24868
24869    /**
24870     * Add a new effect to the transit.
24871     *
24872     * @note The cb function and the data are the key to the effect. If you try to
24873     * add an already added effect, nothing is done.
24874     * @note After the first addition of an effect in @p transit, if its
24875     * effect list become empty again, the @p transit will be killed by
24876     * elm_transit_del(transit) function.
24877     *
24878     * Exemple:
24879     * @code
24880     * Elm_Transit *transit = elm_transit_add();
24881     * elm_transit_effect_add(transit,
24882     *                        elm_transit_effect_blend_op,
24883     *                        elm_transit_effect_blend_context_new(),
24884     *                        elm_transit_effect_blend_context_free);
24885     * @endcode
24886     *
24887     * @param transit The transit object.
24888     * @param transition_cb The operation function. It is called when the
24889     * animation begins, it is the function that actually performs the animation.
24890     * It is called with the @p data, @p transit and the time progression of the
24891     * animation (a double value between 0.0 and 1.0).
24892     * @param effect The context data of the effect.
24893     * @param end_cb The function to free the context data, it will be called
24894     * at the end of the effect, it must finalize the animation and free the
24895     * @p data.
24896     *
24897     * @ingroup Transit
24898     * @warning The transit free the context data at the and of the transition with
24899     * the data_free_cb function, do not use the context data in another transit.
24900     */
24901    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);
24902
24903    /**
24904     * Delete an added effect.
24905     *
24906     * This function will remove the effect from the @p transit, calling the
24907     * data_free_cb to free the @p data.
24908     *
24909     * @see elm_transit_effect_add()
24910     *
24911     * @note If the effect is not found, nothing is done.
24912     * @note If the effect list become empty, this function will call
24913     * elm_transit_del(transit), that is, it will kill the @p transit.
24914     *
24915     * @param transit The transit object.
24916     * @param transition_cb The operation function.
24917     * @param effect The context data of the effect.
24918     *
24919     * @ingroup Transit
24920     */
24921    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);
24922
24923    /**
24924     * Add new object to apply the effects.
24925     *
24926     * @note After the first addition of an object in @p transit, if its
24927     * object list become empty again, the @p transit will be killed by
24928     * elm_transit_del(transit) function.
24929     * @note If the @p obj belongs to another transit, the @p obj will be
24930     * removed from it and it will only belong to the @p transit. If the old
24931     * transit stays without objects, it will die.
24932     * @note When you add an object into the @p transit, its state from
24933     * evas_object_pass_events_get(obj) is saved, and it is applied when the
24934     * transit ends, if you change this state whith evas_object_pass_events_set()
24935     * after add the object, this state will change again when @p transit stops to
24936     * run.
24937     *
24938     * @param transit The transit object.
24939     * @param obj Object to be animated.
24940     *
24941     * @ingroup Transit
24942     * @warning It is not allowed to add a new object after transit begins to go.
24943     */
24944    EAPI void                        elm_transit_object_add(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
24945
24946    /**
24947     * Removes an added object from the transit.
24948     *
24949     * @note If the @p obj is not in the @p transit, nothing is done.
24950     * @note If the list become empty, this function will call
24951     * elm_transit_del(transit), that is, it will kill the @p transit.
24952     *
24953     * @param transit The transit object.
24954     * @param obj Object to be removed from @p transit.
24955     *
24956     * @ingroup Transit
24957     * @warning It is not allowed to remove objects after transit begins to go.
24958     */
24959    EAPI void                        elm_transit_object_remove(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
24960
24961    /**
24962     * Get the objects of the transit.
24963     *
24964     * @param transit The transit object.
24965     * @return a Eina_List with the objects from the transit.
24966     *
24967     * @ingroup Transit
24968     */
24969    EAPI const Eina_List            *elm_transit_objects_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
24970
24971    /**
24972     * Enable/disable keeping up the objects states.
24973     * If it is not kept, the objects states will be reset when transition ends.
24974     *
24975     * @note @p transit can not be NULL.
24976     * @note One state includes geometry, color, map data.
24977     *
24978     * @param transit The transit object.
24979     * @param state_keep Keeping or Non Keeping.
24980     *
24981     * @ingroup Transit
24982     */
24983    EAPI void                        elm_transit_objects_final_state_keep_set(Elm_Transit *transit, Eina_Bool state_keep) EINA_ARG_NONNULL(1);
24984
24985    /**
24986     * Get a value whether the objects states will be reset or not.
24987     *
24988     * @note @p transit can not be NULL
24989     *
24990     * @see elm_transit_objects_final_state_keep_set()
24991     *
24992     * @param transit The transit object.
24993     * @return EINA_TRUE means the states of the objects will be reset.
24994     * If @p transit is NULL, EINA_FALSE is returned
24995     *
24996     * @ingroup Transit
24997     */
24998    EAPI Eina_Bool                   elm_transit_objects_final_state_keep_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
24999
25000    /**
25001     * Set the event enabled when transit is operating.
25002     *
25003     * If @p enabled is EINA_TRUE, the objects of the transit will receives
25004     * events from mouse and keyboard during the animation.
25005     * @note When you add an object with elm_transit_object_add(), its state from
25006     * evas_object_pass_events_get(obj) is saved, and it is applied when the
25007     * transit ends, if you change this state with evas_object_pass_events_set()
25008     * after adding the object, this state will change again when @p transit stops
25009     * to run.
25010     *
25011     * @param transit The transit object.
25012     * @param enabled Events are received when enabled is @c EINA_TRUE, and
25013     * ignored otherwise.
25014     *
25015     * @ingroup Transit
25016     */
25017    EAPI void                        elm_transit_event_enabled_set(Elm_Transit *transit, Eina_Bool enabled) EINA_ARG_NONNULL(1);
25018
25019    /**
25020     * Get the value of event enabled status.
25021     *
25022     * @see elm_transit_event_enabled_set()
25023     *
25024     * @param transit The Transit object
25025     * @return EINA_TRUE, when event is enabled. If @p transit is NULL
25026     * EINA_FALSE is returned
25027     *
25028     * @ingroup Transit
25029     */
25030    EAPI Eina_Bool                   elm_transit_event_enabled_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25031
25032    /**
25033     * Set the user-callback function when the transit is deleted.
25034     *
25035     * @note Using this function twice will overwrite the first function setted.
25036     * @note the @p transit object will be deleted after call @p cb function.
25037     *
25038     * @param transit The transit object.
25039     * @param cb Callback function pointer. This function will be called before
25040     * the deletion of the transit.
25041     * @param data Callback funtion user data. It is the @p op parameter.
25042     *
25043     * @ingroup Transit
25044     */
25045    EAPI void                        elm_transit_del_cb_set(Elm_Transit *transit, Elm_Transit_Del_Cb cb, void *data) EINA_ARG_NONNULL(1);
25046
25047    /**
25048     * Set reverse effect automatically.
25049     *
25050     * If auto reverse is setted, after running the effects with the progress
25051     * parameter from 0 to 1, it will call the effecs again with the progress
25052     * from 1 to 0. The transit will last for a time iqual to (2 * duration * repeat),
25053     * where the duration was setted with the function elm_transit_add and
25054     * the repeat with the function elm_transit_repeat_times_set().
25055     *
25056     * @param transit The transit object.
25057     * @param reverse EINA_TRUE means the auto_reverse is on.
25058     *
25059     * @ingroup Transit
25060     */
25061    EAPI void                        elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse) EINA_ARG_NONNULL(1);
25062
25063    /**
25064     * Get if the auto reverse is on.
25065     *
25066     * @see elm_transit_auto_reverse_set()
25067     *
25068     * @param transit The transit object.
25069     * @return EINA_TRUE means auto reverse is on. If @p transit is NULL
25070     * EINA_FALSE is returned
25071     *
25072     * @ingroup Transit
25073     */
25074    EAPI Eina_Bool                   elm_transit_auto_reverse_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25075
25076    /**
25077     * Set the transit repeat count. Effect will be repeated by repeat count.
25078     *
25079     * This function sets the number of repetition the transit will run after
25080     * the first one, that is, if @p repeat is 1, the transit will run 2 times.
25081     * If the @p repeat is a negative number, it will repeat infinite times.
25082     *
25083     * @note If this function is called during the transit execution, the transit
25084     * will run @p repeat times, ignoring the times it already performed.
25085     *
25086     * @param transit The transit object
25087     * @param repeat Repeat count
25088     *
25089     * @ingroup Transit
25090     */
25091    EAPI void                        elm_transit_repeat_times_set(Elm_Transit *transit, int repeat) EINA_ARG_NONNULL(1);
25092
25093    /**
25094     * Get the transit repeat count.
25095     *
25096     * @see elm_transit_repeat_times_set()
25097     *
25098     * @param transit The Transit object.
25099     * @return The repeat count. If @p transit is NULL
25100     * 0 is returned
25101     *
25102     * @ingroup Transit
25103     */
25104    EAPI int                         elm_transit_repeat_times_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25105
25106    /**
25107     * Set the transit animation acceleration type.
25108     *
25109     * This function sets the tween mode of the transit that can be:
25110     * ELM_TRANSIT_TWEEN_MODE_LINEAR - The default mode.
25111     * ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL - Starts in accelerate mode and ends decelerating.
25112     * ELM_TRANSIT_TWEEN_MODE_DECELERATE - The animation will be slowed over time.
25113     * ELM_TRANSIT_TWEEN_MODE_ACCELERATE - The animation will accelerate over time.
25114     *
25115     * @param transit The transit object.
25116     * @param tween_mode The tween type.
25117     *
25118     * @ingroup Transit
25119     */
25120    EAPI void                        elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mode) EINA_ARG_NONNULL(1);
25121
25122    /**
25123     * Get the transit animation acceleration type.
25124     *
25125     * @note @p transit can not be NULL
25126     *
25127     * @param transit The transit object.
25128     * @return The tween type. If @p transit is NULL
25129     * ELM_TRANSIT_TWEEN_MODE_LINEAR is returned.
25130     *
25131     * @ingroup Transit
25132     */
25133    EAPI Elm_Transit_Tween_Mode      elm_transit_tween_mode_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25134
25135    /**
25136     * Set the transit animation time
25137     *
25138     * @note @p transit can not be NULL
25139     *
25140     * @param transit The transit object.
25141     * @param duration The animation time.
25142     *
25143     * @ingroup Transit
25144     */
25145    EAPI void                        elm_transit_duration_set(Elm_Transit *transit, double duration) EINA_ARG_NONNULL(1);
25146
25147    /**
25148     * Get the transit animation time
25149     *
25150     * @note @p transit can not be NULL
25151     *
25152     * @param transit The transit object.
25153     *
25154     * @return The transit animation time.
25155     *
25156     * @ingroup Transit
25157     */
25158    EAPI double                      elm_transit_duration_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25159
25160    /**
25161     * Starts the transition.
25162     * Once this API is called, the transit begins to measure the time.
25163     *
25164     * @note @p transit can not be NULL
25165     *
25166     * @param transit The transit object.
25167     *
25168     * @ingroup Transit
25169     */
25170    EAPI void                        elm_transit_go(Elm_Transit *transit) EINA_ARG_NONNULL(1);
25171
25172    /**
25173     * Pause/Resume the transition.
25174     *
25175     * If you call elm_transit_go again, the transit will be started from the
25176     * beginning, and will be unpaused.
25177     *
25178     * @note @p transit can not be NULL
25179     *
25180     * @param transit The transit object.
25181     * @param paused Whether the transition should be paused or not.
25182     *
25183     * @ingroup Transit
25184     */
25185    EAPI void                        elm_transit_paused_set(Elm_Transit *transit, Eina_Bool paused) EINA_ARG_NONNULL(1);
25186
25187    /**
25188     * Get the value of paused status.
25189     *
25190     * @see elm_transit_paused_set()
25191     *
25192     * @note @p transit can not be NULL
25193     *
25194     * @param transit The transit object.
25195     * @return EINA_TRUE means transition is paused. If @p transit is NULL
25196     * EINA_FALSE is returned
25197     *
25198     * @ingroup Transit
25199     */
25200    EAPI Eina_Bool                   elm_transit_paused_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25201
25202    /**
25203     * Get the time progression of the animation (a double value between 0.0 and 1.0).
25204     *
25205     * The value returned is a fraction (current time / total time). It
25206     * represents the progression position relative to the total.
25207     *
25208     * @note @p transit can not be NULL
25209     *
25210     * @param transit The transit object.
25211     *
25212     * @return The time progression value. If @p transit is NULL
25213     * 0 is returned
25214     *
25215     * @ingroup Transit
25216     */
25217    EAPI double                      elm_transit_progress_value_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25218
25219    /**
25220     * Makes the chain relationship between two transits.
25221     *
25222     * @note @p transit can not be NULL. Transit would have multiple chain transits.
25223     * @note @p chain_transit can not be NULL. Chain transits could be chained to the only one transit.
25224     *
25225     * @param transit The transit object.
25226     * @param chain_transit The chain transit object. This transit will be operated
25227     *        after transit is done.
25228     *
25229     * This function adds @p chain_transit transition to a chain after the @p
25230     * transit, and will be started as soon as @p transit ends. See @ref
25231     * transit_example_02_explained for a full example.
25232     *
25233     * @ingroup Transit
25234     */
25235    EAPI void                        elm_transit_chain_transit_add(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1, 2);
25236
25237    /**
25238     * Cut off the chain relationship between two transits.
25239     *
25240     * @note @p transit can not be NULL. Transit would have the chain relationship with @p chain transit.
25241     * @note @p chain_transit can not be NULL. Chain transits should be chained to the @p transit.
25242     *
25243     * @param transit The transit object.
25244     * @param chain_transit The chain transit object.
25245     *
25246     * This function remove the @p chain_transit transition from the @p transit.
25247     *
25248     * @ingroup Transit
25249     */
25250    EAPI void                        elm_transit_chain_transit_del(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1,2);
25251
25252    /**
25253     * Get the current chain transit list.
25254     *
25255     * @note @p transit can not be NULL.
25256     *
25257     * @param transit The transit object.
25258     * @return chain transit list.
25259     *
25260     * @ingroup Transit
25261     */
25262    EAPI Eina_List                  *elm_transit_chain_transits_get(const Elm_Transit *transit);
25263
25264    /**
25265     * Add the Resizing Effect to Elm_Transit.
25266     *
25267     * @note This API is one of the facades. It creates resizing effect context
25268     * and add it's required APIs to elm_transit_effect_add.
25269     *
25270     * @see elm_transit_effect_add()
25271     *
25272     * @param transit Transit object.
25273     * @param from_w Object width size when effect begins.
25274     * @param from_h Object height size when effect begins.
25275     * @param to_w Object width size when effect ends.
25276     * @param to_h Object height size when effect ends.
25277     * @return Resizing effect context data.
25278     *
25279     * @ingroup Transit
25280     */
25281    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);
25282
25283    /**
25284     * Add the Translation Effect to Elm_Transit.
25285     *
25286     * @note This API is one of the facades. It creates translation effect context
25287     * and add it's required APIs to elm_transit_effect_add.
25288     *
25289     * @see elm_transit_effect_add()
25290     *
25291     * @param transit Transit object.
25292     * @param from_dx X Position variation when effect begins.
25293     * @param from_dy Y Position variation when effect begins.
25294     * @param to_dx X Position variation when effect ends.
25295     * @param to_dy Y Position variation when effect ends.
25296     * @return Translation effect context data.
25297     *
25298     * @ingroup Transit
25299     * @warning It is highly recommended just create a transit with this effect when
25300     * the window that the objects of the transit belongs has already been created.
25301     * This is because this effect needs the geometry information about the objects,
25302     * and if the window was not created yet, it can get a wrong information.
25303     */
25304    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);
25305
25306    /**
25307     * Add the Zoom Effect to Elm_Transit.
25308     *
25309     * @note This API is one of the facades. It creates zoom effect context
25310     * and add it's required APIs to elm_transit_effect_add.
25311     *
25312     * @see elm_transit_effect_add()
25313     *
25314     * @param transit Transit object.
25315     * @param from_rate Scale rate when effect begins (1 is current rate).
25316     * @param to_rate Scale rate when effect ends.
25317     * @return Zoom effect context data.
25318     *
25319     * @ingroup Transit
25320     * @warning It is highly recommended just create a transit with this effect when
25321     * the window that the objects of the transit belongs has already been created.
25322     * This is because this effect needs the geometry information about the objects,
25323     * and if the window was not created yet, it can get a wrong information.
25324     */
25325    EAPI Elm_Transit_Effect *elm_transit_effect_zoom_add(Elm_Transit *transit, float from_rate, float to_rate);
25326
25327    /**
25328     * Add the Flip Effect to Elm_Transit.
25329     *
25330     * @note This API is one of the facades. It creates flip effect context
25331     * and add it's required APIs to elm_transit_effect_add.
25332     * @note This effect is applied to each pair of objects in the order they are listed
25333     * in the transit list of objects. The first object in the pair will be the
25334     * "front" object and the second will be the "back" object.
25335     *
25336     * @see elm_transit_effect_add()
25337     *
25338     * @param transit Transit object.
25339     * @param axis Flipping Axis(X or Y).
25340     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
25341     * @return Flip effect context data.
25342     *
25343     * @ingroup Transit
25344     * @warning It is highly recommended just create a transit with this effect when
25345     * the window that the objects of the transit belongs has already been created.
25346     * This is because this effect needs the geometry information about the objects,
25347     * and if the window was not created yet, it can get a wrong information.
25348     */
25349    EAPI Elm_Transit_Effect *elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
25350
25351    /**
25352     * Add the Resizable Flip Effect to Elm_Transit.
25353     *
25354     * @note This API is one of the facades. It creates resizable flip effect context
25355     * and add it's required APIs to elm_transit_effect_add.
25356     * @note This effect is applied to each pair of objects in the order they are listed
25357     * in the transit list of objects. The first object in the pair will be the
25358     * "front" object and the second will be the "back" object.
25359     *
25360     * @see elm_transit_effect_add()
25361     *
25362     * @param transit Transit object.
25363     * @param axis Flipping Axis(X or Y).
25364     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
25365     * @return Resizable flip effect context data.
25366     *
25367     * @ingroup Transit
25368     * @warning It is highly recommended just create a transit with this effect when
25369     * the window that the objects of the transit belongs has already been created.
25370     * This is because this effect needs the geometry information about the objects,
25371     * and if the window was not created yet, it can get a wrong information.
25372     */
25373    EAPI Elm_Transit_Effect *elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
25374
25375    /**
25376     * Add the Wipe Effect to Elm_Transit.
25377     *
25378     * @note This API is one of the facades. It creates wipe effect context
25379     * and add it's required APIs to elm_transit_effect_add.
25380     *
25381     * @see elm_transit_effect_add()
25382     *
25383     * @param transit Transit object.
25384     * @param type Wipe type. Hide or show.
25385     * @param dir Wipe Direction.
25386     * @return Wipe effect context data.
25387     *
25388     * @ingroup Transit
25389     * @warning It is highly recommended just create a transit with this effect when
25390     * the window that the objects of the transit belongs has already been created.
25391     * This is because this effect needs the geometry information about the objects,
25392     * and if the window was not created yet, it can get a wrong information.
25393     */
25394    EAPI Elm_Transit_Effect *elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Transit_Effect_Wipe_Type type, Elm_Transit_Effect_Wipe_Dir dir);
25395
25396    /**
25397     * Add the Color Effect to Elm_Transit.
25398     *
25399     * @note This API is one of the facades. It creates color effect context
25400     * and add it's required APIs to elm_transit_effect_add.
25401     *
25402     * @see elm_transit_effect_add()
25403     *
25404     * @param transit        Transit object.
25405     * @param  from_r        RGB R when effect begins.
25406     * @param  from_g        RGB G when effect begins.
25407     * @param  from_b        RGB B when effect begins.
25408     * @param  from_a        RGB A when effect begins.
25409     * @param  to_r          RGB R when effect ends.
25410     * @param  to_g          RGB G when effect ends.
25411     * @param  to_b          RGB B when effect ends.
25412     * @param  to_a          RGB A when effect ends.
25413     * @return               Color effect context data.
25414     *
25415     * @ingroup Transit
25416     */
25417    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);
25418
25419    /**
25420     * Add the Fade Effect to Elm_Transit.
25421     *
25422     * @note This API is one of the facades. It creates fade effect context
25423     * and add it's required APIs to elm_transit_effect_add.
25424     * @note This effect is applied to each pair of objects in the order they are listed
25425     * in the transit list of objects. The first object in the pair will be the
25426     * "before" object and the second will be the "after" object.
25427     *
25428     * @see elm_transit_effect_add()
25429     *
25430     * @param transit Transit object.
25431     * @return Fade effect context data.
25432     *
25433     * @ingroup Transit
25434     * @warning It is highly recommended just create a transit with this effect when
25435     * the window that the objects of the transit belongs has already been created.
25436     * This is because this effect needs the color information about the objects,
25437     * and if the window was not created yet, it can get a wrong information.
25438     */
25439    EAPI Elm_Transit_Effect *elm_transit_effect_fade_add(Elm_Transit *transit);
25440
25441    /**
25442     * Add the Blend Effect to Elm_Transit.
25443     *
25444     * @note This API is one of the facades. It creates blend effect context
25445     * and add it's required APIs to elm_transit_effect_add.
25446     * @note This effect is applied to each pair of objects in the order they are listed
25447     * in the transit list of objects. The first object in the pair will be the
25448     * "before" object and the second will be the "after" object.
25449     *
25450     * @see elm_transit_effect_add()
25451     *
25452     * @param transit Transit object.
25453     * @return Blend effect context data.
25454     *
25455     * @ingroup Transit
25456     * @warning It is highly recommended just create a transit with this effect when
25457     * the window that the objects of the transit belongs has already been created.
25458     * This is because this effect needs the color information about the objects,
25459     * and if the window was not created yet, it can get a wrong information.
25460     */
25461    EAPI Elm_Transit_Effect *elm_transit_effect_blend_add(Elm_Transit *transit);
25462
25463    /**
25464     * Add the Rotation Effect to Elm_Transit.
25465     *
25466     * @note This API is one of the facades. It creates rotation effect context
25467     * and add it's required APIs to elm_transit_effect_add.
25468     *
25469     * @see elm_transit_effect_add()
25470     *
25471     * @param transit Transit object.
25472     * @param from_degree Degree when effect begins.
25473     * @param to_degree Degree when effect is ends.
25474     * @return Rotation effect context data.
25475     *
25476     * @ingroup Transit
25477     * @warning It is highly recommended just create a transit with this effect when
25478     * the window that the objects of the transit belongs has already been created.
25479     * This is because this effect needs the geometry information about the objects,
25480     * and if the window was not created yet, it can get a wrong information.
25481     */
25482    EAPI Elm_Transit_Effect *elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float to_degree);
25483
25484    /**
25485     * Add the ImageAnimation Effect to Elm_Transit.
25486     *
25487     * @note This API is one of the facades. It creates image animation effect context
25488     * and add it's required APIs to elm_transit_effect_add.
25489     * The @p images parameter is a list images paths. This list and
25490     * its contents will be deleted at the end of the effect by
25491     * elm_transit_effect_image_animation_context_free() function.
25492     *
25493     * Example:
25494     * @code
25495     * char buf[PATH_MAX];
25496     * Eina_List *images = NULL;
25497     * Elm_Transit *transi = elm_transit_add();
25498     *
25499     * snprintf(buf, sizeof(buf), "%s/images/icon_11.png", PACKAGE_DATA_DIR);
25500     * images = eina_list_append(images, eina_stringshare_add(buf));
25501     *
25502     * snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
25503     * images = eina_list_append(images, eina_stringshare_add(buf));
25504     * elm_transit_effect_image_animation_add(transi, images);
25505     *
25506     * @endcode
25507     *
25508     * @see elm_transit_effect_add()
25509     *
25510     * @param transit Transit object.
25511     * @param images Eina_List of images file paths. This list and
25512     * its contents will be deleted at the end of the effect by
25513     * elm_transit_effect_image_animation_context_free() function.
25514     * @return Image Animation effect context data.
25515     *
25516     * @ingroup Transit
25517     */
25518    EAPI Elm_Transit_Effect *elm_transit_effect_image_animation_add(Elm_Transit *transit, Eina_List *images);
25519    /**
25520     * @}
25521     */
25522
25523   typedef struct _Elm_Store                      Elm_Store;
25524   typedef struct _Elm_Store_Filesystem           Elm_Store_Filesystem;
25525   typedef struct _Elm_Store_Item                 Elm_Store_Item;
25526   typedef struct _Elm_Store_Item_Filesystem      Elm_Store_Item_Filesystem;
25527   typedef struct _Elm_Store_Item_Info            Elm_Store_Item_Info;
25528   typedef struct _Elm_Store_Item_Info_Filesystem Elm_Store_Item_Info_Filesystem;
25529   typedef struct _Elm_Store_Item_Mapping         Elm_Store_Item_Mapping;
25530   typedef struct _Elm_Store_Item_Mapping_Empty   Elm_Store_Item_Mapping_Empty;
25531   typedef struct _Elm_Store_Item_Mapping_Icon    Elm_Store_Item_Mapping_Icon;
25532   typedef struct _Elm_Store_Item_Mapping_Photo   Elm_Store_Item_Mapping_Photo;
25533   typedef struct _Elm_Store_Item_Mapping_Custom  Elm_Store_Item_Mapping_Custom;
25534
25535   typedef Eina_Bool (*Elm_Store_Item_List_Cb) (void *data, Elm_Store_Item_Info *info);
25536   typedef void      (*Elm_Store_Item_Fetch_Cb) (void *data, Elm_Store_Item *sti);
25537   typedef void      (*Elm_Store_Item_Unfetch_Cb) (void *data, Elm_Store_Item *sti);
25538   typedef void     *(*Elm_Store_Item_Mapping_Cb) (void *data, Elm_Store_Item *sti, const char *part);
25539
25540   typedef enum
25541     {
25542        ELM_STORE_ITEM_MAPPING_NONE = 0,
25543        ELM_STORE_ITEM_MAPPING_LABEL, // const char * -> label
25544        ELM_STORE_ITEM_MAPPING_STATE, // Eina_Bool -> state
25545        ELM_STORE_ITEM_MAPPING_ICON, // char * -> icon path
25546        ELM_STORE_ITEM_MAPPING_PHOTO, // char * -> photo path
25547        ELM_STORE_ITEM_MAPPING_CUSTOM, // item->custom(it->data, it, part) -> void * (-> any)
25548        // can add more here as needed by common apps
25549        ELM_STORE_ITEM_MAPPING_LAST
25550     } Elm_Store_Item_Mapping_Type;
25551
25552   struct _Elm_Store_Item_Mapping_Icon
25553     {
25554        // FIXME: allow edje file icons
25555        int                   w, h;
25556        Elm_Icon_Lookup_Order lookup_order;
25557        Eina_Bool             standard_name : 1;
25558        Eina_Bool             no_scale : 1;
25559        Eina_Bool             smooth : 1;
25560        Eina_Bool             scale_up : 1;
25561        Eina_Bool             scale_down : 1;
25562     };
25563
25564   struct _Elm_Store_Item_Mapping_Empty
25565     {
25566        Eina_Bool             dummy;
25567     };
25568
25569   struct _Elm_Store_Item_Mapping_Photo
25570     {
25571        int                   size;
25572     };
25573
25574   struct _Elm_Store_Item_Mapping_Custom
25575     {
25576        Elm_Store_Item_Mapping_Cb func;
25577     };
25578
25579   struct _Elm_Store_Item_Mapping
25580     {
25581        Elm_Store_Item_Mapping_Type     type;
25582        const char                     *part;
25583        int                             offset;
25584        union
25585          {
25586             Elm_Store_Item_Mapping_Empty  empty;
25587             Elm_Store_Item_Mapping_Icon   icon;
25588             Elm_Store_Item_Mapping_Photo  photo;
25589             Elm_Store_Item_Mapping_Custom custom;
25590             // add more types here
25591          } details;
25592     };
25593
25594   struct _Elm_Store_Item_Info
25595     {
25596       Elm_Genlist_Item_Class       *item_class;
25597       const Elm_Store_Item_Mapping *mapping;
25598       void                         *data;
25599       char                         *sort_id;
25600     };
25601
25602   struct _Elm_Store_Item_Info_Filesystem
25603     {
25604       Elm_Store_Item_Info  base;
25605       char                *path;
25606     };
25607
25608 #define ELM_STORE_ITEM_MAPPING_END { ELM_STORE_ITEM_MAPPING_NONE, NULL, 0, { .empty = { EINA_TRUE } } }
25609 #define ELM_STORE_ITEM_MAPPING_OFFSET(st, it) offsetof(st, it)
25610
25611   EAPI void                    elm_store_free(Elm_Store *st);
25612
25613   EAPI Elm_Store              *elm_store_filesystem_new(void);
25614   EAPI void                    elm_store_filesystem_directory_set(Elm_Store *st, const char *dir) EINA_ARG_NONNULL(1);
25615   EAPI const char             *elm_store_filesystem_directory_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
25616   EAPI const char             *elm_store_item_filesystem_path_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
25617
25618   EAPI void                    elm_store_target_genlist_set(Elm_Store *st, Evas_Object *obj) EINA_ARG_NONNULL(1);
25619
25620   EAPI void                    elm_store_cache_set(Elm_Store *st, int max) EINA_ARG_NONNULL(1);
25621   EAPI int                     elm_store_cache_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
25622   EAPI void                    elm_store_list_func_set(Elm_Store *st, Elm_Store_Item_List_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
25623   EAPI void                    elm_store_fetch_func_set(Elm_Store *st, Elm_Store_Item_Fetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
25624   EAPI void                    elm_store_fetch_thread_set(Elm_Store *st, Eina_Bool use_thread) EINA_ARG_NONNULL(1);
25625   EAPI Eina_Bool               elm_store_fetch_thread_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
25626
25627   EAPI void                    elm_store_unfetch_func_set(Elm_Store *st, Elm_Store_Item_Unfetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
25628   EAPI void                    elm_store_sorted_set(Elm_Store *st, Eina_Bool sorted) EINA_ARG_NONNULL(1);
25629   EAPI Eina_Bool               elm_store_sorted_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
25630   EAPI void                    elm_store_item_data_set(Elm_Store_Item *sti, void *data) EINA_ARG_NONNULL(1);
25631   EAPI void                   *elm_store_item_data_get(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
25632   EAPI const Elm_Store        *elm_store_item_store_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
25633   EAPI const Elm_Genlist_Item *elm_store_item_genlist_item_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
25634
25635    /**
25636     * @defgroup SegmentControl SegmentControl
25637     * @ingroup Elementary
25638     *
25639     * @image html img/widget/segment_control/preview-00.png
25640     * @image latex img/widget/segment_control/preview-00.eps width=\textwidth
25641     *
25642     * @image html img/segment_control.png
25643     * @image latex img/segment_control.eps width=\textwidth
25644     *
25645     * Segment control widget is a horizontal control made of multiple segment
25646     * items, each segment item functioning similar to discrete two state button.
25647     * A segment control groups the items together and provides compact
25648     * single button with multiple equal size segments.
25649     *
25650     * Segment item size is determined by base widget
25651     * size and the number of items added.
25652     * Only one segment item can be at selected state. A segment item can display
25653     * combination of Text and any Evas_Object like Images or other widget.
25654     *
25655     * Smart callbacks one can listen to:
25656     * - "changed" - When the user clicks on a segment item which is not
25657     *   previously selected and get selected. The event_info parameter is the
25658     *   segment item index.
25659     *
25660     * Available styles for it:
25661     * - @c "default"
25662     *
25663     * Here is an example on its usage:
25664     * @li @ref segment_control_example
25665     */
25666
25667    /**
25668     * @addtogroup SegmentControl
25669     * @{
25670     */
25671
25672    typedef struct _Elm_Segment_Item Elm_Segment_Item; /**< Item handle for a segment control widget. */
25673
25674    /**
25675     * Add a new segment control widget to the given parent Elementary
25676     * (container) object.
25677     *
25678     * @param parent The parent object.
25679     * @return a new segment control widget handle or @c NULL, on errors.
25680     *
25681     * This function inserts a new segment control widget on the canvas.
25682     *
25683     * @ingroup SegmentControl
25684     */
25685    EAPI Evas_Object      *elm_segment_control_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25686
25687    /**
25688     * Append a new item to the segment control object.
25689     *
25690     * @param obj The segment control object.
25691     * @param icon The icon object to use for the left side of the item. An
25692     * icon can be any Evas object, but usually it is an icon created
25693     * with elm_icon_add().
25694     * @param label The label of the item.
25695     *        Note that, NULL is different from empty string "".
25696     * @return The created item or @c NULL upon failure.
25697     *
25698     * A new item will be created and appended to the segment control, i.e., will
25699     * be set as @b last item.
25700     *
25701     * If it should be inserted at another position,
25702     * elm_segment_control_item_insert_at() should be used instead.
25703     *
25704     * Items created with this function can be deleted with function
25705     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
25706     *
25707     * @note @p label set to @c NULL is different from empty string "".
25708     * If an item
25709     * only has icon, it will be displayed bigger and centered. If it has
25710     * icon and label, even that an empty string, icon will be smaller and
25711     * positioned at left.
25712     *
25713     * Simple example:
25714     * @code
25715     * sc = elm_segment_control_add(win);
25716     * ic = elm_icon_add(win);
25717     * elm_icon_file_set(ic, "path/to/image", NULL);
25718     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
25719     * elm_segment_control_item_add(sc, ic, "label");
25720     * evas_object_show(sc);
25721     * @endcode
25722     *
25723     * @see elm_segment_control_item_insert_at()
25724     * @see elm_segment_control_item_del()
25725     *
25726     * @ingroup SegmentControl
25727     */
25728    EAPI Elm_Segment_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label) EINA_ARG_NONNULL(1);
25729
25730    /**
25731     * Insert a new item to the segment control object at specified position.
25732     *
25733     * @param obj The segment control object.
25734     * @param icon The icon object to use for the left side of the item. An
25735     * icon can be any Evas object, but usually it is an icon created
25736     * with elm_icon_add().
25737     * @param label The label of the item.
25738     * @param index Item position. Value should be between 0 and items count.
25739     * @return The created item or @c NULL upon failure.
25740
25741     * Index values must be between @c 0, when item will be prepended to
25742     * segment control, and items count, that can be get with
25743     * elm_segment_control_item_count_get(), case when item will be appended
25744     * to segment control, just like elm_segment_control_item_add().
25745     *
25746     * Items created with this function can be deleted with function
25747     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
25748     *
25749     * @note @p label set to @c NULL is different from empty string "".
25750     * If an item
25751     * only has icon, it will be displayed bigger and centered. If it has
25752     * icon and label, even that an empty string, icon will be smaller and
25753     * positioned at left.
25754     *
25755     * @see elm_segment_control_item_add()
25756     * @see elm_segment_control_count_get()
25757     * @see elm_segment_control_item_del()
25758     *
25759     * @ingroup SegmentControl
25760     */
25761    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);
25762
25763    /**
25764     * Remove a segment control item from its parent, deleting it.
25765     *
25766     * @param it The item to be removed.
25767     *
25768     * Items can be added with elm_segment_control_item_add() or
25769     * elm_segment_control_item_insert_at().
25770     *
25771     * @ingroup SegmentControl
25772     */
25773    EAPI void              elm_segment_control_item_del(Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
25774
25775    /**
25776     * Remove a segment control item at given index from its parent,
25777     * deleting it.
25778     *
25779     * @param obj The segment control object.
25780     * @param index The position of the segment control item to be deleted.
25781     *
25782     * Items can be added with elm_segment_control_item_add() or
25783     * elm_segment_control_item_insert_at().
25784     *
25785     * @ingroup SegmentControl
25786     */
25787    EAPI void              elm_segment_control_item_del_at(Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
25788
25789    /**
25790     * Get the Segment items count from segment control.
25791     *
25792     * @param obj The segment control object.
25793     * @return Segment items count.
25794     *
25795     * It will just return the number of items added to segment control @p obj.
25796     *
25797     * @ingroup SegmentControl
25798     */
25799    EAPI int               elm_segment_control_item_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25800
25801    /**
25802     * Get the item placed at specified index.
25803     *
25804     * @param obj The segment control object.
25805     * @param index The index of the segment item.
25806     * @return The segment control item or @c NULL on failure.
25807     *
25808     * Index is the position of an item in segment control widget. Its
25809     * range is from @c 0 to <tt> count - 1 </tt>.
25810     * Count is the number of items, that can be get with
25811     * elm_segment_control_item_count_get().
25812     *
25813     * @ingroup SegmentControl
25814     */
25815    EAPI Elm_Segment_Item *elm_segment_control_item_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
25816
25817    /**
25818     * Get the label of item.
25819     *
25820     * @param obj The segment control object.
25821     * @param index The index of the segment item.
25822     * @return The label of the item at @p index.
25823     *
25824     * The return value is a pointer to the label associated to the item when
25825     * it was created, with function elm_segment_control_item_add(), or later
25826     * with function elm_segment_control_item_label_set. If no label
25827     * was passed as argument, it will return @c NULL.
25828     *
25829     * @see elm_segment_control_item_label_set() for more details.
25830     * @see elm_segment_control_item_add()
25831     *
25832     * @ingroup SegmentControl
25833     */
25834    EAPI const char       *elm_segment_control_item_label_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
25835
25836    /**
25837     * Set the label of item.
25838     *
25839     * @param it The item of segment control.
25840     * @param text The label of item.
25841     *
25842     * The label to be displayed by the item.
25843     * Label will be at right of the icon (if set).
25844     *
25845     * If a label was passed as argument on item creation, with function
25846     * elm_control_segment_item_add(), it will be already
25847     * displayed by the item.
25848     *
25849     * @see elm_segment_control_item_label_get()
25850     * @see elm_segment_control_item_add()
25851     *
25852     * @ingroup SegmentControl
25853     */
25854    EAPI void              elm_segment_control_item_label_set(Elm_Segment_Item* it, const char* label) EINA_ARG_NONNULL(1);
25855
25856    /**
25857     * Get the icon associated to the item.
25858     *
25859     * @param obj The segment control object.
25860     * @param index The index of the segment item.
25861     * @return The left side icon associated to the item at @p index.
25862     *
25863     * The return value is a pointer to the icon associated to the item when
25864     * it was created, with function elm_segment_control_item_add(), or later
25865     * with function elm_segment_control_item_icon_set(). If no icon
25866     * was passed as argument, it will return @c NULL.
25867     *
25868     * @see elm_segment_control_item_add()
25869     * @see elm_segment_control_item_icon_set()
25870     *
25871     * @ingroup SegmentControl
25872     */
25873    EAPI Evas_Object      *elm_segment_control_item_icon_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
25874
25875    /**
25876     * Set the icon associated to the item.
25877     *
25878     * @param it The segment control item.
25879     * @param icon The icon object to associate with @p it.
25880     *
25881     * The icon object to use at left side of the item. An
25882     * icon can be any Evas object, but usually it is an icon created
25883     * with elm_icon_add().
25884     *
25885     * Once the icon object is set, a previously set one will be deleted.
25886     * @warning Setting the same icon for two items will cause the icon to
25887     * dissapear from the first item.
25888     *
25889     * If an icon was passed as argument on item creation, with function
25890     * elm_segment_control_item_add(), it will be already
25891     * associated to the item.
25892     *
25893     * @see elm_segment_control_item_add()
25894     * @see elm_segment_control_item_icon_get()
25895     *
25896     * @ingroup SegmentControl
25897     */
25898    EAPI void              elm_segment_control_item_icon_set(Elm_Segment_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
25899
25900    /**
25901     * Get the index of an item.
25902     *
25903     * @param it The segment control item.
25904     * @return The position of item in segment control widget.
25905     *
25906     * Index is the position of an item in segment control widget. Its
25907     * range is from @c 0 to <tt> count - 1 </tt>.
25908     * Count is the number of items, that can be get with
25909     * elm_segment_control_item_count_get().
25910     *
25911     * @ingroup SegmentControl
25912     */
25913    EAPI int               elm_segment_control_item_index_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
25914
25915    /**
25916     * Get the base object of the item.
25917     *
25918     * @param it The segment control item.
25919     * @return The base object associated with @p it.
25920     *
25921     * Base object is the @c Evas_Object that represents that item.
25922     *
25923     * @ingroup SegmentControl
25924     */
25925    EAPI Evas_Object      *elm_segment_control_item_object_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
25926
25927    /**
25928     * Get the selected item.
25929     *
25930     * @param obj The segment control object.
25931     * @return The selected item or @c NULL if none of segment items is
25932     * selected.
25933     *
25934     * The selected item can be unselected with function
25935     * elm_segment_control_item_selected_set().
25936     *
25937     * The selected item always will be highlighted on segment control.
25938     *
25939     * @ingroup SegmentControl
25940     */
25941    EAPI Elm_Segment_Item *elm_segment_control_item_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25942
25943    /**
25944     * Set the selected state of an item.
25945     *
25946     * @param it The segment control item
25947     * @param select The selected state
25948     *
25949     * This sets the selected state of the given item @p it.
25950     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
25951     *
25952     * If a new item is selected the previosly selected will be unselected.
25953     * Previoulsy selected item can be get with function
25954     * elm_segment_control_item_selected_get().
25955     *
25956     * The selected item always will be highlighted on segment control.
25957     *
25958     * @see elm_segment_control_item_selected_get()
25959     *
25960     * @ingroup SegmentControl
25961     */
25962    EAPI void              elm_segment_control_item_selected_set(Elm_Segment_Item *it, Eina_Bool select) EINA_ARG_NONNULL(1);
25963
25964    /**
25965     * @}
25966     */
25967
25968    /**
25969     * @defgroup Grid Grid
25970     *
25971     * The grid is a grid layout widget that lays out a series of children as a
25972     * fixed "grid" of widgets using a given percentage of the grid width and
25973     * height each using the child object.
25974     *
25975     * The Grid uses a "Virtual resolution" that is stretched to fill the grid
25976     * widgets size itself. The default is 100 x 100, so that means the
25977     * position and sizes of children will effectively be percentages (0 to 100)
25978     * of the width or height of the grid widget
25979     *
25980     * @{
25981     */
25982
25983    /**
25984     * Add a new grid to the parent
25985     *
25986     * @param parent The parent object
25987     * @return The new object or NULL if it cannot be created
25988     *
25989     * @ingroup Grid
25990     */
25991    EAPI Evas_Object *elm_grid_add(Evas_Object *parent);
25992
25993    /**
25994     * Set the virtual size of the grid
25995     *
25996     * @param obj The grid object
25997     * @param w The virtual width of the grid
25998     * @param h The virtual height of the grid
25999     *
26000     * @ingroup Grid
26001     */
26002    EAPI void         elm_grid_size_set(Evas_Object *obj, int w, int h);
26003
26004    /**
26005     * Get the virtual size of the grid
26006     *
26007     * @param obj The grid object
26008     * @param w Pointer to integer to store the virtual width of the grid
26009     * @param h Pointer to integer to store the virtual height of the grid
26010     *
26011     * @ingroup Grid
26012     */
26013    EAPI void         elm_grid_size_get(Evas_Object *obj, int *w, int *h);
26014
26015    /**
26016     * Pack child at given position and size
26017     *
26018     * @param obj The grid object
26019     * @param subobj The child to pack
26020     * @param x The virtual x coord at which to pack it
26021     * @param y The virtual y coord at which to pack it
26022     * @param w The virtual width at which to pack it
26023     * @param h The virtual height at which to pack it
26024     *
26025     * @ingroup Grid
26026     */
26027    EAPI void         elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h);
26028
26029    /**
26030     * Unpack a child from a grid object
26031     *
26032     * @param obj The grid object
26033     * @param subobj The child to unpack
26034     *
26035     * @ingroup Grid
26036     */
26037    EAPI void         elm_grid_unpack(Evas_Object *obj, Evas_Object *subobj);
26038
26039    /**
26040     * Faster way to remove all child objects from a grid object.
26041     *
26042     * @param obj The grid object
26043     * @param clear If true, it will delete just removed children
26044     *
26045     * @ingroup Grid
26046     */
26047    EAPI void         elm_grid_clear(Evas_Object *obj, Eina_Bool clear);
26048
26049    /**
26050     * Set packing of an existing child at to position and size
26051     *
26052     * @param subobj The child to set packing of
26053     * @param x The virtual x coord at which to pack it
26054     * @param y The virtual y coord at which to pack it
26055     * @param w The virtual width at which to pack it
26056     * @param h The virtual height at which to pack it
26057     *
26058     * @ingroup Grid
26059     */
26060    EAPI void         elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h);
26061
26062    /**
26063     * get packing of a child
26064     *
26065     * @param subobj The child to query
26066     * @param x Pointer to integer to store the virtual x coord
26067     * @param y Pointer to integer to store the virtual y coord
26068     * @param w Pointer to integer to store the virtual width
26069     * @param h Pointer to integer to store the virtual height
26070     *
26071     * @ingroup Grid
26072     */
26073    EAPI void         elm_grid_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h);
26074
26075    /**
26076     * @}
26077     */
26078
26079    EAPI Evas_Object *elm_factory_add(Evas_Object *parent);
26080    EAPI void         elm_factory_content_set(Evas_Object *obj, Evas_Object *content);
26081    EAPI Evas_Object *elm_factory_content_get(const Evas_Object *obj);
26082    
26083    EAPI Evas_Object *elm_video_add(Evas_Object *parent);
26084    EAPI void elm_video_file_set(Evas_Object *video, const char *filename);
26085    EAPI void elm_video_uri_set(Evas_Object *video, const char *uri);
26086    EAPI Evas_Object *elm_video_emotion_get(Evas_Object *video);
26087    EAPI void elm_video_play(Evas_Object *video);
26088    EAPI void elm_video_pause(Evas_Object *video);
26089    EAPI void elm_video_stop(Evas_Object *video);
26090    EAPI Eina_Bool elm_video_is_playing(Evas_Object *video);
26091    EAPI Eina_Bool elm_video_is_seekable(Evas_Object *video);
26092    EAPI Eina_Bool elm_video_audio_mute_get(Evas_Object *video);
26093    EAPI void elm_video_audio_mute_set(Evas_Object *video, Eina_Bool mute);
26094    EAPI double elm_video_audio_level_get(Evas_Object *video);
26095    EAPI void elm_video_audio_level_set(Evas_Object *video, double volume);
26096    EAPI double elm_video_play_position_get(Evas_Object *video);
26097    EAPI void elm_video_play_position_set(Evas_Object *video, double position);
26098    EAPI double elm_video_play_length_get(Evas_Object *video);
26099    EAPI void elm_video_remember_position_set(Evas_Object *video, Eina_Bool remember);
26100    EAPI Eina_Bool elm_video_remember_position_get(Evas_Object *video);
26101    EAPI const char *elm_video_title_get(Evas_Object *video);
26102
26103    EAPI Evas_Object *elm_player_add(Evas_Object *parent);
26104    EAPI void elm_player_video_set(Evas_Object *player, Evas_Object *video);
26105
26106   /* naviframe */
26107    EAPI Evas_Object        *elm_naviframe_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26108    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);
26109    EAPI Evas_Object        *elm_naviframe_item_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
26110    EAPI void                elm_naviframe_content_preserve_on_pop_set(Evas_Object *obj, Eina_Bool preserve) EINA_ARG_NONNULL(1);
26111    EAPI Eina_Bool           elm_naviframe_content_preserve_on_pop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26112    EAPI void                elm_naviframe_item_title_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
26113    EAPI const char         *elm_naviframe_item_title_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26114    EAPI void                elm_naviframe_item_subtitle_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
26115    EAPI const char         *elm_naviframe_item_subtitle_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26116    EAPI Elm_Object_Item    *elm_naviframe_top_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26117    EAPI Elm_Object_Item    *elm_naviframe_bottom_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26118    EAPI void                elm_naviframe_item_style_set(Elm_Object_Item *it, const char *item_style) EINA_ARG_NONNULL(1);
26119    EAPI const char         *elm_naviframe_item_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26120    EAPI void                elm_naviframe_item_title_visible_set(Elm_Object_Item *it, Eina_Bool visible) EINA_ARG_NONNULL(1);
26121    EAPI Eina_Bool           elm_naviframe_item_title_visible_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26122
26123    /**
26124     * @defgroup Video Video
26125     *
26126     * This object display an player that let you control an Elm_Video
26127     * object. It take care of updating it's content according to what is
26128     * going on inside the Emotion object. It does activate the remember
26129     * function on the linked Elm_Video object.
26130     *
26131     * Signals that you cann add callback for are :
26132     *
26133     * "forward,clicked" - the user clicked the forward button.
26134     * "info,clicked" - the user clicked the info button.
26135     * "next,clicked" - the user clicked the next button.
26136     * "pause,clicked" - the user clicked the pause button.
26137     * "play,clicked" - the user clicked the play button.
26138     * "prev,clicked" - the user clicked the prev button.
26139     * "rewind,clicked" - the user clicked the rewind button.
26140     * "stop,clicked" - the user clicked the stop button.
26141     */
26142
26143 #ifdef __cplusplus
26144 }
26145 #endif
26146
26147 #endif