[elementary] More on cursors.
[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 Elementary cursor is an internal smart object used to
13841     * customize the mouse cursor displayed over objects (or
13842     * widgets). In the most common scenario, the cursor decoration
13843     * comes from the graphical @b engine Elementary is running
13844     * on. Those engines may provide different decorations for cursors,
13845     * and Elementary provides functions to choose them (think of X11
13846     * cursors, as an example).
13847     *
13848     * There's also the possibility of, besides using engine provided
13849     * cursors, also use ones coming from Edje theming files. Both
13850     * globally and per widget, Elementary makes it possible for one to
13851     * make the cursors lookup to be held on engines only or on
13852     * Elementary's theme file, too.
13853     *
13854     * @{
13855     */
13856
13857    /**
13858     * Set the cursor to be shown when mouse is over the object
13859     *
13860     * Set the cursor that will be displayed when mouse is over the
13861     * object. The object can have only one cursor set to it, so if
13862     * this function is called twice for an object, the previous set
13863     * will be unset.
13864     * If using X cursors, a definition of all the valid cursor names
13865     * is listed on Elementary_Cursors.h. If an invalid name is set
13866     * the default cursor will be used.
13867     *
13868     * @param obj the object being set a cursor.
13869     * @param cursor the cursor name to be used.
13870     *
13871     * @ingroup Cursors
13872     */
13873    EAPI void         elm_object_cursor_set(Evas_Object *obj, const char *cursor) EINA_ARG_NONNULL(1);
13874
13875    /**
13876     * Get the cursor to be shown when mouse is over the object
13877     *
13878     * @param obj an object with cursor already set.
13879     * @return the cursor name.
13880     *
13881     * @ingroup Cursors
13882     */
13883    EAPI const char  *elm_object_cursor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13884
13885    /**
13886     * Unset cursor for object
13887     *
13888     * Unset cursor for object, and set the cursor to default if the mouse
13889     * was over this object.
13890     *
13891     * @param obj Target object
13892     * @see elm_object_cursor_set()
13893     *
13894     * @ingroup Cursors
13895     */
13896    EAPI void         elm_object_cursor_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
13897
13898    /**
13899     * Sets a different style for this object cursor.
13900     *
13901     * @note before you set a style you should define a cursor with
13902     *       elm_object_cursor_set()
13903     *
13904     * @param obj an object with cursor already set.
13905     * @param style the theme style to use (default, transparent, ...)
13906     *
13907     * @ingroup Cursors
13908     */
13909    EAPI void         elm_object_cursor_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
13910
13911    /**
13912     * Get the style for this object cursor.
13913     *
13914     * @param obj an object with cursor already set.
13915     * @return style the theme style in use, defaults to "default". If the
13916     *         object does not have a cursor set, then NULL is returned.
13917     *
13918     * @ingroup Cursors
13919     */
13920    EAPI const char  *elm_object_cursor_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13921
13922    /**
13923     * Set if the cursor set should be searched on the theme or should use
13924     * the provided by the engine, only.
13925     *
13926     * @note before you set if should look on theme you should define a cursor
13927     * with elm_object_cursor_set(). By default it will only look for cursors
13928     * provided by the engine.
13929     *
13930     * @param obj an object with cursor already set.
13931     * @param engine_only boolean to define it cursors should be looked only
13932     * between the provided by the engine or searched on widget's theme as well.
13933     *
13934     * @ingroup Cursors
13935     */
13936    EAPI void         elm_object_cursor_engine_only_set(Evas_Object *obj, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
13937
13938    /**
13939     * Get the cursor engine only usage for this object cursor.
13940     *
13941     * @param obj an object with cursor already set.
13942     * @return engine_only boolean to define it cursors should be
13943     * looked only between the provided by the engine or searched on
13944     * widget's theme as well. If the object does not have a cursor
13945     * set, then EINA_FALSE is returned.
13946     *
13947     * @ingroup Cursors
13948     */
13949    EAPI Eina_Bool    elm_object_cursor_engine_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13950
13951    /**
13952     * Get the configured cursor engine only usage
13953     *
13954     * This gets the globally configured exclusive usage of engine cursors.
13955     *
13956     * @return 1 if only engine cursors should be used
13957     * @ingroup Cursors
13958     */
13959    EAPI int          elm_cursor_engine_only_get(void);
13960
13961    /**
13962     * Set the configured cursor engine only usage
13963     *
13964     * This sets the globally configured exclusive usage of engine cursors.
13965     * It won't affect cursors set before changing this value.
13966     *
13967     * @param engine_only If 1 only engine cursors will be enabled, if 0 will
13968     * look for them on theme before.
13969     * @return EINA_TRUE if value is valid and setted (0 or 1)
13970     * @ingroup Cursors
13971     */
13972    EAPI Eina_Bool    elm_cursor_engine_only_set(int engine_only);
13973
13974    /**
13975     * @}
13976     */
13977
13978    /**
13979     * @defgroup Menu Menu
13980     *
13981     * @image html img/widget/menu/preview-00.png
13982     * @image latex img/widget/menu/preview-00.eps
13983     *
13984     * A menu is a list of items displayed above its parent. When the menu is
13985     * showing its parent is darkened. Each item can have a sub-menu. The menu
13986     * object can be used to display a menu on a right click event, in a toolbar,
13987     * anywhere.
13988     *
13989     * Signals that you can add callbacks for are:
13990     * @li "clicked" - the user clicked the empty space in the menu to dismiss.
13991     *             event_info is NULL.
13992     *
13993     * @see @ref tutorial_menu
13994     * @{
13995     */
13996    typedef struct _Elm_Menu_Item Elm_Menu_Item; /**< Item of Elm_Menu. Sub-type of Elm_Widget_Item */
13997    /**
13998     * @brief Add a new menu to the parent
13999     *
14000     * @param parent The parent object.
14001     * @return The new object or NULL if it cannot be created.
14002     */
14003    EAPI Evas_Object       *elm_menu_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14004    /**
14005     * @brief Set the parent for the given menu widget
14006     *
14007     * @param obj The menu object.
14008     * @param parent The new parent.
14009     */
14010    EAPI void               elm_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
14011    /**
14012     * @brief Get the parent for the given menu widget
14013     *
14014     * @param obj The menu object.
14015     * @return The parent.
14016     *
14017     * @see elm_menu_parent_set()
14018     */
14019    EAPI Evas_Object       *elm_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14020    /**
14021     * @brief Move the menu to a new position
14022     *
14023     * @param obj The menu object.
14024     * @param x The new position.
14025     * @param y The new position.
14026     *
14027     * Sets the top-left position of the menu to (@p x,@p y).
14028     *
14029     * @note @p x and @p y coordinates are relative to parent.
14030     */
14031    EAPI void               elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
14032    /**
14033     * @brief Close a opened menu
14034     *
14035     * @param obj the menu object
14036     * @return void
14037     *
14038     * Hides the menu and all it's sub-menus.
14039     */
14040    EAPI void               elm_menu_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
14041    /**
14042     * @brief Returns a list of @p item's items.
14043     *
14044     * @param obj The menu object
14045     * @return An Eina_List* of @p item's items
14046     */
14047    EAPI const Eina_List   *elm_menu_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14048    /**
14049     * @brief Get the Evas_Object of an Elm_Menu_Item
14050     *
14051     * @param item The menu item object.
14052     * @return The edje object containing the swallowed content
14053     *
14054     * @warning Don't manipulate this object!
14055     */
14056    EAPI Evas_Object       *elm_menu_item_object_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14057    /**
14058     * @brief Add an item at the end of the given menu widget
14059     *
14060     * @param obj The menu object.
14061     * @param parent The parent menu item (optional)
14062     * @param icon A icon display on the item. The icon will be destryed by the menu.
14063     * @param label The label of the item.
14064     * @param func Function called when the user select the item.
14065     * @param data Data sent by the callback.
14066     * @return Returns the new item.
14067     */
14068    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);
14069    /**
14070     * @brief Add an object swallowed in an item at the end of the given menu
14071     * widget
14072     *
14073     * @param obj The menu object.
14074     * @param parent The parent menu item (optional)
14075     * @param subobj The object to swallow
14076     * @param func Function called when the user select the item.
14077     * @param data Data sent by the callback.
14078     * @return Returns the new item.
14079     *
14080     * Add an evas object as an item to the menu.
14081     */
14082    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);
14083    /**
14084     * @brief Set the label of a menu item
14085     *
14086     * @param item The menu item object.
14087     * @param label The label to set for @p item
14088     *
14089     * @warning Don't use this funcion on items created with
14090     * elm_menu_item_add_object() or elm_menu_item_separator_add().
14091     */
14092    EAPI void               elm_menu_item_label_set(Elm_Menu_Item *item, const char *label) EINA_ARG_NONNULL(1);
14093    /**
14094     * @brief Get the label of a menu item
14095     *
14096     * @param item The menu item object.
14097     * @return The label of @p item
14098     */
14099    EAPI const char        *elm_menu_item_label_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14100    /**
14101     * @brief Set the icon of a menu item to the standard icon with name @p icon
14102     *
14103     * @param item The menu item object.
14104     * @param icon The icon object to set for the content of @p item
14105     *
14106     * Once this icon is set, any previously set icon will be deleted.
14107     */
14108    EAPI void               elm_menu_item_object_icon_name_set(Elm_Menu_Item *item, const char *icon) EINA_ARG_NONNULL(1, 2);
14109    /**
14110     * @brief Get the string representation from the icon of a menu item
14111     *
14112     * @param item The menu item object.
14113     * @return The string representation of @p item's icon or NULL
14114     *
14115     * @see elm_menu_item_object_icon_name_set()
14116     */
14117    EAPI const char        *elm_menu_item_object_icon_name_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14118    /**
14119     * @brief Set the content object of a menu item
14120     *
14121     * @param item The menu item object
14122     * @param The content object or NULL
14123     * @return EINA_TRUE on success, else EINA_FALSE
14124     *
14125     * Use this function to change the object swallowed by a menu item, deleting
14126     * any previously swallowed object.
14127     */
14128    EAPI Eina_Bool          elm_menu_item_object_content_set(Elm_Menu_Item *item, Evas_Object *obj) EINA_ARG_NONNULL(1);
14129    /**
14130     * @brief Get the content object of a menu item
14131     *
14132     * @param item The menu item object
14133     * @return The content object or NULL
14134     * @note If @p item was added with elm_menu_item_add_object, this
14135     * function will return the object passed, else it will return the
14136     * icon object.
14137     *
14138     * @see elm_menu_item_object_content_set()
14139     */
14140    EAPI Evas_Object *elm_menu_item_object_content_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14141    /**
14142     * @brief Set the selected state of @p item.
14143     *
14144     * @param item The menu item object.
14145     * @param selected The selected/unselected state of the item
14146     */
14147    EAPI void               elm_menu_item_selected_set(Elm_Menu_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
14148    /**
14149     * @brief Get the selected state of @p item.
14150     *
14151     * @param item The menu item object.
14152     * @return The selected/unselected state of the item
14153     *
14154     * @see elm_menu_item_selected_set()
14155     */
14156    EAPI Eina_Bool          elm_menu_item_selected_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14157    /**
14158     * @brief Set the disabled state of @p item.
14159     *
14160     * @param item The menu item object.
14161     * @param disabled The enabled/disabled state of the item
14162     */
14163    EAPI void               elm_menu_item_disabled_set(Elm_Menu_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
14164    /**
14165     * @brief Get the disabled state of @p item.
14166     *
14167     * @param item The menu item object.
14168     * @return The enabled/disabled state of the item
14169     *
14170     * @see elm_menu_item_disabled_set()
14171     */
14172    EAPI Eina_Bool          elm_menu_item_disabled_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14173    /**
14174     * @brief Add a separator item to menu @p obj under @p parent.
14175     *
14176     * @param obj The menu object
14177     * @param parent The item to add the separator under
14178     * @return The created item or NULL on failure
14179     *
14180     * This is item is a @ref Separator.
14181     */
14182    EAPI Elm_Menu_Item     *elm_menu_item_separator_add(Evas_Object *obj, Elm_Menu_Item *parent) EINA_ARG_NONNULL(1);
14183    /**
14184     * @brief Returns whether @p item is a separator.
14185     *
14186     * @param item The item to check
14187     * @return If true, @p item is a separator
14188     *
14189     * @see elm_menu_item_separator_add()
14190     */
14191    EAPI Eina_Bool          elm_menu_item_is_separator(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14192    /**
14193     * @brief Deletes an item from the menu.
14194     *
14195     * @param item The item to delete.
14196     *
14197     * @see elm_menu_item_add()
14198     */
14199    EAPI void               elm_menu_item_del(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14200    /**
14201     * @brief Set the function called when a menu item is deleted.
14202     *
14203     * @param item The item to set the callback on
14204     * @param func The function called
14205     *
14206     * @see elm_menu_item_add()
14207     * @see elm_menu_item_del()
14208     */
14209    EAPI void               elm_menu_item_del_cb_set(Elm_Menu_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
14210    /**
14211     * @brief Returns the data associated with menu item @p item.
14212     *
14213     * @param item The item
14214     * @return The data associated with @p item or NULL if none was set.
14215     *
14216     * This is the data set with elm_menu_add() or elm_menu_item_data_set().
14217     */
14218    EAPI void              *elm_menu_item_data_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14219    /**
14220     * @brief Sets the data to be associated with menu item @p item.
14221     *
14222     * @param item The item
14223     * @param data The data to be associated with @p item
14224     */
14225    EAPI void               elm_menu_item_data_set(Elm_Menu_Item *item, const void *data) EINA_ARG_NONNULL(1);
14226    /**
14227     * @brief Returns a list of @p item's subitems.
14228     *
14229     * @param item The item
14230     * @return An Eina_List* of @p item's subitems
14231     *
14232     * @see elm_menu_add()
14233     */
14234    EAPI const Eina_List   *elm_menu_item_subitems_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14235    /**
14236     * @brief Get the position of a menu item
14237     *
14238     * @param item The menu item
14239     * @return The item's index
14240     *
14241     * This function returns the index position of a menu item in a menu.
14242     * For a sub-menu, this number is relative to the first item in the sub-menu.
14243     *
14244     * @note Index values begin with 0
14245     */
14246    EAPI unsigned int       elm_menu_item_index_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
14247    /**
14248     * @brief @brief Return a menu item's owner menu
14249     *
14250     * @param item The menu item
14251     * @return The menu object owning @p item, or NULL on failure
14252     *
14253     * Use this function to get the menu object owning an item.
14254     */
14255    EAPI Evas_Object       *elm_menu_item_menu_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
14256    /**
14257     * @brief Get the selected item in the menu
14258     *
14259     * @param obj The menu object
14260     * @return The selected item, or NULL if none
14261     *
14262     * @see elm_menu_item_selected_get()
14263     * @see elm_menu_item_selected_set()
14264     */
14265    EAPI Elm_Menu_Item *elm_menu_selected_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
14266    /**
14267     * @brief Get the last item in the menu
14268     *
14269     * @param obj The menu object
14270     * @return The last item, or NULL if none
14271     */
14272    EAPI Elm_Menu_Item *elm_menu_last_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
14273    /**
14274     * @brief Get the first item in the menu
14275     *
14276     * @param obj The menu object
14277     * @return The first item, or NULL if none
14278     */
14279    EAPI Elm_Menu_Item *elm_menu_first_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
14280    /**
14281     * @brief Get the next item in the menu.
14282     *
14283     * @param item The menu item object.
14284     * @return The item after it, or NULL if none
14285     */
14286    EAPI Elm_Menu_Item *elm_menu_item_next_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14287    /**
14288     * @brief Get the previous item in the menu.
14289     *
14290     * @param item The menu item object.
14291     * @return The item before it, or NULL if none
14292     */
14293    EAPI Elm_Menu_Item *elm_menu_item_prev_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14294    /**
14295     * @}
14296     */
14297
14298    /**
14299     * @defgroup List List
14300     * @ingroup Elementary
14301     *
14302     * @image html img/widget/list/preview-00.png
14303     * @image latex img/widget/list/preview-00.eps width=\textwidth
14304     *
14305     * @image html img/list.png
14306     * @image latex img/list.eps width=\textwidth
14307     *
14308     * A list widget is a container whose children are displayed vertically or
14309     * horizontally, in order, and can be selected.
14310     * The list can accept only one or multiple items selection. Also has many
14311     * modes of items displaying.
14312     *
14313     * A list is a very simple type of list widget.  For more robust
14314     * lists, @ref Genlist should probably be used.
14315     *
14316     * Smart callbacks one can listen to:
14317     * - @c "activated" - The user has double-clicked or pressed
14318     *   (enter|return|spacebar) on an item. The @c event_info parameter
14319     *   is the item that was activated.
14320     * - @c "clicked,double" - The user has double-clicked an item.
14321     *   The @c event_info parameter is the item that was double-clicked.
14322     * - "selected" - when the user selected an item
14323     * - "unselected" - when the user unselected an item
14324     * - "longpressed" - an item in the list is long-pressed
14325     * - "scroll,edge,top" - the list is scrolled until the top edge
14326     * - "scroll,edge,bottom" - the list is scrolled until the bottom edge
14327     * - "scroll,edge,left" - the list is scrolled until the left edge
14328     * - "scroll,edge,right" - the list is scrolled until the right edge
14329     *
14330     * Available styles for it:
14331     * - @c "default"
14332     *
14333     * List of examples:
14334     * @li @ref list_example_01
14335     * @li @ref list_example_02
14336     * @li @ref list_example_03
14337     */
14338
14339    /**
14340     * @addtogroup List
14341     * @{
14342     */
14343
14344    /**
14345     * @enum _Elm_List_Mode
14346     * @typedef Elm_List_Mode
14347     *
14348     * Set list's resize behavior, transverse axis scroll and
14349     * items cropping. See each mode's description for more details.
14350     *
14351     * @note Default value is #ELM_LIST_SCROLL.
14352     *
14353     * Values <b> don't </b> work as bitmask, only one can be choosen.
14354     *
14355     * @see elm_list_mode_set()
14356     * @see elm_list_mode_get()
14357     *
14358     * @ingroup List
14359     */
14360    typedef enum _Elm_List_Mode
14361      {
14362         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. */
14363         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). */
14364         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. */
14365         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. */
14366         ELM_LIST_LAST /**< Indicates error if returned by elm_list_mode_get() */
14367      } Elm_List_Mode;
14368
14369    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().  */
14370
14371    /**
14372     * Add a new list widget to the given parent Elementary
14373     * (container) object.
14374     *
14375     * @param parent The parent object.
14376     * @return a new list widget handle or @c NULL, on errors.
14377     *
14378     * This function inserts a new list widget on the canvas.
14379     *
14380     * @ingroup List
14381     */
14382    EAPI Evas_Object     *elm_list_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14383
14384    /**
14385     * Starts the list.
14386     *
14387     * @param obj The list object
14388     *
14389     * @note Call before running show() on the list object.
14390     * @warning If not called, it won't display the list properly.
14391     *
14392     * @code
14393     * li = elm_list_add(win);
14394     * elm_list_item_append(li, "First", NULL, NULL, NULL, NULL);
14395     * elm_list_item_append(li, "Second", NULL, NULL, NULL, NULL);
14396     * elm_list_go(li);
14397     * evas_object_show(li);
14398     * @endcode
14399     *
14400     * @ingroup List
14401     */
14402    EAPI void             elm_list_go(Evas_Object *obj) EINA_ARG_NONNULL(1);
14403
14404    /**
14405     * Enable or disable multiple items selection on the list object.
14406     *
14407     * @param obj The list object
14408     * @param multi @c EINA_TRUE to enable multi selection or @c EINA_FALSE to
14409     * disable it.
14410     *
14411     * Disabled by default. If disabled, the user can select a single item of
14412     * the list each time. Selected items are highlighted on list.
14413     * If enabled, many items can be selected.
14414     *
14415     * If a selected item is selected again, it will be unselected.
14416     *
14417     * @see elm_list_multi_select_get()
14418     *
14419     * @ingroup List
14420     */
14421    EAPI void             elm_list_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
14422
14423    /**
14424     * Get a value whether multiple items selection is enabled or not.
14425     *
14426     * @see elm_list_multi_select_set() for details.
14427     *
14428     * @param obj The list object.
14429     * @return @c EINA_TRUE means multiple items selection is enabled.
14430     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
14431     * @c EINA_FALSE is returned.
14432     *
14433     * @ingroup List
14434     */
14435    EAPI Eina_Bool        elm_list_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14436
14437    /**
14438     * Set which mode to use for the list object.
14439     *
14440     * @param obj The list object
14441     * @param mode One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
14442     * #ELM_LIST_LIMIT or #ELM_LIST_EXPAND.
14443     *
14444     * Set list's resize behavior, transverse axis scroll and
14445     * items cropping. See each mode's description for more details.
14446     *
14447     * @note Default value is #ELM_LIST_SCROLL.
14448     *
14449     * Only one can be set, if a previous one was set, it will be changed
14450     * by the new mode set. Bitmask won't work as well.
14451     *
14452     * @see elm_list_mode_get()
14453     *
14454     * @ingroup List
14455     */
14456    EAPI void             elm_list_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
14457
14458    /**
14459     * Get the mode the list is at.
14460     *
14461     * @param obj The list object
14462     * @return One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
14463     * #ELM_LIST_LIMIT, #ELM_LIST_EXPAND or #ELM_LIST_LAST on errors.
14464     *
14465     * @note see elm_list_mode_set() for more information.
14466     *
14467     * @ingroup List
14468     */
14469    EAPI Elm_List_Mode    elm_list_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14470
14471    /**
14472     * Enable or disable horizontal mode on the list object.
14473     *
14474     * @param obj The list object.
14475     * @param horizontal @c EINA_TRUE to enable horizontal or @c EINA_FALSE to
14476     * disable it, i.e., to enable vertical mode.
14477     *
14478     * @note Vertical mode is set by default.
14479     *
14480     * On horizontal mode items are displayed on list from left to right,
14481     * instead of from top to bottom. Also, the list will scroll horizontally.
14482     * Each item will presents left icon on top and right icon, or end, at
14483     * the bottom.
14484     *
14485     * @see elm_list_horizontal_get()
14486     *
14487     * @ingroup List
14488     */
14489    EAPI void             elm_list_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
14490
14491    /**
14492     * Get a value whether horizontal mode is enabled or not.
14493     *
14494     * @param obj The list object.
14495     * @return @c EINA_TRUE means horizontal mode selection is enabled.
14496     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
14497     * @c EINA_FALSE is returned.
14498     *
14499     * @see elm_list_horizontal_set() for details.
14500     *
14501     * @ingroup List
14502     */
14503    EAPI Eina_Bool        elm_list_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14504
14505    /**
14506     * Enable or disable always select mode on the list object.
14507     *
14508     * @param obj The list object
14509     * @param always_select @c EINA_TRUE to enable always select mode or
14510     * @c EINA_FALSE to disable it.
14511     *
14512     * @note Always select mode is disabled by default.
14513     *
14514     * Default behavior of list items is to only call its callback function
14515     * the first time it's pressed, i.e., when it is selected. If a selected
14516     * item is pressed again, and multi-select is disabled, it won't call
14517     * this function (if multi-select is enabled it will unselect the item).
14518     *
14519     * If always select is enabled, it will call the callback function
14520     * everytime a item is pressed, so it will call when the item is selected,
14521     * and again when a selected item is pressed.
14522     *
14523     * @see elm_list_always_select_mode_get()
14524     * @see elm_list_multi_select_set()
14525     *
14526     * @ingroup List
14527     */
14528    EAPI void             elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
14529
14530    /**
14531     * Get a value whether always select mode is enabled or not, meaning that
14532     * an item will always call its callback function, even if already selected.
14533     *
14534     * @param obj The list object
14535     * @return @c EINA_TRUE means horizontal mode selection is enabled.
14536     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
14537     * @c EINA_FALSE is returned.
14538     *
14539     * @see elm_list_always_select_mode_set() for details.
14540     *
14541     * @ingroup List
14542     */
14543    EAPI Eina_Bool        elm_list_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14544
14545    /**
14546     * Set bouncing behaviour when the scrolled content reaches an edge.
14547     *
14548     * Tell the internal scroller object whether it should bounce or not
14549     * when it reaches the respective edges for each axis.
14550     *
14551     * @param obj The list object
14552     * @param h_bounce Whether to bounce or not in the horizontal axis.
14553     * @param v_bounce Whether to bounce or not in the vertical axis.
14554     *
14555     * @see elm_scroller_bounce_set()
14556     *
14557     * @ingroup List
14558     */
14559    EAPI void             elm_list_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
14560
14561    /**
14562     * Get the bouncing behaviour of the internal scroller.
14563     *
14564     * Get whether the internal scroller should bounce when the edge of each
14565     * axis is reached scrolling.
14566     *
14567     * @param obj The list object.
14568     * @param h_bounce Pointer where to store the bounce state of the horizontal
14569     * axis.
14570     * @param v_bounce Pointer where to store the bounce state of the vertical
14571     * axis.
14572     *
14573     * @see elm_scroller_bounce_get()
14574     * @see elm_list_bounce_set()
14575     *
14576     * @ingroup List
14577     */
14578    EAPI void             elm_list_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
14579
14580    /**
14581     * Set the scrollbar policy.
14582     *
14583     * @param obj The list object
14584     * @param policy_h Horizontal scrollbar policy.
14585     * @param policy_v Vertical scrollbar policy.
14586     *
14587     * This sets the scrollbar visibility policy for the given scroller.
14588     * #ELM_SCROLLER_POLICY_AUTO means the scrollber is made visible if it
14589     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
14590     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
14591     * This applies respectively for the horizontal and vertical scrollbars.
14592     *
14593     * The both are disabled by default, i.e., are set to
14594     * #ELM_SCROLLER_POLICY_OFF.
14595     *
14596     * @ingroup List
14597     */
14598    EAPI void             elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
14599
14600    /**
14601     * Get the scrollbar policy.
14602     *
14603     * @see elm_list_scroller_policy_get() for details.
14604     *
14605     * @param obj The list object.
14606     * @param policy_h Pointer where to store horizontal scrollbar policy.
14607     * @param policy_v Pointer where to store vertical scrollbar policy.
14608     *
14609     * @ingroup List
14610     */
14611    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);
14612
14613    /**
14614     * Append a new item to the list object.
14615     *
14616     * @param obj The list object.
14617     * @param label The label of the list item.
14618     * @param icon The icon object to use for the left side of the item. An
14619     * icon can be any Evas object, but usually it is an icon created
14620     * with elm_icon_add().
14621     * @param end The icon object to use for the right side of the item. An
14622     * icon can be any Evas object.
14623     * @param func The function to call when the item is clicked.
14624     * @param data The data to associate with the item for related callbacks.
14625     *
14626     * @return The created item or @c NULL upon failure.
14627     *
14628     * A new item will be created and appended to the list, i.e., will
14629     * be set as @b last item.
14630     *
14631     * Items created with this method can be deleted with
14632     * elm_list_item_del().
14633     *
14634     * Associated @p data can be properly freed when item is deleted if a
14635     * callback function is set with elm_list_item_del_cb_set().
14636     *
14637     * If a function is passed as argument, it will be called everytime this item
14638     * is selected, i.e., the user clicks over an unselected item.
14639     * If always select is enabled it will call this function every time
14640     * user clicks over an item (already selected or not).
14641     * If such function isn't needed, just passing
14642     * @c NULL as @p func is enough. The same should be done for @p data.
14643     *
14644     * Simple example (with no function callback or data associated):
14645     * @code
14646     * li = elm_list_add(win);
14647     * ic = elm_icon_add(win);
14648     * elm_icon_file_set(ic, "path/to/image", NULL);
14649     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
14650     * elm_list_item_append(li, "label", ic, NULL, NULL, NULL);
14651     * elm_list_go(li);
14652     * evas_object_show(li);
14653     * @endcode
14654     *
14655     * @see elm_list_always_select_mode_set()
14656     * @see elm_list_item_del()
14657     * @see elm_list_item_del_cb_set()
14658     * @see elm_list_clear()
14659     * @see elm_icon_add()
14660     *
14661     * @ingroup List
14662     */
14663    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);
14664
14665    /**
14666     * Prepend a new item to the list object.
14667     *
14668     * @param obj The list object.
14669     * @param label The label of the list item.
14670     * @param icon The icon object to use for the left side of the item. An
14671     * icon can be any Evas object, but usually it is an icon created
14672     * with elm_icon_add().
14673     * @param end The icon object to use for the right side of the item. An
14674     * icon can be any Evas object.
14675     * @param func The function to call when the item is clicked.
14676     * @param data The data to associate with the item for related callbacks.
14677     *
14678     * @return The created item or @c NULL upon failure.
14679     *
14680     * A new item will be created and prepended to the list, i.e., will
14681     * be set as @b first item.
14682     *
14683     * Items created with this method can be deleted with
14684     * elm_list_item_del().
14685     *
14686     * Associated @p data can be properly freed when item is deleted if a
14687     * callback function is set with elm_list_item_del_cb_set().
14688     *
14689     * If a function is passed as argument, it will be called everytime this item
14690     * is selected, i.e., the user clicks over an unselected item.
14691     * If always select is enabled it will call this function every time
14692     * user clicks over an item (already selected or not).
14693     * If such function isn't needed, just passing
14694     * @c NULL as @p func is enough. The same should be done for @p data.
14695     *
14696     * @see elm_list_item_append() for a simple code example.
14697     * @see elm_list_always_select_mode_set()
14698     * @see elm_list_item_del()
14699     * @see elm_list_item_del_cb_set()
14700     * @see elm_list_clear()
14701     * @see elm_icon_add()
14702     *
14703     * @ingroup List
14704     */
14705    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);
14706
14707    /**
14708     * Insert a new item into the list object before item @p before.
14709     *
14710     * @param obj The list object.
14711     * @param before The list item to insert before.
14712     * @param label The label of the list item.
14713     * @param icon The icon object to use for the left side of the item. An
14714     * icon can be any Evas object, but usually it is an icon created
14715     * with elm_icon_add().
14716     * @param end The icon object to use for the right side of the item. An
14717     * icon can be any Evas object.
14718     * @param func The function to call when the item is clicked.
14719     * @param data The data to associate with the item for related callbacks.
14720     *
14721     * @return The created item or @c NULL upon failure.
14722     *
14723     * A new item will be created and added to the list. Its position in
14724     * this list will be just before item @p before.
14725     *
14726     * Items created with this method can be deleted with
14727     * elm_list_item_del().
14728     *
14729     * Associated @p data can be properly freed when item is deleted if a
14730     * callback function is set with elm_list_item_del_cb_set().
14731     *
14732     * If a function is passed as argument, it will be called everytime this item
14733     * is selected, i.e., the user clicks over an unselected item.
14734     * If always select is enabled it will call this function every time
14735     * user clicks over an item (already selected or not).
14736     * If such function isn't needed, just passing
14737     * @c NULL as @p func is enough. The same should be done for @p data.
14738     *
14739     * @see elm_list_item_append() for a simple code example.
14740     * @see elm_list_always_select_mode_set()
14741     * @see elm_list_item_del()
14742     * @see elm_list_item_del_cb_set()
14743     * @see elm_list_clear()
14744     * @see elm_icon_add()
14745     *
14746     * @ingroup List
14747     */
14748    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);
14749
14750    /**
14751     * Insert a new item into the list object after item @p after.
14752     *
14753     * @param obj The list object.
14754     * @param after The list item to insert after.
14755     * @param label The label of the list item.
14756     * @param icon The icon object to use for the left side of the item. An
14757     * icon can be any Evas object, but usually it is an icon created
14758     * with elm_icon_add().
14759     * @param end The icon object to use for the right side of the item. An
14760     * icon can be any Evas object.
14761     * @param func The function to call when the item is clicked.
14762     * @param data The data to associate with the item for related callbacks.
14763     *
14764     * @return The created item or @c NULL upon failure.
14765     *
14766     * A new item will be created and added to the list. Its position in
14767     * this list will be just after item @p after.
14768     *
14769     * Items created with this method can be deleted with
14770     * elm_list_item_del().
14771     *
14772     * Associated @p data can be properly freed when item is deleted if a
14773     * callback function is set with elm_list_item_del_cb_set().
14774     *
14775     * If a function is passed as argument, it will be called everytime this item
14776     * is selected, i.e., the user clicks over an unselected item.
14777     * If always select is enabled it will call this function every time
14778     * user clicks over an item (already selected or not).
14779     * If such function isn't needed, just passing
14780     * @c NULL as @p func is enough. The same should be done for @p data.
14781     *
14782     * @see elm_list_item_append() for a simple code example.
14783     * @see elm_list_always_select_mode_set()
14784     * @see elm_list_item_del()
14785     * @see elm_list_item_del_cb_set()
14786     * @see elm_list_clear()
14787     * @see elm_icon_add()
14788     *
14789     * @ingroup List
14790     */
14791    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);
14792
14793    /**
14794     * Insert a new item into the sorted list object.
14795     *
14796     * @param obj The list object.
14797     * @param label The label of the list item.
14798     * @param icon The icon object to use for the left side of the item. An
14799     * icon can be any Evas object, but usually it is an icon created
14800     * with elm_icon_add().
14801     * @param end The icon object to use for the right side of the item. An
14802     * icon can be any Evas object.
14803     * @param func The function to call when the item is clicked.
14804     * @param data The data to associate with the item for related callbacks.
14805     * @param cmp_func The comparing function to be used to sort list
14806     * items <b>by #Elm_List_Item item handles</b>. This function will
14807     * receive two items and compare them, returning a non-negative integer
14808     * if the second item should be place after the first, or negative value
14809     * if should be placed before.
14810     *
14811     * @return The created item or @c NULL upon failure.
14812     *
14813     * @note This function inserts values into a list object assuming it was
14814     * sorted and the result will be sorted.
14815     *
14816     * A new item will be created and added to the list. Its position in
14817     * this list will be found comparing the new item with previously inserted
14818     * items using function @p cmp_func.
14819     *
14820     * Items created with this method can be deleted with
14821     * elm_list_item_del().
14822     *
14823     * Associated @p data can be properly freed when item is deleted if a
14824     * callback function is set with elm_list_item_del_cb_set().
14825     *
14826     * If a function is passed as argument, it will be called everytime this item
14827     * is selected, i.e., the user clicks over an unselected item.
14828     * If always select is enabled it will call this function every time
14829     * user clicks over an item (already selected or not).
14830     * If such function isn't needed, just passing
14831     * @c NULL as @p func is enough. The same should be done for @p data.
14832     *
14833     * @see elm_list_item_append() for a simple code example.
14834     * @see elm_list_always_select_mode_set()
14835     * @see elm_list_item_del()
14836     * @see elm_list_item_del_cb_set()
14837     * @see elm_list_clear()
14838     * @see elm_icon_add()
14839     *
14840     * @ingroup List
14841     */
14842    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);
14843
14844    /**
14845     * Remove all list's items.
14846     *
14847     * @param obj The list object
14848     *
14849     * @see elm_list_item_del()
14850     * @see elm_list_item_append()
14851     *
14852     * @ingroup List
14853     */
14854    EAPI void             elm_list_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
14855
14856    /**
14857     * Get a list of all the list items.
14858     *
14859     * @param obj The list object
14860     * @return An @c Eina_List of list items, #Elm_List_Item,
14861     * or @c NULL on failure.
14862     *
14863     * @see elm_list_item_append()
14864     * @see elm_list_item_del()
14865     * @see elm_list_clear()
14866     *
14867     * @ingroup List
14868     */
14869    EAPI const Eina_List *elm_list_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14870
14871    /**
14872     * Get the selected item.
14873     *
14874     * @param obj The list object.
14875     * @return The selected list item.
14876     *
14877     * The selected item can be unselected with function
14878     * elm_list_item_selected_set().
14879     *
14880     * The selected item always will be highlighted on list.
14881     *
14882     * @see elm_list_selected_items_get()
14883     *
14884     * @ingroup List
14885     */
14886    EAPI Elm_List_Item   *elm_list_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14887
14888    /**
14889     * Return a list of the currently selected list items.
14890     *
14891     * @param obj The list object.
14892     * @return An @c Eina_List of list items, #Elm_List_Item,
14893     * or @c NULL on failure.
14894     *
14895     * Multiple items can be selected if multi select is enabled. It can be
14896     * done with elm_list_multi_select_set().
14897     *
14898     * @see elm_list_selected_item_get()
14899     * @see elm_list_multi_select_set()
14900     *
14901     * @ingroup List
14902     */
14903    EAPI const Eina_List *elm_list_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14904
14905    /**
14906     * Set the selected state of an item.
14907     *
14908     * @param item The list item
14909     * @param selected The selected state
14910     *
14911     * This sets the selected state of the given item @p it.
14912     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
14913     *
14914     * If a new item is selected the previosly selected will be unselected,
14915     * unless multiple selection is enabled with elm_list_multi_select_set().
14916     * Previoulsy selected item can be get with function
14917     * elm_list_selected_item_get().
14918     *
14919     * Selected items will be highlighted.
14920     *
14921     * @see elm_list_item_selected_get()
14922     * @see elm_list_selected_item_get()
14923     * @see elm_list_multi_select_set()
14924     *
14925     * @ingroup List
14926     */
14927    EAPI void             elm_list_item_selected_set(Elm_List_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
14928
14929    /*
14930     * Get whether the @p item is selected or not.
14931     *
14932     * @param item The list item.
14933     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
14934     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
14935     *
14936     * @see elm_list_selected_item_set() for details.
14937     * @see elm_list_item_selected_get()
14938     *
14939     * @ingroup List
14940     */
14941    EAPI Eina_Bool        elm_list_item_selected_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
14942
14943    /**
14944     * Set or unset item as a separator.
14945     *
14946     * @param it The list item.
14947     * @param setting @c EINA_TRUE to set item @p it as separator or
14948     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
14949     *
14950     * Items aren't set as separator by default.
14951     *
14952     * If set as separator it will display separator theme, so won't display
14953     * icons or label.
14954     *
14955     * @see elm_list_item_separator_get()
14956     *
14957     * @ingroup List
14958     */
14959    EAPI void             elm_list_item_separator_set(Elm_List_Item *it, Eina_Bool setting) EINA_ARG_NONNULL(1);
14960
14961    /**
14962     * Get a value whether item is a separator or not.
14963     *
14964     * @see elm_list_item_separator_set() for details.
14965     *
14966     * @param it The list item.
14967     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
14968     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
14969     *
14970     * @ingroup List
14971     */
14972    EAPI Eina_Bool        elm_list_item_separator_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
14973
14974    /**
14975     * Show @p item in the list view.
14976     *
14977     * @param item The list item to be shown.
14978     *
14979     * It won't animate list until item is visible. If such behavior is wanted,
14980     * use elm_list_bring_in() intead.
14981     *
14982     * @ingroup List
14983     */
14984    EAPI void             elm_list_item_show(Elm_List_Item *item) EINA_ARG_NONNULL(1);
14985
14986    /**
14987     * Bring in the given item to list view.
14988     *
14989     * @param item The item.
14990     *
14991     * This causes list to jump to the given item @p item and show it
14992     * (by scrolling), if it is not fully visible.
14993     *
14994     * This may use animation to do so and take a period of time.
14995     *
14996     * If animation isn't wanted, elm_list_item_show() can be used.
14997     *
14998     * @ingroup List
14999     */
15000    EAPI void             elm_list_item_bring_in(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15001
15002    /**
15003     * Delete them item from the list.
15004     *
15005     * @param item The item of list to be deleted.
15006     *
15007     * If deleting all list items is required, elm_list_clear()
15008     * should be used instead of getting items list and deleting each one.
15009     *
15010     * @see elm_list_clear()
15011     * @see elm_list_item_append()
15012     * @see elm_list_item_del_cb_set()
15013     *
15014     * @ingroup List
15015     */
15016    EAPI void             elm_list_item_del(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15017
15018    /**
15019     * Set the function called when a list item is freed.
15020     *
15021     * @param item The item to set the callback on
15022     * @param func The function called
15023     *
15024     * If there is a @p func, then it will be called prior item's memory release.
15025     * That will be called with the following arguments:
15026     * @li item's data;
15027     * @li item's Evas object;
15028     * @li item itself;
15029     *
15030     * This way, a data associated to a list item could be properly freed.
15031     *
15032     * @ingroup List
15033     */
15034    EAPI void             elm_list_item_del_cb_set(Elm_List_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
15035
15036    /**
15037     * Get the data associated to the item.
15038     *
15039     * @param item The list item
15040     * @return The data associated to @p item
15041     *
15042     * The return value is a pointer to data associated to @p item when it was
15043     * created, with function elm_list_item_append() or similar. If no data
15044     * was passed as argument, it will return @c NULL.
15045     *
15046     * @see elm_list_item_append()
15047     *
15048     * @ingroup List
15049     */
15050    EAPI void            *elm_list_item_data_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15051
15052    /**
15053     * Get the left side icon associated to the item.
15054     *
15055     * @param item The list item
15056     * @return The left side icon associated to @p item
15057     *
15058     * The return value is a pointer to the icon associated to @p item when
15059     * it was
15060     * created, with function elm_list_item_append() or similar, or later
15061     * with function elm_list_item_icon_set(). If no icon
15062     * was passed as argument, it will return @c NULL.
15063     *
15064     * @see elm_list_item_append()
15065     * @see elm_list_item_icon_set()
15066     *
15067     * @ingroup List
15068     */
15069    EAPI Evas_Object     *elm_list_item_icon_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15070
15071    /**
15072     * Set the left side icon associated to the item.
15073     *
15074     * @param item The list item
15075     * @param icon The left side icon object to associate with @p item
15076     *
15077     * The icon object to use at left side of the item. An
15078     * icon can be any Evas object, but usually it is an icon created
15079     * with elm_icon_add().
15080     *
15081     * Once the icon object is set, a previously set one will be deleted.
15082     * @warning Setting the same icon for two items will cause the icon to
15083     * dissapear from the first item.
15084     *
15085     * If an icon was passed as argument on item creation, with function
15086     * elm_list_item_append() or similar, it will be already
15087     * associated to the item.
15088     *
15089     * @see elm_list_item_append()
15090     * @see elm_list_item_icon_get()
15091     *
15092     * @ingroup List
15093     */
15094    EAPI void             elm_list_item_icon_set(Elm_List_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
15095
15096    /**
15097     * Get the right side icon associated to the item.
15098     *
15099     * @param item The list item
15100     * @return The right side icon associated to @p item
15101     *
15102     * The return value is a pointer to the icon associated to @p item when
15103     * it was
15104     * created, with function elm_list_item_append() or similar, or later
15105     * with function elm_list_item_icon_set(). If no icon
15106     * was passed as argument, it will return @c NULL.
15107     *
15108     * @see elm_list_item_append()
15109     * @see elm_list_item_icon_set()
15110     *
15111     * @ingroup List
15112     */
15113    EAPI Evas_Object     *elm_list_item_end_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15114
15115    /**
15116     * Set the right side icon associated to the item.
15117     *
15118     * @param item The list item
15119     * @param end The right side icon object to associate with @p item
15120     *
15121     * The icon object to use at right side of the item. An
15122     * icon can be any Evas object, but usually it is an icon created
15123     * with elm_icon_add().
15124     *
15125     * Once the icon object is set, a previously set one will be deleted.
15126     * @warning Setting the same icon for two items will cause the icon to
15127     * dissapear from the first item.
15128     *
15129     * If an icon was passed as argument on item creation, with function
15130     * elm_list_item_append() or similar, it will be already
15131     * associated to the item.
15132     *
15133     * @see elm_list_item_append()
15134     * @see elm_list_item_end_get()
15135     *
15136     * @ingroup List
15137     */
15138    EAPI void             elm_list_item_end_set(Elm_List_Item *item, Evas_Object *end) EINA_ARG_NONNULL(1);
15139
15140    /**
15141     * Gets the base object of the item.
15142     *
15143     * @param item The list item
15144     * @return The base object associated with @p item
15145     *
15146     * Base object is the @c Evas_Object that represents that item.
15147     *
15148     * @ingroup List
15149     */
15150    EAPI Evas_Object     *elm_list_item_base_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15151
15152    /**
15153     * Get the label of item.
15154     *
15155     * @param item The item of list.
15156     * @return The label of item.
15157     *
15158     * The return value is a pointer to the label associated to @p item when
15159     * it was created, with function elm_list_item_append(), or later
15160     * with function elm_list_item_label_set. If no label
15161     * was passed as argument, it will return @c NULL.
15162     *
15163     * @see elm_list_item_label_set() for more details.
15164     * @see elm_list_item_append()
15165     *
15166     * @ingroup List
15167     */
15168    EAPI const char      *elm_list_item_label_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15169
15170    /**
15171     * Set the label of item.
15172     *
15173     * @param item The item of list.
15174     * @param text The label of item.
15175     *
15176     * The label to be displayed by the item.
15177     * Label will be placed between left and right side icons (if set).
15178     *
15179     * If a label was passed as argument on item creation, with function
15180     * elm_list_item_append() or similar, it will be already
15181     * displayed by the item.
15182     *
15183     * @see elm_list_item_label_get()
15184     * @see elm_list_item_append()
15185     *
15186     * @ingroup List
15187     */
15188    EAPI void             elm_list_item_label_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
15189
15190
15191    /**
15192     * Get the item before @p it in list.
15193     *
15194     * @param it The list item.
15195     * @return The item before @p it, or @c NULL if none or on failure.
15196     *
15197     * @note If it is the first item, @c NULL will be returned.
15198     *
15199     * @see elm_list_item_append()
15200     * @see elm_list_items_get()
15201     *
15202     * @ingroup List
15203     */
15204    EAPI Elm_List_Item   *elm_list_item_prev(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15205
15206    /**
15207     * Get the item after @p it in list.
15208     *
15209     * @param it The list item.
15210     * @return The item after @p it, or @c NULL if none or on failure.
15211     *
15212     * @note If it is the last item, @c NULL will be returned.
15213     *
15214     * @see elm_list_item_append()
15215     * @see elm_list_items_get()
15216     *
15217     * @ingroup List
15218     */
15219    EAPI Elm_List_Item   *elm_list_item_next(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15220
15221    /**
15222     * Sets the disabled/enabled state of a list item.
15223     *
15224     * @param it The item.
15225     * @param disabled The disabled state.
15226     *
15227     * A disabled item cannot be selected or unselected. It will also
15228     * change its appearance (generally greyed out). This sets the
15229     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
15230     * enabled).
15231     *
15232     * @ingroup List
15233     */
15234    EAPI void             elm_list_item_disabled_set(Elm_List_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
15235
15236    /**
15237     * Get a value whether list item is disabled or not.
15238     *
15239     * @param it The item.
15240     * @return The disabled state.
15241     *
15242     * @see elm_list_item_disabled_set() for more details.
15243     *
15244     * @ingroup List
15245     */
15246    EAPI Eina_Bool        elm_list_item_disabled_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15247
15248    /**
15249     * Set the text to be shown in a given list item's tooltips.
15250     *
15251     * @param item Target item.
15252     * @param text The text to set in the content.
15253     *
15254     * Setup the text as tooltip to object. The item can have only one tooltip,
15255     * so any previous tooltip data - set with this function or
15256     * elm_list_item_tooltip_content_cb_set() - is removed.
15257     *
15258     * @see elm_object_tooltip_text_set() for more details.
15259     *
15260     * @ingroup List
15261     */
15262    EAPI void             elm_list_item_tooltip_text_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
15263
15264
15265    /**
15266     * @brief Disable size restrictions on an object's tooltip
15267     * @param item The tooltip's anchor object
15268     * @param disable If EINA_TRUE, size restrictions are disabled
15269     * @return EINA_FALSE on failure, EINA_TRUE on success
15270     *
15271     * This function allows a tooltip to expand beyond its parant window's canvas.
15272     * It will instead be limited only by the size of the display.
15273     */
15274    EAPI Eina_Bool        elm_list_item_tooltip_size_restrict_disable(Elm_List_Item *item, Eina_Bool disable) EINA_ARG_NONNULL(1);
15275    /**
15276     * @brief Retrieve size restriction state of an object's tooltip
15277     * @param obj The tooltip's anchor object
15278     * @return If EINA_TRUE, size restrictions are disabled
15279     *
15280     * This function returns whether a tooltip is allowed to expand beyond
15281     * its parant window's canvas.
15282     * It will instead be limited only by the size of the display.
15283     */
15284    EAPI Eina_Bool        elm_list_item_tooltip_size_restrict_disabled_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15285
15286    /**
15287     * Set the content to be shown in the tooltip item.
15288     *
15289     * Setup the tooltip to item. The item can have only one tooltip,
15290     * so any previous tooltip data is removed. @p func(with @p data) will
15291     * be called every time that need show the tooltip and it should
15292     * return a valid Evas_Object. This object is then managed fully by
15293     * tooltip system and is deleted when the tooltip is gone.
15294     *
15295     * @param item the list item being attached a tooltip.
15296     * @param func the function used to create the tooltip contents.
15297     * @param data what to provide to @a func as callback data/context.
15298     * @param del_cb called when data is not needed anymore, either when
15299     *        another callback replaces @a func, the tooltip is unset with
15300     *        elm_list_item_tooltip_unset() or the owner @a item
15301     *        dies. This callback receives as the first parameter the
15302     *        given @a data, and @c event_info is the item.
15303     *
15304     * @see elm_object_tooltip_content_cb_set() for more details.
15305     *
15306     * @ingroup List
15307     */
15308    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);
15309
15310    /**
15311     * Unset tooltip from item.
15312     *
15313     * @param item list item to remove previously set tooltip.
15314     *
15315     * Remove tooltip from item. The callback provided as del_cb to
15316     * elm_list_item_tooltip_content_cb_set() will be called to notify
15317     * it is not used anymore.
15318     *
15319     * @see elm_object_tooltip_unset() for more details.
15320     * @see elm_list_item_tooltip_content_cb_set()
15321     *
15322     * @ingroup List
15323     */
15324    EAPI void             elm_list_item_tooltip_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15325
15326    /**
15327     * Sets a different style for this item tooltip.
15328     *
15329     * @note before you set a style you should define a tooltip with
15330     *       elm_list_item_tooltip_content_cb_set() or
15331     *       elm_list_item_tooltip_text_set()
15332     *
15333     * @param item list item with tooltip already set.
15334     * @param style the theme style to use (default, transparent, ...)
15335     *
15336     * @see elm_object_tooltip_style_set() for more details.
15337     *
15338     * @ingroup List
15339     */
15340    EAPI void             elm_list_item_tooltip_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
15341
15342    /**
15343     * Get the style for this item tooltip.
15344     *
15345     * @param item list item with tooltip already set.
15346     * @return style the theme style in use, defaults to "default". If the
15347     *         object does not have a tooltip set, then NULL is returned.
15348     *
15349     * @see elm_object_tooltip_style_get() for more details.
15350     * @see elm_list_item_tooltip_style_set()
15351     *
15352     * @ingroup List
15353     */
15354    EAPI const char      *elm_list_item_tooltip_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15355
15356    /**
15357     * Set the type of mouse pointer/cursor decoration to be shown,
15358     * when the mouse pointer is over the given list widget item
15359     *
15360     * @param item list item to customize cursor on
15361     * @param cursor the cursor type's name
15362     *
15363     * This function works analogously as elm_object_cursor_set(), but
15364     * here the cursor's changing area is restricted to the item's
15365     * area, and not the whole widget's. Note that that item cursors
15366     * have precedence over widget cursors, so that a mouse over an
15367     * item with custom cursor set will always show @b that cursor.
15368     *
15369     * If this function is called twice for an object, a previously set
15370     * cursor will be unset on the second call.
15371     *
15372     * @see elm_object_cursor_set()
15373     * @see elm_list_item_cursor_get()
15374     * @see elm_list_item_cursor_unset()
15375     *
15376     * @ingroup List
15377     */
15378    EAPI void             elm_list_item_cursor_set(Elm_List_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
15379
15380    /*
15381     * Get the type of mouse pointer/cursor decoration set to be shown,
15382     * when the mouse pointer is over the given list widget item
15383     *
15384     * @param item list item with custom cursor set
15385     * @return the cursor type's name or @c NULL, if no custom cursors
15386     * were set to @p item (and on errors)
15387     *
15388     * @see elm_object_cursor_get()
15389     * @see elm_list_item_cursor_set()
15390     * @see elm_list_item_cursor_unset()
15391     *
15392     * @ingroup List
15393     */
15394    EAPI const char      *elm_list_item_cursor_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15395
15396    /**
15397     * Unset any custom mouse pointer/cursor decoration set to be
15398     * shown, when the mouse pointer is over the given list widget
15399     * item, thus making it show the @b default cursor again.
15400     *
15401     * @param item a list item
15402     *
15403     * Use this call to undo any custom settings on this item's cursor
15404     * decoration, bringing it back to defaults (no custom style set).
15405     *
15406     * @see elm_object_cursor_unset()
15407     * @see elm_list_item_cursor_set()
15408     *
15409     * @ingroup List
15410     */
15411    EAPI void             elm_list_item_cursor_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15412
15413    /**
15414     * Set a different @b style for a given custom cursor set for a
15415     * list item.
15416     *
15417     * @param item list item with custom cursor set
15418     * @param style the <b>theme style</b> to use (e.g. @c "default",
15419     * @c "transparent", etc)
15420     *
15421     * This function only makes sense when one is using custom mouse
15422     * cursor decorations <b>defined in a theme file</b>, which can have,
15423     * given a cursor name/type, <b>alternate styles</b> on it. It
15424     * works analogously as elm_object_cursor_style_set(), but here
15425     * applyed only to list item objects.
15426     *
15427     * @warning Before you set a cursor style you should have definen a
15428     *       custom cursor previously on the item, with
15429     *       elm_list_item_cursor_set()
15430     *
15431     * @see elm_list_item_cursor_engine_only_set()
15432     * @see elm_list_item_cursor_style_get()
15433     *
15434     * @ingroup List
15435     */
15436    EAPI void             elm_list_item_cursor_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
15437
15438    /**
15439     * Get the current @b style set for a given list item's custom
15440     * cursor
15441     *
15442     * @param item list item with custom cursor set.
15443     * @return style the cursor style in use. If the object does not
15444     *         have a cursor set, then @c NULL is returned.
15445     *
15446     * @see elm_list_item_cursor_style_set() for more details
15447     *
15448     * @ingroup List
15449     */
15450    EAPI const char      *elm_list_item_cursor_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15451
15452    /**
15453     * Set if the (custom)cursor for a given list item should be
15454     * searched in its theme, also, or should only rely on the
15455     * rendering engine.
15456     *
15457     * @param item item with custom (custom) cursor already set on
15458     * @param engine_only Use @c EINA_TRUE to have cursors looked for
15459     * only on those provided by the rendering engine, @c EINA_FALSE to
15460     * have them searched on the widget's theme, as well.
15461     *
15462     * @note This call is of use only if you've set a custom cursor
15463     * for list items, with elm_list_item_cursor_set().
15464     *
15465     * @note By default, cursors will only be looked for between those
15466     * provided by the rendering engine.
15467     *
15468     * @ingroup List
15469     */
15470    EAPI void             elm_list_item_cursor_engine_only_set(Elm_List_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
15471
15472    /**
15473     * Get if the (custom) cursor for a given list item is being
15474     * searched in its theme, also, or is only relying on the rendering
15475     * engine.
15476     *
15477     * @param item a list item
15478     * @return @c EINA_TRUE, if cursors are being looked for only on
15479     * those provided by the rendering engine, @c EINA_FALSE if they
15480     * are being searched on the widget's theme, as well.
15481     *
15482     * @see elm_list_item_cursor_engine_only_set(), for more details
15483     *
15484     * @ingroup List
15485     */
15486    EAPI Eina_Bool        elm_list_item_cursor_engine_only_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15487
15488    /**
15489     * @}
15490     */
15491
15492    /**
15493     * @defgroup Slider Slider
15494     * @ingroup Elementary
15495     *
15496     * @image html img/widget/slider/preview-00.png
15497     * @image latex img/widget/slider/preview-00.eps width=\textwidth
15498     *
15499     * The slider adds a dragable “slider” widget for selecting the value of
15500     * something within a range.
15501     *
15502     * A slider can be horizontal or vertical. It can contain an Icon and has a
15503     * primary label as well as a units label (that is formatted with floating
15504     * point values and thus accepts a printf-style format string, like
15505     * “%1.2f units”. There is also an indicator string that may be somewhere
15506     * else (like on the slider itself) that also accepts a format string like
15507     * units. Label, Icon Unit and Indicator strings/objects are optional.
15508     *
15509     * A slider may be inverted which means values invert, with high vales being
15510     * on the left or top and low values on the right or bottom (as opposed to
15511     * normally being low on the left or top and high on the bottom and right).
15512     *
15513     * The slider should have its minimum and maximum values set by the
15514     * application with  elm_slider_min_max_set() and value should also be set by
15515     * the application before use with  elm_slider_value_set(). The span of the
15516     * slider is its length (horizontally or vertically). This will be scaled by
15517     * the object or applications scaling factor. At any point code can query the
15518     * slider for its value with elm_slider_value_get().
15519     *
15520     * Smart callbacks one can listen to:
15521     * - "changed" - Whenever the slider value is changed by the user.
15522     * - "slider,drag,start" - dragging the slider indicator around has started.
15523     * - "slider,drag,stop" - dragging the slider indicator around has stopped.
15524     * - "delay,changed" - A short time after the value is changed by the user.
15525     * This will be called only when the user stops dragging for
15526     * a very short period or when they release their
15527     * finger/mouse, so it avoids possibly expensive reactions to
15528     * the value change.
15529     *
15530     * Available styles for it:
15531     * - @c "default"
15532     *
15533     * Here is an example on its usage:
15534     * @li @ref slider_example
15535     */
15536
15537    /**
15538     * @addtogroup Slider
15539     * @{
15540     */
15541
15542    /**
15543     * Add a new slider widget to the given parent Elementary
15544     * (container) object.
15545     *
15546     * @param parent The parent object.
15547     * @return a new slider widget handle or @c NULL, on errors.
15548     *
15549     * This function inserts a new slider widget on the canvas.
15550     *
15551     * @ingroup Slider
15552     */
15553    EAPI Evas_Object       *elm_slider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
15554
15555    /**
15556     * Set the label of a given slider widget
15557     *
15558     * @param obj The progress bar object
15559     * @param label The text label string, in UTF-8
15560     *
15561     * @ingroup Slider
15562     * @deprecated use elm_object_text_set() instead.
15563     */
15564    EINA_DEPRECATED EAPI void               elm_slider_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
15565
15566    /**
15567     * Get the label of a given slider widget
15568     *
15569     * @param obj The progressbar object
15570     * @return The text label string, in UTF-8
15571     *
15572     * @ingroup Slider
15573     * @deprecated use elm_object_text_get() instead.
15574     */
15575    EINA_DEPRECATED EAPI const char        *elm_slider_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15576
15577    /**
15578     * Set the icon object of the slider object.
15579     *
15580     * @param obj The slider object.
15581     * @param icon The icon object.
15582     *
15583     * On horizontal mode, icon is placed at left, and on vertical mode,
15584     * placed at top.
15585     *
15586     * @note Once the icon object is set, a previously set one will be deleted.
15587     * If you want to keep that old content object, use the
15588     * elm_slider_icon_unset() function.
15589     *
15590     * @warning If the object being set does not have minimum size hints set,
15591     * it won't get properly displayed.
15592     *
15593     * @ingroup Slider
15594     */
15595    EAPI void               elm_slider_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
15596
15597    /**
15598     * Unset an icon set on a given slider widget.
15599     *
15600     * @param obj The slider object.
15601     * @return The icon object that was being used, if any was set, or
15602     * @c NULL, otherwise (and on errors).
15603     *
15604     * On horizontal mode, icon is placed at left, and on vertical mode,
15605     * placed at top.
15606     *
15607     * This call will unparent and return the icon object which was set
15608     * for this widget, previously, on success.
15609     *
15610     * @see elm_slider_icon_set() for more details
15611     * @see elm_slider_icon_get()
15612     *
15613     * @ingroup Slider
15614     */
15615    EAPI Evas_Object       *elm_slider_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
15616
15617    /**
15618     * Retrieve the icon object set for a given slider widget.
15619     *
15620     * @param obj The slider object.
15621     * @return The icon object's handle, if @p obj had one set, or @c NULL,
15622     * otherwise (and on errors).
15623     *
15624     * On horizontal mode, icon is placed at left, and on vertical mode,
15625     * placed at top.
15626     *
15627     * @see elm_slider_icon_set() for more details
15628     * @see elm_slider_icon_unset()
15629     *
15630     * @ingroup Slider
15631     */
15632    EAPI Evas_Object       *elm_slider_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15633
15634    /**
15635     * Set the end object of the slider object.
15636     *
15637     * @param obj The slider object.
15638     * @param end The end object.
15639     *
15640     * On horizontal mode, end is placed at left, and on vertical mode,
15641     * placed at bottom.
15642     *
15643     * @note Once the icon object is set, a previously set one will be deleted.
15644     * If you want to keep that old content object, use the
15645     * elm_slider_end_unset() function.
15646     *
15647     * @warning If the object being set does not have minimum size hints set,
15648     * it won't get properly displayed.
15649     *
15650     * @ingroup Slider
15651     */
15652    EAPI void               elm_slider_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1);
15653
15654    /**
15655     * Unset an end object set on a given slider widget.
15656     *
15657     * @param obj The slider object.
15658     * @return The end object that was being used, if any was set, or
15659     * @c NULL, otherwise (and on errors).
15660     *
15661     * On horizontal mode, end is placed at left, and on vertical mode,
15662     * placed at bottom.
15663     *
15664     * This call will unparent and return the icon object which was set
15665     * for this widget, previously, on success.
15666     *
15667     * @see elm_slider_end_set() for more details.
15668     * @see elm_slider_end_get()
15669     *
15670     * @ingroup Slider
15671     */
15672    EAPI Evas_Object       *elm_slider_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
15673
15674    /**
15675     * Retrieve the end object set for a given slider widget.
15676     *
15677     * @param obj The slider object.
15678     * @return The end object's handle, if @p obj had one set, or @c NULL,
15679     * otherwise (and on errors).
15680     *
15681     * On horizontal mode, icon is placed at right, and on vertical mode,
15682     * placed at bottom.
15683     *
15684     * @see elm_slider_end_set() for more details.
15685     * @see elm_slider_end_unset()
15686     *
15687     * @ingroup Slider
15688     */
15689    EAPI Evas_Object       *elm_slider_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15690
15691    /**
15692     * Set the (exact) length of the bar region of a given slider widget.
15693     *
15694     * @param obj The slider object.
15695     * @param size The length of the slider's bar region.
15696     *
15697     * This sets the minimum width (when in horizontal mode) or height
15698     * (when in vertical mode) of the actual bar area of the slider
15699     * @p obj. This in turn affects the object's minimum size. Use
15700     * this when you're not setting other size hints expanding on the
15701     * given direction (like weight and alignment hints) and you would
15702     * like it to have a specific size.
15703     *
15704     * @note Icon, end, label, indicator and unit text around @p obj
15705     * will require their
15706     * own space, which will make @p obj to require more the @p size,
15707     * actually.
15708     *
15709     * @see elm_slider_span_size_get()
15710     *
15711     * @ingroup Slider
15712     */
15713    EAPI void               elm_slider_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
15714
15715    /**
15716     * Get the length set for the bar region of a given slider widget
15717     *
15718     * @param obj The slider object.
15719     * @return The length of the slider's bar region.
15720     *
15721     * If that size was not set previously, with
15722     * elm_slider_span_size_set(), this call will return @c 0.
15723     *
15724     * @ingroup Slider
15725     */
15726    EAPI Evas_Coord         elm_slider_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15727
15728    /**
15729     * Set the format string for the unit label.
15730     *
15731     * @param obj The slider object.
15732     * @param format The format string for the unit display.
15733     *
15734     * Unit label is displayed all the time, if set, after slider's bar.
15735     * In horizontal mode, at right and in vertical mode, at bottom.
15736     *
15737     * If @c NULL, unit label won't be visible. If not it sets the format
15738     * string for the label text. To the label text is provided a floating point
15739     * value, so the label text can display up to 1 floating point value.
15740     * Note that this is optional.
15741     *
15742     * Use a format string such as "%1.2f meters" for example, and it will
15743     * display values like: "3.14 meters" for a value equal to 3.14159.
15744     *
15745     * Default is unit label disabled.
15746     *
15747     * @see elm_slider_indicator_format_get()
15748     *
15749     * @ingroup Slider
15750     */
15751    EAPI void               elm_slider_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
15752
15753    /**
15754     * Get the unit label format of the slider.
15755     *
15756     * @param obj The slider object.
15757     * @return The unit label format string in UTF-8.
15758     *
15759     * Unit label is displayed all the time, if set, after slider's bar.
15760     * In horizontal mode, at right and in vertical mode, at bottom.
15761     *
15762     * @see elm_slider_unit_format_set() for more
15763     * information on how this works.
15764     *
15765     * @ingroup Slider
15766     */
15767    EAPI const char        *elm_slider_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15768
15769    /**
15770     * Set the format string for the indicator label.
15771     *
15772     * @param obj The slider object.
15773     * @param indicator The format string for the indicator display.
15774     *
15775     * The slider may display its value somewhere else then unit label,
15776     * for example, above the slider knob that is dragged around. This function
15777     * sets the format string used for this.
15778     *
15779     * If @c NULL, indicator label won't be visible. If not it sets the format
15780     * string for the label text. To the label text is provided a floating point
15781     * value, so the label text can display up to 1 floating point value.
15782     * Note that this is optional.
15783     *
15784     * Use a format string such as "%1.2f meters" for example, and it will
15785     * display values like: "3.14 meters" for a value equal to 3.14159.
15786     *
15787     * Default is indicator label disabled.
15788     *
15789     * @see elm_slider_indicator_format_get()
15790     *
15791     * @ingroup Slider
15792     */
15793    EAPI void               elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator) EINA_ARG_NONNULL(1);
15794
15795    /**
15796     * Get the indicator label format of the slider.
15797     *
15798     * @param obj The slider object.
15799     * @return The indicator label format string in UTF-8.
15800     *
15801     * The slider may display its value somewhere else then unit label,
15802     * for example, above the slider knob that is dragged around. This function
15803     * gets the format string used for this.
15804     *
15805     * @see elm_slider_indicator_format_set() for more
15806     * information on how this works.
15807     *
15808     * @ingroup Slider
15809     */
15810    EAPI const char        *elm_slider_indicator_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15811
15812    /**
15813     * Set the format function pointer for the indicator label
15814     *
15815     * @param obj The slider object.
15816     * @param func The indicator format function.
15817     * @param free_func The freeing function for the format string.
15818     *
15819     * Set the callback function to format the indicator string.
15820     *
15821     * @see elm_slider_indicator_format_set() for more info on how this works.
15822     *
15823     * @ingroup Slider
15824     */
15825   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);
15826
15827   /**
15828    * Set the format function pointer for the units label
15829    *
15830    * @param obj The slider object.
15831    * @param func The units format function.
15832    * @param free_func The freeing function for the format string.
15833    *
15834    * Set the callback function to format the indicator string.
15835    *
15836    * @see elm_slider_units_format_set() for more info on how this works.
15837    *
15838    * @ingroup Slider
15839    */
15840   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);
15841
15842   /**
15843    * Set the orientation of a given slider widget.
15844    *
15845    * @param obj The slider object.
15846    * @param horizontal Use @c EINA_TRUE to make @p obj to be
15847    * @b horizontal, @c EINA_FALSE to make it @b vertical.
15848    *
15849    * Use this function to change how your slider is to be
15850    * disposed: vertically or horizontally.
15851    *
15852    * By default it's displayed horizontally.
15853    *
15854    * @see elm_slider_horizontal_get()
15855    *
15856    * @ingroup Slider
15857    */
15858    EAPI void               elm_slider_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
15859
15860    /**
15861     * Retrieve the orientation of a given slider widget
15862     *
15863     * @param obj The slider object.
15864     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
15865     * @c EINA_FALSE if it's @b vertical (and on errors).
15866     *
15867     * @see elm_slider_horizontal_set() for more details.
15868     *
15869     * @ingroup Slider
15870     */
15871    EAPI Eina_Bool          elm_slider_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15872
15873    /**
15874     * Set the minimum and maximum values for the slider.
15875     *
15876     * @param obj The slider object.
15877     * @param min The minimum value.
15878     * @param max The maximum value.
15879     *
15880     * Define the allowed range of values to be selected by the user.
15881     *
15882     * If actual value is less than @p min, it will be updated to @p min. If it
15883     * is bigger then @p max, will be updated to @p max. Actual value can be
15884     * get with elm_slider_value_get().
15885     *
15886     * By default, min is equal to 0.0, and max is equal to 1.0.
15887     *
15888     * @warning Maximum must be greater than minimum, otherwise behavior
15889     * is undefined.
15890     *
15891     * @see elm_slider_min_max_get()
15892     *
15893     * @ingroup Slider
15894     */
15895    EAPI void               elm_slider_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
15896
15897    /**
15898     * Get the minimum and maximum values of the slider.
15899     *
15900     * @param obj The slider object.
15901     * @param min Pointer where to store the minimum value.
15902     * @param max Pointer where to store the maximum value.
15903     *
15904     * @note If only one value is needed, the other pointer can be passed
15905     * as @c NULL.
15906     *
15907     * @see elm_slider_min_max_set() for details.
15908     *
15909     * @ingroup Slider
15910     */
15911    EAPI void               elm_slider_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
15912
15913    /**
15914     * Set the value the slider displays.
15915     *
15916     * @param obj The slider object.
15917     * @param val The value to be displayed.
15918     *
15919     * Value will be presented on the unit label following format specified with
15920     * elm_slider_unit_format_set() and on indicator with
15921     * elm_slider_indicator_format_set().
15922     *
15923     * @warning The value must to be between min and max values. This values
15924     * are set by elm_slider_min_max_set().
15925     *
15926     * @see elm_slider_value_get()
15927     * @see elm_slider_unit_format_set()
15928     * @see elm_slider_indicator_format_set()
15929     * @see elm_slider_min_max_set()
15930     *
15931     * @ingroup Slider
15932     */
15933    EAPI void               elm_slider_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
15934
15935    /**
15936     * Get the value displayed by the spinner.
15937     *
15938     * @param obj The spinner object.
15939     * @return The value displayed.
15940     *
15941     * @see elm_spinner_value_set() for details.
15942     *
15943     * @ingroup Slider
15944     */
15945    EAPI double             elm_slider_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15946
15947    /**
15948     * Invert a given slider widget's displaying values order
15949     *
15950     * @param obj The slider object.
15951     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
15952     * @c EINA_FALSE to bring it back to default, non-inverted values.
15953     *
15954     * A slider may be @b inverted, in which state it gets its
15955     * values inverted, with high vales being on the left or top and
15956     * low values on the right or bottom, as opposed to normally have
15957     * the low values on the former and high values on the latter,
15958     * respectively, for horizontal and vertical modes.
15959     *
15960     * @see elm_slider_inverted_get()
15961     *
15962     * @ingroup Slider
15963     */
15964    EAPI void               elm_slider_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
15965
15966    /**
15967     * Get whether a given slider widget's displaying values are
15968     * inverted or not.
15969     *
15970     * @param obj The slider object.
15971     * @return @c EINA_TRUE, if @p obj has inverted values,
15972     * @c EINA_FALSE otherwise (and on errors).
15973     *
15974     * @see elm_slider_inverted_set() for more details.
15975     *
15976     * @ingroup Slider
15977     */
15978    EAPI Eina_Bool          elm_slider_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15979
15980    /**
15981     * Set whether to enlarge slider indicator (augmented knob) or not.
15982     *
15983     * @param obj The slider object.
15984     * @param show @c EINA_TRUE will make it enlarge, @c EINA_FALSE will
15985     * let the knob always at default size.
15986     *
15987     * By default, indicator will be bigger while dragged by the user.
15988     *
15989     * @warning It won't display values set with
15990     * elm_slider_indicator_format_set() if you disable indicator.
15991     *
15992     * @ingroup Slider
15993     */
15994    EAPI void               elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show) EINA_ARG_NONNULL(1);
15995
15996    /**
15997     * Get whether a given slider widget's enlarging indicator or not.
15998     *
15999     * @param obj The slider object.
16000     * @return @c EINA_TRUE, if @p obj is enlarging indicator, or
16001     * @c EINA_FALSE otherwise (and on errors).
16002     *
16003     * @see elm_slider_indicator_show_set() for details.
16004     *
16005     * @ingroup Slider
16006     */
16007    EAPI Eina_Bool          elm_slider_indicator_show_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16008
16009    /**
16010     * @}
16011     */
16012
16013    /**
16014     * @addtogroup Actionslider Actionslider
16015     *
16016     * @image html img/widget/actionslider/preview-00.png
16017     * @image latex img/widget/actionslider/preview-00.eps
16018     *
16019     * A actionslider is a switcher for 2 or 3 labels with customizable magnet
16020     * properties. The indicator is the element the user drags to choose a label.
16021     * When the position is set with magnet, when released the indicator will be
16022     * moved to it if it's nearest the magnetized position.
16023     *
16024     * @note By default all positions are set as enabled.
16025     *
16026     * Signals that you can add callbacks for are:
16027     *
16028     * "selected" - when user selects an enabled position (the label is passed
16029     *              as event info)".
16030     * @n
16031     * "pos_changed" - when the indicator reaches any of the positions("left",
16032     *                 "right" or "center").
16033     *
16034     * See an example of actionslider usage @ref actionslider_example_page "here"
16035     * @{
16036     */
16037    typedef enum _Elm_Actionslider_Pos
16038      {
16039         ELM_ACTIONSLIDER_NONE = 0,
16040         ELM_ACTIONSLIDER_LEFT = 1 << 0,
16041         ELM_ACTIONSLIDER_CENTER = 1 << 1,
16042         ELM_ACTIONSLIDER_RIGHT = 1 << 2,
16043         ELM_ACTIONSLIDER_ALL = (1 << 3) -1
16044      } Elm_Actionslider_Pos;
16045
16046    /**
16047     * Add a new actionslider to the parent.
16048     *
16049     * @param parent The parent object
16050     * @return The new actionslider object or NULL if it cannot be created
16051     */
16052    EAPI Evas_Object          *elm_actionslider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16053    /**
16054     * Set actionslider labels.
16055     *
16056     * @param obj The actionslider object
16057     * @param left_label The label to be set on the left.
16058     * @param center_label The label to be set on the center.
16059     * @param right_label The label to be set on the right.
16060     * @deprecated use elm_object_text_set() instead.
16061     */
16062    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);
16063    /**
16064     * Get actionslider labels.
16065     *
16066     * @param obj The actionslider object
16067     * @param left_label A char** to place the left_label of @p obj into.
16068     * @param center_label A char** to place the center_label of @p obj into.
16069     * @param right_label A char** to place the right_label of @p obj into.
16070     * @deprecated use elm_object_text_set() instead.
16071     */
16072    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);
16073    /**
16074     * Get actionslider selected label.
16075     *
16076     * @param obj The actionslider object
16077     * @return The selected label
16078     */
16079    EAPI const char           *elm_actionslider_selected_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16080    /**
16081     * Set actionslider indicator position.
16082     *
16083     * @param obj The actionslider object.
16084     * @param pos The position of the indicator.
16085     */
16086    EAPI void                  elm_actionslider_indicator_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
16087    /**
16088     * Get actionslider indicator position.
16089     *
16090     * @param obj The actionslider object.
16091     * @return The position of the indicator.
16092     */
16093    EAPI Elm_Actionslider_Pos  elm_actionslider_indicator_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16094    /**
16095     * Set actionslider magnet position. To make multiple positions magnets @c or
16096     * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT)
16097     *
16098     * @param obj The actionslider object.
16099     * @param pos Bit mask indicating the magnet positions.
16100     */
16101    EAPI void                  elm_actionslider_magnet_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
16102    /**
16103     * Get actionslider magnet position.
16104     *
16105     * @param obj The actionslider object.
16106     * @return The positions with magnet property.
16107     */
16108    EAPI Elm_Actionslider_Pos  elm_actionslider_magnet_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16109    /**
16110     * Set actionslider enabled position. To set multiple positions as enabled @c or
16111     * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT).
16112     *
16113     * @note All the positions are enabled by default.
16114     *
16115     * @param obj The actionslider object.
16116     * @param pos Bit mask indicating the enabled positions.
16117     */
16118    EAPI void                  elm_actionslider_enabled_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
16119    /**
16120     * Get actionslider enabled position.
16121     *
16122     * @param obj The actionslider object.
16123     * @return The enabled positions.
16124     */
16125    EAPI Elm_Actionslider_Pos  elm_actionslider_enabled_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16126    /**
16127     * Set the label used on the indicator.
16128     *
16129     * @param obj The actionslider object
16130     * @param label The label to be set on the indicator.
16131     * @deprecated use elm_object_text_set() instead.
16132     */
16133    EINA_DEPRECATED EAPI void                  elm_actionslider_indicator_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
16134    /**
16135     * Get the label used on the indicator object.
16136     *
16137     * @param obj The actionslider object
16138     * @return The indicator label
16139     * @deprecated use elm_object_text_get() instead.
16140     */
16141    EINA_DEPRECATED EAPI const char           *elm_actionslider_indicator_label_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
16142    /**
16143     * @}
16144     */
16145
16146    /**
16147     * @defgroup Genlist Genlist
16148     *
16149     * @image html img/widget/genlist/preview-00.png
16150     * @image latex img/widget/genlist/preview-00.eps
16151     * @image html img/genlist.png
16152     * @image latex img/genlist.eps
16153     *
16154     * This widget aims to have more expansive list than the simple list in
16155     * Elementary that could have more flexible items and allow many more entries
16156     * while still being fast and low on memory usage. At the same time it was
16157     * also made to be able to do tree structures. But the price to pay is more
16158     * complexity when it comes to usage. If all you want is a simple list with
16159     * icons and a single label, use the normal @ref List object.
16160     *
16161     * Genlist has a fairly large API, mostly because it's relatively complex,
16162     * trying to be both expansive, powerful and efficient. First we will begin
16163     * an overview on the theory behind genlist.
16164     *
16165     * @section Genlist_Item_Class Genlist item classes - creating items
16166     *
16167     * In order to have the ability to add and delete items on the fly, genlist
16168     * implements a class (callback) system where the application provides a
16169     * structure with information about that type of item (genlist may contain
16170     * multiple different items with different classes, states and styles).
16171     * Genlist will call the functions in this struct (methods) when an item is
16172     * "realized" (i.e., created dynamically, while the user is scrolling the
16173     * grid). All objects will simply be deleted when no longer needed with
16174     * evas_object_del(). The #Elm_Genlist_Item_Class structure contains the
16175     * following members:
16176     * - @c item_style - This is a constant string and simply defines the name
16177     *   of the item style. It @b must be specified and the default should be @c
16178     *   "default".
16179     * - @c mode_item_style - This is a constant string and simply defines the
16180     *   name of the style that will be used for mode animations. It can be left
16181     *   as @c NULL if you don't plan to use Genlist mode. See
16182     *   elm_genlist_item_mode_set() for more info.
16183     *
16184     * - @c func - A struct with pointers to functions that will be called when
16185     *   an item is going to be actually created. All of them receive a @c data
16186     *   parameter that will point to the same data passed to
16187     *   elm_genlist_item_append() and related item creation functions, and a @c
16188     *   obj parameter that points to the genlist object itself.
16189     *
16190     * The function pointers inside @c func are @c label_get, @c icon_get, @c
16191     * state_get and @c del. The 3 first functions also receive a @c part
16192     * parameter described below. A brief description of these functions follows:
16193     *
16194     * - @c label_get - The @c part parameter is the name string of one of the
16195     *   existing text parts in the Edje group implementing the item's theme.
16196     *   This function @b must return a strdup'()ed string, as the caller will
16197     *   free() it when done. See #Elm_Genlist_Item_Label_Get_Cb.
16198     * - @c icon_get - The @c part parameter is the name string of one of the
16199     *   existing (icon) swallow parts in the Edje group implementing the item's
16200     *   theme. It must return @c NULL, when no icon is desired, or a valid
16201     *   object handle, otherwise.  The object will be deleted by the genlist on
16202     *   its deletion or when the item is "unrealized".  See
16203     *   #Elm_Genlist_Item_Icon_Get_Cb.
16204     * - @c func.state_get - The @c part parameter is the name string of one of
16205     *   the state parts in the Edje group implementing the item's theme. Return
16206     *   @c EINA_FALSE for false/off or @c EINA_TRUE for true/on. Genlists will
16207     *   emit a signal to its theming Edje object with @c "elm,state,XXX,active"
16208     *   and @c "elm" as "emission" and "source" arguments, respectively, when
16209     *   the state is true (the default is false), where @c XXX is the name of
16210     *   the (state) part.  See #Elm_Genlist_Item_State_Get_Cb.
16211     * - @c func.del - This is intended for use when genlist items are deleted,
16212     *   so any data attached to the item (e.g. its data parameter on creation)
16213     *   can be deleted. See #Elm_Genlist_Item_Del_Cb.
16214     *
16215     * available item styles:
16216     * - default
16217     * - default_style - The text part is a textblock
16218     *
16219     * @image html img/widget/genlist/preview-04.png
16220     * @image latex img/widget/genlist/preview-04.eps
16221     *
16222     * - double_label
16223     *
16224     * @image html img/widget/genlist/preview-01.png
16225     * @image latex img/widget/genlist/preview-01.eps
16226     *
16227     * - icon_top_text_bottom
16228     *
16229     * @image html img/widget/genlist/preview-02.png
16230     * @image latex img/widget/genlist/preview-02.eps
16231     *
16232     * - group_index
16233     *
16234     * @image html img/widget/genlist/preview-03.png
16235     * @image latex img/widget/genlist/preview-03.eps
16236     *
16237     * @section Genlist_Items Structure of items
16238     *
16239     * An item in a genlist can have 0 or more text labels (they can be regular
16240     * text or textblock Evas objects - that's up to the style to determine), 0
16241     * or more icons (which are simply objects swallowed into the genlist item's
16242     * theming Edje object) and 0 or more <b>boolean states</b>, which have the
16243     * behavior left to the user to define. The Edje part names for each of
16244     * these properties will be looked up, in the theme file for the genlist,
16245     * under the Edje (string) data items named @c "labels", @c "icons" and @c
16246     * "states", respectively. For each of those properties, if more than one
16247     * part is provided, they must have names listed separated by spaces in the
16248     * data fields. For the default genlist item theme, we have @b one label
16249     * part (@c "elm.text"), @b two icon parts (@c "elm.swalllow.icon" and @c
16250     * "elm.swallow.end") and @b no state parts.
16251     *
16252     * A genlist item may be at one of several styles. Elementary provides one
16253     * by default - "default", but this can be extended by system or application
16254     * custom themes/overlays/extensions (see @ref Theme "themes" for more
16255     * details).
16256     *
16257     * @section Genlist_Manipulation Editing and Navigating
16258     *
16259     * Items can be added by several calls. All of them return a @ref
16260     * Elm_Genlist_Item handle that is an internal member inside the genlist.
16261     * They all take a data parameter that is meant to be used for a handle to
16262     * the applications internal data (eg the struct with the original item
16263     * data). The parent parameter is the parent genlist item this belongs to if
16264     * it is a tree or an indexed group, and NULL if there is no parent. The
16265     * flags can be a bitmask of #ELM_GENLIST_ITEM_NONE,
16266     * #ELM_GENLIST_ITEM_SUBITEMS and #ELM_GENLIST_ITEM_GROUP. If
16267     * #ELM_GENLIST_ITEM_SUBITEMS is set then this item is displayed as an item
16268     * that is able to expand and have child items.  If ELM_GENLIST_ITEM_GROUP
16269     * is set then this item is group index item that is displayed at the top
16270     * until the next group comes. The func parameter is a convenience callback
16271     * that is called when the item is selected and the data parameter will be
16272     * the func_data parameter, obj be the genlist object and event_info will be
16273     * the genlist item.
16274     *
16275     * elm_genlist_item_append() adds an item to the end of the list, or if
16276     * there is a parent, to the end of all the child items of the parent.
16277     * elm_genlist_item_prepend() is the same but adds to the beginning of
16278     * the list or children list. elm_genlist_item_insert_before() inserts at
16279     * item before another item and elm_genlist_item_insert_after() inserts after
16280     * the indicated item.
16281     *
16282     * The application can clear the list with elm_genlist_clear() which deletes
16283     * all the items in the list and elm_genlist_item_del() will delete a specific
16284     * item. elm_genlist_item_subitems_clear() will clear all items that are
16285     * children of the indicated parent item.
16286     *
16287     * To help inspect list items you can jump to the item at the top of the list
16288     * with elm_genlist_first_item_get() which will return the item pointer, and
16289     * similarly elm_genlist_last_item_get() gets the item at the end of the list.
16290     * elm_genlist_item_next_get() and elm_genlist_item_prev_get() get the next
16291     * and previous items respectively relative to the indicated item. Using
16292     * these calls you can walk the entire item list/tree. Note that as a tree
16293     * the items are flattened in the list, so elm_genlist_item_parent_get() will
16294     * let you know which item is the parent (and thus know how to skip them if
16295     * wanted).
16296     *
16297     * @section Genlist_Muti_Selection Multi-selection
16298     *
16299     * If the application wants multiple items to be able to be selected,
16300     * elm_genlist_multi_select_set() can enable this. If the list is
16301     * single-selection only (the default), then elm_genlist_selected_item_get()
16302     * will return the selected item, if any, or NULL I none is selected. If the
16303     * list is multi-select then elm_genlist_selected_items_get() will return a
16304     * list (that is only valid as long as no items are modified (added, deleted,
16305     * selected or unselected)).
16306     *
16307     * @section Genlist_Usage_Hints Usage hints
16308     *
16309     * There are also convenience functions. elm_genlist_item_genlist_get() will
16310     * return the genlist object the item belongs to. elm_genlist_item_show()
16311     * will make the scroller scroll to show that specific item so its visible.
16312     * elm_genlist_item_data_get() returns the data pointer set by the item
16313     * creation functions.
16314     *
16315     * If an item changes (state of boolean changes, label or icons change),
16316     * then use elm_genlist_item_update() to have genlist update the item with
16317     * the new state. Genlist will re-realize the item thus call the functions
16318     * in the _Elm_Genlist_Item_Class for that item.
16319     *
16320     * To programmatically (un)select an item use elm_genlist_item_selected_set().
16321     * To get its selected state use elm_genlist_item_selected_get(). Similarly
16322     * to expand/contract an item and get its expanded state, use
16323     * elm_genlist_item_expanded_set() and elm_genlist_item_expanded_get(). And
16324     * again to make an item disabled (unable to be selected and appear
16325     * differently) use elm_genlist_item_disabled_set() to set this and
16326     * elm_genlist_item_disabled_get() to get the disabled state.
16327     *
16328     * In general to indicate how the genlist should expand items horizontally to
16329     * fill the list area, use elm_genlist_horizontal_set(). Valid modes are
16330     * ELM_LIST_LIMIT and ELM_LIST_SCROLL . The default is ELM_LIST_SCROLL. This
16331     * mode means that if items are too wide to fit, the scroller will scroll
16332     * horizontally. Otherwise items are expanded to fill the width of the
16333     * viewport of the scroller. If it is ELM_LIST_LIMIT, items will be expanded
16334     * to the viewport width and limited to that size. This can be combined with
16335     * a different style that uses edjes' ellipsis feature (cutting text off like
16336     * this: "tex...").
16337     *
16338     * Items will only call their selection func and callback when first becoming
16339     * selected. Any further clicks will do nothing, unless you enable always
16340     * select with elm_genlist_always_select_mode_set(). This means even if
16341     * selected, every click will make the selected callbacks be called.
16342     * elm_genlist_no_select_mode_set() will turn off the ability to select
16343     * items entirely and they will neither appear selected nor call selected
16344     * callback functions.
16345     *
16346     * Remember that you can create new styles and add your own theme augmentation
16347     * per application with elm_theme_extension_add(). If you absolutely must
16348     * have a specific style that overrides any theme the user or system sets up
16349     * you can use elm_theme_overlay_add() to add such a file.
16350     *
16351     * @section Genlist_Implementation Implementation
16352     *
16353     * Evas tracks every object you create. Every time it processes an event
16354     * (mouse move, down, up etc.) it needs to walk through objects and find out
16355     * what event that affects. Even worse every time it renders display updates,
16356     * in order to just calculate what to re-draw, it needs to walk through many
16357     * many many objects. Thus, the more objects you keep active, the more
16358     * overhead Evas has in just doing its work. It is advisable to keep your
16359     * active objects to the minimum working set you need. Also remember that
16360     * object creation and deletion carries an overhead, so there is a
16361     * middle-ground, which is not easily determined. But don't keep massive lists
16362     * of objects you can't see or use. Genlist does this with list objects. It
16363     * creates and destroys them dynamically as you scroll around. It groups them
16364     * into blocks so it can determine the visibility etc. of a whole block at
16365     * once as opposed to having to walk the whole list. This 2-level list allows
16366     * for very large numbers of items to be in the list (tests have used up to
16367     * 2,000,000 items). Also genlist employs a queue for adding items. As items
16368     * may be different sizes, every item added needs to be calculated as to its
16369     * size and thus this presents a lot of overhead on populating the list, this
16370     * genlist employs a queue. Any item added is queued and spooled off over
16371     * time, actually appearing some time later, so if your list has many members
16372     * you may find it takes a while for them to all appear, with your process
16373     * consuming a lot of CPU while it is busy spooling.
16374     *
16375     * Genlist also implements a tree structure, but it does so with callbacks to
16376     * the application, with the application filling in tree structures when
16377     * requested (allowing for efficient building of a very deep tree that could
16378     * even be used for file-management). See the above smart signal callbacks for
16379     * details.
16380     *
16381     * @section Genlist_Smart_Events Genlist smart events
16382     *
16383     * Signals that you can add callbacks for are:
16384     * - @c "activated" - The user has double-clicked or pressed
16385     *   (enter|return|spacebar) on an item. The @c event_info parameter is the
16386     *   item that was activated.
16387     * - @c "clicked,double" - The user has double-clicked an item.  The @c
16388     *   event_info parameter is the item that was double-clicked.
16389     * - @c "selected" - This is called when a user has made an item selected.
16390     *   The event_info parameter is the genlist item that was selected.
16391     * - @c "unselected" - This is called when a user has made an item
16392     *   unselected. The event_info parameter is the genlist item that was
16393     *   unselected.
16394     * - @c "expanded" - This is called when elm_genlist_item_expanded_set() is
16395     *   called and the item is now meant to be expanded. The event_info
16396     *   parameter is the genlist item that was indicated to expand.  It is the
16397     *   job of this callback to then fill in the child items.
16398     * - @c "contracted" - This is called when elm_genlist_item_expanded_set() is
16399     *   called and the item is now meant to be contracted. The event_info
16400     *   parameter is the genlist item that was indicated to contract. It is the
16401     *   job of this callback to then delete the child items.
16402     * - @c "expand,request" - This is called when a user has indicated they want
16403     *   to expand a tree branch item. The callback should decide if the item can
16404     *   expand (has any children) and then call elm_genlist_item_expanded_set()
16405     *   appropriately to set the state. The event_info parameter is the genlist
16406     *   item that was indicated to expand.
16407     * - @c "contract,request" - This is called when a user has indicated they
16408     *   want to contract a tree branch item. The callback should decide if the
16409     *   item can contract (has any children) and then call
16410     *   elm_genlist_item_expanded_set() appropriately to set the state. The
16411     *   event_info parameter is the genlist item that was indicated to contract.
16412     * - @c "realized" - This is called when the item in the list is created as a
16413     *   real evas object. event_info parameter is the genlist item that was
16414     *   created. The object may be deleted at any time, so it is up to the
16415     *   caller to not use the object pointer from elm_genlist_item_object_get()
16416     *   in a way where it may point to freed objects.
16417     * - @c "unrealized" - This is called just before an item is unrealized.
16418     *   After this call icon objects provided will be deleted and the item
16419     *   object itself delete or be put into a floating cache.
16420     * - @c "drag,start,up" - This is called when the item in the list has been
16421     *   dragged (not scrolled) up.
16422     * - @c "drag,start,down" - This is called when the item in the list has been
16423     *   dragged (not scrolled) down.
16424     * - @c "drag,start,left" - This is called when the item in the list has been
16425     *   dragged (not scrolled) left.
16426     * - @c "drag,start,right" - This is called when the item in the list has
16427     *   been dragged (not scrolled) right.
16428     * - @c "drag,stop" - This is called when the item in the list has stopped
16429     *   being dragged.
16430     * - @c "drag" - This is called when the item in the list is being dragged.
16431     * - @c "longpressed" - This is called when the item is pressed for a certain
16432     *   amount of time. By default it's 1 second.
16433     * - @c "scroll,edge,top" - This is called when the genlist is scrolled until
16434     *   the top edge.
16435     * - @c "scroll,edge,bottom" - This is called when the genlist is scrolled
16436     *   until the bottom edge.
16437     * - @c "scroll,edge,left" - This is called when the genlist is scrolled
16438     *   until the left edge.
16439     * - @c "scroll,edge,right" - This is called when the genlist is scrolled
16440     *   until the right edge.
16441     * - @c "multi,swipe,left" - This is called when the genlist is multi-touch
16442     *   swiped left.
16443     * - @c "multi,swipe,right" - This is called when the genlist is multi-touch
16444     *   swiped right.
16445     * - @c "multi,swipe,up" - This is called when the genlist is multi-touch
16446     *   swiped up.
16447     * - @c "multi,swipe,down" - This is called when the genlist is multi-touch
16448     *   swiped down.
16449     * - @c "multi,pinch,out" - This is called when the genlist is multi-touch
16450     *   pinched out.  "- @c multi,pinch,in" - This is called when the genlist is
16451     *   multi-touch pinched in.
16452     * - @c "swipe" - This is called when the genlist is swiped.
16453     *
16454     * @section Genlist_Examples Examples
16455     *
16456     * Here is a list of examples that use the genlist, trying to show some of
16457     * its capabilities:
16458     * - @ref genlist_example_01
16459     * - @ref genlist_example_02
16460     * - @ref genlist_example_03
16461     * - @ref genlist_example_04
16462     * - @ref genlist_example_05
16463     */
16464
16465    /**
16466     * @addtogroup Genlist
16467     * @{
16468     */
16469
16470    /**
16471     * @enum _Elm_Genlist_Item_Flags
16472     * @typedef Elm_Genlist_Item_Flags
16473     *
16474     * Defines if the item is of any special type (has subitems or it's the
16475     * index of a group), or is just a simple item.
16476     *
16477     * @ingroup Genlist
16478     */
16479    typedef enum _Elm_Genlist_Item_Flags
16480      {
16481         ELM_GENLIST_ITEM_NONE = 0, /**< simple item */
16482         ELM_GENLIST_ITEM_SUBITEMS = (1 << 0), /**< may expand and have child items */
16483         ELM_GENLIST_ITEM_GROUP = (1 << 1) /**< index of a group of items */
16484      } Elm_Genlist_Item_Flags;
16485    typedef struct _Elm_Genlist_Item_Class Elm_Genlist_Item_Class;  /**< Genlist item class definition structs */
16486    typedef struct _Elm_Genlist_Item       Elm_Genlist_Item; /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
16487    typedef struct _Elm_Genlist_Item_Class_Func Elm_Genlist_Item_Class_Func; /**< Class functions for genlist item class */
16488    typedef char        *(*Elm_Genlist_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for genlist item classes. */
16489    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. */
16490    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. */
16491    typedef void         (*Elm_Genlist_Item_Del_Cb)      (void *data, Evas_Object *obj); /**< Deletion class function for genlist item classes. */
16492    typedef void         (*GenlistItemMovedFunc)    (Evas_Object *obj, Elm_Genlist_Item *item, Elm_Genlist_Item *rel_item, Eina_Bool move_after); /** TODO: remove this by SeoZ **/
16493
16494    typedef char        *(*GenlistItemLabelGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_Label_Get_Cb instead. */
16495    typedef Evas_Object *(*GenlistItemIconGetFunc)  (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_Icon_Get_Cb instead. */
16496    typedef Eina_Bool    (*GenlistItemStateGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_State_Get_Cb instead. */
16497    typedef void         (*GenlistItemDelFunc)      (void *data, Evas_Object *obj) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_Del_Cb instead. */
16498
16499    /**
16500     * @struct _Elm_Genlist_Item_Class
16501     *
16502     * Genlist item class definition structs.
16503     *
16504     * This struct contains the style and fetching functions that will define the
16505     * contents of each item.
16506     *
16507     * @see @ref Genlist_Item_Class
16508     */
16509    struct _Elm_Genlist_Item_Class
16510      {
16511         const char                *item_style; /**< style of this class. */
16512         struct
16513           {
16514              Elm_Genlist_Item_Label_Get_Cb  label_get; /**< Label fetching class function for genlist item classes.*/
16515              Elm_Genlist_Item_Icon_Get_Cb   icon_get; /**< Icon fetching class function for genlist item classes. */
16516              Elm_Genlist_Item_State_Get_Cb  state_get; /**< State fetching class function for genlist item classes. */
16517              Elm_Genlist_Item_Del_Cb        del; /**< Deletion class function for genlist item classes. */
16518              GenlistItemMovedFunc     moved; // TODO: do not use this. change this to smart callback.
16519           } func;
16520         const char                *mode_item_style;
16521      };
16522
16523    /**
16524     * Add a new genlist widget to the given parent Elementary
16525     * (container) object
16526     *
16527     * @param parent The parent object
16528     * @return a new genlist widget handle or @c NULL, on errors
16529     *
16530     * This function inserts a new genlist widget on the canvas.
16531     *
16532     * @see elm_genlist_item_append()
16533     * @see elm_genlist_item_del()
16534     * @see elm_genlist_clear()
16535     *
16536     * @ingroup Genlist
16537     */
16538    EAPI Evas_Object      *elm_genlist_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16539    /**
16540     * Remove all items from a given genlist widget.
16541     *
16542     * @param obj The genlist object
16543     *
16544     * This removes (and deletes) all items in @p obj, leaving it empty.
16545     *
16546     * @see elm_genlist_item_del(), to remove just one item.
16547     *
16548     * @ingroup Genlist
16549     */
16550    EAPI void              elm_genlist_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
16551    /**
16552     * Enable or disable multi-selection in the genlist
16553     *
16554     * @param obj The genlist object
16555     * @param multi Multi-select enable/disable. Default is disabled.
16556     *
16557     * This enables (@c EINA_TRUE) or disables (@c EINA_FALSE) multi-selection in
16558     * the list. This allows more than 1 item to be selected. To retrieve the list
16559     * of selected items, use elm_genlist_selected_items_get().
16560     *
16561     * @see elm_genlist_selected_items_get()
16562     * @see elm_genlist_multi_select_get()
16563     *
16564     * @ingroup Genlist
16565     */
16566    EAPI void              elm_genlist_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
16567    /**
16568     * Gets if multi-selection in genlist is enabled or disabled.
16569     *
16570     * @param obj The genlist object
16571     * @return Multi-select enabled/disabled
16572     * (@c EINA_TRUE = enabled/@c EINA_FALSE = disabled). Default is @c EINA_FALSE.
16573     *
16574     * @see elm_genlist_multi_select_set()
16575     *
16576     * @ingroup Genlist
16577     */
16578    EAPI Eina_Bool         elm_genlist_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16579    /**
16580     * This sets the horizontal stretching mode.
16581     *
16582     * @param obj The genlist object
16583     * @param mode The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).
16584     *
16585     * This sets the mode used for sizing items horizontally. Valid modes
16586     * are #ELM_LIST_LIMIT and #ELM_LIST_SCROLL. The default is
16587     * ELM_LIST_SCROLL. This mode means that if items are too wide to fit,
16588     * the scroller will scroll horizontally. Otherwise items are expanded
16589     * to fill the width of the viewport of the scroller. If it is
16590     * ELM_LIST_LIMIT, items will be expanded to the viewport width and
16591     * limited to that size.
16592     *
16593     * @see elm_genlist_horizontal_get()
16594     *
16595     * @ingroup Genlist
16596     */
16597    EAPI void              elm_genlist_horizontal_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
16598    EINA_DEPRECATED EAPI void              elm_genlist_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
16599    /**
16600     * Gets the horizontal stretching mode.
16601     *
16602     * @param obj The genlist object
16603     * @return The mode to use
16604     * (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
16605     *
16606     * @see elm_genlist_horizontal_set()
16607     *
16608     * @ingroup Genlist
16609     */
16610    EAPI Elm_List_Mode     elm_genlist_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16611    EINA_DEPRECATED EAPI Elm_List_Mode     elm_genlist_horizontal_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16612    /**
16613     * Set the always select mode.
16614     *
16615     * @param obj The genlist object
16616     * @param always_select The always select mode (@c EINA_TRUE = on, @c
16617     * EINA_FALSE = off). Default is @c EINA_FALSE.
16618     *
16619     * Items will only call their selection func and callback when first
16620     * becoming selected. Any further clicks will do nothing, unless you
16621     * enable always select with elm_genlist_always_select_mode_set().
16622     * This means that, even if selected, every click will make the selected
16623     * callbacks be called.
16624     *
16625     * @see elm_genlist_always_select_mode_get()
16626     *
16627     * @ingroup Genlist
16628     */
16629    EAPI void              elm_genlist_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
16630    /**
16631     * Get the always select mode.
16632     *
16633     * @param obj The genlist object
16634     * @return The always select mode
16635     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
16636     *
16637     * @see elm_genlist_always_select_mode_set()
16638     *
16639     * @ingroup Genlist
16640     */
16641    EAPI Eina_Bool         elm_genlist_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16642    /**
16643     * Enable/disable the no select mode.
16644     *
16645     * @param obj The genlist object
16646     * @param no_select The no select mode
16647     * (EINA_TRUE = on, EINA_FALSE = off)
16648     *
16649     * This will turn off the ability to select items entirely and they
16650     * will neither appear selected nor call selected callback functions.
16651     *
16652     * @see elm_genlist_no_select_mode_get()
16653     *
16654     * @ingroup Genlist
16655     */
16656    EAPI void              elm_genlist_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
16657    /**
16658     * Gets whether the no select mode is enabled.
16659     *
16660     * @param obj The genlist object
16661     * @return The no select mode
16662     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
16663     *
16664     * @see elm_genlist_no_select_mode_set()
16665     *
16666     * @ingroup Genlist
16667     */
16668    EAPI Eina_Bool         elm_genlist_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16669    /**
16670     * Enable/disable compress mode.
16671     *
16672     * @param obj The genlist object
16673     * @param compress The compress mode
16674     * (@c EINA_TRUE = on, @c EINA_FALSE = off). Default is @c EINA_FALSE.
16675     *
16676     * This will enable the compress mode where items are "compressed"
16677     * horizontally to fit the genlist scrollable viewport width. This is
16678     * special for genlist.  Do not rely on
16679     * elm_genlist_horizontal_set() being set to @c ELM_LIST_COMPRESS to
16680     * work as genlist needs to handle it specially.
16681     *
16682     * @see elm_genlist_compress_mode_get()
16683     *
16684     * @ingroup Genlist
16685     */
16686    EAPI void              elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress) EINA_ARG_NONNULL(1);
16687    /**
16688     * Get whether the compress mode is enabled.
16689     *
16690     * @param obj The genlist object
16691     * @return The compress mode
16692     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
16693     *
16694     * @see elm_genlist_compress_mode_set()
16695     *
16696     * @ingroup Genlist
16697     */
16698    EAPI Eina_Bool         elm_genlist_compress_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16699    /**
16700     * Enable/disable height-for-width mode.
16701     *
16702     * @param obj The genlist object
16703     * @param setting The height-for-width mode (@c EINA_TRUE = on,
16704     * @c EINA_FALSE = off). Default is @c EINA_FALSE.
16705     *
16706     * With height-for-width mode the item width will be fixed (restricted
16707     * to a minimum of) to the list width when calculating its size in
16708     * order to allow the height to be calculated based on it. This allows,
16709     * for instance, text block to wrap lines if the Edje part is
16710     * configured with "text.min: 0 1".
16711     *
16712     * @note This mode will make list resize slower as it will have to
16713     *       recalculate every item height again whenever the list width
16714     *       changes!
16715     *
16716     * @note When height-for-width mode is enabled, it also enables
16717     *       compress mode (see elm_genlist_compress_mode_set()) and
16718     *       disables homogeneous (see elm_genlist_homogeneous_set()).
16719     *
16720     * @ingroup Genlist
16721     */
16722    EAPI void              elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width) EINA_ARG_NONNULL(1);
16723    /**
16724     * Get whether the height-for-width mode is enabled.
16725     *
16726     * @param obj The genlist object
16727     * @return The height-for-width mode (@c EINA_TRUE = on, @c EINA_FALSE =
16728     * off)
16729     *
16730     * @ingroup Genlist
16731     */
16732    EAPI Eina_Bool         elm_genlist_height_for_width_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16733    /**
16734     * Enable/disable horizontal and vertical bouncing effect.
16735     *
16736     * @param obj The genlist object
16737     * @param h_bounce Allow bounce horizontally (@c EINA_TRUE = on, @c
16738     * EINA_FALSE = off). Default is @c EINA_FALSE.
16739     * @param v_bounce Allow bounce vertically (@c EINA_TRUE = on, @c
16740     * EINA_FALSE = off). Default is @c EINA_TRUE.
16741     *
16742     * This will enable or disable the scroller bouncing effect for the
16743     * genlist. See elm_scroller_bounce_set() for details.
16744     *
16745     * @see elm_scroller_bounce_set()
16746     * @see elm_genlist_bounce_get()
16747     *
16748     * @ingroup Genlist
16749     */
16750    EAPI void              elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
16751    /**
16752     * Get whether the horizontal and vertical bouncing effect is enabled.
16753     *
16754     * @param obj The genlist object
16755     * @param h_bounce Pointer to a bool to receive if the bounce horizontally
16756     * option is set.
16757     * @param v_bounce Pointer to a bool to receive if the bounce vertically
16758     * option is set.
16759     *
16760     * @see elm_genlist_bounce_set()
16761     *
16762     * @ingroup Genlist
16763     */
16764    EAPI void              elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
16765    /**
16766     * Enable/disable homogenous mode.
16767     *
16768     * @param obj The genlist object
16769     * @param homogeneous Assume the items within the genlist are of the
16770     * same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is @c
16771     * EINA_FALSE.
16772     *
16773     * This will enable the homogeneous mode where items are of the same
16774     * height and width so that genlist may do the lazy-loading at its
16775     * maximum (which increases the performance for scrolling the list). This
16776     * implies 'compressed' mode.
16777     *
16778     * @see elm_genlist_compress_mode_set()
16779     * @see elm_genlist_homogeneous_get()
16780     *
16781     * @ingroup Genlist
16782     */
16783    EAPI void              elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
16784    /**
16785     * Get whether the homogenous mode is enabled.
16786     *
16787     * @param obj The genlist object
16788     * @return Assume the items within the genlist are of the same height
16789     * and width (EINA_TRUE = on, EINA_FALSE = off)
16790     *
16791     * @see elm_genlist_homogeneous_set()
16792     *
16793     * @ingroup Genlist
16794     */
16795    EAPI Eina_Bool         elm_genlist_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16796    /**
16797     * Set the maximum number of items within an item block
16798     *
16799     * @param obj The genlist object
16800     * @param n   Maximum number of items within an item block. Default is 32.
16801     *
16802     * This will configure the block count to tune to the target with
16803     * particular performance matrix.
16804     *
16805     * A block of objects will be used to reduce the number of operations due to
16806     * many objects in the screen. It can determine the visibility, or if the
16807     * object has changed, it theme needs to be updated, etc. doing this kind of
16808     * calculation to the entire block, instead of per object.
16809     *
16810     * The default value for the block count is enough for most lists, so unless
16811     * you know you will have a lot of objects visible in the screen at the same
16812     * time, don't try to change this.
16813     *
16814     * @see elm_genlist_block_count_get()
16815     * @see @ref Genlist_Implementation
16816     *
16817     * @ingroup Genlist
16818     */
16819    EAPI void              elm_genlist_block_count_set(Evas_Object *obj, int n) EINA_ARG_NONNULL(1);
16820    /**
16821     * Get the maximum number of items within an item block
16822     *
16823     * @param obj The genlist object
16824     * @return Maximum number of items within an item block
16825     *
16826     * @see elm_genlist_block_count_set()
16827     *
16828     * @ingroup Genlist
16829     */
16830    EAPI int               elm_genlist_block_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16831    /**
16832     * Set the timeout in seconds for the longpress event.
16833     *
16834     * @param obj The genlist object
16835     * @param timeout timeout in seconds. Default is 1.
16836     *
16837     * This option will change how long it takes to send an event "longpressed"
16838     * after the mouse down signal is sent to the list. If this event occurs, no
16839     * "clicked" event will be sent.
16840     *
16841     * @see elm_genlist_longpress_timeout_set()
16842     *
16843     * @ingroup Genlist
16844     */
16845    EAPI void              elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
16846    /**
16847     * Get the timeout in seconds for the longpress event.
16848     *
16849     * @param obj The genlist object
16850     * @return timeout in seconds
16851     *
16852     * @see elm_genlist_longpress_timeout_get()
16853     *
16854     * @ingroup Genlist
16855     */
16856    EAPI double            elm_genlist_longpress_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16857    /**
16858     * Append a new item in a given genlist widget.
16859     *
16860     * @param obj The genlist object
16861     * @param itc The item class for the item
16862     * @param data The item data
16863     * @param parent The parent item, or NULL if none
16864     * @param flags Item flags
16865     * @param func Convenience function called when the item is selected
16866     * @param func_data Data passed to @p func above.
16867     * @return A handle to the item added or @c NULL if not possible
16868     *
16869     * This adds the given item to the end of the list or the end of
16870     * the children list if the @p parent is given.
16871     *
16872     * @see elm_genlist_item_prepend()
16873     * @see elm_genlist_item_insert_before()
16874     * @see elm_genlist_item_insert_after()
16875     * @see elm_genlist_item_del()
16876     *
16877     * @ingroup Genlist
16878     */
16879    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);
16880    /**
16881     * Prepend a new item in a given genlist widget.
16882     *
16883     * @param obj The genlist object
16884     * @param itc The item class for the item
16885     * @param data The item data
16886     * @param parent The parent item, or NULL if none
16887     * @param flags Item flags
16888     * @param func Convenience function called when the item is selected
16889     * @param func_data Data passed to @p func above.
16890     * @return A handle to the item added or NULL if not possible
16891     *
16892     * This adds an item to the beginning of the list or beginning of the
16893     * children of the parent if given.
16894     *
16895     * @see elm_genlist_item_append()
16896     * @see elm_genlist_item_insert_before()
16897     * @see elm_genlist_item_insert_after()
16898     * @see elm_genlist_item_del()
16899     *
16900     * @ingroup Genlist
16901     */
16902    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);
16903    /**
16904     * Insert an item before another in a genlist widget
16905     *
16906     * @param obj The genlist object
16907     * @param itc The item class for the item
16908     * @param data The item data
16909     * @param before The item to place this new one before.
16910     * @param flags Item flags
16911     * @param func Convenience function called when the item is selected
16912     * @param func_data Data passed to @p func above.
16913     * @return A handle to the item added or @c NULL if not possible
16914     *
16915     * This inserts an item before another in the list. It will be in the
16916     * same tree level or group as the item it is inserted before.
16917     *
16918     * @see elm_genlist_item_append()
16919     * @see elm_genlist_item_prepend()
16920     * @see elm_genlist_item_insert_after()
16921     * @see elm_genlist_item_del()
16922     *
16923     * @ingroup Genlist
16924     */
16925    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);
16926    /**
16927     * Insert an item after another in a genlist widget
16928     *
16929     * @param obj The genlist object
16930     * @param itc The item class for the item
16931     * @param data The item data
16932     * @param after The item to place this new one after.
16933     * @param flags Item flags
16934     * @param func Convenience function called when the item is selected
16935     * @param func_data Data passed to @p func above.
16936     * @return A handle to the item added or @c NULL if not possible
16937     *
16938     * This inserts an item after another in the list. It will be in the
16939     * same tree level or group as the item it is inserted after.
16940     *
16941     * @see elm_genlist_item_append()
16942     * @see elm_genlist_item_prepend()
16943     * @see elm_genlist_item_insert_before()
16944     * @see elm_genlist_item_del()
16945     *
16946     * @ingroup Genlist
16947     */
16948    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);
16949    /**
16950     * Insert a new item into the sorted genlist object
16951     *
16952     * @param obj The genlist object
16953     * @param itc The item class for the item
16954     * @param data The item data
16955     * @param parent The parent item, or NULL if none
16956     * @param flags Item flags
16957     * @param comp The function called for the sort
16958     * @param func Convenience function called when item selected
16959     * @param func_data Data passed to @p func above.
16960     * @return A handle to the item added or NULL if not possible
16961     *
16962     * @ingroup Genlist
16963     */
16964    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);
16965    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);
16966    /* operations to retrieve existing items */
16967    /**
16968     * Get the selectd item in the genlist.
16969     *
16970     * @param obj The genlist object
16971     * @return The selected item, or NULL if none is selected.
16972     *
16973     * This gets the selected item in the list (if multi-selection is enabled, only
16974     * the item that was first selected in the list is returned - which is not very
16975     * useful, so see elm_genlist_selected_items_get() for when multi-selection is
16976     * used).
16977     *
16978     * If no item is selected, NULL is returned.
16979     *
16980     * @see elm_genlist_selected_items_get()
16981     *
16982     * @ingroup Genlist
16983     */
16984    EAPI Elm_Genlist_Item *elm_genlist_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16985    /**
16986     * Get a list of selected items in the genlist.
16987     *
16988     * @param obj The genlist object
16989     * @return The list of selected items, or NULL if none are selected.
16990     *
16991     * It returns a list of the selected items. This list pointer is only valid so
16992     * long as the selection doesn't change (no items are selected or unselected, or
16993     * unselected implicitly by deletion). The list contains Elm_Genlist_Item
16994     * pointers. The order of the items in this list is the order which they were
16995     * selected, i.e. the first item in this list is the first item that was
16996     * selected, and so on.
16997     *
16998     * @note If not in multi-select mode, consider using function
16999     * elm_genlist_selected_item_get() instead.
17000     *
17001     * @see elm_genlist_multi_select_set()
17002     * @see elm_genlist_selected_item_get()
17003     *
17004     * @ingroup Genlist
17005     */
17006    EAPI const Eina_List  *elm_genlist_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17007    /**
17008     * Get a list of realized items in genlist
17009     *
17010     * @param obj The genlist object
17011     * @return The list of realized items, nor NULL if none are realized.
17012     *
17013     * This returns a list of the realized items in the genlist. The list
17014     * contains Elm_Genlist_Item pointers. The list must be freed by the
17015     * caller when done with eina_list_free(). The item pointers in the
17016     * list are only valid so long as those items are not deleted or the
17017     * genlist is not deleted.
17018     *
17019     * @see elm_genlist_realized_items_update()
17020     *
17021     * @ingroup Genlist
17022     */
17023    EAPI Eina_List        *elm_genlist_realized_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17024    /**
17025     * Get the item that is at the x, y canvas coords.
17026     *
17027     * @param obj The gelinst object.
17028     * @param x The input x coordinate
17029     * @param y The input y coordinate
17030     * @param posret The position relative to the item returned here
17031     * @return The item at the coordinates or NULL if none
17032     *
17033     * This returns the item at the given coordinates (which are canvas
17034     * relative, not object-relative). If an item is at that coordinate,
17035     * that item handle is returned, and if @p posret is not NULL, the
17036     * integer pointed to is set to a value of -1, 0 or 1, depending if
17037     * the coordinate is on the upper portion of that item (-1), on the
17038     * middle section (0) or on the lower part (1). If NULL is returned as
17039     * an item (no item found there), then posret may indicate -1 or 1
17040     * based if the coordinate is above or below all items respectively in
17041     * the genlist.
17042     *
17043     * @ingroup Genlist
17044     */
17045    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);
17046    /**
17047     * Get the first item in the genlist
17048     *
17049     * This returns the first item in the list.
17050     *
17051     * @param obj The genlist object
17052     * @return The first item, or NULL if none
17053     *
17054     * @ingroup Genlist
17055     */
17056    EAPI Elm_Genlist_Item *elm_genlist_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17057    /**
17058     * Get the last item in the genlist
17059     *
17060     * This returns the last item in the list.
17061     *
17062     * @return The last item, or NULL if none
17063     *
17064     * @ingroup Genlist
17065     */
17066    EAPI Elm_Genlist_Item *elm_genlist_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17067    /**
17068     * Set the scrollbar policy
17069     *
17070     * @param obj The genlist object
17071     * @param policy_h Horizontal scrollbar policy.
17072     * @param policy_v Vertical scrollbar policy.
17073     *
17074     * This sets the scrollbar visibility policy for the given genlist
17075     * scroller. #ELM_SMART_SCROLLER_POLICY_AUTO means the scrollbar is
17076     * made visible if it is needed, and otherwise kept hidden.
17077     * #ELM_SMART_SCROLLER_POLICY_ON turns it on all the time, and
17078     * #ELM_SMART_SCROLLER_POLICY_OFF always keeps it off. This applies
17079     * respectively for the horizontal and vertical scrollbars. Default is
17080     * #ELM_SMART_SCROLLER_POLICY_AUTO
17081     *
17082     * @see elm_genlist_scroller_policy_get()
17083     *
17084     * @ingroup Genlist
17085     */
17086    EAPI void              elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
17087    /**
17088     * Get the scrollbar policy
17089     *
17090     * @param obj The genlist object
17091     * @param policy_h Pointer to store the horizontal scrollbar policy.
17092     * @param policy_v Pointer to store the vertical scrollbar policy.
17093     *
17094     * @see elm_genlist_scroller_policy_set()
17095     *
17096     * @ingroup Genlist
17097     */
17098    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);
17099    /**
17100     * Get the @b next item in a genlist widget's internal list of items,
17101     * given a handle to one of those items.
17102     *
17103     * @param item The genlist item to fetch next from
17104     * @return The item after @p item, or @c NULL if there's none (and
17105     * on errors)
17106     *
17107     * This returns the item placed after the @p item, on the container
17108     * genlist.
17109     *
17110     * @see elm_genlist_item_prev_get()
17111     *
17112     * @ingroup Genlist
17113     */
17114    EAPI Elm_Genlist_Item  *elm_genlist_item_next_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17115    /**
17116     * Get the @b previous item in a genlist widget's internal list of items,
17117     * given a handle to one of those items.
17118     *
17119     * @param item The genlist item to fetch previous from
17120     * @return The item before @p item, or @c NULL if there's none (and
17121     * on errors)
17122     *
17123     * This returns the item placed before the @p item, on the container
17124     * genlist.
17125     *
17126     * @see elm_genlist_item_next_get()
17127     *
17128     * @ingroup Genlist
17129     */
17130    EAPI Elm_Genlist_Item  *elm_genlist_item_prev_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17131    /**
17132     * Get the genlist object's handle which contains a given genlist
17133     * item
17134     *
17135     * @param item The item to fetch the container from
17136     * @return The genlist (parent) object
17137     *
17138     * This returns the genlist object itself that an item belongs to.
17139     *
17140     * @ingroup Genlist
17141     */
17142    EAPI Evas_Object       *elm_genlist_item_genlist_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17143    /**
17144     * Get the parent item of the given item
17145     *
17146     * @param it The item
17147     * @return The parent of the item or @c NULL if it has no parent.
17148     *
17149     * This returns the item that was specified as parent of the item @p it on
17150     * elm_genlist_item_append() and insertion related functions.
17151     *
17152     * @ingroup Genlist
17153     */
17154    EAPI Elm_Genlist_Item  *elm_genlist_item_parent_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17155    /**
17156     * Remove all sub-items (children) of the given item
17157     *
17158     * @param it The item
17159     *
17160     * This removes all items that are children (and their descendants) of the
17161     * given item @p it.
17162     *
17163     * @see elm_genlist_clear()
17164     * @see elm_genlist_item_del()
17165     *
17166     * @ingroup Genlist
17167     */
17168    EAPI void               elm_genlist_item_subitems_clear(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17169    /**
17170     * Set whether a given genlist item is selected or not
17171     *
17172     * @param it The item
17173     * @param selected Use @c EINA_TRUE, to make it selected, @c
17174     * EINA_FALSE to make it unselected
17175     *
17176     * This sets the selected state of an item. If multi selection is
17177     * not enabled on the containing genlist and @p selected is @c
17178     * EINA_TRUE, any other previously selected items will get
17179     * unselected in favor of this new one.
17180     *
17181     * @see elm_genlist_item_selected_get()
17182     *
17183     * @ingroup Genlist
17184     */
17185    EAPI void               elm_genlist_item_selected_set(Elm_Genlist_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
17186    /**
17187     * Get whether a given genlist item is selected or not
17188     *
17189     * @param it The item
17190     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
17191     *
17192     * @see elm_genlist_item_selected_set() for more details
17193     *
17194     * @ingroup Genlist
17195     */
17196    EAPI Eina_Bool          elm_genlist_item_selected_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17197    /**
17198     * Sets the expanded state of an item.
17199     *
17200     * @param it The item
17201     * @param expanded The expanded state (@c EINA_TRUE expanded, @c EINA_FALSE not expanded).
17202     *
17203     * This function flags the item of type #ELM_GENLIST_ITEM_SUBITEMS as
17204     * expanded or not.
17205     *
17206     * The theme will respond to this change visually, and a signal "expanded" or
17207     * "contracted" will be sent from the genlist with a pointer to the item that
17208     * has been expanded/contracted.
17209     *
17210     * Calling this function won't show or hide any child of this item (if it is
17211     * a parent). You must manually delete and create them on the callbacks fo
17212     * the "expanded" or "contracted" signals.
17213     *
17214     * @see elm_genlist_item_expanded_get()
17215     *
17216     * @ingroup Genlist
17217     */
17218    EAPI void               elm_genlist_item_expanded_set(Elm_Genlist_Item *item, Eina_Bool expanded) EINA_ARG_NONNULL(1);
17219    /**
17220     * Get the expanded state of an item
17221     *
17222     * @param it The item
17223     * @return The expanded state
17224     *
17225     * This gets the expanded state of an item.
17226     *
17227     * @see elm_genlist_item_expanded_set()
17228     *
17229     * @ingroup Genlist
17230     */
17231    EAPI Eina_Bool          elm_genlist_item_expanded_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17232    /**
17233     * Get the depth of expanded item
17234     *
17235     * @param it The genlist item object
17236     * @return The depth of expanded item
17237     *
17238     * @ingroup Genlist
17239     */
17240    EAPI int                elm_genlist_item_expanded_depth_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17241    /**
17242     * Set whether a given genlist item is disabled or not.
17243     *
17244     * @param it The item
17245     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
17246     * to enable it back.
17247     *
17248     * A disabled item cannot be selected or unselected. It will also
17249     * change its appearance, to signal the user it's disabled.
17250     *
17251     * @see elm_genlist_item_disabled_get()
17252     *
17253     * @ingroup Genlist
17254     */
17255    EAPI void               elm_genlist_item_disabled_set(Elm_Genlist_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
17256    /**
17257     * Get whether a given genlist item is disabled or not.
17258     *
17259     * @param it The item
17260     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
17261     * (and on errors).
17262     *
17263     * @see elm_genlist_item_disabled_set() for more details
17264     *
17265     * @ingroup Genlist
17266     */
17267    EAPI Eina_Bool          elm_genlist_item_disabled_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17268    /**
17269     * Sets the display only state of an item.
17270     *
17271     * @param it The item
17272     * @param display_only @c EINA_TRUE if the item is display only, @c
17273     * EINA_FALSE otherwise.
17274     *
17275     * A display only item cannot be selected or unselected. It is for
17276     * display only and not selecting or otherwise clicking, dragging
17277     * etc. by the user, thus finger size rules will not be applied to
17278     * this item.
17279     *
17280     * It's good to set group index items to display only state.
17281     *
17282     * @see elm_genlist_item_display_only_get()
17283     *
17284     * @ingroup Genlist
17285     */
17286    EAPI void               elm_genlist_item_display_only_set(Elm_Genlist_Item *it, Eina_Bool display_only) EINA_ARG_NONNULL(1);
17287    /**
17288     * Get the display only state of an item
17289     *
17290     * @param it The item
17291     * @return @c EINA_TRUE if the item is display only, @c
17292     * EINA_FALSE otherwise.
17293     *
17294     * @see elm_genlist_item_display_only_set()
17295     *
17296     * @ingroup Genlist
17297     */
17298    EAPI Eina_Bool          elm_genlist_item_display_only_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17299    /**
17300     * Show the portion of a genlist's internal list containing a given
17301     * item, immediately.
17302     *
17303     * @param it The item to display
17304     *
17305     * This causes genlist to jump to the given item @p it and show it (by
17306     * immediately scrolling to that position), if it is not fully visible.
17307     *
17308     * @see elm_genlist_item_bring_in()
17309     * @see elm_genlist_item_top_show()
17310     * @see elm_genlist_item_middle_show()
17311     *
17312     * @ingroup Genlist
17313     */
17314    EAPI void               elm_genlist_item_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17315    /**
17316     * Animatedly bring in, to the visible are of a genlist, a given
17317     * item on it.
17318     *
17319     * @param it The item to display
17320     *
17321     * This causes genlist to jump to the given item @p it and show it (by
17322     * animatedly scrolling), if it is not fully visible. This may use animation
17323     * to do so and take a period of time
17324     *
17325     * @see elm_genlist_item_show()
17326     * @see elm_genlist_item_top_bring_in()
17327     * @see elm_genlist_item_middle_bring_in()
17328     *
17329     * @ingroup Genlist
17330     */
17331    EAPI void               elm_genlist_item_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17332    /**
17333     * Show the portion of a genlist's internal list containing a given
17334     * item, immediately.
17335     *
17336     * @param it The item to display
17337     *
17338     * This causes genlist to jump to the given item @p it and show it (by
17339     * immediately scrolling to that position), if it is not fully visible.
17340     *
17341     * The item will be positioned at the top of the genlist viewport.
17342     *
17343     * @see elm_genlist_item_show()
17344     * @see elm_genlist_item_top_bring_in()
17345     *
17346     * @ingroup Genlist
17347     */
17348    EAPI void               elm_genlist_item_top_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17349    /**
17350     * Animatedly bring in, to the visible are of a genlist, a given
17351     * item on it.
17352     *
17353     * @param it The item
17354     *
17355     * This causes genlist to jump to the given item @p it and show it (by
17356     * animatedly scrolling), if it is not fully visible. This may use animation
17357     * to do so and take a period of time
17358     *
17359     * The item will be positioned at the top of the genlist viewport.
17360     *
17361     * @see elm_genlist_item_bring_in()
17362     * @see elm_genlist_item_top_show()
17363     *
17364     * @ingroup Genlist
17365     */
17366    EAPI void               elm_genlist_item_top_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17367    /**
17368     * Show the portion of a genlist's internal list containing a given
17369     * item, immediately.
17370     *
17371     * @param it The item to display
17372     *
17373     * This causes genlist to jump to the given item @p it and show it (by
17374     * immediately scrolling to that position), if it is not fully visible.
17375     *
17376     * The item will be positioned at the middle of the genlist viewport.
17377     *
17378     * @see elm_genlist_item_show()
17379     * @see elm_genlist_item_middle_bring_in()
17380     *
17381     * @ingroup Genlist
17382     */
17383    EAPI void               elm_genlist_item_middle_show(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17384    /**
17385     * Animatedly bring in, to the visible are of a genlist, a given
17386     * item on it.
17387     *
17388     * @param it The item
17389     *
17390     * This causes genlist to jump to the given item @p it and show it (by
17391     * animatedly scrolling), if it is not fully visible. This may use animation
17392     * to do so and take a period of time
17393     *
17394     * The item will be positioned at the middle of the genlist viewport.
17395     *
17396     * @see elm_genlist_item_bring_in()
17397     * @see elm_genlist_item_middle_show()
17398     *
17399     * @ingroup Genlist
17400     */
17401    EAPI void               elm_genlist_item_middle_bring_in(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17402    /**
17403     * Remove a genlist item from the its parent, deleting it.
17404     *
17405     * @param item The item to be removed.
17406     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
17407     *
17408     * @see elm_genlist_clear(), to remove all items in a genlist at
17409     * once.
17410     *
17411     * @ingroup Genlist
17412     */
17413    EAPI void               elm_genlist_item_del(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17414    /**
17415     * Return the data associated to a given genlist item
17416     *
17417     * @param item The genlist item.
17418     * @return the data associated to this item.
17419     *
17420     * This returns the @c data value passed on the
17421     * elm_genlist_item_append() and related item addition calls.
17422     *
17423     * @see elm_genlist_item_append()
17424     * @see elm_genlist_item_data_set()
17425     *
17426     * @ingroup Genlist
17427     */
17428    EAPI void              *elm_genlist_item_data_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17429    /**
17430     * Set the data associated to a given genlist item
17431     *
17432     * @param item The genlist item
17433     * @param data The new data pointer to set on it
17434     *
17435     * This @b overrides the @c data value passed on the
17436     * elm_genlist_item_append() and related item addition calls. This
17437     * function @b won't call elm_genlist_item_update() automatically,
17438     * so you'd issue it afterwards if you want to hove the item
17439     * updated to reflect the that new data.
17440     *
17441     * @see elm_genlist_item_data_get()
17442     *
17443     * @ingroup Genlist
17444     */
17445    EAPI void               elm_genlist_item_data_set(Elm_Genlist_Item *it, const void *data) EINA_ARG_NONNULL(1);
17446    /**
17447     * Tells genlist to "orphan" icons fetchs by the item class
17448     *
17449     * @param it The item
17450     *
17451     * This instructs genlist to release references to icons in the item,
17452     * meaning that they will no longer be managed by genlist and are
17453     * floating "orphans" that can be re-used elsewhere if the user wants
17454     * to.
17455     *
17456     * @ingroup Genlist
17457     */
17458    EAPI void               elm_genlist_item_icons_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17459    /**
17460     * Get the real Evas object created to implement the view of a
17461     * given genlist item
17462     *
17463     * @param item The genlist item.
17464     * @return the Evas object implementing this item's view.
17465     *
17466     * This returns the actual Evas object used to implement the
17467     * specified genlist item's view. This may be @c NULL, as it may
17468     * not have been created or may have been deleted, at any time, by
17469     * the genlist. <b>Do not modify this object</b> (move, resize,
17470     * show, hide, etc.), as the genlist is controlling it. This
17471     * function is for querying, emitting custom signals or hooking
17472     * lower level callbacks for events on that object. Do not delete
17473     * this object under any circumstances.
17474     *
17475     * @see elm_genlist_item_data_get()
17476     *
17477     * @ingroup Genlist
17478     */
17479    EAPI const Evas_Object *elm_genlist_item_object_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17480    /**
17481     * Update the contents of an item
17482     *
17483     * @param it The item
17484     *
17485     * This updates an item by calling all the item class functions again
17486     * to get the icons, labels and states. Use this when the original
17487     * item data has changed and the changes are desired to be reflected.
17488     *
17489     * Use elm_genlist_realized_items_update() to update all already realized
17490     * items.
17491     *
17492     * @see elm_genlist_realized_items_update()
17493     *
17494     * @ingroup Genlist
17495     */
17496    EAPI void               elm_genlist_item_update(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17497    /**
17498     * Update the item class of an item
17499     *
17500     * @param it The item
17501     * @param itc The item class for the item
17502     *
17503     * This sets another class fo the item, changing the way that it is
17504     * displayed. After changing the item class, elm_genlist_item_update() is
17505     * called on the item @p it.
17506     *
17507     * @ingroup Genlist
17508     */
17509    EAPI void               elm_genlist_item_item_class_update(Elm_Genlist_Item *it, const Elm_Genlist_Item_Class *itc) EINA_ARG_NONNULL(1, 2);
17510    EAPI const Elm_Genlist_Item_Class *elm_genlist_item_item_class_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17511    /**
17512     * Set the text to be shown in a given genlist item's tooltips.
17513     *
17514     * @param item The genlist item
17515     * @param text The text to set in the content
17516     *
17517     * This call will setup the text to be used as tooltip to that item
17518     * (analogous to elm_object_tooltip_text_set(), but being item
17519     * tooltips with higher precedence than object tooltips). It can
17520     * have only one tooltip at a time, so any previous tooltip data
17521     * will get removed.
17522     *
17523     * In order to set an icon or something else as a tooltip, look at
17524     * elm_genlist_item_tooltip_content_cb_set().
17525     *
17526     * @ingroup Genlist
17527     */
17528    EAPI void               elm_genlist_item_tooltip_text_set(Elm_Genlist_Item *item, const char *text) EINA_ARG_NONNULL(1);
17529    /**
17530     * Set the content to be shown in a given genlist item's tooltips
17531     *
17532     * @param item The genlist item.
17533     * @param func The function returning the tooltip contents.
17534     * @param data What to provide to @a func as callback data/context.
17535     * @param del_cb Called when data is not needed anymore, either when
17536     *        another callback replaces @p func, the tooltip is unset with
17537     *        elm_genlist_item_tooltip_unset() or the owner @p item
17538     *        dies. This callback receives as its first parameter the
17539     *        given @p data, being @c event_info the item handle.
17540     *
17541     * This call will setup the tooltip's contents to @p item
17542     * (analogous to elm_object_tooltip_content_cb_set(), but being
17543     * item tooltips with higher precedence than object tooltips). It
17544     * can have only one tooltip at a time, so any previous tooltip
17545     * content will get removed. @p func (with @p data) will be called
17546     * every time Elementary needs to show the tooltip and it should
17547     * return a valid Evas object, which will be fully managed by the
17548     * tooltip system, getting deleted when the tooltip is gone.
17549     *
17550     * In order to set just a text as a tooltip, look at
17551     * elm_genlist_item_tooltip_text_set().
17552     *
17553     * @ingroup Genlist
17554     */
17555    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);
17556    /**
17557     * Unset a tooltip from a given genlist item
17558     *
17559     * @param item genlist item to remove a previously set tooltip from.
17560     *
17561     * This call removes any tooltip set on @p item. The callback
17562     * provided as @c del_cb to
17563     * elm_genlist_item_tooltip_content_cb_set() will be called to
17564     * notify it is not used anymore (and have resources cleaned, if
17565     * need be).
17566     *
17567     * @see elm_genlist_item_tooltip_content_cb_set()
17568     *
17569     * @ingroup Genlist
17570     */
17571    EAPI void               elm_genlist_item_tooltip_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17572    /**
17573     * Set a different @b style for a given genlist item's tooltip.
17574     *
17575     * @param item genlist item with tooltip set
17576     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
17577     * "default", @c "transparent", etc)
17578     *
17579     * Tooltips can have <b>alternate styles</b> to be displayed on,
17580     * which are defined by the theme set on Elementary. This function
17581     * works analogously as elm_object_tooltip_style_set(), but here
17582     * applied only to genlist item objects. The default style for
17583     * tooltips is @c "default".
17584     *
17585     * @note before you set a style you should define a tooltip with
17586     *       elm_genlist_item_tooltip_content_cb_set() or
17587     *       elm_genlist_item_tooltip_text_set()
17588     *
17589     * @see elm_genlist_item_tooltip_style_get()
17590     *
17591     * @ingroup Genlist
17592     */
17593    EAPI void               elm_genlist_item_tooltip_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
17594    /**
17595     * Get the style set a given genlist item's tooltip.
17596     *
17597     * @param item genlist item with tooltip already set on.
17598     * @return style the theme style in use, which defaults to
17599     *         "default". If the object does not have a tooltip set,
17600     *         then @c NULL is returned.
17601     *
17602     * @see elm_genlist_item_tooltip_style_set() for more details
17603     *
17604     * @ingroup Genlist
17605     */
17606    EAPI const char        *elm_genlist_item_tooltip_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17607    /**
17608     * @brief Disable size restrictions on an object's tooltip
17609     * @param item The tooltip's anchor object
17610     * @param disable If EINA_TRUE, size restrictions are disabled
17611     * @return EINA_FALSE on failure, EINA_TRUE on success
17612     *
17613     * This function allows a tooltip to expand beyond its parant window's canvas.
17614     * It will instead be limited only by the size of the display.
17615     */
17616    EAPI Eina_Bool          elm_genlist_item_tooltip_size_restrict_disable(Elm_Genlist_Item *item, Eina_Bool disable);
17617    /**
17618     * @brief Retrieve size restriction state of an object's tooltip
17619     * @param item The tooltip's anchor object
17620     * @return If EINA_TRUE, size restrictions are disabled
17621     *
17622     * This function returns whether a tooltip is allowed to expand beyond
17623     * its parant window's canvas.
17624     * It will instead be limited only by the size of the display.
17625     */
17626    EAPI Eina_Bool          elm_genlist_item_tooltip_size_restrict_disabled_get(const Elm_Genlist_Item *item);
17627    /**
17628     * Set the type of mouse pointer/cursor decoration to be shown,
17629     * when the mouse pointer is over the given genlist widget item
17630     *
17631     * @param item genlist item to customize cursor on
17632     * @param cursor the cursor type's name
17633     *
17634     * This function works analogously as elm_object_cursor_set(), but
17635     * here the cursor's changing area is restricted to the item's
17636     * area, and not the whole widget's. Note that that item cursors
17637     * have precedence over widget cursors, so that a mouse over @p
17638     * item will always show cursor @p type.
17639     *
17640     * If this function is called twice for an object, a previously set
17641     * cursor will be unset on the second call.
17642     *
17643     * @see elm_object_cursor_set()
17644     * @see elm_genlist_item_cursor_get()
17645     * @see elm_genlist_item_cursor_unset()
17646     *
17647     * @ingroup Genlist
17648     */
17649    EAPI void               elm_genlist_item_cursor_set(Elm_Genlist_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
17650    /**
17651     * Get the type of mouse pointer/cursor decoration set to be shown,
17652     * when the mouse pointer is over the given genlist widget item
17653     *
17654     * @param item genlist item with custom cursor set
17655     * @return the cursor type's name or @c NULL, if no custom cursors
17656     * were set to @p item (and on errors)
17657     *
17658     * @see elm_object_cursor_get()
17659     * @see elm_genlist_item_cursor_set() for more details
17660     * @see elm_genlist_item_cursor_unset()
17661     *
17662     * @ingroup Genlist
17663     */
17664    EAPI const char        *elm_genlist_item_cursor_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17665    /**
17666     * Unset any custom mouse pointer/cursor decoration set to be
17667     * shown, when the mouse pointer is over the given genlist widget
17668     * item, thus making it show the @b default cursor again.
17669     *
17670     * @param item a genlist item
17671     *
17672     * Use this call to undo any custom settings on this item's cursor
17673     * decoration, bringing it back to defaults (no custom style set).
17674     *
17675     * @see elm_object_cursor_unset()
17676     * @see elm_genlist_item_cursor_set() for more details
17677     *
17678     * @ingroup Genlist
17679     */
17680    EAPI void               elm_genlist_item_cursor_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17681    /**
17682     * Set a different @b style for a given custom cursor set for a
17683     * genlist item.
17684     *
17685     * @param item genlist item with custom cursor set
17686     * @param style the <b>theme style</b> to use (e.g. @c "default",
17687     * @c "transparent", etc)
17688     *
17689     * This function only makes sense when one is using custom mouse
17690     * cursor decorations <b>defined in a theme file</b> , which can
17691     * have, given a cursor name/type, <b>alternate styles</b> on
17692     * it. It works analogously as elm_object_cursor_style_set(), but
17693     * here applied only to genlist item objects.
17694     *
17695     * @warning Before you set a cursor style you should have defined a
17696     *       custom cursor previously on the item, with
17697     *       elm_genlist_item_cursor_set()
17698     *
17699     * @see elm_genlist_item_cursor_engine_only_set()
17700     * @see elm_genlist_item_cursor_style_get()
17701     *
17702     * @ingroup Genlist
17703     */
17704    EAPI void               elm_genlist_item_cursor_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
17705    /**
17706     * Get the current @b style set for a given genlist item's custom
17707     * cursor
17708     *
17709     * @param item genlist item with custom cursor set.
17710     * @return style the cursor style in use. If the object does not
17711     *         have a cursor set, then @c NULL is returned.
17712     *
17713     * @see elm_genlist_item_cursor_style_set() for more details
17714     *
17715     * @ingroup Genlist
17716     */
17717    EAPI const char        *elm_genlist_item_cursor_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17718    /**
17719     * Set if the (custom) cursor for a given genlist item should be
17720     * searched in its theme, also, or should only rely on the
17721     * rendering engine.
17722     *
17723     * @param item item with custom (custom) cursor already set on
17724     * @param engine_only Use @c EINA_TRUE to have cursors looked for
17725     * only on those provided by the rendering engine, @c EINA_FALSE to
17726     * have them searched on the widget's theme, as well.
17727     *
17728     * @note This call is of use only if you've set a custom cursor
17729     * for genlist items, with elm_genlist_item_cursor_set().
17730     *
17731     * @note By default, cursors will only be looked for between those
17732     * provided by the rendering engine.
17733     *
17734     * @ingroup Genlist
17735     */
17736    EAPI void               elm_genlist_item_cursor_engine_only_set(Elm_Genlist_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
17737    /**
17738     * Get if the (custom) cursor for a given genlist item is being
17739     * searched in its theme, also, or is only relying on the rendering
17740     * engine.
17741     *
17742     * @param item a genlist item
17743     * @return @c EINA_TRUE, if cursors are being looked for only on
17744     * those provided by the rendering engine, @c EINA_FALSE if they
17745     * are being searched on the widget's theme, as well.
17746     *
17747     * @see elm_genlist_item_cursor_engine_only_set(), for more details
17748     *
17749     * @ingroup Genlist
17750     */
17751    EAPI Eina_Bool          elm_genlist_item_cursor_engine_only_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17752    /**
17753     * Update the contents of all realized items.
17754     *
17755     * @param obj The genlist object.
17756     *
17757     * This updates all realized items by calling all the item class functions again
17758     * to get the icons, labels and states. Use this when the original
17759     * item data has changed and the changes are desired to be reflected.
17760     *
17761     * To update just one item, use elm_genlist_item_update().
17762     *
17763     * @see elm_genlist_realized_items_get()
17764     * @see elm_genlist_item_update()
17765     *
17766     * @ingroup Genlist
17767     */
17768    EAPI void               elm_genlist_realized_items_update(Evas_Object *obj) EINA_ARG_NONNULL(1);
17769    /**
17770     * Activate a genlist mode on an item
17771     *
17772     * @param item The genlist item
17773     * @param mode Mode name
17774     * @param mode_set Boolean to define set or unset mode.
17775     *
17776     * A genlist mode is a different way of selecting an item. Once a mode is
17777     * activated on an item, any other selected item is immediately unselected.
17778     * This feature provides an easy way of implementing a new kind of animation
17779     * for selecting an item, without having to entirely rewrite the item style
17780     * theme. However, the elm_genlist_selected_* API can't be used to get what
17781     * item is activate for a mode.
17782     *
17783     * The current item style will still be used, but applying a genlist mode to
17784     * an item will select it using a different kind of animation.
17785     *
17786     * The current active item for a mode can be found by
17787     * elm_genlist_mode_item_get().
17788     *
17789     * The characteristics of genlist mode are:
17790     * - Only one mode can be active at any time, and for only one item.
17791     * - Genlist handles deactivating other items when one item is activated.
17792     * - A mode is defined in the genlist theme (edc), and more modes can easily
17793     *   be added.
17794     * - A mode style and the genlist item style are different things. They
17795     *   can be combined to provide a default style to the item, with some kind
17796     *   of animation for that item when the mode is activated.
17797     *
17798     * When a mode is activated on an item, a new view for that item is created.
17799     * The theme of this mode defines the animation that will be used to transit
17800     * the item from the old view to the new view. This second (new) view will be
17801     * active for that item while the mode is active on the item, and will be
17802     * destroyed after the mode is totally deactivated from that item.
17803     *
17804     * @see elm_genlist_mode_get()
17805     * @see elm_genlist_mode_item_get()
17806     *
17807     * @ingroup Genlist
17808     */
17809    EAPI void               elm_genlist_item_mode_set(Elm_Genlist_Item *it, const char *mode_type, Eina_Bool mode_set) EINA_ARG_NONNULL(1, 2);
17810    /**
17811     * Get the last (or current) genlist mode used.
17812     *
17813     * @param obj The genlist object
17814     *
17815     * This function just returns the name of the last used genlist mode. It will
17816     * be the current mode if it's still active.
17817     *
17818     * @see elm_genlist_item_mode_set()
17819     * @see elm_genlist_mode_item_get()
17820     *
17821     * @ingroup Genlist
17822     */
17823    EAPI const char        *elm_genlist_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17824    /**
17825     * Get active genlist mode item
17826     *
17827     * @param obj The genlist object
17828     * @return The active item for that current mode. Or @c NULL if no item is
17829     * activated with any mode.
17830     *
17831     * This function returns the item that was activated with a mode, by the
17832     * function elm_genlist_item_mode_set().
17833     *
17834     * @see elm_genlist_item_mode_set()
17835     * @see elm_genlist_mode_get()
17836     *
17837     * @ingroup Genlist
17838     */
17839    EAPI const Elm_Genlist_Item *elm_genlist_mode_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17840
17841    /**
17842     * Set reorder mode
17843     *
17844     * @param obj The genlist object
17845     * @param reorder_mode The reorder mode
17846     * (EINA_TRUE = on, EINA_FALSE = off)
17847     *
17848     * @ingroup Genlist
17849     */
17850    EAPI void               elm_genlist_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
17851
17852    /**
17853     * Get the reorder mode
17854     *
17855     * @param obj The genlist object
17856     * @return The reorder mode
17857     * (EINA_TRUE = on, EINA_FALSE = off)
17858     *
17859     * @ingroup Genlist
17860     */
17861    EAPI Eina_Bool          elm_genlist_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17862
17863    /**
17864     * @}
17865     */
17866
17867    /**
17868     * @defgroup Check Check
17869     *
17870     * @image html img/widget/check/preview-00.png
17871     * @image latex img/widget/check/preview-00.eps
17872     * @image html img/widget/check/preview-01.png
17873     * @image latex img/widget/check/preview-01.eps
17874     * @image html img/widget/check/preview-02.png
17875     * @image latex img/widget/check/preview-02.eps
17876     *
17877     * @brief The check widget allows for toggling a value between true and
17878     * false.
17879     *
17880     * Check objects are a lot like radio objects in layout and functionality
17881     * except they do not work as a group, but independently and only toggle the
17882     * value of a boolean from false to true (0 or 1). elm_check_state_set() sets
17883     * the boolean state (1 for true, 0 for false), and elm_check_state_get()
17884     * returns the current state. For convenience, like the radio objects, you
17885     * can set a pointer to a boolean directly with elm_check_state_pointer_set()
17886     * for it to modify.
17887     *
17888     * Signals that you can add callbacks for are:
17889     * "changed" - This is called whenever the user changes the state of one of
17890     *             the check object(event_info is NULL).
17891     *
17892     * @ref tutorial_check should give you a firm grasp of how to use this widget.
17893     * @{
17894     */
17895    /**
17896     * @brief Add a new Check object
17897     *
17898     * @param parent The parent object
17899     * @return The new object or NULL if it cannot be created
17900     */
17901    EAPI Evas_Object *elm_check_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
17902    /**
17903     * @brief Set the text label of the check object
17904     *
17905     * @param obj The check object
17906     * @param label The text label string in UTF-8
17907     *
17908     * @deprecated use elm_object_text_set() instead.
17909     */
17910    EINA_DEPRECATED EAPI void         elm_check_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
17911    /**
17912     * @brief Get the text label of the check object
17913     *
17914     * @param obj The check object
17915     * @return The text label string in UTF-8
17916     *
17917     * @deprecated use elm_object_text_get() instead.
17918     */
17919    EINA_DEPRECATED EAPI const char  *elm_check_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17920    /**
17921     * @brief Set the icon object of the check object
17922     *
17923     * @param obj The check object
17924     * @param icon The icon object
17925     *
17926     * Once the icon object is set, a previously set one will be deleted.
17927     * If you want to keep that old content object, use the
17928     * elm_check_icon_unset() function.
17929     */
17930    EAPI void         elm_check_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
17931    /**
17932     * @brief Get the icon object of the check object
17933     *
17934     * @param obj The check object
17935     * @return The icon object
17936     */
17937    EAPI Evas_Object *elm_check_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17938    /**
17939     * @brief Unset the icon used for the check object
17940     *
17941     * @param obj The check object
17942     * @return The icon object that was being used
17943     *
17944     * Unparent and return the icon object which was set for this widget.
17945     */
17946    EAPI Evas_Object *elm_check_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
17947    /**
17948     * @brief Set the on/off state of the check object
17949     *
17950     * @param obj The check object
17951     * @param state The state to use (1 == on, 0 == off)
17952     *
17953     * This sets the state of the check. If set
17954     * with elm_check_state_pointer_set() the state of that variable is also
17955     * changed. Calling this @b doesn't cause the "changed" signal to be emited.
17956     */
17957    EAPI void         elm_check_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
17958    /**
17959     * @brief Get the state of the check object
17960     *
17961     * @param obj The check object
17962     * @return The boolean state
17963     */
17964    EAPI Eina_Bool    elm_check_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17965    /**
17966     * @brief Set a convenience pointer to a boolean to change
17967     *
17968     * @param obj The check object
17969     * @param statep Pointer to the boolean to modify
17970     *
17971     * This sets a pointer to a boolean, that, in addition to the check objects
17972     * state will also be modified directly. To stop setting the object pointed
17973     * to simply use NULL as the @p statep parameter. If @p statep is not NULL,
17974     * then when this is called, the check objects state will also be modified to
17975     * reflect the value of the boolean @p statep points to, just like calling
17976     * elm_check_state_set().
17977     */
17978    EAPI void         elm_check_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
17979    /**
17980     * @}
17981     */
17982
17983    /**
17984     * @defgroup Radio Radio
17985     *
17986     * @image html img/widget/radio/preview-00.png
17987     * @image latex img/widget/radio/preview-00.eps
17988     *
17989     * @brief Radio is a widget that allows for 1 or more options to be displayed
17990     * and have the user choose only 1 of them.
17991     *
17992     * A radio object contains an indicator, an optional Label and an optional
17993     * icon object. While it's possible to have a group of only one radio they,
17994     * are normally used in groups of 2 or more. To add a radio to a group use
17995     * elm_radio_group_add(). The radio object(s) will select from one of a set
17996     * of integer values, so any value they are configuring needs to be mapped to
17997     * a set of integers. To configure what value that radio object represents,
17998     * use  elm_radio_state_value_set() to set the integer it represents. To set
17999     * the value the whole group(which one is currently selected) is to indicate
18000     * use elm_radio_value_set() on any group member, and to get the groups value
18001     * use elm_radio_value_get(). For convenience the radio objects are also able
18002     * to directly set an integer(int) to the value that is selected. To specify
18003     * the pointer to this integer to modify, use elm_radio_value_pointer_set().
18004     * The radio objects will modify this directly. That implies the pointer must
18005     * point to valid memory for as long as the radio objects exist.
18006     *
18007     * Signals that you can add callbacks for are:
18008     * @li changed - This is called whenever the user changes the state of one of
18009     * the radio objects within the group of radio objects that work together.
18010     *
18011     * @ref tutorial_radio show most of this API in action.
18012     * @{
18013     */
18014    /**
18015     * @brief Add a new radio to the parent
18016     *
18017     * @param parent The parent object
18018     * @return The new object or NULL if it cannot be created
18019     */
18020    EAPI Evas_Object *elm_radio_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18021    /**
18022     * @brief Set the text label of the radio object
18023     *
18024     * @param obj The radio object
18025     * @param label The text label string in UTF-8
18026     *
18027     * @deprecated use elm_object_text_set() instead.
18028     */
18029    EINA_DEPRECATED EAPI void         elm_radio_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
18030    /**
18031     * @brief Get the text label of the radio object
18032     *
18033     * @param obj The radio object
18034     * @return The text label string in UTF-8
18035     *
18036     * @deprecated use elm_object_text_set() instead.
18037     */
18038    EINA_DEPRECATED EAPI const char  *elm_radio_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18039    /**
18040     * @brief Set the icon object of the radio object
18041     *
18042     * @param obj The radio object
18043     * @param icon The icon object
18044     *
18045     * Once the icon object is set, a previously set one will be deleted. If you
18046     * want to keep that old content object, use the elm_radio_icon_unset()
18047     * function.
18048     */
18049    EAPI void         elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
18050    /**
18051     * @brief Get the icon object of the radio object
18052     *
18053     * @param obj The radio object
18054     * @return The icon object
18055     *
18056     * @see elm_radio_icon_set()
18057     */
18058    EAPI Evas_Object *elm_radio_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18059    /**
18060     * @brief Unset the icon used for the radio object
18061     *
18062     * @param obj The radio object
18063     * @return The icon object that was being used
18064     *
18065     * Unparent and return the icon object which was set for this widget.
18066     *
18067     * @see elm_radio_icon_set()
18068     */
18069    EAPI Evas_Object *elm_radio_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
18070    /**
18071     * @brief Add this radio to a group of other radio objects
18072     *
18073     * @param obj The radio object
18074     * @param group Any object whose group the @p obj is to join.
18075     *
18076     * Radio objects work in groups. Each member should have a different integer
18077     * value assigned. In order to have them work as a group, they need to know
18078     * about each other. This adds the given radio object to the group of which
18079     * the group object indicated is a member.
18080     */
18081    EAPI void         elm_radio_group_add(Evas_Object *obj, Evas_Object *group) EINA_ARG_NONNULL(1);
18082    /**
18083     * @brief Set the integer value that this radio object represents
18084     *
18085     * @param obj The radio object
18086     * @param value The value to use if this radio object is selected
18087     *
18088     * This sets the value of the radio.
18089     */
18090    EAPI void         elm_radio_state_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
18091    /**
18092     * @brief Get the integer value that this radio object represents
18093     *
18094     * @param obj The radio object
18095     * @return The value used if this radio object is selected
18096     *
18097     * This gets the value of the radio.
18098     *
18099     * @see elm_radio_value_set()
18100     */
18101    EAPI int          elm_radio_state_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18102    /**
18103     * @brief Set the value of the radio.
18104     *
18105     * @param obj The radio object
18106     * @param value The value to use for the group
18107     *
18108     * This sets the value of the radio group and will also set the value if
18109     * pointed to, to the value supplied, but will not call any callbacks.
18110     */
18111    EAPI void         elm_radio_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
18112    /**
18113     * @brief Get the state of the radio object
18114     *
18115     * @param obj The radio object
18116     * @return The integer state
18117     */
18118    EAPI int          elm_radio_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18119    /**
18120     * @brief Set a convenience pointer to a integer to change
18121     *
18122     * @param obj The radio object
18123     * @param valuep Pointer to the integer to modify
18124     *
18125     * This sets a pointer to a integer, that, in addition to the radio objects
18126     * state will also be modified directly. To stop setting the object pointed
18127     * to simply use NULL as the @p valuep argument. If valuep is not NULL, then
18128     * when this is called, the radio objects state will also be modified to
18129     * reflect the value of the integer valuep points to, just like calling
18130     * elm_radio_value_set().
18131     */
18132    EAPI void         elm_radio_value_pointer_set(Evas_Object *obj, int *valuep) EINA_ARG_NONNULL(1);
18133    /**
18134     * @}
18135     */
18136
18137    /**
18138     * @defgroup Pager Pager
18139     *
18140     * @image html img/widget/pager/preview-00.png
18141     * @image latex img/widget/pager/preview-00.eps
18142     *
18143     * @brief Widget that allows flipping between 1 or more “pages” of objects.
18144     *
18145     * The flipping between “pages” of objects is animated. All content in pager
18146     * is kept in a stack, the last content to be added will be on the top of the
18147     * stack(be visible).
18148     *
18149     * Objects can be pushed or popped from the stack or deleted as normal.
18150     * Pushes and pops will animate (and a pop will delete the object once the
18151     * animation is finished). Any object already in the pager can be promoted to
18152     * the top(from its current stacking position) through the use of
18153     * elm_pager_content_promote(). Objects are pushed to the top with
18154     * elm_pager_content_push() and when the top item is no longer wanted, simply
18155     * pop it with elm_pager_content_pop() and it will also be deleted. If an
18156     * object is no longer needed and is not the top item, just delete it as
18157     * normal. You can query which objects are the top and bottom with
18158     * elm_pager_content_bottom_get() and elm_pager_content_top_get().
18159     *
18160     * Signals that you can add callbacks for are:
18161     * "hide,finished" - when the previous page is hided
18162     *
18163     * This widget has the following styles available:
18164     * @li default
18165     * @li fade
18166     * @li fade_translucide
18167     * @li fade_invisible
18168     * @note This styles affect only the flipping animations, the appearance when
18169     * not animating is unaffected by styles.
18170     *
18171     * @ref tutorial_pager gives a good overview of the usage of the API.
18172     * @{
18173     */
18174    /**
18175     * Add a new pager to the parent
18176     *
18177     * @param parent The parent object
18178     * @return The new object or NULL if it cannot be created
18179     *
18180     * @ingroup Pager
18181     */
18182    EAPI Evas_Object *elm_pager_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18183    /**
18184     * @brief Push an object to the top of the pager stack (and show it).
18185     *
18186     * @param obj The pager object
18187     * @param content The object to push
18188     *
18189     * The object pushed becomes a child of the pager, it will be controlled and
18190     * deleted when the pager is deleted.
18191     *
18192     * @note If the content is already in the stack use
18193     * elm_pager_content_promote().
18194     * @warning Using this function on @p content already in the stack results in
18195     * undefined behavior.
18196     */
18197    EAPI void         elm_pager_content_push(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
18198    /**
18199     * @brief Pop the object that is on top of the stack
18200     *
18201     * @param obj The pager object
18202     *
18203     * This pops the object that is on the top(visible) of the pager, makes it
18204     * disappear, then deletes the object. The object that was underneath it on
18205     * the stack will become visible.
18206     */
18207    EAPI void         elm_pager_content_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
18208    /**
18209     * @brief Moves an object already in the pager stack to the top of the stack.
18210     *
18211     * @param obj The pager object
18212     * @param content The object to promote
18213     *
18214     * This will take the @p content and move it to the top of the stack as
18215     * if it had been pushed there.
18216     *
18217     * @note If the content isn't already in the stack use
18218     * elm_pager_content_push().
18219     * @warning Using this function on @p content not already in the stack
18220     * results in undefined behavior.
18221     */
18222    EAPI void         elm_pager_content_promote(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
18223    /**
18224     * @brief Return the object at the bottom of the pager stack
18225     *
18226     * @param obj The pager object
18227     * @return The bottom object or NULL if none
18228     */
18229    EAPI Evas_Object *elm_pager_content_bottom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18230    /**
18231     * @brief  Return the object at the top of the pager stack
18232     *
18233     * @param obj The pager object
18234     * @return The top object or NULL if none
18235     */
18236    EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18237    /**
18238     * @}
18239     */
18240
18241    /**
18242     * @defgroup Slideshow Slideshow
18243     *
18244     * @image html img/widget/slideshow/preview-00.png
18245     * @image latex img/widget/slideshow/preview-00.eps
18246     *
18247     * This widget, as the name indicates, is a pre-made image
18248     * slideshow panel, with API functions acting on (child) image
18249     * items presentation. Between those actions, are:
18250     * - advance to next/previous image
18251     * - select the style of image transition animation
18252     * - set the exhibition time for each image
18253     * - start/stop the slideshow
18254     *
18255     * The transition animations are defined in the widget's theme,
18256     * consequently new animations can be added without having to
18257     * update the widget's code.
18258     *
18259     * @section Slideshow_Items Slideshow items
18260     *
18261     * For slideshow items, just like for @ref Genlist "genlist" ones,
18262     * the user defines a @b classes, specifying functions that will be
18263     * called on the item's creation and deletion times.
18264     *
18265     * The #Elm_Slideshow_Item_Class structure contains the following
18266     * members:
18267     *
18268     * - @c func.get - When an item is displayed, this function is
18269     *   called, and it's where one should create the item object, de
18270     *   facto. For example, the object can be a pure Evas image object
18271     *   or an Elementary @ref Photocam "photocam" widget. See
18272     *   #SlideshowItemGetFunc.
18273     * - @c func.del - When an item is no more displayed, this function
18274     *   is called, where the user must delete any data associated to
18275     *   the item. See #SlideshowItemDelFunc.
18276     *
18277     * @section Slideshow_Caching Slideshow caching
18278     *
18279     * The slideshow provides facilities to have items adjacent to the
18280     * one being displayed <b>already "realized"</b> (i.e. loaded) for
18281     * you, so that the system does not have to decode image data
18282     * anymore at the time it has to actually switch images on its
18283     * viewport. The user is able to set the numbers of items to be
18284     * cached @b before and @b after the current item, in the widget's
18285     * item list.
18286     *
18287     * Smart events one can add callbacks for are:
18288     *
18289     * - @c "changed" - when the slideshow switches its view to a new
18290     *   item
18291     *
18292     * List of examples for the slideshow widget:
18293     * @li @ref slideshow_example
18294     */
18295
18296    /**
18297     * @addtogroup Slideshow
18298     * @{
18299     */
18300
18301    typedef struct _Elm_Slideshow_Item_Class Elm_Slideshow_Item_Class; /**< Slideshow item class definition struct */
18302    typedef struct _Elm_Slideshow_Item_Class_Func Elm_Slideshow_Item_Class_Func; /**< Class functions for slideshow item classes. */
18303    typedef struct _Elm_Slideshow_Item       Elm_Slideshow_Item; /**< Slideshow item handle */
18304    typedef Evas_Object *(*SlideshowItemGetFunc) (void *data, Evas_Object *obj); /**< Image fetching class function for slideshow item classes. */
18305    typedef void         (*SlideshowItemDelFunc) (void *data, Evas_Object *obj); /**< Deletion class function for slideshow item classes. */
18306
18307    /**
18308     * @struct _Elm_Slideshow_Item_Class
18309     *
18310     * Slideshow item class definition. See @ref Slideshow_Items for
18311     * field details.
18312     */
18313    struct _Elm_Slideshow_Item_Class
18314      {
18315         struct _Elm_Slideshow_Item_Class_Func
18316           {
18317              SlideshowItemGetFunc get;
18318              SlideshowItemDelFunc del;
18319           } func;
18320      }; /**< #Elm_Slideshow_Item_Class member definitions */
18321
18322    /**
18323     * Add a new slideshow widget to the given parent Elementary
18324     * (container) object
18325     *
18326     * @param parent The parent object
18327     * @return A new slideshow widget handle or @c NULL, on errors
18328     *
18329     * This function inserts a new slideshow widget on the canvas.
18330     *
18331     * @ingroup Slideshow
18332     */
18333    EAPI Evas_Object        *elm_slideshow_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18334
18335    /**
18336     * Add (append) a new item in a given slideshow widget.
18337     *
18338     * @param obj The slideshow object
18339     * @param itc The item class for the item
18340     * @param data The item's data
18341     * @return A handle to the item added or @c NULL, on errors
18342     *
18343     * Add a new item to @p obj's internal list of items, appending it.
18344     * The item's class must contain the function really fetching the
18345     * image object to show for this item, which could be an Evas image
18346     * object or an Elementary photo, for example. The @p data
18347     * parameter is going to be passed to both class functions of the
18348     * item.
18349     *
18350     * @see #Elm_Slideshow_Item_Class
18351     * @see elm_slideshow_item_sorted_insert()
18352     *
18353     * @ingroup Slideshow
18354     */
18355    EAPI Elm_Slideshow_Item *elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data) EINA_ARG_NONNULL(1);
18356
18357    /**
18358     * Insert a new item into the given slideshow widget, using the @p func
18359     * function to sort items (by item handles).
18360     *
18361     * @param obj The slideshow object
18362     * @param itc The item class for the item
18363     * @param data The item's data
18364     * @param func The comparing function to be used to sort slideshow
18365     * items <b>by #Elm_Slideshow_Item item handles</b>
18366     * @return Returns The slideshow item handle, on success, or
18367     * @c NULL, on errors
18368     *
18369     * Add a new item to @p obj's internal list of items, in a position
18370     * determined by the @p func comparing function. The item's class
18371     * must contain the function really fetching the image object to
18372     * show for this item, which could be an Evas image object or an
18373     * Elementary photo, for example. The @p data parameter is going to
18374     * be passed to both class functions of the item.
18375     *
18376     * @see #Elm_Slideshow_Item_Class
18377     * @see elm_slideshow_item_add()
18378     *
18379     * @ingroup Slideshow
18380     */
18381    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);
18382
18383    /**
18384     * Display a given slideshow widget's item, programmatically.
18385     *
18386     * @param obj The slideshow object
18387     * @param item The item to display on @p obj's viewport
18388     *
18389     * The change between the current item and @p item will use the
18390     * transition @p obj is set to use (@see
18391     * elm_slideshow_transition_set()).
18392     *
18393     * @ingroup Slideshow
18394     */
18395    EAPI void                elm_slideshow_show(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
18396
18397    /**
18398     * Slide to the @b next item, in a given slideshow widget
18399     *
18400     * @param obj The slideshow object
18401     *
18402     * The sliding animation @p obj is set to use will be the
18403     * transition effect used, after this call is issued.
18404     *
18405     * @note If the end of the slideshow's internal list of items is
18406     * reached, it'll wrap around to the list's beginning, again.
18407     *
18408     * @ingroup Slideshow
18409     */
18410    EAPI void                elm_slideshow_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
18411
18412    /**
18413     * Slide to the @b previous item, in a given slideshow widget
18414     *
18415     * @param obj The slideshow object
18416     *
18417     * The sliding animation @p obj is set to use will be the
18418     * transition effect used, after this call is issued.
18419     *
18420     * @note If the beginning of the slideshow's internal list of items
18421     * is reached, it'll wrap around to the list's end, again.
18422     *
18423     * @ingroup Slideshow
18424     */
18425    EAPI void                elm_slideshow_previous(Evas_Object *obj) EINA_ARG_NONNULL(1);
18426
18427    /**
18428     * Returns the list of sliding transition/effect names available, for a
18429     * given slideshow widget.
18430     *
18431     * @param obj The slideshow object
18432     * @return The list of transitions (list of @b stringshared strings
18433     * as data)
18434     *
18435     * The transitions, which come from @p obj's theme, must be an EDC
18436     * data item named @c "transitions" on the theme file, with (prefix)
18437     * names of EDC programs actually implementing them.
18438     *
18439     * The available transitions for slideshows on the default theme are:
18440     * - @c "fade" - the current item fades out, while the new one
18441     *   fades in to the slideshow's viewport.
18442     * - @c "black_fade" - the current item fades to black, and just
18443     *   then, the new item will fade in.
18444     * - @c "horizontal" - the current item slides horizontally, until
18445     *   it gets out of the slideshow's viewport, while the new item
18446     *   comes from the left to take its place.
18447     * - @c "vertical" - the current item slides vertically, until it
18448     *   gets out of the slideshow's viewport, while the new item comes
18449     *   from the bottom to take its place.
18450     * - @c "square" - the new item starts to appear from the middle of
18451     *   the current one, but with a tiny size, growing until its
18452     *   target (full) size and covering the old one.
18453     *
18454     * @warning The stringshared strings get no new references
18455     * exclusive to the user grabbing the list, here, so if you'd like
18456     * to use them out of this call's context, you'd better @c
18457     * eina_stringshare_ref() them.
18458     *
18459     * @see elm_slideshow_transition_set()
18460     *
18461     * @ingroup Slideshow
18462     */
18463    EAPI const Eina_List    *elm_slideshow_transitions_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18464
18465    /**
18466     * Set the current slide transition/effect in use for a given
18467     * slideshow widget
18468     *
18469     * @param obj The slideshow object
18470     * @param transition The new transition's name string
18471     *
18472     * If @p transition is implemented in @p obj's theme (i.e., is
18473     * contained in the list returned by
18474     * elm_slideshow_transitions_get()), this new sliding effect will
18475     * be used on the widget.
18476     *
18477     * @see elm_slideshow_transitions_get() for more details
18478     *
18479     * @ingroup Slideshow
18480     */
18481    EAPI void                elm_slideshow_transition_set(Evas_Object *obj, const char *transition) EINA_ARG_NONNULL(1);
18482
18483    /**
18484     * Get the current slide transition/effect in use for a given
18485     * slideshow widget
18486     *
18487     * @param obj The slideshow object
18488     * @return The current transition's name
18489     *
18490     * @see elm_slideshow_transition_set() for more details
18491     *
18492     * @ingroup Slideshow
18493     */
18494    EAPI const char         *elm_slideshow_transition_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18495
18496    /**
18497     * Set the interval between each image transition on a given
18498     * slideshow widget, <b>and start the slideshow, itself</b>
18499     *
18500     * @param obj The slideshow object
18501     * @param timeout The new displaying timeout for images
18502     *
18503     * After this call, the slideshow widget will start cycling its
18504     * view, sequentially and automatically, with the images of the
18505     * items it has. The time between each new image displayed is going
18506     * to be @p timeout, in @b seconds. If a different timeout was set
18507     * previously and an slideshow was in progress, it will continue
18508     * with the new time between transitions, after this call.
18509     *
18510     * @note A value less than or equal to 0 on @p timeout will disable
18511     * the widget's internal timer, thus halting any slideshow which
18512     * could be happening on @p obj.
18513     *
18514     * @see elm_slideshow_timeout_get()
18515     *
18516     * @ingroup Slideshow
18517     */
18518    EAPI void                elm_slideshow_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
18519
18520    /**
18521     * Get the interval set for image transitions on a given slideshow
18522     * widget.
18523     *
18524     * @param obj The slideshow object
18525     * @return Returns the timeout set on it
18526     *
18527     * @see elm_slideshow_timeout_set() for more details
18528     *
18529     * @ingroup Slideshow
18530     */
18531    EAPI double              elm_slideshow_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18532
18533    /**
18534     * Set if, after a slideshow is started, for a given slideshow
18535     * widget, its items should be displayed cyclically or not.
18536     *
18537     * @param obj The slideshow object
18538     * @param loop Use @c EINA_TRUE to make it cycle through items or
18539     * @c EINA_FALSE for it to stop at the end of @p obj's internal
18540     * list of items
18541     *
18542     * @note elm_slideshow_next() and elm_slideshow_previous() will @b
18543     * ignore what is set by this functions, i.e., they'll @b always
18544     * cycle through items. This affects only the "automatic"
18545     * slideshow, as set by elm_slideshow_timeout_set().
18546     *
18547     * @see elm_slideshow_loop_get()
18548     *
18549     * @ingroup Slideshow
18550     */
18551    EAPI void                elm_slideshow_loop_set(Evas_Object *obj, Eina_Bool loop) EINA_ARG_NONNULL(1);
18552
18553    /**
18554     * Get if, after a slideshow is started, for a given slideshow
18555     * widget, its items are to be displayed cyclically or not.
18556     *
18557     * @param obj The slideshow object
18558     * @return @c EINA_TRUE, if the items in @p obj will be cycled
18559     * through or @c EINA_FALSE, otherwise
18560     *
18561     * @see elm_slideshow_loop_set() for more details
18562     *
18563     * @ingroup Slideshow
18564     */
18565    EAPI Eina_Bool           elm_slideshow_loop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18566
18567    /**
18568     * Remove all items from a given slideshow widget
18569     *
18570     * @param obj The slideshow object
18571     *
18572     * This removes (and deletes) all items in @p obj, leaving it
18573     * empty.
18574     *
18575     * @see elm_slideshow_item_del(), to remove just one item.
18576     *
18577     * @ingroup Slideshow
18578     */
18579    EAPI void                elm_slideshow_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
18580
18581    /**
18582     * Get the internal list of items in a given slideshow widget.
18583     *
18584     * @param obj The slideshow object
18585     * @return The list of items (#Elm_Slideshow_Item as data) or
18586     * @c NULL on errors.
18587     *
18588     * This list is @b not to be modified in any way and must not be
18589     * freed. Use the list members with functions like
18590     * elm_slideshow_item_del(), elm_slideshow_item_data_get().
18591     *
18592     * @warning This list is only valid until @p obj object's internal
18593     * items list is changed. It should be fetched again with another
18594     * call to this function when changes happen.
18595     *
18596     * @ingroup Slideshow
18597     */
18598    EAPI const Eina_List    *elm_slideshow_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18599
18600    /**
18601     * Delete a given item from a slideshow widget.
18602     *
18603     * @param item The slideshow item
18604     *
18605     * @ingroup Slideshow
18606     */
18607    EAPI void                elm_slideshow_item_del(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
18608
18609    /**
18610     * Return the data associated with a given slideshow item
18611     *
18612     * @param item The slideshow item
18613     * @return Returns the data associated to this item
18614     *
18615     * @ingroup Slideshow
18616     */
18617    EAPI void               *elm_slideshow_item_data_get(const Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
18618
18619    /**
18620     * Returns the currently displayed item, in a given slideshow widget
18621     *
18622     * @param obj The slideshow object
18623     * @return A handle to the item being displayed in @p obj or
18624     * @c NULL, if none is (and on errors)
18625     *
18626     * @ingroup Slideshow
18627     */
18628    EAPI Elm_Slideshow_Item *elm_slideshow_item_current_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18629
18630    /**
18631     * Get the real Evas object created to implement the view of a
18632     * given slideshow item
18633     *
18634     * @param item The slideshow item.
18635     * @return the Evas object implementing this item's view.
18636     *
18637     * This returns the actual Evas object used to implement the
18638     * specified slideshow item's view. This may be @c NULL, as it may
18639     * not have been created or may have been deleted, at any time, by
18640     * the slideshow. <b>Do not modify this object</b> (move, resize,
18641     * show, hide, etc.), as the slideshow is controlling it. This
18642     * function is for querying, emitting custom signals or hooking
18643     * lower level callbacks for events on that object. Do not delete
18644     * this object under any circumstances.
18645     *
18646     * @see elm_slideshow_item_data_get()
18647     *
18648     * @ingroup Slideshow
18649     */
18650    EAPI Evas_Object*        elm_slideshow_item_object_get(const Elm_Slideshow_Item* item) EINA_ARG_NONNULL(1);
18651
18652    /**
18653     * Get the the item, in a given slideshow widget, placed at
18654     * position @p nth, in its internal items list
18655     *
18656     * @param obj The slideshow object
18657     * @param nth The number of the item to grab a handle to (0 being
18658     * the first)
18659     * @return The item stored in @p obj at position @p nth or @c NULL,
18660     * if there's no item with that index (and on errors)
18661     *
18662     * @ingroup Slideshow
18663     */
18664    EAPI Elm_Slideshow_Item *elm_slideshow_item_nth_get(const Evas_Object *obj, unsigned int nth) EINA_ARG_NONNULL(1);
18665
18666    /**
18667     * Set the current slide layout in use for a given slideshow widget
18668     *
18669     * @param obj The slideshow object
18670     * @param layout The new layout's name string
18671     *
18672     * If @p layout is implemented in @p obj's theme (i.e., is contained
18673     * in the list returned by elm_slideshow_layouts_get()), this new
18674     * images layout will be used on the widget.
18675     *
18676     * @see elm_slideshow_layouts_get() for more details
18677     *
18678     * @ingroup Slideshow
18679     */
18680    EAPI void                elm_slideshow_layout_set(Evas_Object *obj, const char *layout) EINA_ARG_NONNULL(1);
18681
18682    /**
18683     * Get the current slide layout in use for a given slideshow widget
18684     *
18685     * @param obj The slideshow object
18686     * @return The current layout's name
18687     *
18688     * @see elm_slideshow_layout_set() for more details
18689     *
18690     * @ingroup Slideshow
18691     */
18692    EAPI const char         *elm_slideshow_layout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18693
18694    /**
18695     * Returns the list of @b layout names available, for a given
18696     * slideshow widget.
18697     *
18698     * @param obj The slideshow object
18699     * @return The list of layouts (list of @b stringshared strings
18700     * as data)
18701     *
18702     * Slideshow layouts will change how the widget is to dispose each
18703     * image item in its viewport, with regard to cropping, scaling,
18704     * etc.
18705     *
18706     * The layouts, which come from @p obj's theme, must be an EDC
18707     * data item name @c "layouts" on the theme file, with (prefix)
18708     * names of EDC programs actually implementing them.
18709     *
18710     * The available layouts for slideshows on the default theme are:
18711     * - @c "fullscreen" - item images with original aspect, scaled to
18712     *   touch top and down slideshow borders or, if the image's heigh
18713     *   is not enough, left and right slideshow borders.
18714     * - @c "not_fullscreen" - the same behavior as the @c "fullscreen"
18715     *   one, but always leaving 10% of the slideshow's dimensions of
18716     *   distance between the item image's borders and the slideshow
18717     *   borders, for each axis.
18718     *
18719     * @warning The stringshared strings get no new references
18720     * exclusive to the user grabbing the list, here, so if you'd like
18721     * to use them out of this call's context, you'd better @c
18722     * eina_stringshare_ref() them.
18723     *
18724     * @see elm_slideshow_layout_set()
18725     *
18726     * @ingroup Slideshow
18727     */
18728    EAPI const Eina_List    *elm_slideshow_layouts_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18729
18730    /**
18731     * Set the number of items to cache, on a given slideshow widget,
18732     * <b>before the current item</b>
18733     *
18734     * @param obj The slideshow object
18735     * @param count Number of items to cache before the current one
18736     *
18737     * The default value for this property is @c 2. See
18738     * @ref Slideshow_Caching "slideshow caching" for more details.
18739     *
18740     * @see elm_slideshow_cache_before_get()
18741     *
18742     * @ingroup Slideshow
18743     */
18744    EAPI void                elm_slideshow_cache_before_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
18745
18746    /**
18747     * Retrieve the number of items to cache, on a given slideshow widget,
18748     * <b>before the current item</b>
18749     *
18750     * @param obj The slideshow object
18751     * @return The number of items set to be cached before the current one
18752     *
18753     * @see elm_slideshow_cache_before_set() for more details
18754     *
18755     * @ingroup Slideshow
18756     */
18757    EAPI int                 elm_slideshow_cache_before_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18758
18759    /**
18760     * Set the number of items to cache, on a given slideshow widget,
18761     * <b>after the current item</b>
18762     *
18763     * @param obj The slideshow object
18764     * @param count Number of items to cache after the current one
18765     *
18766     * The default value for this property is @c 2. See
18767     * @ref Slideshow_Caching "slideshow caching" for more details.
18768     *
18769     * @see elm_slideshow_cache_after_get()
18770     *
18771     * @ingroup Slideshow
18772     */
18773    EAPI void                elm_slideshow_cache_after_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
18774
18775    /**
18776     * Retrieve the number of items to cache, on a given slideshow widget,
18777     * <b>after the current item</b>
18778     *
18779     * @param obj The slideshow object
18780     * @return The number of items set to be cached after the current one
18781     *
18782     * @see elm_slideshow_cache_after_set() for more details
18783     *
18784     * @ingroup Slideshow
18785     */
18786    EAPI int                 elm_slideshow_cache_after_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18787
18788    /**
18789     * Get the number of items stored in a given slideshow widget
18790     *
18791     * @param obj The slideshow object
18792     * @return The number of items on @p obj, at the moment of this call
18793     *
18794     * @ingroup Slideshow
18795     */
18796    EAPI unsigned int        elm_slideshow_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18797
18798    /**
18799     * @}
18800     */
18801
18802    /**
18803     * @defgroup Fileselector File Selector
18804     *
18805     * @image html img/widget/fileselector/preview-00.png
18806     * @image latex img/widget/fileselector/preview-00.eps
18807     *
18808     * A file selector is a widget that allows a user to navigate
18809     * through a file system, reporting file selections back via its
18810     * API.
18811     *
18812     * It contains shortcut buttons for home directory (@c ~) and to
18813     * jump one directory upwards (..), as well as cancel/ok buttons to
18814     * confirm/cancel a given selection. After either one of those two
18815     * former actions, the file selector will issue its @c "done" smart
18816     * callback.
18817     *
18818     * There's a text entry on it, too, showing the name of the current
18819     * selection. There's the possibility of making it editable, so it
18820     * is useful on file saving dialogs on applications, where one
18821     * gives a file name to save contents to, in a given directory in
18822     * the system. This custom file name will be reported on the @c
18823     * "done" smart callback (explained in sequence).
18824     *
18825     * Finally, it has a view to display file system items into in two
18826     * possible forms:
18827     * - list
18828     * - grid
18829     *
18830     * If Elementary is built with support of the Ethumb thumbnailing
18831     * library, the second form of view will display preview thumbnails
18832     * of files which it supports.
18833     *
18834     * Smart callbacks one can register to:
18835     *
18836     * - @c "selected" - the user has clicked on a file (when not in
18837     *      folders-only mode) or directory (when in folders-only mode)
18838     * - @c "directory,open" - the list has been populated with new
18839     *      content (@c event_info is a pointer to the directory's
18840     *      path, a @b stringshared string)
18841     * - @c "done" - the user has clicked on the "ok" or "cancel"
18842     *      buttons (@c event_info is a pointer to the selection's
18843     *      path, a @b stringshared string)
18844     *
18845     * Here is an example on its usage:
18846     * @li @ref fileselector_example
18847     */
18848
18849    /**
18850     * @addtogroup Fileselector
18851     * @{
18852     */
18853
18854    /**
18855     * Defines how a file selector widget is to layout its contents
18856     * (file system entries).
18857     */
18858    typedef enum _Elm_Fileselector_Mode
18859      {
18860         ELM_FILESELECTOR_LIST = 0, /**< layout as a list */
18861         ELM_FILESELECTOR_GRID, /**< layout as a grid */
18862         ELM_FILESELECTOR_LAST /**< sentinel (helper) value, not used */
18863      } Elm_Fileselector_Mode;
18864
18865    /**
18866     * Add a new file selector widget to the given parent Elementary
18867     * (container) object
18868     *
18869     * @param parent The parent object
18870     * @return a new file selector widget handle or @c NULL, on errors
18871     *
18872     * This function inserts a new file selector widget on the canvas.
18873     *
18874     * @ingroup Fileselector
18875     */
18876    EAPI Evas_Object          *elm_fileselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18877
18878    /**
18879     * Enable/disable the file name entry box where the user can type
18880     * in a name for a file, in a given file selector widget
18881     *
18882     * @param obj The file selector object
18883     * @param is_save @c EINA_TRUE to make the file selector a "saving
18884     * dialog", @c EINA_FALSE otherwise
18885     *
18886     * Having the entry editable is useful on file saving dialogs on
18887     * applications, where one gives a file name to save contents to,
18888     * in a given directory in the system. This custom file name will
18889     * be reported on the @c "done" smart callback.
18890     *
18891     * @see elm_fileselector_is_save_get()
18892     *
18893     * @ingroup Fileselector
18894     */
18895    EAPI void                  elm_fileselector_is_save_set(Evas_Object *obj, Eina_Bool is_save) EINA_ARG_NONNULL(1);
18896
18897    /**
18898     * Get whether the given file selector is in "saving dialog" mode
18899     *
18900     * @param obj The file selector object
18901     * @return @c EINA_TRUE, if the file selector is in "saving dialog"
18902     * mode, @c EINA_FALSE otherwise (and on errors)
18903     *
18904     * @see elm_fileselector_is_save_set() for more details
18905     *
18906     * @ingroup Fileselector
18907     */
18908    EAPI Eina_Bool             elm_fileselector_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18909
18910    /**
18911     * Enable/disable folder-only view for a given file selector widget
18912     *
18913     * @param obj The file selector object
18914     * @param only @c EINA_TRUE to make @p obj only display
18915     * directories, @c EINA_FALSE to make files to be displayed in it
18916     * too
18917     *
18918     * If enabled, the widget's view will only display folder items,
18919     * naturally.
18920     *
18921     * @see elm_fileselector_folder_only_get()
18922     *
18923     * @ingroup Fileselector
18924     */
18925    EAPI void                  elm_fileselector_folder_only_set(Evas_Object *obj, Eina_Bool only) EINA_ARG_NONNULL(1);
18926
18927    /**
18928     * Get whether folder-only view is set for a given file selector
18929     * widget
18930     *
18931     * @param obj The file selector object
18932     * @return only @c EINA_TRUE if @p obj is only displaying
18933     * directories, @c EINA_FALSE if files are being displayed in it
18934     * too (and on errors)
18935     *
18936     * @see elm_fileselector_folder_only_get()
18937     *
18938     * @ingroup Fileselector
18939     */
18940    EAPI Eina_Bool             elm_fileselector_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18941
18942    /**
18943     * Enable/disable the "ok" and "cancel" buttons on a given file
18944     * selector widget
18945     *
18946     * @param obj The file selector object
18947     * @param only @c EINA_TRUE to show them, @c EINA_FALSE to hide.
18948     *
18949     * @note A file selector without those buttons will never emit the
18950     * @c "done" smart event, and is only usable if one is just hooking
18951     * to the other two events.
18952     *
18953     * @see elm_fileselector_buttons_ok_cancel_get()
18954     *
18955     * @ingroup Fileselector
18956     */
18957    EAPI void                  elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool buttons) EINA_ARG_NONNULL(1);
18958
18959    /**
18960     * Get whether the "ok" and "cancel" buttons on a given file
18961     * selector widget are being shown.
18962     *
18963     * @param obj The file selector object
18964     * @return @c EINA_TRUE if they are being shown, @c EINA_FALSE
18965     * otherwise (and on errors)
18966     *
18967     * @see elm_fileselector_buttons_ok_cancel_set() for more details
18968     *
18969     * @ingroup Fileselector
18970     */
18971    EAPI Eina_Bool             elm_fileselector_buttons_ok_cancel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18972
18973    /**
18974     * Enable/disable a tree view in the given file selector widget,
18975     * <b>if it's in @c #ELM_FILESELECTOR_LIST mode</b>
18976     *
18977     * @param obj The file selector object
18978     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
18979     * disable
18980     *
18981     * In a tree view, arrows are created on the sides of directories,
18982     * allowing them to expand in place.
18983     *
18984     * @note If it's in other mode, the changes made by this function
18985     * will only be visible when one switches back to "list" mode.
18986     *
18987     * @see elm_fileselector_expandable_get()
18988     *
18989     * @ingroup Fileselector
18990     */
18991    EAPI void                  elm_fileselector_expandable_set(Evas_Object *obj, Eina_Bool expand) EINA_ARG_NONNULL(1);
18992
18993    /**
18994     * Get whether tree view is enabled for the given file selector
18995     * widget
18996     *
18997     * @param obj The file selector object
18998     * @return @c EINA_TRUE if @p obj is in tree view, @c EINA_FALSE
18999     * otherwise (and or errors)
19000     *
19001     * @see elm_fileselector_expandable_set() for more details
19002     *
19003     * @ingroup Fileselector
19004     */
19005    EAPI Eina_Bool             elm_fileselector_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19006
19007    /**
19008     * Set, programmatically, the @b directory that a given file
19009     * selector widget will display contents from
19010     *
19011     * @param obj The file selector object
19012     * @param path The path to display in @p obj
19013     *
19014     * This will change the @b directory that @p obj is displaying. It
19015     * will also clear the text entry area on the @p obj object, which
19016     * displays select files' names.
19017     *
19018     * @see elm_fileselector_path_get()
19019     *
19020     * @ingroup Fileselector
19021     */
19022    EAPI void                  elm_fileselector_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
19023
19024    /**
19025     * Get the parent directory's path that a given file selector
19026     * widget is displaying
19027     *
19028     * @param obj The file selector object
19029     * @return The (full) path of the directory the file selector is
19030     * displaying, a @b stringshared string
19031     *
19032     * @see elm_fileselector_path_set()
19033     *
19034     * @ingroup Fileselector
19035     */
19036    EAPI const char           *elm_fileselector_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19037
19038    /**
19039     * Set, programmatically, the currently selected file/directory in
19040     * the given file selector widget
19041     *
19042     * @param obj The file selector object
19043     * @param path The (full) path to a file or directory
19044     * @return @c EINA_TRUE on success, @c EINA_FALSE on failure. The
19045     * latter case occurs if the directory or file pointed to do not
19046     * exist.
19047     *
19048     * @see elm_fileselector_selected_get()
19049     *
19050     * @ingroup Fileselector
19051     */
19052    EAPI Eina_Bool             elm_fileselector_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
19053
19054    /**
19055     * Get the currently selected item's (full) path, in the given file
19056     * selector widget
19057     *
19058     * @param obj The file selector object
19059     * @return The absolute path of the selected item, a @b
19060     * stringshared string
19061     *
19062     * @note Custom editions on @p obj object's text entry, if made,
19063     * will appear on the return string of this function, naturally.
19064     *
19065     * @see elm_fileselector_selected_set() for more details
19066     *
19067     * @ingroup Fileselector
19068     */
19069    EAPI const char           *elm_fileselector_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19070
19071    /**
19072     * Set the mode in which a given file selector widget will display
19073     * (layout) file system entries in its view
19074     *
19075     * @param obj The file selector object
19076     * @param mode The mode of the fileselector, being it one of
19077     * #ELM_FILESELECTOR_LIST (default) or #ELM_FILESELECTOR_GRID. The
19078     * first one, naturally, will display the files in a list. The
19079     * latter will make the widget to display its entries in a grid
19080     * form.
19081     *
19082     * @note By using elm_fileselector_expandable_set(), the user may
19083     * trigger a tree view for that list.
19084     *
19085     * @note If Elementary is built with support of the Ethumb
19086     * thumbnailing library, the second form of view will display
19087     * preview thumbnails of files which it supports. You must have
19088     * elm_need_ethumb() called in your Elementary for thumbnailing to
19089     * work, though.
19090     *
19091     * @see elm_fileselector_expandable_set().
19092     * @see elm_fileselector_mode_get().
19093     *
19094     * @ingroup Fileselector
19095     */
19096    EAPI void                  elm_fileselector_mode_set(Evas_Object *obj, Elm_Fileselector_Mode mode) EINA_ARG_NONNULL(1);
19097
19098    /**
19099     * Get the mode in which a given file selector widget is displaying
19100     * (layouting) file system entries in its view
19101     *
19102     * @param obj The fileselector object
19103     * @return The mode in which the fileselector is at
19104     *
19105     * @see elm_fileselector_mode_set() for more details
19106     *
19107     * @ingroup Fileselector
19108     */
19109    EAPI Elm_Fileselector_Mode elm_fileselector_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19110
19111    /**
19112     * @}
19113     */
19114
19115    /**
19116     * @defgroup Progressbar Progress bar
19117     *
19118     * The progress bar is a widget for visually representing the
19119     * progress status of a given job/task.
19120     *
19121     * A progress bar may be horizontal or vertical. It may display an
19122     * icon besides it, as well as primary and @b units labels. The
19123     * former is meant to label the widget as a whole, while the
19124     * latter, which is formatted with floating point values (and thus
19125     * accepts a <c>printf</c>-style format string, like <c>"%1.2f
19126     * units"</c>), is meant to label the widget's <b>progress
19127     * value</b>. Label, icon and unit strings/objects are @b optional
19128     * for progress bars.
19129     *
19130     * A progress bar may be @b inverted, in which state it gets its
19131     * values inverted, with high values being on the left or top and
19132     * low values on the right or bottom, as opposed to normally have
19133     * the low values on the former and high values on the latter,
19134     * respectively, for horizontal and vertical modes.
19135     *
19136     * The @b span of the progress, as set by
19137     * elm_progressbar_span_size_set(), is its length (horizontally or
19138     * vertically), unless one puts size hints on the widget to expand
19139     * on desired directions, by any container. That length will be
19140     * scaled by the object or applications scaling factor. At any
19141     * point code can query the progress bar for its value with
19142     * elm_progressbar_value_get().
19143     *
19144     * Available widget styles for progress bars:
19145     * - @c "default"
19146     * - @c "wheel" (simple style, no text, no progression, only
19147     *      "pulse" effect is available)
19148     *
19149     * Here is an example on its usage:
19150     * @li @ref progressbar_example
19151     */
19152
19153    /**
19154     * Add a new progress bar widget to the given parent Elementary
19155     * (container) object
19156     *
19157     * @param parent The parent object
19158     * @return a new progress bar widget handle or @c NULL, on errors
19159     *
19160     * This function inserts a new progress bar widget on the canvas.
19161     *
19162     * @ingroup Progressbar
19163     */
19164    EAPI Evas_Object *elm_progressbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19165
19166    /**
19167     * Set whether a given progress bar widget is at "pulsing mode" or
19168     * not.
19169     *
19170     * @param obj The progress bar object
19171     * @param pulse @c EINA_TRUE to put @p obj in pulsing mode,
19172     * @c EINA_FALSE to put it back to its default one
19173     *
19174     * By default, progress bars will display values from the low to
19175     * high value boundaries. There are, though, contexts in which the
19176     * state of progression of a given task is @b unknown.  For those,
19177     * one can set a progress bar widget to a "pulsing state", to give
19178     * the user an idea that some computation is being held, but
19179     * without exact progress values. In the default theme it will
19180     * animate its bar with the contents filling in constantly and back
19181     * to non-filled, in a loop. To start and stop this pulsing
19182     * animation, one has to explicitly call elm_progressbar_pulse().
19183     *
19184     * @see elm_progressbar_pulse_get()
19185     * @see elm_progressbar_pulse()
19186     *
19187     * @ingroup Progressbar
19188     */
19189    EAPI void         elm_progressbar_pulse_set(Evas_Object *obj, Eina_Bool pulse) EINA_ARG_NONNULL(1);
19190
19191    /**
19192     * Get whether a given progress bar widget is at "pulsing mode" or
19193     * not.
19194     *
19195     * @param obj The progress bar object
19196     * @return @c EINA_TRUE, if @p obj is in pulsing mode, @c EINA_FALSE
19197     * if it's in the default one (and on errors)
19198     *
19199     * @ingroup Progressbar
19200     */
19201    EAPI Eina_Bool    elm_progressbar_pulse_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19202
19203    /**
19204     * Start/stop a given progress bar "pulsing" animation, if its
19205     * under that mode
19206     *
19207     * @param obj The progress bar object
19208     * @param state @c EINA_TRUE, to @b start the pulsing animation,
19209     * @c EINA_FALSE to @b stop it
19210     *
19211     * @note This call won't do anything if @p obj is not under "pulsing mode".
19212     *
19213     * @see elm_progressbar_pulse_set() for more details.
19214     *
19215     * @ingroup Progressbar
19216     */
19217    EAPI void         elm_progressbar_pulse(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
19218
19219    /**
19220     * Set the progress value (in percentage) on a given progress bar
19221     * widget
19222     *
19223     * @param obj The progress bar object
19224     * @param val The progress value (@b must be between @c 0.0 and @c
19225     * 1.0)
19226     *
19227     * Use this call to set progress bar levels.
19228     *
19229     * @note If you passes a value out of the specified range for @p
19230     * val, it will be interpreted as the @b closest of the @b boundary
19231     * values in the range.
19232     *
19233     * @ingroup Progressbar
19234     */
19235    EAPI void         elm_progressbar_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
19236
19237    /**
19238     * Get the progress value (in percentage) on a given progress bar
19239     * widget
19240     *
19241     * @param obj The progress bar object
19242     * @return The value of the progressbar
19243     *
19244     * @see elm_progressbar_value_set() for more details
19245     *
19246     * @ingroup Progressbar
19247     */
19248    EAPI double       elm_progressbar_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19249
19250    /**
19251     * Set the label of a given progress bar widget
19252     *
19253     * @param obj The progress bar object
19254     * @param label The text label string, in UTF-8
19255     *
19256     * @ingroup Progressbar
19257     * @deprecated use elm_object_text_set() instead.
19258     */
19259    EINA_DEPRECATED EAPI void         elm_progressbar_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
19260
19261    /**
19262     * Get the label of a given progress bar widget
19263     *
19264     * @param obj The progressbar object
19265     * @return The text label string, in UTF-8
19266     *
19267     * @ingroup Progressbar
19268     * @deprecated use elm_object_text_set() instead.
19269     */
19270    EINA_DEPRECATED EAPI const char  *elm_progressbar_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19271
19272    /**
19273     * Set the icon object of a given progress bar widget
19274     *
19275     * @param obj The progress bar object
19276     * @param icon The icon object
19277     *
19278     * Use this call to decorate @p obj with an icon next to it.
19279     *
19280     * @note Once the icon object is set, a previously set one will be
19281     * deleted. If you want to keep that old content object, use the
19282     * elm_progressbar_icon_unset() function.
19283     *
19284     * @see elm_progressbar_icon_get()
19285     *
19286     * @ingroup Progressbar
19287     */
19288    EAPI void         elm_progressbar_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
19289
19290    /**
19291     * Retrieve the icon object set for a given progress bar widget
19292     *
19293     * @param obj The progress bar object
19294     * @return The icon object's handle, if @p obj had one set, or @c NULL,
19295     * otherwise (and on errors)
19296     *
19297     * @see elm_progressbar_icon_set() for more details
19298     *
19299     * @ingroup Progressbar
19300     */
19301    EAPI Evas_Object *elm_progressbar_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19302
19303    /**
19304     * Unset an icon set on a given progress bar widget
19305     *
19306     * @param obj The progress bar object
19307     * @return The icon object that was being used, if any was set, or
19308     * @c NULL, otherwise (and on errors)
19309     *
19310     * This call will unparent and return the icon object which was set
19311     * for this widget, previously, on success.
19312     *
19313     * @see elm_progressbar_icon_set() for more details
19314     *
19315     * @ingroup Progressbar
19316     */
19317    EAPI Evas_Object *elm_progressbar_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
19318
19319    /**
19320     * Set the (exact) length of the bar region of a given progress bar
19321     * widget
19322     *
19323     * @param obj The progress bar object
19324     * @param size The length of the progress bar's bar region
19325     *
19326     * This sets the minimum width (when in horizontal mode) or height
19327     * (when in vertical mode) of the actual bar area of the progress
19328     * bar @p obj. This in turn affects the object's minimum size. Use
19329     * this when you're not setting other size hints expanding on the
19330     * given direction (like weight and alignment hints) and you would
19331     * like it to have a specific size.
19332     *
19333     * @note Icon, label and unit text around @p obj will require their
19334     * own space, which will make @p obj to require more the @p size,
19335     * actually.
19336     *
19337     * @see elm_progressbar_span_size_get()
19338     *
19339     * @ingroup Progressbar
19340     */
19341    EAPI void         elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
19342
19343    /**
19344     * Get the length set for the bar region of a given progress bar
19345     * widget
19346     *
19347     * @param obj The progress bar object
19348     * @return The length of the progress bar's bar region
19349     *
19350     * If that size was not set previously, with
19351     * elm_progressbar_span_size_set(), this call will return @c 0.
19352     *
19353     * @ingroup Progressbar
19354     */
19355    EAPI Evas_Coord   elm_progressbar_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19356
19357    /**
19358     * Set the format string for a given progress bar widget's units
19359     * label
19360     *
19361     * @param obj The progress bar object
19362     * @param format The format string for @p obj's units label
19363     *
19364     * If @c NULL is passed on @p format, it will make @p obj's units
19365     * area to be hidden completely. If not, it'll set the <b>format
19366     * string</b> for the units label's @b text. The units label is
19367     * provided a floating point value, so the units text is up display
19368     * at most one floating point falue. Note that the units label is
19369     * optional. Use a format string such as "%1.2f meters" for
19370     * example.
19371     *
19372     * @note The default format string for a progress bar is an integer
19373     * percentage, as in @c "%.0f %%".
19374     *
19375     * @see elm_progressbar_unit_format_get()
19376     *
19377     * @ingroup Progressbar
19378     */
19379    EAPI void         elm_progressbar_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
19380
19381    /**
19382     * Retrieve the format string set for a given progress bar widget's
19383     * units label
19384     *
19385     * @param obj The progress bar object
19386     * @return The format set string for @p obj's units label or
19387     * @c NULL, if none was set (and on errors)
19388     *
19389     * @see elm_progressbar_unit_format_set() for more details
19390     *
19391     * @ingroup Progressbar
19392     */
19393    EAPI const char  *elm_progressbar_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19394
19395    /**
19396     * Set the orientation of a given progress bar widget
19397     *
19398     * @param obj The progress bar object
19399     * @param horizontal Use @c EINA_TRUE to make @p obj to be
19400     * @b horizontal, @c EINA_FALSE to make it @b vertical
19401     *
19402     * Use this function to change how your progress bar is to be
19403     * disposed: vertically or horizontally.
19404     *
19405     * @see elm_progressbar_horizontal_get()
19406     *
19407     * @ingroup Progressbar
19408     */
19409    EAPI void         elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
19410
19411    /**
19412     * Retrieve the orientation of a given progress bar widget
19413     *
19414     * @param obj The progress bar object
19415     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
19416     * @c EINA_FALSE if it's @b vertical (and on errors)
19417     *
19418     * @see elm_progressbar_horizontal_set() for more details
19419     *
19420     * @ingroup Progressbar
19421     */
19422    EAPI Eina_Bool    elm_progressbar_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19423
19424    /**
19425     * Invert a given progress bar widget's displaying values order
19426     *
19427     * @param obj The progress bar object
19428     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
19429     * @c EINA_FALSE to bring it back to default, non-inverted values.
19430     *
19431     * A progress bar may be @b inverted, in which state it gets its
19432     * values inverted, with high values being on the left or top and
19433     * low values on the right or bottom, as opposed to normally have
19434     * the low values on the former and high values on the latter,
19435     * respectively, for horizontal and vertical modes.
19436     *
19437     * @see elm_progressbar_inverted_get()
19438     *
19439     * @ingroup Progressbar
19440     */
19441    EAPI void         elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
19442
19443    /**
19444     * Get whether a given progress bar widget's displaying values are
19445     * inverted or not
19446     *
19447     * @param obj The progress bar object
19448     * @return @c EINA_TRUE, if @p obj has inverted values,
19449     * @c EINA_FALSE otherwise (and on errors)
19450     *
19451     * @see elm_progressbar_inverted_set() for more details
19452     *
19453     * @ingroup Progressbar
19454     */
19455    EAPI Eina_Bool    elm_progressbar_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19456
19457    /**
19458     * @defgroup Separator Separator
19459     *
19460     * @brief Separator is a very thin object used to separate other objects.
19461     *
19462     * A separator can be vertical or horizontal.
19463     *
19464     * @ref tutorial_separator is a good example of how to use a separator.
19465     * @{
19466     */
19467    /**
19468     * @brief Add a separator object to @p parent
19469     *
19470     * @param parent The parent object
19471     *
19472     * @return The separator object, or NULL upon failure
19473     */
19474    EAPI Evas_Object *elm_separator_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19475    /**
19476     * @brief Set the horizontal mode of a separator object
19477     *
19478     * @param obj The separator object
19479     * @param horizontal If true, the separator is horizontal
19480     */
19481    EAPI void         elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
19482    /**
19483     * @brief Get the horizontal mode of a separator object
19484     *
19485     * @param obj The separator object
19486     * @return If true, the separator is horizontal
19487     *
19488     * @see elm_separator_horizontal_set()
19489     */
19490    EAPI Eina_Bool    elm_separator_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19491    /**
19492     * @}
19493     */
19494
19495    /**
19496     * @defgroup Spinner Spinner
19497     * @ingroup Elementary
19498     *
19499     * @image html img/widget/spinner/preview-00.png
19500     * @image latex img/widget/spinner/preview-00.eps
19501     *
19502     * A spinner is a widget which allows the user to increase or decrease
19503     * numeric values using arrow buttons, or edit values directly, clicking
19504     * over it and typing the new value.
19505     *
19506     * By default the spinner will not wrap and has a label
19507     * of "%.0f" (just showing the integer value of the double).
19508     *
19509     * A spinner has a label that is formatted with floating
19510     * point values and thus accepts a printf-style format string, like
19511     * “%1.2f units”.
19512     *
19513     * It also allows specific values to be replaced by pre-defined labels.
19514     *
19515     * Smart callbacks one can register to:
19516     *
19517     * - "changed" - Whenever the spinner value is changed.
19518     * - "delay,changed" - A short time after the value is changed by the user.
19519     *    This will be called only when the user stops dragging for a very short
19520     *    period or when they release their finger/mouse, so it avoids possibly
19521     *    expensive reactions to the value change.
19522     *
19523     * Available styles for it:
19524     * - @c "default";
19525     * - @c "vertical": up/down buttons at the right side and text left aligned.
19526     *
19527     * Here is an example on its usage:
19528     * @ref spinner_example
19529     */
19530
19531    /**
19532     * @addtogroup Spinner
19533     * @{
19534     */
19535
19536    /**
19537     * Add a new spinner widget to the given parent Elementary
19538     * (container) object.
19539     *
19540     * @param parent The parent object.
19541     * @return a new spinner widget handle or @c NULL, on errors.
19542     *
19543     * This function inserts a new spinner widget on the canvas.
19544     *
19545     * @ingroup Spinner
19546     *
19547     */
19548    EAPI Evas_Object *elm_spinner_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19549
19550    /**
19551     * Set the format string of the displayed label.
19552     *
19553     * @param obj The spinner object.
19554     * @param fmt The format string for the label display.
19555     *
19556     * If @c NULL, this sets the format to "%.0f". If not it sets the format
19557     * string for the label text. The label text is provided a floating point
19558     * value, so the label text can display up to 1 floating point value.
19559     * Note that this is optional.
19560     *
19561     * Use a format string such as "%1.2f meters" for example, and it will
19562     * display values like: "3.14 meters" for a value equal to 3.14159.
19563     *
19564     * Default is "%0.f".
19565     *
19566     * @see elm_spinner_label_format_get()
19567     *
19568     * @ingroup Spinner
19569     */
19570    EAPI void         elm_spinner_label_format_set(Evas_Object *obj, const char *fmt) EINA_ARG_NONNULL(1);
19571
19572    /**
19573     * Get the label format of the spinner.
19574     *
19575     * @param obj The spinner object.
19576     * @return The text label format string in UTF-8.
19577     *
19578     * @see elm_spinner_label_format_set() for details.
19579     *
19580     * @ingroup Spinner
19581     */
19582    EAPI const char  *elm_spinner_label_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19583
19584    /**
19585     * Set the minimum and maximum values for the spinner.
19586     *
19587     * @param obj The spinner object.
19588     * @param min The minimum value.
19589     * @param max The maximum value.
19590     *
19591     * Define the allowed range of values to be selected by the user.
19592     *
19593     * If actual value is less than @p min, it will be updated to @p min. If it
19594     * is bigger then @p max, will be updated to @p max. Actual value can be
19595     * get with elm_spinner_value_get().
19596     *
19597     * By default, min is equal to 0, and max is equal to 100.
19598     *
19599     * @warning Maximum must be greater than minimum.
19600     *
19601     * @see elm_spinner_min_max_get()
19602     *
19603     * @ingroup Spinner
19604     */
19605    EAPI void         elm_spinner_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
19606
19607    /**
19608     * Get the minimum and maximum values of the spinner.
19609     *
19610     * @param obj The spinner object.
19611     * @param min Pointer where to store the minimum value.
19612     * @param max Pointer where to store the maximum value.
19613     *
19614     * @note If only one value is needed, the other pointer can be passed
19615     * as @c NULL.
19616     *
19617     * @see elm_spinner_min_max_set() for details.
19618     *
19619     * @ingroup Spinner
19620     */
19621    EAPI void         elm_spinner_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
19622
19623    /**
19624     * Set the step used to increment or decrement the spinner value.
19625     *
19626     * @param obj The spinner object.
19627     * @param step The step value.
19628     *
19629     * This value will be incremented or decremented to the displayed value.
19630     * It will be incremented while the user keep right or top arrow pressed,
19631     * and will be decremented while the user keep left or bottom arrow pressed.
19632     *
19633     * The interval to increment / decrement can be set with
19634     * elm_spinner_interval_set().
19635     *
19636     * By default step value is equal to 1.
19637     *
19638     * @see elm_spinner_step_get()
19639     *
19640     * @ingroup Spinner
19641     */
19642    EAPI void         elm_spinner_step_set(Evas_Object *obj, double step) EINA_ARG_NONNULL(1);
19643
19644    /**
19645     * Get the step used to increment or decrement the spinner value.
19646     *
19647     * @param obj The spinner object.
19648     * @return The step value.
19649     *
19650     * @see elm_spinner_step_get() for more details.
19651     *
19652     * @ingroup Spinner
19653     */
19654    EAPI double       elm_spinner_step_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19655
19656    /**
19657     * Set the value the spinner displays.
19658     *
19659     * @param obj The spinner object.
19660     * @param val The value to be displayed.
19661     *
19662     * Value will be presented on the label following format specified with
19663     * elm_spinner_format_set().
19664     *
19665     * @warning The value must to be between min and max values. This values
19666     * are set by elm_spinner_min_max_set().
19667     *
19668     * @see elm_spinner_value_get().
19669     * @see elm_spinner_format_set().
19670     * @see elm_spinner_min_max_set().
19671     *
19672     * @ingroup Spinner
19673     */
19674    EAPI void         elm_spinner_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
19675
19676    /**
19677     * Get the value displayed by the spinner.
19678     *
19679     * @param obj The spinner object.
19680     * @return The value displayed.
19681     *
19682     * @see elm_spinner_value_set() for details.
19683     *
19684     * @ingroup Spinner
19685     */
19686    EAPI double       elm_spinner_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19687
19688    /**
19689     * Set whether the spinner should wrap when it reaches its
19690     * minimum or maximum value.
19691     *
19692     * @param obj The spinner object.
19693     * @param wrap @c EINA_TRUE to enable wrap or @c EINA_FALSE to
19694     * disable it.
19695     *
19696     * Disabled by default. If disabled, when the user tries to increment the
19697     * value,
19698     * but displayed value plus step value is bigger than maximum value,
19699     * the spinner
19700     * won't allow it. The same happens when the user tries to decrement it,
19701     * but the value less step is less than minimum value.
19702     *
19703     * When wrap is enabled, in such situations it will allow these changes,
19704     * but will get the value that would be less than minimum and subtracts
19705     * from maximum. Or add the value that would be more than maximum to
19706     * the minimum.
19707     *
19708     * E.g.:
19709     * @li min value = 10
19710     * @li max value = 50
19711     * @li step value = 20
19712     * @li displayed value = 20
19713     *
19714     * When the user decrement value (using left or bottom arrow), it will
19715     * displays @c 40, because max - (min - (displayed - step)) is
19716     * @c 50 - (@c 10 - (@c 20 - @c 20)) = @c 40.
19717     *
19718     * @see elm_spinner_wrap_get().
19719     *
19720     * @ingroup Spinner
19721     */
19722    EAPI void         elm_spinner_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
19723
19724    /**
19725     * Get whether the spinner should wrap when it reaches its
19726     * minimum or maximum value.
19727     *
19728     * @param obj The spinner object
19729     * @return @c EINA_TRUE means wrap is enabled. @c EINA_FALSE indicates
19730     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
19731     *
19732     * @see elm_spinner_wrap_set() for details.
19733     *
19734     * @ingroup Spinner
19735     */
19736    EAPI Eina_Bool    elm_spinner_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19737
19738    /**
19739     * Set whether the spinner can be directly edited by the user or not.
19740     *
19741     * @param obj The spinner object.
19742     * @param editable @c EINA_TRUE to allow users to edit it or @c EINA_FALSE to
19743     * don't allow users to edit it directly.
19744     *
19745     * Spinner objects can have edition @b disabled, in which state they will
19746     * be changed only by arrows.
19747     * Useful for contexts
19748     * where you don't want your users to interact with it writting the value.
19749     * Specially
19750     * when using special values, the user can see real value instead
19751     * of special label on edition.
19752     *
19753     * It's enabled by default.
19754     *
19755     * @see elm_spinner_editable_get()
19756     *
19757     * @ingroup Spinner
19758     */
19759    EAPI void         elm_spinner_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
19760
19761    /**
19762     * Get whether the spinner can be directly edited by the user or not.
19763     *
19764     * @param obj The spinner object.
19765     * @return @c EINA_TRUE means edition is enabled. @c EINA_FALSE indicates
19766     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
19767     *
19768     * @see elm_spinner_editable_set() for details.
19769     *
19770     * @ingroup Spinner
19771     */
19772    EAPI Eina_Bool    elm_spinner_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19773
19774    /**
19775     * Set a special string to display in the place of the numerical value.
19776     *
19777     * @param obj The spinner object.
19778     * @param value The value to be replaced.
19779     * @param label The label to be used.
19780     *
19781     * It's useful for cases when a user should select an item that is
19782     * better indicated by a label than a value. For example, weekdays or months.
19783     *
19784     * E.g.:
19785     * @code
19786     * sp = elm_spinner_add(win);
19787     * elm_spinner_min_max_set(sp, 1, 3);
19788     * elm_spinner_special_value_add(sp, 1, "January");
19789     * elm_spinner_special_value_add(sp, 2, "February");
19790     * elm_spinner_special_value_add(sp, 3, "March");
19791     * evas_object_show(sp);
19792     * @endcode
19793     *
19794     * @ingroup Spinner
19795     */
19796    EAPI void         elm_spinner_special_value_add(Evas_Object *obj, double value, const char *label) EINA_ARG_NONNULL(1);
19797
19798    /**
19799     * Set the interval on time updates for an user mouse button hold
19800     * on spinner widgets' arrows.
19801     *
19802     * @param obj The spinner object.
19803     * @param interval The (first) interval value in seconds.
19804     *
19805     * This interval value is @b decreased while the user holds the
19806     * mouse pointer either incrementing or decrementing spinner's value.
19807     *
19808     * This helps the user to get to a given value distant from the
19809     * current one easier/faster, as it will start to change quicker and
19810     * quicker on mouse button holds.
19811     *
19812     * The calculation for the next change interval value, starting from
19813     * the one set with this call, is the previous interval divided by
19814     * @c 1.05, so it decreases a little bit.
19815     *
19816     * The default starting interval value for automatic changes is
19817     * @c 0.85 seconds.
19818     *
19819     * @see elm_spinner_interval_get()
19820     *
19821     * @ingroup Spinner
19822     */
19823    EAPI void         elm_spinner_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
19824
19825    /**
19826     * Get the interval on time updates for an user mouse button hold
19827     * on spinner widgets' arrows.
19828     *
19829     * @param obj The spinner object.
19830     * @return The (first) interval value, in seconds, set on it.
19831     *
19832     * @see elm_spinner_interval_set() for more details.
19833     *
19834     * @ingroup Spinner
19835     */
19836    EAPI double       elm_spinner_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19837
19838    /**
19839     * @}
19840     */
19841
19842    /**
19843     * @defgroup Index Index
19844     *
19845     * @image html img/widget/index/preview-00.png
19846     * @image latex img/widget/index/preview-00.eps
19847     *
19848     * An index widget gives you an index for fast access to whichever
19849     * group of other UI items one might have. It's a list of text
19850     * items (usually letters, for alphabetically ordered access).
19851     *
19852     * Index widgets are by default hidden and just appear when the
19853     * user clicks over it's reserved area in the canvas. In its
19854     * default theme, it's an area one @ref Fingers "finger" wide on
19855     * the right side of the index widget's container.
19856     *
19857     * When items on the index are selected, smart callbacks get
19858     * called, so that its user can make other container objects to
19859     * show a given area or child object depending on the index item
19860     * selected. You'd probably be using an index together with @ref
19861     * List "lists", @ref Genlist "generic lists" or @ref Gengrid
19862     * "general grids".
19863     *
19864     * Smart events one  can add callbacks for are:
19865     * - @c "changed" - When the selected index item changes. @c
19866     *      event_info is the selected item's data pointer.
19867     * - @c "delay,changed" - When the selected index item changes, but
19868     *      after a small idling period. @c event_info is the selected
19869     *      item's data pointer.
19870     * - @c "selected" - When the user releases a mouse button and
19871     *      selects an item. @c event_info is the selected item's data
19872     *      pointer.
19873     * - @c "level,up" - when the user moves a finger from the first
19874     *      level to the second level
19875     * - @c "level,down" - when the user moves a finger from the second
19876     *      level to the first level
19877     *
19878     * The @c "delay,changed" event is so that it'll wait a small time
19879     * before actually reporting those events and, moreover, just the
19880     * last event happening on those time frames will actually be
19881     * reported.
19882     *
19883     * Here are some examples on its usage:
19884     * @li @ref index_example_01
19885     * @li @ref index_example_02
19886     */
19887
19888    /**
19889     * @addtogroup Index
19890     * @{
19891     */
19892
19893    typedef struct _Elm_Index_Item Elm_Index_Item; /**< Opaque handle for items of Elementary index widgets */
19894
19895    /**
19896     * Add a new index widget to the given parent Elementary
19897     * (container) object
19898     *
19899     * @param parent The parent object
19900     * @return a new index widget handle or @c NULL, on errors
19901     *
19902     * This function inserts a new index widget on the canvas.
19903     *
19904     * @ingroup Index
19905     */
19906    EAPI Evas_Object    *elm_index_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19907
19908    /**
19909     * Set whether a given index widget is or not visible,
19910     * programatically.
19911     *
19912     * @param obj The index object
19913     * @param active @c EINA_TRUE to show it, @c EINA_FALSE to hide it
19914     *
19915     * Not to be confused with visible as in @c evas_object_show() --
19916     * visible with regard to the widget's auto hiding feature.
19917     *
19918     * @see elm_index_active_get()
19919     *
19920     * @ingroup Index
19921     */
19922    EAPI void            elm_index_active_set(Evas_Object *obj, Eina_Bool active) EINA_ARG_NONNULL(1);
19923
19924    /**
19925     * Get whether a given index widget is currently visible or not.
19926     *
19927     * @param obj The index object
19928     * @return @c EINA_TRUE, if it's shown, @c EINA_FALSE otherwise
19929     *
19930     * @see elm_index_active_set() for more details
19931     *
19932     * @ingroup Index
19933     */
19934    EAPI Eina_Bool       elm_index_active_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19935
19936    /**
19937     * Set the items level for a given index widget.
19938     *
19939     * @param obj The index object.
19940     * @param level @c 0 or @c 1, the currently implemented levels.
19941     *
19942     * @see elm_index_item_level_get()
19943     *
19944     * @ingroup Index
19945     */
19946    EAPI void            elm_index_item_level_set(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
19947
19948    /**
19949     * Get the items level set for a given index widget.
19950     *
19951     * @param obj The index object.
19952     * @return @c 0 or @c 1, which are the levels @p obj might be at.
19953     *
19954     * @see elm_index_item_level_set() for more information
19955     *
19956     * @ingroup Index
19957     */
19958    EAPI int             elm_index_item_level_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19959
19960    /**
19961     * Returns the last selected item's data, for a given index widget.
19962     *
19963     * @param obj The index object.
19964     * @return The item @b data associated to the last selected item on
19965     * @p obj (or @c NULL, on errors).
19966     *
19967     * @warning The returned value is @b not an #Elm_Index_Item item
19968     * handle, but the data associated to it (see the @c item parameter
19969     * in elm_index_item_append(), as an example).
19970     *
19971     * @ingroup Index
19972     */
19973    EAPI void           *elm_index_item_selected_get(const Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
19974
19975    /**
19976     * Append a new item on a given index widget.
19977     *
19978     * @param obj The index object.
19979     * @param letter Letter under which the item should be indexed
19980     * @param item The item data to set for the index's item
19981     *
19982     * Despite the most common usage of the @p letter argument is for
19983     * single char strings, one could use arbitrary strings as index
19984     * entries.
19985     *
19986     * @c item will be the pointer returned back on @c "changed", @c
19987     * "delay,changed" and @c "selected" smart events.
19988     *
19989     * @ingroup Index
19990     */
19991    EAPI void            elm_index_item_append(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
19992
19993    /**
19994     * Prepend a new item on a given index widget.
19995     *
19996     * @param obj The index object.
19997     * @param letter Letter under which the item should be indexed
19998     * @param item The item data to set for the index's item
19999     *
20000     * Despite the most common usage of the @p letter argument is for
20001     * single char strings, one could use arbitrary strings as index
20002     * entries.
20003     *
20004     * @c item will be the pointer returned back on @c "changed", @c
20005     * "delay,changed" and @c "selected" smart events.
20006     *
20007     * @ingroup Index
20008     */
20009    EAPI void            elm_index_item_prepend(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
20010
20011    /**
20012     * Append a new item, on a given index widget, <b>after the item
20013     * having @p relative as data</b>.
20014     *
20015     * @param obj The index object.
20016     * @param letter Letter under which the item should be indexed
20017     * @param item The item data to set for the index's item
20018     * @param relative The item data of the index item to be the
20019     * predecessor of this new one
20020     *
20021     * Despite the most common usage of the @p letter argument is for
20022     * single char strings, one could use arbitrary strings as index
20023     * entries.
20024     *
20025     * @c item will be the pointer returned back on @c "changed", @c
20026     * "delay,changed" and @c "selected" smart events.
20027     *
20028     * @note If @p relative is @c NULL or if it's not found to be data
20029     * set on any previous item on @p obj, this function will behave as
20030     * elm_index_item_append().
20031     *
20032     * @ingroup Index
20033     */
20034    EAPI void            elm_index_item_append_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
20035
20036    /**
20037     * Prepend a new item, on a given index widget, <b>after the item
20038     * having @p relative as data</b>.
20039     *
20040     * @param obj The index object.
20041     * @param letter Letter under which the item should be indexed
20042     * @param item The item data to set for the index's item
20043     * @param relative The item data of the index item to be the
20044     * successor of this new one
20045     *
20046     * Despite the most common usage of the @p letter argument is for
20047     * single char strings, one could use arbitrary strings as index
20048     * entries.
20049     *
20050     * @c item will be the pointer returned back on @c "changed", @c
20051     * "delay,changed" and @c "selected" smart events.
20052     *
20053     * @note If @p relative is @c NULL or if it's not found to be data
20054     * set on any previous item on @p obj, this function will behave as
20055     * elm_index_item_prepend().
20056     *
20057     * @ingroup Index
20058     */
20059    EAPI void            elm_index_item_prepend_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
20060
20061    /**
20062     * Insert a new item into the given index widget, using @p cmp_func
20063     * function to sort items (by item handles).
20064     *
20065     * @param obj The index object.
20066     * @param letter Letter under which the item should be indexed
20067     * @param item The item data to set for the index's item
20068     * @param cmp_func The comparing function to be used to sort index
20069     * items <b>by #Elm_Index_Item item handles</b>
20070     * @param cmp_data_func A @b fallback function to be called for the
20071     * sorting of index items <b>by item data</b>). It will be used
20072     * when @p cmp_func returns @c 0 (equality), which means an index
20073     * item with provided item data already exists. To decide which
20074     * data item should be pointed to by the index item in question, @p
20075     * cmp_data_func will be used. If @p cmp_data_func returns a
20076     * non-negative value, the previous index item data will be
20077     * replaced by the given @p item pointer. If the previous data need
20078     * to be freed, it should be done by the @p cmp_data_func function,
20079     * because all references to it will be lost. If this function is
20080     * not provided (@c NULL is given), index items will be @b
20081     * duplicated, if @p cmp_func returns @c 0.
20082     *
20083     * Despite the most common usage of the @p letter argument is for
20084     * single char strings, one could use arbitrary strings as index
20085     * entries.
20086     *
20087     * @c item will be the pointer returned back on @c "changed", @c
20088     * "delay,changed" and @c "selected" smart events.
20089     *
20090     * @ingroup Index
20091     */
20092    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);
20093
20094    /**
20095     * Remove an item from a given index widget, <b>to be referenced by
20096     * it's data value</b>.
20097     *
20098     * @param obj The index object
20099     * @param item The item's data pointer for the item to be removed
20100     * from @p obj
20101     *
20102     * If a deletion callback is set, via elm_index_item_del_cb_set(),
20103     * that callback function will be called by this one.
20104     *
20105     * @warning The item to be removed from @p obj will be found via
20106     * its item data pointer, and not by an #Elm_Index_Item handle.
20107     *
20108     * @ingroup Index
20109     */
20110    EAPI void            elm_index_item_del(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
20111
20112    /**
20113     * Find a given index widget's item, <b>using item data</b>.
20114     *
20115     * @param obj The index object
20116     * @param item The item data pointed to by the desired index item
20117     * @return The index item handle, if found, or @c NULL otherwise
20118     *
20119     * @ingroup Index
20120     */
20121    EAPI Elm_Index_Item *elm_index_item_find(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
20122
20123    /**
20124     * Removes @b all items from a given index widget.
20125     *
20126     * @param obj The index object.
20127     *
20128     * If deletion callbacks are set, via elm_index_item_del_cb_set(),
20129     * that callback function will be called for each item in @p obj.
20130     *
20131     * @ingroup Index
20132     */
20133    EAPI void            elm_index_item_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
20134
20135    /**
20136     * Go to a given items level on a index widget
20137     *
20138     * @param obj The index object
20139     * @param level The index level (one of @c 0 or @c 1)
20140     *
20141     * @ingroup Index
20142     */
20143    EAPI void            elm_index_item_go(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
20144
20145    /**
20146     * Return the data associated with a given index widget item
20147     *
20148     * @param it The index widget item handle
20149     * @return The data associated with @p it
20150     *
20151     * @see elm_index_item_data_set()
20152     *
20153     * @ingroup Index
20154     */
20155    EAPI void           *elm_index_item_data_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
20156
20157    /**
20158     * Set the data associated with a given index widget item
20159     *
20160     * @param it The index widget item handle
20161     * @param data The new data pointer to set to @p it
20162     *
20163     * This sets new item data on @p it.
20164     *
20165     * @warning The old data pointer won't be touched by this function, so
20166     * the user had better to free that old data himself/herself.
20167     *
20168     * @ingroup Index
20169     */
20170    EAPI void            elm_index_item_data_set(Elm_Index_Item *it, const void *data) EINA_ARG_NONNULL(1);
20171
20172    /**
20173     * Set the function to be called when a given index widget item is freed.
20174     *
20175     * @param it The item to set the callback on
20176     * @param func The function to call on the item's deletion
20177     *
20178     * When called, @p func will have both @c data and @c event_info
20179     * arguments with the @p it item's data value and, naturally, the
20180     * @c obj argument with a handle to the parent index widget.
20181     *
20182     * @ingroup Index
20183     */
20184    EAPI void            elm_index_item_del_cb_set(Elm_Index_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
20185
20186    /**
20187     * Get the letter (string) set on a given index widget item.
20188     *
20189     * @param it The index item handle
20190     * @return The letter string set on @p it
20191     *
20192     * @ingroup Index
20193     */
20194    EAPI const char     *elm_index_item_letter_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
20195
20196    /**
20197     * @}
20198     */
20199
20200    /**
20201     * @defgroup Photocam Photocam
20202     *
20203     * @image html img/widget/photocam/preview-00.png
20204     * @image latex img/widget/photocam/preview-00.eps
20205     *
20206     * This is a widget specifically for displaying high-resolution digital
20207     * camera photos giving speedy feedback (fast load), low memory footprint
20208     * and zooming and panning as well as fitting logic. It is entirely focused
20209     * on jpeg images, and takes advantage of properties of the jpeg format (via
20210     * evas loader features in the jpeg loader).
20211     *
20212     * Signals that you can add callbacks for are:
20213     * @li "clicked" - This is called when a user has clicked the photo without
20214     *                 dragging around.
20215     * @li "press" - This is called when a user has pressed down on the photo.
20216     * @li "longpressed" - This is called when a user has pressed down on the
20217     *                     photo for a long time without dragging around.
20218     * @li "clicked,double" - This is called when a user has double-clicked the
20219     *                        photo.
20220     * @li "load" - Photo load begins.
20221     * @li "loaded" - This is called when the image file load is complete for the
20222     *                first view (low resolution blurry version).
20223     * @li "load,detail" - Photo detailed data load begins.
20224     * @li "loaded,detail" - This is called when the image file load is complete
20225     *                      for the detailed image data (full resolution needed).
20226     * @li "zoom,start" - Zoom animation started.
20227     * @li "zoom,stop" - Zoom animation stopped.
20228     * @li "zoom,change" - Zoom changed when using an auto zoom mode.
20229     * @li "scroll" - the content has been scrolled (moved)
20230     * @li "scroll,anim,start" - scrolling animation has started
20231     * @li "scroll,anim,stop" - scrolling animation has stopped
20232     * @li "scroll,drag,start" - dragging the contents around has started
20233     * @li "scroll,drag,stop" - dragging the contents around has stopped
20234     *
20235     * @ref tutorial_photocam shows the API in action.
20236     * @{
20237     */
20238    /**
20239     * @brief Types of zoom available.
20240     */
20241    typedef enum _Elm_Photocam_Zoom_Mode
20242      {
20243         ELM_PHOTOCAM_ZOOM_MODE_MANUAL = 0, /**< Zoom controled normally by elm_photocam_zoom_set */
20244         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT, /**< Zoom until photo fits in photocam */
20245         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL, /**< Zoom until photo fills photocam */
20246         ELM_PHOTOCAM_ZOOM_MODE_LAST
20247      } Elm_Photocam_Zoom_Mode;
20248    /**
20249     * @brief Add a new Photocam object
20250     *
20251     * @param parent The parent object
20252     * @return The new object or NULL if it cannot be created
20253     */
20254    EAPI Evas_Object           *elm_photocam_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20255    /**
20256     * @brief Set the photo file to be shown
20257     *
20258     * @param obj The photocam object
20259     * @param file The photo file
20260     * @return The return error (see EVAS_LOAD_ERROR_NONE, EVAS_LOAD_ERROR_GENERIC etc.)
20261     *
20262     * This sets (and shows) the specified file (with a relative or absolute
20263     * path) and will return a load error (same error that
20264     * evas_object_image_load_error_get() will return). The image will change and
20265     * adjust its size at this point and begin a background load process for this
20266     * photo that at some time in the future will be displayed at the full
20267     * quality needed.
20268     */
20269    EAPI Evas_Load_Error        elm_photocam_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
20270    /**
20271     * @brief Returns the path of the current image file
20272     *
20273     * @param obj The photocam object
20274     * @return Returns the path
20275     *
20276     * @see elm_photocam_file_set()
20277     */
20278    EAPI const char            *elm_photocam_file_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20279    /**
20280     * @brief Set the zoom level of the photo
20281     *
20282     * @param obj The photocam object
20283     * @param zoom The zoom level to set
20284     *
20285     * This sets the zoom level. 1 will be 1:1 pixel for pixel. 2 will be 2:1
20286     * (that is 2x2 photo pixels will display as 1 on-screen pixel). 4:1 will be
20287     * 4x4 photo pixels as 1 screen pixel, and so on. The @p zoom parameter must
20288     * be greater than 0. It is usggested to stick to powers of 2. (1, 2, 4, 8,
20289     * 16, 32, etc.).
20290     */
20291    EAPI void                   elm_photocam_zoom_set(Evas_Object *obj, double zoom) EINA_ARG_NONNULL(1);
20292    /**
20293     * @brief Get the zoom level of the photo
20294     *
20295     * @param obj The photocam object
20296     * @return The current zoom level
20297     *
20298     * This returns the current zoom level of the photocam object. Note that if
20299     * you set the fill mode to other than ELM_PHOTOCAM_ZOOM_MODE_MANUAL
20300     * (which is the default), the zoom level may be changed at any time by the
20301     * photocam object itself to account for photo size and photocam viewpoer
20302     * size.
20303     *
20304     * @see elm_photocam_zoom_set()
20305     * @see elm_photocam_zoom_mode_set()
20306     */
20307    EAPI double                 elm_photocam_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20308    /**
20309     * @brief Set the zoom mode
20310     *
20311     * @param obj The photocam object
20312     * @param mode The desired mode
20313     *
20314     * This sets the zoom mode to manual or one of several automatic levels.
20315     * Manual (ELM_PHOTOCAM_ZOOM_MODE_MANUAL) means that zoom is set manually by
20316     * elm_photocam_zoom_set() and will stay at that level until changed by code
20317     * or until zoom mode is changed. This is the default mode. The Automatic
20318     * modes will allow the photocam object to automatically adjust zoom mode
20319     * based on properties. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT) will adjust zoom so
20320     * the photo fits EXACTLY inside the scroll frame with no pixels outside this
20321     * area. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL will be similar but ensure no
20322     * pixels within the frame are left unfilled.
20323     */
20324    EAPI void                   elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode) EINA_ARG_NONNULL(1);
20325    /**
20326     * @brief Get the zoom mode
20327     *
20328     * @param obj The photocam object
20329     * @return The current zoom mode
20330     *
20331     * This gets the current zoom mode of the photocam object.
20332     *
20333     * @see elm_photocam_zoom_mode_set()
20334     */
20335    EAPI Elm_Photocam_Zoom_Mode elm_photocam_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20336    /**
20337     * @brief Get the current image pixel width and height
20338     *
20339     * @param obj The photocam object
20340     * @param w A pointer to the width return
20341     * @param h A pointer to the height return
20342     *
20343     * This gets the current photo pixel width and height (for the original).
20344     * The size will be returned in the integers @p w and @p h that are pointed
20345     * to.
20346     */
20347    EAPI void                   elm_photocam_image_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
20348    /**
20349     * @brief Get the area of the image that is currently shown
20350     *
20351     * @param obj
20352     * @param x A pointer to the X-coordinate of region
20353     * @param y A pointer to the Y-coordinate of region
20354     * @param w A pointer to the width
20355     * @param h A pointer to the height
20356     *
20357     * @see elm_photocam_image_region_show()
20358     * @see elm_photocam_image_region_bring_in()
20359     */
20360    EAPI void                   elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
20361    /**
20362     * @brief Set the viewed portion of the image
20363     *
20364     * @param obj The photocam object
20365     * @param x X-coordinate of region in image original pixels
20366     * @param y Y-coordinate of region in image original pixels
20367     * @param w Width of region in image original pixels
20368     * @param h Height of region in image original pixels
20369     *
20370     * This shows the region of the image without using animation.
20371     */
20372    EAPI void                   elm_photocam_image_region_show(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
20373    /**
20374     * @brief Bring in the viewed portion of the image
20375     *
20376     * @param obj The photocam object
20377     * @param x X-coordinate of region in image original pixels
20378     * @param y Y-coordinate of region in image original pixels
20379     * @param w Width of region in image original pixels
20380     * @param h Height of region in image original pixels
20381     *
20382     * This shows the region of the image using animation.
20383     */
20384    EAPI void                   elm_photocam_image_region_bring_in(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
20385    /**
20386     * @brief Set the paused state for photocam
20387     *
20388     * @param obj The photocam object
20389     * @param paused The pause state to set
20390     *
20391     * This sets the paused state to on(EINA_TRUE) or off (EINA_FALSE) for
20392     * photocam. The default is off. This will stop zooming using animation on
20393     * zoom levels changes and change instantly. This will stop any existing
20394     * animations that are running.
20395     */
20396    EAPI void                   elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
20397    /**
20398     * @brief Get the paused state for photocam
20399     *
20400     * @param obj The photocam object
20401     * @return The current paused state
20402     *
20403     * This gets the current paused state for the photocam object.
20404     *
20405     * @see elm_photocam_paused_set()
20406     */
20407    EAPI Eina_Bool              elm_photocam_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20408    /**
20409     * @brief Get the internal low-res image used for photocam
20410     *
20411     * @param obj The photocam object
20412     * @return The internal image object handle, or NULL if none exists
20413     *
20414     * This gets the internal image object inside photocam. Do not modify it. It
20415     * is for inspection only, and hooking callbacks to. Nothing else. It may be
20416     * deleted at any time as well.
20417     */
20418    EAPI Evas_Object           *elm_photocam_internal_image_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20419    /**
20420     * @brief Set the photocam scrolling bouncing.
20421     *
20422     * @param obj The photocam object
20423     * @param h_bounce bouncing for horizontal
20424     * @param v_bounce bouncing for vertical
20425     */
20426    EAPI void                   elm_photocam_bounce_set(Evas_Object *obj,  Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
20427    /**
20428     * @brief Get the photocam scrolling bouncing.
20429     *
20430     * @param obj The photocam object
20431     * @param h_bounce bouncing for horizontal
20432     * @param v_bounce bouncing for vertical
20433     *
20434     * @see elm_photocam_bounce_set()
20435     */
20436    EAPI void                   elm_photocam_bounce_get(const Evas_Object *obj,  Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
20437    /**
20438     * @}
20439     */
20440
20441    /**
20442     * @defgroup Map Map
20443     * @ingroup Elementary
20444     *
20445     * @image html img/widget/map/preview-00.png
20446     * @image latex img/widget/map/preview-00.eps
20447     *
20448     * This is a widget specifically for displaying a map. It uses basically
20449     * OpenStreetMap provider http://www.openstreetmap.org/,
20450     * but custom providers can be added.
20451     *
20452     * It supports some basic but yet nice features:
20453     * @li zoom and scroll
20454     * @li markers with content to be displayed when user clicks over it
20455     * @li group of markers
20456     * @li routes
20457     *
20458     * Smart callbacks one can listen to:
20459     *
20460     * - "clicked" - This is called when a user has clicked the map without
20461     *   dragging around.
20462     * - "press" - This is called when a user has pressed down on the map.
20463     * - "longpressed" - This is called when a user has pressed down on the map
20464     *   for a long time without dragging around.
20465     * - "clicked,double" - This is called when a user has double-clicked
20466     *   the map.
20467     * - "load,detail" - Map detailed data load begins.
20468     * - "loaded,detail" - This is called when all currently visible parts of
20469     *   the map are loaded.
20470     * - "zoom,start" - Zoom animation started.
20471     * - "zoom,stop" - Zoom animation stopped.
20472     * - "zoom,change" - Zoom changed when using an auto zoom mode.
20473     * - "scroll" - the content has been scrolled (moved).
20474     * - "scroll,anim,start" - scrolling animation has started.
20475     * - "scroll,anim,stop" - scrolling animation has stopped.
20476     * - "scroll,drag,start" - dragging the contents around has started.
20477     * - "scroll,drag,stop" - dragging the contents around has stopped.
20478     * - "downloaded" - This is called when all currently required map images
20479     *   are downloaded.
20480     * - "route,load" - This is called when route request begins.
20481     * - "route,loaded" - This is called when route request ends.
20482     * - "name,load" - This is called when name request begins.
20483     * - "name,loaded- This is called when name request ends.
20484     *
20485     * Available style for map widget:
20486     * - @c "default"
20487     *
20488     * Available style for markers:
20489     * - @c "radio"
20490     * - @c "radio2"
20491     * - @c "empty"
20492     *
20493     * Available style for marker bubble:
20494     * - @c "default"
20495     *
20496     * List of examples:
20497     * @li @ref map_example_01
20498     * @li @ref map_example_02
20499     * @li @ref map_example_03
20500     */
20501
20502    /**
20503     * @addtogroup Map
20504     * @{
20505     */
20506
20507    /**
20508     * @enum _Elm_Map_Zoom_Mode
20509     * @typedef Elm_Map_Zoom_Mode
20510     *
20511     * Set map's zoom behavior. It can be set to manual or automatic.
20512     *
20513     * Default value is #ELM_MAP_ZOOM_MODE_MANUAL.
20514     *
20515     * Values <b> don't </b> work as bitmask, only one can be choosen.
20516     *
20517     * @note Valid sizes are 2^zoom, consequently the map may be smaller
20518     * than the scroller view.
20519     *
20520     * @see elm_map_zoom_mode_set()
20521     * @see elm_map_zoom_mode_get()
20522     *
20523     * @ingroup Map
20524     */
20525    typedef enum _Elm_Map_Zoom_Mode
20526      {
20527         ELM_MAP_ZOOM_MODE_MANUAL, /**< Zoom controled manually by elm_map_zoom_set(). It's set by default. */
20528         ELM_MAP_ZOOM_MODE_AUTO_FIT, /**< Zoom until map fits inside the scroll frame with no pixels outside this area. */
20529         ELM_MAP_ZOOM_MODE_AUTO_FILL, /**< Zoom until map fills scroll, ensuring no pixels are left unfilled. */
20530         ELM_MAP_ZOOM_MODE_LAST
20531      } Elm_Map_Zoom_Mode;
20532
20533    /**
20534     * @enum _Elm_Map_Route_Sources
20535     * @typedef Elm_Map_Route_Sources
20536     *
20537     * Set route service to be used. By default used source is
20538     * #ELM_MAP_ROUTE_SOURCE_YOURS.
20539     *
20540     * @see elm_map_route_source_set()
20541     * @see elm_map_route_source_get()
20542     *
20543     * @ingroup Map
20544     */
20545    typedef enum _Elm_Map_Route_Sources
20546      {
20547         ELM_MAP_ROUTE_SOURCE_YOURS, /**< Routing service http://www.yournavigation.org/ . Set by default.*/
20548         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. */
20549         ELM_MAP_ROUTE_SOURCE_ORS, /**< Open Route Service: http://www.openrouteservice.org/ . It's not working with Map yet. */
20550         ELM_MAP_ROUTE_SOURCE_LAST
20551      } Elm_Map_Route_Sources;
20552
20553    typedef enum _Elm_Map_Name_Sources
20554      {
20555         ELM_MAP_NAME_SOURCE_NOMINATIM,
20556         ELM_MAP_NAME_SOURCE_LAST
20557      } Elm_Map_Name_Sources;
20558
20559    /**
20560     * @enum _Elm_Map_Route_Type
20561     * @typedef Elm_Map_Route_Type
20562     *
20563     * Set type of transport used on route.
20564     *
20565     * @see elm_map_route_add()
20566     *
20567     * @ingroup Map
20568     */
20569    typedef enum _Elm_Map_Route_Type
20570      {
20571         ELM_MAP_ROUTE_TYPE_MOTOCAR, /**< Route should consider an automobile will be used. */
20572         ELM_MAP_ROUTE_TYPE_BICYCLE, /**< Route should consider a bicycle will be used by the user. */
20573         ELM_MAP_ROUTE_TYPE_FOOT, /**< Route should consider user will be walking. */
20574         ELM_MAP_ROUTE_TYPE_LAST
20575      } Elm_Map_Route_Type;
20576
20577    /**
20578     * @enum _Elm_Map_Route_Method
20579     * @typedef Elm_Map_Route_Method
20580     *
20581     * Set the routing method, what should be priorized, time or distance.
20582     *
20583     * @see elm_map_route_add()
20584     *
20585     * @ingroup Map
20586     */
20587    typedef enum _Elm_Map_Route_Method
20588      {
20589         ELM_MAP_ROUTE_METHOD_FASTEST, /**< Route should priorize time. */
20590         ELM_MAP_ROUTE_METHOD_SHORTEST, /**< Route should priorize distance. */
20591         ELM_MAP_ROUTE_METHOD_LAST
20592      } Elm_Map_Route_Method;
20593
20594    typedef enum _Elm_Map_Name_Method
20595      {
20596         ELM_MAP_NAME_METHOD_SEARCH,
20597         ELM_MAP_NAME_METHOD_REVERSE,
20598         ELM_MAP_NAME_METHOD_LAST
20599      } Elm_Map_Name_Method;
20600
20601    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(). */
20602    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(). */
20603    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(). */
20604    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(). */
20605    typedef struct _Elm_Map_Name            Elm_Map_Name; /**< A handle for specific coordinates. */
20606    typedef struct _Elm_Map_Track           Elm_Map_Track;
20607
20608    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. */
20609    typedef void         (*ElmMapMarkerDelFunc)      (Evas_Object *obj, Elm_Map_Marker *marker, void *data, Evas_Object *o); /**< Function to delete bubble content for marker classes. */
20610    typedef Evas_Object *(*ElmMapMarkerIconGetFunc)  (Evas_Object *obj, Elm_Map_Marker *marker, void *data); /**< Icon fetching class function for marker classes. */
20611    typedef Evas_Object *(*ElmMapGroupIconGetFunc)   (Evas_Object *obj, void *data); /**< Icon fetching class function for markers group classes. */
20612
20613    typedef char        *(*ElmMapModuleSourceFunc) (void);
20614    typedef int          (*ElmMapModuleZoomMinFunc) (void);
20615    typedef int          (*ElmMapModuleZoomMaxFunc) (void);
20616    typedef char        *(*ElmMapModuleUrlFunc) (Evas_Object *obj, int x, int y, int zoom);
20617    typedef int          (*ElmMapModuleRouteSourceFunc) (void);
20618    typedef char        *(*ElmMapModuleRouteUrlFunc) (Evas_Object *obj, char *type_name, int method, double flon, double flat, double tlon, double tlat);
20619    typedef char        *(*ElmMapModuleNameUrlFunc) (Evas_Object *obj, int method, char *name, double lon, double lat);
20620    typedef Eina_Bool    (*ElmMapModuleGeoIntoCoordFunc) (const Evas_Object *obj, int zoom, double lon, double lat, int size, int *x, int *y);
20621    typedef Eina_Bool    (*ElmMapModuleCoordIntoGeoFunc) (const Evas_Object *obj, int zoom, int x, int y, int size, double *lon, double *lat);
20622
20623    /**
20624     * Add a new map widget to the given parent Elementary (container) object.
20625     *
20626     * @param parent The parent object.
20627     * @return a new map widget handle or @c NULL, on errors.
20628     *
20629     * This function inserts a new map widget on the canvas.
20630     *
20631     * @ingroup Map
20632     */
20633    EAPI Evas_Object          *elm_map_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20634
20635    /**
20636     * Set the zoom level of the map.
20637     *
20638     * @param obj The map object.
20639     * @param zoom The zoom level to set.
20640     *
20641     * This sets the zoom level.
20642     *
20643     * It will respect limits defined by elm_map_source_zoom_min_set() and
20644     * elm_map_source_zoom_max_set().
20645     *
20646     * By default these values are 0 (world map) and 18 (maximum zoom).
20647     *
20648     * This function should be used when zoom mode is set to
20649     * #ELM_MAP_ZOOM_MODE_MANUAL. This is the default mode, and can be set
20650     * with elm_map_zoom_mode_set().
20651     *
20652     * @see elm_map_zoom_mode_set().
20653     * @see elm_map_zoom_get().
20654     *
20655     * @ingroup Map
20656     */
20657    EAPI void                  elm_map_zoom_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
20658
20659    /**
20660     * Get the zoom level of the map.
20661     *
20662     * @param obj The map object.
20663     * @return The current zoom level.
20664     *
20665     * This returns the current zoom level of the map object.
20666     *
20667     * Note that if you set the fill mode to other than #ELM_MAP_ZOOM_MODE_MANUAL
20668     * (which is the default), the zoom level may be changed at any time by the
20669     * map object itself to account for map size and map viewport size.
20670     *
20671     * @see elm_map_zoom_set() for details.
20672     *
20673     * @ingroup Map
20674     */
20675    EAPI int                   elm_map_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20676
20677    /**
20678     * Set the zoom mode used by the map object.
20679     *
20680     * @param obj The map object.
20681     * @param mode The zoom mode of the map, being it one of
20682     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
20683     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
20684     *
20685     * This sets the zoom mode to manual or one of the automatic levels.
20686     * Manual (#ELM_MAP_ZOOM_MODE_MANUAL) means that zoom is set manually by
20687     * elm_map_zoom_set() and will stay at that level until changed by code
20688     * or until zoom mode is changed. This is the default mode.
20689     *
20690     * The Automatic modes will allow the map object to automatically
20691     * adjust zoom mode based on properties. #ELM_MAP_ZOOM_MODE_AUTO_FIT will
20692     * adjust zoom so the map fits inside the scroll frame with no pixels
20693     * outside this area. #ELM_MAP_ZOOM_MODE_AUTO_FILL will be similar but
20694     * ensure no pixels within the frame are left unfilled. Do not forget that
20695     * the valid sizes are 2^zoom, consequently the map may be smaller than
20696     * the scroller view.
20697     *
20698     * @see elm_map_zoom_set()
20699     *
20700     * @ingroup Map
20701     */
20702    EAPI void                  elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode) EINA_ARG_NONNULL(1);
20703
20704    /**
20705     * Get the zoom mode used by the map object.
20706     *
20707     * @param obj The map object.
20708     * @return The zoom mode of the map, being it one of
20709     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
20710     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
20711     *
20712     * This function returns the current zoom mode used by the map object.
20713     *
20714     * @see elm_map_zoom_mode_set() for more details.
20715     *
20716     * @ingroup Map
20717     */
20718    EAPI Elm_Map_Zoom_Mode     elm_map_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20719
20720    /**
20721     * Get the current coordinates of the map.
20722     *
20723     * @param obj The map object.
20724     * @param lon Pointer where to store longitude.
20725     * @param lat Pointer where to store latitude.
20726     *
20727     * This gets the current center coordinates of the map object. It can be
20728     * set by elm_map_geo_region_bring_in() and elm_map_geo_region_show().
20729     *
20730     * @see elm_map_geo_region_bring_in()
20731     * @see elm_map_geo_region_show()
20732     *
20733     * @ingroup Map
20734     */
20735    EAPI void                  elm_map_geo_region_get(const Evas_Object *obj, double *lon, double *lat) EINA_ARG_NONNULL(1);
20736
20737    /**
20738     * Animatedly bring in given coordinates to the center of the map.
20739     *
20740     * @param obj The map object.
20741     * @param lon Longitude to center at.
20742     * @param lat Latitude to center at.
20743     *
20744     * This causes map to jump to the given @p lat and @p lon coordinates
20745     * and show it (by scrolling) in the center of the viewport, if it is not
20746     * already centered. This will use animation to do so and take a period
20747     * of time to complete.
20748     *
20749     * @see elm_map_geo_region_show() for a function to avoid animation.
20750     * @see elm_map_geo_region_get()
20751     *
20752     * @ingroup Map
20753     */
20754    EAPI void                  elm_map_geo_region_bring_in(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
20755
20756    /**
20757     * Show the given coordinates at the center of the map, @b immediately.
20758     *
20759     * @param obj The map object.
20760     * @param lon Longitude to center at.
20761     * @param lat Latitude to center at.
20762     *
20763     * This causes map to @b redraw its viewport's contents to the
20764     * region contining the given @p lat and @p lon, that will be moved to the
20765     * center of the map.
20766     *
20767     * @see elm_map_geo_region_bring_in() for a function to move with animation.
20768     * @see elm_map_geo_region_get()
20769     *
20770     * @ingroup Map
20771     */
20772    EAPI void                  elm_map_geo_region_show(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
20773
20774    /**
20775     * Pause or unpause the map.
20776     *
20777     * @param obj The map object.
20778     * @param paused Use @c EINA_TRUE to pause the map @p obj or @c EINA_FALSE
20779     * to unpause it.
20780     *
20781     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
20782     * for map.
20783     *
20784     * The default is off.
20785     *
20786     * This will stop zooming using animation, changing zoom levels will
20787     * change instantly. This will stop any existing animations that are running.
20788     *
20789     * @see elm_map_paused_get()
20790     *
20791     * @ingroup Map
20792     */
20793    EAPI void                  elm_map_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
20794
20795    /**
20796     * Get a value whether map is paused or not.
20797     *
20798     * @param obj The map object.
20799     * @return @c EINA_TRUE means map is pause. @c EINA_FALSE indicates
20800     * it is not. If @p obj is @c NULL, @c EINA_FALSE is returned.
20801     *
20802     * This gets the current paused state for the map object.
20803     *
20804     * @see elm_map_paused_set() for details.
20805     *
20806     * @ingroup Map
20807     */
20808    EAPI Eina_Bool             elm_map_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20809
20810    /**
20811     * Set to show markers during zoom level changes or not.
20812     *
20813     * @param obj The map object.
20814     * @param paused Use @c EINA_TRUE to @b not show markers or @c EINA_FALSE
20815     * to show them.
20816     *
20817     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
20818     * for map.
20819     *
20820     * The default is off.
20821     *
20822     * This will stop zooming using animation, changing zoom levels will
20823     * change instantly. This will stop any existing animations that are running.
20824     *
20825     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
20826     * for the markers.
20827     *
20828     * The default  is off.
20829     *
20830     * Enabling it will force the map to stop displaying the markers during
20831     * zoom level changes. Set to on if you have a large number of markers.
20832     *
20833     * @see elm_map_paused_markers_get()
20834     *
20835     * @ingroup Map
20836     */
20837    EAPI void                  elm_map_paused_markers_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
20838
20839    /**
20840     * Get a value whether markers will be displayed on zoom level changes or not
20841     *
20842     * @param obj The map object.
20843     * @return @c EINA_TRUE means map @b won't display markers or @c EINA_FALSE
20844     * indicates it will. If @p obj is @c NULL, @c EINA_FALSE is returned.
20845     *
20846     * This gets the current markers paused state for the map object.
20847     *
20848     * @see elm_map_paused_markers_set() for details.
20849     *
20850     * @ingroup Map
20851     */
20852    EAPI Eina_Bool             elm_map_paused_markers_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20853
20854    /**
20855     * Get the information of downloading status.
20856     *
20857     * @param obj The map object.
20858     * @param try_num Pointer where to store number of tiles being downloaded.
20859     * @param finish_num Pointer where to store number of tiles successfully
20860     * downloaded.
20861     *
20862     * This gets the current downloading status for the map object, the number
20863     * of tiles being downloaded and the number of tiles already downloaded.
20864     *
20865     * @ingroup Map
20866     */
20867    EAPI void                  elm_map_utils_downloading_status_get(const Evas_Object *obj, int *try_num, int *finish_num) EINA_ARG_NONNULL(1, 2, 3);
20868
20869    /**
20870     * Convert a pixel coordinate (x,y) into a geographic coordinate
20871     * (longitude, latitude).
20872     *
20873     * @param obj The map object.
20874     * @param x the coordinate.
20875     * @param y the coordinate.
20876     * @param size the size in pixels of the map.
20877     * The map is a square and generally his size is : pow(2.0, zoom)*256.
20878     * @param lon Pointer where to store the longitude that correspond to x.
20879     * @param lat Pointer where to store the latitude that correspond to y.
20880     *
20881     * @note Origin pixel point is the top left corner of the viewport.
20882     * Map zoom and size are taken on account.
20883     *
20884     * @see elm_map_utils_convert_geo_into_coord() if you need the inverse.
20885     *
20886     * @ingroup Map
20887     */
20888    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);
20889
20890    /**
20891     * Convert a geographic coordinate (longitude, latitude) into a pixel
20892     * coordinate (x, y).
20893     *
20894     * @param obj The map object.
20895     * @param lon the longitude.
20896     * @param lat the latitude.
20897     * @param size the size in pixels of the map. The map is a square
20898     * and generally his size is : pow(2.0, zoom)*256.
20899     * @param x Pointer where to store the horizontal pixel coordinate that
20900     * correspond to the longitude.
20901     * @param y Pointer where to store the vertical pixel coordinate that
20902     * correspond to the latitude.
20903     *
20904     * @note Origin pixel point is the top left corner of the viewport.
20905     * Map zoom and size are taken on account.
20906     *
20907     * @see elm_map_utils_convert_coord_into_geo() if you need the inverse.
20908     *
20909     * @ingroup Map
20910     */
20911    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);
20912
20913    /**
20914     * Convert a geographic coordinate (longitude, latitude) into a name
20915     * (address).
20916     *
20917     * @param obj The map object.
20918     * @param lon the longitude.
20919     * @param lat the latitude.
20920     * @return name A #Elm_Map_Name handle for this coordinate.
20921     *
20922     * To get the string for this address, elm_map_name_address_get()
20923     * should be used.
20924     *
20925     * @see elm_map_utils_convert_name_into_coord() if you need the inverse.
20926     *
20927     * @ingroup Map
20928     */
20929    EAPI Elm_Map_Name         *elm_map_utils_convert_coord_into_name(const Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
20930
20931    /**
20932     * Convert a name (address) into a geographic coordinate
20933     * (longitude, latitude).
20934     *
20935     * @param obj The map object.
20936     * @param name The address.
20937     * @return name A #Elm_Map_Name handle for this address.
20938     *
20939     * To get the longitude and latitude, elm_map_name_region_get()
20940     * should be used.
20941     *
20942     * @see elm_map_utils_convert_coord_into_name() if you need the inverse.
20943     *
20944     * @ingroup Map
20945     */
20946    EAPI Elm_Map_Name         *elm_map_utils_convert_name_into_coord(const Evas_Object *obj, char *address) EINA_ARG_NONNULL(1, 2);
20947
20948    /**
20949     * Convert a pixel coordinate into a rotated pixel coordinate.
20950     *
20951     * @param obj The map object.
20952     * @param x horizontal coordinate of the point to rotate.
20953     * @param y vertical coordinate of the point to rotate.
20954     * @param cx rotation's center horizontal position.
20955     * @param cy rotation's center vertical position.
20956     * @param degree amount of degrees from 0.0 to 360.0 to rotate arount Z axis.
20957     * @param xx Pointer where to store rotated x.
20958     * @param yy Pointer where to store rotated y.
20959     *
20960     * @ingroup Map
20961     */
20962    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);
20963
20964    /**
20965     * Add a new marker to the map object.
20966     *
20967     * @param obj The map object.
20968     * @param lon The longitude of the marker.
20969     * @param lat The latitude of the marker.
20970     * @param clas The class, to use when marker @b isn't grouped to others.
20971     * @param clas_group The class group, to use when marker is grouped to others
20972     * @param data The data passed to the callbacks.
20973     *
20974     * @return The created marker or @c NULL upon failure.
20975     *
20976     * A marker will be created and shown in a specific point of the map, defined
20977     * by @p lon and @p lat.
20978     *
20979     * It will be displayed using style defined by @p class when this marker
20980     * is displayed alone (not grouped). A new class can be created with
20981     * elm_map_marker_class_new().
20982     *
20983     * If the marker is grouped to other markers, it will be displayed with
20984     * style defined by @p class_group. Markers with the same group are grouped
20985     * if they are close. A new group class can be created with
20986     * elm_map_marker_group_class_new().
20987     *
20988     * Markers created with this method can be deleted with
20989     * elm_map_marker_remove().
20990     *
20991     * A marker can have associated content to be displayed by a bubble,
20992     * when a user click over it, as well as an icon. These objects will
20993     * be fetch using class' callback functions.
20994     *
20995     * @see elm_map_marker_class_new()
20996     * @see elm_map_marker_group_class_new()
20997     * @see elm_map_marker_remove()
20998     *
20999     * @ingroup Map
21000     */
21001    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);
21002
21003    /**
21004     * Set the maximum numbers of markers' content to be displayed in a group.
21005     *
21006     * @param obj The map object.
21007     * @param max The maximum numbers of items displayed in a bubble.
21008     *
21009     * A bubble will be displayed when the user clicks over the group,
21010     * and will place the content of markers that belong to this group
21011     * inside it.
21012     *
21013     * A group can have a long list of markers, consequently the creation
21014     * of the content of the bubble can be very slow.
21015     *
21016     * In order to avoid this, a maximum number of items is displayed
21017     * in a bubble.
21018     *
21019     * By default this number is 30.
21020     *
21021     * Marker with the same group class are grouped if they are close.
21022     *
21023     * @see elm_map_marker_add()
21024     *
21025     * @ingroup Map
21026     */
21027    EAPI void                  elm_map_max_marker_per_group_set(Evas_Object *obj, int max) EINA_ARG_NONNULL(1);
21028
21029    /**
21030     * Remove a marker from the map.
21031     *
21032     * @param marker The marker to remove.
21033     *
21034     * @see elm_map_marker_add()
21035     *
21036     * @ingroup Map
21037     */
21038    EAPI void                  elm_map_marker_remove(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21039
21040    /**
21041     * Get the current coordinates of the marker.
21042     *
21043     * @param marker marker.
21044     * @param lat Pointer where to store the marker's latitude.
21045     * @param lon Pointer where to store the marker's longitude.
21046     *
21047     * These values are set when adding markers, with function
21048     * elm_map_marker_add().
21049     *
21050     * @see elm_map_marker_add()
21051     *
21052     * @ingroup Map
21053     */
21054    EAPI void                  elm_map_marker_region_get(const Elm_Map_Marker *marker, double *lon, double *lat) EINA_ARG_NONNULL(1);
21055
21056    /**
21057     * Animatedly bring in given marker to the center of the map.
21058     *
21059     * @param marker The marker to center at.
21060     *
21061     * This causes map to jump to the given @p marker's coordinates
21062     * and show it (by scrolling) in the center of the viewport, if it is not
21063     * already centered. This will use animation to do so and take a period
21064     * of time to complete.
21065     *
21066     * @see elm_map_marker_show() for a function to avoid animation.
21067     * @see elm_map_marker_region_get()
21068     *
21069     * @ingroup Map
21070     */
21071    EAPI void                  elm_map_marker_bring_in(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21072
21073    /**
21074     * Show the given marker at the center of the map, @b immediately.
21075     *
21076     * @param marker The marker to center at.
21077     *
21078     * This causes map to @b redraw its viewport's contents to the
21079     * region contining the given @p marker's coordinates, that will be
21080     * moved to the center of the map.
21081     *
21082     * @see elm_map_marker_bring_in() for a function to move with animation.
21083     * @see elm_map_markers_list_show() if more than one marker need to be
21084     * displayed.
21085     * @see elm_map_marker_region_get()
21086     *
21087     * @ingroup Map
21088     */
21089    EAPI void                  elm_map_marker_show(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21090
21091    /**
21092     * Move and zoom the map to display a list of markers.
21093     *
21094     * @param markers A list of #Elm_Map_Marker handles.
21095     *
21096     * The map will be centered on the center point of the markers in the list.
21097     * Then the map will be zoomed in order to fit the markers using the maximum
21098     * zoom which allows display of all the markers.
21099     *
21100     * @warning All the markers should belong to the same map object.
21101     *
21102     * @see elm_map_marker_show() to show a single marker.
21103     * @see elm_map_marker_bring_in()
21104     *
21105     * @ingroup Map
21106     */
21107    EAPI void                  elm_map_markers_list_show(Eina_List *markers) EINA_ARG_NONNULL(1);
21108
21109    /**
21110     * Get the Evas object returned by the ElmMapMarkerGetFunc callback
21111     *
21112     * @param marker The marker wich content should be returned.
21113     * @return Return the evas object if it exists, else @c NULL.
21114     *
21115     * To set callback function #ElmMapMarkerGetFunc for the marker class,
21116     * elm_map_marker_class_get_cb_set() should be used.
21117     *
21118     * This content is what will be inside the bubble that will be displayed
21119     * when an user clicks over the marker.
21120     *
21121     * This returns the actual Evas object used to be placed inside
21122     * the bubble. This may be @c NULL, as it may
21123     * not have been created or may have been deleted, at any time, by
21124     * the map. <b>Do not modify this object</b> (move, resize,
21125     * show, hide, etc.), as the map is controlling it. This
21126     * function is for querying, emitting custom signals or hooking
21127     * lower level callbacks for events on that object. Do not delete
21128     * this object under any circumstances.
21129     *
21130     * @ingroup Map
21131     */
21132    EAPI Evas_Object          *elm_map_marker_object_get(const Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21133
21134    /**
21135     * Update the marker
21136     *
21137     * @param marker The marker to be updated.
21138     *
21139     * If a content is set to this marker, it will call function to delete it,
21140     * #ElmMapMarkerDelFunc, and then will fetch the content again with
21141     * #ElmMapMarkerGetFunc.
21142     *
21143     * These functions are set for the marker class with
21144     * elm_map_marker_class_get_cb_set() and elm_map_marker_class_del_cb_set().
21145     *
21146     * @ingroup Map
21147     */
21148    EAPI void                  elm_map_marker_update(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21149
21150    /**
21151     * Close all the bubbles opened by the user.
21152     *
21153     * @param obj The map object.
21154     *
21155     * A bubble is displayed with a content fetched with #ElmMapMarkerGetFunc
21156     * when the user clicks on a marker.
21157     *
21158     * This functions is set for the marker class with
21159     * elm_map_marker_class_get_cb_set().
21160     *
21161     * @ingroup Map
21162     */
21163    EAPI void                  elm_map_bubbles_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
21164
21165    /**
21166     * Create a new group class.
21167     *
21168     * @param obj The map object.
21169     * @return Returns the new group class.
21170     *
21171     * Each marker must be associated to a group class. Markers in the same
21172     * group are grouped if they are close.
21173     *
21174     * The group class defines the style of the marker when a marker is grouped
21175     * to others markers. When it is alone, another class will be used.
21176     *
21177     * A group class will need to be provided when creating a marker with
21178     * elm_map_marker_add().
21179     *
21180     * Some properties and functions can be set by class, as:
21181     * - style, with elm_map_group_class_style_set()
21182     * - data - to be associated to the group class. It can be set using
21183     *   elm_map_group_class_data_set().
21184     * - min zoom to display markers, set with
21185     *   elm_map_group_class_zoom_displayed_set().
21186     * - max zoom to group markers, set using
21187     *   elm_map_group_class_zoom_grouped_set().
21188     * - visibility - set if markers will be visible or not, set with
21189     *   elm_map_group_class_hide_set().
21190     * - #ElmMapGroupIconGetFunc - used to fetch icon for markers group classes.
21191     *   It can be set using elm_map_group_class_icon_cb_set().
21192     *
21193     * @see elm_map_marker_add()
21194     * @see elm_map_group_class_style_set()
21195     * @see elm_map_group_class_data_set()
21196     * @see elm_map_group_class_zoom_displayed_set()
21197     * @see elm_map_group_class_zoom_grouped_set()
21198     * @see elm_map_group_class_hide_set()
21199     * @see elm_map_group_class_icon_cb_set()
21200     *
21201     * @ingroup Map
21202     */
21203    EAPI Elm_Map_Group_Class  *elm_map_group_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
21204
21205    /**
21206     * Set the marker's style of a group class.
21207     *
21208     * @param clas The group class.
21209     * @param style The style to be used by markers.
21210     *
21211     * Each marker must be associated to a group class, and will use the style
21212     * defined by such class when grouped to other markers.
21213     *
21214     * The following styles are provided by default theme:
21215     * @li @c radio - blue circle
21216     * @li @c radio2 - green circle
21217     * @li @c empty
21218     *
21219     * @see elm_map_group_class_new() for more details.
21220     * @see elm_map_marker_add()
21221     *
21222     * @ingroup Map
21223     */
21224    EAPI void                  elm_map_group_class_style_set(Elm_Map_Group_Class *clas, const char *style) EINA_ARG_NONNULL(1);
21225
21226    /**
21227     * Set the icon callback function of a group class.
21228     *
21229     * @param clas The group class.
21230     * @param icon_get The callback function that will return the icon.
21231     *
21232     * Each marker must be associated to a group class, and it can display a
21233     * custom icon. The function @p icon_get must return this icon.
21234     *
21235     * @see elm_map_group_class_new() for more details.
21236     * @see elm_map_marker_add()
21237     *
21238     * @ingroup Map
21239     */
21240    EAPI void                  elm_map_group_class_icon_cb_set(Elm_Map_Group_Class *clas, ElmMapGroupIconGetFunc icon_get) EINA_ARG_NONNULL(1);
21241
21242    /**
21243     * Set the data associated to the group class.
21244     *
21245     * @param clas The group class.
21246     * @param data The new user data.
21247     *
21248     * This data will be passed for callback functions, like icon get callback,
21249     * that can be set with elm_map_group_class_icon_cb_set().
21250     *
21251     * If a data was previously set, the object will lose the pointer for it,
21252     * so if needs to be freed, you must do it yourself.
21253     *
21254     * @see elm_map_group_class_new() for more details.
21255     * @see elm_map_group_class_icon_cb_set()
21256     * @see elm_map_marker_add()
21257     *
21258     * @ingroup Map
21259     */
21260    EAPI void                  elm_map_group_class_data_set(Elm_Map_Group_Class *clas, void *data) EINA_ARG_NONNULL(1);
21261
21262    /**
21263     * Set the minimum zoom from where the markers are displayed.
21264     *
21265     * @param clas The group class.
21266     * @param zoom The minimum zoom.
21267     *
21268     * Markers only will be displayed when the map is displayed at @p zoom
21269     * or bigger.
21270     *
21271     * @see elm_map_group_class_new() for more details.
21272     * @see elm_map_marker_add()
21273     *
21274     * @ingroup Map
21275     */
21276    EAPI void                  elm_map_group_class_zoom_displayed_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
21277
21278    /**
21279     * Set the zoom from where the markers are no more grouped.
21280     *
21281     * @param clas The group class.
21282     * @param zoom The maximum zoom.
21283     *
21284     * Markers only will be grouped when the map is displayed at
21285     * less than @p zoom.
21286     *
21287     * @see elm_map_group_class_new() for more details.
21288     * @see elm_map_marker_add()
21289     *
21290     * @ingroup Map
21291     */
21292    EAPI void                  elm_map_group_class_zoom_grouped_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
21293
21294    /**
21295     * Set if the markers associated to the group class @clas are hidden or not.
21296     *
21297     * @param clas The group class.
21298     * @param hide Use @c EINA_TRUE to hide markers or @c EINA_FALSE
21299     * to show them.
21300     *
21301     * If @p hide is @c EINA_TRUE the markers will be hidden, but default
21302     * is to show them.
21303     *
21304     * @ingroup Map
21305     */
21306    EAPI void                  elm_map_group_class_hide_set(Evas_Object *obj, Elm_Map_Group_Class *clas, Eina_Bool hide) EINA_ARG_NONNULL(1, 2);
21307
21308    /**
21309     * Create a new marker class.
21310     *
21311     * @param obj The map object.
21312     * @return Returns the new group class.
21313     *
21314     * Each marker must be associated to a class.
21315     *
21316     * The marker class defines the style of the marker when a marker is
21317     * displayed alone, i.e., not grouped to to others markers. When grouped
21318     * it will use group class style.
21319     *
21320     * A marker class will need to be provided when creating a marker with
21321     * elm_map_marker_add().
21322     *
21323     * Some properties and functions can be set by class, as:
21324     * - style, with elm_map_marker_class_style_set()
21325     * - #ElmMapMarkerIconGetFunc - used to fetch icon for markers classes.
21326     *   It can be set using elm_map_marker_class_icon_cb_set().
21327     * - #ElmMapMarkerGetFunc - used to fetch bubble content for marker classes.
21328     *   Set using elm_map_marker_class_get_cb_set().
21329     * - #ElmMapMarkerDelFunc - used to delete bubble content for marker classes.
21330     *   Set using elm_map_marker_class_del_cb_set().
21331     *
21332     * @see elm_map_marker_add()
21333     * @see elm_map_marker_class_style_set()
21334     * @see elm_map_marker_class_icon_cb_set()
21335     * @see elm_map_marker_class_get_cb_set()
21336     * @see elm_map_marker_class_del_cb_set()
21337     *
21338     * @ingroup Map
21339     */
21340    EAPI Elm_Map_Marker_Class *elm_map_marker_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
21341
21342    /**
21343     * Set the marker's style of a marker class.
21344     *
21345     * @param clas The marker class.
21346     * @param style The style to be used by markers.
21347     *
21348     * Each marker must be associated to a marker class, and will use the style
21349     * defined by such class when alone, i.e., @b not grouped to other markers.
21350     *
21351     * The following styles are provided by default theme:
21352     * @li @c radio
21353     * @li @c radio2
21354     * @li @c empty
21355     *
21356     * @see elm_map_marker_class_new() for more details.
21357     * @see elm_map_marker_add()
21358     *
21359     * @ingroup Map
21360     */
21361    EAPI void                  elm_map_marker_class_style_set(Elm_Map_Marker_Class *clas, const char *style) EINA_ARG_NONNULL(1);
21362
21363    /**
21364     * Set the icon callback function of a marker class.
21365     *
21366     * @param clas The marker class.
21367     * @param icon_get The callback function that will return the icon.
21368     *
21369     * Each marker must be associated to a marker class, and it can display a
21370     * custom icon. The function @p icon_get must return this icon.
21371     *
21372     * @see elm_map_marker_class_new() for more details.
21373     * @see elm_map_marker_add()
21374     *
21375     * @ingroup Map
21376     */
21377    EAPI void                  elm_map_marker_class_icon_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerIconGetFunc icon_get) EINA_ARG_NONNULL(1);
21378
21379    /**
21380     * Set the bubble content callback function of a marker class.
21381     *
21382     * @param clas The marker class.
21383     * @param get The callback function that will return the content.
21384     *
21385     * Each marker must be associated to a marker class, and it can display a
21386     * a content on a bubble that opens when the user click over the marker.
21387     * The function @p get must return this content object.
21388     *
21389     * If this content will need to be deleted, elm_map_marker_class_del_cb_set()
21390     * can be used.
21391     *
21392     * @see elm_map_marker_class_new() for more details.
21393     * @see elm_map_marker_class_del_cb_set()
21394     * @see elm_map_marker_add()
21395     *
21396     * @ingroup Map
21397     */
21398    EAPI void                  elm_map_marker_class_get_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerGetFunc get) EINA_ARG_NONNULL(1);
21399
21400    /**
21401     * Set the callback function used to delete bubble content of a marker class.
21402     *
21403     * @param clas The marker class.
21404     * @param del The callback function that will delete the content.
21405     *
21406     * Each marker must be associated to a marker class, and it can display a
21407     * a content on a bubble that opens when the user click over the marker.
21408     * The function to return such content can be set with
21409     * elm_map_marker_class_get_cb_set().
21410     *
21411     * If this content must be freed, a callback function need to be
21412     * set for that task with this function.
21413     *
21414     * If this callback is defined it will have to delete (or not) the
21415     * object inside, but if the callback is not defined the object will be
21416     * destroyed with evas_object_del().
21417     *
21418     * @see elm_map_marker_class_new() for more details.
21419     * @see elm_map_marker_class_get_cb_set()
21420     * @see elm_map_marker_add()
21421     *
21422     * @ingroup Map
21423     */
21424    EAPI void                  elm_map_marker_class_del_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerDelFunc del) EINA_ARG_NONNULL(1);
21425
21426    /**
21427     * Get the list of available sources.
21428     *
21429     * @param obj The map object.
21430     * @return The source names list.
21431     *
21432     * It will provide a list with all available sources, that can be set as
21433     * current source with elm_map_source_name_set(), or get with
21434     * elm_map_source_name_get().
21435     *
21436     * Available sources:
21437     * @li "Mapnik"
21438     * @li "Osmarender"
21439     * @li "CycleMap"
21440     * @li "Maplint"
21441     *
21442     * @see elm_map_source_name_set() for more details.
21443     * @see elm_map_source_name_get()
21444     *
21445     * @ingroup Map
21446     */
21447    EAPI const char          **elm_map_source_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21448
21449    /**
21450     * Set the source of the map.
21451     *
21452     * @param obj The map object.
21453     * @param source The source to be used.
21454     *
21455     * Map widget retrieves images that composes the map from a web service.
21456     * This web service can be set with this method.
21457     *
21458     * A different service can return a different maps with different
21459     * information and it can use different zoom values.
21460     *
21461     * The @p source_name need to match one of the names provided by
21462     * elm_map_source_names_get().
21463     *
21464     * The current source can be get using elm_map_source_name_get().
21465     *
21466     * @see elm_map_source_names_get()
21467     * @see elm_map_source_name_get()
21468     *
21469     *
21470     * @ingroup Map
21471     */
21472    EAPI void                  elm_map_source_name_set(Evas_Object *obj, const char *source_name) EINA_ARG_NONNULL(1);
21473
21474    /**
21475     * Get the name of currently used source.
21476     *
21477     * @param obj The map object.
21478     * @return Returns the name of the source in use.
21479     *
21480     * @see elm_map_source_name_set() for more details.
21481     *
21482     * @ingroup Map
21483     */
21484    EAPI const char           *elm_map_source_name_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21485
21486    /**
21487     * Set the source of the route service to be used by the map.
21488     *
21489     * @param obj The map object.
21490     * @param source The route service to be used, being it one of
21491     * #ELM_MAP_ROUTE_SOURCE_YOURS (default), #ELM_MAP_ROUTE_SOURCE_MONAV,
21492     * and #ELM_MAP_ROUTE_SOURCE_ORS.
21493     *
21494     * Each one has its own algorithm, so the route retrieved may
21495     * differ depending on the source route. Now, only the default is working.
21496     *
21497     * #ELM_MAP_ROUTE_SOURCE_YOURS is the routing service provided at
21498     * http://www.yournavigation.org/.
21499     *
21500     * #ELM_MAP_ROUTE_SOURCE_MONAV, offers exact routing without heuristic
21501     * assumptions. Its routing core is based on Contraction Hierarchies.
21502     *
21503     * #ELM_MAP_ROUTE_SOURCE_ORS, is provided at http://www.openrouteservice.org/
21504     *
21505     * @see elm_map_route_source_get().
21506     *
21507     * @ingroup Map
21508     */
21509    EAPI void                  elm_map_route_source_set(Evas_Object *obj, Elm_Map_Route_Sources source) EINA_ARG_NONNULL(1);
21510
21511    /**
21512     * Get the current route source.
21513     *
21514     * @param obj The map object.
21515     * @return The source of the route service used by the map.
21516     *
21517     * @see elm_map_route_source_set() for details.
21518     *
21519     * @ingroup Map
21520     */
21521    EAPI Elm_Map_Route_Sources elm_map_route_source_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21522
21523    /**
21524     * Set the minimum zoom of the source.
21525     *
21526     * @param obj The map object.
21527     * @param zoom New minimum zoom value to be used.
21528     *
21529     * By default, it's 0.
21530     *
21531     * @ingroup Map
21532     */
21533    EAPI void                  elm_map_source_zoom_min_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
21534
21535    /**
21536     * Get the minimum zoom of the source.
21537     *
21538     * @param obj The map object.
21539     * @return Returns the minimum zoom of the source.
21540     *
21541     * @see elm_map_source_zoom_min_set() for details.
21542     *
21543     * @ingroup Map
21544     */
21545    EAPI int                   elm_map_source_zoom_min_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21546
21547    /**
21548     * Set the maximum zoom of the source.
21549     *
21550     * @param obj The map object.
21551     * @param zoom New maximum zoom value to be used.
21552     *
21553     * By default, it's 18.
21554     *
21555     * @ingroup Map
21556     */
21557    EAPI void                  elm_map_source_zoom_max_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
21558
21559    /**
21560     * Get the maximum zoom of the source.
21561     *
21562     * @param obj The map object.
21563     * @return Returns the maximum zoom of the source.
21564     *
21565     * @see elm_map_source_zoom_min_set() for details.
21566     *
21567     * @ingroup Map
21568     */
21569    EAPI int                   elm_map_source_zoom_max_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21570
21571    /**
21572     * Set the user agent used by the map object to access routing services.
21573     *
21574     * @param obj The map object.
21575     * @param user_agent The user agent to be used by the map.
21576     *
21577     * User agent is a client application implementing a network protocol used
21578     * in communications within a client–server distributed computing system
21579     *
21580     * The @p user_agent identification string will transmitted in a header
21581     * field @c User-Agent.
21582     *
21583     * @see elm_map_user_agent_get()
21584     *
21585     * @ingroup Map
21586     */
21587    EAPI void                  elm_map_user_agent_set(Evas_Object *obj, const char *user_agent) EINA_ARG_NONNULL(1, 2);
21588
21589    /**
21590     * Get the user agent used by the map object.
21591     *
21592     * @param obj The map object.
21593     * @return The user agent identification string used by the map.
21594     *
21595     * @see elm_map_user_agent_set() for details.
21596     *
21597     * @ingroup Map
21598     */
21599    EAPI const char           *elm_map_user_agent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21600
21601    /**
21602     * Add a new route to the map object.
21603     *
21604     * @param obj The map object.
21605     * @param type The type of transport to be considered when tracing a route.
21606     * @param method The routing method, what should be priorized.
21607     * @param flon The start longitude.
21608     * @param flat The start latitude.
21609     * @param tlon The destination longitude.
21610     * @param tlat The destination latitude.
21611     *
21612     * @return The created route or @c NULL upon failure.
21613     *
21614     * A route will be traced by point on coordinates (@p flat, @p flon)
21615     * to point on coordinates (@p tlat, @p tlon), using the route service
21616     * set with elm_map_route_source_set().
21617     *
21618     * It will take @p type on consideration to define the route,
21619     * depending if the user will be walking or driving, the route may vary.
21620     * One of #ELM_MAP_ROUTE_TYPE_MOTOCAR, #ELM_MAP_ROUTE_TYPE_BICYCLE, or
21621     * #ELM_MAP_ROUTE_TYPE_FOOT need to be used.
21622     *
21623     * Another parameter is what the route should priorize, the minor distance
21624     * or the less time to be spend on the route. So @p method should be one
21625     * of #ELM_MAP_ROUTE_METHOD_SHORTEST or #ELM_MAP_ROUTE_METHOD_FASTEST.
21626     *
21627     * Routes created with this method can be deleted with
21628     * elm_map_route_remove(), colored with elm_map_route_color_set(),
21629     * and distance can be get with elm_map_route_distance_get().
21630     *
21631     * @see elm_map_route_remove()
21632     * @see elm_map_route_color_set()
21633     * @see elm_map_route_distance_get()
21634     * @see elm_map_route_source_set()
21635     *
21636     * @ingroup Map
21637     */
21638    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);
21639
21640    /**
21641     * Remove a route from the map.
21642     *
21643     * @param route The route to remove.
21644     *
21645     * @see elm_map_route_add()
21646     *
21647     * @ingroup Map
21648     */
21649    EAPI void                  elm_map_route_remove(Elm_Map_Route *route) EINA_ARG_NONNULL(1);
21650
21651    /**
21652     * Set the route color.
21653     *
21654     * @param route The route object.
21655     * @param r Red channel value, from 0 to 255.
21656     * @param g Green channel value, from 0 to 255.
21657     * @param b Blue channel value, from 0 to 255.
21658     * @param a Alpha channel value, from 0 to 255.
21659     *
21660     * It uses an additive color model, so each color channel represents
21661     * how much of each primary colors must to be used. 0 represents
21662     * ausence of this color, so if all of the three are set to 0,
21663     * the color will be black.
21664     *
21665     * These component values should be integers in the range 0 to 255,
21666     * (single 8-bit byte).
21667     *
21668     * This sets the color used for the route. By default, it is set to
21669     * solid red (r = 255, g = 0, b = 0, a = 255).
21670     *
21671     * For alpha channel, 0 represents completely transparent, and 255, opaque.
21672     *
21673     * @see elm_map_route_color_get()
21674     *
21675     * @ingroup Map
21676     */
21677    EAPI void                  elm_map_route_color_set(Elm_Map_Route *route, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
21678
21679    /**
21680     * Get the route color.
21681     *
21682     * @param route The route object.
21683     * @param r Pointer where to store the red channel value.
21684     * @param g Pointer where to store the green channel value.
21685     * @param b Pointer where to store the blue channel value.
21686     * @param a Pointer where to store the alpha channel value.
21687     *
21688     * @see elm_map_route_color_set() for details.
21689     *
21690     * @ingroup Map
21691     */
21692    EAPI void                  elm_map_route_color_get(const Elm_Map_Route *route, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
21693
21694    /**
21695     * Get the route distance in kilometers.
21696     *
21697     * @param route The route object.
21698     * @return The distance of route (unit : km).
21699     *
21700     * @ingroup Map
21701     */
21702    EAPI double                elm_map_route_distance_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
21703
21704    /**
21705     * Get the information of route nodes.
21706     *
21707     * @param route The route object.
21708     * @return Returns a string with the nodes of route.
21709     *
21710     * @ingroup Map
21711     */
21712    EAPI const char           *elm_map_route_node_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
21713
21714    /**
21715     * Get the information of route waypoint.
21716     *
21717     * @param route the route object.
21718     * @return Returns a string with information about waypoint of route.
21719     *
21720     * @ingroup Map
21721     */
21722    EAPI const char           *elm_map_route_waypoint_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
21723
21724    /**
21725     * Get the address of the name.
21726     *
21727     * @param name The name handle.
21728     * @return Returns the address string of @p name.
21729     *
21730     * This gets the coordinates of the @p name, created with one of the
21731     * conversion functions.
21732     *
21733     * @see elm_map_utils_convert_name_into_coord()
21734     * @see elm_map_utils_convert_coord_into_name()
21735     *
21736     * @ingroup Map
21737     */
21738    EAPI const char           *elm_map_name_address_get(const Elm_Map_Name *name) EINA_ARG_NONNULL(1);
21739
21740    /**
21741     * Get the current coordinates of the name.
21742     *
21743     * @param name The name handle.
21744     * @param lat Pointer where to store the latitude.
21745     * @param lon Pointer where to store The longitude.
21746     *
21747     * This gets the coordinates of the @p name, created with one of the
21748     * conversion functions.
21749     *
21750     * @see elm_map_utils_convert_name_into_coord()
21751     * @see elm_map_utils_convert_coord_into_name()
21752     *
21753     * @ingroup Map
21754     */
21755    EAPI void                  elm_map_name_region_get(const Elm_Map_Name *name, double *lon, double *lat) EINA_ARG_NONNULL(1);
21756
21757    /**
21758     * Remove a name from the map.
21759     *
21760     * @param name The name to remove.
21761     *
21762     * Basically the struct handled by @p name will be freed, so convertions
21763     * between address and coordinates will be lost.
21764     *
21765     * @see elm_map_utils_convert_name_into_coord()
21766     * @see elm_map_utils_convert_coord_into_name()
21767     *
21768     * @ingroup Map
21769     */
21770    EAPI void                  elm_map_name_remove(Elm_Map_Name *name) EINA_ARG_NONNULL(1);
21771
21772    /**
21773     * Rotate the map.
21774     *
21775     * @param obj The map object.
21776     * @param degree Angle from 0.0 to 360.0 to rotate arount Z axis.
21777     * @param cx Rotation's center horizontal position.
21778     * @param cy Rotation's center vertical position.
21779     *
21780     * @see elm_map_rotate_get()
21781     *
21782     * @ingroup Map
21783     */
21784    EAPI void                  elm_map_rotate_set(Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy) EINA_ARG_NONNULL(1);
21785
21786    /**
21787     * Get the rotate degree of the map
21788     *
21789     * @param obj The map object
21790     * @param degree Pointer where to store degrees from 0.0 to 360.0
21791     * to rotate arount Z axis.
21792     * @param cx Pointer where to store rotation's center horizontal position.
21793     * @param cy Pointer where to store rotation's center vertical position.
21794     *
21795     * @see elm_map_rotate_set() to set map rotation.
21796     *
21797     * @ingroup Map
21798     */
21799    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);
21800
21801    /**
21802     * Enable or disable mouse wheel to be used to zoom in / out the map.
21803     *
21804     * @param obj The map object.
21805     * @param disabled Use @c EINA_TRUE to disable mouse wheel or @c EINA_FALSE
21806     * to enable it.
21807     *
21808     * Mouse wheel can be used for the user to zoom in or zoom out the map.
21809     *
21810     * It's disabled by default.
21811     *
21812     * @see elm_map_wheel_disabled_get()
21813     *
21814     * @ingroup Map
21815     */
21816    EAPI void                  elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
21817
21818    /**
21819     * Get a value whether mouse wheel is enabled or not.
21820     *
21821     * @param obj The map object.
21822     * @return @c EINA_TRUE means map is disabled. @c EINA_FALSE indicates
21823     * it is enabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
21824     *
21825     * Mouse wheel can be used for the user to zoom in or zoom out the map.
21826     *
21827     * @see elm_map_wheel_disabled_set() for details.
21828     *
21829     * @ingroup Map
21830     */
21831    EAPI Eina_Bool             elm_map_wheel_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21832
21833 #ifdef ELM_EMAP
21834    /**
21835     * Add a track on the map
21836     *
21837     * @param obj The map object.
21838     * @param emap The emap route object.
21839     * @return The route object. This is an elm object of type Route.
21840     *
21841     * @see elm_route_add() for details.
21842     *
21843     * @ingroup Map
21844     */
21845    EAPI Evas_Object          *elm_map_track_add(Evas_Object *obj, EMap_Route *emap) EINA_ARG_NONNULL(1);
21846 #endif
21847
21848    /**
21849     * Remove a track from the map
21850     *
21851     * @param obj The map object.
21852     * @param route The track to remove.
21853     *
21854     * @ingroup Map
21855     */
21856    EAPI void                  elm_map_track_remove(Evas_Object *obj, Evas_Object *route) EINA_ARG_NONNULL(1);
21857
21858    /**
21859     * @}
21860     */
21861
21862    /* Route */
21863    EAPI Evas_Object *elm_route_add(Evas_Object *parent);
21864 #ifdef ELM_EMAP
21865    EAPI void elm_route_emap_set(Evas_Object *obj, EMap_Route *emap);
21866 #endif
21867    EAPI double elm_route_lon_min_get(Evas_Object *obj);
21868    EAPI double elm_route_lat_min_get(Evas_Object *obj);
21869    EAPI double elm_route_lon_max_get(Evas_Object *obj);
21870    EAPI double elm_route_lat_max_get(Evas_Object *obj);
21871
21872
21873    /**
21874     * @defgroup Panel Panel
21875     *
21876     * @image html img/widget/panel/preview-00.png
21877     * @image latex img/widget/panel/preview-00.eps
21878     *
21879     * @brief A panel is a type of animated container that contains subobjects.
21880     * It can be expanded or contracted by clicking the button on it's edge.
21881     *
21882     * Orientations are as follows:
21883     * @li ELM_PANEL_ORIENT_TOP
21884     * @li ELM_PANEL_ORIENT_LEFT
21885     * @li ELM_PANEL_ORIENT_RIGHT
21886     *
21887     * @ref tutorial_panel shows one way to use this widget.
21888     * @{
21889     */
21890    typedef enum _Elm_Panel_Orient
21891      {
21892         ELM_PANEL_ORIENT_TOP, /**< Panel (dis)appears from the top */
21893         ELM_PANEL_ORIENT_BOTTOM, /**< Not implemented */
21894         ELM_PANEL_ORIENT_LEFT, /**< Panel (dis)appears from the left */
21895         ELM_PANEL_ORIENT_RIGHT, /**< Panel (dis)appears from the right */
21896      } Elm_Panel_Orient;
21897    /**
21898     * @brief Adds a panel object
21899     *
21900     * @param parent The parent object
21901     *
21902     * @return The panel object, or NULL on failure
21903     */
21904    EAPI Evas_Object          *elm_panel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21905    /**
21906     * @brief Sets the orientation of the panel
21907     *
21908     * @param parent The parent object
21909     * @param orient The panel orientation. Can be one of the following:
21910     * @li ELM_PANEL_ORIENT_TOP
21911     * @li ELM_PANEL_ORIENT_LEFT
21912     * @li ELM_PANEL_ORIENT_RIGHT
21913     *
21914     * Sets from where the panel will (dis)appear.
21915     */
21916    EAPI void                  elm_panel_orient_set(Evas_Object *obj, Elm_Panel_Orient orient) EINA_ARG_NONNULL(1);
21917    /**
21918     * @brief Get the orientation of the panel.
21919     *
21920     * @param obj The panel object
21921     * @return The Elm_Panel_Orient, or ELM_PANEL_ORIENT_LEFT on failure.
21922     */
21923    EAPI Elm_Panel_Orient      elm_panel_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21924    /**
21925     * @brief Set the content of the panel.
21926     *
21927     * @param obj The panel object
21928     * @param content The panel content
21929     *
21930     * Once the content object is set, a previously set one will be deleted.
21931     * If you want to keep that old content object, use the
21932     * elm_panel_content_unset() function.
21933     */
21934    EAPI void                  elm_panel_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
21935    /**
21936     * @brief Get the content of the panel.
21937     *
21938     * @param obj The panel object
21939     * @return The content that is being used
21940     *
21941     * Return the content object which is set for this widget.
21942     *
21943     * @see elm_panel_content_set()
21944     */
21945    EAPI Evas_Object          *elm_panel_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21946    /**
21947     * @brief Unset the content of the panel.
21948     *
21949     * @param obj The panel object
21950     * @return The content that was being used
21951     *
21952     * Unparent and return the content object which was set for this widget.
21953     *
21954     * @see elm_panel_content_set()
21955     */
21956    EAPI Evas_Object          *elm_panel_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
21957    /**
21958     * @brief Set the state of the panel.
21959     *
21960     * @param obj The panel object
21961     * @param hidden If true, the panel will run the animation to contract
21962     */
21963    EAPI void                  elm_panel_hidden_set(Evas_Object *obj, Eina_Bool hidden) EINA_ARG_NONNULL(1);
21964    /**
21965     * @brief Get the state of the panel.
21966     *
21967     * @param obj The panel object
21968     * @param hidden If true, the panel is in the "hide" state
21969     */
21970    EAPI Eina_Bool             elm_panel_hidden_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21971    /**
21972     * @brief Toggle the hidden state of the panel from code
21973     *
21974     * @param obj The panel object
21975     */
21976    EAPI void                  elm_panel_toggle(Evas_Object *obj) EINA_ARG_NONNULL(1);
21977    /**
21978     * @}
21979     */
21980
21981    /**
21982     * @defgroup Panes Panes
21983     * @ingroup Elementary
21984     *
21985     * @image html img/widget/panes/preview-00.png
21986     * @image latex img/widget/panes/preview-00.eps width=\textwidth
21987     *
21988     * @image html img/panes.png
21989     * @image latex img/panes.eps width=\textwidth
21990     *
21991     * The panes adds a dragable bar between two contents. When dragged
21992     * this bar will resize contents size.
21993     *
21994     * Panes can be displayed vertically or horizontally, and contents
21995     * size proportion can be customized (homogeneous by default).
21996     *
21997     * Smart callbacks one can listen to:
21998     * - "press" - The panes has been pressed (button wasn't released yet).
21999     * - "unpressed" - The panes was released after being pressed.
22000     * - "clicked" - The panes has been clicked>
22001     * - "clicked,double" - The panes has been double clicked
22002     *
22003     * Available styles for it:
22004     * - @c "default"
22005     *
22006     * Here is an example on its usage:
22007     * @li @ref panes_example
22008     */
22009
22010    /**
22011     * @addtogroup Panes
22012     * @{
22013     */
22014
22015    /**
22016     * Add a new panes widget to the given parent Elementary
22017     * (container) object.
22018     *
22019     * @param parent The parent object.
22020     * @return a new panes widget handle or @c NULL, on errors.
22021     *
22022     * This function inserts a new panes widget on the canvas.
22023     *
22024     * @ingroup Panes
22025     */
22026    EAPI Evas_Object          *elm_panes_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22027
22028    /**
22029     * Set the left content of the panes widget.
22030     *
22031     * @param obj The panes object.
22032     * @param content The new left content object.
22033     *
22034     * Once the content object is set, a previously set one will be deleted.
22035     * If you want to keep that old content object, use the
22036     * elm_panes_content_left_unset() function.
22037     *
22038     * If panes is displayed vertically, left content will be displayed at
22039     * top.
22040     *
22041     * @see elm_panes_content_left_get()
22042     * @see elm_panes_content_right_set() to set content on the other side.
22043     *
22044     * @ingroup Panes
22045     */
22046    EAPI void                  elm_panes_content_left_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22047
22048    /**
22049     * Set the right content of the panes widget.
22050     *
22051     * @param obj The panes object.
22052     * @param content The new right content object.
22053     *
22054     * Once the content object is set, a previously set one will be deleted.
22055     * If you want to keep that old content object, use the
22056     * elm_panes_content_right_unset() function.
22057     *
22058     * If panes is displayed vertically, left content will be displayed at
22059     * bottom.
22060     *
22061     * @see elm_panes_content_right_get()
22062     * @see elm_panes_content_left_set() to set content on the other side.
22063     *
22064     * @ingroup Panes
22065     */
22066    EAPI void                  elm_panes_content_right_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22067
22068    /**
22069     * Get the left content of the panes.
22070     *
22071     * @param obj The panes object.
22072     * @return The left content object that is being used.
22073     *
22074     * Return the left content object which is set for this widget.
22075     *
22076     * @see elm_panes_content_left_set() for details.
22077     *
22078     * @ingroup Panes
22079     */
22080    EAPI Evas_Object          *elm_panes_content_left_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22081
22082    /**
22083     * Get the right content of the panes.
22084     *
22085     * @param obj The panes object
22086     * @return The right content object that is being used
22087     *
22088     * Return the right content object which is set for this widget.
22089     *
22090     * @see elm_panes_content_right_set() for details.
22091     *
22092     * @ingroup Panes
22093     */
22094    EAPI Evas_Object          *elm_panes_content_right_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22095
22096    /**
22097     * Unset the left content used for the panes.
22098     *
22099     * @param obj The panes object.
22100     * @return The left content object that was being used.
22101     *
22102     * Unparent and return the left content object which was set for this widget.
22103     *
22104     * @see elm_panes_content_left_set() for details.
22105     * @see elm_panes_content_left_get().
22106     *
22107     * @ingroup Panes
22108     */
22109    EAPI Evas_Object          *elm_panes_content_left_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22110
22111    /**
22112     * Unset the right content used for the panes.
22113     *
22114     * @param obj The panes object.
22115     * @return The right content object that was being used.
22116     *
22117     * Unparent and return the right content object which was set for this
22118     * widget.
22119     *
22120     * @see elm_panes_content_right_set() for details.
22121     * @see elm_panes_content_right_get().
22122     *
22123     * @ingroup Panes
22124     */
22125    EAPI Evas_Object          *elm_panes_content_right_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22126
22127    /**
22128     * Get the size proportion of panes widget's left side.
22129     *
22130     * @param obj The panes object.
22131     * @return float value between 0.0 and 1.0 representing size proportion
22132     * of left side.
22133     *
22134     * @see elm_panes_content_left_size_set() for more details.
22135     *
22136     * @ingroup Panes
22137     */
22138    EAPI double                elm_panes_content_left_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22139
22140    /**
22141     * Set the size proportion of panes widget's left side.
22142     *
22143     * @param obj The panes object.
22144     * @param size Value between 0.0 and 1.0 representing size proportion
22145     * of left side.
22146     *
22147     * By default it's homogeneous, i.e., both sides have the same size.
22148     *
22149     * If something different is required, it can be set with this function.
22150     * For example, if the left content should be displayed over
22151     * 75% of the panes size, @p size should be passed as @c 0.75.
22152     * This way, right content will be resized to 25% of panes size.
22153     *
22154     * If displayed vertically, left content is displayed at top, and
22155     * right content at bottom.
22156     *
22157     * @note This proportion will change when user drags the panes bar.
22158     *
22159     * @see elm_panes_content_left_size_get()
22160     *
22161     * @ingroup Panes
22162     */
22163    EAPI void                  elm_panes_content_left_size_set(Evas_Object *obj, double size) EINA_ARG_NONNULL(1);
22164
22165   /**
22166    * Set the orientation of a given panes widget.
22167    *
22168    * @param obj The panes object.
22169    * @param horizontal Use @c EINA_TRUE to make @p obj to be
22170    * @b horizontal, @c EINA_FALSE to make it @b vertical.
22171    *
22172    * Use this function to change how your panes is to be
22173    * disposed: vertically or horizontally.
22174    *
22175    * By default it's displayed horizontally.
22176    *
22177    * @see elm_panes_horizontal_get()
22178    *
22179    * @ingroup Panes
22180    */
22181    EAPI void                  elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
22182
22183    /**
22184     * Retrieve the orientation of a given panes widget.
22185     *
22186     * @param obj The panes object.
22187     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
22188     * @c EINA_FALSE if it's @b vertical (and on errors).
22189     *
22190     * @see elm_panes_horizontal_set() for more details.
22191     *
22192     * @ingroup Panes
22193     */
22194    EAPI Eina_Bool             elm_panes_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22195
22196    /**
22197     * @}
22198     */
22199
22200    /**
22201     * @defgroup Flip Flip
22202     *
22203     * @image html img/widget/flip/preview-00.png
22204     * @image latex img/widget/flip/preview-00.eps
22205     *
22206     * This widget holds 2 content objects(Evas_Object): one on the front and one
22207     * on the back. It allows you to flip from front to back and vice-versa using
22208     * various animations.
22209     *
22210     * If either the front or back contents are not set the flip will treat that
22211     * as transparent. So if you wore to set the front content but not the back,
22212     * and then call elm_flip_go() you would see whatever is below the flip.
22213     *
22214     * For a list of supported animations see elm_flip_go().
22215     *
22216     * Signals that you can add callbacks for are:
22217     * "animate,begin" - when a flip animation was started
22218     * "animate,done" - when a flip animation is finished
22219     *
22220     * @ref tutorial_flip show how to use most of the API.
22221     *
22222     * @{
22223     */
22224    typedef enum _Elm_Flip_Mode
22225      {
22226         ELM_FLIP_ROTATE_Y_CENTER_AXIS,
22227         ELM_FLIP_ROTATE_X_CENTER_AXIS,
22228         ELM_FLIP_ROTATE_XZ_CENTER_AXIS,
22229         ELM_FLIP_ROTATE_YZ_CENTER_AXIS,
22230         ELM_FLIP_CUBE_LEFT,
22231         ELM_FLIP_CUBE_RIGHT,
22232         ELM_FLIP_CUBE_UP,
22233         ELM_FLIP_CUBE_DOWN,
22234         ELM_FLIP_PAGE_LEFT,
22235         ELM_FLIP_PAGE_RIGHT,
22236         ELM_FLIP_PAGE_UP,
22237         ELM_FLIP_PAGE_DOWN
22238      } Elm_Flip_Mode;
22239    typedef enum _Elm_Flip_Interaction
22240      {
22241         ELM_FLIP_INTERACTION_NONE,
22242         ELM_FLIP_INTERACTION_ROTATE,
22243         ELM_FLIP_INTERACTION_CUBE,
22244         ELM_FLIP_INTERACTION_PAGE
22245      } Elm_Flip_Interaction;
22246    typedef enum _Elm_Flip_Direction
22247      {
22248         ELM_FLIP_DIRECTION_UP, /**< Allows interaction with the top of the widget */
22249         ELM_FLIP_DIRECTION_DOWN, /**< Allows interaction with the bottom of the widget */
22250         ELM_FLIP_DIRECTION_LEFT, /**< Allows interaction with the left portion of the widget */
22251         ELM_FLIP_DIRECTION_RIGHT /**< Allows interaction with the right portion of the widget */
22252      } Elm_Flip_Direction;
22253    /**
22254     * @brief Add a new flip to the parent
22255     *
22256     * @param parent The parent object
22257     * @return The new object or NULL if it cannot be created
22258     */
22259    EAPI Evas_Object *elm_flip_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22260    /**
22261     * @brief Set the front content of the flip widget.
22262     *
22263     * @param obj The flip object
22264     * @param content The new front content object
22265     *
22266     * Once the content object is set, a previously set one will be deleted.
22267     * If you want to keep that old content object, use the
22268     * elm_flip_content_front_unset() function.
22269     */
22270    EAPI void         elm_flip_content_front_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22271    /**
22272     * @brief Set the back content of the flip widget.
22273     *
22274     * @param obj The flip object
22275     * @param content The new back content object
22276     *
22277     * Once the content object is set, a previously set one will be deleted.
22278     * If you want to keep that old content object, use the
22279     * elm_flip_content_back_unset() function.
22280     */
22281    EAPI void         elm_flip_content_back_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22282    /**
22283     * @brief Get the front content used for the flip
22284     *
22285     * @param obj The flip object
22286     * @return The front content object that is being used
22287     *
22288     * Return the front content object which is set for this widget.
22289     */
22290    EAPI Evas_Object *elm_flip_content_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22291    /**
22292     * @brief Get the back content used for the flip
22293     *
22294     * @param obj The flip object
22295     * @return The back content object that is being used
22296     *
22297     * Return the back content object which is set for this widget.
22298     */
22299    EAPI Evas_Object *elm_flip_content_back_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22300    /**
22301     * @brief Unset the front content used for the flip
22302     *
22303     * @param obj The flip object
22304     * @return The front content object that was being used
22305     *
22306     * Unparent and return the front content object which was set for this widget.
22307     */
22308    EAPI Evas_Object *elm_flip_content_front_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22309    /**
22310     * @brief Unset the back content used for the flip
22311     *
22312     * @param obj The flip object
22313     * @return The back content object that was being used
22314     *
22315     * Unparent and return the back content object which was set for this widget.
22316     */
22317    EAPI Evas_Object *elm_flip_content_back_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22318    /**
22319     * @brief Get flip front visibility state
22320     *
22321     * @param obj The flip objct
22322     * @return EINA_TRUE if front front is showing, EINA_FALSE if the back is
22323     * showing.
22324     */
22325    EAPI Eina_Bool    elm_flip_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22326    /**
22327     * @brief Set flip perspective
22328     *
22329     * @param obj The flip object
22330     * @param foc The coordinate to set the focus on
22331     * @param x The X coordinate
22332     * @param y The Y coordinate
22333     *
22334     * @warning This function currently does nothing.
22335     */
22336    EAPI void         elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
22337    /**
22338     * @brief Runs the flip animation
22339     *
22340     * @param obj The flip object
22341     * @param mode The mode type
22342     *
22343     * Flips the front and back contents using the @p mode animation. This
22344     * efectively hides the currently visible content and shows the hidden one.
22345     *
22346     * There a number of possible animations to use for the flipping:
22347     * @li ELM_FLIP_ROTATE_X_CENTER_AXIS - Rotate the currently visible content
22348     * around a horizontal axis in the middle of its height, the other content
22349     * is shown as the other side of the flip.
22350     * @li ELM_FLIP_ROTATE_Y_CENTER_AXIS - Rotate the currently visible content
22351     * around a vertical axis in the middle of its width, the other content is
22352     * shown as the other side of the flip.
22353     * @li ELM_FLIP_ROTATE_XZ_CENTER_AXIS - Rotate the currently visible content
22354     * around a diagonal axis in the middle of its width, the other content is
22355     * shown as the other side of the flip.
22356     * @li ELM_FLIP_ROTATE_YZ_CENTER_AXIS - Rotate the currently visible content
22357     * around a diagonal axis in the middle of its height, the other content is
22358     * shown as the other side of the flip.
22359     * @li ELM_FLIP_CUBE_LEFT - Rotate the currently visible content to the left
22360     * as if the flip was a cube, the other content is show as the right face of
22361     * the cube.
22362     * @li ELM_FLIP_CUBE_RIGHT - Rotate the currently visible content to the
22363     * right as if the flip was a cube, the other content is show as the left
22364     * face of the cube.
22365     * @li ELM_FLIP_CUBE_UP - Rotate the currently visible content up as if the
22366     * flip was a cube, the other content is show as the bottom face of the cube.
22367     * @li ELM_FLIP_CUBE_DOWN - Rotate the currently visible content down as if
22368     * the flip was a cube, the other content is show as the upper face of the
22369     * cube.
22370     * @li ELM_FLIP_PAGE_LEFT - Move the currently visible content to the left as
22371     * if the flip was a book, the other content is shown as the page below that.
22372     * @li ELM_FLIP_PAGE_RIGHT - Move the currently visible content to the right
22373     * as if the flip was a book, the other content is shown as the page below
22374     * that.
22375     * @li ELM_FLIP_PAGE_UP - Move the currently visible content up as if the
22376     * flip was a book, the other content is shown as the page below that.
22377     * @li ELM_FLIP_PAGE_DOWN - Move the currently visible content down as if the
22378     * flip was a book, the other content is shown as the page below that.
22379     *
22380     * @image html elm_flip.png
22381     * @image latex elm_flip.eps width=\textwidth
22382     */
22383    EAPI void         elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode) EINA_ARG_NONNULL(1);
22384    /**
22385     * @brief Set the interactive flip mode
22386     *
22387     * @param obj The flip object
22388     * @param mode The interactive flip mode to use
22389     *
22390     * This sets if the flip should be interactive (allow user to click and
22391     * drag a side of the flip to reveal the back page and cause it to flip).
22392     * By default a flip is not interactive. You may also need to set which
22393     * sides of the flip are "active" for flipping and how much space they use
22394     * (a minimum of a finger size) with elm_flip_interacton_direction_enabled_set()
22395     * and elm_flip_interacton_direction_hitsize_set()
22396     *
22397     * The four avilable mode of interaction are:
22398     * @li ELM_FLIP_INTERACTION_NONE - No interaction is allowed
22399     * @li ELM_FLIP_INTERACTION_ROTATE - Interaction will cause rotate animation
22400     * @li ELM_FLIP_INTERACTION_CUBE - Interaction will cause cube animation
22401     * @li ELM_FLIP_INTERACTION_PAGE - Interaction will cause page animation
22402     *
22403     * @note ELM_FLIP_INTERACTION_ROTATE won't cause
22404     * ELM_FLIP_ROTATE_XZ_CENTER_AXIS or ELM_FLIP_ROTATE_YZ_CENTER_AXIS to
22405     * happen, those can only be acheived with elm_flip_go();
22406     */
22407    EAPI void         elm_flip_interaction_set(Evas_Object *obj, Elm_Flip_Interaction mode);
22408    /**
22409     * @brief Get the interactive flip mode
22410     *
22411     * @param obj The flip object
22412     * @return The interactive flip mode
22413     *
22414     * Returns the interactive flip mode set by elm_flip_interaction_set()
22415     */
22416    EAPI Elm_Flip_Interaction elm_flip_interaction_get(const Evas_Object *obj);
22417    /**
22418     * @brief Set which directions of the flip respond to interactive flip
22419     *
22420     * @param obj The flip object
22421     * @param dir The direction to change
22422     * @param enabled If that direction is enabled or not
22423     *
22424     * By default all directions are disabled, so you may want to enable the
22425     * desired directions for flipping if you need interactive flipping. You must
22426     * call this function once for each direction that should be enabled.
22427     *
22428     * @see elm_flip_interaction_set()
22429     */
22430    EAPI void         elm_flip_interacton_direction_enabled_set(Evas_Object *obj, Elm_Flip_Direction dir, Eina_Bool enabled);
22431    /**
22432     * @brief Get the enabled state of that flip direction
22433     *
22434     * @param obj The flip object
22435     * @param dir The direction to check
22436     * @return If that direction is enabled or not
22437     *
22438     * Gets the enabled state set by elm_flip_interacton_direction_enabled_set()
22439     *
22440     * @see elm_flip_interaction_set()
22441     */
22442    EAPI Eina_Bool    elm_flip_interacton_direction_enabled_get(Evas_Object *obj, Elm_Flip_Direction dir);
22443    /**
22444     * @brief Set the amount of the flip that is sensitive to interactive flip
22445     *
22446     * @param obj The flip object
22447     * @param dir The direction to modify
22448     * @param hitsize The amount of that dimension (0.0 to 1.0) to use
22449     *
22450     * Set the amount of the flip that is sensitive to interactive flip, with 0
22451     * representing no area in the flip and 1 representing the entire flip. There
22452     * is however a consideration to be made in that the area will never be
22453     * smaller than the finger size set(as set in your Elementary configuration).
22454     *
22455     * @see elm_flip_interaction_set()
22456     */
22457    EAPI void         elm_flip_interacton_direction_hitsize_set(Evas_Object *obj, Elm_Flip_Direction dir, double hitsize);
22458    /**
22459     * @brief Get the amount of the flip that is sensitive to interactive flip
22460     *
22461     * @param obj The flip object
22462     * @param dir The direction to check
22463     * @return The size set for that direction
22464     *
22465     * Returns the amount os sensitive area set by
22466     * elm_flip_interacton_direction_hitsize_set().
22467     */
22468    EAPI double       elm_flip_interacton_direction_hitsize_get(Evas_Object *obj, Elm_Flip_Direction dir);
22469    /**
22470     * @}
22471     */
22472
22473    /* scrolledentry */
22474    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22475    EINA_DEPRECATED EAPI void         elm_scrolled_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
22476    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22477    EINA_DEPRECATED EAPI void         elm_scrolled_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
22478    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22479    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
22480    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22481    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
22482    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22483    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22484    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
22485    EINA_DEPRECATED EAPI void         elm_scrolled_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
22486    EINA_DEPRECATED EAPI void         elm_scrolled_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
22487    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22488    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
22489    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
22490    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
22491    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
22492    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
22493    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
22494    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
22495    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
22496    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
22497    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
22498    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
22499    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
22500    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22501    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22502    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22503    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
22504    EINA_DEPRECATED EAPI int          elm_scrolled_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22505    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
22506    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
22507    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
22508    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
22509    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);
22510    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
22511    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22512    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);
22513    EINA_DEPRECATED EAPI void         elm_scrolled_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
22514    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);
22515    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1, 2);
22516    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22517    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22518    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
22519    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1, 2);
22520    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22521    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22522    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
22523    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);
22524    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);
22525    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);
22526    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);
22527    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);
22528    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);
22529    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
22530    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
22531    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
22532    EINA_DEPRECATED EAPI void         elm_scrolled_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
22533    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22534    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
22535    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cnp_textonly_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
22536
22537    /**
22538     * @defgroup Conformant Conformant
22539     * @ingroup Elementary
22540     *
22541     * @image html img/widget/conformant/preview-00.png
22542     * @image latex img/widget/conformant/preview-00.eps width=\textwidth
22543     *
22544     * @image html img/conformant.png
22545     * @image latex img/conformant.eps width=\textwidth
22546     *
22547     * The aim is to provide a widget that can be used in elementary apps to
22548     * account for space taken up by the indicator, virtual keypad & softkey
22549     * windows when running the illume2 module of E17.
22550     *
22551     * So conformant content will be sized and positioned considering the
22552     * space required for such stuff, and when they popup, as a keyboard
22553     * shows when an entry is selected, conformant content won't change.
22554     *
22555     * Available styles for it:
22556     * - @c "default"
22557     *
22558     * See how to use this widget in this example:
22559     * @ref conformant_example
22560     */
22561
22562    /**
22563     * @addtogroup Conformant
22564     * @{
22565     */
22566
22567    /**
22568     * Add a new conformant widget to the given parent Elementary
22569     * (container) object.
22570     *
22571     * @param parent The parent object.
22572     * @return A new conformant widget handle or @c NULL, on errors.
22573     *
22574     * This function inserts a new conformant widget on the canvas.
22575     *
22576     * @ingroup Conformant
22577     */
22578    EAPI Evas_Object *elm_conformant_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22579
22580    /**
22581     * Set the content of the conformant widget.
22582     *
22583     * @param obj The conformant object.
22584     * @param content The content to be displayed by the conformant.
22585     *
22586     * Content will be sized and positioned considering the space required
22587     * to display a virtual keyboard. So it won't fill all the conformant
22588     * size. This way is possible to be sure that content won't resize
22589     * or be re-positioned after the keyboard is displayed.
22590     *
22591     * Once the content object is set, a previously set one will be deleted.
22592     * If you want to keep that old content object, use the
22593     * elm_conformat_content_unset() function.
22594     *
22595     * @see elm_conformant_content_unset()
22596     * @see elm_conformant_content_get()
22597     *
22598     * @ingroup Conformant
22599     */
22600    EAPI void         elm_conformant_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22601
22602    /**
22603     * Get the content of the conformant widget.
22604     *
22605     * @param obj The conformant object.
22606     * @return The content that is being used.
22607     *
22608     * Return the content object which is set for this widget.
22609     * It won't be unparent from conformant. For that, use
22610     * elm_conformant_content_unset().
22611     *
22612     * @see elm_conformant_content_set() for more details.
22613     * @see elm_conformant_content_unset()
22614     *
22615     * @ingroup Conformant
22616     */
22617    EAPI Evas_Object *elm_conformant_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22618
22619    /**
22620     * Unset the content of the conformant widget.
22621     *
22622     * @param obj The conformant object.
22623     * @return The content that was being used.
22624     *
22625     * Unparent and return the content object which was set for this widget.
22626     *
22627     * @see elm_conformant_content_set() for more details.
22628     *
22629     * @ingroup Conformant
22630     */
22631    EAPI Evas_Object *elm_conformant_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22632
22633    /**
22634     * Returns the Evas_Object that represents the content area.
22635     *
22636     * @param obj The conformant object.
22637     * @return The content area of the widget.
22638     *
22639     * @ingroup Conformant
22640     */
22641    EAPI Evas_Object *elm_conformant_content_area_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22642
22643    /**
22644     * @}
22645     */
22646
22647    /**
22648     * @defgroup Mapbuf Mapbuf
22649     * @ingroup Elementary
22650     *
22651     * @image html img/widget/mapbuf/preview-00.png
22652     * @image latex img/widget/mapbuf/preview-00.eps width=\textwidth
22653     *
22654     * This holds one content object and uses an Evas Map of transformation
22655     * points to be later used with this content. So the content will be
22656     * moved, resized, etc as a single image. So it will improve performance
22657     * when you have a complex interafce, with a lot of elements, and will
22658     * need to resize or move it frequently (the content object and its
22659     * children).
22660     *
22661     * See how to use this widget in this example:
22662     * @ref mapbuf_example
22663     */
22664
22665    /**
22666     * @addtogroup Mapbuf
22667     * @{
22668     */
22669
22670    /**
22671     * Add a new mapbuf widget to the given parent Elementary
22672     * (container) object.
22673     *
22674     * @param parent The parent object.
22675     * @return A new mapbuf widget handle or @c NULL, on errors.
22676     *
22677     * This function inserts a new mapbuf widget on the canvas.
22678     *
22679     * @ingroup Mapbuf
22680     */
22681    EAPI Evas_Object *elm_mapbuf_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22682
22683    /**
22684     * Set the content of the mapbuf.
22685     *
22686     * @param obj The mapbuf object.
22687     * @param content The content that will be filled in this mapbuf object.
22688     *
22689     * Once the content object is set, a previously set one will be deleted.
22690     * If you want to keep that old content object, use the
22691     * elm_mapbuf_content_unset() function.
22692     *
22693     * To enable map, elm_mapbuf_enabled_set() should be used.
22694     *
22695     * @ingroup Mapbuf
22696     */
22697    EAPI void         elm_mapbuf_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22698
22699    /**
22700     * Get the content of the mapbuf.
22701     *
22702     * @param obj The mapbuf object.
22703     * @return The content that is being used.
22704     *
22705     * Return the content object which is set for this widget.
22706     *
22707     * @see elm_mapbuf_content_set() for details.
22708     *
22709     * @ingroup Mapbuf
22710     */
22711    EAPI Evas_Object *elm_mapbuf_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22712
22713    /**
22714     * Unset the content of the mapbuf.
22715     *
22716     * @param obj The mapbuf object.
22717     * @return The content that was being used.
22718     *
22719     * Unparent and return the content object which was set for this widget.
22720     *
22721     * @see elm_mapbuf_content_set() for details.
22722     *
22723     * @ingroup Mapbuf
22724     */
22725    EAPI Evas_Object *elm_mapbuf_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22726
22727    /**
22728     * Enable or disable the map.
22729     *
22730     * @param obj The mapbuf object.
22731     * @param enabled @c EINA_TRUE to enable map or @c EINA_FALSE to disable it.
22732     *
22733     * This enables the map that is set or disables it. On enable, the object
22734     * geometry will be saved, and the new geometry will change (position and
22735     * size) to reflect the map geometry set.
22736     *
22737     * Also, when enabled, alpha and smooth states will be used, so if the
22738     * content isn't solid, alpha should be enabled, for example, otherwise
22739     * a black retangle will fill the content.
22740     *
22741     * When disabled, the stored map will be freed and geometry prior to
22742     * enabling the map will be restored.
22743     *
22744     * It's disabled by default.
22745     *
22746     * @see elm_mapbuf_alpha_set()
22747     * @see elm_mapbuf_smooth_set()
22748     *
22749     * @ingroup Mapbuf
22750     */
22751    EAPI void         elm_mapbuf_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
22752
22753    /**
22754     * Get a value whether map is enabled or not.
22755     *
22756     * @param obj The mapbuf object.
22757     * @return @c EINA_TRUE means map is enabled. @c EINA_FALSE indicates
22758     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
22759     *
22760     * @see elm_mapbuf_enabled_set() for details.
22761     *
22762     * @ingroup Mapbuf
22763     */
22764    EAPI Eina_Bool    elm_mapbuf_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22765
22766    /**
22767     * Enable or disable smooth map rendering.
22768     *
22769     * @param obj The mapbuf object.
22770     * @param smooth @c EINA_TRUE to enable smooth map rendering or @c EINA_FALSE
22771     * to disable it.
22772     *
22773     * This sets smoothing for map rendering. If the object is a type that has
22774     * its own smoothing settings, then both the smooth settings for this object
22775     * and the map must be turned off.
22776     *
22777     * By default smooth maps are enabled.
22778     *
22779     * @ingroup Mapbuf
22780     */
22781    EAPI void         elm_mapbuf_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
22782
22783    /**
22784     * Get a value whether smooth map rendering is enabled or not.
22785     *
22786     * @param obj The mapbuf object.
22787     * @return @c EINA_TRUE means smooth map rendering is enabled. @c EINA_FALSE
22788     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
22789     *
22790     * @see elm_mapbuf_smooth_set() for details.
22791     *
22792     * @ingroup Mapbuf
22793     */
22794    EAPI Eina_Bool    elm_mapbuf_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22795
22796    /**
22797     * Set or unset alpha flag for map rendering.
22798     *
22799     * @param obj The mapbuf object.
22800     * @param alpha @c EINA_TRUE to enable alpha blending or @c EINA_FALSE
22801     * to disable it.
22802     *
22803     * This sets alpha flag for map rendering. If the object is a type that has
22804     * its own alpha settings, then this will take precedence. Only image objects
22805     * have this currently. It stops alpha blending of the map area, and is
22806     * useful if you know the object and/or all sub-objects is 100% solid.
22807     *
22808     * Alpha is enabled by default.
22809     *
22810     * @ingroup Mapbuf
22811     */
22812    EAPI void         elm_mapbuf_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
22813
22814    /**
22815     * Get a value whether alpha blending is enabled or not.
22816     *
22817     * @param obj The mapbuf object.
22818     * @return @c EINA_TRUE means alpha blending is enabled. @c EINA_FALSE
22819     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
22820     *
22821     * @see elm_mapbuf_alpha_set() for details.
22822     *
22823     * @ingroup Mapbuf
22824     */
22825    EAPI Eina_Bool    elm_mapbuf_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22826
22827    /**
22828     * @}
22829     */
22830
22831    /**
22832     * @defgroup Flipselector Flip Selector
22833     *
22834     * @image html img/widget/flipselector/preview-00.png
22835     * @image latex img/widget/flipselector/preview-00.eps
22836     *
22837     * A flip selector is a widget to show a set of @b text items, one
22838     * at a time, with the same sheet switching style as the @ref Clock
22839     * "clock" widget, when one changes the current displaying sheet
22840     * (thus, the "flip" in the name).
22841     *
22842     * User clicks to flip sheets which are @b held for some time will
22843     * make the flip selector to flip continuosly and automatically for
22844     * the user. The interval between flips will keep growing in time,
22845     * so that it helps the user to reach an item which is distant from
22846     * the current selection.
22847     *
22848     * Smart callbacks one can register to:
22849     * - @c "selected" - when the widget's selected text item is changed
22850     * - @c "overflowed" - when the widget's current selection is changed
22851     *   from the first item in its list to the last
22852     * - @c "underflowed" - when the widget's current selection is changed
22853     *   from the last item in its list to the first
22854     *
22855     * Available styles for it:
22856     * - @c "default"
22857     *
22858     * Here is an example on its usage:
22859     * @li @ref flipselector_example
22860     */
22861
22862    /**
22863     * @addtogroup Flipselector
22864     * @{
22865     */
22866
22867    typedef struct _Elm_Flipselector_Item Elm_Flipselector_Item; /**< Item handle for a flip selector widget. */
22868
22869    /**
22870     * Add a new flip selector widget to the given parent Elementary
22871     * (container) widget
22872     *
22873     * @param parent The parent object
22874     * @return a new flip selector widget handle or @c NULL, on errors
22875     *
22876     * This function inserts a new flip selector widget on the canvas.
22877     *
22878     * @ingroup Flipselector
22879     */
22880    EAPI Evas_Object               *elm_flipselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22881
22882    /**
22883     * Programmatically select the next item of a flip selector widget
22884     *
22885     * @param obj The flipselector object
22886     *
22887     * @note The selection will be animated. Also, if it reaches the
22888     * end of its list of member items, it will continue with the first
22889     * one onwards.
22890     *
22891     * @ingroup Flipselector
22892     */
22893    EAPI void                       elm_flipselector_flip_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
22894
22895    /**
22896     * Programmatically select the previous item of a flip selector
22897     * widget
22898     *
22899     * @param obj The flipselector object
22900     *
22901     * @note The selection will be animated.  Also, if it reaches the
22902     * beginning of its list of member items, it will continue with the
22903     * last one backwards.
22904     *
22905     * @ingroup Flipselector
22906     */
22907    EAPI void                       elm_flipselector_flip_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
22908
22909    /**
22910     * Append a (text) item to a flip selector widget
22911     *
22912     * @param obj The flipselector object
22913     * @param label The (text) label of the new item
22914     * @param func Convenience callback function to take place when
22915     * item is selected
22916     * @param data Data passed to @p func, above
22917     * @return A handle to the item added or @c NULL, on errors
22918     *
22919     * The widget's list of labels to show will be appended with the
22920     * given value. If the user wishes so, a callback function pointer
22921     * can be passed, which will get called when this same item is
22922     * selected.
22923     *
22924     * @note The current selection @b won't be modified by appending an
22925     * element to the list.
22926     *
22927     * @note The maximum length of the text label is going to be
22928     * determined <b>by the widget's theme</b>. Strings larger than
22929     * that value are going to be @b truncated.
22930     *
22931     * @ingroup Flipselector
22932     */
22933    EAPI Elm_Flipselector_Item     *elm_flipselector_item_append(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
22934
22935    /**
22936     * Prepend a (text) item to a flip selector widget
22937     *
22938     * @param obj The flipselector object
22939     * @param label The (text) label of the new item
22940     * @param func Convenience callback function to take place when
22941     * item is selected
22942     * @param data Data passed to @p func, above
22943     * @return A handle to the item added or @c NULL, on errors
22944     *
22945     * The widget's list of labels to show will be prepended with the
22946     * given value. If the user wishes so, a callback function pointer
22947     * can be passed, which will get called when this same item is
22948     * selected.
22949     *
22950     * @note The current selection @b won't be modified by prepending
22951     * an element to the list.
22952     *
22953     * @note The maximum length of the text label is going to be
22954     * determined <b>by the widget's theme</b>. Strings larger than
22955     * that value are going to be @b truncated.
22956     *
22957     * @ingroup Flipselector
22958     */
22959    EAPI Elm_Flipselector_Item     *elm_flipselector_item_prepend(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
22960
22961    /**
22962     * Get the internal list of items in a given flip selector widget.
22963     *
22964     * @param obj The flipselector object
22965     * @return The list of items (#Elm_Flipselector_Item as data) or
22966     * @c NULL on errors.
22967     *
22968     * This list is @b not to be modified in any way and must not be
22969     * freed. Use the list members with functions like
22970     * elm_flipselector_item_label_set(),
22971     * elm_flipselector_item_label_get(),
22972     * elm_flipselector_item_del(),
22973     * elm_flipselector_item_selected_get(),
22974     * elm_flipselector_item_selected_set().
22975     *
22976     * @warning This list is only valid until @p obj object's internal
22977     * items list is changed. It should be fetched again with another
22978     * call to this function when changes happen.
22979     *
22980     * @ingroup Flipselector
22981     */
22982    EAPI const Eina_List           *elm_flipselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22983
22984    /**
22985     * Get the first item in the given flip selector widget's list of
22986     * items.
22987     *
22988     * @param obj The flipselector object
22989     * @return The first item or @c NULL, if it has no items (and on
22990     * errors)
22991     *
22992     * @see elm_flipselector_item_append()
22993     * @see elm_flipselector_last_item_get()
22994     *
22995     * @ingroup Flipselector
22996     */
22997    EAPI Elm_Flipselector_Item     *elm_flipselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22998
22999    /**
23000     * Get the last item in the given flip selector widget's list of
23001     * items.
23002     *
23003     * @param obj The flipselector object
23004     * @return The last item or @c NULL, if it has no items (and on
23005     * errors)
23006     *
23007     * @see elm_flipselector_item_prepend()
23008     * @see elm_flipselector_first_item_get()
23009     *
23010     * @ingroup Flipselector
23011     */
23012    EAPI Elm_Flipselector_Item     *elm_flipselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23013
23014    /**
23015     * Get the currently selected item in a flip selector widget.
23016     *
23017     * @param obj The flipselector object
23018     * @return The selected item or @c NULL, if the widget has no items
23019     * (and on erros)
23020     *
23021     * @ingroup Flipselector
23022     */
23023    EAPI Elm_Flipselector_Item     *elm_flipselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23024
23025    /**
23026     * Set whether a given flip selector widget's item should be the
23027     * currently selected one.
23028     *
23029     * @param item The flip selector item
23030     * @param selected @c EINA_TRUE to select it, @c EINA_FALSE to unselect.
23031     *
23032     * This sets whether @p item is or not the selected (thus, under
23033     * display) one. If @p item is different than one under display,
23034     * the latter will be unselected. If the @p item is set to be
23035     * unselected, on the other hand, the @b first item in the widget's
23036     * internal members list will be the new selected one.
23037     *
23038     * @see elm_flipselector_item_selected_get()
23039     *
23040     * @ingroup Flipselector
23041     */
23042    EAPI void                       elm_flipselector_item_selected_set(Elm_Flipselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
23043
23044    /**
23045     * Get whether a given flip selector widget's item is the currently
23046     * selected one.
23047     *
23048     * @param item The flip selector item
23049     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
23050     * (or on errors).
23051     *
23052     * @see elm_flipselector_item_selected_set()
23053     *
23054     * @ingroup Flipselector
23055     */
23056    EAPI Eina_Bool                  elm_flipselector_item_selected_get(const Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23057
23058    /**
23059     * Delete a given item from a flip selector widget.
23060     *
23061     * @param item The item to delete
23062     *
23063     * @ingroup Flipselector
23064     */
23065    EAPI void                       elm_flipselector_item_del(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23066
23067    /**
23068     * Get the label of a given flip selector widget's item.
23069     *
23070     * @param item The item to get label from
23071     * @return The text label of @p item or @c NULL, on errors
23072     *
23073     * @see elm_flipselector_item_label_set()
23074     *
23075     * @ingroup Flipselector
23076     */
23077    EAPI const char                *elm_flipselector_item_label_get(const Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23078
23079    /**
23080     * Set the label of a given flip selector widget's item.
23081     *
23082     * @param item The item to set label on
23083     * @param label The text label string, in UTF-8 encoding
23084     *
23085     * @see elm_flipselector_item_label_get()
23086     *
23087     * @ingroup Flipselector
23088     */
23089    EAPI void                       elm_flipselector_item_label_set(Elm_Flipselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
23090
23091    /**
23092     * Gets the item before @p item in a flip selector widget's
23093     * internal list of items.
23094     *
23095     * @param item The item to fetch previous from
23096     * @return The item before the @p item, in its parent's list. If
23097     *         there is no previous item for @p item or there's an
23098     *         error, @c NULL is returned.
23099     *
23100     * @see elm_flipselector_item_next_get()
23101     *
23102     * @ingroup Flipselector
23103     */
23104    EAPI Elm_Flipselector_Item     *elm_flipselector_item_prev_get(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23105
23106    /**
23107     * Gets the item after @p item in a flip selector widget's
23108     * internal list of items.
23109     *
23110     * @param item The item to fetch next from
23111     * @return The item after the @p item, in its parent's list. If
23112     *         there is no next item for @p item or there's an
23113     *         error, @c NULL is returned.
23114     *
23115     * @see elm_flipselector_item_next_get()
23116     *
23117     * @ingroup Flipselector
23118     */
23119    EAPI Elm_Flipselector_Item     *elm_flipselector_item_next_get(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23120
23121    /**
23122     * Set the interval on time updates for an user mouse button hold
23123     * on a flip selector widget.
23124     *
23125     * @param obj The flip selector object
23126     * @param interval The (first) interval value in seconds
23127     *
23128     * This interval value is @b decreased while the user holds the
23129     * mouse pointer either flipping up or flipping doww a given flip
23130     * selector.
23131     *
23132     * This helps the user to get to a given item distant from the
23133     * current one easier/faster, as it will start to flip quicker and
23134     * quicker on mouse button holds.
23135     *
23136     * The calculation for the next flip interval value, starting from
23137     * the one set with this call, is the previous interval divided by
23138     * 1.05, so it decreases a little bit.
23139     *
23140     * The default starting interval value for automatic flips is
23141     * @b 0.85 seconds.
23142     *
23143     * @see elm_flipselector_interval_get()
23144     *
23145     * @ingroup Flipselector
23146     */
23147    EAPI void                       elm_flipselector_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
23148
23149    /**
23150     * Get the interval on time updates for an user mouse button hold
23151     * on a flip selector widget.
23152     *
23153     * @param obj The flip selector object
23154     * @return The (first) interval value, in seconds, set on it
23155     *
23156     * @see elm_flipselector_interval_set() for more details
23157     *
23158     * @ingroup Flipselector
23159     */
23160    EAPI double                     elm_flipselector_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23161    /**
23162     * @}
23163     */
23164
23165    /**
23166     * @addtogroup Calendar
23167     * @{
23168     */
23169
23170    /**
23171     * @enum _Elm_Calendar_Mark_Repeat
23172     * @typedef Elm_Calendar_Mark_Repeat
23173     *
23174     * Event periodicity, used to define if a mark should be repeated
23175     * @b beyond event's day. It's set when a mark is added.
23176     *
23177     * So, for a mark added to 13th May with periodicity set to WEEKLY,
23178     * there will be marks every week after this date. Marks will be displayed
23179     * at 13th, 20th, 27th, 3rd June ...
23180     *
23181     * Values don't work as bitmask, only one can be choosen.
23182     *
23183     * @see elm_calendar_mark_add()
23184     *
23185     * @ingroup Calendar
23186     */
23187    typedef enum _Elm_Calendar_Mark_Repeat
23188      {
23189         ELM_CALENDAR_UNIQUE, /**< Default value. Marks will be displayed only on event day. */
23190         ELM_CALENDAR_DAILY, /**< Marks will be displayed everyday after event day (inclusive). */
23191         ELM_CALENDAR_WEEKLY, /**< Marks will be displayed every week after event day (inclusive) - i.e. each seven days. */
23192         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*/
23193         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. */
23194      } Elm_Calendar_Mark_Repeat;
23195
23196    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(). */
23197
23198    /**
23199     * Add a new calendar widget to the given parent Elementary
23200     * (container) object.
23201     *
23202     * @param parent The parent object.
23203     * @return a new calendar widget handle or @c NULL, on errors.
23204     *
23205     * This function inserts a new calendar widget on the canvas.
23206     *
23207     * @ref calendar_example_01
23208     *
23209     * @ingroup Calendar
23210     */
23211    EAPI Evas_Object       *elm_calendar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23212
23213    /**
23214     * Get weekdays names displayed by the calendar.
23215     *
23216     * @param obj The calendar object.
23217     * @return Array of seven strings to be used as weekday names.
23218     *
23219     * By default, weekdays abbreviations get from system are displayed:
23220     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
23221     * The first string is related to Sunday, the second to Monday...
23222     *
23223     * @see elm_calendar_weekdays_name_set()
23224     *
23225     * @ref calendar_example_05
23226     *
23227     * @ingroup Calendar
23228     */
23229    EAPI const char       **elm_calendar_weekdays_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23230
23231    /**
23232     * Set weekdays names to be displayed by the calendar.
23233     *
23234     * @param obj The calendar object.
23235     * @param weekdays Array of seven strings to be used as weekday names.
23236     * @warning It must have 7 elements, or it will access invalid memory.
23237     * @warning The strings must be NULL terminated ('@\0').
23238     *
23239     * By default, weekdays abbreviations get from system are displayed:
23240     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
23241     *
23242     * The first string should be related to Sunday, the second to Monday...
23243     *
23244     * The usage should be like this:
23245     * @code
23246     *   const char *weekdays[] =
23247     *   {
23248     *      "Sunday", "Monday", "Tuesday", "Wednesday",
23249     *      "Thursday", "Friday", "Saturday"
23250     *   };
23251     *   elm_calendar_weekdays_names_set(calendar, weekdays);
23252     * @endcode
23253     *
23254     * @see elm_calendar_weekdays_name_get()
23255     *
23256     * @ref calendar_example_02
23257     *
23258     * @ingroup Calendar
23259     */
23260    EAPI void               elm_calendar_weekdays_names_set(Evas_Object *obj, const char *weekdays[]) EINA_ARG_NONNULL(1, 2);
23261
23262    /**
23263     * Set the minimum and maximum values for the year
23264     *
23265     * @param obj The calendar object
23266     * @param min The minimum year, greater than 1901;
23267     * @param max The maximum year;
23268     *
23269     * Maximum must be greater than minimum, except if you don't wan't to set
23270     * maximum year.
23271     * Default values are 1902 and -1.
23272     *
23273     * If the maximum year is a negative value, it will be limited depending
23274     * on the platform architecture (year 2037 for 32 bits);
23275     *
23276     * @see elm_calendar_min_max_year_get()
23277     *
23278     * @ref calendar_example_03
23279     *
23280     * @ingroup Calendar
23281     */
23282    EAPI void               elm_calendar_min_max_year_set(Evas_Object *obj, int min, int max) EINA_ARG_NONNULL(1);
23283
23284    /**
23285     * Get the minimum and maximum values for the year
23286     *
23287     * @param obj The calendar object.
23288     * @param min The minimum year.
23289     * @param max The maximum year.
23290     *
23291     * Default values are 1902 and -1.
23292     *
23293     * @see elm_calendar_min_max_year_get() for more details.
23294     *
23295     * @ref calendar_example_05
23296     *
23297     * @ingroup Calendar
23298     */
23299    EAPI void               elm_calendar_min_max_year_get(const Evas_Object *obj, int *min, int *max) EINA_ARG_NONNULL(1);
23300
23301    /**
23302     * Enable or disable day selection
23303     *
23304     * @param obj The calendar object.
23305     * @param enabled @c EINA_TRUE to enable selection or @c EINA_FALSE to
23306     * disable it.
23307     *
23308     * Enabled by default. If disabled, the user still can select months,
23309     * but not days. Selected days are highlighted on calendar.
23310     * It should be used if you won't need such selection for the widget usage.
23311     *
23312     * When a day is selected, or month is changed, smart callbacks for
23313     * signal "changed" will be called.
23314     *
23315     * @see elm_calendar_day_selection_enable_get()
23316     *
23317     * @ref calendar_example_04
23318     *
23319     * @ingroup Calendar
23320     */
23321    EAPI void               elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
23322
23323    /**
23324     * Get a value whether day selection is enabled or not.
23325     *
23326     * @see elm_calendar_day_selection_enable_set() for details.
23327     *
23328     * @param obj The calendar object.
23329     * @return EINA_TRUE means day selection is enabled. EINA_FALSE indicates
23330     * it's disabled. If @p obj is NULL, EINA_FALSE is returned.
23331     *
23332     * @ref calendar_example_05
23333     *
23334     * @ingroup Calendar
23335     */
23336    EAPI Eina_Bool          elm_calendar_day_selection_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23337
23338
23339    /**
23340     * Set selected date to be highlighted on calendar.
23341     *
23342     * @param obj The calendar object.
23343     * @param selected_time A @b tm struct to represent the selected date.
23344     *
23345     * Set the selected date, changing the displayed month if needed.
23346     * Selected date changes when the user goes to next/previous month or
23347     * select a day pressing over it on calendar.
23348     *
23349     * @see elm_calendar_selected_time_get()
23350     *
23351     * @ref calendar_example_04
23352     *
23353     * @ingroup Calendar
23354     */
23355    EAPI void               elm_calendar_selected_time_set(Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1);
23356
23357    /**
23358     * Get selected date.
23359     *
23360     * @param obj The calendar object
23361     * @param selected_time A @b tm struct to point to selected date
23362     * @return EINA_FALSE means an error ocurred and returned time shouldn't
23363     * be considered.
23364     *
23365     * Get date selected by the user or set by function
23366     * elm_calendar_selected_time_set().
23367     * Selected date changes when the user goes to next/previous month or
23368     * select a day pressing over it on calendar.
23369     *
23370     * @see elm_calendar_selected_time_get()
23371     *
23372     * @ref calendar_example_05
23373     *
23374     * @ingroup Calendar
23375     */
23376    EAPI Eina_Bool          elm_calendar_selected_time_get(const Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1, 2);
23377
23378    /**
23379     * Set a function to format the string that will be used to display
23380     * month and year;
23381     *
23382     * @param obj The calendar object
23383     * @param format_function Function to set the month-year string given
23384     * the selected date
23385     *
23386     * By default it uses strftime with "%B %Y" format string.
23387     * It should allocate the memory that will be used by the string,
23388     * that will be freed by the widget after usage.
23389     * A pointer to the string and a pointer to the time struct will be provided.
23390     *
23391     * Example:
23392     * @code
23393     * static char *
23394     * _format_month_year(struct tm *selected_time)
23395     * {
23396     *    char buf[32];
23397     *    if (!strftime(buf, sizeof(buf), "%B %Y", selected_time)) return NULL;
23398     *    return strdup(buf);
23399     * }
23400     *
23401     * elm_calendar_format_function_set(calendar, _format_month_year);
23402     * @endcode
23403     *
23404     * @ref calendar_example_02
23405     *
23406     * @ingroup Calendar
23407     */
23408    EAPI void               elm_calendar_format_function_set(Evas_Object *obj, char * (*format_function) (struct tm *stime)) EINA_ARG_NONNULL(1);
23409
23410    /**
23411     * Add a new mark to the calendar
23412     *
23413     * @param obj The calendar object
23414     * @param mark_type A string used to define the type of mark. It will be
23415     * emitted to the theme, that should display a related modification on these
23416     * days representation.
23417     * @param mark_time A time struct to represent the date of inclusion of the
23418     * mark. For marks that repeats it will just be displayed after the inclusion
23419     * date in the calendar.
23420     * @param repeat Repeat the event following this periodicity. Can be a unique
23421     * mark (that don't repeat), daily, weekly, monthly or annually.
23422     * @return The created mark or @p NULL upon failure.
23423     *
23424     * Add a mark that will be drawn in the calendar respecting the insertion
23425     * time and periodicity. It will emit the type as signal to the widget theme.
23426     * Default theme supports "holiday" and "checked", but it can be extended.
23427     *
23428     * It won't immediately update the calendar, drawing the marks.
23429     * For this, call elm_calendar_marks_draw(). However, when user selects
23430     * next or previous month calendar forces marks drawn.
23431     *
23432     * Marks created with this method can be deleted with
23433     * elm_calendar_mark_del().
23434     *
23435     * Example
23436     * @code
23437     * struct tm selected_time;
23438     * time_t current_time;
23439     *
23440     * current_time = time(NULL) + 5 * 84600;
23441     * localtime_r(&current_time, &selected_time);
23442     * elm_calendar_mark_add(cal, "holiday", selected_time,
23443     *     ELM_CALENDAR_ANNUALLY);
23444     *
23445     * current_time = time(NULL) + 1 * 84600;
23446     * localtime_r(&current_time, &selected_time);
23447     * elm_calendar_mark_add(cal, "checked", selected_time, ELM_CALENDAR_UNIQUE);
23448     *
23449     * elm_calendar_marks_draw(cal);
23450     * @endcode
23451     *
23452     * @see elm_calendar_marks_draw()
23453     * @see elm_calendar_mark_del()
23454     *
23455     * @ref calendar_example_06
23456     *
23457     * @ingroup Calendar
23458     */
23459    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);
23460
23461    /**
23462     * Delete mark from the calendar.
23463     *
23464     * @param mark The mark to be deleted.
23465     *
23466     * If deleting all calendar marks is required, elm_calendar_marks_clear()
23467     * should be used instead of getting marks list and deleting each one.
23468     *
23469     * @see elm_calendar_mark_add()
23470     *
23471     * @ref calendar_example_06
23472     *
23473     * @ingroup Calendar
23474     */
23475    EAPI void               elm_calendar_mark_del(Elm_Calendar_Mark *mark) EINA_ARG_NONNULL(1);
23476
23477    /**
23478     * Remove all calendar's marks
23479     *
23480     * @param obj The calendar object.
23481     *
23482     * @see elm_calendar_mark_add()
23483     * @see elm_calendar_mark_del()
23484     *
23485     * @ingroup Calendar
23486     */
23487    EAPI void               elm_calendar_marks_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
23488
23489
23490    /**
23491     * Get a list of all the calendar marks.
23492     *
23493     * @param obj The calendar object.
23494     * @return An @c Eina_List of calendar marks objects, or @c NULL on failure.
23495     *
23496     * @see elm_calendar_mark_add()
23497     * @see elm_calendar_mark_del()
23498     * @see elm_calendar_marks_clear()
23499     *
23500     * @ingroup Calendar
23501     */
23502    EAPI const Eina_List   *elm_calendar_marks_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23503
23504    /**
23505     * Draw calendar marks.
23506     *
23507     * @param obj The calendar object.
23508     *
23509     * Should be used after adding, removing or clearing marks.
23510     * It will go through the entire marks list updating the calendar.
23511     * If lots of marks will be added, add all the marks and then call
23512     * this function.
23513     *
23514     * When the month is changed, i.e. user selects next or previous month,
23515     * marks will be drawed.
23516     *
23517     * @see elm_calendar_mark_add()
23518     * @see elm_calendar_mark_del()
23519     * @see elm_calendar_marks_clear()
23520     *
23521     * @ref calendar_example_06
23522     *
23523     * @ingroup Calendar
23524     */
23525    EAPI void               elm_calendar_marks_draw(Evas_Object *obj) EINA_ARG_NONNULL(1);
23526
23527    /**
23528     * Set a day text color to the same that represents Saturdays.
23529     *
23530     * @param obj The calendar object.
23531     * @param pos The text position. Position is the cell counter, from left
23532     * to right, up to down. It starts on 0 and ends on 41.
23533     *
23534     * @deprecated use elm_calendar_mark_add() instead like:
23535     *
23536     * @code
23537     * struct tm t = { 0, 0, 12, 6, 0, 0, 6, 6, -1 };
23538     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
23539     * @endcode
23540     *
23541     * @see elm_calendar_mark_add()
23542     *
23543     * @ingroup Calendar
23544     */
23545    EINA_DEPRECATED EAPI void               elm_calendar_text_saturday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
23546
23547    /**
23548     * Set a day text color to the same that represents Sundays.
23549     *
23550     * @param obj The calendar object.
23551     * @param pos The text position. Position is the cell counter, from left
23552     * to right, up to down. It starts on 0 and ends on 41.
23553
23554     * @deprecated use elm_calendar_mark_add() instead like:
23555     *
23556     * @code
23557     * struct tm t = { 0, 0, 12, 7, 0, 0, 0, 0, -1 };
23558     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
23559     * @endcode
23560     *
23561     * @see elm_calendar_mark_add()
23562     *
23563     * @ingroup Calendar
23564     */
23565    EINA_DEPRECATED EAPI void               elm_calendar_text_sunday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
23566
23567    /**
23568     * Set a day text color to the same that represents Weekdays.
23569     *
23570     * @param obj The calendar object
23571     * @param pos The text position. Position is the cell counter, from left
23572     * to right, up to down. It starts on 0 and ends on 41.
23573     *
23574     * @deprecated use elm_calendar_mark_add() instead like:
23575     *
23576     * @code
23577     * struct tm t = { 0, 0, 12, 1, 0, 0, 0, 0, -1 };
23578     *
23579     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // monday
23580     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
23581     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // tuesday
23582     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
23583     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // wednesday
23584     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
23585     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // thursday
23586     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
23587     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // friday
23588     * @endcode
23589     *
23590     * @see elm_calendar_mark_add()
23591     *
23592     * @ingroup Calendar
23593     */
23594    EINA_DEPRECATED EAPI void               elm_calendar_text_weekday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
23595
23596    /**
23597     * Set the interval on time updates for an user mouse button hold
23598     * on calendar widgets' month selection.
23599     *
23600     * @param obj The calendar object
23601     * @param interval The (first) interval value in seconds
23602     *
23603     * This interval value is @b decreased while the user holds the
23604     * mouse pointer either selecting next or previous month.
23605     *
23606     * This helps the user to get to a given month distant from the
23607     * current one easier/faster, as it will start to change quicker and
23608     * quicker on mouse button holds.
23609     *
23610     * The calculation for the next change interval value, starting from
23611     * the one set with this call, is the previous interval divided by
23612     * 1.05, so it decreases a little bit.
23613     *
23614     * The default starting interval value for automatic changes is
23615     * @b 0.85 seconds.
23616     *
23617     * @see elm_calendar_interval_get()
23618     *
23619     * @ingroup Calendar
23620     */
23621    EAPI void               elm_calendar_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
23622
23623    /**
23624     * Get the interval on time updates for an user mouse button hold
23625     * on calendar widgets' month selection.
23626     *
23627     * @param obj The calendar object
23628     * @return The (first) interval value, in seconds, set on it
23629     *
23630     * @see elm_calendar_interval_set() for more details
23631     *
23632     * @ingroup Calendar
23633     */
23634    EAPI double             elm_calendar_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23635
23636    /**
23637     * @}
23638     */
23639
23640    /**
23641     * @defgroup Diskselector Diskselector
23642     * @ingroup Elementary
23643     *
23644     * @image html img/widget/diskselector/preview-00.png
23645     * @image latex img/widget/diskselector/preview-00.eps
23646     *
23647     * A diskselector is a kind of list widget. It scrolls horizontally,
23648     * and can contain label and icon objects. Three items are displayed
23649     * with the selected one in the middle.
23650     *
23651     * It can act like a circular list with round mode and labels can be
23652     * reduced for a defined length for side items.
23653     *
23654     * Smart callbacks one can listen to:
23655     * - "selected" - when item is selected, i.e. scroller stops.
23656     *
23657     * Available styles for it:
23658     * - @c "default"
23659     *
23660     * List of examples:
23661     * @li @ref diskselector_example_01
23662     * @li @ref diskselector_example_02
23663     */
23664
23665    /**
23666     * @addtogroup Diskselector
23667     * @{
23668     */
23669
23670    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(). */
23671
23672    /**
23673     * Add a new diskselector widget to the given parent Elementary
23674     * (container) object.
23675     *
23676     * @param parent The parent object.
23677     * @return a new diskselector widget handle or @c NULL, on errors.
23678     *
23679     * This function inserts a new diskselector widget on the canvas.
23680     *
23681     * @ingroup Diskselector
23682     */
23683    EAPI Evas_Object           *elm_diskselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23684
23685    /**
23686     * Enable or disable round mode.
23687     *
23688     * @param obj The diskselector object.
23689     * @param round @c EINA_TRUE to enable round mode or @c EINA_FALSE to
23690     * disable it.
23691     *
23692     * Disabled by default. If round mode is enabled the items list will
23693     * work like a circle list, so when the user reaches the last item,
23694     * the first one will popup.
23695     *
23696     * @see elm_diskselector_round_get()
23697     *
23698     * @ingroup Diskselector
23699     */
23700    EAPI void                   elm_diskselector_round_set(Evas_Object *obj, Eina_Bool round) EINA_ARG_NONNULL(1);
23701
23702    /**
23703     * Get a value whether round mode is enabled or not.
23704     *
23705     * @see elm_diskselector_round_set() for details.
23706     *
23707     * @param obj The diskselector object.
23708     * @return @c EINA_TRUE means round mode is enabled. @c EINA_FALSE indicates
23709     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
23710     *
23711     * @ingroup Diskselector
23712     */
23713    EAPI Eina_Bool              elm_diskselector_round_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23714
23715    /**
23716     * Get the side labels max length.
23717     *
23718     * @deprecated use elm_diskselector_side_label_length_get() instead:
23719     *
23720     * @param obj The diskselector object.
23721     * @return The max length defined for side labels, or 0 if not a valid
23722     * diskselector.
23723     *
23724     * @ingroup Diskselector
23725     */
23726    EINA_DEPRECATED EAPI int    elm_diskselector_side_label_lenght_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23727
23728    /**
23729     * Set the side labels max length.
23730     *
23731     * @deprecated use elm_diskselector_side_label_length_set() instead:
23732     *
23733     * @param obj The diskselector object.
23734     * @param len The max length defined for side labels.
23735     *
23736     * @ingroup Diskselector
23737     */
23738    EINA_DEPRECATED EAPI void   elm_diskselector_side_label_lenght_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
23739
23740    /**
23741     * Get the side labels max length.
23742     *
23743     * @see elm_diskselector_side_label_length_set() for details.
23744     *
23745     * @param obj The diskselector object.
23746     * @return The max length defined for side labels, or 0 if not a valid
23747     * diskselector.
23748     *
23749     * @ingroup Diskselector
23750     */
23751    EAPI int                    elm_diskselector_side_label_length_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23752
23753    /**
23754     * Set the side labels max length.
23755     *
23756     * @param obj The diskselector object.
23757     * @param len The max length defined for side labels.
23758     *
23759     * Length is the number of characters of items' label that will be
23760     * visible when it's set on side positions. It will just crop
23761     * the string after defined size. E.g.:
23762     *
23763     * An item with label "January" would be displayed on side position as
23764     * "Jan" if max length is set to 3, or "Janu", if this property
23765     * is set to 4.
23766     *
23767     * When it's selected, the entire label will be displayed, except for
23768     * width restrictions. In this case label will be cropped and "..."
23769     * will be concatenated.
23770     *
23771     * Default side label max length is 3.
23772     *
23773     * This property will be applyed over all items, included before or
23774     * later this function call.
23775     *
23776     * @ingroup Diskselector
23777     */
23778    EAPI void                   elm_diskselector_side_label_length_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
23779
23780    /**
23781     * Set the number of items to be displayed.
23782     *
23783     * @param obj The diskselector object.
23784     * @param num The number of items the diskselector will display.
23785     *
23786     * Default value is 3, and also it's the minimun. If @p num is less
23787     * than 3, it will be set to 3.
23788     *
23789     * Also, it can be set on theme, using data item @c display_item_num
23790     * on group "elm/diskselector/item/X", where X is style set.
23791     * E.g.:
23792     *
23793     * group { name: "elm/diskselector/item/X";
23794     * data {
23795     *     item: "display_item_num" "5";
23796     *     }
23797     *
23798     * @ingroup Diskselector
23799     */
23800    EAPI void                   elm_diskselector_display_item_num_set(Evas_Object *obj, int num) EINA_ARG_NONNULL(1);
23801
23802    /**
23803     * Set bouncing behaviour when the scrolled content reaches an edge.
23804     *
23805     * Tell the internal scroller object whether it should bounce or not
23806     * when it reaches the respective edges for each axis.
23807     *
23808     * @param obj The diskselector object.
23809     * @param h_bounce Whether to bounce or not in the horizontal axis.
23810     * @param v_bounce Whether to bounce or not in the vertical axis.
23811     *
23812     * @see elm_scroller_bounce_set()
23813     *
23814     * @ingroup Diskselector
23815     */
23816    EAPI void                   elm_diskselector_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
23817
23818    /**
23819     * Get the bouncing behaviour of the internal scroller.
23820     *
23821     * Get whether the internal scroller should bounce when the edge of each
23822     * axis is reached scrolling.
23823     *
23824     * @param obj The diskselector object.
23825     * @param h_bounce Pointer where to store the bounce state of the horizontal
23826     * axis.
23827     * @param v_bounce Pointer where to store the bounce state of the vertical
23828     * axis.
23829     *
23830     * @see elm_scroller_bounce_get()
23831     * @see elm_diskselector_bounce_set()
23832     *
23833     * @ingroup Diskselector
23834     */
23835    EAPI void                   elm_diskselector_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
23836
23837    /**
23838     * Get the scrollbar policy.
23839     *
23840     * @see elm_diskselector_scroller_policy_get() for details.
23841     *
23842     * @param obj The diskselector object.
23843     * @param policy_h Pointer where to store horizontal scrollbar policy.
23844     * @param policy_v Pointer where to store vertical scrollbar policy.
23845     *
23846     * @ingroup Diskselector
23847     */
23848    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);
23849
23850    /**
23851     * Set the scrollbar policy.
23852     *
23853     * @param obj The diskselector object.
23854     * @param policy_h Horizontal scrollbar policy.
23855     * @param policy_v Vertical scrollbar policy.
23856     *
23857     * This sets the scrollbar visibility policy for the given scroller.
23858     * #ELM_SCROLLER_POLICY_AUTO means the scrollber is made visible if it
23859     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
23860     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
23861     * This applies respectively for the horizontal and vertical scrollbars.
23862     *
23863     * The both are disabled by default, i.e., are set to
23864     * #ELM_SCROLLER_POLICY_OFF.
23865     *
23866     * @ingroup Diskselector
23867     */
23868    EAPI void                   elm_diskselector_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
23869
23870    /**
23871     * Remove all diskselector's items.
23872     *
23873     * @param obj The diskselector object.
23874     *
23875     * @see elm_diskselector_item_del()
23876     * @see elm_diskselector_item_append()
23877     *
23878     * @ingroup Diskselector
23879     */
23880    EAPI void                   elm_diskselector_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
23881
23882    /**
23883     * Get a list of all the diskselector items.
23884     *
23885     * @param obj The diskselector object.
23886     * @return An @c Eina_List of diskselector items, #Elm_Diskselector_Item,
23887     * or @c NULL on failure.
23888     *
23889     * @see elm_diskselector_item_append()
23890     * @see elm_diskselector_item_del()
23891     * @see elm_diskselector_clear()
23892     *
23893     * @ingroup Diskselector
23894     */
23895    EAPI const Eina_List       *elm_diskselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23896
23897    /**
23898     * Appends a new item to the diskselector object.
23899     *
23900     * @param obj The diskselector object.
23901     * @param label The label of the diskselector item.
23902     * @param icon The icon object to use at left side of the item. An
23903     * icon can be any Evas object, but usually it is an icon created
23904     * with elm_icon_add().
23905     * @param func The function to call when the item is selected.
23906     * @param data The data to associate with the item for related callbacks.
23907     *
23908     * @return The created item or @c NULL upon failure.
23909     *
23910     * A new item will be created and appended to the diskselector, i.e., will
23911     * be set as last item. Also, if there is no selected item, it will
23912     * be selected. This will always happens for the first appended item.
23913     *
23914     * If no icon is set, label will be centered on item position, otherwise
23915     * the icon will be placed at left of the label, that will be shifted
23916     * to the right.
23917     *
23918     * Items created with this method can be deleted with
23919     * elm_diskselector_item_del().
23920     *
23921     * Associated @p data can be properly freed when item is deleted if a
23922     * callback function is set with elm_diskselector_item_del_cb_set().
23923     *
23924     * If a function is passed as argument, it will be called everytime this item
23925     * is selected, i.e., the user stops the diskselector with this
23926     * item on center position. If such function isn't needed, just passing
23927     * @c NULL as @p func is enough. The same should be done for @p data.
23928     *
23929     * Simple example (with no function callback or data associated):
23930     * @code
23931     * disk = elm_diskselector_add(win);
23932     * ic = elm_icon_add(win);
23933     * elm_icon_file_set(ic, "path/to/image", NULL);
23934     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
23935     * elm_diskselector_item_append(disk, "label", ic, NULL, NULL);
23936     * @endcode
23937     *
23938     * @see elm_diskselector_item_del()
23939     * @see elm_diskselector_item_del_cb_set()
23940     * @see elm_diskselector_clear()
23941     * @see elm_icon_add()
23942     *
23943     * @ingroup Diskselector
23944     */
23945    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);
23946
23947
23948    /**
23949     * Delete them item from the diskselector.
23950     *
23951     * @param it The item of diskselector to be deleted.
23952     *
23953     * If deleting all diskselector items is required, elm_diskselector_clear()
23954     * should be used instead of getting items list and deleting each one.
23955     *
23956     * @see elm_diskselector_clear()
23957     * @see elm_diskselector_item_append()
23958     * @see elm_diskselector_item_del_cb_set()
23959     *
23960     * @ingroup Diskselector
23961     */
23962    EAPI void                   elm_diskselector_item_del(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
23963
23964    /**
23965     * Set the function called when a diskselector item is freed.
23966     *
23967     * @param it The item to set the callback on
23968     * @param func The function called
23969     *
23970     * If there is a @p func, then it will be called prior item's memory release.
23971     * That will be called with the following arguments:
23972     * @li item's data;
23973     * @li item's Evas object;
23974     * @li item itself;
23975     *
23976     * This way, a data associated to a diskselector item could be properly
23977     * freed.
23978     *
23979     * @ingroup Diskselector
23980     */
23981    EAPI void                   elm_diskselector_item_del_cb_set(Elm_Diskselector_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
23982
23983    /**
23984     * Get the data associated to the item.
23985     *
23986     * @param it The diskselector item
23987     * @return The data associated to @p it
23988     *
23989     * The return value is a pointer to data associated to @p item when it was
23990     * created, with function elm_diskselector_item_append(). If no data
23991     * was passed as argument, it will return @c NULL.
23992     *
23993     * @see elm_diskselector_item_append()
23994     *
23995     * @ingroup Diskselector
23996     */
23997    EAPI void                  *elm_diskselector_item_data_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
23998
23999    /**
24000     * Set the icon associated to the item.
24001     *
24002     * @param it The diskselector item
24003     * @param icon The icon object to associate with @p it
24004     *
24005     * The icon object to use at left side of the item. An
24006     * icon can be any Evas object, but usually it is an icon created
24007     * with elm_icon_add().
24008     *
24009     * Once the icon object is set, a previously set one will be deleted.
24010     * @warning Setting the same icon for two items will cause the icon to
24011     * dissapear from the first item.
24012     *
24013     * If an icon was passed as argument on item creation, with function
24014     * elm_diskselector_item_append(), it will be already
24015     * associated to the item.
24016     *
24017     * @see elm_diskselector_item_append()
24018     * @see elm_diskselector_item_icon_get()
24019     *
24020     * @ingroup Diskselector
24021     */
24022    EAPI void                   elm_diskselector_item_icon_set(Elm_Diskselector_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
24023
24024    /**
24025     * Get the icon associated to the item.
24026     *
24027     * @param it The diskselector item
24028     * @return The icon associated to @p it
24029     *
24030     * The return value is a pointer to the icon associated to @p item when it was
24031     * created, with function elm_diskselector_item_append(), or later
24032     * with function elm_diskselector_item_icon_set. If no icon
24033     * was passed as argument, it will return @c NULL.
24034     *
24035     * @see elm_diskselector_item_append()
24036     * @see elm_diskselector_item_icon_set()
24037     *
24038     * @ingroup Diskselector
24039     */
24040    EAPI Evas_Object           *elm_diskselector_item_icon_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24041
24042    /**
24043     * Set the label of item.
24044     *
24045     * @param it The item of diskselector.
24046     * @param label The label of item.
24047     *
24048     * The label to be displayed by the item.
24049     *
24050     * If no icon is set, label will be centered on item position, otherwise
24051     * the icon will be placed at left of the label, that will be shifted
24052     * to the right.
24053     *
24054     * An item with label "January" would be displayed on side position as
24055     * "Jan" if max length is set to 3 with function
24056     * elm_diskselector_side_label_lenght_set(), or "Janu", if this property
24057     * is set to 4.
24058     *
24059     * When this @p item is selected, the entire label will be displayed,
24060     * except for width restrictions.
24061     * In this case label will be cropped and "..." will be concatenated,
24062     * but only for display purposes. It will keep the entire string, so
24063     * if diskselector is resized the remaining characters will be displayed.
24064     *
24065     * If a label was passed as argument on item creation, with function
24066     * elm_diskselector_item_append(), it will be already
24067     * displayed by the item.
24068     *
24069     * @see elm_diskselector_side_label_lenght_set()
24070     * @see elm_diskselector_item_label_get()
24071     * @see elm_diskselector_item_append()
24072     *
24073     * @ingroup Diskselector
24074     */
24075    EAPI void                   elm_diskselector_item_label_set(Elm_Diskselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
24076
24077    /**
24078     * Get the label of item.
24079     *
24080     * @param it The item of diskselector.
24081     * @return The label of item.
24082     *
24083     * The return value is a pointer to the label associated to @p item when it was
24084     * created, with function elm_diskselector_item_append(), or later
24085     * with function elm_diskselector_item_label_set. If no label
24086     * was passed as argument, it will return @c NULL.
24087     *
24088     * @see elm_diskselector_item_label_set() for more details.
24089     * @see elm_diskselector_item_append()
24090     *
24091     * @ingroup Diskselector
24092     */
24093    EAPI const char            *elm_diskselector_item_label_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24094
24095    /**
24096     * Get the selected item.
24097     *
24098     * @param obj The diskselector object.
24099     * @return The selected diskselector item.
24100     *
24101     * The selected item can be unselected with function
24102     * elm_diskselector_item_selected_set(), and the first item of
24103     * diskselector will be selected.
24104     *
24105     * The selected item always will be centered on diskselector, with
24106     * full label displayed, i.e., max lenght set to side labels won't
24107     * apply on the selected item. More details on
24108     * elm_diskselector_side_label_length_set().
24109     *
24110     * @ingroup Diskselector
24111     */
24112    EAPI Elm_Diskselector_Item *elm_diskselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24113
24114    /**
24115     * Set the selected state of an item.
24116     *
24117     * @param it The diskselector item
24118     * @param selected The selected state
24119     *
24120     * This sets the selected state of the given item @p it.
24121     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
24122     *
24123     * If a new item is selected the previosly selected will be unselected.
24124     * Previoulsy selected item can be get with function
24125     * elm_diskselector_selected_item_get().
24126     *
24127     * If the item @p it is unselected, the first item of diskselector will
24128     * be selected.
24129     *
24130     * Selected items will be visible on center position of diskselector.
24131     * So if it was on another position before selected, or was invisible,
24132     * diskselector will animate items until the selected item reaches center
24133     * position.
24134     *
24135     * @see elm_diskselector_item_selected_get()
24136     * @see elm_diskselector_selected_item_get()
24137     *
24138     * @ingroup Diskselector
24139     */
24140    EAPI void                   elm_diskselector_item_selected_set(Elm_Diskselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
24141
24142    /*
24143     * Get whether the @p item is selected or not.
24144     *
24145     * @param it The diskselector item.
24146     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
24147     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
24148     *
24149     * @see elm_diskselector_selected_item_set() for details.
24150     * @see elm_diskselector_item_selected_get()
24151     *
24152     * @ingroup Diskselector
24153     */
24154    EAPI Eina_Bool              elm_diskselector_item_selected_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24155
24156    /**
24157     * Get the first item of the diskselector.
24158     *
24159     * @param obj The diskselector object.
24160     * @return The first item, or @c NULL if none.
24161     *
24162     * The list of items follows append order. So it will return the first
24163     * item appended to the widget that wasn't deleted.
24164     *
24165     * @see elm_diskselector_item_append()
24166     * @see elm_diskselector_items_get()
24167     *
24168     * @ingroup Diskselector
24169     */
24170    EAPI Elm_Diskselector_Item *elm_diskselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24171
24172    /**
24173     * Get the last item of the diskselector.
24174     *
24175     * @param obj The diskselector object.
24176     * @return The last item, or @c NULL if none.
24177     *
24178     * The list of items follows append order. So it will return last first
24179     * item appended to the widget that wasn't deleted.
24180     *
24181     * @see elm_diskselector_item_append()
24182     * @see elm_diskselector_items_get()
24183     *
24184     * @ingroup Diskselector
24185     */
24186    EAPI Elm_Diskselector_Item *elm_diskselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24187
24188    /**
24189     * Get the item before @p item in diskselector.
24190     *
24191     * @param it The diskselector item.
24192     * @return The item before @p item, or @c NULL if none or on failure.
24193     *
24194     * The list of items follows append order. So it will return item appended
24195     * just before @p item and that wasn't deleted.
24196     *
24197     * If it is the first item, @c NULL will be returned.
24198     * First item can be get by elm_diskselector_first_item_get().
24199     *
24200     * @see elm_diskselector_item_append()
24201     * @see elm_diskselector_items_get()
24202     *
24203     * @ingroup Diskselector
24204     */
24205    EAPI Elm_Diskselector_Item *elm_diskselector_item_prev_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24206
24207    /**
24208     * Get the item after @p item in diskselector.
24209     *
24210     * @param it The diskselector item.
24211     * @return The item after @p item, or @c NULL if none or on failure.
24212     *
24213     * The list of items follows append order. So it will return item appended
24214     * just after @p item and that wasn't deleted.
24215     *
24216     * If it is the last item, @c NULL will be returned.
24217     * Last item can be get by elm_diskselector_last_item_get().
24218     *
24219     * @see elm_diskselector_item_append()
24220     * @see elm_diskselector_items_get()
24221     *
24222     * @ingroup Diskselector
24223     */
24224    EAPI Elm_Diskselector_Item *elm_diskselector_item_next_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24225
24226    /**
24227     * Set the text to be shown in the diskselector item.
24228     *
24229     * @param item Target item
24230     * @param text The text to set in the content
24231     *
24232     * Setup the text as tooltip to object. The item can have only one tooltip,
24233     * so any previous tooltip data is removed.
24234     *
24235     * @see elm_object_tooltip_text_set() for more details.
24236     *
24237     * @ingroup Diskselector
24238     */
24239    EAPI void                   elm_diskselector_item_tooltip_text_set(Elm_Diskselector_Item *item, const char *text) EINA_ARG_NONNULL(1);
24240
24241    /**
24242     * Set the content to be shown in the tooltip item.
24243     *
24244     * Setup the tooltip to item. The item can have only one tooltip,
24245     * so any previous tooltip data is removed. @p func(with @p data) will
24246     * be called every time that need show the tooltip and it should
24247     * return a valid Evas_Object. This object is then managed fully by
24248     * tooltip system and is deleted when the tooltip is gone.
24249     *
24250     * @param item the diskselector item being attached a tooltip.
24251     * @param func the function used to create the tooltip contents.
24252     * @param data what to provide to @a func as callback data/context.
24253     * @param del_cb called when data is not needed anymore, either when
24254     *        another callback replaces @p func, the tooltip is unset with
24255     *        elm_diskselector_item_tooltip_unset() or the owner @a item
24256     *        dies. This callback receives as the first parameter the
24257     *        given @a data, and @c event_info is the item.
24258     *
24259     * @see elm_object_tooltip_content_cb_set() for more details.
24260     *
24261     * @ingroup Diskselector
24262     */
24263    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);
24264
24265    /**
24266     * Unset tooltip from item.
24267     *
24268     * @param item diskselector item to remove previously set tooltip.
24269     *
24270     * Remove tooltip from item. The callback provided as del_cb to
24271     * elm_diskselector_item_tooltip_content_cb_set() will be called to notify
24272     * it is not used anymore.
24273     *
24274     * @see elm_object_tooltip_unset() for more details.
24275     * @see elm_diskselector_item_tooltip_content_cb_set()
24276     *
24277     * @ingroup Diskselector
24278     */
24279    EAPI void                   elm_diskselector_item_tooltip_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24280
24281
24282    /**
24283     * Sets a different style for this item tooltip.
24284     *
24285     * @note before you set a style you should define a tooltip with
24286     *       elm_diskselector_item_tooltip_content_cb_set() or
24287     *       elm_diskselector_item_tooltip_text_set()
24288     *
24289     * @param item diskselector item with tooltip already set.
24290     * @param style the theme style to use (default, transparent, ...)
24291     *
24292     * @see elm_object_tooltip_style_set() for more details.
24293     *
24294     * @ingroup Diskselector
24295     */
24296    EAPI void                   elm_diskselector_item_tooltip_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
24297
24298    /**
24299     * Get the style for this item tooltip.
24300     *
24301     * @param item diskselector item with tooltip already set.
24302     * @return style the theme style in use, defaults to "default". If the
24303     *         object does not have a tooltip set, then NULL is returned.
24304     *
24305     * @see elm_object_tooltip_style_get() for more details.
24306     * @see elm_diskselector_item_tooltip_style_set()
24307     *
24308     * @ingroup Diskselector
24309     */
24310    EAPI const char            *elm_diskselector_item_tooltip_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24311
24312    /**
24313     * Set the cursor to be shown when mouse is over the diskselector item
24314     *
24315     * @param item Target item
24316     * @param cursor the cursor name to be used.
24317     *
24318     * @see elm_object_cursor_set() for more details.
24319     *
24320     * @ingroup Diskselector
24321     */
24322    EAPI void                   elm_diskselector_item_cursor_set(Elm_Diskselector_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
24323
24324    /**
24325     * Get the cursor to be shown when mouse is over the diskselector item
24326     *
24327     * @param item diskselector item with cursor already set.
24328     * @return the cursor name.
24329     *
24330     * @see elm_object_cursor_get() for more details.
24331     * @see elm_diskselector_cursor_set()
24332     *
24333     * @ingroup Diskselector
24334     */
24335    EAPI const char            *elm_diskselector_item_cursor_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24336
24337
24338    /**
24339     * Unset the cursor to be shown when mouse is over the diskselector item
24340     *
24341     * @param item Target item
24342     *
24343     * @see elm_object_cursor_unset() for more details.
24344     * @see elm_diskselector_cursor_set()
24345     *
24346     * @ingroup Diskselector
24347     */
24348    EAPI void                   elm_diskselector_item_cursor_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24349
24350    /**
24351     * Sets a different style for this item cursor.
24352     *
24353     * @note before you set a style you should define a cursor with
24354     *       elm_diskselector_item_cursor_set()
24355     *
24356     * @param item diskselector item with cursor already set.
24357     * @param style the theme style to use (default, transparent, ...)
24358     *
24359     * @see elm_object_cursor_style_set() for more details.
24360     *
24361     * @ingroup Diskselector
24362     */
24363    EAPI void                   elm_diskselector_item_cursor_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
24364
24365
24366    /**
24367     * Get the style for this item cursor.
24368     *
24369     * @param item diskselector item with cursor already set.
24370     * @return style the theme style in use, defaults to "default". If the
24371     *         object does not have a cursor set, then @c NULL is returned.
24372     *
24373     * @see elm_object_cursor_style_get() for more details.
24374     * @see elm_diskselector_item_cursor_style_set()
24375     *
24376     * @ingroup Diskselector
24377     */
24378    EAPI const char            *elm_diskselector_item_cursor_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24379
24380
24381    /**
24382     * Set if the cursor set should be searched on the theme or should use
24383     * the provided by the engine, only.
24384     *
24385     * @note before you set if should look on theme you should define a cursor
24386     * with elm_diskselector_item_cursor_set().
24387     * By default it will only look for cursors provided by the engine.
24388     *
24389     * @param item widget item with cursor already set.
24390     * @param engine_only boolean to define if cursors set with
24391     * elm_diskselector_item_cursor_set() should be searched only
24392     * between cursors provided by the engine or searched on widget's
24393     * theme as well.
24394     *
24395     * @see elm_object_cursor_engine_only_set() for more details.
24396     *
24397     * @ingroup Diskselector
24398     */
24399    EAPI void                   elm_diskselector_item_cursor_engine_only_set(Elm_Diskselector_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
24400
24401    /**
24402     * Get the cursor engine only usage for this item cursor.
24403     *
24404     * @param item widget item with cursor already set.
24405     * @return engine_only boolean to define it cursors should be looked only
24406     * between the provided by the engine or searched on widget's theme as well.
24407     * If the item does not have a cursor set, then @c EINA_FALSE is returned.
24408     *
24409     * @see elm_object_cursor_engine_only_get() for more details.
24410     * @see elm_diskselector_item_cursor_engine_only_set()
24411     *
24412     * @ingroup Diskselector
24413     */
24414    EAPI Eina_Bool              elm_diskselector_item_cursor_engine_only_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24415
24416    /**
24417     * @}
24418     */
24419
24420    /**
24421     * @defgroup Colorselector Colorselector
24422     *
24423     * @{
24424     *
24425     * @image html img/widget/colorselector/preview-00.png
24426     * @image latex img/widget/colorselector/preview-00.eps
24427     *
24428     * @brief Widget for user to select a color.
24429     *
24430     * Signals that you can add callbacks for are:
24431     * "changed" - When the color value changes(event_info is NULL).
24432     *
24433     * See @ref tutorial_colorselector.
24434     */
24435    /**
24436     * @brief Add a new colorselector to the parent
24437     *
24438     * @param parent The parent object
24439     * @return The new object or NULL if it cannot be created
24440     *
24441     * @ingroup Colorselector
24442     */
24443    EAPI Evas_Object *elm_colorselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24444    /**
24445     * Set a color for the colorselector
24446     *
24447     * @param obj   Colorselector object
24448     * @param r     r-value of color
24449     * @param g     g-value of color
24450     * @param b     b-value of color
24451     * @param a     a-value of color
24452     *
24453     * @ingroup Colorselector
24454     */
24455    EAPI void         elm_colorselector_color_set(Evas_Object *obj, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
24456    /**
24457     * Get a color from the colorselector
24458     *
24459     * @param obj   Colorselector object
24460     * @param r     integer pointer for r-value of color
24461     * @param g     integer pointer for g-value of color
24462     * @param b     integer pointer for b-value of color
24463     * @param a     integer pointer for a-value of color
24464     *
24465     * @ingroup Colorselector
24466     */
24467    EAPI void         elm_colorselector_color_get(const Evas_Object *obj, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
24468    /**
24469     * @}
24470     */
24471
24472    /**
24473     * @defgroup Ctxpopup Ctxpopup
24474     *
24475     * @image html img/widget/ctxpopup/preview-00.png
24476     * @image latex img/widget/ctxpopup/preview-00.eps
24477     *
24478     * @brief Context popup widet.
24479     *
24480     * A ctxpopup is a widget that, when shown, pops up a list of items.
24481     * It automatically chooses an area inside its parent object's view
24482     * (set via elm_ctxpopup_add() and elm_ctxpopup_hover_parent_set()) to
24483     * optimally fit into it. In the default theme, it will also point an
24484     * arrow to it's top left position at the time one shows it. Ctxpopup
24485     * items have a label and/or an icon. It is intended for a small
24486     * number of items (hence the use of list, not genlist).
24487     *
24488     * @note Ctxpopup is a especialization of @ref Hover.
24489     *
24490     * Signals that you can add callbacks for are:
24491     * "dismissed" - the ctxpopup was dismissed
24492     *
24493     * @ref tutorial_ctxpopup shows the usage of a good deal of the API.
24494     * @{
24495     */
24496    typedef struct _Elm_Ctxpopup_Item Elm_Ctxpopup_Item;
24497
24498    typedef enum _Elm_Ctxpopup_Direction
24499      {
24500         ELM_CTXPOPUP_DIRECTION_DOWN, /**< ctxpopup show appear below clicked
24501                                           area */
24502         ELM_CTXPOPUP_DIRECTION_RIGHT, /**< ctxpopup show appear to the right of
24503                                            the clicked area */
24504         ELM_CTXPOPUP_DIRECTION_LEFT, /**< ctxpopup show appear to the left of
24505                                           the clicked area */
24506         ELM_CTXPOPUP_DIRECTION_UP, /**< ctxpopup show appear above the clicked
24507                                         area */
24508      } Elm_Ctxpopup_Direction;
24509
24510    /**
24511     * @brief Add a new Ctxpopup object to the parent.
24512     *
24513     * @param parent Parent object
24514     * @return New object or @c NULL, if it cannot be created
24515     */
24516    EAPI Evas_Object  *elm_ctxpopup_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24517    /**
24518     * @brief Set the Ctxpopup's parent
24519     *
24520     * @param obj The ctxpopup object
24521     * @param area The parent to use
24522     *
24523     * Set the parent object.
24524     *
24525     * @note elm_ctxpopup_add() will automatically call this function
24526     * with its @c parent argument.
24527     *
24528     * @see elm_ctxpopup_add()
24529     * @see elm_hover_parent_set()
24530     */
24531    EAPI void          elm_ctxpopup_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1, 2);
24532    /**
24533     * @brief Get the Ctxpopup's parent
24534     *
24535     * @param obj The ctxpopup object
24536     *
24537     * @see elm_ctxpopup_hover_parent_set() for more information
24538     */
24539    EAPI Evas_Object  *elm_ctxpopup_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24540    /**
24541     * @brief Clear all items in the given ctxpopup object.
24542     *
24543     * @param obj Ctxpopup object
24544     */
24545    EAPI void          elm_ctxpopup_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
24546    /**
24547     * @brief Change the ctxpopup's orientation to horizontal or vertical.
24548     *
24549     * @param obj Ctxpopup object
24550     * @param horizontal @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical
24551     */
24552    EAPI void          elm_ctxpopup_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
24553    /**
24554     * @brief Get the value of current ctxpopup object's orientation.
24555     *
24556     * @param obj Ctxpopup object
24557     * @return @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical mode (or errors)
24558     *
24559     * @see elm_ctxpopup_horizontal_set()
24560     */
24561    EAPI Eina_Bool     elm_ctxpopup_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24562    /**
24563     * @brief Add a new item to a ctxpopup object.
24564     *
24565     * @param obj Ctxpopup object
24566     * @param icon Icon to be set on new item
24567     * @param label The Label of the new item
24568     * @param func Convenience function called when item selected
24569     * @param data Data passed to @p func
24570     * @return A handle to the item added or @c NULL, on errors
24571     *
24572     * @warning Ctxpopup can't hold both an item list and a content at the same
24573     * time. When an item is added, any previous content will be removed.
24574     *
24575     * @see elm_ctxpopup_content_set()
24576     */
24577    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);
24578    /**
24579     * @brief Delete the given item in a ctxpopup object.
24580     *
24581     * @param item Ctxpopup item to be deleted
24582     *
24583     * @see elm_ctxpopup_item_append()
24584     */
24585    EAPI void          elm_ctxpopup_item_del(Elm_Ctxpopup_Item *it) EINA_ARG_NONNULL(1);
24586    /**
24587     * @brief Set the ctxpopup item's state as disabled or enabled.
24588     *
24589     * @param item Ctxpopup item to be enabled/disabled
24590     * @param disabled @c EINA_TRUE to disable it, @c EINA_FALSE to enable it
24591     *
24592     * When disabled the item is greyed out to indicate it's state.
24593     */
24594    EAPI void          elm_ctxpopup_item_disabled_set(Elm_Ctxpopup_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
24595    /**
24596     * @brief Get the ctxpopup item's disabled/enabled state.
24597     *
24598     * @param item Ctxpopup item to be enabled/disabled
24599     * @return disabled @c EINA_TRUE, if disabled, @c EINA_FALSE otherwise
24600     *
24601     * @see elm_ctxpopup_item_disabled_set()
24602     */
24603    EAPI Eina_Bool     elm_ctxpopup_item_disabled_get(const Elm_Ctxpopup_Item *item) EINA_ARG_NONNULL(1);
24604    /**
24605     * @brief Get the icon object for the given ctxpopup item.
24606     *
24607     * @param item Ctxpopup item
24608     * @return icon object or @c NULL, if the item does not have icon or an error
24609     * occurred
24610     *
24611     * @see elm_ctxpopup_item_append()
24612     * @see elm_ctxpopup_item_icon_set()
24613     */
24614    EAPI Evas_Object  *elm_ctxpopup_item_icon_get(const Elm_Ctxpopup_Item *item) EINA_ARG_NONNULL(1);
24615    /**
24616     * @brief Sets the side icon associated with the ctxpopup item
24617     *
24618     * @param item Ctxpopup item
24619     * @param icon Icon object to be set
24620     *
24621     * Once the icon object is set, a previously set one will be deleted.
24622     * @warning Setting the same icon for two items will cause the icon to
24623     * dissapear from the first item.
24624     *
24625     * @see elm_ctxpopup_item_append()
24626     */
24627    EAPI void          elm_ctxpopup_item_icon_set(Elm_Ctxpopup_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
24628    /**
24629     * @brief Get the label for the given ctxpopup item.
24630     *
24631     * @param item Ctxpopup item
24632     * @return label string or @c NULL, if the item does not have label or an
24633     * error occured
24634     *
24635     * @see elm_ctxpopup_item_append()
24636     * @see elm_ctxpopup_item_label_set()
24637     */
24638    EAPI const char   *elm_ctxpopup_item_label_get(const Elm_Ctxpopup_Item *item) EINA_ARG_NONNULL(1);
24639    /**
24640     * @brief (Re)set the label on the given ctxpopup item.
24641     *
24642     * @param item Ctxpopup item
24643     * @param label String to set as label
24644     */
24645    EAPI void          elm_ctxpopup_item_label_set(Elm_Ctxpopup_Item *item, const char *label) EINA_ARG_NONNULL(1);
24646    /**
24647     * @brief Set an elm widget as the content of the ctxpopup.
24648     *
24649     * @param obj Ctxpopup object
24650     * @param content Content to be swallowed
24651     *
24652     * If the content object is already set, a previous one will bedeleted. If
24653     * you want to keep that old content object, use the
24654     * elm_ctxpopup_content_unset() function.
24655     *
24656     * @deprecated use elm_object_content_set()
24657     *
24658     * @warning Ctxpopup can't hold both a item list and a content at the same
24659     * time. When a content is set, any previous items will be removed.
24660     */
24661    EINA_DEPRECATED EAPI void          elm_ctxpopup_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1, 2);
24662    /**
24663     * @brief Unset the ctxpopup content
24664     *
24665     * @param obj Ctxpopup object
24666     * @return The content that was being used
24667     *
24668     * Unparent and return the content object which was set for this widget.
24669     *
24670     * @deprecated use elm_object_content_unset()
24671     *
24672     * @see elm_ctxpopup_content_set()
24673     */
24674    EINA_DEPRECATED EAPI Evas_Object  *elm_ctxpopup_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
24675    /**
24676     * @brief Set the direction priority of a ctxpopup.
24677     *
24678     * @param obj Ctxpopup object
24679     * @param first 1st priority of direction
24680     * @param second 2nd priority of direction
24681     * @param third 3th priority of direction
24682     * @param fourth 4th priority of direction
24683     *
24684     * This functions gives a chance to user to set the priority of ctxpopup
24685     * showing direction. This doesn't guarantee the ctxpopup will appear in the
24686     * requested direction.
24687     *
24688     * @see Elm_Ctxpopup_Direction
24689     */
24690    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);
24691    /**
24692     * @brief Get the direction priority of a ctxpopup.
24693     *
24694     * @param obj Ctxpopup object
24695     * @param first 1st priority of direction to be returned
24696     * @param second 2nd priority of direction to be returned
24697     * @param third 3th priority of direction to be returned
24698     * @param fourth 4th priority of direction to be returned
24699     *
24700     * @see elm_ctxpopup_direction_priority_set() for more information.
24701     */
24702    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);
24703    /**
24704     * @}
24705     */
24706
24707    /* transit */
24708    /**
24709     *
24710     * @defgroup Transit Transit
24711     * @ingroup Elementary
24712     *
24713     * Transit is designed to apply various animated transition effects to @c
24714     * Evas_Object, such like translation, rotation, etc. For using these
24715     * effects, create an @ref Elm_Transit and add the desired transition effects.
24716     *
24717     * Once the effects are added into transit, they will be automatically
24718     * managed (their callback will be called until the duration is ended, and
24719     * they will be deleted on completion).
24720     *
24721     * Example:
24722     * @code
24723     * Elm_Transit *trans = elm_transit_add();
24724     * elm_transit_object_add(trans, obj);
24725     * elm_transit_effect_translation_add(trans, 0, 0, 280, 280
24726     * elm_transit_duration_set(transit, 1);
24727     * elm_transit_auto_reverse_set(transit, EINA_TRUE);
24728     * elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
24729     * elm_transit_repeat_times_set(transit, 3);
24730     * @endcode
24731     *
24732     * Some transition effects are used to change the properties of objects. They
24733     * are:
24734     * @li @ref elm_transit_effect_translation_add
24735     * @li @ref elm_transit_effect_color_add
24736     * @li @ref elm_transit_effect_rotation_add
24737     * @li @ref elm_transit_effect_wipe_add
24738     * @li @ref elm_transit_effect_zoom_add
24739     * @li @ref elm_transit_effect_resizing_add
24740     *
24741     * Other transition effects are used to make one object disappear and another
24742     * object appear on its old place. These effects are:
24743     *
24744     * @li @ref elm_transit_effect_flip_add
24745     * @li @ref elm_transit_effect_resizable_flip_add
24746     * @li @ref elm_transit_effect_fade_add
24747     * @li @ref elm_transit_effect_blend_add
24748     *
24749     * It's also possible to make a transition chain with @ref
24750     * elm_transit_chain_transit_add.
24751     *
24752     * @warning We strongly recommend to use elm_transit just when edje can not do
24753     * the trick. Edje has more advantage than Elm_Transit, it has more flexibility and
24754     * animations can be manipulated inside the theme.
24755     *
24756     * List of examples:
24757     * @li @ref transit_example_01_explained
24758     * @li @ref transit_example_02_explained
24759     * @li @ref transit_example_03_c
24760     * @li @ref transit_example_04_c
24761     *
24762     * @{
24763     */
24764
24765    /**
24766     * @enum Elm_Transit_Tween_Mode
24767     *
24768     * The type of acceleration used in the transition.
24769     */
24770    typedef enum
24771      {
24772         ELM_TRANSIT_TWEEN_MODE_LINEAR, /**< Constant speed */
24773         ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL, /**< Starts slow, increase speed
24774                                              over time, then decrease again
24775                                              and stop slowly */
24776         ELM_TRANSIT_TWEEN_MODE_DECELERATE, /**< Starts fast and decrease
24777                                              speed over time */
24778         ELM_TRANSIT_TWEEN_MODE_ACCELERATE /**< Starts slow and increase speed
24779                                             over time */
24780      } Elm_Transit_Tween_Mode;
24781
24782    /**
24783     * @enum Elm_Transit_Effect_Flip_Axis
24784     *
24785     * The axis where flip effect should be applied.
24786     */
24787    typedef enum
24788      {
24789         ELM_TRANSIT_EFFECT_FLIP_AXIS_X, /**< Flip on X axis */
24790         ELM_TRANSIT_EFFECT_FLIP_AXIS_Y /**< Flip on Y axis */
24791      } Elm_Transit_Effect_Flip_Axis;
24792    /**
24793     * @enum Elm_Transit_Effect_Wipe_Dir
24794     *
24795     * The direction where the wipe effect should occur.
24796     */
24797    typedef enum
24798      {
24799         ELM_TRANSIT_EFFECT_WIPE_DIR_LEFT, /**< Wipe to the left */
24800         ELM_TRANSIT_EFFECT_WIPE_DIR_RIGHT, /**< Wipe to the right */
24801         ELM_TRANSIT_EFFECT_WIPE_DIR_UP, /**< Wipe up */
24802         ELM_TRANSIT_EFFECT_WIPE_DIR_DOWN /**< Wipe down */
24803      } Elm_Transit_Effect_Wipe_Dir;
24804    /** @enum Elm_Transit_Effect_Wipe_Type
24805     *
24806     * Whether the wipe effect should show or hide the object.
24807     */
24808    typedef enum
24809      {
24810         ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE, /**< Hide the object during the
24811                                              animation */
24812         ELM_TRANSIT_EFFECT_WIPE_TYPE_SHOW /**< Show the object during the
24813                                             animation */
24814      } Elm_Transit_Effect_Wipe_Type;
24815
24816    /**
24817     * @typedef Elm_Transit
24818     *
24819     * The Transit created with elm_transit_add(). This type has the information
24820     * about the objects which the transition will be applied, and the
24821     * transition effects that will be used. It also contains info about
24822     * duration, number of repetitions, auto-reverse, etc.
24823     */
24824    typedef struct _Elm_Transit Elm_Transit;
24825    typedef void Elm_Transit_Effect;
24826    /**
24827     * @typedef Elm_Transit_Effect_Transition_Cb
24828     *
24829     * Transition callback called for this effect on each transition iteration.
24830     */
24831    typedef void (*Elm_Transit_Effect_Transition_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit, double progress);
24832    /**
24833     * Elm_Transit_Effect_End_Cb
24834     *
24835     * Transition callback called for this effect when the transition is over.
24836     */
24837    typedef void (*Elm_Transit_Effect_End_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit);
24838
24839    /**
24840     * Elm_Transit_Del_Cb
24841     *
24842     * A callback called when the transit is deleted.
24843     */
24844    typedef void (*Elm_Transit_Del_Cb) (void *data, Elm_Transit *transit);
24845
24846    /**
24847     * Add new transit.
24848     *
24849     * @note Is not necessary to delete the transit object, it will be deleted at
24850     * the end of its operation.
24851     * @note The transit will start playing when the program enter in the main loop, is not
24852     * necessary to give a start to the transit.
24853     *
24854     * @return The transit object.
24855     *
24856     * @ingroup Transit
24857     */
24858    EAPI Elm_Transit                *elm_transit_add(void);
24859
24860    /**
24861     * Stops the animation and delete the @p transit object.
24862     *
24863     * Call this function if you wants to stop the animation before the duration
24864     * time. Make sure the @p transit object is still alive with
24865     * elm_transit_del_cb_set() function.
24866     * All added effects will be deleted, calling its repective data_free_cb
24867     * functions. The function setted by elm_transit_del_cb_set() will be called.
24868     *
24869     * @see elm_transit_del_cb_set()
24870     *
24871     * @param transit The transit object to be deleted.
24872     *
24873     * @ingroup Transit
24874     * @warning Just call this function if you are sure the transit is alive.
24875     */
24876    EAPI void                        elm_transit_del(Elm_Transit *transit) EINA_ARG_NONNULL(1);
24877
24878    /**
24879     * Add a new effect to the transit.
24880     *
24881     * @note The cb function and the data are the key to the effect. If you try to
24882     * add an already added effect, nothing is done.
24883     * @note After the first addition of an effect in @p transit, if its
24884     * effect list become empty again, the @p transit will be killed by
24885     * elm_transit_del(transit) function.
24886     *
24887     * Exemple:
24888     * @code
24889     * Elm_Transit *transit = elm_transit_add();
24890     * elm_transit_effect_add(transit,
24891     *                        elm_transit_effect_blend_op,
24892     *                        elm_transit_effect_blend_context_new(),
24893     *                        elm_transit_effect_blend_context_free);
24894     * @endcode
24895     *
24896     * @param transit The transit object.
24897     * @param transition_cb The operation function. It is called when the
24898     * animation begins, it is the function that actually performs the animation.
24899     * It is called with the @p data, @p transit and the time progression of the
24900     * animation (a double value between 0.0 and 1.0).
24901     * @param effect The context data of the effect.
24902     * @param end_cb The function to free the context data, it will be called
24903     * at the end of the effect, it must finalize the animation and free the
24904     * @p data.
24905     *
24906     * @ingroup Transit
24907     * @warning The transit free the context data at the and of the transition with
24908     * the data_free_cb function, do not use the context data in another transit.
24909     */
24910    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);
24911
24912    /**
24913     * Delete an added effect.
24914     *
24915     * This function will remove the effect from the @p transit, calling the
24916     * data_free_cb to free the @p data.
24917     *
24918     * @see elm_transit_effect_add()
24919     *
24920     * @note If the effect is not found, nothing is done.
24921     * @note If the effect list become empty, this function will call
24922     * elm_transit_del(transit), that is, it will kill the @p transit.
24923     *
24924     * @param transit The transit object.
24925     * @param transition_cb The operation function.
24926     * @param effect The context data of the effect.
24927     *
24928     * @ingroup Transit
24929     */
24930    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);
24931
24932    /**
24933     * Add new object to apply the effects.
24934     *
24935     * @note After the first addition of an object in @p transit, if its
24936     * object list become empty again, the @p transit will be killed by
24937     * elm_transit_del(transit) function.
24938     * @note If the @p obj belongs to another transit, the @p obj will be
24939     * removed from it and it will only belong to the @p transit. If the old
24940     * transit stays without objects, it will die.
24941     * @note When you add an object into the @p transit, its state from
24942     * evas_object_pass_events_get(obj) is saved, and it is applied when the
24943     * transit ends, if you change this state whith evas_object_pass_events_set()
24944     * after add the object, this state will change again when @p transit stops to
24945     * run.
24946     *
24947     * @param transit The transit object.
24948     * @param obj Object to be animated.
24949     *
24950     * @ingroup Transit
24951     * @warning It is not allowed to add a new object after transit begins to go.
24952     */
24953    EAPI void                        elm_transit_object_add(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
24954
24955    /**
24956     * Removes an added object from the transit.
24957     *
24958     * @note If the @p obj is not in the @p transit, nothing is done.
24959     * @note If the list become empty, this function will call
24960     * elm_transit_del(transit), that is, it will kill the @p transit.
24961     *
24962     * @param transit The transit object.
24963     * @param obj Object to be removed from @p transit.
24964     *
24965     * @ingroup Transit
24966     * @warning It is not allowed to remove objects after transit begins to go.
24967     */
24968    EAPI void                        elm_transit_object_remove(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
24969
24970    /**
24971     * Get the objects of the transit.
24972     *
24973     * @param transit The transit object.
24974     * @return a Eina_List with the objects from the transit.
24975     *
24976     * @ingroup Transit
24977     */
24978    EAPI const Eina_List            *elm_transit_objects_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
24979
24980    /**
24981     * Enable/disable keeping up the objects states.
24982     * If it is not kept, the objects states will be reset when transition ends.
24983     *
24984     * @note @p transit can not be NULL.
24985     * @note One state includes geometry, color, map data.
24986     *
24987     * @param transit The transit object.
24988     * @param state_keep Keeping or Non Keeping.
24989     *
24990     * @ingroup Transit
24991     */
24992    EAPI void                        elm_transit_objects_final_state_keep_set(Elm_Transit *transit, Eina_Bool state_keep) EINA_ARG_NONNULL(1);
24993
24994    /**
24995     * Get a value whether the objects states will be reset or not.
24996     *
24997     * @note @p transit can not be NULL
24998     *
24999     * @see elm_transit_objects_final_state_keep_set()
25000     *
25001     * @param transit The transit object.
25002     * @return EINA_TRUE means the states of the objects will be reset.
25003     * If @p transit is NULL, EINA_FALSE is returned
25004     *
25005     * @ingroup Transit
25006     */
25007    EAPI Eina_Bool                   elm_transit_objects_final_state_keep_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25008
25009    /**
25010     * Set the event enabled when transit is operating.
25011     *
25012     * If @p enabled is EINA_TRUE, the objects of the transit will receives
25013     * events from mouse and keyboard during the animation.
25014     * @note When you add an object with elm_transit_object_add(), its state from
25015     * evas_object_pass_events_get(obj) is saved, and it is applied when the
25016     * transit ends, if you change this state with evas_object_pass_events_set()
25017     * after adding the object, this state will change again when @p transit stops
25018     * to run.
25019     *
25020     * @param transit The transit object.
25021     * @param enabled Events are received when enabled is @c EINA_TRUE, and
25022     * ignored otherwise.
25023     *
25024     * @ingroup Transit
25025     */
25026    EAPI void                        elm_transit_event_enabled_set(Elm_Transit *transit, Eina_Bool enabled) EINA_ARG_NONNULL(1);
25027
25028    /**
25029     * Get the value of event enabled status.
25030     *
25031     * @see elm_transit_event_enabled_set()
25032     *
25033     * @param transit The Transit object
25034     * @return EINA_TRUE, when event is enabled. If @p transit is NULL
25035     * EINA_FALSE is returned
25036     *
25037     * @ingroup Transit
25038     */
25039    EAPI Eina_Bool                   elm_transit_event_enabled_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25040
25041    /**
25042     * Set the user-callback function when the transit is deleted.
25043     *
25044     * @note Using this function twice will overwrite the first function setted.
25045     * @note the @p transit object will be deleted after call @p cb function.
25046     *
25047     * @param transit The transit object.
25048     * @param cb Callback function pointer. This function will be called before
25049     * the deletion of the transit.
25050     * @param data Callback funtion user data. It is the @p op parameter.
25051     *
25052     * @ingroup Transit
25053     */
25054    EAPI void                        elm_transit_del_cb_set(Elm_Transit *transit, Elm_Transit_Del_Cb cb, void *data) EINA_ARG_NONNULL(1);
25055
25056    /**
25057     * Set reverse effect automatically.
25058     *
25059     * If auto reverse is setted, after running the effects with the progress
25060     * parameter from 0 to 1, it will call the effecs again with the progress
25061     * from 1 to 0. The transit will last for a time iqual to (2 * duration * repeat),
25062     * where the duration was setted with the function elm_transit_add and
25063     * the repeat with the function elm_transit_repeat_times_set().
25064     *
25065     * @param transit The transit object.
25066     * @param reverse EINA_TRUE means the auto_reverse is on.
25067     *
25068     * @ingroup Transit
25069     */
25070    EAPI void                        elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse) EINA_ARG_NONNULL(1);
25071
25072    /**
25073     * Get if the auto reverse is on.
25074     *
25075     * @see elm_transit_auto_reverse_set()
25076     *
25077     * @param transit The transit object.
25078     * @return EINA_TRUE means auto reverse is on. If @p transit is NULL
25079     * EINA_FALSE is returned
25080     *
25081     * @ingroup Transit
25082     */
25083    EAPI Eina_Bool                   elm_transit_auto_reverse_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25084
25085    /**
25086     * Set the transit repeat count. Effect will be repeated by repeat count.
25087     *
25088     * This function sets the number of repetition the transit will run after
25089     * the first one, that is, if @p repeat is 1, the transit will run 2 times.
25090     * If the @p repeat is a negative number, it will repeat infinite times.
25091     *
25092     * @note If this function is called during the transit execution, the transit
25093     * will run @p repeat times, ignoring the times it already performed.
25094     *
25095     * @param transit The transit object
25096     * @param repeat Repeat count
25097     *
25098     * @ingroup Transit
25099     */
25100    EAPI void                        elm_transit_repeat_times_set(Elm_Transit *transit, int repeat) EINA_ARG_NONNULL(1);
25101
25102    /**
25103     * Get the transit repeat count.
25104     *
25105     * @see elm_transit_repeat_times_set()
25106     *
25107     * @param transit The Transit object.
25108     * @return The repeat count. If @p transit is NULL
25109     * 0 is returned
25110     *
25111     * @ingroup Transit
25112     */
25113    EAPI int                         elm_transit_repeat_times_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25114
25115    /**
25116     * Set the transit animation acceleration type.
25117     *
25118     * This function sets the tween mode of the transit that can be:
25119     * ELM_TRANSIT_TWEEN_MODE_LINEAR - The default mode.
25120     * ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL - Starts in accelerate mode and ends decelerating.
25121     * ELM_TRANSIT_TWEEN_MODE_DECELERATE - The animation will be slowed over time.
25122     * ELM_TRANSIT_TWEEN_MODE_ACCELERATE - The animation will accelerate over time.
25123     *
25124     * @param transit The transit object.
25125     * @param tween_mode The tween type.
25126     *
25127     * @ingroup Transit
25128     */
25129    EAPI void                        elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mode) EINA_ARG_NONNULL(1);
25130
25131    /**
25132     * Get the transit animation acceleration type.
25133     *
25134     * @note @p transit can not be NULL
25135     *
25136     * @param transit The transit object.
25137     * @return The tween type. If @p transit is NULL
25138     * ELM_TRANSIT_TWEEN_MODE_LINEAR is returned.
25139     *
25140     * @ingroup Transit
25141     */
25142    EAPI Elm_Transit_Tween_Mode      elm_transit_tween_mode_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25143
25144    /**
25145     * Set the transit animation time
25146     *
25147     * @note @p transit can not be NULL
25148     *
25149     * @param transit The transit object.
25150     * @param duration The animation time.
25151     *
25152     * @ingroup Transit
25153     */
25154    EAPI void                        elm_transit_duration_set(Elm_Transit *transit, double duration) EINA_ARG_NONNULL(1);
25155
25156    /**
25157     * Get the transit animation time
25158     *
25159     * @note @p transit can not be NULL
25160     *
25161     * @param transit The transit object.
25162     *
25163     * @return The transit animation time.
25164     *
25165     * @ingroup Transit
25166     */
25167    EAPI double                      elm_transit_duration_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25168
25169    /**
25170     * Starts the transition.
25171     * Once this API is called, the transit begins to measure the time.
25172     *
25173     * @note @p transit can not be NULL
25174     *
25175     * @param transit The transit object.
25176     *
25177     * @ingroup Transit
25178     */
25179    EAPI void                        elm_transit_go(Elm_Transit *transit) EINA_ARG_NONNULL(1);
25180
25181    /**
25182     * Pause/Resume the transition.
25183     *
25184     * If you call elm_transit_go again, the transit will be started from the
25185     * beginning, and will be unpaused.
25186     *
25187     * @note @p transit can not be NULL
25188     *
25189     * @param transit The transit object.
25190     * @param paused Whether the transition should be paused or not.
25191     *
25192     * @ingroup Transit
25193     */
25194    EAPI void                        elm_transit_paused_set(Elm_Transit *transit, Eina_Bool paused) EINA_ARG_NONNULL(1);
25195
25196    /**
25197     * Get the value of paused status.
25198     *
25199     * @see elm_transit_paused_set()
25200     *
25201     * @note @p transit can not be NULL
25202     *
25203     * @param transit The transit object.
25204     * @return EINA_TRUE means transition is paused. If @p transit is NULL
25205     * EINA_FALSE is returned
25206     *
25207     * @ingroup Transit
25208     */
25209    EAPI Eina_Bool                   elm_transit_paused_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25210
25211    /**
25212     * Get the time progression of the animation (a double value between 0.0 and 1.0).
25213     *
25214     * The value returned is a fraction (current time / total time). It
25215     * represents the progression position relative to the total.
25216     *
25217     * @note @p transit can not be NULL
25218     *
25219     * @param transit The transit object.
25220     *
25221     * @return The time progression value. If @p transit is NULL
25222     * 0 is returned
25223     *
25224     * @ingroup Transit
25225     */
25226    EAPI double                      elm_transit_progress_value_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25227
25228    /**
25229     * Makes the chain relationship between two transits.
25230     *
25231     * @note @p transit can not be NULL. Transit would have multiple chain transits.
25232     * @note @p chain_transit can not be NULL. Chain transits could be chained to the only one transit.
25233     *
25234     * @param transit The transit object.
25235     * @param chain_transit The chain transit object. This transit will be operated
25236     *        after transit is done.
25237     *
25238     * This function adds @p chain_transit transition to a chain after the @p
25239     * transit, and will be started as soon as @p transit ends. See @ref
25240     * transit_example_02_explained for a full example.
25241     *
25242     * @ingroup Transit
25243     */
25244    EAPI void                        elm_transit_chain_transit_add(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1, 2);
25245
25246    /**
25247     * Cut off the chain relationship between two transits.
25248     *
25249     * @note @p transit can not be NULL. Transit would have the chain relationship with @p chain transit.
25250     * @note @p chain_transit can not be NULL. Chain transits should be chained to the @p transit.
25251     *
25252     * @param transit The transit object.
25253     * @param chain_transit The chain transit object.
25254     *
25255     * This function remove the @p chain_transit transition from the @p transit.
25256     *
25257     * @ingroup Transit
25258     */
25259    EAPI void                        elm_transit_chain_transit_del(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1,2);
25260
25261    /**
25262     * Get the current chain transit list.
25263     *
25264     * @note @p transit can not be NULL.
25265     *
25266     * @param transit The transit object.
25267     * @return chain transit list.
25268     *
25269     * @ingroup Transit
25270     */
25271    EAPI Eina_List                  *elm_transit_chain_transits_get(const Elm_Transit *transit);
25272
25273    /**
25274     * Add the Resizing Effect to Elm_Transit.
25275     *
25276     * @note This API is one of the facades. It creates resizing effect context
25277     * and add it's required APIs to elm_transit_effect_add.
25278     *
25279     * @see elm_transit_effect_add()
25280     *
25281     * @param transit Transit object.
25282     * @param from_w Object width size when effect begins.
25283     * @param from_h Object height size when effect begins.
25284     * @param to_w Object width size when effect ends.
25285     * @param to_h Object height size when effect ends.
25286     * @return Resizing effect context data.
25287     *
25288     * @ingroup Transit
25289     */
25290    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);
25291
25292    /**
25293     * Add the Translation Effect to Elm_Transit.
25294     *
25295     * @note This API is one of the facades. It creates translation effect context
25296     * and add it's required APIs to elm_transit_effect_add.
25297     *
25298     * @see elm_transit_effect_add()
25299     *
25300     * @param transit Transit object.
25301     * @param from_dx X Position variation when effect begins.
25302     * @param from_dy Y Position variation when effect begins.
25303     * @param to_dx X Position variation when effect ends.
25304     * @param to_dy Y Position variation when effect ends.
25305     * @return Translation effect context data.
25306     *
25307     * @ingroup Transit
25308     * @warning It is highly recommended just create a transit with this effect when
25309     * the window that the objects of the transit belongs has already been created.
25310     * This is because this effect needs the geometry information about the objects,
25311     * and if the window was not created yet, it can get a wrong information.
25312     */
25313    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);
25314
25315    /**
25316     * Add the Zoom Effect to Elm_Transit.
25317     *
25318     * @note This API is one of the facades. It creates zoom effect context
25319     * and add it's required APIs to elm_transit_effect_add.
25320     *
25321     * @see elm_transit_effect_add()
25322     *
25323     * @param transit Transit object.
25324     * @param from_rate Scale rate when effect begins (1 is current rate).
25325     * @param to_rate Scale rate when effect ends.
25326     * @return Zoom effect context data.
25327     *
25328     * @ingroup Transit
25329     * @warning It is highly recommended just create a transit with this effect when
25330     * the window that the objects of the transit belongs has already been created.
25331     * This is because this effect needs the geometry information about the objects,
25332     * and if the window was not created yet, it can get a wrong information.
25333     */
25334    EAPI Elm_Transit_Effect *elm_transit_effect_zoom_add(Elm_Transit *transit, float from_rate, float to_rate);
25335
25336    /**
25337     * Add the Flip Effect to Elm_Transit.
25338     *
25339     * @note This API is one of the facades. It creates flip effect context
25340     * and add it's required APIs to elm_transit_effect_add.
25341     * @note This effect is applied to each pair of objects in the order they are listed
25342     * in the transit list of objects. The first object in the pair will be the
25343     * "front" object and the second will be the "back" object.
25344     *
25345     * @see elm_transit_effect_add()
25346     *
25347     * @param transit Transit object.
25348     * @param axis Flipping Axis(X or Y).
25349     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
25350     * @return Flip effect context data.
25351     *
25352     * @ingroup Transit
25353     * @warning It is highly recommended just create a transit with this effect when
25354     * the window that the objects of the transit belongs has already been created.
25355     * This is because this effect needs the geometry information about the objects,
25356     * and if the window was not created yet, it can get a wrong information.
25357     */
25358    EAPI Elm_Transit_Effect *elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
25359
25360    /**
25361     * Add the Resizable Flip Effect to Elm_Transit.
25362     *
25363     * @note This API is one of the facades. It creates resizable flip effect context
25364     * and add it's required APIs to elm_transit_effect_add.
25365     * @note This effect is applied to each pair of objects in the order they are listed
25366     * in the transit list of objects. The first object in the pair will be the
25367     * "front" object and the second will be the "back" object.
25368     *
25369     * @see elm_transit_effect_add()
25370     *
25371     * @param transit Transit object.
25372     * @param axis Flipping Axis(X or Y).
25373     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
25374     * @return Resizable flip effect context data.
25375     *
25376     * @ingroup Transit
25377     * @warning It is highly recommended just create a transit with this effect when
25378     * the window that the objects of the transit belongs has already been created.
25379     * This is because this effect needs the geometry information about the objects,
25380     * and if the window was not created yet, it can get a wrong information.
25381     */
25382    EAPI Elm_Transit_Effect *elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
25383
25384    /**
25385     * Add the Wipe Effect to Elm_Transit.
25386     *
25387     * @note This API is one of the facades. It creates wipe effect context
25388     * and add it's required APIs to elm_transit_effect_add.
25389     *
25390     * @see elm_transit_effect_add()
25391     *
25392     * @param transit Transit object.
25393     * @param type Wipe type. Hide or show.
25394     * @param dir Wipe Direction.
25395     * @return Wipe effect context data.
25396     *
25397     * @ingroup Transit
25398     * @warning It is highly recommended just create a transit with this effect when
25399     * the window that the objects of the transit belongs has already been created.
25400     * This is because this effect needs the geometry information about the objects,
25401     * and if the window was not created yet, it can get a wrong information.
25402     */
25403    EAPI Elm_Transit_Effect *elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Transit_Effect_Wipe_Type type, Elm_Transit_Effect_Wipe_Dir dir);
25404
25405    /**
25406     * Add the Color Effect to Elm_Transit.
25407     *
25408     * @note This API is one of the facades. It creates color effect context
25409     * and add it's required APIs to elm_transit_effect_add.
25410     *
25411     * @see elm_transit_effect_add()
25412     *
25413     * @param transit        Transit object.
25414     * @param  from_r        RGB R when effect begins.
25415     * @param  from_g        RGB G when effect begins.
25416     * @param  from_b        RGB B when effect begins.
25417     * @param  from_a        RGB A when effect begins.
25418     * @param  to_r          RGB R when effect ends.
25419     * @param  to_g          RGB G when effect ends.
25420     * @param  to_b          RGB B when effect ends.
25421     * @param  to_a          RGB A when effect ends.
25422     * @return               Color effect context data.
25423     *
25424     * @ingroup Transit
25425     */
25426    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);
25427
25428    /**
25429     * Add the Fade Effect to Elm_Transit.
25430     *
25431     * @note This API is one of the facades. It creates fade effect context
25432     * and add it's required APIs to elm_transit_effect_add.
25433     * @note This effect is applied to each pair of objects in the order they are listed
25434     * in the transit list of objects. The first object in the pair will be the
25435     * "before" object and the second will be the "after" object.
25436     *
25437     * @see elm_transit_effect_add()
25438     *
25439     * @param transit Transit object.
25440     * @return Fade effect context data.
25441     *
25442     * @ingroup Transit
25443     * @warning It is highly recommended just create a transit with this effect when
25444     * the window that the objects of the transit belongs has already been created.
25445     * This is because this effect needs the color information about the objects,
25446     * and if the window was not created yet, it can get a wrong information.
25447     */
25448    EAPI Elm_Transit_Effect *elm_transit_effect_fade_add(Elm_Transit *transit);
25449
25450    /**
25451     * Add the Blend Effect to Elm_Transit.
25452     *
25453     * @note This API is one of the facades. It creates blend effect context
25454     * and add it's required APIs to elm_transit_effect_add.
25455     * @note This effect is applied to each pair of objects in the order they are listed
25456     * in the transit list of objects. The first object in the pair will be the
25457     * "before" object and the second will be the "after" object.
25458     *
25459     * @see elm_transit_effect_add()
25460     *
25461     * @param transit Transit object.
25462     * @return Blend effect context data.
25463     *
25464     * @ingroup Transit
25465     * @warning It is highly recommended just create a transit with this effect when
25466     * the window that the objects of the transit belongs has already been created.
25467     * This is because this effect needs the color information about the objects,
25468     * and if the window was not created yet, it can get a wrong information.
25469     */
25470    EAPI Elm_Transit_Effect *elm_transit_effect_blend_add(Elm_Transit *transit);
25471
25472    /**
25473     * Add the Rotation Effect to Elm_Transit.
25474     *
25475     * @note This API is one of the facades. It creates rotation effect context
25476     * and add it's required APIs to elm_transit_effect_add.
25477     *
25478     * @see elm_transit_effect_add()
25479     *
25480     * @param transit Transit object.
25481     * @param from_degree Degree when effect begins.
25482     * @param to_degree Degree when effect is ends.
25483     * @return Rotation effect context data.
25484     *
25485     * @ingroup Transit
25486     * @warning It is highly recommended just create a transit with this effect when
25487     * the window that the objects of the transit belongs has already been created.
25488     * This is because this effect needs the geometry information about the objects,
25489     * and if the window was not created yet, it can get a wrong information.
25490     */
25491    EAPI Elm_Transit_Effect *elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float to_degree);
25492
25493    /**
25494     * Add the ImageAnimation Effect to Elm_Transit.
25495     *
25496     * @note This API is one of the facades. It creates image animation effect context
25497     * and add it's required APIs to elm_transit_effect_add.
25498     * The @p images parameter is a list images paths. This list and
25499     * its contents will be deleted at the end of the effect by
25500     * elm_transit_effect_image_animation_context_free() function.
25501     *
25502     * Example:
25503     * @code
25504     * char buf[PATH_MAX];
25505     * Eina_List *images = NULL;
25506     * Elm_Transit *transi = elm_transit_add();
25507     *
25508     * snprintf(buf, sizeof(buf), "%s/images/icon_11.png", PACKAGE_DATA_DIR);
25509     * images = eina_list_append(images, eina_stringshare_add(buf));
25510     *
25511     * snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
25512     * images = eina_list_append(images, eina_stringshare_add(buf));
25513     * elm_transit_effect_image_animation_add(transi, images);
25514     *
25515     * @endcode
25516     *
25517     * @see elm_transit_effect_add()
25518     *
25519     * @param transit Transit object.
25520     * @param images Eina_List of images file paths. This list and
25521     * its contents will be deleted at the end of the effect by
25522     * elm_transit_effect_image_animation_context_free() function.
25523     * @return Image Animation effect context data.
25524     *
25525     * @ingroup Transit
25526     */
25527    EAPI Elm_Transit_Effect *elm_transit_effect_image_animation_add(Elm_Transit *transit, Eina_List *images);
25528    /**
25529     * @}
25530     */
25531
25532   typedef struct _Elm_Store                      Elm_Store;
25533   typedef struct _Elm_Store_Filesystem           Elm_Store_Filesystem;
25534   typedef struct _Elm_Store_Item                 Elm_Store_Item;
25535   typedef struct _Elm_Store_Item_Filesystem      Elm_Store_Item_Filesystem;
25536   typedef struct _Elm_Store_Item_Info            Elm_Store_Item_Info;
25537   typedef struct _Elm_Store_Item_Info_Filesystem Elm_Store_Item_Info_Filesystem;
25538   typedef struct _Elm_Store_Item_Mapping         Elm_Store_Item_Mapping;
25539   typedef struct _Elm_Store_Item_Mapping_Empty   Elm_Store_Item_Mapping_Empty;
25540   typedef struct _Elm_Store_Item_Mapping_Icon    Elm_Store_Item_Mapping_Icon;
25541   typedef struct _Elm_Store_Item_Mapping_Photo   Elm_Store_Item_Mapping_Photo;
25542   typedef struct _Elm_Store_Item_Mapping_Custom  Elm_Store_Item_Mapping_Custom;
25543
25544   typedef Eina_Bool (*Elm_Store_Item_List_Cb) (void *data, Elm_Store_Item_Info *info);
25545   typedef void      (*Elm_Store_Item_Fetch_Cb) (void *data, Elm_Store_Item *sti);
25546   typedef void      (*Elm_Store_Item_Unfetch_Cb) (void *data, Elm_Store_Item *sti);
25547   typedef void     *(*Elm_Store_Item_Mapping_Cb) (void *data, Elm_Store_Item *sti, const char *part);
25548
25549   typedef enum
25550     {
25551        ELM_STORE_ITEM_MAPPING_NONE = 0,
25552        ELM_STORE_ITEM_MAPPING_LABEL, // const char * -> label
25553        ELM_STORE_ITEM_MAPPING_STATE, // Eina_Bool -> state
25554        ELM_STORE_ITEM_MAPPING_ICON, // char * -> icon path
25555        ELM_STORE_ITEM_MAPPING_PHOTO, // char * -> photo path
25556        ELM_STORE_ITEM_MAPPING_CUSTOM, // item->custom(it->data, it, part) -> void * (-> any)
25557        // can add more here as needed by common apps
25558        ELM_STORE_ITEM_MAPPING_LAST
25559     } Elm_Store_Item_Mapping_Type;
25560
25561   struct _Elm_Store_Item_Mapping_Icon
25562     {
25563        // FIXME: allow edje file icons
25564        int                   w, h;
25565        Elm_Icon_Lookup_Order lookup_order;
25566        Eina_Bool             standard_name : 1;
25567        Eina_Bool             no_scale : 1;
25568        Eina_Bool             smooth : 1;
25569        Eina_Bool             scale_up : 1;
25570        Eina_Bool             scale_down : 1;
25571     };
25572
25573   struct _Elm_Store_Item_Mapping_Empty
25574     {
25575        Eina_Bool             dummy;
25576     };
25577
25578   struct _Elm_Store_Item_Mapping_Photo
25579     {
25580        int                   size;
25581     };
25582
25583   struct _Elm_Store_Item_Mapping_Custom
25584     {
25585        Elm_Store_Item_Mapping_Cb func;
25586     };
25587
25588   struct _Elm_Store_Item_Mapping
25589     {
25590        Elm_Store_Item_Mapping_Type     type;
25591        const char                     *part;
25592        int                             offset;
25593        union
25594          {
25595             Elm_Store_Item_Mapping_Empty  empty;
25596             Elm_Store_Item_Mapping_Icon   icon;
25597             Elm_Store_Item_Mapping_Photo  photo;
25598             Elm_Store_Item_Mapping_Custom custom;
25599             // add more types here
25600          } details;
25601     };
25602
25603   struct _Elm_Store_Item_Info
25604     {
25605       Elm_Genlist_Item_Class       *item_class;
25606       const Elm_Store_Item_Mapping *mapping;
25607       void                         *data;
25608       char                         *sort_id;
25609     };
25610
25611   struct _Elm_Store_Item_Info_Filesystem
25612     {
25613       Elm_Store_Item_Info  base;
25614       char                *path;
25615     };
25616
25617 #define ELM_STORE_ITEM_MAPPING_END { ELM_STORE_ITEM_MAPPING_NONE, NULL, 0, { .empty = { EINA_TRUE } } }
25618 #define ELM_STORE_ITEM_MAPPING_OFFSET(st, it) offsetof(st, it)
25619
25620   EAPI void                    elm_store_free(Elm_Store *st);
25621
25622   EAPI Elm_Store              *elm_store_filesystem_new(void);
25623   EAPI void                    elm_store_filesystem_directory_set(Elm_Store *st, const char *dir) EINA_ARG_NONNULL(1);
25624   EAPI const char             *elm_store_filesystem_directory_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
25625   EAPI const char             *elm_store_item_filesystem_path_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
25626
25627   EAPI void                    elm_store_target_genlist_set(Elm_Store *st, Evas_Object *obj) EINA_ARG_NONNULL(1);
25628
25629   EAPI void                    elm_store_cache_set(Elm_Store *st, int max) EINA_ARG_NONNULL(1);
25630   EAPI int                     elm_store_cache_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
25631   EAPI void                    elm_store_list_func_set(Elm_Store *st, Elm_Store_Item_List_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
25632   EAPI void                    elm_store_fetch_func_set(Elm_Store *st, Elm_Store_Item_Fetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
25633   EAPI void                    elm_store_fetch_thread_set(Elm_Store *st, Eina_Bool use_thread) EINA_ARG_NONNULL(1);
25634   EAPI Eina_Bool               elm_store_fetch_thread_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
25635
25636   EAPI void                    elm_store_unfetch_func_set(Elm_Store *st, Elm_Store_Item_Unfetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
25637   EAPI void                    elm_store_sorted_set(Elm_Store *st, Eina_Bool sorted) EINA_ARG_NONNULL(1);
25638   EAPI Eina_Bool               elm_store_sorted_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
25639   EAPI void                    elm_store_item_data_set(Elm_Store_Item *sti, void *data) EINA_ARG_NONNULL(1);
25640   EAPI void                   *elm_store_item_data_get(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
25641   EAPI const Elm_Store        *elm_store_item_store_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
25642   EAPI const Elm_Genlist_Item *elm_store_item_genlist_item_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
25643
25644    /**
25645     * @defgroup SegmentControl SegmentControl
25646     * @ingroup Elementary
25647     *
25648     * @image html img/widget/segment_control/preview-00.png
25649     * @image latex img/widget/segment_control/preview-00.eps width=\textwidth
25650     *
25651     * @image html img/segment_control.png
25652     * @image latex img/segment_control.eps width=\textwidth
25653     *
25654     * Segment control widget is a horizontal control made of multiple segment
25655     * items, each segment item functioning similar to discrete two state button.
25656     * A segment control groups the items together and provides compact
25657     * single button with multiple equal size segments.
25658     *
25659     * Segment item size is determined by base widget
25660     * size and the number of items added.
25661     * Only one segment item can be at selected state. A segment item can display
25662     * combination of Text and any Evas_Object like Images or other widget.
25663     *
25664     * Smart callbacks one can listen to:
25665     * - "changed" - When the user clicks on a segment item which is not
25666     *   previously selected and get selected. The event_info parameter is the
25667     *   segment item index.
25668     *
25669     * Available styles for it:
25670     * - @c "default"
25671     *
25672     * Here is an example on its usage:
25673     * @li @ref segment_control_example
25674     */
25675
25676    /**
25677     * @addtogroup SegmentControl
25678     * @{
25679     */
25680
25681    typedef struct _Elm_Segment_Item Elm_Segment_Item; /**< Item handle for a segment control widget. */
25682
25683    /**
25684     * Add a new segment control widget to the given parent Elementary
25685     * (container) object.
25686     *
25687     * @param parent The parent object.
25688     * @return a new segment control widget handle or @c NULL, on errors.
25689     *
25690     * This function inserts a new segment control widget on the canvas.
25691     *
25692     * @ingroup SegmentControl
25693     */
25694    EAPI Evas_Object      *elm_segment_control_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
25695
25696    /**
25697     * Append a new item to the segment control object.
25698     *
25699     * @param obj The segment control object.
25700     * @param icon The icon object to use for the left side of the item. An
25701     * icon can be any Evas object, but usually it is an icon created
25702     * with elm_icon_add().
25703     * @param label The label of the item.
25704     *        Note that, NULL is different from empty string "".
25705     * @return The created item or @c NULL upon failure.
25706     *
25707     * A new item will be created and appended to the segment control, i.e., will
25708     * be set as @b last item.
25709     *
25710     * If it should be inserted at another position,
25711     * elm_segment_control_item_insert_at() should be used instead.
25712     *
25713     * Items created with this function can be deleted with function
25714     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
25715     *
25716     * @note @p label set to @c NULL is different from empty string "".
25717     * If an item
25718     * only has icon, it will be displayed bigger and centered. If it has
25719     * icon and label, even that an empty string, icon will be smaller and
25720     * positioned at left.
25721     *
25722     * Simple example:
25723     * @code
25724     * sc = elm_segment_control_add(win);
25725     * ic = elm_icon_add(win);
25726     * elm_icon_file_set(ic, "path/to/image", NULL);
25727     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
25728     * elm_segment_control_item_add(sc, ic, "label");
25729     * evas_object_show(sc);
25730     * @endcode
25731     *
25732     * @see elm_segment_control_item_insert_at()
25733     * @see elm_segment_control_item_del()
25734     *
25735     * @ingroup SegmentControl
25736     */
25737    EAPI Elm_Segment_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label) EINA_ARG_NONNULL(1);
25738
25739    /**
25740     * Insert a new item to the segment control object at specified position.
25741     *
25742     * @param obj The segment control object.
25743     * @param icon The icon object to use for the left side of the item. An
25744     * icon can be any Evas object, but usually it is an icon created
25745     * with elm_icon_add().
25746     * @param label The label of the item.
25747     * @param index Item position. Value should be between 0 and items count.
25748     * @return The created item or @c NULL upon failure.
25749
25750     * Index values must be between @c 0, when item will be prepended to
25751     * segment control, and items count, that can be get with
25752     * elm_segment_control_item_count_get(), case when item will be appended
25753     * to segment control, just like elm_segment_control_item_add().
25754     *
25755     * Items created with this function can be deleted with function
25756     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
25757     *
25758     * @note @p label set to @c NULL is different from empty string "".
25759     * If an item
25760     * only has icon, it will be displayed bigger and centered. If it has
25761     * icon and label, even that an empty string, icon will be smaller and
25762     * positioned at left.
25763     *
25764     * @see elm_segment_control_item_add()
25765     * @see elm_segment_control_count_get()
25766     * @see elm_segment_control_item_del()
25767     *
25768     * @ingroup SegmentControl
25769     */
25770    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);
25771
25772    /**
25773     * Remove a segment control item from its parent, deleting it.
25774     *
25775     * @param it The item to be removed.
25776     *
25777     * Items can be added with elm_segment_control_item_add() or
25778     * elm_segment_control_item_insert_at().
25779     *
25780     * @ingroup SegmentControl
25781     */
25782    EAPI void              elm_segment_control_item_del(Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
25783
25784    /**
25785     * Remove a segment control item at given index from its parent,
25786     * deleting it.
25787     *
25788     * @param obj The segment control object.
25789     * @param index The position of the segment control item to be deleted.
25790     *
25791     * Items can be added with elm_segment_control_item_add() or
25792     * elm_segment_control_item_insert_at().
25793     *
25794     * @ingroup SegmentControl
25795     */
25796    EAPI void              elm_segment_control_item_del_at(Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
25797
25798    /**
25799     * Get the Segment items count from segment control.
25800     *
25801     * @param obj The segment control object.
25802     * @return Segment items count.
25803     *
25804     * It will just return the number of items added to segment control @p obj.
25805     *
25806     * @ingroup SegmentControl
25807     */
25808    EAPI int               elm_segment_control_item_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25809
25810    /**
25811     * Get the item placed at specified index.
25812     *
25813     * @param obj The segment control object.
25814     * @param index The index of the segment item.
25815     * @return The segment control item or @c NULL on failure.
25816     *
25817     * Index is the position of an item in segment control widget. Its
25818     * range is from @c 0 to <tt> count - 1 </tt>.
25819     * Count is the number of items, that can be get with
25820     * elm_segment_control_item_count_get().
25821     *
25822     * @ingroup SegmentControl
25823     */
25824    EAPI Elm_Segment_Item *elm_segment_control_item_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
25825
25826    /**
25827     * Get the label of item.
25828     *
25829     * @param obj The segment control object.
25830     * @param index The index of the segment item.
25831     * @return The label of the item at @p index.
25832     *
25833     * The return value is a pointer to the label associated to the item when
25834     * it was created, with function elm_segment_control_item_add(), or later
25835     * with function elm_segment_control_item_label_set. If no label
25836     * was passed as argument, it will return @c NULL.
25837     *
25838     * @see elm_segment_control_item_label_set() for more details.
25839     * @see elm_segment_control_item_add()
25840     *
25841     * @ingroup SegmentControl
25842     */
25843    EAPI const char       *elm_segment_control_item_label_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
25844
25845    /**
25846     * Set the label of item.
25847     *
25848     * @param it The item of segment control.
25849     * @param text The label of item.
25850     *
25851     * The label to be displayed by the item.
25852     * Label will be at right of the icon (if set).
25853     *
25854     * If a label was passed as argument on item creation, with function
25855     * elm_control_segment_item_add(), it will be already
25856     * displayed by the item.
25857     *
25858     * @see elm_segment_control_item_label_get()
25859     * @see elm_segment_control_item_add()
25860     *
25861     * @ingroup SegmentControl
25862     */
25863    EAPI void              elm_segment_control_item_label_set(Elm_Segment_Item* it, const char* label) EINA_ARG_NONNULL(1);
25864
25865    /**
25866     * Get the icon associated to the item.
25867     *
25868     * @param obj The segment control object.
25869     * @param index The index of the segment item.
25870     * @return The left side icon associated to the item at @p index.
25871     *
25872     * The return value is a pointer to the icon associated to the item when
25873     * it was created, with function elm_segment_control_item_add(), or later
25874     * with function elm_segment_control_item_icon_set(). If no icon
25875     * was passed as argument, it will return @c NULL.
25876     *
25877     * @see elm_segment_control_item_add()
25878     * @see elm_segment_control_item_icon_set()
25879     *
25880     * @ingroup SegmentControl
25881     */
25882    EAPI Evas_Object      *elm_segment_control_item_icon_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
25883
25884    /**
25885     * Set the icon associated to the item.
25886     *
25887     * @param it The segment control item.
25888     * @param icon The icon object to associate with @p it.
25889     *
25890     * The icon object to use at left side of the item. An
25891     * icon can be any Evas object, but usually it is an icon created
25892     * with elm_icon_add().
25893     *
25894     * Once the icon object is set, a previously set one will be deleted.
25895     * @warning Setting the same icon for two items will cause the icon to
25896     * dissapear from the first item.
25897     *
25898     * If an icon was passed as argument on item creation, with function
25899     * elm_segment_control_item_add(), it will be already
25900     * associated to the item.
25901     *
25902     * @see elm_segment_control_item_add()
25903     * @see elm_segment_control_item_icon_get()
25904     *
25905     * @ingroup SegmentControl
25906     */
25907    EAPI void              elm_segment_control_item_icon_set(Elm_Segment_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
25908
25909    /**
25910     * Get the index of an item.
25911     *
25912     * @param it The segment control item.
25913     * @return The position of item in segment control widget.
25914     *
25915     * Index is the position of an item in segment control widget. Its
25916     * range is from @c 0 to <tt> count - 1 </tt>.
25917     * Count is the number of items, that can be get with
25918     * elm_segment_control_item_count_get().
25919     *
25920     * @ingroup SegmentControl
25921     */
25922    EAPI int               elm_segment_control_item_index_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
25923
25924    /**
25925     * Get the base object of the item.
25926     *
25927     * @param it The segment control item.
25928     * @return The base object associated with @p it.
25929     *
25930     * Base object is the @c Evas_Object that represents that item.
25931     *
25932     * @ingroup SegmentControl
25933     */
25934    EAPI Evas_Object      *elm_segment_control_item_object_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
25935
25936    /**
25937     * Get the selected item.
25938     *
25939     * @param obj The segment control object.
25940     * @return The selected item or @c NULL if none of segment items is
25941     * selected.
25942     *
25943     * The selected item can be unselected with function
25944     * elm_segment_control_item_selected_set().
25945     *
25946     * The selected item always will be highlighted on segment control.
25947     *
25948     * @ingroup SegmentControl
25949     */
25950    EAPI Elm_Segment_Item *elm_segment_control_item_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25951
25952    /**
25953     * Set the selected state of an item.
25954     *
25955     * @param it The segment control item
25956     * @param select The selected state
25957     *
25958     * This sets the selected state of the given item @p it.
25959     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
25960     *
25961     * If a new item is selected the previosly selected will be unselected.
25962     * Previoulsy selected item can be get with function
25963     * elm_segment_control_item_selected_get().
25964     *
25965     * The selected item always will be highlighted on segment control.
25966     *
25967     * @see elm_segment_control_item_selected_get()
25968     *
25969     * @ingroup SegmentControl
25970     */
25971    EAPI void              elm_segment_control_item_selected_set(Elm_Segment_Item *it, Eina_Bool select) EINA_ARG_NONNULL(1);
25972
25973    /**
25974     * @}
25975     */
25976
25977    /**
25978     * @defgroup Grid Grid
25979     *
25980     * The grid is a grid layout widget that lays out a series of children as a
25981     * fixed "grid" of widgets using a given percentage of the grid width and
25982     * height each using the child object.
25983     *
25984     * The Grid uses a "Virtual resolution" that is stretched to fill the grid
25985     * widgets size itself. The default is 100 x 100, so that means the
25986     * position and sizes of children will effectively be percentages (0 to 100)
25987     * of the width or height of the grid widget
25988     *
25989     * @{
25990     */
25991
25992    /**
25993     * Add a new grid to the parent
25994     *
25995     * @param parent The parent object
25996     * @return The new object or NULL if it cannot be created
25997     *
25998     * @ingroup Grid
25999     */
26000    EAPI Evas_Object *elm_grid_add(Evas_Object *parent);
26001
26002    /**
26003     * Set the virtual size of the grid
26004     *
26005     * @param obj The grid object
26006     * @param w The virtual width of the grid
26007     * @param h The virtual height of the grid
26008     *
26009     * @ingroup Grid
26010     */
26011    EAPI void         elm_grid_size_set(Evas_Object *obj, int w, int h);
26012
26013    /**
26014     * Get the virtual size of the grid
26015     *
26016     * @param obj The grid object
26017     * @param w Pointer to integer to store the virtual width of the grid
26018     * @param h Pointer to integer to store the virtual height of the grid
26019     *
26020     * @ingroup Grid
26021     */
26022    EAPI void         elm_grid_size_get(Evas_Object *obj, int *w, int *h);
26023
26024    /**
26025     * Pack child at given position and size
26026     *
26027     * @param obj The grid object
26028     * @param subobj The child to pack
26029     * @param x The virtual x coord at which to pack it
26030     * @param y The virtual y coord at which to pack it
26031     * @param w The virtual width at which to pack it
26032     * @param h The virtual height at which to pack it
26033     *
26034     * @ingroup Grid
26035     */
26036    EAPI void         elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h);
26037
26038    /**
26039     * Unpack a child from a grid object
26040     *
26041     * @param obj The grid object
26042     * @param subobj The child to unpack
26043     *
26044     * @ingroup Grid
26045     */
26046    EAPI void         elm_grid_unpack(Evas_Object *obj, Evas_Object *subobj);
26047
26048    /**
26049     * Faster way to remove all child objects from a grid object.
26050     *
26051     * @param obj The grid object
26052     * @param clear If true, it will delete just removed children
26053     *
26054     * @ingroup Grid
26055     */
26056    EAPI void         elm_grid_clear(Evas_Object *obj, Eina_Bool clear);
26057
26058    /**
26059     * Set packing of an existing child at to position and size
26060     *
26061     * @param subobj The child to set packing of
26062     * @param x The virtual x coord at which to pack it
26063     * @param y The virtual y coord at which to pack it
26064     * @param w The virtual width at which to pack it
26065     * @param h The virtual height at which to pack it
26066     *
26067     * @ingroup Grid
26068     */
26069    EAPI void         elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h);
26070
26071    /**
26072     * get packing of a child
26073     *
26074     * @param subobj The child to query
26075     * @param x Pointer to integer to store the virtual x coord
26076     * @param y Pointer to integer to store the virtual y coord
26077     * @param w Pointer to integer to store the virtual width
26078     * @param h Pointer to integer to store the virtual height
26079     *
26080     * @ingroup Grid
26081     */
26082    EAPI void         elm_grid_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h);
26083
26084    /**
26085     * @}
26086     */
26087
26088    EAPI Evas_Object *elm_factory_add(Evas_Object *parent);
26089    EAPI void         elm_factory_content_set(Evas_Object *obj, Evas_Object *content);
26090    EAPI Evas_Object *elm_factory_content_get(const Evas_Object *obj);
26091    
26092    EAPI Evas_Object *elm_video_add(Evas_Object *parent);
26093    EAPI void elm_video_file_set(Evas_Object *video, const char *filename);
26094    EAPI void elm_video_uri_set(Evas_Object *video, const char *uri);
26095    EAPI Evas_Object *elm_video_emotion_get(Evas_Object *video);
26096    EAPI void elm_video_play(Evas_Object *video);
26097    EAPI void elm_video_pause(Evas_Object *video);
26098    EAPI void elm_video_stop(Evas_Object *video);
26099    EAPI Eina_Bool elm_video_is_playing(Evas_Object *video);
26100    EAPI Eina_Bool elm_video_is_seekable(Evas_Object *video);
26101    EAPI Eina_Bool elm_video_audio_mute_get(Evas_Object *video);
26102    EAPI void elm_video_audio_mute_set(Evas_Object *video, Eina_Bool mute);
26103    EAPI double elm_video_audio_level_get(Evas_Object *video);
26104    EAPI void elm_video_audio_level_set(Evas_Object *video, double volume);
26105    EAPI double elm_video_play_position_get(Evas_Object *video);
26106    EAPI void elm_video_play_position_set(Evas_Object *video, double position);
26107    EAPI double elm_video_play_length_get(Evas_Object *video);
26108    EAPI void elm_video_remember_position_set(Evas_Object *video, Eina_Bool remember);
26109    EAPI Eina_Bool elm_video_remember_position_get(Evas_Object *video);
26110    EAPI const char *elm_video_title_get(Evas_Object *video);
26111
26112    EAPI Evas_Object *elm_player_add(Evas_Object *parent);
26113    EAPI void elm_player_video_set(Evas_Object *player, Evas_Object *video);
26114
26115   /* naviframe */
26116    EAPI Evas_Object        *elm_naviframe_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26117    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);
26118    EAPI Evas_Object        *elm_naviframe_item_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
26119    EAPI void                elm_naviframe_content_preserve_on_pop_set(Evas_Object *obj, Eina_Bool preserve) EINA_ARG_NONNULL(1);
26120    EAPI Eina_Bool           elm_naviframe_content_preserve_on_pop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26121    EAPI void                elm_naviframe_item_title_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
26122    EAPI const char         *elm_naviframe_item_title_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26123    EAPI void                elm_naviframe_item_subtitle_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
26124    EAPI const char         *elm_naviframe_item_subtitle_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26125    EAPI Elm_Object_Item    *elm_naviframe_top_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26126    EAPI Elm_Object_Item    *elm_naviframe_bottom_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26127    EAPI void                elm_naviframe_item_style_set(Elm_Object_Item *it, const char *item_style) EINA_ARG_NONNULL(1);
26128    EAPI const char         *elm_naviframe_item_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26129    EAPI void                elm_naviframe_item_title_visible_set(Elm_Object_Item *it, Eina_Bool visible) EINA_ARG_NONNULL(1);
26130    EAPI Eina_Bool           elm_naviframe_item_title_visible_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26131
26132    /**
26133     * @defgroup Video Video
26134     *
26135     * This object display an player that let you control an Elm_Video
26136     * object. It take care of updating it's content according to what is
26137     * going on inside the Emotion object. It does activate the remember
26138     * function on the linked Elm_Video object.
26139     *
26140     * Signals that you cann add callback for are :
26141     *
26142     * "forward,clicked" - the user clicked the forward button.
26143     * "info,clicked" - the user clicked the info button.
26144     * "next,clicked" - the user clicked the next button.
26145     * "pause,clicked" - the user clicked the pause button.
26146     * "play,clicked" - the user clicked the play button.
26147     * "prev,clicked" - the user clicked the prev button.
26148     * "rewind,clicked" - the user clicked the rewind button.
26149     * "stop,clicked" - the user clicked the stop button.
26150     */
26151
26152 #ifdef __cplusplus
26153 }
26154 #endif
26155
26156 #endif