elementary: welcome to group in gengrid. Still need some work with reorder...
[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_MAIN 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 build 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_MAIN 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 @author Sung W. Park <sungwoo@gmail.com>
297 @author Thierry el Borgi <thierry@substantiel.fr>
298 @author Shilpa Singh <shilpa.singh@samsung.com> <shilpasingh.o@gmail.com>
299 @author Chanwook Jung <joey.jung@samsung.com>
300
301 Please contact <enlightenment-devel@lists.sourceforge.net> to get in
302 contact with the developers and maintainers.
303  */
304
305 #ifndef ELEMENTARY_H
306 #define ELEMENTARY_H
307
308 /**
309  * @file Elementary.h
310  * @brief Elementary's API
311  *
312  * Elementary API.
313  */
314
315 @ELM_UNIX_DEF@ ELM_UNIX
316 @ELM_WIN32_DEF@ ELM_WIN32
317 @ELM_WINCE_DEF@ ELM_WINCE
318 @ELM_EDBUS_DEF@ ELM_EDBUS
319 @ELM_EFREET_DEF@ ELM_EFREET
320 @ELM_ETHUMB_DEF@ ELM_ETHUMB
321 @ELM_EMAP_DEF@ ELM_EMAP
322 @ELM_DEBUG_DEF@ ELM_DEBUG
323 @ELM_ALLOCA_H_DEF@ ELM_ALLOCA_H
324 @ELM_LIBINTL_H_DEF@ ELM_LIBINTL_H
325
326 /* Standard headers for standard system calls etc. */
327 #include <stdio.h>
328 #include <stdlib.h>
329 #include <unistd.h>
330 #include <string.h>
331 #include <sys/types.h>
332 #include <sys/stat.h>
333 #include <sys/time.h>
334 #include <sys/param.h>
335 #include <dlfcn.h>
336 #include <math.h>
337 #include <fnmatch.h>
338 #include <limits.h>
339 #include <ctype.h>
340 #include <time.h>
341 #include <dirent.h>
342 #include <pwd.h>
343 #include <errno.h>
344
345 #ifdef ELM_UNIX
346 # include <locale.h>
347 # ifdef ELM_LIBINTL_H
348 #  include <libintl.h>
349 # endif
350 # include <signal.h>
351 # include <grp.h>
352 # include <glob.h>
353 #endif
354
355 #ifdef ELM_ALLOCA_H
356 # include <alloca.h>
357 #endif
358
359 #if defined (ELM_WIN32) || defined (ELM_WINCE)
360 # include <malloc.h>
361 # ifndef alloca
362 #  define alloca _alloca
363 # endif
364 #endif
365
366
367 /* EFL headers */
368 #include <Eina.h>
369 #include <Eet.h>
370 #include <Evas.h>
371 #include <Evas_GL.h>
372 #include <Ecore.h>
373 #include <Ecore_Evas.h>
374 #include <Ecore_File.h>
375 #include <Ecore_IMF.h>
376 #include <Ecore_Con.h>
377 #include <Edje.h>
378
379 #ifdef ELM_EDBUS
380 # include <E_DBus.h>
381 #endif
382
383 #ifdef ELM_EFREET
384 # include <Efreet.h>
385 # include <Efreet_Mime.h>
386 # include <Efreet_Trash.h>
387 #endif
388
389 #ifdef ELM_ETHUMB
390 # include <Ethumb_Client.h>
391 #endif
392
393 #ifdef ELM_EMAP
394 # include <EMap.h>
395 #endif
396
397 #ifdef EAPI
398 # undef EAPI
399 #endif
400
401 #ifdef _WIN32
402 # ifdef ELEMENTARY_BUILD
403 #  ifdef DLL_EXPORT
404 #   define EAPI __declspec(dllexport)
405 #  else
406 #   define EAPI
407 #  endif /* ! DLL_EXPORT */
408 # else
409 #  define EAPI __declspec(dllimport)
410 # endif /* ! EFL_EVAS_BUILD */
411 #else
412 # ifdef __GNUC__
413 #  if __GNUC__ >= 4
414 #   define EAPI __attribute__ ((visibility("default")))
415 #  else
416 #   define EAPI
417 #  endif
418 # else
419 #  define EAPI
420 # endif
421 #endif /* ! _WIN32 */
422
423 #ifdef _WIN32
424 # define EAPI_MAIN
425 #else
426 # define EAPI_MAIN EAPI
427 #endif
428
429 /* allow usage from c++ */
430 #ifdef __cplusplus
431 extern "C" {
432 #endif
433
434 #define ELM_VERSION_MAJOR @VMAJ@
435 #define ELM_VERSION_MINOR @VMIN@
436
437    typedef struct _Elm_Version
438      {
439         int major;
440         int minor;
441         int micro;
442         int revision;
443      } Elm_Version;
444
445    EAPI extern Elm_Version *elm_version;
446
447 /* handy macros */
448 #define ELM_RECTS_INTERSECT(x, y, w, h, xx, yy, ww, hh) (((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && (((x) + (w)) > (xx)) && (((y) + (h)) > (yy)))
449 #define ELM_PI 3.14159265358979323846
450
451    /**
452     * @defgroup General General
453     *
454     * @brief General Elementary API. Functions that don't relate to
455     * Elementary objects specifically.
456     *
457     * Here are documented functions which init/shutdown the library,
458     * that apply to generic Elementary objects, that deal with
459     * configuration, et cetera.
460     *
461     * @ref general_functions_example_page "This" example contemplates
462     * some of these functions.
463     */
464
465    /**
466     * @addtogroup General
467     * @{
468     */
469
470   /**
471    * Defines couple of standard Evas_Object layers to be used
472    * with evas_object_layer_set().
473    *
474    * @note whenever extending with new values, try to keep some padding
475    *       to siblings so there is room for further extensions.
476    */
477   typedef enum _Elm_Object_Layer
478     {
479        ELM_OBJECT_LAYER_BACKGROUND = EVAS_LAYER_MIN + 64, /**< where to place backgrounds */
480        ELM_OBJECT_LAYER_DEFAULT = 0, /**< Evas_Object default layer (and thus for Elementary) */
481        ELM_OBJECT_LAYER_FOCUS = EVAS_LAYER_MAX - 128, /**< where focus object visualization is */
482        ELM_OBJECT_LAYER_TOOLTIP = EVAS_LAYER_MAX - 64, /**< where to show tooltips */
483        ELM_OBJECT_LAYER_CURSOR = EVAS_LAYER_MAX - 32, /**< where to show cursors */
484        ELM_OBJECT_LAYER_LAST /**< last layer known by Elementary */
485     } Elm_Object_Layer;
486
487 /**************************************************************************/
488    EAPI extern int ELM_ECORE_EVENT_ETHUMB_CONNECT;
489
490    /**
491     * Emitted when any Elementary's policy value is changed.
492     */
493    EAPI extern int ELM_EVENT_POLICY_CHANGED;
494
495    /**
496     * @typedef Elm_Event_Policy_Changed
497     *
498     * Data on the event when an Elementary policy has changed
499     */
500     typedef struct _Elm_Event_Policy_Changed Elm_Event_Policy_Changed;
501
502    /**
503     * @struct _Elm_Event_Policy_Changed
504     *
505     * Data on the event when an Elementary policy has changed
506     */
507     struct _Elm_Event_Policy_Changed
508      {
509         unsigned int policy; /**< the policy identifier */
510         int          new_value; /**< value the policy had before the change */
511         int          old_value; /**< new value the policy got */
512     };
513
514    /**
515     * Policy identifiers.
516     */
517     typedef enum _Elm_Policy
518     {
519         ELM_POLICY_QUIT, /**< under which circumstances the application
520                           * should quit automatically. @see
521                           * Elm_Policy_Quit.
522                           */
523         ELM_POLICY_LAST
524     } Elm_Policy; /**< Elementary policy identifiers/groups enumeration.  @see elm_policy_set()
525  */
526
527    typedef enum _Elm_Policy_Quit
528      {
529         ELM_POLICY_QUIT_NONE = 0, /**< never quit the application
530                                    * automatically */
531         ELM_POLICY_QUIT_LAST_WINDOW_CLOSED /**< quit when the
532                                             * application's last
533                                             * window is closed */
534      } Elm_Policy_Quit; /**< Possible values for the #ELM_POLICY_QUIT policy */
535
536    typedef enum _Elm_Focus_Direction
537      {
538         ELM_FOCUS_PREVIOUS,
539         ELM_FOCUS_NEXT
540      } Elm_Focus_Direction;
541
542    typedef enum _Elm_Text_Format
543      {
544         ELM_TEXT_FORMAT_PLAIN_UTF8,
545         ELM_TEXT_FORMAT_MARKUP_UTF8
546      } Elm_Text_Format;
547
548    /**
549     * Line wrapping types.
550     */
551    typedef enum _Elm_Wrap_Type
552      {
553         ELM_WRAP_NONE = 0, /**< No wrap - value is zero */
554         ELM_WRAP_CHAR, /**< Char wrap - wrap between characters */
555         ELM_WRAP_WORD, /**< Word wrap - wrap in allowed wrapping points (as defined in the unicode standard) */
556         ELM_WRAP_MIXED, /**< Mixed wrap - Word wrap, and if that fails, char wrap. */
557         ELM_WRAP_LAST
558      } Elm_Wrap_Type;
559
560    typedef enum
561      {
562         ELM_INPUT_PANEL_LAYOUT_NORMAL,          /**< Default layout */
563         ELM_INPUT_PANEL_LAYOUT_NUMBER,          /**< Number layout */
564         ELM_INPUT_PANEL_LAYOUT_EMAIL,           /**< Email layout */
565         ELM_INPUT_PANEL_LAYOUT_URL,             /**< URL layout */
566         ELM_INPUT_PANEL_LAYOUT_PHONENUMBER,     /**< Phone Number layout */
567         ELM_INPUT_PANEL_LAYOUT_IP,              /**< IP layout */
568         ELM_INPUT_PANEL_LAYOUT_MONTH,           /**< Month layout */
569         ELM_INPUT_PANEL_LAYOUT_NUMBERONLY,      /**< Number Only layout */
570         ELM_INPUT_PANEL_LAYOUT_INVALID
571      } Elm_Input_Panel_Layout;
572
573    /**
574     * @typedef Elm_Object_Item
575     * An Elementary Object item handle.
576     * @ingroup General
577     */
578    typedef struct _Elm_Object_Item Elm_Object_Item;
579
580
581    /**
582     * Called back when a widget's tooltip is activated and needs content.
583     * @param data user-data given to elm_object_tooltip_content_cb_set()
584     * @param obj owner widget.
585     * @param tooltip The tooltip object (affix content to this!)
586     */
587    typedef Evas_Object *(*Elm_Tooltip_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip);
588
589    /**
590     * Called back when a widget's item tooltip is activated and needs content.
591     * @param data user-data given to elm_object_tooltip_content_cb_set()
592     * @param obj owner widget.
593     * @param tooltip The tooltip object (affix content to this!)
594     * @param item context dependent item. As an example, if tooltip was
595     *        set on Elm_List_Item, then it is of this type.
596     */
597    typedef Evas_Object *(*Elm_Tooltip_Item_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip, void *item);
598
599    typedef Eina_Bool (*Elm_Event_Cb) (void *data, Evas_Object *obj, Evas_Object *src, Evas_Callback_Type type, void *event_info); /**< Function prototype definition for callbacks on input events happening on Elementary widgets. @a data will receive the user data pointer passed to elm_object_event_callback_add(). @a src will be a pointer to the widget on which the input event took place. @a type will get the type of this event and @a event_info, the struct with details on this event. */
600
601 #ifndef ELM_LIB_QUICKLAUNCH
602 #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 */
603 #else
604 #define ELM_MAIN() int main(int argc, char **argv) {return elm_quicklaunch_fallback(argc, argv);} /**< macro to be used after the elm_main() function */
605 #endif
606
607 /**************************************************************************/
608    /* General calls */
609
610    /**
611     * Initialize Elementary
612     *
613     * @param[in] argc System's argument count value
614     * @param[in] argv System's pointer to array of argument strings
615     * @return The init counter value.
616     *
617     * This function initializes Elementary and increments a counter of
618     * the number of calls to it. It returns the new counter's value.
619     *
620     * @warning This call is exported only for use by the @c ELM_MAIN()
621     * macro. There is no need to use this if you use this macro (which
622     * is highly advisable). An elm_main() should contain the entry
623     * point code for your application, having the same prototype as
624     * elm_init(), and @b not being static (putting the @c EAPI symbol
625     * in front of its type declaration is advisable). The @c
626     * ELM_MAIN() call should be placed just after it.
627     *
628     * Example:
629     * @dontinclude bg_example_01.c
630     * @skip static void
631     * @until ELM_MAIN
632     *
633     * See the full @ref bg_example_01_c "example".
634     *
635     * @see elm_shutdown().
636     * @ingroup General
637     */
638    EAPI int          elm_init(int argc, char **argv);
639
640    /**
641     * Shut down Elementary
642     *
643     * @return The init counter value.
644     *
645     * This should be called at the end of your application, just
646     * before it ceases to do any more processing. This will clean up
647     * any permanent resources your application may have allocated via
648     * Elementary that would otherwise persist.
649     *
650     * @see elm_init() for an example
651     *
652     * @ingroup General
653     */
654    EAPI int          elm_shutdown(void);
655
656    /**
657     * Run Elementary's main loop
658     *
659     * This call should be issued just after all initialization is
660     * completed. This function will not return until elm_exit() is
661     * called. It will keep looping, running the main
662     * (event/processing) loop for Elementary.
663     *
664     * @see elm_init() for an example
665     *
666     * @ingroup General
667     */
668    EAPI void         elm_run(void);
669
670    /**
671     * Exit Elementary's main loop
672     *
673     * If this call is issued, it will flag the main loop to cease
674     * processing and return back to its parent function (usually your
675     * elm_main() function).
676     *
677     * @see elm_init() for an example. There, just after a request to
678     * close the window comes, the main loop will be left.
679     *
680     * @note By using the #ELM_POLICY_QUIT on your Elementary
681     * applications, you'll this function called automatically for you.
682     *
683     * @ingroup General
684     */
685    EAPI void         elm_exit(void);
686
687    /**
688     * Provide information in order to make Elementary determine the @b
689     * run time location of the software in question, so other data files
690     * such as images, sound files, executable utilities, libraries,
691     * modules and locale files can be found.
692     *
693     * @param mainfunc This is your application's main function name,
694     *        whose binary's location is to be found. Providing @c NULL
695     *        will make Elementary not to use it
696     * @param dom This will be used as the application's "domain", in the
697     *        form of a prefix to any environment variables that may
698     *        override prefix detection and the directory name, inside the
699     *        standard share or data directories, where the software's
700     *        data files will be looked for.
701     * @param checkfile This is an (optional) magic file's path to check
702     *        for existence (and it must be located in the data directory,
703     *        under the share directory provided above). Its presence will
704     *        help determine the prefix found was correct. Pass @c NULL if
705     *        the check is not to be done.
706     *
707     * This function allows one to re-locate the application somewhere
708     * else after compilation, if the developer wishes for easier
709     * distribution of pre-compiled binaries.
710     *
711     * The prefix system is designed to locate where the given software is
712     * installed (under a common path prefix) at run time and then report
713     * specific locations of this prefix and common directories inside
714     * this prefix like the binary, library, data and locale directories,
715     * through the @c elm_app_*_get() family of functions.
716     *
717     * Call elm_app_info_set() early on before you change working
718     * directory or anything about @c argv[0], so it gets accurate
719     * information.
720     *
721     * It will then try and trace back which file @p mainfunc comes from,
722     * if provided, to determine the application's prefix directory.
723     *
724     * The @p dom parameter provides a string prefix to prepend before
725     * environment variables, allowing a fallback to @b specific
726     * environment variables to locate the software. You would most
727     * probably provide a lowercase string there, because it will also
728     * serve as directory domain, explained next. For environment
729     * variables purposes, this string is made uppercase. For example if
730     * @c "myapp" is provided as the prefix, then the program would expect
731     * @c "MYAPP_PREFIX" as a master environment variable to specify the
732     * exact install prefix for the software, or more specific environment
733     * variables like @c "MYAPP_BIN_DIR", @c "MYAPP_LIB_DIR", @c
734     * "MYAPP_DATA_DIR" and @c "MYAPP_LOCALE_DIR", which could be set by
735     * the user or scripts before launching. If not provided (@c NULL),
736     * environment variables will not be used to override compiled-in
737     * defaults or auto detections.
738     *
739     * The @p dom string also provides a subdirectory inside the system
740     * shared data directory for data files. For example, if the system
741     * directory is @c /usr/local/share, then this directory name is
742     * appended, creating @c /usr/local/share/myapp, if it @p was @c
743     * "myapp". It is expected the application installs data files in
744     * this directory.
745     *
746     * The @p checkfile is a file name or path of something inside the
747     * share or data directory to be used to test that the prefix
748     * detection worked. For example, your app will install a wallpaper
749     * image as @c /usr/local/share/myapp/images/wallpaper.jpg and so to
750     * check that this worked, provide @c "images/wallpaper.jpg" as the @p
751     * checkfile string.
752     *
753     * @see elm_app_compile_bin_dir_set()
754     * @see elm_app_compile_lib_dir_set()
755     * @see elm_app_compile_data_dir_set()
756     * @see elm_app_compile_locale_set()
757     * @see elm_app_prefix_dir_get()
758     * @see elm_app_bin_dir_get()
759     * @see elm_app_lib_dir_get()
760     * @see elm_app_data_dir_get()
761     * @see elm_app_locale_dir_get()
762     */
763    EAPI void         elm_app_info_set(void *mainfunc, const char *dom, const char *checkfile);
764
765    /**
766     * Provide information on the @b fallback application's binaries
767     * directory, on scenarios where they get overriden by
768     * elm_app_info_set().
769     *
770     * @param dir The path to the default binaries directory (compile time
771     * one)
772     *
773     * @note Elementary will as well use this path to determine actual
774     * names of binaries' directory paths, maybe changing it to be @c
775     * something/local/bin instead of @c something/bin, only, for
776     * example.
777     *
778     * @warning You should call this function @b before
779     * elm_app_info_set().
780     */
781    EAPI void         elm_app_compile_bin_dir_set(const char *dir);
782
783    /**
784     * Provide information on the @b fallback application's libraries
785     * directory, on scenarios where they get overriden by
786     * elm_app_info_set().
787     *
788     * @param dir The path to the default libraries directory (compile
789     * time one)
790     *
791     * @note Elementary will as well use this path to determine actual
792     * names of libraries' directory paths, maybe changing it to be @c
793     * something/lib32 or @c something/lib64 instead of @c something/lib,
794     * only, for example.
795     *
796     * @warning You should call this function @b before
797     * elm_app_info_set().
798     */
799    EAPI void         elm_app_compile_lib_dir_set(const char *dir);
800
801    /**
802     * Provide information on the @b fallback application's data
803     * directory, on scenarios where they get overriden by
804     * elm_app_info_set().
805     *
806     * @param dir The path to the default data directory (compile time
807     * one)
808     *
809     * @note Elementary will as well use this path to determine actual
810     * names of data directory paths, maybe changing it to be @c
811     * something/local/share instead of @c something/share, only, for
812     * example.
813     *
814     * @warning You should call this function @b before
815     * elm_app_info_set().
816     */
817    EAPI void         elm_app_compile_data_dir_set(const char *dir);
818
819    /**
820     * Provide information on the @b fallback application's locale
821     * directory, on scenarios where they get overriden by
822     * elm_app_info_set().
823     *
824     * @param dir The path to the default locale directory (compile time
825     * one)
826     *
827     * @warning You should call this function @b before
828     * elm_app_info_set().
829     */
830    EAPI void         elm_app_compile_locale_set(const char *dir);
831
832    /**
833     * Retrieve the application's run time prefix directory, as set by
834     * elm_app_info_set() and the way (environment) the application was
835     * run from.
836     *
837     * @return The directory prefix the application is actually using
838     */
839    EAPI const char  *elm_app_prefix_dir_get(void);
840
841    /**
842     * Retrieve the application's run time binaries prefix directory, as
843     * set by elm_app_info_set() and the way (environment) the application
844     * was run from.
845     *
846     * @return The binaries directory prefix the application is actually
847     * using
848     */
849    EAPI const char  *elm_app_bin_dir_get(void);
850
851    /**
852     * Retrieve the application's run time libraries prefix directory, as
853     * set by elm_app_info_set() and the way (environment) the application
854     * was run from.
855     *
856     * @return The libraries directory prefix the application is actually
857     * using
858     */
859    EAPI const char  *elm_app_lib_dir_get(void);
860
861    /**
862     * Retrieve the application's run time data prefix directory, as
863     * set by elm_app_info_set() and the way (environment) the application
864     * was run from.
865     *
866     * @return The data directory prefix the application is actually
867     * using
868     */
869    EAPI const char  *elm_app_data_dir_get(void);
870
871    /**
872     * Retrieve the application's run time locale prefix directory, as
873     * set by elm_app_info_set() and the way (environment) the application
874     * was run from.
875     *
876     * @return The locale directory prefix the application is actually
877     * using
878     */
879    EAPI const char  *elm_app_locale_dir_get(void);
880
881    EAPI void         elm_quicklaunch_mode_set(Eina_Bool ql_on);
882    EAPI Eina_Bool    elm_quicklaunch_mode_get(void);
883    EAPI int          elm_quicklaunch_init(int argc, char **argv);
884    EAPI int          elm_quicklaunch_sub_init(int argc, char **argv);
885    EAPI int          elm_quicklaunch_sub_shutdown(void);
886    EAPI int          elm_quicklaunch_shutdown(void);
887    EAPI void         elm_quicklaunch_seed(void);
888    EAPI Eina_Bool    elm_quicklaunch_prepare(int argc, char **argv);
889    EAPI Eina_Bool    elm_quicklaunch_fork(int argc, char **argv, char *cwd, void (postfork_func) (void *data), void *postfork_data);
890    EAPI void         elm_quicklaunch_cleanup(void);
891    EAPI int          elm_quicklaunch_fallback(int argc, char **argv);
892    EAPI char        *elm_quicklaunch_exe_path_get(const char *exe);
893
894    EAPI Eina_Bool    elm_need_efreet(void);
895    EAPI Eina_Bool    elm_need_e_dbus(void);
896
897    /**
898     * This must be called before any other function that handle with
899     * elm_thumb objects or ethumb_client instances.
900     *
901     * @ingroup Thumb
902     */
903    EAPI Eina_Bool    elm_need_ethumb(void);
904
905    /**
906     * Set a new policy's value (for a given policy group/identifier).
907     *
908     * @param policy policy identifier, as in @ref Elm_Policy.
909     * @param value policy value, which depends on the identifier
910     *
911     * @return @c EINA_TRUE on success or @c EINA_FALSE, on error.
912     *
913     * Elementary policies define applications' behavior,
914     * somehow. These behaviors are divided in policy groups (see
915     * #Elm_Policy enumeration). This call will emit the Ecore event
916     * #ELM_EVENT_POLICY_CHANGED, which can be hooked at with
917     * handlers. An #Elm_Event_Policy_Changed struct will be passed,
918     * then.
919     *
920     * @note Currently, we have only one policy identifier/group
921     * (#ELM_POLICY_QUIT), which has two possible values.
922     *
923     * @ingroup General
924     */
925    EAPI Eina_Bool    elm_policy_set(unsigned int policy, int value);
926
927    /**
928     * Gets the policy value set for given policy identifier.
929     *
930     * @param policy policy identifier, as in #Elm_Policy.
931     * @return The currently set policy value, for that
932     * identifier. Will be @c 0 if @p policy passed is invalid.
933     *
934     * @ingroup General
935     */
936    EAPI int          elm_policy_get(unsigned int policy);
937
938    /**
939     * Set a label of an object
940     *
941     * @param obj The Elementary object
942     * @param part The text part name to set (NULL for the default label)
943     * @param label The new text of the label
944     *
945     * @note Elementary objects may have many labels (e.g. Action Slider)
946     *
947     * @ingroup General
948     */
949    EAPI void         elm_object_text_part_set(Evas_Object *obj, const char *part, const char *label);
950
951 #define elm_object_text_set(obj, label) elm_object_text_part_set((obj), NULL, (label))
952
953    /**
954     * Get a label of an object
955     *
956     * @param obj The Elementary object
957     * @param part The text part name to get (NULL for the default label)
958     * @return text of the label or NULL for any error
959     *
960     * @note Elementary objects may have many labels (e.g. Action Slider)
961     *
962     * @ingroup General
963     */
964    EAPI const char  *elm_object_text_part_get(const Evas_Object *obj, const char *part);
965
966 #define elm_object_text_get(obj) elm_object_text_part_get((obj), NULL)
967
968    /**
969     * Set a content of an object
970     *
971     * @param obj The Elementary object
972     * @param part The content part name to set (NULL for the default content)
973     * @param content The new content of the object
974     *
975     * @note Elementary objects may have many contents
976     *
977     * @ingroup General
978     */
979    EAPI void elm_object_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content);
980
981 #define elm_object_content_set(obj, content) elm_object_content_part_set((obj), NULL, (content))
982
983    /**
984     * Get a content of an object
985     *
986     * @param obj The Elementary object
987     * @param item The content part name to get (NULL for the default content)
988     * @return content of the object or NULL for any error
989     *
990     * @note Elementary objects may have many contents
991     *
992     * @ingroup General
993     */
994    EAPI Evas_Object *elm_object_content_part_get(const Evas_Object *obj, const char *part);
995
996 #define elm_object_content_get(obj) elm_object_content_part_get((obj), NULL)
997
998    /**
999     * Unset a content of an object
1000     *
1001     * @param obj The Elementary object
1002     * @param item The content part name to unset (NULL for the default content)
1003     *
1004     * @note Elementary objects may have many contents
1005     *
1006     * @ingroup General
1007     */
1008    EAPI Evas_Object *elm_object_content_part_unset(Evas_Object *obj, const char *part);
1009
1010 #define elm_object_content_unset(obj) elm_object_content_part_unset((obj), NULL)
1011
1012    /**
1013     * Set a content of an object item
1014     *
1015     * @param it The Elementary object item
1016     * @param part The content part name to set (NULL for the default content)
1017     * @param content The new content of the object item
1018     *
1019     * @note Elementary object items may have many contents
1020     *
1021     * @ingroup General
1022     */
1023    EAPI void elm_object_item_content_part_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
1024
1025 #define elm_object_item_content_set(it, content) elm_object_item_content_part_set((it), NULL, (content))
1026
1027    /**
1028     * Get a content of an object item
1029     *
1030     * @param it The Elementary object item
1031     * @param part The content part name to unset (NULL for the default content)
1032     * @return content of the object item or NULL for any error
1033     *
1034     * @note Elementary object items may have many contents
1035     *
1036     * @ingroup General
1037     */
1038    EAPI Evas_Object *elm_object_item_content_part_get(const Elm_Object_Item *it, const char *item);
1039
1040 #define elm_object_item_content_get(it, content) elm_object_item_content_part_get((it), NULL, (content))
1041
1042    /**
1043     * Unset a content of an object item
1044     *
1045     * @param it The Elementary object item
1046     * @param part The content part name to unset (NULL for the default content)
1047     *
1048     * @note Elementary object items may have many contents
1049     *
1050     * @ingroup General
1051     */
1052    EAPI Evas_Object *elm_object_item_content_part_unset(Elm_Object_Item *it, const char *part);
1053
1054 #define elm_object_item_content_unset(it, content) elm_object_item_content_part_unset((it), (content))
1055
1056    /**
1057     * Set a label of an objec itemt
1058     *
1059     * @param it The Elementary object item
1060     * @param part The text part name to set (NULL for the default label)
1061     * @param label The new text of the label
1062     *
1063     * @note Elementary object items may have many labels
1064     *
1065     * @ingroup General
1066     */
1067    EAPI void elm_object_item_text_part_set(Elm_Object_Item *it, const char *part, const char *label);
1068
1069 #define elm_object_item_text_set(it, label) elm_object_item_text_part_set((it), NULL, (label))
1070
1071    /**
1072     * Get a label of an object
1073     *
1074     * @param it The Elementary object item
1075     * @param part The text part name to get (NULL for the default label)
1076     * @return text of the label or NULL for any error
1077     *
1078     * @note Elementary object items may have many labels
1079     *
1080     * @ingroup General
1081     */
1082    EAPI const char *elm_object_item_text_part_get(const Elm_Object_Item *it, const char *part);
1083
1084    /**
1085     * Set the text to read out when in accessibility mode
1086     *
1087     * @param obj The object which is to be described
1088     * @param txt The text that describes the widget to people with poor or no vision
1089     *
1090     * @ingroup General
1091     */
1092    EAPI void elm_object_access_info_set(Evas_Object *obj, const char *txt);
1093
1094    /**
1095     * Set the text to read out when in accessibility mode
1096     *
1097     * @param it The object item which is to be described
1098     * @param txt The text that describes the widget to people with poor or no vision
1099     *
1100     * @ingroup General
1101     */
1102    EAPI void elm_object_item_access_info_set(Elm_Object_Item *it, const char *txt);
1103
1104
1105 #define elm_object_item_text_get(it) elm_object_item_text_part_get((it), NULL)
1106
1107    /**
1108     * @}
1109     */
1110
1111    /**
1112     * @defgroup Caches Caches
1113     *
1114     * These are functions which let one fine-tune some cache values for
1115     * Elementary applications, thus allowing for performance adjustments.
1116     *
1117     * @{
1118     */
1119
1120    /**
1121     * @brief Flush all caches.
1122     *
1123     * Frees all data that was in cache and is not currently being used to reduce
1124     * memory usage. This frees Edje's, Evas' and Eet's cache. This is equivalent
1125     * to calling all of the following functions:
1126     * @li edje_file_cache_flush()
1127     * @li edje_collection_cache_flush()
1128     * @li eet_clearcache()
1129     * @li evas_image_cache_flush()
1130     * @li evas_font_cache_flush()
1131     * @li evas_render_dump()
1132     * @note Evas caches are flushed for every canvas associated with a window.
1133     *
1134     * @ingroup Caches
1135     */
1136    EAPI void         elm_all_flush(void);
1137
1138    /**
1139     * Get the configured cache flush interval time
1140     *
1141     * This gets the globally configured cache flush interval time, in
1142     * ticks
1143     *
1144     * @return The cache flush interval time
1145     * @ingroup Caches
1146     *
1147     * @see elm_all_flush()
1148     */
1149    EAPI int          elm_cache_flush_interval_get(void);
1150
1151    /**
1152     * Set the configured cache flush interval time
1153     *
1154     * This sets the globally configured cache flush interval time, in ticks
1155     *
1156     * @param size The cache flush interval time
1157     * @ingroup Caches
1158     *
1159     * @see elm_all_flush()
1160     */
1161    EAPI void         elm_cache_flush_interval_set(int size);
1162
1163    /**
1164     * Set the configured cache flush interval time for all applications on the
1165     * display
1166     *
1167     * This sets the globally configured cache flush interval time -- in ticks
1168     * -- for all applications on the display.
1169     *
1170     * @param size The cache flush interval time
1171     * @ingroup Caches
1172     */
1173    EAPI void         elm_cache_flush_interval_all_set(int size);
1174
1175    /**
1176     * Get the configured cache flush enabled state
1177     *
1178     * This gets the globally configured cache flush state - if it is enabled
1179     * or not. When cache flushing is enabled, elementary will regularly
1180     * (see elm_cache_flush_interval_get() ) flush caches and dump data out of
1181     * memory and allow usage to re-seed caches and data in memory where it
1182     * can do so. An idle application will thus minimise its memory usage as
1183     * data will be freed from memory and not be re-loaded as it is idle and
1184     * not rendering or doing anything graphically right now.
1185     *
1186     * @return The cache flush state
1187     * @ingroup Caches
1188     *
1189     * @see elm_all_flush()
1190     */
1191    EAPI Eina_Bool    elm_cache_flush_enabled_get(void);
1192
1193    /**
1194     * Set the configured cache flush enabled state
1195     *
1196     * This sets the globally configured cache flush enabled state
1197     *
1198     * @param size The cache flush enabled state
1199     * @ingroup Caches
1200     *
1201     * @see elm_all_flush()
1202     */
1203    EAPI void         elm_cache_flush_enabled_set(Eina_Bool enabled);
1204
1205    /**
1206     * Set the configured cache flush enabled state for all applications on the
1207     * display
1208     *
1209     * This sets the globally configured cache flush enabled state for all
1210     * applications on the display.
1211     *
1212     * @param size The cache flush enabled state
1213     * @ingroup Caches
1214     */
1215    EAPI void         elm_cache_flush_enabled_all_set(Eina_Bool enabled);
1216
1217    /**
1218     * Get the configured font cache size
1219     *
1220     * This gets the globally configured font cache size, in bytes
1221     *
1222     * @return The font cache size
1223     * @ingroup Caches
1224     */
1225    EAPI int          elm_font_cache_get(void);
1226
1227    /**
1228     * Set the configured font cache size
1229     *
1230     * This sets the globally configured font cache size, in bytes
1231     *
1232     * @param size The font cache size
1233     * @ingroup Caches
1234     */
1235    EAPI void         elm_font_cache_set(int size);
1236
1237    /**
1238     * Set the configured font cache size for all applications on the
1239     * display
1240     *
1241     * This sets the globally configured font cache size -- in bytes
1242     * -- for all applications on the display.
1243     *
1244     * @param size The font cache size
1245     * @ingroup Caches
1246     */
1247    EAPI void         elm_font_cache_all_set(int size);
1248
1249    /**
1250     * Get the configured image cache size
1251     *
1252     * This gets the globally configured image cache size, in bytes
1253     *
1254     * @return The image cache size
1255     * @ingroup Caches
1256     */
1257    EAPI int          elm_image_cache_get(void);
1258
1259    /**
1260     * Set the configured image cache size
1261     *
1262     * This sets the globally configured image cache size, in bytes
1263     *
1264     * @param size The image cache size
1265     * @ingroup Caches
1266     */
1267    EAPI void         elm_image_cache_set(int size);
1268
1269    /**
1270     * Set the configured image cache size for all applications on the
1271     * display
1272     *
1273     * This sets the globally configured image cache size -- in bytes
1274     * -- for all applications on the display.
1275     *
1276     * @param size The image cache size
1277     * @ingroup Caches
1278     */
1279    EAPI void         elm_image_cache_all_set(int size);
1280
1281    /**
1282     * Get the configured edje file cache size.
1283     *
1284     * This gets the globally configured edje file cache size, in number
1285     * of files.
1286     *
1287     * @return The edje file cache size
1288     * @ingroup Caches
1289     */
1290    EAPI int          elm_edje_file_cache_get(void);
1291
1292    /**
1293     * Set the configured edje file cache size
1294     *
1295     * This sets the globally configured edje file cache size, in number
1296     * of files.
1297     *
1298     * @param size The edje file cache size
1299     * @ingroup Caches
1300     */
1301    EAPI void         elm_edje_file_cache_set(int size);
1302
1303    /**
1304     * Set the configured edje file cache size for all applications on the
1305     * display
1306     *
1307     * This sets the globally configured edje file cache size -- in number
1308     * of files -- for all applications on the display.
1309     *
1310     * @param size The edje file cache size
1311     * @ingroup Caches
1312     */
1313    EAPI void         elm_edje_file_cache_all_set(int size);
1314
1315    /**
1316     * Get the configured edje collections (groups) cache size.
1317     *
1318     * This gets the globally configured edje collections cache size, in
1319     * number of collections.
1320     *
1321     * @return The edje collections cache size
1322     * @ingroup Caches
1323     */
1324    EAPI int          elm_edje_collection_cache_get(void);
1325
1326    /**
1327     * Set the configured edje collections (groups) cache size
1328     *
1329     * This sets the globally configured edje collections cache size, in
1330     * number of collections.
1331     *
1332     * @param size The edje collections cache size
1333     * @ingroup Caches
1334     */
1335    EAPI void         elm_edje_collection_cache_set(int size);
1336
1337    /**
1338     * Set the configured edje collections (groups) cache size for all
1339     * applications on the display
1340     *
1341     * This sets the globally configured edje collections cache size -- in
1342     * number of collections -- for all applications on the display.
1343     *
1344     * @param size The edje collections cache size
1345     * @ingroup Caches
1346     */
1347    EAPI void         elm_edje_collection_cache_all_set(int size);
1348
1349    /**
1350     * @}
1351     */
1352
1353    /**
1354     * @defgroup Scaling Widget Scaling
1355     *
1356     * Different widgets can be scaled independently. These functions
1357     * allow you to manipulate this scaling on a per-widget basis. The
1358     * object and all its children get their scaling factors multiplied
1359     * by the scale factor set. This is multiplicative, in that if a
1360     * child also has a scale size set it is in turn multiplied by its
1361     * parent's scale size. @c 1.0 means “don't scale”, @c 2.0 is
1362     * double size, @c 0.5 is half, etc.
1363     *
1364     * @ref general_functions_example_page "This" example contemplates
1365     * some of these functions.
1366     */
1367
1368    /**
1369     * Get the global scaling factor
1370     *
1371     * This gets the globally configured scaling factor that is applied to all
1372     * objects.
1373     *
1374     * @return The scaling factor
1375     * @ingroup Scaling
1376     */
1377    EAPI double       elm_scale_get(void);
1378
1379    /**
1380     * Set the global scaling factor
1381     *
1382     * This sets the globally configured scaling factor that is applied to all
1383     * objects.
1384     *
1385     * @param scale The scaling factor to set
1386     * @ingroup Scaling
1387     */
1388    EAPI void         elm_scale_set(double scale);
1389
1390    /**
1391     * Set the global scaling factor for all applications on the display
1392     *
1393     * This sets the globally configured scaling factor that is applied to all
1394     * objects for all applications.
1395     * @param scale The scaling factor to set
1396     * @ingroup Scaling
1397     */
1398    EAPI void         elm_scale_all_set(double scale);
1399
1400    /**
1401     * Set the scaling factor for a given Elementary object
1402     *
1403     * @param obj The Elementary to operate on
1404     * @param scale Scale factor (from @c 0.0 up, with @c 1.0 meaning
1405     * no scaling)
1406     *
1407     * @ingroup Scaling
1408     */
1409    EAPI void         elm_object_scale_set(Evas_Object *obj, double scale) EINA_ARG_NONNULL(1);
1410
1411    /**
1412     * Get the scaling factor for a given Elementary object
1413     *
1414     * @param obj The object
1415     * @return The scaling factor set by elm_object_scale_set()
1416     *
1417     * @ingroup Scaling
1418     */
1419    EAPI double       elm_object_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1420
1421    /**
1422     * @defgroup Password_last_show Password last input show
1423     *
1424     * Last show feature of password mode enables user to view
1425     * the last input entered for few seconds before masking it.
1426     * These functions allow to set this feature in password mode
1427     * of entry widget and also allow to manipulate the duration
1428     * for which the input has to be visible.
1429     *
1430     * @{
1431     */
1432
1433    /**
1434     * Get show last setting of password mode.
1435     *
1436     * This gets the show last input setting of password mode which might be
1437     * enabled or disabled.
1438     *
1439     * @return @c EINA_TRUE, if the last input show setting is enabled, @c EINA_FALSE
1440     *            if it's disabled.
1441     * @ingroup Password_last_show
1442     */
1443    EAPI Eina_Bool elm_password_show_last_get(void);
1444
1445    /**
1446     * Set show last setting in password mode.
1447     *
1448     * This enables or disables show last setting of password mode.
1449     *
1450     * @param password_show_last If EINA_TRUE enable's last input show in password mode.
1451     * @see elm_password_show_last_timeout_set()
1452     * @ingroup Password_last_show
1453     */
1454    EAPI void elm_password_show_last_set(Eina_Bool password_show_last);
1455
1456    /**
1457     * Get's the timeout value in last show password mode.
1458     *
1459     * This gets the time out value for which the last input entered in password
1460     * mode will be visible.
1461     *
1462     * @return The timeout value of last show password mode.
1463     * @ingroup Password_last_show
1464     */
1465    EAPI double elm_password_show_last_timeout_get(void);
1466
1467    /**
1468     * Set's the timeout value in last show password mode.
1469     *
1470     * This sets the time out value for which the last input entered in password
1471     * mode will be visible.
1472     *
1473     * @param password_show_last_timeout The timeout value.
1474     * @see elm_password_show_last_set()
1475     * @ingroup Password_last_show
1476     */
1477    EAPI void elm_password_show_last_timeout_set(double password_show_last_timeout);
1478
1479    /**
1480     * @}
1481     */
1482
1483    /**
1484     * @defgroup UI-Mirroring Selective Widget mirroring
1485     *
1486     * These functions allow you to set ui-mirroring on specific
1487     * widgets or the whole interface. Widgets can be in one of two
1488     * modes, automatic and manual.  Automatic means they'll be changed
1489     * according to the system mirroring mode and manual means only
1490     * explicit changes will matter. You are not supposed to change
1491     * mirroring state of a widget set to automatic, will mostly work,
1492     * but the behavior is not really defined.
1493     *
1494     * @{
1495     */
1496
1497    EAPI Eina_Bool    elm_mirrored_get(void);
1498    EAPI void         elm_mirrored_set(Eina_Bool mirrored);
1499
1500    /**
1501     * Get the system mirrored mode. This determines the default mirrored mode
1502     * of widgets.
1503     *
1504     * @return EINA_TRUE if mirrored is set, EINA_FALSE otherwise
1505     */
1506    EAPI Eina_Bool    elm_object_mirrored_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1507
1508    /**
1509     * Set the system mirrored mode. This determines the default mirrored mode
1510     * of widgets.
1511     *
1512     * @param mirrored EINA_TRUE to set mirrored mode, EINA_FALSE to unset it.
1513     */
1514    EAPI void         elm_object_mirrored_set(Evas_Object *obj, Eina_Bool mirrored) EINA_ARG_NONNULL(1);
1515
1516    /**
1517     * Returns the widget's mirrored mode setting.
1518     *
1519     * @param obj The widget.
1520     * @return mirrored mode setting of the object.
1521     *
1522     **/
1523    EAPI Eina_Bool    elm_object_mirrored_automatic_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1524
1525    /**
1526     * Sets the widget's mirrored mode setting.
1527     * When widget in automatic mode, it follows the system mirrored mode set by
1528     * elm_mirrored_set().
1529     * @param obj The widget.
1530     * @param automatic EINA_TRUE for auto mirrored mode. EINA_FALSE for manual.
1531     */
1532    EAPI void         elm_object_mirrored_automatic_set(Evas_Object *obj, Eina_Bool automatic) EINA_ARG_NONNULL(1);
1533
1534    /**
1535     * @}
1536     */
1537
1538    /**
1539     * Set the style to use by a widget
1540     *
1541     * Sets the style name that will define the appearance of a widget. Styles
1542     * vary from widget to widget and may also be defined by other themes
1543     * by means of extensions and overlays.
1544     *
1545     * @param obj The Elementary widget to style
1546     * @param style The style name to use
1547     *
1548     * @see elm_theme_extension_add()
1549     * @see elm_theme_extension_del()
1550     * @see elm_theme_overlay_add()
1551     * @see elm_theme_overlay_del()
1552     *
1553     * @ingroup Styles
1554     */
1555    EAPI void         elm_object_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
1556    /**
1557     * Get the style used by the widget
1558     *
1559     * This gets the style being used for that widget. Note that the string
1560     * pointer is only valid as longas the object is valid and the style doesn't
1561     * change.
1562     *
1563     * @param obj The Elementary widget to query for its style
1564     * @return The style name used
1565     *
1566     * @see elm_object_style_set()
1567     *
1568     * @ingroup Styles
1569     */
1570    EAPI const char  *elm_object_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1571
1572    /**
1573     * @defgroup Styles Styles
1574     *
1575     * Widgets can have different styles of look. These generic API's
1576     * set styles of widgets, if they support them (and if the theme(s)
1577     * do).
1578     *
1579     * @ref general_functions_example_page "This" example contemplates
1580     * some of these functions.
1581     */
1582
1583    /**
1584     * Set the disabled state of an Elementary object.
1585     *
1586     * @param obj The Elementary object to operate on
1587     * @param disabled The state to put in in: @c EINA_TRUE for
1588     *        disabled, @c EINA_FALSE for enabled
1589     *
1590     * Elementary objects can be @b disabled, in which state they won't
1591     * receive input and, in general, will be themed differently from
1592     * their normal state, usually greyed out. Useful for contexts
1593     * where you don't want your users to interact with some of the
1594     * parts of you interface.
1595     *
1596     * This sets the state for the widget, either disabling it or
1597     * enabling it back.
1598     *
1599     * @ingroup Styles
1600     */
1601    EAPI void         elm_object_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
1602
1603    /**
1604     * Get the disabled state of an Elementary object.
1605     *
1606     * @param obj The Elementary object to operate on
1607     * @return @c EINA_TRUE, if the widget is disabled, @c EINA_FALSE
1608     *            if it's enabled (or on errors)
1609     *
1610     * This gets the state of the widget, which might be enabled or disabled.
1611     *
1612     * @ingroup Styles
1613     */
1614    EAPI Eina_Bool    elm_object_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1615
1616    /**
1617     * @defgroup WidgetNavigation Widget Tree Navigation.
1618     *
1619     * How to check if an Evas Object is an Elementary widget? How to
1620     * get the first elementary widget that is parent of the given
1621     * object?  These are all covered in widget tree navigation.
1622     *
1623     * @ref general_functions_example_page "This" example contemplates
1624     * some of these functions.
1625     */
1626
1627    /**
1628     * Check if the given Evas Object is an Elementary widget.
1629     *
1630     * @param obj the object to query.
1631     * @return @c EINA_TRUE if it is an elementary widget variant,
1632     *         @c EINA_FALSE otherwise
1633     * @ingroup WidgetNavigation
1634     */
1635    EAPI Eina_Bool    elm_object_widget_check(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1636
1637    /**
1638     * Get the first parent of the given object that is an Elementary
1639     * widget.
1640     *
1641     * @param obj the Elementary object to query parent from.
1642     * @return the parent object that is an Elementary widget, or @c
1643     *         NULL, if it was not found.
1644     *
1645     * Use this to query for an object's parent widget.
1646     *
1647     * @note Most of Elementary users wouldn't be mixing non-Elementary
1648     * smart objects in the objects tree of an application, as this is
1649     * an advanced usage of Elementary with Evas. So, except for the
1650     * application's window, which is the root of that tree, all other
1651     * objects would have valid Elementary widget parents.
1652     *
1653     * @ingroup WidgetNavigation
1654     */
1655    EAPI Evas_Object *elm_object_parent_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1656
1657    /**
1658     * Get the top level parent of an Elementary widget.
1659     *
1660     * @param obj The object to query.
1661     * @return The top level Elementary widget, or @c NULL if parent cannot be
1662     * found.
1663     * @ingroup WidgetNavigation
1664     */
1665    EAPI Evas_Object *elm_object_top_widget_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1666
1667    /**
1668     * Get the string that represents this Elementary widget.
1669     *
1670     * @note Elementary is weird and exposes itself as a single
1671     *       Evas_Object_Smart_Class of type "elm_widget", so
1672     *       evas_object_type_get() always return that, making debug and
1673     *       language bindings hard. This function tries to mitigate this
1674     *       problem, but the solution is to change Elementary to use
1675     *       proper inheritance.
1676     *
1677     * @param obj the object to query.
1678     * @return Elementary widget name, or @c NULL if not a valid widget.
1679     * @ingroup WidgetNavigation
1680     */
1681    EAPI const char  *elm_object_widget_type_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
1682
1683    /**
1684     * @defgroup Config Elementary Config
1685     *
1686     * Elementary configuration is formed by a set options bounded to a
1687     * given @ref Profile profile, like @ref Theme theme, @ref Fingers
1688     * "finger size", etc. These are functions with which one syncronizes
1689     * changes made to those values to the configuration storing files, de
1690     * facto. You most probably don't want to use the functions in this
1691     * group unlees you're writing an elementary configuration manager.
1692     *
1693     * @{
1694     */
1695
1696    /**
1697     * Save back Elementary's configuration, so that it will persist on
1698     * future sessions.
1699     *
1700     * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
1701     * @ingroup Config
1702     *
1703     * This function will take effect -- thus, do I/O -- immediately. Use
1704     * it when you want to apply all configuration changes at once. The
1705     * current configuration set will get saved onto the current profile
1706     * configuration file.
1707     *
1708     */
1709    EAPI Eina_Bool    elm_config_save(void);
1710
1711    /**
1712     * Reload Elementary's configuration, bounded to current selected
1713     * profile.
1714     *
1715     * @return @c EINA_TRUE, when sucessful. @c EINA_FALSE, otherwise.
1716     * @ingroup Config
1717     *
1718     * Useful when you want to force reloading of configuration values for
1719     * a profile. If one removes user custom configuration directories,
1720     * for example, it will force a reload with system values insted.
1721     *
1722     */
1723    EAPI void         elm_config_reload(void);
1724
1725    /**
1726     * @}
1727     */
1728
1729    /**
1730     * @defgroup Profile Elementary Profile
1731     *
1732     * Profiles are pre-set options that affect the whole look-and-feel of
1733     * Elementary-based applications. There are, for example, profiles
1734     * aimed at desktop computer applications and others aimed at mobile,
1735     * touchscreen-based ones. You most probably don't want to use the
1736     * functions in this group unlees you're writing an elementary
1737     * configuration manager.
1738     *
1739     * @{
1740     */
1741
1742    /**
1743     * Get Elementary's profile in use.
1744     *
1745     * This gets the global profile that is applied to all Elementary
1746     * applications.
1747     *
1748     * @return The profile's name
1749     * @ingroup Profile
1750     */
1751    EAPI const char  *elm_profile_current_get(void);
1752
1753    /**
1754     * Get an Elementary's profile directory path in the filesystem. One
1755     * may want to fetch a system profile's dir or an user one (fetched
1756     * inside $HOME).
1757     *
1758     * @param profile The profile's name
1759     * @param is_user Whether to lookup for an user profile (@c EINA_TRUE)
1760     *                or a system one (@c EINA_FALSE)
1761     * @return The profile's directory path.
1762     * @ingroup Profile
1763     *
1764     * @note You must free it with elm_profile_dir_free().
1765     */
1766    EAPI const char  *elm_profile_dir_get(const char *profile, Eina_Bool is_user);
1767
1768    /**
1769     * Free an Elementary's profile directory path, as returned by
1770     * elm_profile_dir_get().
1771     *
1772     * @param p_dir The profile's path
1773     * @ingroup Profile
1774     *
1775     */
1776    EAPI void         elm_profile_dir_free(const char *p_dir);
1777
1778    /**
1779     * Get Elementary's list of available profiles.
1780     *
1781     * @return The profiles list. List node data are the profile name
1782     *         strings.
1783     * @ingroup Profile
1784     *
1785     * @note One must free this list, after usage, with the function
1786     *       elm_profile_list_free().
1787     */
1788    EAPI Eina_List   *elm_profile_list_get(void);
1789
1790    /**
1791     * Free Elementary's list of available profiles.
1792     *
1793     * @param l The profiles list, as returned by elm_profile_list_get().
1794     * @ingroup Profile
1795     *
1796     */
1797    EAPI void         elm_profile_list_free(Eina_List *l);
1798
1799    /**
1800     * Set Elementary's profile.
1801     *
1802     * This sets the global profile that is applied to Elementary
1803     * applications. Just the process the call comes from will be
1804     * affected.
1805     *
1806     * @param profile The profile's name
1807     * @ingroup Profile
1808     *
1809     */
1810    EAPI void         elm_profile_set(const char *profile);
1811
1812    /**
1813     * Set Elementary's profile.
1814     *
1815     * This sets the global profile that is applied to all Elementary
1816     * applications. All running Elementary windows will be affected.
1817     *
1818     * @param profile The profile's name
1819     * @ingroup Profile
1820     *
1821     */
1822    EAPI void         elm_profile_all_set(const char *profile);
1823
1824    /**
1825     * @}
1826     */
1827
1828    /**
1829     * @defgroup Engine Elementary Engine
1830     *
1831     * These are functions setting and querying which rendering engine
1832     * Elementary will use for drawing its windows' pixels.
1833     *
1834     * The following are the available engines:
1835     * @li "software_x11"
1836     * @li "fb"
1837     * @li "directfb"
1838     * @li "software_16_x11"
1839     * @li "software_8_x11"
1840     * @li "xrender_x11"
1841     * @li "opengl_x11"
1842     * @li "software_gdi"
1843     * @li "software_16_wince_gdi"
1844     * @li "sdl"
1845     * @li "software_16_sdl"
1846     * @li "opengl_sdl"
1847     * @li "buffer"
1848     *
1849     * @{
1850     */
1851
1852    /**
1853     * @brief Get Elementary's rendering engine in use.
1854     *
1855     * @return The rendering engine's name
1856     * @note there's no need to free the returned string, here.
1857     *
1858     * This gets the global rendering engine that is applied to all Elementary
1859     * applications.
1860     *
1861     * @see elm_engine_set()
1862     */
1863    EAPI const char  *elm_engine_current_get(void);
1864
1865    /**
1866     * @brief Set Elementary's rendering engine for use.
1867     *
1868     * @param engine The rendering engine's name
1869     *
1870     * This sets global rendering engine that is applied to all Elementary
1871     * applications. Note that it will take effect only to Elementary windows
1872     * created after this is called.
1873     *
1874     * @see elm_win_add()
1875     */
1876    EAPI void         elm_engine_set(const char *engine);
1877
1878    /**
1879     * @}
1880     */
1881
1882    /**
1883     * @defgroup Fonts Elementary Fonts
1884     *
1885     * These are functions dealing with font rendering, selection and the
1886     * like for Elementary applications. One might fetch which system
1887     * fonts are there to use and set custom fonts for individual classes
1888     * of UI items containing text (text classes).
1889     *
1890     * @{
1891     */
1892
1893   typedef struct _Elm_Text_Class
1894     {
1895        const char *name;
1896        const char *desc;
1897     } Elm_Text_Class;
1898
1899   typedef struct _Elm_Font_Overlay
1900     {
1901        const char     *text_class;
1902        const char     *font;
1903        Evas_Font_Size  size;
1904     } Elm_Font_Overlay;
1905
1906   typedef struct _Elm_Font_Properties
1907     {
1908        const char *name;
1909        Eina_List  *styles;
1910     } Elm_Font_Properties;
1911
1912    /**
1913     * Get Elementary's list of supported text classes.
1914     *
1915     * @return The text classes list, with @c Elm_Text_Class blobs as data.
1916     * @ingroup Fonts
1917     *
1918     * Release the list with elm_text_classes_list_free().
1919     */
1920    EAPI const Eina_List     *elm_text_classes_list_get(void);
1921
1922    /**
1923     * Free Elementary's list of supported text classes.
1924     *
1925     * @ingroup Fonts
1926     *
1927     * @see elm_text_classes_list_get().
1928     */
1929    EAPI void                 elm_text_classes_list_free(const Eina_List *list);
1930
1931    /**
1932     * Get Elementary's list of font overlays, set with
1933     * elm_font_overlay_set().
1934     *
1935     * @return The font overlays list, with @c Elm_Font_Overlay blobs as
1936     * data.
1937     *
1938     * @ingroup Fonts
1939     *
1940     * For each text class, one can set a <b>font overlay</b> for it,
1941     * overriding the default font properties for that class coming from
1942     * the theme in use. There is no need to free this list.
1943     *
1944     * @see elm_font_overlay_set() and elm_font_overlay_unset().
1945     */
1946    EAPI const Eina_List     *elm_font_overlay_list_get(void);
1947
1948    /**
1949     * Set a font overlay for a given Elementary text class.
1950     *
1951     * @param text_class Text class name
1952     * @param font Font name and style string
1953     * @param size Font size
1954     *
1955     * @ingroup Fonts
1956     *
1957     * @p font has to be in the format returned by
1958     * elm_font_fontconfig_name_get(). @see elm_font_overlay_list_get()
1959     * and elm_font_overlay_unset().
1960     */
1961    EAPI void                 elm_font_overlay_set(const char *text_class, const char *font, Evas_Font_Size size);
1962
1963    /**
1964     * Unset a font overlay for a given Elementary text class.
1965     *
1966     * @param text_class Text class name
1967     *
1968     * @ingroup Fonts
1969     *
1970     * This will bring back text elements belonging to text class
1971     * @p text_class back to their default font settings.
1972     */
1973    EAPI void                 elm_font_overlay_unset(const char *text_class);
1974
1975    /**
1976     * Apply the changes made with elm_font_overlay_set() and
1977     * elm_font_overlay_unset() on the current Elementary window.
1978     *
1979     * @ingroup Fonts
1980     *
1981     * This applies all font overlays set to all objects in the UI.
1982     */
1983    EAPI void                 elm_font_overlay_apply(void);
1984
1985    /**
1986     * Apply the changes made with elm_font_overlay_set() and
1987     * elm_font_overlay_unset() on all Elementary application windows.
1988     *
1989     * @ingroup Fonts
1990     *
1991     * This applies all font overlays set to all objects in the UI.
1992     */
1993    EAPI void                 elm_font_overlay_all_apply(void);
1994
1995    /**
1996     * Translate a font (family) name string in fontconfig's font names
1997     * syntax into an @c Elm_Font_Properties struct.
1998     *
1999     * @param font The font name and styles string
2000     * @return the font properties struct
2001     *
2002     * @ingroup Fonts
2003     *
2004     * @note The reverse translation can be achived with
2005     * elm_font_fontconfig_name_get(), for one style only (single font
2006     * instance, not family).
2007     */
2008    EAPI Elm_Font_Properties *elm_font_properties_get(const char *font) EINA_ARG_NONNULL(1);
2009
2010    /**
2011     * Free font properties return by elm_font_properties_get().
2012     *
2013     * @param efp the font properties struct
2014     *
2015     * @ingroup Fonts
2016     */
2017    EAPI void                 elm_font_properties_free(Elm_Font_Properties *efp) EINA_ARG_NONNULL(1);
2018
2019    /**
2020     * Translate a font name, bound to a style, into fontconfig's font names
2021     * syntax.
2022     *
2023     * @param name The font (family) name
2024     * @param style The given style (may be @c NULL)
2025     *
2026     * @return the font name and style string
2027     *
2028     * @ingroup Fonts
2029     *
2030     * @note The reverse translation can be achived with
2031     * elm_font_properties_get(), for one style only (single font
2032     * instance, not family).
2033     */
2034    EAPI const char          *elm_font_fontconfig_name_get(const char *name, const char *style) EINA_ARG_NONNULL(1);
2035
2036    /**
2037     * Free the font string return by elm_font_fontconfig_name_get().
2038     *
2039     * @param efp the font properties struct
2040     *
2041     * @ingroup Fonts
2042     */
2043    EAPI void                 elm_font_fontconfig_name_free(const char *name) EINA_ARG_NONNULL(1);
2044
2045    /**
2046     * Create a font hash table of available system fonts.
2047     *
2048     * One must call it with @p list being the return value of
2049     * evas_font_available_list(). The hash will be indexed by font
2050     * (family) names, being its values @c Elm_Font_Properties blobs.
2051     *
2052     * @param list The list of available system fonts, as returned by
2053     * evas_font_available_list().
2054     * @return the font hash.
2055     *
2056     * @ingroup Fonts
2057     *
2058     * @note The user is supposed to get it populated at least with 3
2059     * default font families (Sans, Serif, Monospace), which should be
2060     * present on most systems.
2061     */
2062    EAPI Eina_Hash           *elm_font_available_hash_add(Eina_List *list);
2063
2064    /**
2065     * Free the hash return by elm_font_available_hash_add().
2066     *
2067     * @param hash the hash to be freed.
2068     *
2069     * @ingroup Fonts
2070     */
2071    EAPI void                 elm_font_available_hash_del(Eina_Hash *hash);
2072
2073    /**
2074     * @}
2075     */
2076
2077    /**
2078     * @defgroup Fingers Fingers
2079     *
2080     * Elementary is designed to be finger-friendly for touchscreens,
2081     * and so in addition to scaling for display resolution, it can
2082     * also scale based on finger "resolution" (or size). You can then
2083     * customize the granularity of the areas meant to receive clicks
2084     * on touchscreens.
2085     *
2086     * Different profiles may have pre-set values for finger sizes.
2087     *
2088     * @ref general_functions_example_page "This" example contemplates
2089     * some of these functions.
2090     *
2091     * @{
2092     */
2093
2094    /**
2095     * Get the configured "finger size"
2096     *
2097     * @return The finger size
2098     *
2099     * This gets the globally configured finger size, <b>in pixels</b>
2100     *
2101     * @ingroup Fingers
2102     */
2103    EAPI Evas_Coord       elm_finger_size_get(void);
2104
2105    /**
2106     * Set the configured finger size
2107     *
2108     * This sets the globally configured finger size in pixels
2109     *
2110     * @param size The finger size
2111     * @ingroup Fingers
2112     */
2113    EAPI void             elm_finger_size_set(Evas_Coord size);
2114
2115    /**
2116     * Set the configured finger size for all applications on the display
2117     *
2118     * This sets the globally configured finger size in pixels for all
2119     * applications on the display
2120     *
2121     * @param size The finger size
2122     * @ingroup Fingers
2123     */
2124    EAPI void             elm_finger_size_all_set(Evas_Coord size);
2125
2126    /**
2127     * @}
2128     */
2129
2130    /**
2131     * @defgroup Focus Focus
2132     *
2133     * An Elementary application has, at all times, one (and only one)
2134     * @b focused object. This is what determines where the input
2135     * events go to within the application's window. Also, focused
2136     * objects can be decorated differently, in order to signal to the
2137     * user where the input is, at a given moment.
2138     *
2139     * Elementary applications also have the concept of <b>focus
2140     * chain</b>: one can cycle through all the windows' focusable
2141     * objects by input (tab key) or programmatically. The default
2142     * focus chain for an application is the one define by the order in
2143     * which the widgets where added in code. One will cycle through
2144     * top level widgets, and, for each one containg sub-objects, cycle
2145     * through them all, before returning to the level
2146     * above. Elementary also allows one to set @b custom focus chains
2147     * for their applications.
2148     *
2149     * Besides the focused decoration a widget may exhibit, when it
2150     * gets focus, Elementary has a @b global focus highlight object
2151     * that can be enabled for a window. If one chooses to do so, this
2152     * extra highlight effect will surround the current focused object,
2153     * too.
2154     *
2155     * @note Some Elementary widgets are @b unfocusable, after
2156     * creation, by their very nature: they are not meant to be
2157     * interacted with input events, but are there just for visual
2158     * purposes.
2159     *
2160     * @ref general_functions_example_page "This" example contemplates
2161     * some of these functions.
2162     */
2163
2164    /**
2165     * Get the enable status of the focus highlight
2166     *
2167     * This gets whether the highlight on focused objects is enabled or not
2168     * @ingroup Focus
2169     */
2170    EAPI Eina_Bool        elm_focus_highlight_enabled_get(void);
2171
2172    /**
2173     * Set the enable status of the focus highlight
2174     *
2175     * Set whether to show or not the highlight on focused objects
2176     * @param enable Enable highlight if EINA_TRUE, disable otherwise
2177     * @ingroup Focus
2178     */
2179    EAPI void             elm_focus_highlight_enabled_set(Eina_Bool enable);
2180
2181    /**
2182     * Get the enable status of the highlight animation
2183     *
2184     * Get whether the focus highlight, if enabled, will animate its switch from
2185     * one object to the next
2186     * @ingroup Focus
2187     */
2188    EAPI Eina_Bool        elm_focus_highlight_animate_get(void);
2189
2190    /**
2191     * Set the enable status of the highlight animation
2192     *
2193     * Set whether the focus highlight, if enabled, will animate its switch from
2194     * one object to the next
2195     * @param animate Enable animation if EINA_TRUE, disable otherwise
2196     * @ingroup Focus
2197     */
2198    EAPI void             elm_focus_highlight_animate_set(Eina_Bool animate);
2199
2200    /**
2201     * Get the whether an Elementary object has the focus or not.
2202     *
2203     * @param obj The Elementary object to get the information from
2204     * @return @c EINA_TRUE, if the object is focused, @c EINA_FALSE if
2205     *            not (and on errors).
2206     *
2207     * @see elm_object_focus_set()
2208     *
2209     * @ingroup Focus
2210     */
2211    EAPI Eina_Bool        elm_object_focus_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2212
2213    /**
2214     * Set/unset focus to a given Elementary object.
2215     *
2216     * @param obj The Elementary object to operate on.
2217     * @param enable @c EINA_TRUE Set focus to a given object,
2218     *               @c EINA_FALSE Unset focus to a given object.
2219     *
2220     * @note When you set focus to this object, if it can handle focus, will
2221     * take the focus away from the one who had it previously and will, for
2222     * now on, be the one receiving input events. Unsetting focus will remove
2223     * the focus from @p obj, passing it back to the previous element in the
2224     * focus chain list.
2225     *
2226     * @see elm_object_focus_get(), elm_object_focus_custom_chain_get()
2227     *
2228     * @ingroup Focus
2229     */
2230    EAPI void             elm_object_focus_set(Evas_Object *obj, Eina_Bool focus) EINA_ARG_NONNULL(1);
2231
2232    /**
2233     * Make a given Elementary object the focused one.
2234     *
2235     * @param obj The Elementary object to make focused.
2236     *
2237     * @note This object, if it can handle focus, will take the focus
2238     * away from the one who had it previously and will, for now on, be
2239     * the one receiving input events.
2240     *
2241     * @see elm_object_focus_get()
2242     * @deprecated use elm_object_focus_set() instead.
2243     *
2244     * @ingroup Focus
2245     */
2246    EINA_DEPRECATED EAPI void             elm_object_focus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2247
2248    /**
2249     * Remove the focus from an Elementary object
2250     *
2251     * @param obj The Elementary to take focus from
2252     *
2253     * This removes the focus from @p obj, passing it back to the
2254     * previous element in the focus chain list.
2255     *
2256     * @see elm_object_focus() and elm_object_focus_custom_chain_get()
2257     * @deprecated use elm_object_focus_set() instead.
2258     *
2259     * @ingroup Focus
2260     */
2261    EINA_DEPRECATED EAPI void             elm_object_unfocus(Evas_Object *obj) EINA_ARG_NONNULL(1);
2262
2263    /**
2264     * Set the ability for an Element object to be focused
2265     *
2266     * @param obj The Elementary object to operate on
2267     * @param enable @c EINA_TRUE if the object can be focused, @c
2268     *        EINA_FALSE if not (and on errors)
2269     *
2270     * This sets whether the object @p obj is able to take focus or
2271     * not. Unfocusable objects do nothing when programmatically
2272     * focused, being the nearest focusable parent object the one
2273     * really getting focus. Also, when they receive mouse input, they
2274     * will get the event, but not take away the focus from where it
2275     * was previously.
2276     *
2277     * @ingroup Focus
2278     */
2279    EAPI void             elm_object_focus_allow_set(Evas_Object *obj, Eina_Bool enable) EINA_ARG_NONNULL(1);
2280
2281    /**
2282     * Get whether an Elementary object is focusable or not
2283     *
2284     * @param obj The Elementary object to operate on
2285     * @return @c EINA_TRUE if the object is allowed to be focused, @c
2286     *             EINA_FALSE if not (and on errors)
2287     *
2288     * @note Objects which are meant to be interacted with by input
2289     * events are created able to be focused, by default. All the
2290     * others are not.
2291     *
2292     * @ingroup Focus
2293     */
2294    EAPI Eina_Bool        elm_object_focus_allow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2295
2296    /**
2297     * Set custom focus chain.
2298     *
2299     * This function overwrites any previous custom focus chain within
2300     * the list of objects. The previous list will be deleted and this list
2301     * will be managed by elementary. After it is set, don't modify it.
2302     *
2303     * @note On focus cycle, only will be evaluated children of this container.
2304     *
2305     * @param obj The container object
2306     * @param objs Chain of objects to pass focus
2307     * @ingroup Focus
2308     */
2309    EAPI void             elm_object_focus_custom_chain_set(Evas_Object *obj, Eina_List *objs) EINA_ARG_NONNULL(1);
2310
2311    /**
2312     * Unset a custom focus chain on a given Elementary widget
2313     *
2314     * @param obj The container object to remove focus chain from
2315     *
2316     * Any focus chain previously set on @p obj (for its child objects)
2317     * is removed entirely after this call.
2318     *
2319     * @ingroup Focus
2320     */
2321    EAPI void             elm_object_focus_custom_chain_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
2322
2323    /**
2324     * Get custom focus chain
2325     *
2326     * @param obj The container object
2327     * @ingroup Focus
2328     */
2329    EAPI const Eina_List *elm_object_focus_custom_chain_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2330
2331    /**
2332     * Append object to custom focus chain.
2333     *
2334     * @note If relative_child equal to NULL or not in custom chain, the object
2335     * will be added in end.
2336     *
2337     * @note On focus cycle, only will be evaluated children of this container.
2338     *
2339     * @param obj The container object
2340     * @param child The child to be added in custom chain
2341     * @param relative_child The relative object to position the child
2342     * @ingroup Focus
2343     */
2344    EAPI void             elm_object_focus_custom_chain_append(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2345
2346    /**
2347     * Prepend object to custom focus chain.
2348     *
2349     * @note If relative_child equal to NULL or not in custom chain, the object
2350     * will be added in begin.
2351     *
2352     * @note On focus cycle, only will be evaluated children of this container.
2353     *
2354     * @param obj The container object
2355     * @param child The child to be added in custom chain
2356     * @param relative_child The relative object to position the child
2357     * @ingroup Focus
2358     */
2359    EAPI void             elm_object_focus_custom_chain_prepend(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child) EINA_ARG_NONNULL(1, 2);
2360
2361    /**
2362     * Give focus to next object in object tree.
2363     *
2364     * Give focus to next object in focus chain of one object sub-tree.
2365     * If the last object of chain already have focus, the focus will go to the
2366     * first object of chain.
2367     *
2368     * @param obj The object root of sub-tree
2369     * @param dir Direction to cycle the focus
2370     *
2371     * @ingroup Focus
2372     */
2373    EAPI void             elm_object_focus_cycle(Evas_Object *obj, Elm_Focus_Direction dir) EINA_ARG_NONNULL(1);
2374
2375    /**
2376     * Give focus to near object in one direction.
2377     *
2378     * Give focus to near object in direction of one object.
2379     * If none focusable object in given direction, the focus will not change.
2380     *
2381     * @param obj The reference object
2382     * @param x Horizontal component of direction to focus
2383     * @param y Vertical component of direction to focus
2384     *
2385     * @ingroup Focus
2386     */
2387    EAPI void             elm_object_focus_direction_go(Evas_Object *obj, int x, int y) EINA_ARG_NONNULL(1);
2388
2389    /**
2390     * Make the elementary object and its children to be unfocusable
2391     * (or focusable).
2392     *
2393     * @param obj The Elementary object to operate on
2394     * @param tree_unfocusable @c EINA_TRUE for unfocusable,
2395     *        @c EINA_FALSE for focusable.
2396     *
2397     * This sets whether the object @p obj and its children objects
2398     * are able to take focus or not. If the tree is set as unfocusable,
2399     * newest focused object which is not in this tree will get focus.
2400     * This API can be helpful for an object to be deleted.
2401     * When an object will be deleted soon, it and its children may not
2402     * want to get focus (by focus reverting or by other focus controls).
2403     * Then, just use this API before deleting.
2404     *
2405     * @see elm_object_tree_unfocusable_get()
2406     *
2407     * @ingroup Focus
2408     */
2409    EAPI void             elm_object_tree_unfocusable_set(Evas_Object *obj, Eina_Bool tree_unfocusable); EINA_ARG_NONNULL(1);
2410
2411    /**
2412     * Get whether an Elementary object and its children are unfocusable or not.
2413     *
2414     * @param obj The Elementary object to get the information from
2415     * @return @c EINA_TRUE, if the tree is unfocussable,
2416     *         @c EINA_FALSE if not (and on errors).
2417     *
2418     * @see elm_object_tree_unfocusable_set()
2419     *
2420     * @ingroup Focus
2421     */
2422    EAPI Eina_Bool        elm_object_tree_unfocusable_get(const Evas_Object *obj); EINA_ARG_NONNULL(1);
2423
2424    /**
2425     * @defgroup Scrolling Scrolling
2426     *
2427     * These are functions setting how scrollable views in Elementary
2428     * widgets should behave on user interaction.
2429     *
2430     * @{
2431     */
2432
2433    /**
2434     * Get whether scrollers should bounce when they reach their
2435     * viewport's edge during a scroll.
2436     *
2437     * @return the thumb scroll bouncing state
2438     *
2439     * This is the default behavior for touch screens, in general.
2440     * @ingroup Scrolling
2441     */
2442    EAPI Eina_Bool        elm_scroll_bounce_enabled_get(void);
2443
2444    /**
2445     * Set whether scrollers should bounce when they reach their
2446     * viewport's edge during a scroll.
2447     *
2448     * @param enabled the thumb scroll bouncing state
2449     *
2450     * @see elm_thumbscroll_bounce_enabled_get()
2451     * @ingroup Scrolling
2452     */
2453    EAPI void             elm_scroll_bounce_enabled_set(Eina_Bool enabled);
2454
2455    /**
2456     * Set whether scrollers should bounce when they reach their
2457     * viewport's edge during a scroll, for all Elementary application
2458     * windows.
2459     *
2460     * @param enabled the thumb scroll bouncing state
2461     *
2462     * @see elm_thumbscroll_bounce_enabled_get()
2463     * @ingroup Scrolling
2464     */
2465    EAPI void             elm_scroll_bounce_enabled_all_set(Eina_Bool enabled);
2466
2467    /**
2468     * Get the amount of inertia a scroller will impose at bounce
2469     * animations.
2470     *
2471     * @return the thumb scroll bounce friction
2472     *
2473     * @ingroup Scrolling
2474     */
2475    EAPI double           elm_scroll_bounce_friction_get(void);
2476
2477    /**
2478     * Set the amount of inertia a scroller will impose at bounce
2479     * animations.
2480     *
2481     * @param friction the thumb scroll bounce friction
2482     *
2483     * @see elm_thumbscroll_bounce_friction_get()
2484     * @ingroup Scrolling
2485     */
2486    EAPI void             elm_scroll_bounce_friction_set(double friction);
2487
2488    /**
2489     * Set the amount of inertia a scroller will impose at bounce
2490     * animations, for all Elementary application windows.
2491     *
2492     * @param friction the thumb scroll bounce friction
2493     *
2494     * @see elm_thumbscroll_bounce_friction_get()
2495     * @ingroup Scrolling
2496     */
2497    EAPI void             elm_scroll_bounce_friction_all_set(double friction);
2498
2499    /**
2500     * Get the amount of inertia a <b>paged</b> scroller will impose at
2501     * page fitting animations.
2502     *
2503     * @return the page scroll friction
2504     *
2505     * @ingroup Scrolling
2506     */
2507    EAPI double           elm_scroll_page_scroll_friction_get(void);
2508
2509    /**
2510     * Set the amount of inertia a <b>paged</b> scroller will impose at
2511     * page fitting animations.
2512     *
2513     * @param friction the page scroll friction
2514     *
2515     * @see elm_thumbscroll_page_scroll_friction_get()
2516     * @ingroup Scrolling
2517     */
2518    EAPI void             elm_scroll_page_scroll_friction_set(double friction);
2519
2520    /**
2521     * Set the amount of inertia a <b>paged</b> scroller will impose at
2522     * page fitting animations, for all Elementary application windows.
2523     *
2524     * @param friction the page scroll friction
2525     *
2526     * @see elm_thumbscroll_page_scroll_friction_get()
2527     * @ingroup Scrolling
2528     */
2529    EAPI void             elm_scroll_page_scroll_friction_all_set(double friction);
2530
2531    /**
2532     * Get the amount of inertia a scroller will impose at region bring
2533     * animations.
2534     *
2535     * @return the bring in scroll friction
2536     *
2537     * @ingroup Scrolling
2538     */
2539    EAPI double           elm_scroll_bring_in_scroll_friction_get(void);
2540
2541    /**
2542     * Set the amount of inertia a scroller will impose at region bring
2543     * animations.
2544     *
2545     * @param friction the bring in scroll friction
2546     *
2547     * @see elm_thumbscroll_bring_in_scroll_friction_get()
2548     * @ingroup Scrolling
2549     */
2550    EAPI void             elm_scroll_bring_in_scroll_friction_set(double friction);
2551
2552    /**
2553     * Set the amount of inertia a scroller will impose at region bring
2554     * animations, for all Elementary application windows.
2555     *
2556     * @param friction the bring in scroll friction
2557     *
2558     * @see elm_thumbscroll_bring_in_scroll_friction_get()
2559     * @ingroup Scrolling
2560     */
2561    EAPI void             elm_scroll_bring_in_scroll_friction_all_set(double friction);
2562
2563    /**
2564     * Get the amount of inertia scrollers will impose at animations
2565     * triggered by Elementary widgets' zooming API.
2566     *
2567     * @return the zoom friction
2568     *
2569     * @ingroup Scrolling
2570     */
2571    EAPI double           elm_scroll_zoom_friction_get(void);
2572
2573    /**
2574     * Set the amount of inertia scrollers will impose at animations
2575     * triggered by Elementary widgets' zooming API.
2576     *
2577     * @param friction the zoom friction
2578     *
2579     * @see elm_thumbscroll_zoom_friction_get()
2580     * @ingroup Scrolling
2581     */
2582    EAPI void             elm_scroll_zoom_friction_set(double friction);
2583
2584    /**
2585     * Set the amount of inertia scrollers will impose at animations
2586     * triggered by Elementary widgets' zooming API, for all Elementary
2587     * application windows.
2588     *
2589     * @param friction the zoom friction
2590     *
2591     * @see elm_thumbscroll_zoom_friction_get()
2592     * @ingroup Scrolling
2593     */
2594    EAPI void             elm_scroll_zoom_friction_all_set(double friction);
2595
2596    /**
2597     * Get whether scrollers should be draggable from any point in their
2598     * views.
2599     *
2600     * @return the thumb scroll state
2601     *
2602     * @note This is the default behavior for touch screens, in general.
2603     * @note All other functions namespaced with "thumbscroll" will only
2604     *       have effect if this mode is enabled.
2605     *
2606     * @ingroup Scrolling
2607     */
2608    EAPI Eina_Bool        elm_scroll_thumbscroll_enabled_get(void);
2609
2610    /**
2611     * Set whether scrollers should be draggable from any point in their
2612     * views.
2613     *
2614     * @param enabled the thumb scroll state
2615     *
2616     * @see elm_thumbscroll_enabled_get()
2617     * @ingroup Scrolling
2618     */
2619    EAPI void             elm_scroll_thumbscroll_enabled_set(Eina_Bool enabled);
2620
2621    /**
2622     * Set whether scrollers should be draggable from any point in their
2623     * views, for all Elementary application windows.
2624     *
2625     * @param enabled the thumb scroll state
2626     *
2627     * @see elm_thumbscroll_enabled_get()
2628     * @ingroup Scrolling
2629     */
2630    EAPI void             elm_scroll_thumbscroll_enabled_all_set(Eina_Bool enabled);
2631
2632    /**
2633     * Get the number of pixels one should travel while dragging a
2634     * scroller's view to actually trigger scrolling.
2635     *
2636     * @return the thumb scroll threshould
2637     *
2638     * One would use higher values for touch screens, in general, because
2639     * of their inherent imprecision.
2640     * @ingroup Scrolling
2641     */
2642    EAPI unsigned int     elm_scroll_thumbscroll_threshold_get(void);
2643
2644    /**
2645     * Set the number of pixels one should travel while dragging a
2646     * scroller's view to actually trigger scrolling.
2647     *
2648     * @param threshold the thumb scroll threshould
2649     *
2650     * @see elm_thumbscroll_threshould_get()
2651     * @ingroup Scrolling
2652     */
2653    EAPI void             elm_scroll_thumbscroll_threshold_set(unsigned int threshold);
2654
2655    /**
2656     * Set the number of pixels one should travel while dragging a
2657     * scroller's view to actually trigger scrolling, for all Elementary
2658     * application windows.
2659     *
2660     * @param threshold the thumb scroll threshould
2661     *
2662     * @see elm_thumbscroll_threshould_get()
2663     * @ingroup Scrolling
2664     */
2665    EAPI void             elm_scroll_thumbscroll_threshold_all_set(unsigned int threshold);
2666
2667    /**
2668     * Get the minimum speed of mouse cursor movement which will trigger
2669     * list self scrolling animation after a mouse up event
2670     * (pixels/second).
2671     *
2672     * @return the thumb scroll momentum threshould
2673     *
2674     * @ingroup Scrolling
2675     */
2676    EAPI double           elm_scroll_thumbscroll_momentum_threshold_get(void);
2677
2678    /**
2679     * Set the minimum speed of mouse cursor movement which will trigger
2680     * list self scrolling animation after a mouse up event
2681     * (pixels/second).
2682     *
2683     * @param threshold the thumb scroll momentum threshould
2684     *
2685     * @see elm_thumbscroll_momentum_threshould_get()
2686     * @ingroup Scrolling
2687     */
2688    EAPI void             elm_scroll_thumbscroll_momentum_threshold_set(double threshold);
2689
2690    /**
2691     * Set the minimum speed of mouse cursor movement which will trigger
2692     * list self scrolling animation after a mouse up event
2693     * (pixels/second), for all Elementary application windows.
2694     *
2695     * @param threshold the thumb scroll momentum threshould
2696     *
2697     * @see elm_thumbscroll_momentum_threshould_get()
2698     * @ingroup Scrolling
2699     */
2700    EAPI void             elm_scroll_thumbscroll_momentum_threshold_all_set(double threshold);
2701
2702    /**
2703     * Get the amount of inertia a scroller will impose at self scrolling
2704     * animations.
2705     *
2706     * @return the thumb scroll friction
2707     *
2708     * @ingroup Scrolling
2709     */
2710    EAPI double           elm_scroll_thumbscroll_friction_get(void);
2711
2712    /**
2713     * Set the amount of inertia a scroller will impose at self scrolling
2714     * animations.
2715     *
2716     * @param friction the thumb scroll friction
2717     *
2718     * @see elm_thumbscroll_friction_get()
2719     * @ingroup Scrolling
2720     */
2721    EAPI void             elm_scroll_thumbscroll_friction_set(double friction);
2722
2723    /**
2724     * Set the amount of inertia a scroller will impose at self scrolling
2725     * animations, for all Elementary application windows.
2726     *
2727     * @param friction the thumb scroll friction
2728     *
2729     * @see elm_thumbscroll_friction_get()
2730     * @ingroup Scrolling
2731     */
2732    EAPI void             elm_scroll_thumbscroll_friction_all_set(double friction);
2733
2734    /**
2735     * Get the amount of lag between your actual mouse cursor dragging
2736     * movement and a scroller's view movement itself, while pushing it
2737     * into bounce state manually.
2738     *
2739     * @return the thumb scroll border friction
2740     *
2741     * @ingroup Scrolling
2742     */
2743    EAPI double           elm_scroll_thumbscroll_border_friction_get(void);
2744
2745    /**
2746     * Set the amount of lag between your actual mouse cursor dragging
2747     * movement and a scroller's view movement itself, while pushing it
2748     * into bounce state manually.
2749     *
2750     * @param friction the thumb scroll border friction. @c 0.0 for
2751     *        perfect synchrony between two movements, @c 1.0 for maximum
2752     *        lag.
2753     *
2754     * @see elm_thumbscroll_border_friction_get()
2755     * @note parameter value will get bound to 0.0 - 1.0 interval, always
2756     *
2757     * @ingroup Scrolling
2758     */
2759    EAPI void             elm_scroll_thumbscroll_border_friction_set(double friction);
2760
2761    /**
2762     * Set the amount of lag between your actual mouse cursor dragging
2763     * movement and a scroller's view movement itself, while pushing it
2764     * into bounce state manually, for all Elementary application windows.
2765     *
2766     * @param friction the thumb scroll border friction. @c 0.0 for
2767     *        perfect synchrony between two movements, @c 1.0 for maximum
2768     *        lag.
2769     *
2770     * @see elm_thumbscroll_border_friction_get()
2771     * @note parameter value will get bound to 0.0 - 1.0 interval, always
2772     *
2773     * @ingroup Scrolling
2774     */
2775    EAPI void             elm_scroll_thumbscroll_border_friction_all_set(double friction);
2776
2777    /**
2778     * @}
2779     */
2780
2781    /**
2782     * @defgroup Scrollhints Scrollhints
2783     *
2784     * Objects when inside a scroller can scroll, but this may not always be
2785     * desirable in certain situations. This allows an object to hint to itself
2786     * and parents to "not scroll" in one of 2 ways. If any child object of a
2787     * scroller has pushed a scroll freeze or hold then it affects all parent
2788     * scrollers until all children have released them.
2789     *
2790     * 1. To hold on scrolling. This means just flicking and dragging may no
2791     * longer scroll, but pressing/dragging near an edge of the scroller will
2792     * still scroll. This is automatically used by the entry object when
2793     * selecting text.
2794     *
2795     * 2. To totally freeze scrolling. This means it stops. until
2796     * popped/released.
2797     *
2798     * @{
2799     */
2800
2801    /**
2802     * Push the scroll hold by 1
2803     *
2804     * This increments the scroll hold count by one. If it is more than 0 it will
2805     * take effect on the parents of the indicated object.
2806     *
2807     * @param obj The object
2808     * @ingroup Scrollhints
2809     */
2810    EAPI void             elm_object_scroll_hold_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
2811
2812    /**
2813     * Pop the scroll hold by 1
2814     *
2815     * This decrements the scroll hold count by one. If it is more than 0 it will
2816     * take effect on the parents of the indicated object.
2817     *
2818     * @param obj The object
2819     * @ingroup Scrollhints
2820     */
2821    EAPI void             elm_object_scroll_hold_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
2822
2823    /**
2824     * Push the scroll freeze by 1
2825     *
2826     * This increments the scroll freeze count by one. If it is more
2827     * than 0 it will take effect on the parents of the indicated
2828     * object.
2829     *
2830     * @param obj The object
2831     * @ingroup Scrollhints
2832     */
2833    EAPI void             elm_object_scroll_freeze_push(Evas_Object *obj) EINA_ARG_NONNULL(1);
2834
2835    /**
2836     * Pop the scroll freeze by 1
2837     *
2838     * This decrements the scroll freeze count by one. If it is more
2839     * than 0 it will take effect on the parents of the indicated
2840     * object.
2841     *
2842     * @param obj The object
2843     * @ingroup Scrollhints
2844     */
2845    EAPI void             elm_object_scroll_freeze_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
2846
2847    /**
2848     * Lock the scrolling of the given widget (and thus all parents)
2849     *
2850     * This locks the given object from scrolling in the X axis (and implicitly
2851     * also locks all parent scrollers too from doing the same).
2852     *
2853     * @param obj The object
2854     * @param lock The lock state (1 == locked, 0 == unlocked)
2855     * @ingroup Scrollhints
2856     */
2857    EAPI void             elm_object_scroll_lock_x_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
2858
2859    /**
2860     * Lock the scrolling of the given widget (and thus all parents)
2861     *
2862     * This locks the given object from scrolling in the Y axis (and implicitly
2863     * also locks all parent scrollers too from doing the same).
2864     *
2865     * @param obj The object
2866     * @param lock The lock state (1 == locked, 0 == unlocked)
2867     * @ingroup Scrollhints
2868     */
2869    EAPI void             elm_object_scroll_lock_y_set(Evas_Object *obj, Eina_Bool lock) EINA_ARG_NONNULL(1);
2870
2871    /**
2872     * Get the scrolling lock of the given widget
2873     *
2874     * This gets the lock for X axis scrolling.
2875     *
2876     * @param obj The object
2877     * @ingroup Scrollhints
2878     */
2879    EAPI Eina_Bool        elm_object_scroll_lock_x_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2880
2881    /**
2882     * Get the scrolling lock of the given widget
2883     *
2884     * This gets the lock for X axis scrolling.
2885     *
2886     * @param obj The object
2887     * @ingroup Scrollhints
2888     */
2889    EAPI Eina_Bool        elm_object_scroll_lock_y_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
2890
2891    /**
2892     * @}
2893     */
2894
2895    /**
2896     * Send a signal to the widget edje object.
2897     *
2898     * This function sends a signal to the edje object of the obj. An
2899     * edje program can respond to a signal by specifying matching
2900     * 'signal' and 'source' fields.
2901     *
2902     * @param obj The object
2903     * @param emission The signal's name.
2904     * @param source The signal's source.
2905     * @ingroup General
2906     */
2907    EAPI void             elm_object_signal_emit(Evas_Object *obj, const char *emission, const char *source) EINA_ARG_NONNULL(1);
2908
2909    /**
2910     * Add a callback for a signal emitted by widget edje object.
2911     *
2912     * This function connects a callback function to a signal emitted by the
2913     * edje object of the obj.
2914     * Globs can occur in either the emission or source name.
2915     *
2916     * @param obj The object
2917     * @param emission The signal's name.
2918     * @param source The signal's source.
2919     * @param func The callback function to be executed when the signal is
2920     * emitted.
2921     * @param data A pointer to data to pass in to the callback function.
2922     * @ingroup General
2923     */
2924    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);
2925
2926    /**
2927     * Remove a signal-triggered callback from a widget edje object.
2928     *
2929     * This function removes a callback, previoulsy attached to a
2930     * signal emitted by the edje object of the obj.  The parameters
2931     * emission, source and func must match exactly those passed to a
2932     * previous call to elm_object_signal_callback_add(). The data
2933     * pointer that was passed to this call will be returned.
2934     *
2935     * @param obj The object
2936     * @param emission The signal's name.
2937     * @param source The signal's source.
2938     * @param func The callback function to be executed when the signal is
2939     * emitted.
2940     * @return The data pointer
2941     * @ingroup General
2942     */
2943    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);
2944
2945    /**
2946     * Add a callback for input events (key up, key down, mouse wheel)
2947     * on a given Elementary widget
2948     *
2949     * @param obj The widget to add an event callback on
2950     * @param func The callback function to be executed when the event
2951     * happens
2952     * @param data Data to pass in to @p func
2953     *
2954     * Every widget in an Elementary interface set to receive focus,
2955     * with elm_object_focus_allow_set(), will propagate @b all of its
2956     * key up, key down and mouse wheel input events up to its parent
2957     * object, and so on. All of the focusable ones in this chain which
2958     * had an event callback set, with this call, will be able to treat
2959     * those events. There are two ways of making the propagation of
2960     * these event upwards in the tree of widgets to @b cease:
2961     * - Just return @c EINA_TRUE on @p func. @c EINA_FALSE will mean
2962     *   the event was @b not processed, so the propagation will go on.
2963     * - The @c event_info pointer passed to @p func will contain the
2964     *   event's structure and, if you OR its @c event_flags inner
2965     *   value to @c EVAS_EVENT_FLAG_ON_HOLD, you're telling Elementary
2966     *   one has already handled it, thus killing the event's
2967     *   propagation, too.
2968     *
2969     * @note Your event callback will be issued on those events taking
2970     * place only if no other child widget of @obj has consumed the
2971     * event already.
2972     *
2973     * @note Not to be confused with @c
2974     * evas_object_event_callback_add(), which will add event callbacks
2975     * per type on general Evas objects (no event propagation
2976     * infrastructure taken in account).
2977     *
2978     * @note Not to be confused with @c
2979     * elm_object_signal_callback_add(), which will add callbacks to @b
2980     * signals coming from a widget's theme, not input events.
2981     *
2982     * @note Not to be confused with @c
2983     * edje_object_signal_callback_add(), which does the same as
2984     * elm_object_signal_callback_add(), but directly on an Edje
2985     * object.
2986     *
2987     * @note Not to be confused with @c
2988     * evas_object_smart_callback_add(), which adds callbacks to smart
2989     * objects' <b>smart events</b>, and not input events.
2990     *
2991     * @see elm_object_event_callback_del()
2992     *
2993     * @ingroup General
2994     */
2995    EAPI void             elm_object_event_callback_add(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
2996
2997    /**
2998     * Remove an event callback from a widget.
2999     *
3000     * This function removes a callback, previoulsy attached to event emission
3001     * by the @p obj.
3002     * The parameters func and data must match exactly those passed to
3003     * a previous call to elm_object_event_callback_add(). The data pointer that
3004     * was passed to this call will be returned.
3005     *
3006     * @param obj The object
3007     * @param func The callback function to be executed when the event is
3008     * emitted.
3009     * @param data Data to pass in to the callback function.
3010     * @return The data pointer
3011     * @ingroup General
3012     */
3013    EAPI void            *elm_object_event_callback_del(Evas_Object *obj, Elm_Event_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
3014
3015    /**
3016     * Adjust size of an element for finger usage.
3017     *
3018     * @param times_w How many fingers should fit horizontally
3019     * @param w Pointer to the width size to adjust
3020     * @param times_h How many fingers should fit vertically
3021     * @param h Pointer to the height size to adjust
3022     *
3023     * This takes width and height sizes (in pixels) as input and a
3024     * size multiple (which is how many fingers you want to place
3025     * within the area, being "finger" the size set by
3026     * elm_finger_size_set()), and adjusts the size to be large enough
3027     * to accommodate the resulting size -- if it doesn't already
3028     * accommodate it. On return the @p w and @p h sizes pointed to by
3029     * these parameters will be modified, on those conditions.
3030     *
3031     * @note This is kind of a low level Elementary call, most useful
3032     * on size evaluation times for widgets. An external user wouldn't
3033     * be calling, most of the time.
3034     *
3035     * @ingroup Fingers
3036     */
3037    EAPI void             elm_coords_finger_size_adjust(int times_w, Evas_Coord *w, int times_h, Evas_Coord *h);
3038
3039    /**
3040     * Get the duration for occuring long press event.
3041     *
3042     * @return Timeout for long press event
3043     * @ingroup Longpress
3044     */
3045    EAPI double           elm_longpress_timeout_get(void);
3046
3047    /**
3048     * Set the duration for occuring long press event.
3049     *
3050     * @param lonpress_timeout Timeout for long press event
3051     * @ingroup Longpress
3052     */
3053    EAPI void             elm_longpress_timeout_set(double longpress_timeout);
3054
3055    /**
3056     * @defgroup Debug Debug
3057     * don't use it unless you are sure
3058     *
3059     * @{
3060     */
3061
3062    /**
3063     * Print Tree object hierarchy in stdout
3064     *
3065     * @param obj The root object
3066     * @ingroup Debug
3067     */
3068    EAPI void             elm_object_tree_dump(const Evas_Object *top);
3069
3070    /**
3071     * Print Elm Objects tree hierarchy in file as dot(graphviz) syntax.
3072     *
3073     * @param obj The root object
3074     * @param file The path of output file
3075     * @ingroup Debug
3076     */
3077    EAPI void             elm_object_tree_dot_dump(const Evas_Object *top, const char *file);
3078
3079    /**
3080     * @}
3081     */
3082
3083    /**
3084     * @defgroup Theme Theme
3085     *
3086     * Elementary uses Edje to theme its widgets, naturally. But for the most
3087     * part this is hidden behind a simpler interface that lets the user set
3088     * extensions and choose the style of widgets in a much easier way.
3089     *
3090     * Instead of thinking in terms of paths to Edje files and their groups
3091     * each time you want to change the appearance of a widget, Elementary
3092     * works so you can add any theme file with extensions or replace the
3093     * main theme at one point in the application, and then just set the style
3094     * of widgets with elm_object_style_set() and related functions. Elementary
3095     * will then look in its list of themes for a matching group and apply it,
3096     * and when the theme changes midway through the application, all widgets
3097     * will be updated accordingly.
3098     *
3099     * There are three concepts you need to know to understand how Elementary
3100     * theming works: default theme, extensions and overlays.
3101     *
3102     * Default theme, obviously enough, is the one that provides the default
3103     * look of all widgets. End users can change the theme used by Elementary
3104     * by setting the @c ELM_THEME environment variable before running an
3105     * application, or globally for all programs using the @c elementary_config
3106     * utility. Applications can change the default theme using elm_theme_set(),
3107     * but this can go against the user wishes, so it's not an adviced practice.
3108     *
3109     * Ideally, applications should find everything they need in the already
3110     * provided theme, but there may be occasions when that's not enough and
3111     * custom styles are required to correctly express the idea. For this
3112     * cases, Elementary has extensions.
3113     *
3114     * Extensions allow the application developer to write styles of its own
3115     * to apply to some widgets. This requires knowledge of how each widget
3116     * is themed, as extensions will always replace the entire group used by
3117     * the widget, so important signals and parts need to be there for the
3118     * object to behave properly (see documentation of Edje for details).
3119     * Once the theme for the extension is done, the application needs to add
3120     * it to the list of themes Elementary will look into, using
3121     * elm_theme_extension_add(), and set the style of the desired widgets as
3122     * he would normally with elm_object_style_set().
3123     *
3124     * Overlays, on the other hand, can replace the look of all widgets by
3125     * overriding the default style. Like extensions, it's up to the application
3126     * developer to write the theme for the widgets it wants, the difference
3127     * being that when looking for the theme, Elementary will check first the
3128     * list of overlays, then the set theme and lastly the list of extensions,
3129     * so with overlays it's possible to replace the default view and every
3130     * widget will be affected. This is very much alike to setting the whole
3131     * theme for the application and will probably clash with the end user
3132     * options, not to mention the risk of ending up with not matching styles
3133     * across the program. Unless there's a very special reason to use them,
3134     * overlays should be avoided for the resons exposed before.
3135     *
3136     * All these theme lists are handled by ::Elm_Theme instances. Elementary
3137     * keeps one default internally and every function that receives one of
3138     * these can be called with NULL to refer to this default (except for
3139     * elm_theme_free()). It's possible to create a new instance of a
3140     * ::Elm_Theme to set other theme for a specific widget (and all of its
3141     * children), but this is as discouraged, if not even more so, than using
3142     * overlays. Don't use this unless you really know what you are doing.
3143     *
3144     * But to be less negative about things, you can look at the following
3145     * examples:
3146     * @li @ref theme_example_01 "Using extensions"
3147     * @li @ref theme_example_02 "Using overlays"
3148     *
3149     * @{
3150     */
3151    /**
3152     * @typedef Elm_Theme
3153     *
3154     * Opaque handler for the list of themes Elementary looks for when
3155     * rendering widgets.
3156     *
3157     * Stay out of this unless you really know what you are doing. For most
3158     * cases, sticking to the default is all a developer needs.
3159     */
3160    typedef struct _Elm_Theme Elm_Theme;
3161
3162    /**
3163     * Create a new specific theme
3164     *
3165     * This creates an empty specific theme that only uses the default theme. A
3166     * specific theme has its own private set of extensions and overlays too
3167     * (which are empty by default). Specific themes do not fall back to themes
3168     * of parent objects. They are not intended for this use. Use styles, overlays
3169     * and extensions when needed, but avoid specific themes unless there is no
3170     * other way (example: you want to have a preview of a new theme you are
3171     * selecting in a "theme selector" window. The preview is inside a scroller
3172     * and should display what the theme you selected will look like, but not
3173     * actually apply it yet. The child of the scroller will have a specific
3174     * theme set to show this preview before the user decides to apply it to all
3175     * applications).
3176     */
3177    EAPI Elm_Theme       *elm_theme_new(void);
3178    /**
3179     * Free a specific theme
3180     *
3181     * @param th The theme to free
3182     *
3183     * This frees a theme created with elm_theme_new().
3184     */
3185    EAPI void             elm_theme_free(Elm_Theme *th);
3186    /**
3187     * Copy the theme fom the source to the destination theme
3188     *
3189     * @param th The source theme to copy from
3190     * @param thdst The destination theme to copy data to
3191     *
3192     * This makes a one-time static copy of all the theme config, extensions
3193     * and overlays from @p th to @p thdst. If @p th references a theme, then
3194     * @p thdst is also set to reference it, with all the theme settings,
3195     * overlays and extensions that @p th had.
3196     */
3197    EAPI void             elm_theme_copy(Elm_Theme *th, Elm_Theme *thdst);
3198    /**
3199     * Tell the source theme to reference the ref theme
3200     *
3201     * @param th The theme that will do the referencing
3202     * @param thref The theme that is the reference source
3203     *
3204     * This clears @p th to be empty and then sets it to refer to @p thref
3205     * so @p th acts as an override to @p thref, but where its overrides
3206     * don't apply, it will fall through to @p thref for configuration.
3207     */
3208    EAPI void             elm_theme_ref_set(Elm_Theme *th, Elm_Theme *thref);
3209    /**
3210     * Return the theme referred to
3211     *
3212     * @param th The theme to get the reference from
3213     * @return The referenced theme handle
3214     *
3215     * This gets the theme set as the reference theme by elm_theme_ref_set().
3216     * If no theme is set as a reference, NULL is returned.
3217     */
3218    EAPI Elm_Theme       *elm_theme_ref_get(Elm_Theme *th);
3219    /**
3220     * Return the default theme
3221     *
3222     * @return The default theme handle
3223     *
3224     * This returns the internal default theme setup handle that all widgets
3225     * use implicitly unless a specific theme is set. This is also often use
3226     * as a shorthand of NULL.
3227     */
3228    EAPI Elm_Theme       *elm_theme_default_get(void);
3229    /**
3230     * Prepends a theme overlay to the list of overlays
3231     *
3232     * @param th The theme to add to, or if NULL, the default theme
3233     * @param item The Edje file path to be used
3234     *
3235     * Use this if your application needs to provide some custom overlay theme
3236     * (An Edje file that replaces some default styles of widgets) where adding
3237     * new styles, or changing system theme configuration is not possible. Do
3238     * NOT use this instead of a proper system theme configuration. Use proper
3239     * configuration files, profiles, environment variables etc. to set a theme
3240     * so that the theme can be altered by simple confiugration by a user. Using
3241     * this call to achieve that effect is abusing the API and will create lots
3242     * of trouble.
3243     *
3244     * @see elm_theme_extension_add()
3245     */
3246    EAPI void             elm_theme_overlay_add(Elm_Theme *th, const char *item);
3247    /**
3248     * Delete a theme overlay from the list of overlays
3249     *
3250     * @param th The theme to delete from, or if NULL, the default theme
3251     * @param item The name of the theme overlay
3252     *
3253     * @see elm_theme_overlay_add()
3254     */
3255    EAPI void             elm_theme_overlay_del(Elm_Theme *th, const char *item);
3256    /**
3257     * Appends a theme extension to the list of extensions.
3258     *
3259     * @param th The theme to add to, or if NULL, the default theme
3260     * @param item The Edje file path to be used
3261     *
3262     * This is intended when an application needs more styles of widgets or new
3263     * widget themes that the default does not provide (or may not provide). The
3264     * application has "extended" usage by coming up with new custom style names
3265     * for widgets for specific uses, but as these are not "standard", they are
3266     * not guaranteed to be provided by a default theme. This means the
3267     * application is required to provide these extra elements itself in specific
3268     * Edje files. This call adds one of those Edje files to the theme search
3269     * path to be search after the default theme. The use of this call is
3270     * encouraged when default styles do not meet the needs of the application.
3271     * Use this call instead of elm_theme_overlay_add() for almost all cases.
3272     *
3273     * @see elm_object_style_set()
3274     */
3275    EAPI void             elm_theme_extension_add(Elm_Theme *th, const char *item);
3276    /**
3277     * Deletes a theme extension from the list of extensions.
3278     *
3279     * @param th The theme to delete from, or if NULL, the default theme
3280     * @param item The name of the theme extension
3281     *
3282     * @see elm_theme_extension_add()
3283     */
3284    EAPI void             elm_theme_extension_del(Elm_Theme *th, const char *item);
3285    /**
3286     * Set the theme search order for the given theme
3287     *
3288     * @param th The theme to set the search order, or if NULL, the default theme
3289     * @param theme Theme search string
3290     *
3291     * This sets the search string for the theme in path-notation from first
3292     * theme to search, to last, delimited by the : character. Example:
3293     *
3294     * "shiny:/path/to/file.edj:default"
3295     *
3296     * See the ELM_THEME environment variable for more information.
3297     *
3298     * @see elm_theme_get()
3299     * @see elm_theme_list_get()
3300     */
3301    EAPI void             elm_theme_set(Elm_Theme *th, const char *theme);
3302    /**
3303     * Return the theme search order
3304     *
3305     * @param th The theme to get the search order, or if NULL, the default theme
3306     * @return The internal search order path
3307     *
3308     * This function returns a colon separated string of theme elements as
3309     * returned by elm_theme_list_get().
3310     *
3311     * @see elm_theme_set()
3312     * @see elm_theme_list_get()
3313     */
3314    EAPI const char      *elm_theme_get(Elm_Theme *th);
3315    /**
3316     * Return a list of theme elements to be used in a theme.
3317     *
3318     * @param th Theme to get the list of theme elements from.
3319     * @return The internal list of theme elements
3320     *
3321     * This returns the internal list of theme elements (will only be valid as
3322     * long as the theme is not modified by elm_theme_set() or theme is not
3323     * freed by elm_theme_free(). This is a list of strings which must not be
3324     * altered as they are also internal. If @p th is NULL, then the default
3325     * theme element list is returned.
3326     *
3327     * A theme element can consist of a full or relative path to a .edj file,
3328     * or a name, without extension, for a theme to be searched in the known
3329     * theme paths for Elemementary.
3330     *
3331     * @see elm_theme_set()
3332     * @see elm_theme_get()
3333     */
3334    EAPI const Eina_List *elm_theme_list_get(const Elm_Theme *th);
3335    /**
3336     * Return the full patrh for a theme element
3337     *
3338     * @param f The theme element name
3339     * @param in_search_path Pointer to a boolean to indicate if item is in the search path or not
3340     * @return The full path to the file found.
3341     *
3342     * This returns a string you should free with free() on success, NULL on
3343     * failure. This will search for the given theme element, and if it is a
3344     * full or relative path element or a simple searchable name. The returned
3345     * path is the full path to the file, if searched, and the file exists, or it
3346     * is simply the full path given in the element or a resolved path if
3347     * relative to home. The @p in_search_path boolean pointed to is set to
3348     * EINA_TRUE if the file was a searchable file andis in the search path,
3349     * and EINA_FALSE otherwise.
3350     */
3351    EAPI char            *elm_theme_list_item_path_get(const char *f, Eina_Bool *in_search_path);
3352    /**
3353     * Flush the current theme.
3354     *
3355     * @param th Theme to flush
3356     *
3357     * This flushes caches that let elementary know where to find theme elements
3358     * in the given theme. If @p th is NULL, then the default theme is flushed.
3359     * Call this function if source theme data has changed in such a way as to
3360     * make any caches Elementary kept invalid.
3361     */
3362    EAPI void             elm_theme_flush(Elm_Theme *th);
3363    /**
3364     * This flushes all themes (default and specific ones).
3365     *
3366     * This will flush all themes in the current application context, by calling
3367     * elm_theme_flush() on each of them.
3368     */
3369    EAPI void             elm_theme_full_flush(void);
3370    /**
3371     * Set the theme for all elementary using applications on the current display
3372     *
3373     * @param theme The name of the theme to use. Format same as the ELM_THEME
3374     * environment variable.
3375     */
3376    EAPI void             elm_theme_all_set(const char *theme);
3377    /**
3378     * Return a list of theme elements in the theme search path
3379     *
3380     * @return A list of strings that are the theme element names.
3381     *
3382     * This lists all available theme files in the standard Elementary search path
3383     * for theme elements, and returns them in alphabetical order as theme
3384     * element names in a list of strings. Free this with
3385     * elm_theme_name_available_list_free() when you are done with the list.
3386     */
3387    EAPI Eina_List       *elm_theme_name_available_list_new(void);
3388    /**
3389     * Free the list returned by elm_theme_name_available_list_new()
3390     *
3391     * This frees the list of themes returned by
3392     * elm_theme_name_available_list_new(). Once freed the list should no longer
3393     * be used. a new list mys be created.
3394     */
3395    EAPI void             elm_theme_name_available_list_free(Eina_List *list);
3396    /**
3397     * Set a specific theme to be used for this object and its children
3398     *
3399     * @param obj The object to set the theme on
3400     * @param th The theme to set
3401     *
3402     * This sets a specific theme that will be used for the given object and any
3403     * child objects it has. If @p th is NULL then the theme to be used is
3404     * cleared and the object will inherit its theme from its parent (which
3405     * ultimately will use the default theme if no specific themes are set).
3406     *
3407     * Use special themes with great care as this will annoy users and make
3408     * configuration difficult. Avoid any custom themes at all if it can be
3409     * helped.
3410     */
3411    EAPI void             elm_object_theme_set(Evas_Object *obj, Elm_Theme *th) EINA_ARG_NONNULL(1);
3412    /**
3413     * Get the specific theme to be used
3414     *
3415     * @param obj The object to get the specific theme from
3416     * @return The specifc theme set.
3417     *
3418     * This will return a specific theme set, or NULL if no specific theme is
3419     * set on that object. It will not return inherited themes from parents, only
3420     * the specific theme set for that specific object. See elm_object_theme_set()
3421     * for more information.
3422     */
3423    EAPI Elm_Theme       *elm_object_theme_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3424    /**
3425     * @}
3426     */
3427
3428    /* win */
3429    /** @defgroup Win Win
3430     *
3431     * @image html img/widget/win/preview-00.png
3432     * @image latex img/widget/win/preview-00.eps
3433     *
3434     * The window class of Elementary.  Contains functions to manipulate
3435     * windows. The Evas engine used to render the window contents is specified
3436     * in the system or user elementary config files (whichever is found last),
3437     * and can be overridden with the ELM_ENGINE environment variable for
3438     * testing.  Engines that may be supported (depending on Evas and Ecore-Evas
3439     * compilation setup and modules actually installed at runtime) are (listed
3440     * in order of best supported and most likely to be complete and work to
3441     * lowest quality).
3442     *
3443     * @li "x11", "x", "software-x11", "software_x11" (Software rendering in X11)
3444     * @li "gl", "opengl", "opengl-x11", "opengl_x11" (OpenGL or OpenGL-ES2
3445     * rendering in X11)
3446     * @li "shot:..." (Virtual screenshot renderer - renders to output file and
3447     * exits)
3448     * @li "fb", "software-fb", "software_fb" (Linux framebuffer direct software
3449     * rendering)
3450     * @li "sdl", "software-sdl", "software_sdl" (SDL software rendering to SDL
3451     * buffer)
3452     * @li "gl-sdl", "gl_sdl", "opengl-sdl", "opengl_sdl" (OpenGL or OpenGL-ES2
3453     * rendering using SDL as the buffer)
3454     * @li "gdi", "software-gdi", "software_gdi" (Windows WIN32 rendering via
3455     * GDI with software)
3456     * @li "dfb", "directfb" (Rendering to a DirectFB window)
3457     * @li "x11-8", "x8", "software-8-x11", "software_8_x11" (Rendering in
3458     * grayscale using dedicated 8bit software engine in X11)
3459     * @li "x11-16", "x16", "software-16-x11", "software_16_x11" (Rendering in
3460     * X11 using 16bit software engine)
3461     * @li "wince-gdi", "software-16-wince-gdi", "software_16_wince_gdi"
3462     * (Windows CE rendering via GDI with 16bit software renderer)
3463     * @li "sdl-16", "software-16-sdl", "software_16_sdl" (Rendering to SDL
3464     * buffer with 16bit software renderer)
3465     *
3466     * All engines use a simple string to select the engine to render, EXCEPT
3467     * the "shot" engine. This actually encodes the output of the virtual
3468     * screenshot and how long to delay in the engine string. The engine string
3469     * is encoded in the following way:
3470     *
3471     *   "shot:[delay=XX][:][repeat=DDD][:][file=XX]"
3472     *
3473     * Where options are separated by a ":" char if more than one option is
3474     * given, with delay, if provided being the first option and file the last
3475     * (order is important). The delay specifies how long to wait after the
3476     * window is shown before doing the virtual "in memory" rendering and then
3477     * save the output to the file specified by the file option (and then exit).
3478     * If no delay is given, the default is 0.5 seconds. If no file is given the
3479     * default output file is "out.png". Repeat option is for continous
3480     * capturing screenshots. Repeat range is from 1 to 999 and filename is
3481     * fixed to "out001.png" Some examples of using the shot engine:
3482     *
3483     *   ELM_ENGINE="shot:delay=1.0:repeat=5:file=elm_test.png" elementary_test
3484     *   ELM_ENGINE="shot:delay=1.0:file=elm_test.png" elementary_test
3485     *   ELM_ENGINE="shot:file=elm_test2.png" elementary_test
3486     *   ELM_ENGINE="shot:delay=2.0" elementary_test
3487     *   ELM_ENGINE="shot:" elementary_test
3488     *
3489     * Signals that you can add callbacks for are:
3490     *
3491     * @li "delete,request": the user requested to close the window. See
3492     * elm_win_autodel_set().
3493     * @li "focus,in": window got focus
3494     * @li "focus,out": window lost focus
3495     * @li "moved": window that holds the canvas was moved
3496     *
3497     * Examples:
3498     * @li @ref win_example_01
3499     *
3500     * @{
3501     */
3502    /**
3503     * Defines the types of window that can be created
3504     *
3505     * These are hints set on the window so that a running Window Manager knows
3506     * how the window should be handled and/or what kind of decorations it
3507     * should have.
3508     *
3509     * Currently, only the X11 backed engines use them.
3510     */
3511    typedef enum _Elm_Win_Type
3512      {
3513         ELM_WIN_BASIC, /**< A normal window. Indicates a normal, top-level
3514                          window. Almost every window will be created with this
3515                          type. */
3516         ELM_WIN_DIALOG_BASIC, /**< Used for simple dialog windows/ */
3517         ELM_WIN_DESKTOP, /**< For special desktop windows, like a background
3518                            window holding desktop icons. */
3519         ELM_WIN_DOCK, /**< The window is used as a dock or panel. Usually would
3520                         be kept on top of any other window by the Window
3521                         Manager. */
3522         ELM_WIN_TOOLBAR, /**< The window is used to hold a floating toolbar, or
3523                            similar. */
3524         ELM_WIN_MENU, /**< Similar to #ELM_WIN_TOOLBAR. */
3525         ELM_WIN_UTILITY, /**< A persistent utility window, like a toolbox or
3526                            pallete. */
3527         ELM_WIN_SPLASH, /**< Splash window for a starting up application. */
3528         ELM_WIN_DROPDOWN_MENU, /**< The window is a dropdown menu, as when an
3529                                  entry in a menubar is clicked. Typically used
3530                                  with elm_win_override_set(). This hint exists
3531                                  for completion only, as the EFL way of
3532                                  implementing a menu would not normally use a
3533                                  separate window for its contents. */
3534         ELM_WIN_POPUP_MENU, /**< Like #ELM_WIN_DROPDOWN_MENU, but for the menu
3535                               triggered by right-clicking an object. */
3536         ELM_WIN_TOOLTIP, /**< The window is a tooltip. A short piece of
3537                            explanatory text that typically appear after the
3538                            mouse cursor hovers over an object for a while.
3539                            Typically used with elm_win_override_set() and also
3540                            not very commonly used in the EFL. */
3541         ELM_WIN_NOTIFICATION, /**< A notification window, like a warning about
3542                                 battery life or a new E-Mail received. */
3543         ELM_WIN_COMBO, /**< A window holding the contents of a combo box. Not
3544                          usually used in the EFL. */
3545         ELM_WIN_DND, /**< Used to indicate the window is a representation of an
3546                        object being dragged across different windows, or even
3547                        applications. Typically used with
3548                        elm_win_override_set(). */
3549         ELM_WIN_INLINED_IMAGE, /**< The window is rendered onto an image
3550                                  buffer. No actual window is created for this
3551                                  type, instead the window and all of its
3552                                  contents will be rendered to an image buffer.
3553                                  This allows to have children window inside a
3554                                  parent one just like any other object would
3555                                  be, and do other things like applying @c
3556                                  Evas_Map effects to it. This is the only type
3557                                  of window that requires the @c parent
3558                                  parameter of elm_win_add() to be a valid @c
3559                                  Evas_Object. */
3560      } Elm_Win_Type;
3561
3562    /**
3563     * The differents layouts that can be requested for the virtual keyboard.
3564     *
3565     * When the application window is being managed by Illume, it may request
3566     * any of the following layouts for the virtual keyboard.
3567     */
3568    typedef enum _Elm_Win_Keyboard_Mode
3569      {
3570         ELM_WIN_KEYBOARD_UNKNOWN, /**< Unknown keyboard state */
3571         ELM_WIN_KEYBOARD_OFF, /**< Request to deactivate the keyboard */
3572         ELM_WIN_KEYBOARD_ON, /**< Enable keyboard with default layout */
3573         ELM_WIN_KEYBOARD_ALPHA, /**< Alpha (a-z) keyboard layout */
3574         ELM_WIN_KEYBOARD_NUMERIC, /**< Numeric keyboard layout */
3575         ELM_WIN_KEYBOARD_PIN, /**< PIN keyboard layout */
3576         ELM_WIN_KEYBOARD_PHONE_NUMBER, /**< Phone keyboard layout */
3577         ELM_WIN_KEYBOARD_HEX, /**< Hexadecimal numeric keyboard layout */
3578         ELM_WIN_KEYBOARD_TERMINAL, /**< Full (QUERTY) keyboard layout */
3579         ELM_WIN_KEYBOARD_PASSWORD, /**< Password keyboard layout */
3580         ELM_WIN_KEYBOARD_IP, /**< IP keyboard layout */
3581         ELM_WIN_KEYBOARD_HOST, /**< Host keyboard layout */
3582         ELM_WIN_KEYBOARD_FILE, /**< File keyboard layout */
3583         ELM_WIN_KEYBOARD_URL, /**< URL keyboard layout */
3584         ELM_WIN_KEYBOARD_KEYPAD, /**< Keypad layout */
3585         ELM_WIN_KEYBOARD_J2ME /**< J2ME keyboard layout */
3586      } Elm_Win_Keyboard_Mode;
3587
3588    /**
3589     * Available commands that can be sent to the Illume manager.
3590     *
3591     * When running under an Illume session, a window may send commands to the
3592     * Illume manager to perform different actions.
3593     */
3594    typedef enum _Elm_Illume_Command
3595      {
3596         ELM_ILLUME_COMMAND_FOCUS_BACK, /**< Reverts focus to the previous
3597                                          window */
3598         ELM_ILLUME_COMMAND_FOCUS_FORWARD, /**< Sends focus to the next window\
3599                                             in the list */
3600         ELM_ILLUME_COMMAND_FOCUS_HOME, /**< Hides all windows to show the Home
3601                                          screen */
3602         ELM_ILLUME_COMMAND_CLOSE /**< Closes the currently active window */
3603      } Elm_Illume_Command;
3604
3605    /**
3606     * Adds a window object. If this is the first window created, pass NULL as
3607     * @p parent.
3608     *
3609     * @param parent Parent object to add the window to, or NULL
3610     * @param name The name of the window
3611     * @param type The window type, one of #Elm_Win_Type.
3612     *
3613     * The @p parent paramter can be @c NULL for every window @p type except
3614     * #ELM_WIN_INLINED_IMAGE, which needs a parent to retrieve the canvas on
3615     * which the image object will be created.
3616     *
3617     * @return The created object, or NULL on failure
3618     */
3619    EAPI Evas_Object *elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type);
3620    /**
3621     * Add @p subobj as a resize object of window @p obj.
3622     *
3623     *
3624     * Setting an object as a resize object of the window means that the
3625     * @p subobj child's size and position will be controlled by the window
3626     * directly. That is, the object will be resized to match the window size
3627     * and should never be moved or resized manually by the developer.
3628     *
3629     * In addition, resize objects of the window control what the minimum size
3630     * of it will be, as well as whether it can or not be resized by the user.
3631     *
3632     * For the end user to be able to resize a window by dragging the handles
3633     * or borders provided by the Window Manager, or using any other similar
3634     * mechanism, all of the resize objects in the window should have their
3635     * evas_object_size_hint_weight_set() set to EVAS_HINT_EXPAND.
3636     *
3637     * @param obj The window object
3638     * @param subobj The resize object to add
3639     */
3640    EAPI void         elm_win_resize_object_add(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
3641    /**
3642     * Delete @p subobj as a resize object of window @p obj.
3643     *
3644     * This function removes the object @p subobj from the resize objects of
3645     * the window @p obj. It will not delete the object itself, which will be
3646     * left unmanaged and should be deleted by the developer, manually handled
3647     * or set as child of some other container.
3648     *
3649     * @param obj The window object
3650     * @param subobj The resize object to add
3651     */
3652    EAPI void         elm_win_resize_object_del(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
3653    /**
3654     * Set the title of the window
3655     *
3656     * @param obj The window object
3657     * @param title The title to set
3658     */
3659    EAPI void         elm_win_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
3660    /**
3661     * Get the title of the window
3662     *
3663     * The returned string is an internal one and should not be freed or
3664     * modified. It will also be rendered invalid if a new title is set or if
3665     * the window is destroyed.
3666     *
3667     * @param obj The window object
3668     * @return The title
3669     */
3670    EAPI const char  *elm_win_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3671    /**
3672     * Set the window's autodel state.
3673     *
3674     * When closing the window in any way outside of the program control, like
3675     * pressing the X button in the titlebar or using a command from the
3676     * Window Manager, a "delete,request" signal is emitted to indicate that
3677     * this event occurred and the developer can take any action, which may
3678     * include, or not, destroying the window object.
3679     *
3680     * When the @p autodel parameter is set, the window will be automatically
3681     * destroyed when this event occurs, after the signal is emitted.
3682     * If @p autodel is @c EINA_FALSE, then the window will not be destroyed
3683     * and is up to the program to do so when it's required.
3684     *
3685     * @param obj The window object
3686     * @param autodel If true, the window will automatically delete itself when
3687     * closed
3688     */
3689    EAPI void         elm_win_autodel_set(Evas_Object *obj, Eina_Bool autodel) EINA_ARG_NONNULL(1);
3690    /**
3691     * Get the window's autodel state.
3692     *
3693     * @param obj The window object
3694     * @return If the window will automatically delete itself when closed
3695     *
3696     * @see elm_win_autodel_set()
3697     */
3698    EAPI Eina_Bool    elm_win_autodel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3699    /**
3700     * Activate a window object.
3701     *
3702     * This function sends a request to the Window Manager to activate the
3703     * window pointed by @p obj. If honored by the WM, the window will receive
3704     * the keyboard focus.
3705     *
3706     * @note This is just a request that a Window Manager may ignore, so calling
3707     * this function does not ensure in any way that the window will be the
3708     * active one after it.
3709     *
3710     * @param obj The window object
3711     */
3712    EAPI void         elm_win_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
3713    /**
3714     * Lower a window object.
3715     *
3716     * Places the window pointed by @p obj at the bottom of the stack, so that
3717     * no other window is covered by it.
3718     *
3719     * If elm_win_override_set() is not set, the Window Manager may ignore this
3720     * request.
3721     *
3722     * @param obj The window object
3723     */
3724    EAPI void         elm_win_lower(Evas_Object *obj) EINA_ARG_NONNULL(1);
3725    /**
3726     * Raise a window object.
3727     *
3728     * Places the window pointed by @p obj at the top of the stack, so that it's
3729     * not covered by any other window.
3730     *
3731     * If elm_win_override_set() is not set, the Window Manager may ignore this
3732     * request.
3733     *
3734     * @param obj The window object
3735     */
3736    EAPI void         elm_win_raise(Evas_Object *obj) EINA_ARG_NONNULL(1);
3737    /**
3738     * Set the borderless state of a window.
3739     *
3740     * This function requests the Window Manager to not draw any decoration
3741     * around the window.
3742     *
3743     * @param obj The window object
3744     * @param borderless If true, the window is borderless
3745     */
3746    EAPI void         elm_win_borderless_set(Evas_Object *obj, Eina_Bool borderless) EINA_ARG_NONNULL(1);
3747    /**
3748     * Get the borderless state of a window.
3749     *
3750     * @param obj The window object
3751     * @return If true, the window is borderless
3752     */
3753    EAPI Eina_Bool    elm_win_borderless_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3754    /**
3755     * Set the shaped state of a window.
3756     *
3757     * Shaped windows, when supported, will render the parts of the window that
3758     * has no content, transparent.
3759     *
3760     * If @p shaped is EINA_FALSE, then it is strongly adviced to have some
3761     * background object or cover the entire window in any other way, or the
3762     * parts of the canvas that have no data will show framebuffer artifacts.
3763     *
3764     * @param obj The window object
3765     * @param shaped If true, the window is shaped
3766     *
3767     * @see elm_win_alpha_set()
3768     */
3769    EAPI void         elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped) EINA_ARG_NONNULL(1);
3770    /**
3771     * Get the shaped state of a window.
3772     *
3773     * @param obj The window object
3774     * @return If true, the window is shaped
3775     *
3776     * @see elm_win_shaped_set()
3777     */
3778    EAPI Eina_Bool    elm_win_shaped_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3779    /**
3780     * Set the alpha channel state of a window.
3781     *
3782     * If @p alpha is EINA_TRUE, the alpha channel of the canvas will be enabled
3783     * possibly making parts of the window completely or partially transparent.
3784     * This is also subject to the underlying system supporting it, like for
3785     * example, running under a compositing manager. If no compositing is
3786     * available, enabling this option will instead fallback to using shaped
3787     * windows, with elm_win_shaped_set().
3788     *
3789     * @param obj The window object
3790     * @param alpha If true, the window has an alpha channel
3791     *
3792     * @see elm_win_alpha_set()
3793     */
3794    EAPI void         elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
3795    /**
3796     * Get the transparency state of a window.
3797     *
3798     * @param obj The window object
3799     * @return If true, the window is transparent
3800     *
3801     * @see elm_win_transparent_set()
3802     */
3803    EAPI Eina_Bool    elm_win_transparent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3804    /**
3805     * Set the transparency state of a window.
3806     *
3807     * Use elm_win_alpha_set() instead.
3808     *
3809     * @param obj The window object
3810     * @param transparent If true, the window is transparent
3811     *
3812     * @see elm_win_alpha_set()
3813     */
3814    EAPI void         elm_win_transparent_set(Evas_Object *obj, Eina_Bool transparent) EINA_ARG_NONNULL(1);
3815    /**
3816     * Get the alpha channel state of a window.
3817     *
3818     * @param obj The window object
3819     * @return If true, the window has an alpha channel
3820     */
3821    EAPI Eina_Bool    elm_win_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3822    /**
3823     * Set the override state of a window.
3824     *
3825     * A window with @p override set to EINA_TRUE will not be managed by the
3826     * Window Manager. This means that no decorations of any kind will be shown
3827     * for it, moving and resizing must be handled by the application, as well
3828     * as the window visibility.
3829     *
3830     * This should not be used for normal windows, and even for not so normal
3831     * ones, it should only be used when there's a good reason and with a lot
3832     * of care. Mishandling override windows may result situations that
3833     * disrupt the normal workflow of the end user.
3834     *
3835     * @param obj The window object
3836     * @param override If true, the window is overridden
3837     */
3838    EAPI void         elm_win_override_set(Evas_Object *obj, Eina_Bool override) EINA_ARG_NONNULL(1);
3839    /**
3840     * Get the override state of a window.
3841     *
3842     * @param obj The window object
3843     * @return If true, the window is overridden
3844     *
3845     * @see elm_win_override_set()
3846     */
3847    EAPI Eina_Bool    elm_win_override_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3848    /**
3849     * Set the fullscreen state of a window.
3850     *
3851     * @param obj The window object
3852     * @param fullscreen If true, the window is fullscreen
3853     */
3854    EAPI void         elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen) EINA_ARG_NONNULL(1);
3855    /**
3856     * Get the fullscreen state of a window.
3857     *
3858     * @param obj The window object
3859     * @return If true, the window is fullscreen
3860     */
3861    EAPI Eina_Bool    elm_win_fullscreen_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3862    /**
3863     * Set the maximized state of a window.
3864     *
3865     * @param obj The window object
3866     * @param maximized If true, the window is maximized
3867     */
3868    EAPI void         elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized) EINA_ARG_NONNULL(1);
3869    /**
3870     * Get the maximized state of a window.
3871     *
3872     * @param obj The window object
3873     * @return If true, the window is maximized
3874     */
3875    EAPI Eina_Bool    elm_win_maximized_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3876    /**
3877     * Set the iconified state of a window.
3878     *
3879     * @param obj The window object
3880     * @param iconified If true, the window is iconified
3881     */
3882    EAPI void         elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified) EINA_ARG_NONNULL(1);
3883    /**
3884     * Get the iconified state of a window.
3885     *
3886     * @param obj The window object
3887     * @return If true, the window is iconified
3888     */
3889    EAPI Eina_Bool    elm_win_iconified_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3890    /**
3891     * Set the layer of the window.
3892     *
3893     * What this means exactly will depend on the underlying engine used.
3894     *
3895     * In the case of X11 backed engines, the value in @p layer has the
3896     * following meanings:
3897     * @li < 3: The window will be placed below all others.
3898     * @li > 5: The window will be placed above all others.
3899     * @li other: The window will be placed in the default layer.
3900     *
3901     * @param obj The window object
3902     * @param layer The layer of the window
3903     */
3904    EAPI void         elm_win_layer_set(Evas_Object *obj, int layer) EINA_ARG_NONNULL(1);
3905    /**
3906     * Get the layer of the window.
3907     *
3908     * @param obj The window object
3909     * @return The layer of the window
3910     *
3911     * @see elm_win_layer_set()
3912     */
3913    EAPI int          elm_win_layer_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3914    /**
3915     * Set the rotation of the window.
3916     *
3917     * Most engines only work with multiples of 90.
3918     *
3919     * This function is used to set the orientation of the window @p obj to
3920     * match that of the screen. The window itself will be resized to adjust
3921     * to the new geometry of its contents. If you want to keep the window size,
3922     * see elm_win_rotation_with_resize_set().
3923     *
3924     * @param obj The window object
3925     * @param rotation The rotation of the window, in degrees (0-360),
3926     * counter-clockwise.
3927     */
3928    EAPI void         elm_win_rotation_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
3929    /**
3930     * Rotates the window and resizes it.
3931     *
3932     * Like elm_win_rotation_set(), but it also resizes the window's contents so
3933     * that they fit inside the current window geometry.
3934     *
3935     * @param obj The window object
3936     * @param layer The rotation of the window in degrees (0-360),
3937     * counter-clockwise.
3938     */
3939    EAPI void         elm_win_rotation_with_resize_set(Evas_Object *obj, int rotation) EINA_ARG_NONNULL(1);
3940    /**
3941     * Get the rotation of the window.
3942     *
3943     * @param obj The window object
3944     * @return The rotation of the window in degrees (0-360)
3945     *
3946     * @see elm_win_rotation_set()
3947     * @see elm_win_rotation_with_resize_set()
3948     */
3949    EAPI int          elm_win_rotation_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3950    /**
3951     * Set the sticky state of the window.
3952     *
3953     * Hints the Window Manager that the window in @p obj should be left fixed
3954     * at its position even when the virtual desktop it's on moves or changes.
3955     *
3956     * @param obj The window object
3957     * @param sticky If true, the window's sticky state is enabled
3958     */
3959    EAPI void         elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky) EINA_ARG_NONNULL(1);
3960    /**
3961     * Get the sticky state of the window.
3962     *
3963     * @param obj The window object
3964     * @return If true, the window's sticky state is enabled
3965     *
3966     * @see elm_win_sticky_set()
3967     */
3968    EAPI Eina_Bool    elm_win_sticky_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3969    /**
3970     * Set if this window is an illume conformant window
3971     *
3972     * @param obj The window object
3973     * @param conformant The conformant flag (1 = conformant, 0 = non-conformant)
3974     */
3975    EAPI void         elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant) EINA_ARG_NONNULL(1);
3976    /**
3977     * Get if this window is an illume conformant window
3978     *
3979     * @param obj The window object
3980     * @return A boolean if this window is illume conformant or not
3981     */
3982    EAPI Eina_Bool    elm_win_conformant_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3983    /**
3984     * Set a window to be an illume quickpanel window
3985     *
3986     * By default window objects are not quickpanel windows.
3987     *
3988     * @param obj The window object
3989     * @param quickpanel The quickpanel flag (1 = quickpanel, 0 = normal window)
3990     */
3991    EAPI void         elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel) EINA_ARG_NONNULL(1);
3992    /**
3993     * Get if this window is a quickpanel or not
3994     *
3995     * @param obj The window object
3996     * @return A boolean if this window is a quickpanel or not
3997     */
3998    EAPI Eina_Bool    elm_win_quickpanel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
3999    /**
4000     * Set the major priority of a quickpanel window
4001     *
4002     * @param obj The window object
4003     * @param priority The major priority for this quickpanel
4004     */
4005    EAPI void         elm_win_quickpanel_priority_major_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
4006    /**
4007     * Get the major priority of a quickpanel window
4008     *
4009     * @param obj The window object
4010     * @return The major priority of this quickpanel
4011     */
4012    EAPI int          elm_win_quickpanel_priority_major_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4013    /**
4014     * Set the minor priority of a quickpanel window
4015     *
4016     * @param obj The window object
4017     * @param priority The minor priority for this quickpanel
4018     */
4019    EAPI void         elm_win_quickpanel_priority_minor_set(Evas_Object *obj, int priority) EINA_ARG_NONNULL(1);
4020    /**
4021     * Get the minor priority of a quickpanel window
4022     *
4023     * @param obj The window object
4024     * @return The minor priority of this quickpanel
4025     */
4026    EAPI int          elm_win_quickpanel_priority_minor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4027    /**
4028     * Set which zone this quickpanel should appear in
4029     *
4030     * @param obj The window object
4031     * @param zone The requested zone for this quickpanel
4032     */
4033    EAPI void         elm_win_quickpanel_zone_set(Evas_Object *obj, int zone) EINA_ARG_NONNULL(1);
4034    /**
4035     * Get which zone this quickpanel should appear in
4036     *
4037     * @param obj The window object
4038     * @return The requested zone for this quickpanel
4039     */
4040    EAPI int          elm_win_quickpanel_zone_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4041    /**
4042     * Set the window to be skipped by keyboard focus
4043     *
4044     * This sets the window to be skipped by normal keyboard input. This means
4045     * a window manager will be asked to not focus this window as well as omit
4046     * it from things like the taskbar, pager, "alt-tab" list etc. etc.
4047     *
4048     * Call this and enable it on a window BEFORE you show it for the first time,
4049     * otherwise it may have no effect.
4050     *
4051     * Use this for windows that have only output information or might only be
4052     * interacted with by the mouse or fingers, and never for typing input.
4053     * Be careful that this may have side-effects like making the window
4054     * non-accessible in some cases unless the window is specially handled. Use
4055     * this with care.
4056     *
4057     * @param obj The window object
4058     * @param skip The skip flag state (EINA_TRUE if it is to be skipped)
4059     */
4060    EAPI void         elm_win_prop_focus_skip_set(Evas_Object *obj, Eina_Bool skip) EINA_ARG_NONNULL(1);
4061    /**
4062     * Send a command to the windowing environment
4063     *
4064     * This is intended to work in touchscreen or small screen device
4065     * environments where there is a more simplistic window management policy in
4066     * place. This uses the window object indicated to select which part of the
4067     * environment to control (the part that this window lives in), and provides
4068     * a command and an optional parameter structure (use NULL for this if not
4069     * needed).
4070     *
4071     * @param obj The window object that lives in the environment to control
4072     * @param command The command to send
4073     * @param params Optional parameters for the command
4074     */
4075    EAPI void         elm_win_illume_command_send(Evas_Object *obj, Elm_Illume_Command command, void *params) EINA_ARG_NONNULL(1);
4076    /**
4077     * Get the inlined image object handle
4078     *
4079     * When you create a window with elm_win_add() of type ELM_WIN_INLINED_IMAGE,
4080     * then the window is in fact an evas image object inlined in the parent
4081     * canvas. You can get this object (be careful to not manipulate it as it
4082     * is under control of elementary), and use it to do things like get pixel
4083     * data, save the image to a file, etc.
4084     *
4085     * @param obj The window object to get the inlined image from
4086     * @return The inlined image object, or NULL if none exists
4087     */
4088    EAPI Evas_Object *elm_win_inlined_image_object_get(Evas_Object *obj);
4089    /**
4090     * Set the enabled status for the focus highlight in a window
4091     *
4092     * This function will enable or disable the focus highlight only for the
4093     * given window, regardless of the global setting for it
4094     *
4095     * @param obj The window where to enable the highlight
4096     * @param enabled The enabled value for the highlight
4097     */
4098    EAPI void         elm_win_focus_highlight_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
4099    /**
4100     * Get the enabled value of the focus highlight for this window
4101     *
4102     * @param obj The window in which to check if the focus highlight is enabled
4103     *
4104     * @return EINA_TRUE if enabled, EINA_FALSE otherwise
4105     */
4106    EAPI Eina_Bool    elm_win_focus_highlight_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4107    /**
4108     * Set the style for the focus highlight on this window
4109     *
4110     * Sets the style to use for theming the highlight of focused objects on
4111     * the given window. If @p style is NULL, the default will be used.
4112     *
4113     * @param obj The window where to set the style
4114     * @param style The style to set
4115     */
4116    EAPI void         elm_win_focus_highlight_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
4117    /**
4118     * Get the style set for the focus highlight object
4119     *
4120     * Gets the style set for this windows highilght object, or NULL if none
4121     * is set.
4122     *
4123     * @param obj The window to retrieve the highlights style from
4124     *
4125     * @return The style set or NULL if none was. Default is used in that case.
4126     */
4127    EAPI const char  *elm_win_focus_highlight_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4128    /*...
4129     * ecore_x_icccm_hints_set -> accepts_focus (add to ecore_evas)
4130     * ecore_x_icccm_hints_set -> window_group (add to ecore_evas)
4131     * ecore_x_icccm_size_pos_hints_set -> request_pos (add to ecore_evas)
4132     * ecore_x_icccm_client_leader_set -> l (add to ecore_evas)
4133     * ecore_x_icccm_window_role_set -> role (add to ecore_evas)
4134     * ecore_x_icccm_transient_for_set -> forwin (add to ecore_evas)
4135     * ecore_x_netwm_window_type_set -> type (add to ecore_evas)
4136     *
4137     * (add to ecore_x) set netwm argb icon! (add to ecore_evas)
4138     * (blank mouse, private mouse obj, defaultmouse)
4139     *
4140     */
4141    /**
4142     * Sets the keyboard mode of the window.
4143     *
4144     * @param obj The window object
4145     * @param mode The mode to set, one of #Elm_Win_Keyboard_Mode
4146     */
4147    EAPI void                  elm_win_keyboard_mode_set(Evas_Object *obj, Elm_Win_Keyboard_Mode mode) EINA_ARG_NONNULL(1);
4148    /**
4149     * Gets the keyboard mode of the window.
4150     *
4151     * @param obj The window object
4152     * @return The mode, one of #Elm_Win_Keyboard_Mode
4153     */
4154    EAPI Elm_Win_Keyboard_Mode elm_win_keyboard_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4155    /**
4156     * Sets whether the window is a keyboard.
4157     *
4158     * @param obj The window object
4159     * @param is_keyboard If true, the window is a virtual keyboard
4160     */
4161    EAPI void                  elm_win_keyboard_win_set(Evas_Object *obj, Eina_Bool is_keyboard) EINA_ARG_NONNULL(1);
4162    /**
4163     * Gets whether the window is a keyboard.
4164     *
4165     * @param obj The window object
4166     * @return If the window is a virtual keyboard
4167     */
4168    EAPI Eina_Bool             elm_win_keyboard_win_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4169
4170    /**
4171     * Get the screen position of a window.
4172     *
4173     * @param obj The window object
4174     * @param x The int to store the x coordinate to
4175     * @param y The int to store the y coordinate to
4176     */
4177    EAPI void                  elm_win_screen_position_get(const Evas_Object *obj, int *x, int *y) EINA_ARG_NONNULL(1);
4178    /**
4179     * @}
4180     */
4181
4182    /**
4183     * @defgroup Inwin Inwin
4184     *
4185     * @image html img/widget/inwin/preview-00.png
4186     * @image latex img/widget/inwin/preview-00.eps
4187     * @image html img/widget/inwin/preview-01.png
4188     * @image latex img/widget/inwin/preview-01.eps
4189     * @image html img/widget/inwin/preview-02.png
4190     * @image latex img/widget/inwin/preview-02.eps
4191     *
4192     * An inwin is a window inside a window that is useful for a quick popup.
4193     * It does not hover.
4194     *
4195     * It works by creating an object that will occupy the entire window, so it
4196     * must be created using an @ref Win "elm_win" as parent only. The inwin
4197     * object can be hidden or restacked below every other object if it's
4198     * needed to show what's behind it without destroying it. If this is done,
4199     * the elm_win_inwin_activate() function can be used to bring it back to
4200     * full visibility again.
4201     *
4202     * There are three styles available in the default theme. These are:
4203     * @li default: The inwin is sized to take over most of the window it's
4204     * placed in.
4205     * @li minimal: The size of the inwin will be the minimum necessary to show
4206     * its contents.
4207     * @li minimal_vertical: Horizontally, the inwin takes as much space as
4208     * possible, but it's sized vertically the most it needs to fit its\
4209     * contents.
4210     *
4211     * Some examples of Inwin can be found in the following:
4212     * @li @ref inwin_example_01
4213     *
4214     * @{
4215     */
4216    /**
4217     * Adds an inwin to the current window
4218     *
4219     * The @p obj used as parent @b MUST be an @ref Win "Elementary Window".
4220     * Never call this function with anything other than the top-most window
4221     * as its parameter, unless you are fond of undefined behavior.
4222     *
4223     * After creating the object, the widget will set itself as resize object
4224     * for the window with elm_win_resize_object_add(), so when shown it will
4225     * appear to cover almost the entire window (how much of it depends on its
4226     * content and the style used). It must not be added into other container
4227     * objects and it needs not be moved or resized manually.
4228     *
4229     * @param parent The parent object
4230     * @return The new object or NULL if it cannot be created
4231     */
4232    EAPI Evas_Object          *elm_win_inwin_add(Evas_Object *obj) EINA_ARG_NONNULL(1);
4233    /**
4234     * Activates an inwin object, ensuring its visibility
4235     *
4236     * This function will make sure that the inwin @p obj is completely visible
4237     * by calling evas_object_show() and evas_object_raise() on it, to bring it
4238     * to the front. It also sets the keyboard focus to it, which will be passed
4239     * onto its content.
4240     *
4241     * The object's theme will also receive the signal "elm,action,show" with
4242     * source "elm".
4243     *
4244     * @param obj The inwin to activate
4245     */
4246    EAPI void                  elm_win_inwin_activate(Evas_Object *obj) EINA_ARG_NONNULL(1);
4247    /**
4248     * Set the content of an inwin object.
4249     *
4250     * Once the content object is set, a previously set one will be deleted.
4251     * If you want to keep that old content object, use the
4252     * elm_win_inwin_content_unset() function.
4253     *
4254     * @param obj The inwin object
4255     * @param content The object to set as content
4256     */
4257    EAPI void                  elm_win_inwin_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
4258    /**
4259     * Get the content of an inwin object.
4260     *
4261     * Return the content object which is set for this widget.
4262     *
4263     * The returned object is valid as long as the inwin is still alive and no
4264     * other content is set on it. Deleting the object will notify the inwin
4265     * about it and this one will be left empty.
4266     *
4267     * If you need to remove an inwin's content to be reused somewhere else,
4268     * see elm_win_inwin_content_unset().
4269     *
4270     * @param obj The inwin object
4271     * @return The content that is being used
4272     */
4273    EAPI Evas_Object          *elm_win_inwin_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4274    /**
4275     * Unset the content of an inwin object.
4276     *
4277     * Unparent and return the content object which was set for this widget.
4278     *
4279     * @param obj The inwin object
4280     * @return The content that was being used
4281     */
4282    EAPI Evas_Object          *elm_win_inwin_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4283    /**
4284     * @}
4285     */
4286    /* X specific calls - won't work on non-x engines (return 0) */
4287
4288    /**
4289     * Get the Ecore_X_Window of an Evas_Object
4290     *
4291     * @param obj The object
4292     *
4293     * @return The Ecore_X_Window of @p obj
4294     *
4295     * @ingroup Win
4296     */
4297    EAPI Ecore_X_Window elm_win_xwindow_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4298
4299    /* smart callbacks called:
4300     * "delete,request" - the user requested to delete the window
4301     * "focus,in" - window got focus
4302     * "focus,out" - window lost focus
4303     * "moved" - window that holds the canvas was moved
4304     */
4305
4306    /**
4307     * @defgroup Bg Bg
4308     *
4309     * @image html img/widget/bg/preview-00.png
4310     * @image latex img/widget/bg/preview-00.eps
4311     *
4312     * @brief Background object, used for setting a solid color, image or Edje
4313     * group as background to a window or any container object.
4314     *
4315     * The bg object is used for setting a solid background to a window or
4316     * packing into any container object. It works just like an image, but has
4317     * some properties useful to a background, like setting it to tiled,
4318     * centered, scaled or stretched.
4319     *
4320     * Here is some sample code using it:
4321     * @li @ref bg_01_example_page
4322     * @li @ref bg_02_example_page
4323     * @li @ref bg_03_example_page
4324     */
4325
4326    /* bg */
4327    typedef enum _Elm_Bg_Option
4328      {
4329         ELM_BG_OPTION_CENTER,  /**< center the background */
4330         ELM_BG_OPTION_SCALE,   /**< scale the background retaining aspect ratio */
4331         ELM_BG_OPTION_STRETCH, /**< stretch the background to fill */
4332         ELM_BG_OPTION_TILE     /**< tile background at its original size */
4333      } Elm_Bg_Option;
4334
4335    /**
4336     * Add a new background to the parent
4337     *
4338     * @param parent The parent object
4339     * @return The new object or NULL if it cannot be created
4340     *
4341     * @ingroup Bg
4342     */
4343    EAPI Evas_Object  *elm_bg_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4344
4345    /**
4346     * Set the file (image or edje) used for the background
4347     *
4348     * @param obj The bg object
4349     * @param file The file path
4350     * @param group Optional key (group in Edje) within the file
4351     *
4352     * This sets the image file used in the background object. The image (or edje)
4353     * will be stretched (retaining aspect if its an image file) to completely fill
4354     * the bg object. This may mean some parts are not visible.
4355     *
4356     * @note  Once the image of @p obj is set, a previously set one will be deleted,
4357     * even if @p file is NULL.
4358     *
4359     * @ingroup Bg
4360     */
4361    EAPI void          elm_bg_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
4362
4363    /**
4364     * Get the file (image or edje) used for the background
4365     *
4366     * @param obj The bg object
4367     * @param file The file path
4368     * @param group Optional key (group in Edje) within the file
4369     *
4370     * @ingroup Bg
4371     */
4372    EAPI void          elm_bg_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4373
4374    /**
4375     * Set the option used for the background image
4376     *
4377     * @param obj The bg object
4378     * @param option The desired background option (TILE, SCALE)
4379     *
4380     * This sets the option used for manipulating the display of the background
4381     * image. The image can be tiled or scaled.
4382     *
4383     * @ingroup Bg
4384     */
4385    EAPI void          elm_bg_option_set(Evas_Object *obj, Elm_Bg_Option option) EINA_ARG_NONNULL(1);
4386
4387    /**
4388     * Get the option used for the background image
4389     *
4390     * @param obj The bg object
4391     * @return The desired background option (CENTER, SCALE, STRETCH or TILE)
4392     *
4393     * @ingroup Bg
4394     */
4395    EAPI Elm_Bg_Option elm_bg_option_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4396    /**
4397     * Set the option used for the background color
4398     *
4399     * @param obj The bg object
4400     * @param r
4401     * @param g
4402     * @param b
4403     *
4404     * This sets the color used for the background rectangle. Its range goes
4405     * from 0 to 255.
4406     *
4407     * @ingroup Bg
4408     */
4409    EAPI void          elm_bg_color_set(Evas_Object *obj, int r, int g, int b) EINA_ARG_NONNULL(1);
4410    /**
4411     * Get the option used for the background color
4412     *
4413     * @param obj The bg object
4414     * @param r
4415     * @param g
4416     * @param b
4417     *
4418     * @ingroup Bg
4419     */
4420    EAPI void          elm_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b) EINA_ARG_NONNULL(1);
4421
4422    /**
4423     * Set the overlay object used for the background object.
4424     *
4425     * @param obj The bg object
4426     * @param overlay The overlay object
4427     *
4428     * This provides a way for elm_bg to have an 'overlay' that will be on top
4429     * of the bg. Once the over object is set, a previously set one will be
4430     * deleted, even if you set the new one to NULL. If you want to keep that
4431     * old content object, use the elm_bg_overlay_unset() function.
4432     *
4433     * @ingroup Bg
4434     */
4435
4436    EAPI void          elm_bg_overlay_set(Evas_Object *obj, Evas_Object *overlay) EINA_ARG_NONNULL(1);
4437
4438    /**
4439     * Get the overlay object used for the background object.
4440     *
4441     * @param obj The bg object
4442     * @return The content that is being used
4443     *
4444     * Return the content object which is set for this widget
4445     *
4446     * @ingroup Bg
4447     */
4448    EAPI Evas_Object  *elm_bg_overlay_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4449
4450    /**
4451     * Get the overlay object used for the background object.
4452     *
4453     * @param obj The bg object
4454     * @return The content that was being used
4455     *
4456     * Unparent and return the overlay object which was set for this widget
4457     *
4458     * @ingroup Bg
4459     */
4460    EAPI Evas_Object  *elm_bg_overlay_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
4461
4462    /**
4463     * Set the size of the pixmap representation of the image.
4464     *
4465     * This option just makes sense if an image is going to be set in the bg.
4466     *
4467     * @param obj The bg object
4468     * @param w The new width of the image pixmap representation.
4469     * @param h The new height of the image pixmap representation.
4470     *
4471     * This function sets a new size for pixmap representation of the given bg
4472     * image. It allows the image to be loaded already in the specified size,
4473     * reducing the memory usage and load time when loading a big image with load
4474     * size set to a smaller size.
4475     *
4476     * NOTE: this is just a hint, the real size of the pixmap may differ
4477     * depending on the type of image being loaded, being bigger than requested.
4478     *
4479     * @ingroup Bg
4480     */
4481    EAPI void          elm_bg_load_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
4482    /* smart callbacks called:
4483     */
4484
4485    /**
4486     * @defgroup Icon Icon
4487     *
4488     * @image html img/widget/icon/preview-00.png
4489     * @image latex img/widget/icon/preview-00.eps
4490     *
4491     * An object that provides standard icon images (delete, edit, arrows, etc.)
4492     * or a custom file (PNG, JPG, EDJE, etc.) used for an icon.
4493     *
4494     * The icon image requested can be in the elementary theme, or in the
4495     * freedesktop.org paths. It's possible to set the order of preference from
4496     * where the image will be used.
4497     *
4498     * This API is very similar to @ref Image, but with ready to use images.
4499     *
4500     * Default images provided by the theme are described below.
4501     *
4502     * The first list contains icons that were first intended to be used in
4503     * toolbars, but can be used in many other places too:
4504     * @li home
4505     * @li close
4506     * @li apps
4507     * @li arrow_up
4508     * @li arrow_down
4509     * @li arrow_left
4510     * @li arrow_right
4511     * @li chat
4512     * @li clock
4513     * @li delete
4514     * @li edit
4515     * @li refresh
4516     * @li folder
4517     * @li file
4518     *
4519     * Now some icons that were designed to be used in menus (but again, you can
4520     * use them anywhere else):
4521     * @li menu/home
4522     * @li menu/close
4523     * @li menu/apps
4524     * @li menu/arrow_up
4525     * @li menu/arrow_down
4526     * @li menu/arrow_left
4527     * @li menu/arrow_right
4528     * @li menu/chat
4529     * @li menu/clock
4530     * @li menu/delete
4531     * @li menu/edit
4532     * @li menu/refresh
4533     * @li menu/folder
4534     * @li menu/file
4535     *
4536     * And here we have some media player specific icons:
4537     * @li media_player/forward
4538     * @li media_player/info
4539     * @li media_player/next
4540     * @li media_player/pause
4541     * @li media_player/play
4542     * @li media_player/prev
4543     * @li media_player/rewind
4544     * @li media_player/stop
4545     *
4546     * Signals that you can add callbacks for are:
4547     *
4548     * "clicked" - This is called when a user has clicked the icon
4549     *
4550     * An example of usage for this API follows:
4551     * @li @ref tutorial_icon
4552     */
4553
4554    /**
4555     * @addtogroup Icon
4556     * @{
4557     */
4558
4559    typedef enum _Elm_Icon_Type
4560      {
4561         ELM_ICON_NONE,
4562         ELM_ICON_FILE,
4563         ELM_ICON_STANDARD
4564      } Elm_Icon_Type;
4565    /**
4566     * @enum _Elm_Icon_Lookup_Order
4567     * @typedef Elm_Icon_Lookup_Order
4568     *
4569     * Lookup order used by elm_icon_standard_set(). Should look for icons in the
4570     * theme, FDO paths, or both?
4571     *
4572     * @ingroup Icon
4573     */
4574    typedef enum _Elm_Icon_Lookup_Order
4575      {
4576         ELM_ICON_LOOKUP_FDO_THEME, /**< icon look up order: freedesktop, theme */
4577         ELM_ICON_LOOKUP_THEME_FDO, /**< icon look up order: theme, freedesktop */
4578         ELM_ICON_LOOKUP_FDO,       /**< icon look up order: freedesktop */
4579         ELM_ICON_LOOKUP_THEME      /**< icon look up order: theme */
4580      } Elm_Icon_Lookup_Order;
4581
4582    /**
4583     * Add a new icon object to the parent.
4584     *
4585     * @param parent The parent object
4586     * @return The new object or NULL if it cannot be created
4587     *
4588     * @see elm_icon_file_set()
4589     *
4590     * @ingroup Icon
4591     */
4592    EAPI Evas_Object          *elm_icon_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
4593    /**
4594     * Set the file that will be used as icon.
4595     *
4596     * @param obj The icon object
4597     * @param file The path to file that will be used as icon image
4598     * @param group The group that the icon belongs to in edje file
4599     *
4600     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4601     *
4602     * @note The icon image set by this function can be changed by
4603     * elm_icon_standard_set().
4604     *
4605     * @see elm_icon_file_get()
4606     *
4607     * @ingroup Icon
4608     */
4609    EAPI Eina_Bool             elm_icon_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
4610    /**
4611     * Set a location in memory to be used as an icon
4612     *
4613     * @param obj The icon object
4614     * @param img The binary data that will be used as an image
4615     * @param size The size of binary data @p img
4616     * @param format Optional format of @p img to pass to the image loader
4617     * @param key Optional key of @p img to pass to the image loader (eg. if @p img is an edje file)
4618     *
4619     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4620     *
4621     * @note The icon image set by this function can be changed by
4622     * elm_icon_standard_set().
4623     *
4624     * @ingroup Icon
4625     */
4626    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);
4627    /**
4628     * Get the file that will be used as icon.
4629     *
4630     * @param obj The icon object
4631     * @param file The path to file that will be used as icon icon image
4632     * @param group The group that the icon belongs to in edje file
4633     *
4634     * @see elm_icon_file_set()
4635     *
4636     * @ingroup Icon
4637     */
4638    EAPI void                  elm_icon_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
4639    EAPI void                  elm_icon_thumb_set(const Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
4640    /**
4641     * Set the icon by icon standards names.
4642     *
4643     * @param obj The icon object
4644     * @param name The icon name
4645     *
4646     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
4647     *
4648     * For example, freedesktop.org defines standard icon names such as "home",
4649     * "network", etc. There can be different icon sets to match those icon
4650     * keys. The @p name given as parameter is one of these "keys", and will be
4651     * used to look in the freedesktop.org paths and elementary theme. One can
4652     * change the lookup order with elm_icon_order_lookup_set().
4653     *
4654     * If name is not found in any of the expected locations and it is the
4655     * absolute path of an image file, this image will be used.
4656     *
4657     * @note The icon image set by this function can be changed by
4658     * elm_icon_file_set().
4659     *
4660     * @see elm_icon_standard_get()
4661     * @see elm_icon_file_set()
4662     *
4663     * @ingroup Icon
4664     */
4665    EAPI Eina_Bool             elm_icon_standard_set(Evas_Object *obj, const char *name) EINA_ARG_NONNULL(1);
4666    /**
4667     * Get the icon name set by icon standard names.
4668     *
4669     * @param obj The icon object
4670     * @return The icon name
4671     *
4672     * If the icon image was set using elm_icon_file_set() instead of
4673     * elm_icon_standard_set(), then this function will return @c NULL.
4674     *
4675     * @see elm_icon_standard_set()
4676     *
4677     * @ingroup Icon
4678     */
4679    EAPI const char           *elm_icon_standard_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4680    /**
4681     * Set the smooth effect for an icon object.
4682     *
4683     * @param obj The icon object
4684     * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
4685     * otherwise. Default is @c EINA_TRUE.
4686     *
4687     * Set the scaling algorithm to be used when scaling the icon image. Smooth
4688     * scaling provides a better resulting image, but is slower.
4689     *
4690     * The smooth scaling should be disabled when making animations that change
4691     * the icon size, since they will be faster. Animations that don't require
4692     * resizing of the icon can keep the smooth scaling enabled (even if the icon
4693     * is already scaled, since the scaled icon image will be cached).
4694     *
4695     * @see elm_icon_smooth_get()
4696     *
4697     * @ingroup Icon
4698     */
4699    EAPI void                  elm_icon_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
4700    /**
4701     * Get the smooth effect for an icon object.
4702     *
4703     * @param obj The icon object
4704     * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
4705     *
4706     * @see elm_icon_smooth_set()
4707     *
4708     * @ingroup Icon
4709     */
4710    EAPI Eina_Bool             elm_icon_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4711    /**
4712     * Disable scaling of this object.
4713     *
4714     * @param obj The icon object.
4715     * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
4716     * otherwise. Default is @c EINA_FALSE.
4717     *
4718     * This function disables scaling of the icon object through the function
4719     * elm_object_scale_set(). However, this does not affect the object
4720     * size/resize in any way. For that effect, take a look at
4721     * elm_icon_scale_set().
4722     *
4723     * @see elm_icon_no_scale_get()
4724     * @see elm_icon_scale_set()
4725     * @see elm_object_scale_set()
4726     *
4727     * @ingroup Icon
4728     */
4729    EAPI void                  elm_icon_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
4730    /**
4731     * Get whether scaling is disabled on the object.
4732     *
4733     * @param obj The icon object
4734     * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
4735     *
4736     * @see elm_icon_no_scale_set()
4737     *
4738     * @ingroup Icon
4739     */
4740    EAPI Eina_Bool             elm_icon_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4741    /**
4742     * Set if the object is (up/down) resizable.
4743     *
4744     * @param obj The icon object
4745     * @param scale_up A bool to set if the object is resizable up. Default is
4746     * @c EINA_TRUE.
4747     * @param scale_down A bool to set if the object is resizable down. Default
4748     * is @c EINA_TRUE.
4749     *
4750     * This function limits the icon object resize ability. If @p scale_up is set to
4751     * @c EINA_FALSE, the object can't have its height or width resized to a value
4752     * higher than the original icon size. Same is valid for @p scale_down.
4753     *
4754     * @see elm_icon_scale_get()
4755     *
4756     * @ingroup Icon
4757     */
4758    EAPI void                  elm_icon_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
4759    /**
4760     * Get if the object is (up/down) resizable.
4761     *
4762     * @param obj The icon object
4763     * @param scale_up A bool to set if the object is resizable up
4764     * @param scale_down A bool to set if the object is resizable down
4765     *
4766     * @see elm_icon_scale_set()
4767     *
4768     * @ingroup Icon
4769     */
4770    EAPI void                  elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
4771    /**
4772     * Get the object's image size
4773     *
4774     * @param obj The icon object
4775     * @param w A pointer to store the width in
4776     * @param h A pointer to store the height in
4777     *
4778     * @ingroup Icon
4779     */
4780    EAPI void                  elm_icon_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
4781    /**
4782     * Set if the icon fill the entire object area.
4783     *
4784     * @param obj The icon object
4785     * @param fill_outside @c EINA_TRUE if the object is filled outside,
4786     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
4787     *
4788     * When the icon object is resized to a different aspect ratio from the
4789     * original icon image, the icon image will still keep its aspect. This flag
4790     * tells how the image should fill the object's area. They are: keep the
4791     * entire icon inside the limits of height and width of the object (@p
4792     * fill_outside is @c EINA_FALSE) or let the extra width or height go outside
4793     * of the object, and the icon will fill the entire object (@p fill_outside
4794     * is @c EINA_TRUE).
4795     *
4796     * @note Unlike @ref Image, there's no option in icon to set the aspect ratio
4797     * retain property to false. Thus, the icon image will always keep its
4798     * original aspect ratio.
4799     *
4800     * @see elm_icon_fill_outside_get()
4801     * @see elm_image_fill_outside_set()
4802     *
4803     * @ingroup Icon
4804     */
4805    EAPI void                  elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
4806    /**
4807     * Get if the object is filled outside.
4808     *
4809     * @param obj The icon object
4810     * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
4811     *
4812     * @see elm_icon_fill_outside_set()
4813     *
4814     * @ingroup Icon
4815     */
4816    EAPI Eina_Bool             elm_icon_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4817    /**
4818     * Set the prescale size for the icon.
4819     *
4820     * @param obj The icon object
4821     * @param size The prescale size. This value is used for both width and
4822     * height.
4823     *
4824     * This function sets a new size for pixmap representation of the given
4825     * icon. It allows the icon to be loaded already in the specified size,
4826     * reducing the memory usage and load time when loading a big icon with load
4827     * size set to a smaller size.
4828     *
4829     * It's equivalent to the elm_bg_load_size_set() function for bg.
4830     *
4831     * @note this is just a hint, the real size of the pixmap may differ
4832     * depending on the type of icon being loaded, being bigger than requested.
4833     *
4834     * @see elm_icon_prescale_get()
4835     * @see elm_bg_load_size_set()
4836     *
4837     * @ingroup Icon
4838     */
4839    EAPI void                  elm_icon_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
4840    /**
4841     * Get the prescale size for the icon.
4842     *
4843     * @param obj The icon object
4844     * @return The prescale size
4845     *
4846     * @see elm_icon_prescale_set()
4847     *
4848     * @ingroup Icon
4849     */
4850    EAPI int                   elm_icon_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4851    /**
4852     * Sets the icon lookup order used by elm_icon_standard_set().
4853     *
4854     * @param obj The icon object
4855     * @param order The icon lookup order (can be one of
4856     * ELM_ICON_LOOKUP_FDO_THEME, ELM_ICON_LOOKUP_THEME_FDO, ELM_ICON_LOOKUP_FDO
4857     * or ELM_ICON_LOOKUP_THEME)
4858     *
4859     * @see elm_icon_order_lookup_get()
4860     * @see Elm_Icon_Lookup_Order
4861     *
4862     * @ingroup Icon
4863     */
4864    EAPI void                  elm_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
4865    /**
4866     * Gets the icon lookup order.
4867     *
4868     * @param obj The icon object
4869     * @return The icon lookup order
4870     *
4871     * @see elm_icon_order_lookup_set()
4872     * @see Elm_Icon_Lookup_Order
4873     *
4874     * @ingroup Icon
4875     */
4876    EAPI Elm_Icon_Lookup_Order elm_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4877    /**
4878     * Get if the icon supports animation or not.
4879     *
4880     * @param obj The icon object
4881     * @return @c EINA_TRUE if the icon supports animation,
4882     *         @c EINA_FALSE otherwise.
4883     *
4884     * Return if this elm icon's image can be animated. Currently Evas only
4885     * supports gif animation. If the return value is EINA_FALSE, other
4886     * elm_icon_animated_XXX APIs won't work.
4887     * @ingroup Icon
4888     */
4889    EAPI Eina_Bool           elm_icon_animated_available_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4890    /**
4891     * Set animation mode of the icon.
4892     *
4893     * @param obj The icon object
4894     * @param anim @c EINA_TRUE if the object do animation job,
4895     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
4896     *
4897     * Even though elm icon's file can be animated,
4898     * sometimes appication developer want to just first page of image.
4899     * In that time, don't call this function, because default value is EINA_FALSE
4900     * Only when you want icon support anition,
4901     * use this function and set animated to EINA_TURE
4902     * @ingroup Icon
4903     */
4904    EAPI void                elm_icon_animated_set(Evas_Object *obj, Eina_Bool animated) EINA_ARG_NONNULL(1);
4905    /**
4906     * Get animation mode of the icon.
4907     *
4908     * @param obj The icon object
4909     * @return The animation mode of the icon object
4910     * @see elm_icon_animated_set
4911     * @ingroup Icon
4912     */
4913    EAPI Eina_Bool           elm_icon_animated_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4914    /**
4915     * Set animation play mode of the icon.
4916     *
4917     * @param obj The icon object
4918     * @param play @c EINA_TRUE the object play animation images,
4919     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
4920     *
4921     * If you want to play elm icon's animation, you set play to EINA_TURE.
4922     * For example, you make gif player using this set/get API and click event.
4923     *
4924     * 1. Click event occurs
4925     * 2. Check play flag using elm_icon_animaged_play_get
4926     * 3. If elm icon was playing, set play to EINA_FALSE.
4927     *    Then animation will be stopped and vice versa
4928     * @ingroup Icon
4929     */
4930    EAPI void                elm_icon_animated_play_set(Evas_Object *obj, Eina_Bool play) EINA_ARG_NONNULL(1);
4931    /**
4932     * Get animation play mode of the icon.
4933     *
4934     * @param obj The icon object
4935     * @return The play mode of the icon object
4936     *
4937     * @see elm_icon_animated_lay_get
4938     * @ingroup Icon
4939     */
4940    EAPI Eina_Bool           elm_icon_animated_play_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
4941
4942    /**
4943     * @}
4944     */
4945
4946    /**
4947     * @defgroup Image Image
4948     *
4949     * @image html img/widget/image/preview-00.png
4950     * @image latex img/widget/image/preview-00.eps
4951
4952     *
4953     * An object that allows one to load an image file to it. It can be used
4954     * anywhere like any other elementary widget.
4955     *
4956     * This widget provides most of the functionality provided from @ref Bg or @ref
4957     * Icon, but with a slightly different API (use the one that fits better your
4958     * needs).
4959     *
4960     * The features not provided by those two other image widgets are:
4961     * @li allowing to get the basic @c Evas_Object with elm_image_object_get();
4962     * @li change the object orientation with elm_image_orient_set();
4963     * @li and turning the image editable with elm_image_editable_set().
4964     *
4965     * Signals that you can add callbacks for are:
4966     *
4967     * @li @c "clicked" - This is called when a user has clicked the image
4968     *
4969     * An example of usage for this API follows:
4970     * @li @ref tutorial_image
4971     */
4972
4973    /**
4974     * @addtogroup Image
4975     * @{
4976     */
4977
4978    /**
4979     * @enum _Elm_Image_Orient
4980     * @typedef Elm_Image_Orient
4981     *
4982     * Possible orientation options for elm_image_orient_set().
4983     *
4984     * @image html elm_image_orient_set.png
4985     * @image latex elm_image_orient_set.eps width=\textwidth
4986     *
4987     * @ingroup Image
4988     */
4989    typedef enum _Elm_Image_Orient
4990      {
4991         ELM_IMAGE_ORIENT_NONE, /**< no orientation change */
4992         ELM_IMAGE_ROTATE_90_CW, /**< rotate 90 degrees clockwise */
4993         ELM_IMAGE_ROTATE_180_CW, /**< rotate 180 degrees clockwise */
4994         ELM_IMAGE_ROTATE_90_CCW, /**< rotate 90 degrees counter-clockwise (i.e. 270 degrees clockwise) */
4995         ELM_IMAGE_FLIP_HORIZONTAL, /**< flip image horizontally */
4996         ELM_IMAGE_FLIP_VERTICAL, /**< flip image vertically */
4997         ELM_IMAGE_FLIP_TRANSPOSE, /**< flip the image along the y = (side - x) line*/
4998         ELM_IMAGE_FLIP_TRANSVERSE /**< flip the image along the y = x line */
4999      } Elm_Image_Orient;
5000
5001    /**
5002     * Add a new image to the parent.
5003     *
5004     * @param parent The parent object
5005     * @return The new object or NULL if it cannot be created
5006     *
5007     * @see elm_image_file_set()
5008     *
5009     * @ingroup Image
5010     */
5011    EAPI Evas_Object     *elm_image_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5012    /**
5013     * Set the file that will be used as image.
5014     *
5015     * @param obj The image object
5016     * @param file The path to file that will be used as image
5017     * @param group The group that the image belongs in edje file (if it's an
5018     * edje image)
5019     *
5020     * @return (@c EINA_TRUE = success, @c EINA_FALSE = error)
5021     *
5022     * @see elm_image_file_get()
5023     *
5024     * @ingroup Image
5025     */
5026    EAPI Eina_Bool        elm_image_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
5027    /**
5028     * Get the file that will be used as image.
5029     *
5030     * @param obj The image object
5031     * @param file The path to file
5032     * @param group The group that the image belongs in edje file
5033     *
5034     * @see elm_image_file_set()
5035     *
5036     * @ingroup Image
5037     */
5038    EAPI void             elm_image_file_get(const Evas_Object *obj, const char **file, const char **group) EINA_ARG_NONNULL(1);
5039    /**
5040     * Set the smooth effect for an image.
5041     *
5042     * @param obj The image object
5043     * @param smooth @c EINA_TRUE if smooth scaling should be used, @c EINA_FALSE
5044     * otherwise. Default is @c EINA_TRUE.
5045     *
5046     * Set the scaling algorithm to be used when scaling the image. Smooth
5047     * scaling provides a better resulting image, but is slower.
5048     *
5049     * The smooth scaling should be disabled when making animations that change
5050     * the image size, since it will be faster. Animations that don't require
5051     * resizing of the image can keep the smooth scaling enabled (even if the
5052     * image is already scaled, since the scaled image will be cached).
5053     *
5054     * @see elm_image_smooth_get()
5055     *
5056     * @ingroup Image
5057     */
5058    EAPI void             elm_image_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
5059    /**
5060     * Get the smooth effect for an image.
5061     *
5062     * @param obj The image object
5063     * @return @c EINA_TRUE if smooth scaling is enabled, @c EINA_FALSE otherwise.
5064     *
5065     * @see elm_image_smooth_get()
5066     *
5067     * @ingroup Image
5068     */
5069    EAPI Eina_Bool        elm_image_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5070    /**
5071     * Gets the current size of the image.
5072     *
5073     * @param obj The image object.
5074     * @param w Pointer to store width, or NULL.
5075     * @param h Pointer to store height, or NULL.
5076     *
5077     * This is the real size of the image, not the size of the object.
5078     *
5079     * On error, neither w or h will be written.
5080     *
5081     * @ingroup Image
5082     */
5083    EAPI void             elm_image_object_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
5084    /**
5085     * Disable scaling of this object.
5086     *
5087     * @param obj The image object.
5088     * @param no_scale @c EINA_TRUE if the object is not scalable, @c EINA_FALSE
5089     * otherwise. Default is @c EINA_FALSE.
5090     *
5091     * This function disables scaling of the elm_image widget through the
5092     * function elm_object_scale_set(). However, this does not affect the widget
5093     * size/resize in any way. For that effect, take a look at
5094     * elm_image_scale_set().
5095     *
5096     * @see elm_image_no_scale_get()
5097     * @see elm_image_scale_set()
5098     * @see elm_object_scale_set()
5099     *
5100     * @ingroup Image
5101     */
5102    EAPI void             elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale) EINA_ARG_NONNULL(1);
5103    /**
5104     * Get whether scaling is disabled on the object.
5105     *
5106     * @param obj The image object
5107     * @return @c EINA_TRUE if scaling is disabled, @c EINA_FALSE otherwise
5108     *
5109     * @see elm_image_no_scale_set()
5110     *
5111     * @ingroup Image
5112     */
5113    EAPI Eina_Bool        elm_image_no_scale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5114    /**
5115     * Set if the object is (up/down) resizable.
5116     *
5117     * @param obj The image object
5118     * @param scale_up A bool to set if the object is resizable up. Default is
5119     * @c EINA_TRUE.
5120     * @param scale_down A bool to set if the object is resizable down. Default
5121     * is @c EINA_TRUE.
5122     *
5123     * This function limits the image resize ability. If @p scale_up is set to
5124     * @c EINA_FALSE, the object can't have its height or width resized to a value
5125     * higher than the original image size. Same is valid for @p scale_down.
5126     *
5127     * @see elm_image_scale_get()
5128     *
5129     * @ingroup Image
5130     */
5131    EAPI void             elm_image_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down) EINA_ARG_NONNULL(1);
5132    /**
5133     * Get if the object is (up/down) resizable.
5134     *
5135     * @param obj The image object
5136     * @param scale_up A bool to set if the object is resizable up
5137     * @param scale_down A bool to set if the object is resizable down
5138     *
5139     * @see elm_image_scale_set()
5140     *
5141     * @ingroup Image
5142     */
5143    EAPI void             elm_image_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
5144    /**
5145     * Set if the image fill the entire object area when keeping the aspect ratio.
5146     *
5147     * @param obj The image object
5148     * @param fill_outside @c EINA_TRUE if the object is filled outside,
5149     * @c EINA_FALSE otherwise. Default is @c EINA_FALSE.
5150     *
5151     * When the image should keep its aspect ratio even if resized to another
5152     * aspect ratio, there are two possibilities to resize it: keep the entire
5153     * image inside the limits of height and width of the object (@p fill_outside
5154     * is @c EINA_FALSE) or let the extra width or height go outside of the object,
5155     * and the image will fill the entire object (@p fill_outside is @c EINA_TRUE).
5156     *
5157     * @note This option will have no effect if
5158     * elm_image_aspect_ratio_retained_set() is set to @c EINA_FALSE.
5159     *
5160     * @see elm_image_fill_outside_get()
5161     * @see elm_image_aspect_ratio_retained_set()
5162     *
5163     * @ingroup Image
5164     */
5165    EAPI void             elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside) EINA_ARG_NONNULL(1);
5166    /**
5167     * Get if the object is filled outside
5168     *
5169     * @param obj The image object
5170     * @return @c EINA_TRUE if the object is filled outside, @c EINA_FALSE otherwise.
5171     *
5172     * @see elm_image_fill_outside_set()
5173     *
5174     * @ingroup Image
5175     */
5176    EAPI Eina_Bool        elm_image_fill_outside_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5177    /**
5178     * Set the prescale size for the image
5179     *
5180     * @param obj The image object
5181     * @param size The prescale size. This value is used for both width and
5182     * height.
5183     *
5184     * This function sets a new size for pixmap representation of the given
5185     * image. It allows the image to be loaded already in the specified size,
5186     * reducing the memory usage and load time when loading a big image with load
5187     * size set to a smaller size.
5188     *
5189     * It's equivalent to the elm_bg_load_size_set() function for bg.
5190     *
5191     * @note this is just a hint, the real size of the pixmap may differ
5192     * depending on the type of image being loaded, being bigger than requested.
5193     *
5194     * @see elm_image_prescale_get()
5195     * @see elm_bg_load_size_set()
5196     *
5197     * @ingroup Image
5198     */
5199    EAPI void             elm_image_prescale_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
5200    /**
5201     * Get the prescale size for the image
5202     *
5203     * @param obj The image object
5204     * @return The prescale size
5205     *
5206     * @see elm_image_prescale_set()
5207     *
5208     * @ingroup Image
5209     */
5210    EAPI int              elm_image_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5211    /**
5212     * Set the image orientation.
5213     *
5214     * @param obj The image object
5215     * @param orient The image orientation
5216     * (one of #ELM_IMAGE_ORIENT_NONE, #ELM_IMAGE_ROTATE_90_CW,
5217     *  #ELM_IMAGE_ROTATE_180_CW, #ELM_IMAGE_ROTATE_90_CCW,
5218     *  #ELM_IMAGE_FLIP_HORIZONTAL, #ELM_IMAGE_FLIP_VERTICAL,
5219     *  #ELM_IMAGE_FLIP_TRANSPOSE, #ELM_IMAGE_FLIP_TRANSVERSE).
5220     *  Default is #ELM_IMAGE_ORIENT_NONE.
5221     *
5222     * This function allows to rotate or flip the given image.
5223     *
5224     * @see elm_image_orient_get()
5225     * @see @ref Elm_Image_Orient
5226     *
5227     * @ingroup Image
5228     */
5229    EAPI void             elm_image_orient_set(Evas_Object *obj, Elm_Image_Orient orient) EINA_ARG_NONNULL(1);
5230    /**
5231     * Get the image orientation.
5232     *
5233     * @param obj The image object
5234     * @return The image orientation
5235     * (one of #ELM_IMAGE_ORIENT_NONE, #ELM_IMAGE_ROTATE_90_CW,
5236     *  #ELM_IMAGE_ROTATE_180_CW, #ELM_IMAGE_ROTATE_90_CCW,
5237     *  #ELM_IMAGE_FLIP_HORIZONTAL, #ELM_IMAGE_FLIP_VERTICAL,
5238     *  #ELM_IMAGE_FLIP_TRANSPOSE, #ELM_IMAGE_FLIP_TRANSVERSE)
5239     *
5240     * @see elm_image_orient_set()
5241     * @see @ref Elm_Image_Orient
5242     *
5243     * @ingroup Image
5244     */
5245    EAPI Elm_Image_Orient elm_image_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5246    /**
5247     * Make the image 'editable'.
5248     *
5249     * @param obj Image object.
5250     * @param set Turn on or off editability. Default is @c EINA_FALSE.
5251     *
5252     * This means the image is a valid drag target for drag and drop, and can be
5253     * cut or pasted too.
5254     *
5255     * @ingroup Image
5256     */
5257    EAPI void             elm_image_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
5258    /**
5259     * Make the image 'editable'.
5260     *
5261     * @param obj Image object.
5262     * @return Editability.
5263     *
5264     * This means the image is a valid drag target for drag and drop, and can be
5265     * cut or pasted too.
5266     *
5267     * @ingroup Image
5268     */
5269    EAPI Eina_Bool        elm_image_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5270    /**
5271     * Get the basic Evas_Image object from this object (widget).
5272     *
5273     * @param obj The image object to get the inlined image from
5274     * @return The inlined image object, or NULL if none exists
5275     *
5276     * This function allows one to get the underlying @c Evas_Object of type
5277     * Image from this elementary widget. It can be useful to do things like get
5278     * the pixel data, save the image to a file, etc.
5279     *
5280     * @note Be careful to not manipulate it, as it is under control of
5281     * elementary.
5282     *
5283     * @ingroup Image
5284     */
5285    EAPI Evas_Object     *elm_image_object_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5286    /**
5287     * Set whether the original aspect ratio of the image should be kept on resize.
5288     *
5289     * @param obj The image object.
5290     * @param retained @c EINA_TRUE if the image should retain the aspect,
5291     * @c EINA_FALSE otherwise.
5292     *
5293     * The original aspect ratio (width / height) of the image is usually
5294     * distorted to match the object's size. Enabling this option will retain
5295     * this original aspect, and the way that the image is fit into the object's
5296     * area depends on the option set by elm_image_fill_outside_set().
5297     *
5298     * @see elm_image_aspect_ratio_retained_get()
5299     * @see elm_image_fill_outside_set()
5300     *
5301     * @ingroup Image
5302     */
5303    EAPI void             elm_image_aspect_ratio_retained_set(Evas_Object *obj, Eina_Bool retained) EINA_ARG_NONNULL(1);
5304    /**
5305     * Get if the object retains the original aspect ratio.
5306     *
5307     * @param obj The image object.
5308     * @return @c EINA_TRUE if the object keeps the original aspect, @c EINA_FALSE
5309     * otherwise.
5310     *
5311     * @ingroup Image
5312     */
5313    EAPI Eina_Bool        elm_image_aspect_ratio_retained_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5314
5315    /**
5316     * @}
5317     */
5318
5319    /* glview */
5320    typedef void (*Elm_GLView_Func_Cb)(Evas_Object *obj);
5321
5322    typedef enum _Elm_GLView_Mode
5323      {
5324         ELM_GLVIEW_ALPHA   = 1,
5325         ELM_GLVIEW_DEPTH   = 2,
5326         ELM_GLVIEW_STENCIL = 4
5327      } Elm_GLView_Mode;
5328
5329    /**
5330     * Defines a policy for the glview resizing.
5331     *
5332     * @note Default is ELM_GLVIEW_RESIZE_POLICY_RECREATE
5333     */
5334    typedef enum _Elm_GLView_Resize_Policy
5335      {
5336         ELM_GLVIEW_RESIZE_POLICY_RECREATE = 1,      /**< Resize the internal surface along with the image */
5337         ELM_GLVIEW_RESIZE_POLICY_SCALE    = 2       /**< Only reize the internal image and not the surface */
5338      } Elm_GLView_Resize_Policy;
5339
5340    typedef enum _Elm_GLView_Render_Policy
5341      {
5342         ELM_GLVIEW_RENDER_POLICY_ON_DEMAND = 1,     /**< Render only when there is a need for redrawing */
5343         ELM_GLVIEW_RENDER_POLICY_ALWAYS    = 2      /**< Render always even when it is not visible */
5344      } Elm_GLView_Render_Policy;
5345
5346    /**
5347     * @defgroup GLView
5348     *
5349     * A simple GLView widget that allows GL rendering.
5350     *
5351     * Signals that you can add callbacks for are:
5352     *
5353     * @{
5354     */
5355
5356    /**
5357     * Add a new glview to the parent
5358     *
5359     * @param parent The parent object
5360     * @return The new object or NULL if it cannot be created
5361     *
5362     * @ingroup GLView
5363     */
5364    EAPI Evas_Object     *elm_glview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5365
5366    /**
5367     * Sets the size of the glview
5368     *
5369     * @param obj The glview object
5370     * @param width width of the glview object
5371     * @param height height of the glview object
5372     *
5373     * @ingroup GLView
5374     */
5375    EAPI void             elm_glview_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
5376
5377    /**
5378     * Gets the size of the glview.
5379     *
5380     * @param obj The glview object
5381     * @param width width of the glview object
5382     * @param height height of the glview object
5383     *
5384     * Note that this function returns the actual image size of the
5385     * glview.  This means that when the scale policy is set to
5386     * ELM_GLVIEW_RESIZE_POLICY_SCALE, it'll return the non-scaled
5387     * size.
5388     *
5389     * @ingroup GLView
5390     */
5391    EAPI void             elm_glview_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
5392
5393    /**
5394     * Gets the gl api struct for gl rendering
5395     *
5396     * @param obj The glview object
5397     * @return The api object or NULL if it cannot be created
5398     *
5399     * @ingroup GLView
5400     */
5401    EAPI Evas_GL_API     *elm_glview_gl_api_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5402
5403    /**
5404     * Set the mode of the GLView. Supports Three simple modes.
5405     *
5406     * @param obj The glview object
5407     * @param mode The mode Options OR'ed enabling Alpha, Depth, Stencil.
5408     * @return True if set properly.
5409     *
5410     * @ingroup GLView
5411     */
5412    EAPI Eina_Bool        elm_glview_mode_set(Evas_Object *obj, Elm_GLView_Mode mode) EINA_ARG_NONNULL(1);
5413
5414    /**
5415     * Set the resize policy for the glview object.
5416     *
5417     * @param obj The glview object.
5418     * @param policy The scaling policy.
5419     *
5420     * By default, the resize policy is set to
5421     * ELM_GLVIEW_RESIZE_POLICY_RECREATE.  When resize is called it
5422     * destroys the previous surface and recreates the newly specified
5423     * size. If the policy is set to ELM_GLVIEW_RESIZE_POLICY_SCALE,
5424     * however, glview only scales the image object and not the underlying
5425     * GL Surface.
5426     *
5427     * @ingroup GLView
5428     */
5429    EAPI Eina_Bool        elm_glview_resize_policy_set(Evas_Object *obj, Elm_GLView_Resize_Policy policy) EINA_ARG_NONNULL(1);
5430
5431    /**
5432     * Set the render policy for the glview object.
5433     *
5434     * @param obj The glview object.
5435     * @param policy The render policy.
5436     *
5437     * By default, the render policy is set to
5438     * ELM_GLVIEW_RENDER_POLICY_ON_DEMAND.  This policy is set such
5439     * that during the render loop, glview is only redrawn if it needs
5440     * to be redrawn. (i.e. When it is visible) If the policy is set to
5441     * ELM_GLVIEWW_RENDER_POLICY_ALWAYS, it redraws regardless of
5442     * whether it is visible/need redrawing or not.
5443     *
5444     * @ingroup GLView
5445     */
5446    EAPI Eina_Bool        elm_glview_render_policy_set(Evas_Object *obj, Elm_GLView_Render_Policy policy) EINA_ARG_NONNULL(1);
5447
5448    /**
5449     * Set the init function that runs once in the main loop.
5450     *
5451     * @param obj The glview object.
5452     * @param func The init function to be registered.
5453     *
5454     * The registered init function gets called once during the render loop.
5455     *
5456     * @ingroup GLView
5457     */
5458    EAPI void             elm_glview_init_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5459
5460    /**
5461     * Set the render function that runs in the main loop.
5462     *
5463     * @param obj The glview object.
5464     * @param func The delete function to be registered.
5465     *
5466     * The registered del function gets called when GLView object is deleted.
5467     *
5468     * @ingroup GLView
5469     */
5470    EAPI void             elm_glview_del_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5471
5472    /**
5473     * Set the resize function that gets called when resize happens.
5474     *
5475     * @param obj The glview object.
5476     * @param func The resize function to be registered.
5477     *
5478     * @ingroup GLView
5479     */
5480    EAPI void             elm_glview_resize_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5481
5482    /**
5483     * Set the render function that runs in the main loop.
5484     *
5485     * @param obj The glview object.
5486     * @param func The render function to be registered.
5487     *
5488     * @ingroup GLView
5489     */
5490    EAPI void             elm_glview_render_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func) EINA_ARG_NONNULL(1);
5491
5492    /**
5493     * Notifies that there has been changes in the GLView.
5494     *
5495     * @param obj The glview object.
5496     *
5497     * @ingroup GLView
5498     */
5499    EAPI void             elm_glview_changed_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
5500
5501    /**
5502     * @}
5503     */
5504
5505    /* box */
5506    /**
5507     * @defgroup Box Box
5508     *
5509     * @image html img/widget/box/preview-00.png
5510     * @image latex img/widget/box/preview-00.eps width=\textwidth
5511     *
5512     * @image html img/box.png
5513     * @image latex img/box.eps width=\textwidth
5514     *
5515     * A box arranges objects in a linear fashion, governed by a layout function
5516     * that defines the details of this arrangement.
5517     *
5518     * By default, the box will use an internal function to set the layout to
5519     * a single row, either vertical or horizontal. This layout is affected
5520     * by a number of parameters, such as the homogeneous flag set by
5521     * elm_box_homogeneous_set(), the values given by elm_box_padding_set() and
5522     * elm_box_align_set() and the hints set to each object in the box.
5523     *
5524     * For this default layout, it's possible to change the orientation with
5525     * elm_box_horizontal_set(). The box will start in the vertical orientation,
5526     * placing its elements ordered from top to bottom. When horizontal is set,
5527     * the order will go from left to right. If the box is set to be
5528     * homogeneous, every object in it will be assigned the same space, that
5529     * of the largest object. Padding can be used to set some spacing between
5530     * the cell given to each object. The alignment of the box, set with
5531     * elm_box_align_set(), determines how the bounding box of all the elements
5532     * will be placed within the space given to the box widget itself.
5533     *
5534     * The size hints of each object also affect how they are placed and sized
5535     * within the box. evas_object_size_hint_min_set() will give the minimum
5536     * size the object can have, and the box will use it as the basis for all
5537     * latter calculations. Elementary widgets set their own minimum size as
5538     * needed, so there's rarely any need to use it manually.
5539     *
5540     * evas_object_size_hint_weight_set(), when not in homogeneous mode, is
5541     * used to tell whether the object will be allocated the minimum size it
5542     * needs or if the space given to it should be expanded. It's important
5543     * to realize that expanding the size given to the object is not the same
5544     * thing as resizing the object. It could very well end being a small
5545     * widget floating in a much larger empty space. If not set, the weight
5546     * for objects will normally be 0.0 for both axis, meaning the widget will
5547     * not be expanded. To take as much space possible, set the weight to
5548     * EVAS_HINT_EXPAND (defined to 1.0) for the desired axis to expand.
5549     *
5550     * Besides how much space each object is allocated, it's possible to control
5551     * how the widget will be placed within that space using
5552     * evas_object_size_hint_align_set(). By default, this value will be 0.5
5553     * for both axis, meaning the object will be centered, but any value from
5554     * 0.0 (left or top, for the @c x and @c y axis, respectively) to 1.0
5555     * (right or bottom) can be used. The special value EVAS_HINT_FILL, which
5556     * is -1.0, means the object will be resized to fill the entire space it
5557     * was allocated.
5558     *
5559     * In addition, customized functions to define the layout can be set, which
5560     * allow the application developer to organize the objects within the box
5561     * in any number of ways.
5562     *
5563     * The special elm_box_layout_transition() function can be used
5564     * to switch from one layout to another, animating the motion of the
5565     * children of the box.
5566     *
5567     * @note Objects should not be added to box objects using _add() calls.
5568     *
5569     * Some examples on how to use boxes follow:
5570     * @li @ref box_example_01
5571     * @li @ref box_example_02
5572     *
5573     * @{
5574     */
5575    /**
5576     * @typedef Elm_Box_Transition
5577     *
5578     * Opaque handler containing the parameters to perform an animated
5579     * transition of the layout the box uses.
5580     *
5581     * @see elm_box_transition_new()
5582     * @see elm_box_layout_set()
5583     * @see elm_box_layout_transition()
5584     */
5585    typedef struct _Elm_Box_Transition Elm_Box_Transition;
5586
5587    /**
5588     * Add a new box to the parent
5589     *
5590     * By default, the box will be in vertical mode and non-homogeneous.
5591     *
5592     * @param parent The parent object
5593     * @return The new object or NULL if it cannot be created
5594     */
5595    EAPI Evas_Object        *elm_box_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5596    /**
5597     * Set the horizontal orientation
5598     *
5599     * By default, box object arranges their contents vertically from top to
5600     * bottom.
5601     * By calling this function with @p horizontal as EINA_TRUE, the box will
5602     * become horizontal, arranging contents from left to right.
5603     *
5604     * @note This flag is ignored if a custom layout function is set.
5605     *
5606     * @param obj The box object
5607     * @param horizontal The horizontal flag (EINA_TRUE = horizontal,
5608     * EINA_FALSE = vertical)
5609     */
5610    EAPI void                elm_box_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
5611    /**
5612     * Get the horizontal orientation
5613     *
5614     * @param obj The box object
5615     * @return EINA_TRUE if the box is set to horizontal mode, EINA_FALSE otherwise
5616     */
5617    EAPI Eina_Bool           elm_box_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5618    /**
5619     * Set the box to arrange its children homogeneously
5620     *
5621     * If enabled, homogeneous layout makes all items the same size, according
5622     * to the size of the largest of its children.
5623     *
5624     * @note This flag is ignored if a custom layout function is set.
5625     *
5626     * @param obj The box object
5627     * @param homogeneous The homogeneous flag
5628     */
5629    EAPI void                elm_box_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
5630    /**
5631     * Get whether the box is using homogeneous mode or not
5632     *
5633     * @param obj The box object
5634     * @return EINA_TRUE if it's homogeneous, EINA_FALSE otherwise
5635     */
5636    EAPI Eina_Bool           elm_box_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5637    EINA_DEPRECATED EAPI void elm_box_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
5638    EINA_DEPRECATED EAPI Eina_Bool elm_box_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5639    /**
5640     * Add an object to the beginning of the pack list
5641     *
5642     * Pack @p subobj into the box @p obj, placing it first in the list of
5643     * children objects. The actual position the object will get on screen
5644     * depends on the layout used. If no custom layout is set, it will be at
5645     * the top or left, depending if the box is vertical or horizontal,
5646     * respectively.
5647     *
5648     * @param obj The box object
5649     * @param subobj The object to add to the box
5650     *
5651     * @see elm_box_pack_end()
5652     * @see elm_box_pack_before()
5653     * @see elm_box_pack_after()
5654     * @see elm_box_unpack()
5655     * @see elm_box_unpack_all()
5656     * @see elm_box_clear()
5657     */
5658    EAPI void                elm_box_pack_start(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5659    /**
5660     * Add an object at the end of the pack list
5661     *
5662     * Pack @p subobj into the box @p obj, placing it last in the list of
5663     * children objects. The actual position the object will get on screen
5664     * depends on the layout used. If no custom layout is set, it will be at
5665     * the bottom or right, depending if the box is vertical or horizontal,
5666     * respectively.
5667     *
5668     * @param obj The box object
5669     * @param subobj The object to add to the box
5670     *
5671     * @see elm_box_pack_start()
5672     * @see elm_box_pack_before()
5673     * @see elm_box_pack_after()
5674     * @see elm_box_unpack()
5675     * @see elm_box_unpack_all()
5676     * @see elm_box_clear()
5677     */
5678    EAPI void                elm_box_pack_end(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5679    /**
5680     * Adds an object to the box before the indicated object
5681     *
5682     * This will add the @p subobj to the box indicated before the object
5683     * indicated with @p before. If @p before is not already in the box, results
5684     * are undefined. Before means either to the left of the indicated object or
5685     * above it depending on orientation.
5686     *
5687     * @param obj The box object
5688     * @param subobj The object to add to the box
5689     * @param before The object before which to add it
5690     *
5691     * @see elm_box_pack_start()
5692     * @see elm_box_pack_end()
5693     * @see elm_box_pack_after()
5694     * @see elm_box_unpack()
5695     * @see elm_box_unpack_all()
5696     * @see elm_box_clear()
5697     */
5698    EAPI void                elm_box_pack_before(Evas_Object *obj, Evas_Object *subobj, Evas_Object *before) EINA_ARG_NONNULL(1);
5699    /**
5700     * Adds an object to the box after the indicated object
5701     *
5702     * This will add the @p subobj to the box indicated after the object
5703     * indicated with @p after. If @p after is not already in the box, results
5704     * are undefined. After means either to the right of the indicated object or
5705     * below it depending on orientation.
5706     *
5707     * @param obj The box object
5708     * @param subobj The object to add to the box
5709     * @param after The object after which to add it
5710     *
5711     * @see elm_box_pack_start()
5712     * @see elm_box_pack_end()
5713     * @see elm_box_pack_before()
5714     * @see elm_box_unpack()
5715     * @see elm_box_unpack_all()
5716     * @see elm_box_clear()
5717     */
5718    EAPI void                elm_box_pack_after(Evas_Object *obj, Evas_Object *subobj, Evas_Object *after) EINA_ARG_NONNULL(1);
5719    /**
5720     * Clear the box of all children
5721     *
5722     * Remove all the elements contained by the box, deleting the respective
5723     * objects.
5724     *
5725     * @param obj The box object
5726     *
5727     * @see elm_box_unpack()
5728     * @see elm_box_unpack_all()
5729     */
5730    EAPI void                elm_box_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
5731    /**
5732     * Unpack a box item
5733     *
5734     * Remove the object given by @p subobj from the box @p obj without
5735     * deleting it.
5736     *
5737     * @param obj The box object
5738     *
5739     * @see elm_box_unpack_all()
5740     * @see elm_box_clear()
5741     */
5742    EAPI void                elm_box_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
5743    /**
5744     * Remove all items from the box, without deleting them
5745     *
5746     * Clear the box from all children, but don't delete the respective objects.
5747     * If no other references of the box children exist, the objects will never
5748     * be deleted, and thus the application will leak the memory. Make sure
5749     * when using this function that you hold a reference to all the objects
5750     * in the box @p obj.
5751     *
5752     * @param obj The box object
5753     *
5754     * @see elm_box_clear()
5755     * @see elm_box_unpack()
5756     */
5757    EAPI void                elm_box_unpack_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
5758    /**
5759     * Retrieve a list of the objects packed into the box
5760     *
5761     * Returns a new @c Eina_List with a pointer to @c Evas_Object in its nodes.
5762     * The order of the list corresponds to the packing order the box uses.
5763     *
5764     * You must free this list with eina_list_free() once you are done with it.
5765     *
5766     * @param obj The box object
5767     */
5768    EAPI const Eina_List    *elm_box_children_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5769    /**
5770     * Set the space (padding) between the box's elements.
5771     *
5772     * Extra space in pixels that will be added between a box child and its
5773     * neighbors after its containing cell has been calculated. This padding
5774     * is set for all elements in the box, besides any possible padding that
5775     * individual elements may have through their size hints.
5776     *
5777     * @param obj The box object
5778     * @param horizontal The horizontal space between elements
5779     * @param vertical The vertical space between elements
5780     */
5781    EAPI void                elm_box_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
5782    /**
5783     * Get the space (padding) between the box's elements.
5784     *
5785     * @param obj The box object
5786     * @param horizontal The horizontal space between elements
5787     * @param vertical The vertical space between elements
5788     *
5789     * @see elm_box_padding_set()
5790     */
5791    EAPI void                elm_box_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
5792    /**
5793     * Set the alignment of the whole bouding box of contents.
5794     *
5795     * Sets how the bounding box containing all the elements of the box, after
5796     * their sizes and position has been calculated, will be aligned within
5797     * the space given for the whole box widget.
5798     *
5799     * @param obj The box object
5800     * @param horizontal The horizontal alignment of elements
5801     * @param vertical The vertical alignment of elements
5802     */
5803    EAPI void                elm_box_align_set(Evas_Object *obj, double horizontal, double vertical) EINA_ARG_NONNULL(1);
5804    /**
5805     * Get the alignment of the whole bouding box of contents.
5806     *
5807     * @param obj The box object
5808     * @param horizontal The horizontal alignment of elements
5809     * @param vertical The vertical alignment of elements
5810     *
5811     * @see elm_box_align_set()
5812     */
5813    EAPI void                elm_box_align_get(const Evas_Object *obj, double *horizontal, double *vertical) EINA_ARG_NONNULL(1);
5814
5815    /**
5816     * Set the layout defining function to be used by the box
5817     *
5818     * Whenever anything changes that requires the box in @p obj to recalculate
5819     * the size and position of its elements, the function @p cb will be called
5820     * to determine what the layout of the children will be.
5821     *
5822     * Once a custom function is set, everything about the children layout
5823     * is defined by it. The flags set by elm_box_horizontal_set() and
5824     * elm_box_homogeneous_set() no longer have any meaning, and the values
5825     * given by elm_box_padding_set() and elm_box_align_set() are up to this
5826     * layout function to decide if they are used and how. These last two
5827     * will be found in the @c priv parameter, of type @c Evas_Object_Box_Data,
5828     * passed to @p cb. The @c Evas_Object the function receives is not the
5829     * Elementary widget, but the internal Evas Box it uses, so none of the
5830     * functions described here can be used on it.
5831     *
5832     * Any of the layout functions in @c Evas can be used here, as well as the
5833     * special elm_box_layout_transition().
5834     *
5835     * The final @p data argument received by @p cb is the same @p data passed
5836     * here, and the @p free_data function will be called to free it
5837     * whenever the box is destroyed or another layout function is set.
5838     *
5839     * Setting @p cb to NULL will revert back to the default layout function.
5840     *
5841     * @param obj The box object
5842     * @param cb The callback function used for layout
5843     * @param data Data that will be passed to layout function
5844     * @param free_data Function called to free @p data
5845     *
5846     * @see elm_box_layout_transition()
5847     */
5848    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);
5849    /**
5850     * Special layout function that animates the transition from one layout to another
5851     *
5852     * Normally, when switching the layout function for a box, this will be
5853     * reflected immediately on screen on the next render, but it's also
5854     * possible to do this through an animated transition.
5855     *
5856     * This is done by creating an ::Elm_Box_Transition and setting the box
5857     * layout to this function.
5858     *
5859     * For example:
5860     * @code
5861     * Elm_Box_Transition *t = elm_box_transition_new(1.0,
5862     *                            evas_object_box_layout_vertical, // start
5863     *                            NULL, // data for initial layout
5864     *                            NULL, // free function for initial data
5865     *                            evas_object_box_layout_horizontal, // end
5866     *                            NULL, // data for final layout
5867     *                            NULL, // free function for final data
5868     *                            anim_end, // will be called when animation ends
5869     *                            NULL); // data for anim_end function\
5870     * elm_box_layout_set(box, elm_box_layout_transition, t,
5871     *                    elm_box_transition_free);
5872     * @endcode
5873     *
5874     * @note This function can only be used with elm_box_layout_set(). Calling
5875     * it directly will not have the expected results.
5876     *
5877     * @see elm_box_transition_new
5878     * @see elm_box_transition_free
5879     * @see elm_box_layout_set
5880     */
5881    EAPI void                elm_box_layout_transition(Evas_Object *obj, Evas_Object_Box_Data *priv, void *data);
5882    /**
5883     * Create a new ::Elm_Box_Transition to animate the switch of layouts
5884     *
5885     * If you want to animate the change from one layout to another, you need
5886     * to set the layout function of the box to elm_box_layout_transition(),
5887     * passing as user data to it an instance of ::Elm_Box_Transition with the
5888     * necessary information to perform this animation. The free function to
5889     * set for the layout is elm_box_transition_free().
5890     *
5891     * The parameters to create an ::Elm_Box_Transition sum up to how long
5892     * will it be, in seconds, a layout function to describe the initial point,
5893     * another for the final position of the children and one function to be
5894     * called when the whole animation ends. This last function is useful to
5895     * set the definitive layout for the box, usually the same as the end
5896     * layout for the animation, but could be used to start another transition.
5897     *
5898     * @param start_layout The layout function that will be used to start the animation
5899     * @param start_layout_data The data to be passed the @p start_layout function
5900     * @param start_layout_free_data Function to free @p start_layout_data
5901     * @param end_layout The layout function that will be used to end the animation
5902     * @param end_layout_free_data The data to be passed the @p end_layout function
5903     * @param end_layout_free_data Function to free @p end_layout_data
5904     * @param transition_end_cb Callback function called when animation ends
5905     * @param transition_end_data Data to be passed to @p transition_end_cb
5906     * @return An instance of ::Elm_Box_Transition
5907     *
5908     * @see elm_box_transition_new
5909     * @see elm_box_layout_transition
5910     */
5911    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);
5912    /**
5913     * Free a Elm_Box_Transition instance created with elm_box_transition_new().
5914     *
5915     * This function is mostly useful as the @c free_data parameter in
5916     * elm_box_layout_set() when elm_box_layout_transition().
5917     *
5918     * @param data The Elm_Box_Transition instance to be freed.
5919     *
5920     * @see elm_box_transition_new
5921     * @see elm_box_layout_transition
5922     */
5923    EAPI void                elm_box_transition_free(void *data);
5924    /**
5925     * @}
5926     */
5927
5928    /* button */
5929    /**
5930     * @defgroup Button Button
5931     *
5932     * @image html img/widget/button/preview-00.png
5933     * @image latex img/widget/button/preview-00.eps
5934     * @image html img/widget/button/preview-01.png
5935     * @image latex img/widget/button/preview-01.eps
5936     * @image html img/widget/button/preview-02.png
5937     * @image latex img/widget/button/preview-02.eps
5938     *
5939     * This is a push-button. Press it and run some function. It can contain
5940     * a simple label and icon object and it also has an autorepeat feature.
5941     *
5942     * This widgets emits the following signals:
5943     * @li "clicked": the user clicked the button (press/release).
5944     * @li "repeated": the user pressed the button without releasing it.
5945     * @li "pressed": button was pressed.
5946     * @li "unpressed": button was released after being pressed.
5947     * In all three cases, the @c event parameter of the callback will be
5948     * @c NULL.
5949     *
5950     * Also, defined in the default theme, the button has the following styles
5951     * available:
5952     * @li default: a normal button.
5953     * @li anchor: Like default, but the button fades away when the mouse is not
5954     * over it, leaving only the text or icon.
5955     * @li hoversel_vertical: Internally used by @ref Hoversel to give a
5956     * continuous look across its options.
5957     * @li hoversel_vertical_entry: Another internal for @ref Hoversel.
5958     *
5959     * Follow through a complete example @ref button_example_01 "here".
5960     * @{
5961     */
5962    /**
5963     * Add a new button to the parent's canvas
5964     *
5965     * @param parent The parent object
5966     * @return The new object or NULL if it cannot be created
5967     */
5968    EAPI Evas_Object *elm_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
5969    /**
5970     * Set the label used in the button
5971     *
5972     * The passed @p label can be NULL to clean any existing text in it and
5973     * leave the button as an icon only object.
5974     *
5975     * @param obj The button object
5976     * @param label The text will be written on the button
5977     * @deprecated use elm_object_text_set() instead.
5978     */
5979    EINA_DEPRECATED EAPI void         elm_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
5980    /**
5981     * Get the label set for the button
5982     *
5983     * The string returned is an internal pointer and should not be freed or
5984     * altered. It will also become invalid when the button is destroyed.
5985     * The string returned, if not NULL, is a stringshare, so if you need to
5986     * keep it around even after the button is destroyed, you can use
5987     * eina_stringshare_ref().
5988     *
5989     * @param obj The button object
5990     * @return The text set to the label, or NULL if nothing is set
5991     * @deprecated use elm_object_text_set() instead.
5992     */
5993    EINA_DEPRECATED EAPI const char  *elm_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
5994    /**
5995     * Set the icon used for the button
5996     *
5997     * Setting a new icon will delete any other that was previously set, making
5998     * any reference to them invalid. If you need to maintain the previous
5999     * object alive, unset it first with elm_button_icon_unset().
6000     *
6001     * @param obj The button object
6002     * @param icon The icon object for the button
6003     */
6004    EAPI void         elm_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6005    /**
6006     * Get the icon used for the button
6007     *
6008     * Return the icon object which is set for this widget. If the button is
6009     * destroyed or another icon is set, the returned object will be deleted
6010     * and any reference to it will be invalid.
6011     *
6012     * @param obj The button object
6013     * @return The icon object that is being used
6014     *
6015     * @see elm_button_icon_unset()
6016     */
6017    EAPI Evas_Object *elm_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6018    /**
6019     * Remove the icon set without deleting it and return the object
6020     *
6021     * This function drops the reference the button holds of the icon object
6022     * and returns this last object. It is used in case you want to remove any
6023     * icon, or set another one, without deleting the actual object. The button
6024     * will be left without an icon set.
6025     *
6026     * @param obj The button object
6027     * @return The icon object that was being used
6028     */
6029    EAPI Evas_Object *elm_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6030    /**
6031     * Turn on/off the autorepeat event generated when the button is kept pressed
6032     *
6033     * When off, no autorepeat is performed and buttons emit a normal @c clicked
6034     * signal when they are clicked.
6035     *
6036     * When on, keeping a button pressed will continuously emit a @c repeated
6037     * signal until the button is released. The time it takes until it starts
6038     * emitting the signal is given by
6039     * elm_button_autorepeat_initial_timeout_set(), and the time between each
6040     * new emission by elm_button_autorepeat_gap_timeout_set().
6041     *
6042     * @param obj The button object
6043     * @param on  A bool to turn on/off the event
6044     */
6045    EAPI void         elm_button_autorepeat_set(Evas_Object *obj, Eina_Bool on) EINA_ARG_NONNULL(1);
6046    /**
6047     * Get whether the autorepeat feature is enabled
6048     *
6049     * @param obj The button object
6050     * @return EINA_TRUE if autorepeat is on, EINA_FALSE otherwise
6051     *
6052     * @see elm_button_autorepeat_set()
6053     */
6054    EAPI Eina_Bool    elm_button_autorepeat_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6055    /**
6056     * Set the initial timeout before the autorepeat event is generated
6057     *
6058     * Sets the timeout, in seconds, since the button is pressed until the
6059     * first @c repeated signal is emitted. If @p t is 0.0 or less, there
6060     * won't be any delay and the even will be fired the moment the button is
6061     * pressed.
6062     *
6063     * @param obj The button object
6064     * @param t   Timeout in seconds
6065     *
6066     * @see elm_button_autorepeat_set()
6067     * @see elm_button_autorepeat_gap_timeout_set()
6068     */
6069    EAPI void         elm_button_autorepeat_initial_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6070    /**
6071     * Get the initial timeout before the autorepeat event is generated
6072     *
6073     * @param obj The button object
6074     * @return Timeout in seconds
6075     *
6076     * @see elm_button_autorepeat_initial_timeout_set()
6077     */
6078    EAPI double       elm_button_autorepeat_initial_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6079    /**
6080     * Set the interval between each generated autorepeat event
6081     *
6082     * After the first @c repeated event is fired, all subsequent ones will
6083     * follow after a delay of @p t seconds for each.
6084     *
6085     * @param obj The button object
6086     * @param t   Interval in seconds
6087     *
6088     * @see elm_button_autorepeat_initial_timeout_set()
6089     */
6090    EAPI void         elm_button_autorepeat_gap_timeout_set(Evas_Object *obj, double t) EINA_ARG_NONNULL(1);
6091    /**
6092     * Get the interval between each generated autorepeat event
6093     *
6094     * @param obj The button object
6095     * @return Interval in seconds
6096     */
6097    EAPI double       elm_button_autorepeat_gap_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6098    /**
6099     * @}
6100     */
6101
6102    /**
6103     * @defgroup File_Selector_Button File Selector Button
6104     *
6105     * @image html img/widget/fileselector_button/preview-00.png
6106     * @image latex img/widget/fileselector_button/preview-00.eps
6107     * @image html img/widget/fileselector_button/preview-01.png
6108     * @image latex img/widget/fileselector_button/preview-01.eps
6109     * @image html img/widget/fileselector_button/preview-02.png
6110     * @image latex img/widget/fileselector_button/preview-02.eps
6111     *
6112     * This is a button that, when clicked, creates an Elementary
6113     * window (or inner window) <b> with a @ref Fileselector "file
6114     * selector widget" within</b>. When a file is chosen, the (inner)
6115     * window is closed and the button emits a signal having the
6116     * selected file as it's @c event_info.
6117     *
6118     * This widget encapsulates operations on its internal file
6119     * selector on its own API. There is less control over its file
6120     * selector than that one would have instatiating one directly.
6121     *
6122     * The following styles are available for this button:
6123     * @li @c "default"
6124     * @li @c "anchor"
6125     * @li @c "hoversel_vertical"
6126     * @li @c "hoversel_vertical_entry"
6127     *
6128     * Smart callbacks one can register to:
6129     * - @c "file,chosen" - the user has selected a path, whose string
6130     *   pointer comes as the @c event_info data (a stringshared
6131     *   string)
6132     *
6133     * Here is an example on its usage:
6134     * @li @ref fileselector_button_example
6135     *
6136     * @see @ref File_Selector_Entry for a similar widget.
6137     * @{
6138     */
6139
6140    /**
6141     * Add a new file selector button widget to the given parent
6142     * Elementary (container) object
6143     *
6144     * @param parent The parent object
6145     * @return a new file selector button widget handle or @c NULL, on
6146     * errors
6147     */
6148    EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6149
6150    /**
6151     * Set the label for a given file selector button widget
6152     *
6153     * @param obj The file selector button widget
6154     * @param label The text label to be displayed on @p obj
6155     *
6156     * @deprecated use elm_object_text_set() instead.
6157     */
6158    EINA_DEPRECATED EAPI void         elm_fileselector_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6159
6160    /**
6161     * Get the label set for a given file selector button widget
6162     *
6163     * @param obj The file selector button widget
6164     * @return The button label
6165     *
6166     * @deprecated use elm_object_text_set() instead.
6167     */
6168    EINA_DEPRECATED EAPI const char  *elm_fileselector_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6169
6170    /**
6171     * Set the icon on a given file selector button widget
6172     *
6173     * @param obj The file selector button widget
6174     * @param icon The icon object for the button
6175     *
6176     * Once the icon object is set, a previously set one will be
6177     * deleted. If you want to keep the latter, use the
6178     * elm_fileselector_button_icon_unset() function.
6179     *
6180     * @see elm_fileselector_button_icon_get()
6181     */
6182    EAPI void         elm_fileselector_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6183
6184    /**
6185     * Get the icon set for a given file selector button widget
6186     *
6187     * @param obj The file selector button widget
6188     * @return The icon object currently set on @p obj or @c NULL, if
6189     * none is
6190     *
6191     * @see elm_fileselector_button_icon_set()
6192     */
6193    EAPI Evas_Object *elm_fileselector_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6194
6195    /**
6196     * Unset the icon used in a given file selector button widget
6197     *
6198     * @param obj The file selector button widget
6199     * @return The icon object that was being used on @p obj or @c
6200     * NULL, on errors
6201     *
6202     * Unparent and return the icon object which was set for this
6203     * widget.
6204     *
6205     * @see elm_fileselector_button_icon_set()
6206     */
6207    EAPI Evas_Object *elm_fileselector_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6208
6209    /**
6210     * Set the title for a given file selector button widget's window
6211     *
6212     * @param obj The file selector button widget
6213     * @param title The title string
6214     *
6215     * This will change the window's title, when the file selector pops
6216     * out after a click on the button. Those windows have the default
6217     * (unlocalized) value of @c "Select a file" as titles.
6218     *
6219     * @note It will only take any effect if the file selector
6220     * button widget is @b not under "inwin mode".
6221     *
6222     * @see elm_fileselector_button_window_title_get()
6223     */
6224    EAPI void         elm_fileselector_button_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6225
6226    /**
6227     * Get the title set for a given file selector button widget's
6228     * window
6229     *
6230     * @param obj The file selector button widget
6231     * @return Title of the file selector button's window
6232     *
6233     * @see elm_fileselector_button_window_title_get() for more details
6234     */
6235    EAPI const char  *elm_fileselector_button_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6236
6237    /**
6238     * Set the size of a given file selector button widget's window,
6239     * holding the file selector itself.
6240     *
6241     * @param obj The file selector button widget
6242     * @param width The window's width
6243     * @param height The window's height
6244     *
6245     * @note it will only take any effect if the file selector button
6246     * widget is @b not under "inwin mode". The default size for the
6247     * window (when applicable) is 400x400 pixels.
6248     *
6249     * @see elm_fileselector_button_window_size_get()
6250     */
6251    EAPI void         elm_fileselector_button_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6252
6253    /**
6254     * Get the size of a given file selector button widget's window,
6255     * holding the file selector itself.
6256     *
6257     * @param obj The file selector button widget
6258     * @param width Pointer into which to store the width value
6259     * @param height Pointer into which to store the height value
6260     *
6261     * @note Use @c NULL pointers on the size values you're not
6262     * interested in: they'll be ignored by the function.
6263     *
6264     * @see elm_fileselector_button_window_size_set(), for more details
6265     */
6266    EAPI void         elm_fileselector_button_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6267
6268    /**
6269     * Set the initial file system path for a given file selector
6270     * button widget
6271     *
6272     * @param obj The file selector button widget
6273     * @param path The path string
6274     *
6275     * It must be a <b>directory</b> path, which will have the contents
6276     * displayed initially in the file selector's view, when invoked
6277     * from @p obj. The default initial path is the @c "HOME"
6278     * environment variable's value.
6279     *
6280     * @see elm_fileselector_button_path_get()
6281     */
6282    EAPI void         elm_fileselector_button_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6283
6284    /**
6285     * Get the initial file system path set for a given file selector
6286     * button widget
6287     *
6288     * @param obj The file selector button widget
6289     * @return path The path string
6290     *
6291     * @see elm_fileselector_button_path_set() for more details
6292     */
6293    EAPI const char  *elm_fileselector_button_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6294
6295    /**
6296     * Enable/disable a tree view in the given file selector button
6297     * widget's internal file selector
6298     *
6299     * @param obj The file selector button widget
6300     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6301     * disable
6302     *
6303     * This has the same effect as elm_fileselector_expandable_set(),
6304     * but now applied to a file selector button's internal file
6305     * selector.
6306     *
6307     * @note There's no way to put a file selector button's internal
6308     * file selector in "grid mode", as one may do with "pure" file
6309     * selectors.
6310     *
6311     * @see elm_fileselector_expandable_get()
6312     */
6313    EAPI void         elm_fileselector_button_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6314
6315    /**
6316     * Get whether tree view is enabled for the given file selector
6317     * button widget's internal file selector
6318     *
6319     * @param obj The file selector button widget
6320     * @return @c EINA_TRUE if @p obj widget's internal file selector
6321     * is in tree view, @c EINA_FALSE otherwise (and or errors)
6322     *
6323     * @see elm_fileselector_expandable_set() for more details
6324     */
6325    EAPI Eina_Bool    elm_fileselector_button_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6326
6327    /**
6328     * Set whether a given file selector button widget's internal file
6329     * selector is to display folders only or the directory contents,
6330     * as well.
6331     *
6332     * @param obj The file selector button widget
6333     * @param only @c EINA_TRUE to make @p obj widget's internal file
6334     * selector only display directories, @c EINA_FALSE to make files
6335     * to be displayed in it too
6336     *
6337     * This has the same effect as elm_fileselector_folder_only_set(),
6338     * but now applied to a file selector button's internal file
6339     * selector.
6340     *
6341     * @see elm_fileselector_folder_only_get()
6342     */
6343    EAPI void         elm_fileselector_button_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6344
6345    /**
6346     * Get whether a given file selector button widget's internal file
6347     * selector is displaying folders only or the directory contents,
6348     * as well.
6349     *
6350     * @param obj The file selector button widget
6351     * @return @c EINA_TRUE if @p obj widget's internal file
6352     * selector is only displaying directories, @c EINA_FALSE if files
6353     * are being displayed in it too (and on errors)
6354     *
6355     * @see elm_fileselector_button_folder_only_set() for more details
6356     */
6357    EAPI Eina_Bool    elm_fileselector_button_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6358
6359    /**
6360     * Enable/disable the file name entry box where the user can type
6361     * in a name for a file, in a given file selector button widget's
6362     * internal file selector.
6363     *
6364     * @param obj The file selector button widget
6365     * @param is_save @c EINA_TRUE to make @p obj widget's internal
6366     * file selector a "saving dialog", @c EINA_FALSE otherwise
6367     *
6368     * This has the same effect as elm_fileselector_is_save_set(),
6369     * but now applied to a file selector button's internal file
6370     * selector.
6371     *
6372     * @see elm_fileselector_is_save_get()
6373     */
6374    EAPI void         elm_fileselector_button_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6375
6376    /**
6377     * Get whether the given file selector button widget's internal
6378     * file selector is in "saving dialog" mode
6379     *
6380     * @param obj The file selector button widget
6381     * @return @c EINA_TRUE, if @p obj widget's internal file selector
6382     * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
6383     * errors)
6384     *
6385     * @see elm_fileselector_button_is_save_set() for more details
6386     */
6387    EAPI Eina_Bool    elm_fileselector_button_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6388
6389    /**
6390     * Set whether a given file selector button widget's internal file
6391     * selector will raise an Elementary "inner window", instead of a
6392     * dedicated Elementary window. By default, it won't.
6393     *
6394     * @param obj The file selector button widget
6395     * @param value @c EINA_TRUE to make it use an inner window, @c
6396     * EINA_TRUE to make it use a dedicated window
6397     *
6398     * @see elm_win_inwin_add() for more information on inner windows
6399     * @see elm_fileselector_button_inwin_mode_get()
6400     */
6401    EAPI void         elm_fileselector_button_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6402
6403    /**
6404     * Get whether a given file selector button widget's internal file
6405     * selector will raise an Elementary "inner window", instead of a
6406     * dedicated Elementary window.
6407     *
6408     * @param obj The file selector button widget
6409     * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
6410     * if it will use a dedicated window
6411     *
6412     * @see elm_fileselector_button_inwin_mode_set() for more details
6413     */
6414    EAPI Eina_Bool    elm_fileselector_button_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6415
6416    /**
6417     * @}
6418     */
6419
6420     /**
6421     * @defgroup File_Selector_Entry File Selector Entry
6422     *
6423     * @image html img/widget/fileselector_entry/preview-00.png
6424     * @image latex img/widget/fileselector_entry/preview-00.eps
6425     *
6426     * This is an entry made to be filled with or display a <b>file
6427     * system path string</b>. Besides the entry itself, the widget has
6428     * a @ref File_Selector_Button "file selector button" on its side,
6429     * which will raise an internal @ref Fileselector "file selector widget",
6430     * when clicked, for path selection aided by file system
6431     * navigation.
6432     *
6433     * This file selector may appear in an Elementary window or in an
6434     * inner window. When a file is chosen from it, the (inner) window
6435     * is closed and the selected file's path string is exposed both as
6436     * an smart event and as the new text on the entry.
6437     *
6438     * This widget encapsulates operations on its internal file
6439     * selector on its own API. There is less control over its file
6440     * selector than that one would have instatiating one directly.
6441     *
6442     * Smart callbacks one can register to:
6443     * - @c "changed" - The text within the entry was changed
6444     * - @c "activated" - The entry has had editing finished and
6445     *   changes are to be "committed"
6446     * - @c "press" - The entry has been clicked
6447     * - @c "longpressed" - The entry has been clicked (and held) for a
6448     *   couple seconds
6449     * - @c "clicked" - The entry has been clicked
6450     * - @c "clicked,double" - The entry has been double clicked
6451     * - @c "focused" - The entry has received focus
6452     * - @c "unfocused" - The entry has lost focus
6453     * - @c "selection,paste" - A paste action has occurred on the
6454     *   entry
6455     * - @c "selection,copy" - A copy action has occurred on the entry
6456     * - @c "selection,cut" - A cut action has occurred on the entry
6457     * - @c "unpressed" - The file selector entry's button was released
6458     *   after being pressed.
6459     * - @c "file,chosen" - The user has selected a path via the file
6460     *   selector entry's internal file selector, whose string pointer
6461     *   comes as the @c event_info data (a stringshared string)
6462     *
6463     * Here is an example on its usage:
6464     * @li @ref fileselector_entry_example
6465     *
6466     * @see @ref File_Selector_Button for a similar widget.
6467     * @{
6468     */
6469
6470    /**
6471     * Add a new file selector entry widget to the given parent
6472     * Elementary (container) object
6473     *
6474     * @param parent The parent object
6475     * @return a new file selector entry widget handle or @c NULL, on
6476     * errors
6477     */
6478    EAPI Evas_Object *elm_fileselector_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6479
6480    /**
6481     * Set the label for a given file selector entry widget's button
6482     *
6483     * @param obj The file selector entry widget
6484     * @param label The text label to be displayed on @p obj widget's
6485     * button
6486     *
6487     * @deprecated use elm_object_text_set() instead.
6488     */
6489    EINA_DEPRECATED EAPI void         elm_fileselector_entry_button_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
6490
6491    /**
6492     * Get the label set for a given file selector entry widget's button
6493     *
6494     * @param obj The file selector entry widget
6495     * @return The widget button's label
6496     *
6497     * @deprecated use elm_object_text_set() instead.
6498     */
6499    EINA_DEPRECATED EAPI const char  *elm_fileselector_entry_button_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6500
6501    /**
6502     * Set the icon on a given file selector entry widget's button
6503     *
6504     * @param obj The file selector entry widget
6505     * @param icon The icon object for the entry's button
6506     *
6507     * Once the icon object is set, a previously set one will be
6508     * deleted. If you want to keep the latter, use the
6509     * elm_fileselector_entry_button_icon_unset() function.
6510     *
6511     * @see elm_fileselector_entry_button_icon_get()
6512     */
6513    EAPI void         elm_fileselector_entry_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
6514
6515    /**
6516     * Get the icon set for a given file selector entry widget's button
6517     *
6518     * @param obj The file selector entry widget
6519     * @return The icon object currently set on @p obj widget's button
6520     * or @c NULL, if none is
6521     *
6522     * @see elm_fileselector_entry_button_icon_set()
6523     */
6524    EAPI Evas_Object *elm_fileselector_entry_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6525
6526    /**
6527     * Unset the icon used in a given file selector entry widget's
6528     * button
6529     *
6530     * @param obj The file selector entry widget
6531     * @return The icon object that was being used on @p obj widget's
6532     * button or @c NULL, on errors
6533     *
6534     * Unparent and return the icon object which was set for this
6535     * widget's button.
6536     *
6537     * @see elm_fileselector_entry_button_icon_set()
6538     */
6539    EAPI Evas_Object *elm_fileselector_entry_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6540
6541    /**
6542     * Set the title for a given file selector entry widget's window
6543     *
6544     * @param obj The file selector entry widget
6545     * @param title The title string
6546     *
6547     * This will change the window's title, when the file selector pops
6548     * out after a click on the entry's button. Those windows have the
6549     * default (unlocalized) value of @c "Select a file" as titles.
6550     *
6551     * @note It will only take any effect if the file selector
6552     * entry widget is @b not under "inwin mode".
6553     *
6554     * @see elm_fileselector_entry_window_title_get()
6555     */
6556    EAPI void         elm_fileselector_entry_window_title_set(Evas_Object *obj, const char *title) EINA_ARG_NONNULL(1);
6557
6558    /**
6559     * Get the title set for a given file selector entry widget's
6560     * window
6561     *
6562     * @param obj The file selector entry widget
6563     * @return Title of the file selector entry's window
6564     *
6565     * @see elm_fileselector_entry_window_title_get() for more details
6566     */
6567    EAPI const char  *elm_fileselector_entry_window_title_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6568
6569    /**
6570     * Set the size of a given file selector entry widget's window,
6571     * holding the file selector itself.
6572     *
6573     * @param obj The file selector entry widget
6574     * @param width The window's width
6575     * @param height The window's height
6576     *
6577     * @note it will only take any effect if the file selector entry
6578     * widget is @b not under "inwin mode". The default size for the
6579     * window (when applicable) is 400x400 pixels.
6580     *
6581     * @see elm_fileselector_entry_window_size_get()
6582     */
6583    EAPI void         elm_fileselector_entry_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height) EINA_ARG_NONNULL(1);
6584
6585    /**
6586     * Get the size of a given file selector entry widget's window,
6587     * holding the file selector itself.
6588     *
6589     * @param obj The file selector entry widget
6590     * @param width Pointer into which to store the width value
6591     * @param height Pointer into which to store the height value
6592     *
6593     * @note Use @c NULL pointers on the size values you're not
6594     * interested in: they'll be ignored by the function.
6595     *
6596     * @see elm_fileselector_entry_window_size_set(), for more details
6597     */
6598    EAPI void         elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height) EINA_ARG_NONNULL(1);
6599
6600    /**
6601     * Set the initial file system path and the entry's path string for
6602     * a given file selector entry widget
6603     *
6604     * @param obj The file selector entry widget
6605     * @param path The path string
6606     *
6607     * It must be a <b>directory</b> path, which will have the contents
6608     * displayed initially in the file selector's view, when invoked
6609     * from @p obj. The default initial path is the @c "HOME"
6610     * environment variable's value.
6611     *
6612     * @see elm_fileselector_entry_path_get()
6613     */
6614    EAPI void         elm_fileselector_entry_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6615
6616    /**
6617     * Get the entry's path string for a given file selector entry
6618     * widget
6619     *
6620     * @param obj The file selector entry widget
6621     * @return path The path string
6622     *
6623     * @see elm_fileselector_entry_path_set() for more details
6624     */
6625    EAPI const char  *elm_fileselector_entry_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6626
6627    /**
6628     * Enable/disable a tree view in the given file selector entry
6629     * widget's internal file selector
6630     *
6631     * @param obj The file selector entry widget
6632     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
6633     * disable
6634     *
6635     * This has the same effect as elm_fileselector_expandable_set(),
6636     * but now applied to a file selector entry's internal file
6637     * selector.
6638     *
6639     * @note There's no way to put a file selector entry's internal
6640     * file selector in "grid mode", as one may do with "pure" file
6641     * selectors.
6642     *
6643     * @see elm_fileselector_expandable_get()
6644     */
6645    EAPI void         elm_fileselector_entry_expandable_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6646
6647    /**
6648     * Get whether tree view is enabled for the given file selector
6649     * entry widget's internal file selector
6650     *
6651     * @param obj The file selector entry widget
6652     * @return @c EINA_TRUE if @p obj widget's internal file selector
6653     * is in tree view, @c EINA_FALSE otherwise (and or errors)
6654     *
6655     * @see elm_fileselector_expandable_set() for more details
6656     */
6657    EAPI Eina_Bool    elm_fileselector_entry_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6658
6659    /**
6660     * Set whether a given file selector entry widget's internal file
6661     * selector is to display folders only or the directory contents,
6662     * as well.
6663     *
6664     * @param obj The file selector entry widget
6665     * @param only @c EINA_TRUE to make @p obj widget's internal file
6666     * selector only display directories, @c EINA_FALSE to make files
6667     * to be displayed in it too
6668     *
6669     * This has the same effect as elm_fileselector_folder_only_set(),
6670     * but now applied to a file selector entry's internal file
6671     * selector.
6672     *
6673     * @see elm_fileselector_folder_only_get()
6674     */
6675    EAPI void         elm_fileselector_entry_folder_only_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6676
6677    /**
6678     * Get whether a given file selector entry widget's internal file
6679     * selector is displaying folders only or the directory contents,
6680     * as well.
6681     *
6682     * @param obj The file selector entry widget
6683     * @return @c EINA_TRUE if @p obj widget's internal file
6684     * selector is only displaying directories, @c EINA_FALSE if files
6685     * are being displayed in it too (and on errors)
6686     *
6687     * @see elm_fileselector_entry_folder_only_set() for more details
6688     */
6689    EAPI Eina_Bool    elm_fileselector_entry_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6690
6691    /**
6692     * Enable/disable the file name entry box where the user can type
6693     * in a name for a file, in a given file selector entry widget's
6694     * internal file selector.
6695     *
6696     * @param obj The file selector entry widget
6697     * @param is_save @c EINA_TRUE to make @p obj widget's internal
6698     * file selector a "saving dialog", @c EINA_FALSE otherwise
6699     *
6700     * This has the same effect as elm_fileselector_is_save_set(),
6701     * but now applied to a file selector entry's internal file
6702     * selector.
6703     *
6704     * @see elm_fileselector_is_save_get()
6705     */
6706    EAPI void         elm_fileselector_entry_is_save_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6707
6708    /**
6709     * Get whether the given file selector entry widget's internal
6710     * file selector is in "saving dialog" mode
6711     *
6712     * @param obj The file selector entry widget
6713     * @return @c EINA_TRUE, if @p obj widget's internal file selector
6714     * is in "saving dialog" mode, @c EINA_FALSE otherwise (and on
6715     * errors)
6716     *
6717     * @see elm_fileselector_entry_is_save_set() for more details
6718     */
6719    EAPI Eina_Bool    elm_fileselector_entry_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6720
6721    /**
6722     * Set whether a given file selector entry widget's internal file
6723     * selector will raise an Elementary "inner window", instead of a
6724     * dedicated Elementary window. By default, it won't.
6725     *
6726     * @param obj The file selector entry widget
6727     * @param value @c EINA_TRUE to make it use an inner window, @c
6728     * EINA_TRUE to make it use a dedicated window
6729     *
6730     * @see elm_win_inwin_add() for more information on inner windows
6731     * @see elm_fileselector_entry_inwin_mode_get()
6732     */
6733    EAPI void         elm_fileselector_entry_inwin_mode_set(Evas_Object *obj, Eina_Bool value) EINA_ARG_NONNULL(1);
6734
6735    /**
6736     * Get whether a given file selector entry widget's internal file
6737     * selector will raise an Elementary "inner window", instead of a
6738     * dedicated Elementary window.
6739     *
6740     * @param obj The file selector entry widget
6741     * @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
6742     * if it will use a dedicated window
6743     *
6744     * @see elm_fileselector_entry_inwin_mode_set() for more details
6745     */
6746    EAPI Eina_Bool    elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6747
6748    /**
6749     * Set the initial file system path for a given file selector entry
6750     * widget
6751     *
6752     * @param obj The file selector entry widget
6753     * @param path The path string
6754     *
6755     * It must be a <b>directory</b> path, which will have the contents
6756     * displayed initially in the file selector's view, when invoked
6757     * from @p obj. The default initial path is the @c "HOME"
6758     * environment variable's value.
6759     *
6760     * @see elm_fileselector_entry_path_get()
6761     */
6762    EAPI void         elm_fileselector_entry_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
6763
6764    /**
6765     * Get the parent directory's path to the latest file selection on
6766     * a given filer selector entry widget
6767     *
6768     * @param obj The file selector object
6769     * @return The (full) path of the directory of the last selection
6770     * on @p obj widget, a @b stringshared string
6771     *
6772     * @see elm_fileselector_entry_path_set()
6773     */
6774    EAPI const char  *elm_fileselector_entry_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6775
6776    /**
6777     * @}
6778     */
6779
6780    /**
6781     * @defgroup Scroller Scroller
6782     *
6783     * A scroller holds a single object and "scrolls it around". This means that
6784     * it allows the user to use a scrollbar (or a finger) to drag the viewable
6785     * region around, allowing to move through a much larger object that is
6786     * contained in the scroller. The scroiller will always have a small minimum
6787     * size by default as it won't be limited by the contents of the scroller.
6788     *
6789     * Signals that you can add callbacks for are:
6790     * @li "edge,left" - the left edge of the content has been reached
6791     * @li "edge,right" - the right edge of the content has been reached
6792     * @li "edge,top" - the top edge of the content has been reached
6793     * @li "edge,bottom" - the bottom edge of the content has been reached
6794     * @li "scroll" - the content has been scrolled (moved)
6795     * @li "scroll,anim,start" - scrolling animation has started
6796     * @li "scroll,anim,stop" - scrolling animation has stopped
6797     * @li "scroll,drag,start" - dragging the contents around has started
6798     * @li "scroll,drag,stop" - dragging the contents around has stopped
6799     * @note The "scroll,anim,*" and "scroll,drag,*" signals are only emitted by
6800     * user intervetion.
6801     *
6802     * @note When Elemementary is in embedded mode the scrollbars will not be
6803     * dragable, they appear merely as indicators of how much has been scrolled.
6804     * @note When Elementary is in desktop mode the thumbscroll(a.k.a.
6805     * fingerscroll) won't work.
6806     *
6807     * In @ref tutorial_scroller you'll find an example of how to use most of
6808     * this API.
6809     * @{
6810     */
6811    /**
6812     * @brief Type that controls when scrollbars should appear.
6813     *
6814     * @see elm_scroller_policy_set()
6815     */
6816    typedef enum _Elm_Scroller_Policy
6817      {
6818         ELM_SCROLLER_POLICY_AUTO = 0, /**< Show scrollbars as needed */
6819         ELM_SCROLLER_POLICY_ON, /**< Always show scrollbars */
6820         ELM_SCROLLER_POLICY_OFF, /**< Never show scrollbars */
6821         ELM_SCROLLER_POLICY_LAST
6822      } Elm_Scroller_Policy;
6823    /**
6824     * @brief Add a new scroller to the parent
6825     *
6826     * @param parent The parent object
6827     * @return The new object or NULL if it cannot be created
6828     */
6829    EAPI Evas_Object *elm_scroller_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
6830    /**
6831     * @brief Set the content of the scroller widget (the object to be scrolled around).
6832     *
6833     * @param obj The scroller object
6834     * @param content The new content object
6835     *
6836     * Once the content object is set, a previously set one will be deleted.
6837     * If you want to keep that old content object, use the
6838     * elm_scroller_content_unset() function.
6839     */
6840    EAPI void         elm_scroller_content_set(Evas_Object *obj, Evas_Object *child) EINA_ARG_NONNULL(1);
6841    /**
6842     * @brief Get the content of the scroller widget
6843     *
6844     * @param obj The slider object
6845     * @return The content that is being used
6846     *
6847     * Return the content object which is set for this widget
6848     *
6849     * @see elm_scroller_content_set()
6850     */
6851    EAPI Evas_Object *elm_scroller_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
6852    /**
6853     * @brief Unset the content of the scroller widget
6854     *
6855     * @param obj The slider object
6856     * @return The content that was being used
6857     *
6858     * Unparent and return the content object which was set for this widget
6859     *
6860     * @see elm_scroller_content_set()
6861     */
6862    EAPI Evas_Object *elm_scroller_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
6863    /**
6864     * @brief Set custom theme elements for the scroller
6865     *
6866     * @param obj The scroller object
6867     * @param widget The widget name to use (default is "scroller")
6868     * @param base The base name to use (default is "base")
6869     */
6870    EAPI void         elm_scroller_custom_widget_base_theme_set(Evas_Object *obj, const char *widget, const char *base) EINA_ARG_NONNULL(1, 2, 3);
6871    /**
6872     * @brief Make the scroller minimum size limited to the minimum size of the content
6873     *
6874     * @param obj The scroller object
6875     * @param w Enable limiting minimum size horizontally
6876     * @param h Enable limiting minimum size vertically
6877     *
6878     * By default the scroller will be as small as its design allows,
6879     * irrespective of its content. This will make the scroller minimum size the
6880     * right size horizontally and/or vertically to perfectly fit its content in
6881     * that direction.
6882     */
6883    EAPI void         elm_scroller_content_min_limit(Evas_Object *obj, Eina_Bool w, Eina_Bool h) EINA_ARG_NONNULL(1);
6884    /**
6885     * @brief Show a specific virtual region within the scroller content object
6886     *
6887     * @param obj The scroller object
6888     * @param x X coordinate of the region
6889     * @param y Y coordinate of the region
6890     * @param w Width of the region
6891     * @param h Height of the region
6892     *
6893     * This will ensure all (or part if it does not fit) of the designated
6894     * region in the virtual content object (0, 0 starting at the top-left of the
6895     * virtual content object) is shown within the scroller.
6896     */
6897    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);
6898    /**
6899     * @brief Set the scrollbar visibility policy
6900     *
6901     * @param obj The scroller object
6902     * @param policy_h Horizontal scrollbar policy
6903     * @param policy_v Vertical scrollbar policy
6904     *
6905     * This sets the scrollbar visibility policy for the given scroller.
6906     * ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is
6907     * needed, and otherwise kept hidden. ELM_SCROLLER_POLICY_ON turns it on all
6908     * the time, and ELM_SCROLLER_POLICY_OFF always keeps it off. This applies
6909     * respectively for the horizontal and vertical scrollbars.
6910     */
6911    EAPI void         elm_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
6912    /**
6913     * @brief Gets scrollbar visibility policy
6914     *
6915     * @param obj The scroller object
6916     * @param policy_h Horizontal scrollbar policy
6917     * @param policy_v Vertical scrollbar policy
6918     *
6919     * @see elm_scroller_policy_set()
6920     */
6921    EAPI void         elm_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v) EINA_ARG_NONNULL(1);
6922    /**
6923     * @brief Get the currently visible content region
6924     *
6925     * @param obj The scroller object
6926     * @param x X coordinate of the region
6927     * @param y Y coordinate of the region
6928     * @param w Width of the region
6929     * @param h Height of the region
6930     *
6931     * This gets the current region in the content object that is visible through
6932     * the scroller. The region co-ordinates are returned in the @p x, @p y, @p
6933     * w, @p h values pointed to.
6934     *
6935     * @note All coordinates are relative to the content.
6936     *
6937     * @see elm_scroller_region_show()
6938     */
6939    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);
6940    /**
6941     * @brief Get the size of the content object
6942     *
6943     * @param obj The scroller object
6944     * @param w Width return
6945     * @param h Height return
6946     *
6947     * This gets the size of the content object of the scroller.
6948     */
6949    EAPI void         elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
6950    /**
6951     * @brief Set bouncing behavior
6952     *
6953     * @param obj The scroller object
6954     * @param h_bounce Will the scroller bounce horizontally or not
6955     * @param v_bounce Will the scroller bounce vertically or not
6956     *
6957     * When scrolling, the scroller may "bounce" when reaching an edge of the
6958     * content object. This is a visual way to indicate the end has been reached.
6959     * This is enabled by default for both axis. This will set if it is enabled
6960     * for that axis with the boolean parameters for each axis.
6961     */
6962    EAPI void         elm_scroller_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
6963    /**
6964     * @brief Get the bounce mode
6965     *
6966     * @param obj The Scroller object
6967     * @param h_bounce Allow bounce horizontally
6968     * @param v_bounce Allow bounce vertically
6969     *
6970     * @see elm_scroller_bounce_set()
6971     */
6972    EAPI void         elm_scroller_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
6973    /**
6974     * @brief Set scroll page size relative to viewport size.
6975     *
6976     * @param obj The scroller object
6977     * @param h_pagerel The horizontal page relative size
6978     * @param v_pagerel The vertical page relative size
6979     *
6980     * The scroller is capable of limiting scrolling by the user to "pages". That
6981     * is to jump by and only show a "whole page" at a time as if the continuous
6982     * area of the scroller content is split into page sized pieces. This sets
6983     * the size of a page relative to the viewport of the scroller. 1.0 is "1
6984     * viewport" is size (horizontally or vertically). 0.0 turns it off in that
6985     * axis. This is mutually exclusive with page size
6986     * (see elm_scroller_page_size_set()  for more information). Likewise 0.5
6987     * is "half a viewport". Sane usable valus are normally between 0.0 and 1.0
6988     * including 1.0. If you only want 1 axis to be page "limited", use 0.0 for
6989     * the other axis.
6990     */
6991    EAPI void         elm_scroller_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
6992    /**
6993     * @brief Set scroll page size.
6994     *
6995     * @param obj The scroller object
6996     * @param h_pagesize The horizontal page size
6997     * @param v_pagesize The vertical page size
6998     *
6999     * This sets the page size to an absolute fixed value, with 0 turning it off
7000     * for that axis.
7001     *
7002     * @see elm_scroller_page_relative_set()
7003     */
7004    EAPI void         elm_scroller_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
7005    /**
7006     * @brief Get scroll current page number.
7007     *
7008     * @param obj The scroller object
7009     * @param h_pagenumber The horizoptal page number
7010     * @param v_pagenumber The vertical page number
7011     *
7012     * The page number starts from 0. 0 is the first page.
7013     * Current page means the page which meet the top-left of the viewport.
7014     * If there are two or more pages in the viewport, it returns the number of page
7015     * which meet the top-left of the viewport.
7016     *
7017     * @see elm_scroller_last_page_get()
7018     * @see elm_scroller_page_show()
7019     * @see elm_scroller_page_brint_in()
7020     */
7021    EAPI void         elm_scroller_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
7022    /**
7023     * @brief Get scroll last page number.
7024     *
7025     * @param obj The scroller object
7026     * @param h_pagenumber The horizoptal page number
7027     * @param v_pagenumber The vertical page number
7028     *
7029     * The page number starts from 0. 0 is the first page.
7030     * This returns the last page number among the pages.
7031     *
7032     * @see elm_scroller_current_page_get()
7033     * @see elm_scroller_page_show()
7034     * @see elm_scroller_page_brint_in()
7035     */
7036    EAPI void         elm_scroller_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) EINA_ARG_NONNULL(1);
7037    /**
7038     * Show a specific virtual region within the scroller content object by page number.
7039     *
7040     * @param obj The scroller object
7041     * @param h_pagenumber The horizoptal page number
7042     * @param v_pagenumber The vertical page number
7043     *
7044     * 0, 0 of the indicated page is located at the top-left of the viewport.
7045     * This will jump to the page directly without animation.
7046     *
7047     * Example of usage:
7048     *
7049     * @code
7050     * sc = elm_scroller_add(win);
7051     * elm_scroller_content_set(sc, content);
7052     * elm_scroller_page_relative_set(sc, 1, 0);
7053     * elm_scroller_current_page_get(sc, &h_page, &v_page);
7054     * elm_scroller_page_show(sc, h_page + 1, v_page);
7055     * @endcode
7056     *
7057     * @see elm_scroller_page_bring_in()
7058     */
7059    EAPI void         elm_scroller_page_show(Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
7060    /**
7061     * Show a specific virtual region within the scroller content object by page number.
7062     *
7063     * @param obj The scroller object
7064     * @param h_pagenumber The horizoptal page number
7065     * @param v_pagenumber The vertical page number
7066     *
7067     * 0, 0 of the indicated page is located at the top-left of the viewport.
7068     * This will slide to the page with animation.
7069     *
7070     * Example of usage:
7071     *
7072     * @code
7073     * sc = elm_scroller_add(win);
7074     * elm_scroller_content_set(sc, content);
7075     * elm_scroller_page_relative_set(sc, 1, 0);
7076     * elm_scroller_last_page_get(sc, &h_page, &v_page);
7077     * elm_scroller_page_bring_in(sc, h_page, v_page);
7078     * @endcode
7079     *
7080     * @see elm_scroller_page_show()
7081     */
7082    EAPI void         elm_scroller_page_bring_in(Evas_Object *obj, int h_pagenumber, int v_pagenumber) EINA_ARG_NONNULL(1);
7083    /**
7084     * @brief Show a specific virtual region within the scroller content object.
7085     *
7086     * @param obj The scroller object
7087     * @param x X coordinate of the region
7088     * @param y Y coordinate of the region
7089     * @param w Width of the region
7090     * @param h Height of the region
7091     *
7092     * This will ensure all (or part if it does not fit) of the designated
7093     * region in the virtual content object (0, 0 starting at the top-left of the
7094     * virtual content object) is shown within the scroller. Unlike
7095     * elm_scroller_region_show(), this allow the scroller to "smoothly slide"
7096     * to this location (if configuration in general calls for transitions). It
7097     * may not jump immediately to the new location and make take a while and
7098     * show other content along the way.
7099     *
7100     * @see elm_scroller_region_show()
7101     */
7102    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);
7103    /**
7104     * @brief Set event propagation on a scroller
7105     *
7106     * @param obj The scroller object
7107     * @param propagation If propagation is enabled or not
7108     *
7109     * This enables or disabled event propagation from the scroller content to
7110     * the scroller and its parent. By default event propagation is disabled.
7111     */
7112    EAPI void         elm_scroller_propagate_events_set(Evas_Object *obj, Eina_Bool propagation);
7113    /**
7114     * @brief Get event propagation for a scroller
7115     *
7116     * @param obj The scroller object
7117     * @return The propagation state
7118     *
7119     * This gets the event propagation for a scroller.
7120     *
7121     * @see elm_scroller_propagate_events_set()
7122     */
7123    EAPI Eina_Bool    elm_scroller_propagate_events_get(const Evas_Object *obj);
7124    /**
7125     * @}
7126     */
7127
7128    /**
7129     * @defgroup Label Label
7130     *
7131     * @image html img/widget/label/preview-00.png
7132     * @image latex img/widget/label/preview-00.eps
7133     *
7134     * @brief Widget to display text, with simple html-like markup.
7135     *
7136     * The Label widget @b doesn't allow text to overflow its boundaries, if the
7137     * text doesn't fit the geometry of the label it will be ellipsized or be
7138     * cut. Elementary provides several themes for this widget:
7139     * @li default - No animation
7140     * @li marker - Centers the text in the label and make it bold by default
7141     * @li slide_long - The entire text appears from the right of the screen and
7142     * slides until it disappears in the left of the screen(reappering on the
7143     * right again).
7144     * @li slide_short - The text appears in the left of the label and slides to
7145     * the right to show the overflow. When all of the text has been shown the
7146     * position is reset.
7147     * @li slide_bounce - The text appears in the left of the label and slides to
7148     * the right to show the overflow. When all of the text has been shown the
7149     * animation reverses, moving the text to the left.
7150     *
7151     * Custom themes can of course invent new markup tags and style them any way
7152     * they like.
7153     *
7154     * See @ref tutorial_label for a demonstration of how to use a label widget.
7155     * @{
7156     */
7157    /**
7158     * @brief Add a new label to the parent
7159     *
7160     * @param parent The parent object
7161     * @return The new object or NULL if it cannot be created
7162     */
7163    EAPI Evas_Object *elm_label_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7164    /**
7165     * @brief Set the label on the label object
7166     *
7167     * @param obj The label object
7168     * @param label The label will be used on the label object
7169     * @deprecated See elm_object_text_set()
7170     */
7171    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 */
7172    /**
7173     * @brief Get the label used on the label object
7174     *
7175     * @param obj The label object
7176     * @return The string inside the label
7177     * @deprecated See elm_object_text_get()
7178     */
7179    EINA_DEPRECATED EAPI const char *elm_label_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); /* deprecated, use elm_object_text_get instead */
7180    /**
7181     * @brief Set the wrapping behavior of the label
7182     *
7183     * @param obj The label object
7184     * @param wrap To wrap text or not
7185     *
7186     * By default no wrapping is done. Possible values for @p wrap are:
7187     * @li ELM_WRAP_NONE - No wrapping
7188     * @li ELM_WRAP_CHAR - wrap between characters
7189     * @li ELM_WRAP_WORD - wrap between words
7190     * @li ELM_WRAP_MIXED - Word wrap, and if that fails, char wrap
7191     */
7192    EAPI void         elm_label_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
7193    /**
7194     * @brief Get the wrapping behavior of the label
7195     *
7196     * @param obj The label object
7197     * @return Wrap type
7198     *
7199     * @see elm_label_line_wrap_set()
7200     */
7201    EAPI Elm_Wrap_Type elm_label_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7202    /**
7203     * @brief Set wrap width of the label
7204     *
7205     * @param obj The label object
7206     * @param w The wrap width in pixels at a minimum where words need to wrap
7207     *
7208     * This function sets the maximum width size hint of the label.
7209     *
7210     * @warning This is only relevant if the label is inside a container.
7211     */
7212    EAPI void         elm_label_wrap_width_set(Evas_Object *obj, Evas_Coord w) EINA_ARG_NONNULL(1);
7213    /**
7214     * @brief Get wrap width of the label
7215     *
7216     * @param obj The label object
7217     * @return The wrap width in pixels at a minimum where words need to wrap
7218     *
7219     * @see elm_label_wrap_width_set()
7220     */
7221    EAPI Evas_Coord   elm_label_wrap_width_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7222    /**
7223     * @brief Set wrap height of the label
7224     *
7225     * @param obj The label object
7226     * @param h The wrap height in pixels at a minimum where words need to wrap
7227     *
7228     * This function sets the maximum height size hint of the label.
7229     *
7230     * @warning This is only relevant if the label is inside a container.
7231     */
7232    EAPI void         elm_label_wrap_height_set(Evas_Object *obj, Evas_Coord h) EINA_ARG_NONNULL(1);
7233    /**
7234     * @brief get wrap width of the label
7235     *
7236     * @param obj The label object
7237     * @return The wrap height in pixels at a minimum where words need to wrap
7238     */
7239    EAPI Evas_Coord   elm_label_wrap_height_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7240    /**
7241     * @brief Set the font size on the label object.
7242     *
7243     * @param obj The label object
7244     * @param size font size
7245     *
7246     * @warning NEVER use this. It is for hyper-special cases only. use styles
7247     * instead. e.g. "big", "medium", "small" - or better name them by use:
7248     * "title", "footnote", "quote" etc.
7249     */
7250    EAPI void         elm_label_fontsize_set(Evas_Object *obj, int fontsize) EINA_ARG_NONNULL(1);
7251    /**
7252     * @brief Set the text color on the label object
7253     *
7254     * @param obj The label object
7255     * @param r Red property background color of The label object
7256     * @param g Green property background color of The label object
7257     * @param b Blue property background color of The label object
7258     * @param a Alpha property background color of The label object
7259     *
7260     * @warning NEVER use this. It is for hyper-special cases only. use styles
7261     * instead. e.g. "big", "medium", "small" - or better name them by use:
7262     * "title", "footnote", "quote" etc.
7263     */
7264    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);
7265    /**
7266     * @brief Set the text align on the label object
7267     *
7268     * @param obj The label object
7269     * @param align align mode ("left", "center", "right")
7270     *
7271     * @warning NEVER use this. It is for hyper-special cases only. use styles
7272     * instead. e.g. "big", "medium", "small" - or better name them by use:
7273     * "title", "footnote", "quote" etc.
7274     */
7275    EAPI void         elm_label_text_align_set(Evas_Object *obj, const char *alignmode) EINA_ARG_NONNULL(1);
7276    /**
7277     * @brief Set background color of the label
7278     *
7279     * @param obj The label object
7280     * @param r Red property background color of The label object
7281     * @param g Green property background color of The label object
7282     * @param b Blue property background color of The label object
7283     * @param a Alpha property background alpha of The label object
7284     *
7285     * @warning NEVER use this. It is for hyper-special cases only. use styles
7286     * instead. e.g. "big", "medium", "small" - or better name them by use:
7287     * "title", "footnote", "quote" etc.
7288     */
7289    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);
7290    /**
7291     * @brief Set the ellipsis behavior of the label
7292     *
7293     * @param obj The label object
7294     * @param ellipsis To ellipsis text or not
7295     *
7296     * If set to true and the text doesn't fit in the label an ellipsis("...")
7297     * will be shown at the end of the widget.
7298     *
7299     * @warning This doesn't work with slide(elm_label_slide_set()) or if the
7300     * choosen wrap method was ELM_WRAP_WORD.
7301     */
7302    EAPI void         elm_label_ellipsis_set(Evas_Object *obj, Eina_Bool ellipsis) EINA_ARG_NONNULL(1);
7303    /**
7304     * @brief Set the text slide of the label
7305     *
7306     * @param obj The label object
7307     * @param slide To start slide or stop
7308     *
7309     * If set to true the text of the label will slide throught the length of
7310     * label.
7311     *
7312     * @warning This only work with the themes "slide_short", "slide_long" and
7313     * "slide_bounce".
7314     */
7315    EAPI void         elm_label_slide_set(Evas_Object *obj, Eina_Bool slide) EINA_ARG_NONNULL(1);
7316    /**
7317     * @brief Get the text slide mode of the label
7318     *
7319     * @param obj The label object
7320     * @return slide slide mode value
7321     *
7322     * @see elm_label_slide_set()
7323     */
7324    EAPI Eina_Bool    elm_label_slide_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7325    /**
7326     * @brief Set the slide duration(speed) of the label
7327     *
7328     * @param obj The label object
7329     * @return The duration in seconds in moving text from slide begin position
7330     * to slide end position
7331     */
7332    EAPI void         elm_label_slide_duration_set(Evas_Object *obj, double duration) EINA_ARG_NONNULL(1);
7333    /**
7334     * @brief Get the slide duration(speed) of the label
7335     *
7336     * @param obj The label object
7337     * @return The duration time in moving text from slide begin position to slide end position
7338     *
7339     * @see elm_label_slide_duration_set()
7340     */
7341    EAPI double       elm_label_slide_duration_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
7342    /**
7343     * @}
7344     */
7345
7346    /**
7347     * @defgroup Toggle Toggle
7348     *
7349     * @image html img/widget/toggle/preview-00.png
7350     * @image latex img/widget/toggle/preview-00.eps
7351     *
7352     * @brief A toggle is a slider which can be used to toggle between
7353     * two values.  It has two states: on and off.
7354     *
7355     * Signals that you can add callbacks for are:
7356     * @li "changed" - Whenever the toggle value has been changed.  Is not called
7357     *                 until the toggle is released by the cursor (assuming it
7358     *                 has been triggered by the cursor in the first place).
7359     *
7360     * @ref tutorial_toggle show how to use a toggle.
7361     * @{
7362     */
7363    /**
7364     * @brief Add a toggle to @p parent.
7365     *
7366     * @param parent The parent object
7367     *
7368     * @return The toggle object
7369     */
7370    EAPI Evas_Object *elm_toggle_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7371    /**
7372     * @brief Sets the label to be displayed with the toggle.
7373     *
7374     * @param obj The toggle object
7375     * @param label The label to be displayed
7376     *
7377     * @deprecated use elm_object_text_set() instead.
7378     */
7379    EINA_DEPRECATED EAPI void         elm_toggle_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7380    /**
7381     * @brief Gets the label of the toggle
7382     *
7383     * @param obj  toggle object
7384     * @return The label of the toggle
7385     *
7386     * @deprecated use elm_object_text_get() instead.
7387     */
7388    EINA_DEPRECATED EAPI const char  *elm_toggle_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7389    /**
7390     * @brief Set the icon used for the toggle
7391     *
7392     * @param obj The toggle object
7393     * @param icon The icon object for the button
7394     *
7395     * Once the icon object is set, a previously set one will be deleted
7396     * If you want to keep that old content object, use the
7397     * elm_toggle_icon_unset() function.
7398     */
7399    EAPI void         elm_toggle_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
7400    /**
7401     * @brief Get the icon used for the toggle
7402     *
7403     * @param obj The toggle object
7404     * @return The icon object that is being used
7405     *
7406     * Return the icon object which is set for this widget.
7407     *
7408     * @see elm_toggle_icon_set()
7409     */
7410    EAPI Evas_Object *elm_toggle_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7411    /**
7412     * @brief Unset the icon used for the toggle
7413     *
7414     * @param obj The toggle object
7415     * @return The icon object that was being used
7416     *
7417     * Unparent and return the icon object which was set for this widget.
7418     *
7419     * @see elm_toggle_icon_set()
7420     */
7421    EAPI Evas_Object *elm_toggle_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7422    /**
7423     * @brief Sets the labels to be associated with the on and off states of the toggle.
7424     *
7425     * @param obj The toggle object
7426     * @param onlabel The label displayed when the toggle is in the "on" state
7427     * @param offlabel The label displayed when the toggle is in the "off" state
7428     */
7429    EAPI void         elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel) EINA_ARG_NONNULL(1);
7430    /**
7431     * @brief Gets the labels associated with the on and off states of the toggle.
7432     *
7433     * @param obj The toggle object
7434     * @param onlabel A char** to place the onlabel of @p obj into
7435     * @param offlabel A char** to place the offlabel of @p obj into
7436     */
7437    EAPI void         elm_toggle_states_labels_get(const Evas_Object *obj, const char **onlabel, const char **offlabel) EINA_ARG_NONNULL(1);
7438    /**
7439     * @brief Sets the state of the toggle to @p state.
7440     *
7441     * @param obj The toggle object
7442     * @param state The state of @p obj
7443     */
7444    EAPI void         elm_toggle_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
7445    /**
7446     * @brief Gets the state of the toggle to @p state.
7447     *
7448     * @param obj The toggle object
7449     * @return The state of @p obj
7450     */
7451    EAPI Eina_Bool    elm_toggle_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7452    /**
7453     * @brief Sets the state pointer of the toggle to @p statep.
7454     *
7455     * @param obj The toggle object
7456     * @param statep The state pointer of @p obj
7457     */
7458    EAPI void         elm_toggle_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
7459    /**
7460     * @}
7461     */
7462
7463    /**
7464     * @defgroup Frame Frame
7465     *
7466     * @image html img/widget/frame/preview-00.png
7467     * @image latex img/widget/frame/preview-00.eps
7468     *
7469     * @brief Frame is a widget that holds some content and has a title.
7470     *
7471     * The default look is a frame with a title, but Frame supports multple
7472     * styles:
7473     * @li default
7474     * @li pad_small
7475     * @li pad_medium
7476     * @li pad_large
7477     * @li pad_huge
7478     * @li outdent_top
7479     * @li outdent_bottom
7480     *
7481     * Of all this styles only default shows the title. Frame emits no signals.
7482     *
7483     * For a detailed example see the @ref tutorial_frame.
7484     *
7485     * @{
7486     */
7487    /**
7488     * @brief Add a new frame to the parent
7489     *
7490     * @param parent The parent object
7491     * @return The new object or NULL if it cannot be created
7492     */
7493    EAPI Evas_Object *elm_frame_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7494    /**
7495     * @brief Set the frame label
7496     *
7497     * @param obj The frame object
7498     * @param label The label of this frame object
7499     *
7500     * @deprecated use elm_object_text_set() instead.
7501     */
7502    EINA_DEPRECATED EAPI void         elm_frame_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
7503    /**
7504     * @brief Get the frame label
7505     *
7506     * @param obj The frame object
7507     *
7508     * @return The label of this frame objet or NULL if unable to get frame
7509     *
7510     * @deprecated use elm_object_text_get() instead.
7511     */
7512    EINA_DEPRECATED EAPI const char  *elm_frame_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7513    /**
7514     * @brief Set the content of the frame widget
7515     *
7516     * Once the content object is set, a previously set one will be deleted.
7517     * If you want to keep that old content object, use the
7518     * elm_frame_content_unset() function.
7519     *
7520     * @param obj The frame object
7521     * @param content The content will be filled in this frame object
7522     */
7523    EAPI void         elm_frame_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
7524    /**
7525     * @brief Get the content of the frame widget
7526     *
7527     * Return the content object which is set for this widget
7528     *
7529     * @param obj The frame object
7530     * @return The content that is being used
7531     */
7532    EAPI Evas_Object *elm_frame_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7533    /**
7534     * @brief Unset the content of the frame widget
7535     *
7536     * Unparent and return the content object which was set for this widget
7537     *
7538     * @param obj The frame object
7539     * @return The content that was being used
7540     */
7541    EAPI Evas_Object *elm_frame_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
7542    /**
7543     * @}
7544     */
7545
7546    /**
7547     * @defgroup Table Table
7548     *
7549     * A container widget to arrange other widgets in a table where items can
7550     * also span multiple columns or rows - even overlap (and then be raised or
7551     * lowered accordingly to adjust stacking if they do overlap).
7552     *
7553     * The followin are examples of how to use a table:
7554     * @li @ref tutorial_table_01
7555     * @li @ref tutorial_table_02
7556     *
7557     * @{
7558     */
7559    /**
7560     * @brief Add a new table to the parent
7561     *
7562     * @param parent The parent object
7563     * @return The new object or NULL if it cannot be created
7564     */
7565    EAPI Evas_Object *elm_table_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7566    /**
7567     * @brief Set the homogeneous layout in the table
7568     *
7569     * @param obj The layout object
7570     * @param homogeneous A boolean to set if the layout is homogeneous in the
7571     * table (EINA_TRUE = homogeneous,  EINA_FALSE = no homogeneous)
7572     */
7573    EAPI void         elm_table_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
7574    /**
7575     * @brief Get the current table homogeneous mode.
7576     *
7577     * @param obj The table object
7578     * @return A boolean to indicating if the layout is homogeneous in the table
7579     * (EINA_TRUE = homogeneous,  EINA_FALSE = no homogeneous)
7580     */
7581    EAPI Eina_Bool    elm_table_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7582    /**
7583     * @warning <b>Use elm_table_homogeneous_set() instead</b>
7584     */
7585    EINA_DEPRECATED EAPI void elm_table_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
7586    /**
7587     * @warning <b>Use elm_table_homogeneous_get() instead</b>
7588     */
7589    EINA_DEPRECATED EAPI Eina_Bool elm_table_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
7590    /**
7591     * @brief Set padding between cells.
7592     *
7593     * @param obj The layout object.
7594     * @param horizontal set the horizontal padding.
7595     * @param vertical set the vertical padding.
7596     *
7597     * Default value is 0.
7598     */
7599    EAPI void         elm_table_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical) EINA_ARG_NONNULL(1);
7600    /**
7601     * @brief Get padding between cells.
7602     *
7603     * @param obj The layout object.
7604     * @param horizontal set the horizontal padding.
7605     * @param vertical set the vertical padding.
7606     */
7607    EAPI void         elm_table_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical) EINA_ARG_NONNULL(1);
7608    /**
7609     * @brief Add a subobject on the table with the coordinates passed
7610     *
7611     * @param obj The table object
7612     * @param subobj The subobject to be added to the table
7613     * @param x Row number
7614     * @param y Column number
7615     * @param w rowspan
7616     * @param h colspan
7617     *
7618     * @note All positioning inside the table is relative to rows and columns, so
7619     * a value of 0 for x and y, means the top left cell of the table, and a
7620     * value of 1 for w and h means @p subobj only takes that 1 cell.
7621     */
7622    EAPI void         elm_table_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
7623    /**
7624     * @brief Remove child from table.
7625     *
7626     * @param obj The table object
7627     * @param subobj The subobject
7628     */
7629    EAPI void         elm_table_unpack(Evas_Object *obj, Evas_Object *subobj) EINA_ARG_NONNULL(1);
7630    /**
7631     * @brief Faster way to remove all child objects from a table object.
7632     *
7633     * @param obj The table object
7634     * @param clear If true, will delete children, else just remove from table.
7635     */
7636    EAPI void         elm_table_clear(Evas_Object *obj, Eina_Bool clear) EINA_ARG_NONNULL(1);
7637    /**
7638     * @brief Set the packing location of an existing child of the table
7639     *
7640     * @param subobj The subobject to be modified in the table
7641     * @param x Row number
7642     * @param y Column number
7643     * @param w rowspan
7644     * @param h colspan
7645     *
7646     * Modifies the position of an object already in the table.
7647     *
7648     * @note All positioning inside the table is relative to rows and columns, so
7649     * a value of 0 for x and y, means the top left cell of the table, and a
7650     * value of 1 for w and h means @p subobj only takes that 1 cell.
7651     */
7652    EAPI void         elm_table_pack_set(Evas_Object *subobj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
7653    /**
7654     * @brief Get the packing location of an existing child of the table
7655     *
7656     * @param subobj The subobject to be modified in the table
7657     * @param x Row number
7658     * @param y Column number
7659     * @param w rowspan
7660     * @param h colspan
7661     *
7662     * @see elm_table_pack_set()
7663     */
7664    EAPI void         elm_table_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
7665    /**
7666     * @}
7667     */
7668
7669    /**
7670     * @defgroup Gengrid Gengrid (Generic grid)
7671     *
7672     * This widget aims to position objects in a grid layout while
7673     * actually creating and rendering only the visible ones, using the
7674     * same idea as the @ref Genlist "genlist": the user defines a @b
7675     * class for each item, specifying functions that will be called at
7676     * object creation, deletion, etc. When those items are selected by
7677     * the user, a callback function is issued. Users may interact with
7678     * a gengrid via the mouse (by clicking on items to select them and
7679     * clicking on the grid's viewport and swiping to pan the whole
7680     * view) or via the keyboard, navigating through item with the
7681     * arrow keys.
7682     *
7683     * @section Gengrid_Layouts Gengrid layouts
7684     *
7685     * Gengrids may layout its items in one of two possible layouts:
7686     * - horizontal or
7687     * - vertical.
7688     *
7689     * When in "horizontal mode", items will be placed in @b columns,
7690     * from top to bottom and, when the space for a column is filled,
7691     * another one is started on the right, thus expanding the grid
7692     * horizontally, making for horizontal scrolling. When in "vertical
7693     * mode" , though, items will be placed in @b rows, from left to
7694     * right and, when the space for a row is filled, another one is
7695     * started below, thus expanding the grid vertically (and making
7696     * for vertical scrolling).
7697     *
7698     * @section Gengrid_Items Gengrid items
7699     *
7700     * An item in a gengrid can have 0 or more text labels (they can be
7701     * regular text or textblock Evas objects - that's up to the style
7702     * to determine), 0 or more icons (which are simply objects
7703     * swallowed into the gengrid item's theming Edje object) and 0 or
7704     * more <b>boolean states</b>, which have the behavior left to the
7705     * user to define. The Edje part names for each of these properties
7706     * will be looked up, in the theme file for the gengrid, under the
7707     * Edje (string) data items named @c "labels", @c "icons" and @c
7708     * "states", respectively. For each of those properties, if more
7709     * than one part is provided, they must have names listed separated
7710     * by spaces in the data fields. For the default gengrid item
7711     * theme, we have @b one label part (@c "elm.text"), @b two icon
7712     * parts (@c "elm.swalllow.icon" and @c "elm.swallow.end") and @b
7713     * no state parts.
7714     *
7715     * A gengrid item may be at one of several styles. Elementary
7716     * provides one by default - "default", but this can be extended by
7717     * system or application custom themes/overlays/extensions (see
7718     * @ref Theme "themes" for more details).
7719     *
7720     * @section Gengrid_Item_Class Gengrid item classes
7721     *
7722     * In order to have the ability to add and delete items on the fly,
7723     * gengrid implements a class (callback) system where the
7724     * application provides a structure with information about that
7725     * type of item (gengrid may contain multiple different items with
7726     * different classes, states and styles). Gengrid will call the
7727     * functions in this struct (methods) when an item is "realized"
7728     * (i.e., created dynamically, while the user is scrolling the
7729     * grid). All objects will simply be deleted when no longer needed
7730     * with evas_object_del(). The #Elm_GenGrid_Item_Class structure
7731     * contains the following members:
7732     * - @c item_style - This is a constant string and simply defines
7733     * the name of the item style. It @b must be specified and the
7734     * default should be @c "default".
7735     * - @c func.label_get - This function is called when an item
7736     * object is actually created. The @c data parameter will point to
7737     * the same data passed to elm_gengrid_item_append() and related
7738     * item creation functions. The @c obj parameter is the gengrid
7739     * object itself, while the @c part one is the name string of one
7740     * of the existing text parts in the Edje group implementing the
7741     * item's theme. This function @b must return a strdup'()ed string,
7742     * as the caller will free() it when done. See
7743     * #Elm_Gengrid_Item_Label_Get_Cb.
7744     * - @c func.icon_get - This function is called when an item object
7745     * is actually created. The @c data parameter will point to the
7746     * same data passed to elm_gengrid_item_append() and related item
7747     * creation functions. The @c obj parameter is the gengrid object
7748     * itself, while the @c part one is the name string of one of the
7749     * existing (icon) swallow parts in the Edje group implementing the
7750     * item's theme. It must return @c NULL, when no icon is desired,
7751     * or a valid object handle, otherwise. The object will be deleted
7752     * by the gengrid on its deletion or when the item is "unrealized".
7753     * See #Elm_Gengrid_Item_Icon_Get_Cb.
7754     * - @c func.state_get - This function is called when an item
7755     * object is actually created. The @c data parameter will point to
7756     * the same data passed to elm_gengrid_item_append() and related
7757     * item creation functions. The @c obj parameter is the gengrid
7758     * object itself, while the @c part one is the name string of one
7759     * of the state parts in the Edje group implementing the item's
7760     * theme. Return @c EINA_FALSE for false/off or @c EINA_TRUE for
7761     * true/on. Gengrids will emit a signal to its theming Edje object
7762     * with @c "elm,state,XXX,active" and @c "elm" as "emission" and
7763     * "source" arguments, respectively, when the state is true (the
7764     * default is false), where @c XXX is the name of the (state) part.
7765     * See #Elm_Gengrid_Item_State_Get_Cb.
7766     * - @c func.del - This is called when elm_gengrid_item_del() is
7767     * called on an item or elm_gengrid_clear() is called on the
7768     * gengrid. This is intended for use when gengrid items are
7769     * deleted, so any data attached to the item (e.g. its data
7770     * parameter on creation) can be deleted. See #Elm_Gengrid_Item_Del_Cb.
7771     *
7772     * @section Gengrid_Usage_Hints Usage hints
7773     *
7774     * If the user wants to have multiple items selected at the same
7775     * time, elm_gengrid_multi_select_set() will permit it. If the
7776     * gengrid is single-selection only (the default), then
7777     * elm_gengrid_select_item_get() will return the selected item or
7778     * @c NULL, if none is selected. If the gengrid is under
7779     * multi-selection, then elm_gengrid_selected_items_get() will
7780     * return a list (that is only valid as long as no items are
7781     * modified (added, deleted, selected or unselected) of child items
7782     * on a gengrid.
7783     *
7784     * If an item changes (internal (boolean) state, label or icon
7785     * changes), then use elm_gengrid_item_update() to have gengrid
7786     * update the item with the new state. A gengrid will re-"realize"
7787     * the item, thus calling the functions in the
7788     * #Elm_Gengrid_Item_Class set for that item.
7789     *
7790     * To programmatically (un)select an item, use
7791     * elm_gengrid_item_selected_set(). To get its selected state use
7792     * elm_gengrid_item_selected_get(). To make an item disabled
7793     * (unable to be selected and appear differently) use
7794     * elm_gengrid_item_disabled_set() to set this and
7795     * elm_gengrid_item_disabled_get() to get the disabled state.
7796     *
7797     * Grid cells will only have their selection smart callbacks called
7798     * when firstly getting selected. Any further clicks will do
7799     * nothing, unless you enable the "always select mode", with
7800     * elm_gengrid_always_select_mode_set(), thus making every click to
7801     * issue selection callbacks. elm_gengrid_no_select_mode_set() will
7802     * turn off the ability to select items entirely in the widget and
7803     * they will neither appear selected nor call the selection smart
7804     * callbacks.
7805     *
7806     * Remember that you can create new styles and add your own theme
7807     * augmentation per application with elm_theme_extension_add(). If
7808     * you absolutely must have a specific style that overrides any
7809     * theme the user or system sets up you can use
7810     * elm_theme_overlay_add() to add such a file.
7811     *
7812     * @section Gengrid_Smart_Events Gengrid smart events
7813     *
7814     * Smart events that you can add callbacks for are:
7815     * - @c "activated" - The user has double-clicked or pressed
7816     *   (enter|return|spacebar) on an item. The @c event_info parameter
7817     *   is the gengrid item that was activated.
7818     * - @c "clicked,double" - The user has double-clicked an item.
7819     *   The @c event_info parameter is the gengrid item that was double-clicked.
7820     * - @c "selected" - The user has made an item selected. The
7821     *   @c event_info parameter is the gengrid item that was selected.
7822     * - @c "unselected" - The user has made an item unselected. The
7823     *   @c event_info parameter is the gengrid item that was unselected.
7824     * - @c "realized" - This is called when the item in the gengrid
7825     *   has its implementing Evas object instantiated, de facto. @c
7826     *   event_info is the gengrid item that was created. The object
7827     *   may be deleted at any time, so it is highly advised to the
7828     *   caller @b not to use the object pointer returned from
7829     *   elm_gengrid_item_object_get(), because it may point to freed
7830     *   objects.
7831     * - @c "unrealized" - This is called when the implementing Evas
7832     *   object for this item is deleted. @c event_info is the gengrid
7833     *   item that was deleted.
7834     * - @c "changed" - Called when an item is added, removed, resized
7835     *   or moved and when the gengrid is resized or gets "horizontal"
7836     *   property changes.
7837     * - @c "scroll,anim,start" - This is called when scrolling animation has
7838     *   started.
7839     * - @c "scroll,anim,stop" - This is called when scrolling animation has
7840     *   stopped.
7841     * - @c "drag,start,up" - Called when the item in the gengrid has
7842     *   been dragged (not scrolled) up.
7843     * - @c "drag,start,down" - Called when the item in the gengrid has
7844     *   been dragged (not scrolled) down.
7845     * - @c "drag,start,left" - Called when the item in the gengrid has
7846     *   been dragged (not scrolled) left.
7847     * - @c "drag,start,right" - Called when the item in the gengrid has
7848     *   been dragged (not scrolled) right.
7849     * - @c "drag,stop" - Called when the item in the gengrid has
7850     *   stopped being dragged.
7851     * - @c "drag" - Called when the item in the gengrid is being
7852     *   dragged.
7853     * - @c "scroll" - called when the content has been scrolled
7854     *   (moved).
7855     * - @c "scroll,drag,start" - called when dragging the content has
7856     *   started.
7857     * - @c "scroll,drag,stop" - called when dragging the content has
7858     *   stopped.
7859     *
7860     * List of gendrid examples:
7861     * @li @ref gengrid_example
7862     */
7863
7864    /**
7865     * @addtogroup Gengrid
7866     * @{
7867     */
7868
7869    typedef struct _Elm_Gengrid_Item_Class Elm_Gengrid_Item_Class; /**< Gengrid item class definition structs */
7870    typedef struct _Elm_Gengrid_Item_Class_Func Elm_Gengrid_Item_Class_Func; /**< Class functions for gengrid item classes. */
7871    typedef struct _Elm_Gengrid_Item Elm_Gengrid_Item; /**< Gengrid item handles */
7872    typedef char        *(*Elm_Gengrid_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for gengrid item classes. */
7873    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. */
7874    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. */
7875    typedef void         (*Elm_Gengrid_Item_Del_Cb)      (void *data, Evas_Object *obj); /**< Deletion class function for gengrid item classes. */
7876
7877    typedef char        *(*GridItemLabelGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Gengrid_Item_Label_Get_Cb. */
7878    typedef Evas_Object *(*GridItemIconGetFunc)  (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Gengrid_Item_Icon_Get_Cb. */
7879    typedef Eina_Bool    (*GridItemStateGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Gengrid_Item_State_Get_Cb. */
7880    typedef void         (*GridItemDelFunc)      (void *data, Evas_Object *obj) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Gengrid_Item_Del_Cb. */
7881
7882    /**
7883     * @struct _Elm_Gengrid_Item_Class
7884     *
7885     * Gengrid item class definition. See @ref Gengrid_Item_Class for
7886     * field details.
7887     */
7888    struct _Elm_Gengrid_Item_Class
7889      {
7890         const char             *item_style;
7891         struct _Elm_Gengrid_Item_Class_Func
7892           {
7893              Elm_Gengrid_Item_Label_Get_Cb label_get;
7894              Elm_Gengrid_Item_Icon_Get_Cb  icon_get;
7895              Elm_Gengrid_Item_State_Get_Cb state_get;
7896              Elm_Gengrid_Item_Del_Cb       del;
7897           } func;
7898      }; /**< #Elm_Gengrid_Item_Class member definitions */
7899
7900    /**
7901     * Add a new gengrid widget to the given parent Elementary
7902     * (container) object
7903     *
7904     * @param parent The parent object
7905     * @return a new gengrid widget handle or @c NULL, on errors
7906     *
7907     * This function inserts a new gengrid widget on the canvas.
7908     *
7909     * @see elm_gengrid_item_size_set()
7910     * @see elm_gengrid_group_item_size_set()
7911     * @see elm_gengrid_horizontal_set()
7912     * @see elm_gengrid_item_append()
7913     * @see elm_gengrid_item_del()
7914     * @see elm_gengrid_clear()
7915     *
7916     * @ingroup Gengrid
7917     */
7918    EAPI Evas_Object       *elm_gengrid_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
7919
7920    /**
7921     * Set the size for the items of a given gengrid widget
7922     *
7923     * @param obj The gengrid object.
7924     * @param w The items' width.
7925     * @param h The items' height;
7926     *
7927     * A gengrid, after creation, has still no information on the size
7928     * to give to each of its cells. So, you most probably will end up
7929     * with squares one @ref Fingers "finger" wide, the default
7930     * size. Use this function to force a custom size for you items,
7931     * making them as big as you wish.
7932     *
7933     * @see elm_gengrid_item_size_get()
7934     *
7935     * @ingroup Gengrid
7936     */
7937    EAPI void               elm_gengrid_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
7938
7939    /**
7940     * Get the size set for the items of a given gengrid widget
7941     *
7942     * @param obj The gengrid object.
7943     * @param w Pointer to a variable where to store the items' width.
7944     * @param h Pointer to a variable where to store the items' height.
7945     *
7946     * @note Use @c NULL pointers on the size values you're not
7947     * interested in: they'll be ignored by the function.
7948     *
7949     * @see elm_gengrid_item_size_get() for more details
7950     *
7951     * @ingroup Gengrid
7952     */
7953    EAPI void               elm_gengrid_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
7954
7955    /**
7956     * Set the size for the group items of a given gengrid widget
7957     *
7958     * @param obj The gengrid object.
7959     * @param w The group items' width.
7960     * @param h The group items' height;
7961     *
7962     * A gengrid, after creation, has still no information on the size
7963     * to give to each of its cells. So, you most probably will end up
7964     * with squares one @ref Fingers "finger" wide, the default
7965     * size. Use this function to force a custom size for you group items,
7966     * making them as big as you wish.
7967     *
7968     * @see elm_gengrid_group_item_size_get()
7969     *
7970     * @ingroup Gengrid
7971     */
7972    EAPI void               elm_gengrid_group_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) EINA_ARG_NONNULL(1);
7973
7974    /**
7975     * Get the size set for the group items of a given gengrid widget
7976     *
7977     * @param obj The gengrid object.
7978     * @param w Pointer to a variable where to store the group items' width.
7979     * @param h Pointer to a variable where to store the group items' height.
7980     *
7981     * @note Use @c NULL pointers on the size values you're not
7982     * interested in: they'll be ignored by the function.
7983     *
7984     * @see elm_gengrid_group_item_size_get() for more details
7985     *
7986     * @ingroup Gengrid
7987     */
7988    EAPI void               elm_gengrid_group_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) EINA_ARG_NONNULL(1);
7989
7990    /**
7991     * Set the items grid's alignment within a given gengrid widget
7992     *
7993     * @param obj The gengrid object.
7994     * @param align_x Alignment in the horizontal axis (0 <= align_x <= 1).
7995     * @param align_y Alignment in the vertical axis (0 <= align_y <= 1).
7996     *
7997     * This sets the alignment of the whole grid of items of a gengrid
7998     * within its given viewport. By default, those values are both
7999     * 0.5, meaning that the gengrid will have its items grid placed
8000     * exactly in the middle of its viewport.
8001     *
8002     * @note If given alignment values are out of the cited ranges,
8003     * they'll be changed to the nearest boundary values on the valid
8004     * ranges.
8005     *
8006     * @see elm_gengrid_align_get()
8007     *
8008     * @ingroup Gengrid
8009     */
8010    EAPI void               elm_gengrid_align_set(Evas_Object *obj, double align_x, double align_y) EINA_ARG_NONNULL(1);
8011
8012    /**
8013     * Get the items grid's alignment values within a given gengrid
8014     * widget
8015     *
8016     * @param obj The gengrid object.
8017     * @param align_x Pointer to a variable where to store the
8018     * horizontal alignment.
8019     * @param align_y Pointer to a variable where to store the vertical
8020     * alignment.
8021     *
8022     * @note Use @c NULL pointers on the alignment values you're not
8023     * interested in: they'll be ignored by the function.
8024     *
8025     * @see elm_gengrid_align_set() for more details
8026     *
8027     * @ingroup Gengrid
8028     */
8029    EAPI void               elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y) EINA_ARG_NONNULL(1);
8030
8031    /**
8032     * Set whether a given gengrid widget is or not able have items
8033     * @b reordered
8034     *
8035     * @param obj The gengrid object
8036     * @param reorder_mode Use @c EINA_TRUE to turn reoderding on,
8037     * @c EINA_FALSE to turn it off
8038     *
8039     * If a gengrid is set to allow reordering, a click held for more
8040     * than 0.5 over a given item will highlight it specially,
8041     * signalling the gengrid has entered the reordering state. From
8042     * that time on, the user will be able to, while still holding the
8043     * mouse button down, move the item freely in the gengrid's
8044     * viewport, replacing to said item to the locations it goes to.
8045     * The replacements will be animated and, whenever the user
8046     * releases the mouse button, the item being replaced gets a new
8047     * definitive place in the grid.
8048     *
8049     * @see elm_gengrid_reorder_mode_get()
8050     *
8051     * @ingroup Gengrid
8052     */
8053    EAPI void               elm_gengrid_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
8054
8055    /**
8056     * Get whether a given gengrid widget is or not able have items
8057     * @b reordered
8058     *
8059     * @param obj The gengrid object
8060     * @return @c EINA_TRUE, if reoderding is on, @c EINA_FALSE if it's
8061     * off
8062     *
8063     * @see elm_gengrid_reorder_mode_set() for more details
8064     *
8065     * @ingroup Gengrid
8066     */
8067    EAPI Eina_Bool          elm_gengrid_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8068
8069    /**
8070     * Append a new item in a given gengrid widget.
8071     *
8072     * @param obj The gengrid object.
8073     * @param gic The item class for the item.
8074     * @param data The item data.
8075     * @param func Convenience function called when the item is
8076     * selected.
8077     * @param func_data Data to be passed to @p func.
8078     * @return A handle to the item added or @c NULL, on errors.
8079     *
8080     * This adds an item to the beginning of the gengrid.
8081     *
8082     * @see elm_gengrid_item_prepend()
8083     * @see elm_gengrid_item_insert_before()
8084     * @see elm_gengrid_item_insert_after()
8085     * @see elm_gengrid_item_del()
8086     *
8087     * @ingroup Gengrid
8088     */
8089    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);
8090
8091    /**
8092     * Prepend a new item in a given gengrid widget.
8093     *
8094     * @param obj The gengrid object.
8095     * @param gic The item class for the item.
8096     * @param data The item data.
8097     * @param func Convenience function called when the item is
8098     * selected.
8099     * @param func_data Data to be passed to @p func.
8100     * @return A handle to the item added or @c NULL, on errors.
8101     *
8102     * This adds an item to the end of the gengrid.
8103     *
8104     * @see elm_gengrid_item_append()
8105     * @see elm_gengrid_item_insert_before()
8106     * @see elm_gengrid_item_insert_after()
8107     * @see elm_gengrid_item_del()
8108     *
8109     * @ingroup Gengrid
8110     */
8111    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);
8112
8113    /**
8114     * Insert an item before another in a gengrid widget
8115     *
8116     * @param obj The gengrid object.
8117     * @param gic The item class for the item.
8118     * @param data The item data.
8119     * @param relative The item to place this new one before.
8120     * @param func Convenience function called when the item is
8121     * selected.
8122     * @param func_data Data to be passed to @p func.
8123     * @return A handle to the item added or @c NULL, on errors.
8124     *
8125     * This inserts an item before another in the gengrid.
8126     *
8127     * @see elm_gengrid_item_append()
8128     * @see elm_gengrid_item_prepend()
8129     * @see elm_gengrid_item_insert_after()
8130     * @see elm_gengrid_item_del()
8131     *
8132     * @ingroup Gengrid
8133     */
8134    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);
8135
8136    /**
8137     * Insert an item after another in a gengrid widget
8138     *
8139     * @param obj The gengrid object.
8140     * @param gic The item class for the item.
8141     * @param data The item data.
8142     * @param relative The item to place this new one after.
8143     * @param func Convenience function called when the item is
8144     * selected.
8145     * @param func_data Data to be passed to @p func.
8146     * @return A handle to the item added or @c NULL, on errors.
8147     *
8148     * This inserts an item after another in the gengrid.
8149     *
8150     * @see elm_gengrid_item_append()
8151     * @see elm_gengrid_item_prepend()
8152     * @see elm_gengrid_item_insert_after()
8153     * @see elm_gengrid_item_del()
8154     *
8155     * @ingroup Gengrid
8156     */
8157    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);
8158
8159    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);
8160
8161    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);
8162
8163    /**
8164     * Set whether items on a given gengrid widget are to get their
8165     * selection callbacks issued for @b every subsequent selection
8166     * click on them or just for the first click.
8167     *
8168     * @param obj The gengrid object
8169     * @param always_select @c EINA_TRUE to make items "always
8170     * selected", @c EINA_FALSE, otherwise
8171     *
8172     * By default, grid items will only call their selection callback
8173     * function when firstly getting selected, any subsequent further
8174     * clicks will do nothing. With this call, you make those
8175     * subsequent clicks also to issue the selection callbacks.
8176     *
8177     * @note <b>Double clicks</b> will @b always be reported on items.
8178     *
8179     * @see elm_gengrid_always_select_mode_get()
8180     *
8181     * @ingroup Gengrid
8182     */
8183    EAPI void               elm_gengrid_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
8184
8185    /**
8186     * Get whether items on a given gengrid widget have their selection
8187     * callbacks issued for @b every subsequent selection click on them
8188     * or just for the first click.
8189     *
8190     * @param obj The gengrid object.
8191     * @return @c EINA_TRUE if the gengrid items are "always selected",
8192     * @c EINA_FALSE, otherwise
8193     *
8194     * @see elm_gengrid_always_select_mode_set() for more details
8195     *
8196     * @ingroup Gengrid
8197     */
8198    EAPI Eina_Bool          elm_gengrid_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8199
8200    /**
8201     * Set whether items on a given gengrid widget can be selected or not.
8202     *
8203     * @param obj The gengrid object
8204     * @param no_select @c EINA_TRUE to make items selectable,
8205     * @c EINA_FALSE otherwise
8206     *
8207     * This will make items in @p obj selectable or not. In the latter
8208     * case, any user interacion on the gendrid items will neither make
8209     * them appear selected nor them call their selection callback
8210     * functions.
8211     *
8212     * @see elm_gengrid_no_select_mode_get()
8213     *
8214     * @ingroup Gengrid
8215     */
8216    EAPI void               elm_gengrid_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
8217
8218    /**
8219     * Get whether items on a given gengrid widget can be selected or
8220     * not.
8221     *
8222     * @param obj The gengrid object
8223     * @return @c EINA_TRUE, if items are selectable, @c EINA_FALSE
8224     * otherwise
8225     *
8226     * @see elm_gengrid_no_select_mode_set() for more details
8227     *
8228     * @ingroup Gengrid
8229     */
8230    EAPI Eina_Bool          elm_gengrid_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8231
8232    /**
8233     * Enable or disable multi-selection in a given gengrid widget
8234     *
8235     * @param obj The gengrid object.
8236     * @param multi @c EINA_TRUE, to enable multi-selection,
8237     * @c EINA_FALSE to disable it.
8238     *
8239     * Multi-selection is the ability for one to have @b more than one
8240     * item selected, on a given gengrid, simultaneously. When it is
8241     * enabled, a sequence of clicks on different items will make them
8242     * all selected, progressively. A click on an already selected item
8243     * will unselect it. If interecting via the keyboard,
8244     * multi-selection is enabled while holding the "Shift" key.
8245     *
8246     * @note By default, multi-selection is @b disabled on gengrids
8247     *
8248     * @see elm_gengrid_multi_select_get()
8249     *
8250     * @ingroup Gengrid
8251     */
8252    EAPI void               elm_gengrid_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
8253
8254    /**
8255     * Get whether multi-selection is enabled or disabled for a given
8256     * gengrid widget
8257     *
8258     * @param obj The gengrid object.
8259     * @return @c EINA_TRUE, if multi-selection is enabled, @c
8260     * EINA_FALSE otherwise
8261     *
8262     * @see elm_gengrid_multi_select_set() for more details
8263     *
8264     * @ingroup Gengrid
8265     */
8266    EAPI Eina_Bool          elm_gengrid_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8267
8268    /**
8269     * Enable or disable bouncing effect for a given gengrid widget
8270     *
8271     * @param obj The gengrid object
8272     * @param h_bounce @c EINA_TRUE, to enable @b horizontal bouncing,
8273     * @c EINA_FALSE to disable it
8274     * @param v_bounce @c EINA_TRUE, to enable @b vertical bouncing,
8275     * @c EINA_FALSE to disable it
8276     *
8277     * The bouncing effect occurs whenever one reaches the gengrid's
8278     * edge's while panning it -- it will scroll past its limits a
8279     * little bit and return to the edge again, in a animated for,
8280     * automatically.
8281     *
8282     * @note By default, gengrids have bouncing enabled on both axis
8283     *
8284     * @see elm_gengrid_bounce_get()
8285     *
8286     * @ingroup Gengrid
8287     */
8288    EAPI void               elm_gengrid_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
8289
8290    /**
8291     * Get whether bouncing effects are enabled or disabled, for a
8292     * given gengrid widget, on each axis
8293     *
8294     * @param obj The gengrid object
8295     * @param h_bounce Pointer to a variable where to store the
8296     * horizontal bouncing flag.
8297     * @param v_bounce Pointer to a variable where to store the
8298     * vertical bouncing flag.
8299     *
8300     * @see elm_gengrid_bounce_set() for more details
8301     *
8302     * @ingroup Gengrid
8303     */
8304    EAPI void               elm_gengrid_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
8305
8306    /**
8307     * Set a given gengrid widget's scrolling page size, relative to
8308     * its viewport size.
8309     *
8310     * @param obj The gengrid object
8311     * @param h_pagerel The horizontal page (relative) size
8312     * @param v_pagerel The vertical page (relative) size
8313     *
8314     * The gengrid's scroller is capable of binding scrolling by the
8315     * user to "pages". It means that, while scrolling and, specially
8316     * after releasing the mouse button, the grid will @b snap to the
8317     * nearest displaying page's area. When page sizes are set, the
8318     * grid's continuous content area is split into (equal) page sized
8319     * pieces.
8320     *
8321     * This function sets the size of a page <b>relatively to the
8322     * viewport dimensions</b> of the gengrid, for each axis. A value
8323     * @c 1.0 means "the exact viewport's size", in that axis, while @c
8324     * 0.0 turns paging off in that axis. Likewise, @c 0.5 means "half
8325     * a viewport". Sane usable values are, than, between @c 0.0 and @c
8326     * 1.0. Values beyond those will make it behave behave
8327     * inconsistently. If you only want one axis to snap to pages, use
8328     * the value @c 0.0 for the other one.
8329     *
8330     * There is a function setting page size values in @b absolute
8331     * values, too -- elm_gengrid_page_size_set(). Naturally, its use
8332     * is mutually exclusive to this one.
8333     *
8334     * @see elm_gengrid_page_relative_get()
8335     *
8336     * @ingroup Gengrid
8337     */
8338    EAPI void               elm_gengrid_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel) EINA_ARG_NONNULL(1);
8339
8340    /**
8341     * Get a given gengrid widget's scrolling page size, relative to
8342     * its viewport size.
8343     *
8344     * @param obj The gengrid object
8345     * @param h_pagerel Pointer to a variable where to store the
8346     * horizontal page (relative) size
8347     * @param v_pagerel Pointer to a variable where to store the
8348     * vertical page (relative) size
8349     *
8350     * @see elm_gengrid_page_relative_set() for more details
8351     *
8352     * @ingroup Gengrid
8353     */
8354    EAPI void               elm_gengrid_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel) EINA_ARG_NONNULL(1);
8355
8356    /**
8357     * Set a given gengrid widget's scrolling page size
8358     *
8359     * @param obj The gengrid object
8360     * @param h_pagerel The horizontal page size, in pixels
8361     * @param v_pagerel The vertical page size, in pixels
8362     *
8363     * The gengrid's scroller is capable of binding scrolling by the
8364     * user to "pages". It means that, while scrolling and, specially
8365     * after releasing the mouse button, the grid will @b snap to the
8366     * nearest displaying page's area. When page sizes are set, the
8367     * grid's continuous content area is split into (equal) page sized
8368     * pieces.
8369     *
8370     * This function sets the size of a page of the gengrid, in pixels,
8371     * for each axis. Sane usable values are, between @c 0 and the
8372     * dimensions of @p obj, for each axis. Values beyond those will
8373     * make it behave behave inconsistently. If you only want one axis
8374     * to snap to pages, use the value @c 0 for the other one.
8375     *
8376     * There is a function setting page size values in @b relative
8377     * values, too -- elm_gengrid_page_relative_set(). Naturally, its
8378     * use is mutually exclusive to this one.
8379     *
8380     * @ingroup Gengrid
8381     */
8382    EAPI void               elm_gengrid_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize) EINA_ARG_NONNULL(1);
8383
8384    /**
8385     * Set for what direction a given gengrid widget will expand while
8386     * placing its items.
8387     *
8388     * @param obj The gengrid object.
8389     * @param setting @c EINA_TRUE to make the gengrid expand
8390     * horizontally, @c EINA_FALSE to expand vertically.
8391     *
8392     * When in "horizontal mode" (@c EINA_TRUE), items will be placed
8393     * in @b columns, from top to bottom and, when the space for a
8394     * column is filled, another one is started on the right, thus
8395     * expanding the grid horizontally. When in "vertical mode"
8396     * (@c EINA_FALSE), though, items will be placed in @b rows, from left
8397     * to right and, when the space for a row is filled, another one is
8398     * started below, thus expanding the grid vertically.
8399     *
8400     * @see elm_gengrid_horizontal_get()
8401     *
8402     * @ingroup Gengrid
8403     */
8404    EAPI void               elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
8405
8406    /**
8407     * Get for what direction a given gengrid widget will expand while
8408     * placing its items.
8409     *
8410     * @param obj The gengrid object.
8411     * @return @c EINA_TRUE, if @p obj is set to expand horizontally,
8412     * @c EINA_FALSE if it's set to expand vertically.
8413     *
8414     * @see elm_gengrid_horizontal_set() for more detais
8415     *
8416     * @ingroup Gengrid
8417     */
8418    EAPI Eina_Bool          elm_gengrid_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8419
8420    /**
8421     * Get the first item in a given gengrid widget
8422     *
8423     * @param obj The gengrid object
8424     * @return The first item's handle or @c NULL, if there are no
8425     * items in @p obj (and on errors)
8426     *
8427     * This returns the first item in the @p obj's internal list of
8428     * items.
8429     *
8430     * @see elm_gengrid_last_item_get()
8431     *
8432     * @ingroup Gengrid
8433     */
8434    EAPI Elm_Gengrid_Item  *elm_gengrid_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8435
8436    /**
8437     * Get the last item in a given gengrid widget
8438     *
8439     * @param obj The gengrid object
8440     * @return The last item's handle or @c NULL, if there are no
8441     * items in @p obj (and on errors)
8442     *
8443     * This returns the last item in the @p obj's internal list of
8444     * items.
8445     *
8446     * @see elm_gengrid_first_item_get()
8447     *
8448     * @ingroup Gengrid
8449     */
8450    EAPI Elm_Gengrid_Item  *elm_gengrid_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8451
8452    /**
8453     * Get the @b next item in a gengrid widget's internal list of items,
8454     * given a handle to one of those items.
8455     *
8456     * @param item The gengrid item to fetch next from
8457     * @return The item after @p item, or @c NULL if there's none (and
8458     * on errors)
8459     *
8460     * This returns the item placed after the @p item, on the container
8461     * gengrid.
8462     *
8463     * @see elm_gengrid_item_prev_get()
8464     *
8465     * @ingroup Gengrid
8466     */
8467    EAPI Elm_Gengrid_Item  *elm_gengrid_item_next_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8468
8469    /**
8470     * Get the @b previous item in a gengrid widget's internal list of items,
8471     * given a handle to one of those items.
8472     *
8473     * @param item The gengrid item to fetch previous from
8474     * @return The item before @p item, or @c NULL if there's none (and
8475     * on errors)
8476     *
8477     * This returns the item placed before the @p item, on the container
8478     * gengrid.
8479     *
8480     * @see elm_gengrid_item_next_get()
8481     *
8482     * @ingroup Gengrid
8483     */
8484    EAPI Elm_Gengrid_Item  *elm_gengrid_item_prev_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8485
8486    /**
8487     * Get the gengrid object's handle which contains a given gengrid
8488     * item
8489     *
8490     * @param item The item to fetch the container from
8491     * @return The gengrid (parent) object
8492     *
8493     * This returns the gengrid object itself that an item belongs to.
8494     *
8495     * @ingroup Gengrid
8496     */
8497    EAPI Evas_Object       *elm_gengrid_item_gengrid_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8498
8499    /**
8500     * Remove a gengrid item from the its parent, deleting it.
8501     *
8502     * @param item The item to be removed.
8503     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
8504     *
8505     * @see elm_gengrid_clear(), to remove all items in a gengrid at
8506     * once.
8507     *
8508     * @ingroup Gengrid
8509     */
8510    EAPI void               elm_gengrid_item_del(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8511
8512    /**
8513     * Update the contents of a given gengrid item
8514     *
8515     * @param item The gengrid item
8516     *
8517     * This updates an item by calling all the item class functions
8518     * again to get the icons, labels and states. Use this when the
8519     * original item data has changed and you want thta changes to be
8520     * reflected.
8521     *
8522     * @ingroup Gengrid
8523     */
8524    EAPI void               elm_gengrid_item_update(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8525    EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8526    EAPI void               elm_gengrid_item_item_class_set(Elm_Gengrid_Item *item, const Elm_Gengrid_Item_Class *gic) EINA_ARG_NONNULL(1, 2);
8527
8528    /**
8529     * Return the data associated to a given gengrid item
8530     *
8531     * @param item The gengrid item.
8532     * @return the data associated to this item.
8533     *
8534     * This returns the @c data value passed on the
8535     * elm_gengrid_item_append() and related item addition calls.
8536     *
8537     * @see elm_gengrid_item_append()
8538     * @see elm_gengrid_item_data_set()
8539     *
8540     * @ingroup Gengrid
8541     */
8542    EAPI void              *elm_gengrid_item_data_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8543
8544    /**
8545     * Set the data associated to a given gengrid item
8546     *
8547     * @param item The gengrid item
8548     * @param data The new data pointer to set on it
8549     *
8550     * This @b overrides the @c data value passed on the
8551     * elm_gengrid_item_append() and related item addition calls. This
8552     * function @b won't call elm_gengrid_item_update() automatically,
8553     * so you'd issue it afterwards if you want to hove the item
8554     * updated to reflect the that new data.
8555     *
8556     * @see elm_gengrid_item_data_get()
8557     *
8558     * @ingroup Gengrid
8559     */
8560    EAPI void               elm_gengrid_item_data_set(Elm_Gengrid_Item *item, const void *data) EINA_ARG_NONNULL(1);
8561
8562    /**
8563     * Get a given gengrid item's position, relative to the whole
8564     * gengrid's grid area.
8565     *
8566     * @param item The Gengrid item.
8567     * @param x Pointer to variable where to store the item's <b>row
8568     * number</b>.
8569     * @param y Pointer to variable where to store the item's <b>column
8570     * number</b>.
8571     *
8572     * This returns the "logical" position of the item whithin the
8573     * gengrid. For example, @c (0, 1) would stand for first row,
8574     * second column.
8575     *
8576     * @ingroup Gengrid
8577     */
8578    EAPI void               elm_gengrid_item_pos_get(const Elm_Gengrid_Item *item, unsigned int *x, unsigned int *y) EINA_ARG_NONNULL(1);
8579
8580    /**
8581     * Set whether a given gengrid item is selected or not
8582     *
8583     * @param item The gengrid item
8584     * @param selected Use @c EINA_TRUE, to make it selected, @c
8585     * EINA_FALSE to make it unselected
8586     *
8587     * This sets the selected state of an item. If multi selection is
8588     * not enabled on the containing gengrid and @p selected is @c
8589     * EINA_TRUE, any other previously selected items will get
8590     * unselected in favor of this new one.
8591     *
8592     * @see elm_gengrid_item_selected_get()
8593     *
8594     * @ingroup Gengrid
8595     */
8596    EAPI void               elm_gengrid_item_selected_set(Elm_Gengrid_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
8597
8598    /**
8599     * Get whether a given gengrid item is selected or not
8600     *
8601     * @param item The gengrid item
8602     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
8603     *
8604     * @see elm_gengrid_item_selected_set() for more details
8605     *
8606     * @ingroup Gengrid
8607     */
8608    EAPI Eina_Bool          elm_gengrid_item_selected_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8609
8610    /**
8611     * Get the real Evas object created to implement the view of a
8612     * given gengrid item
8613     *
8614     * @param item The gengrid item.
8615     * @return the Evas object implementing this item's view.
8616     *
8617     * This returns the actual Evas object used to implement the
8618     * specified gengrid item's view. This may be @c NULL, as it may
8619     * not have been created or may have been deleted, at any time, by
8620     * the gengrid. <b>Do not modify this object</b> (move, resize,
8621     * show, hide, etc.), as the gengrid is controlling it. This
8622     * function is for querying, emitting custom signals or hooking
8623     * lower level callbacks for events on that object. Do not delete
8624     * this object under any circumstances.
8625     *
8626     * @see elm_gengrid_item_data_get()
8627     *
8628     * @ingroup Gengrid
8629     */
8630    EAPI const Evas_Object *elm_gengrid_item_object_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8631
8632    /**
8633     * Show the portion of a gengrid's internal grid containing a given
8634     * item, @b immediately.
8635     *
8636     * @param item The item to display
8637     *
8638     * This causes gengrid to @b redraw its viewport's contents to the
8639     * region contining the given @p item item, if it is not fully
8640     * visible.
8641     *
8642     * @see elm_gengrid_item_bring_in()
8643     *
8644     * @ingroup Gengrid
8645     */
8646    EAPI void               elm_gengrid_item_show(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8647
8648    /**
8649     * Animatedly bring in, to the visible are of a gengrid, a given
8650     * item on it.
8651     *
8652     * @param item The gengrid item to display
8653     *
8654     * This causes gengrig to jump to the given @p item item and show
8655     * it (by scrolling), if it is not fully visible. This will use
8656     * animation to do so and take a period of time to complete.
8657     *
8658     * @see elm_gengrid_item_show()
8659     *
8660     * @ingroup Gengrid
8661     */
8662    EAPI void               elm_gengrid_item_bring_in(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8663
8664    /**
8665     * Set whether a given gengrid item is disabled or not.
8666     *
8667     * @param item The gengrid item
8668     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
8669     * to enable it back.
8670     *
8671     * A disabled item cannot be selected or unselected. It will also
8672     * change its appearance, to signal the user it's disabled.
8673     *
8674     * @see elm_gengrid_item_disabled_get()
8675     *
8676     * @ingroup Gengrid
8677     */
8678    EAPI void               elm_gengrid_item_disabled_set(Elm_Gengrid_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
8679
8680    /**
8681     * Get whether a given gengrid item is disabled or not.
8682     *
8683     * @param item The gengrid item
8684     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
8685     * (and on errors).
8686     *
8687     * @see elm_gengrid_item_disabled_set() for more details
8688     *
8689     * @ingroup Gengrid
8690     */
8691    EAPI Eina_Bool          elm_gengrid_item_disabled_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8692
8693    /**
8694     * Set the text to be shown in a given gengrid item's tooltips.
8695     *
8696     * @param item The gengrid item
8697     * @param text The text to set in the content
8698     *
8699     * This call will setup the text to be used as tooltip to that item
8700     * (analogous to elm_object_tooltip_text_set(), but being item
8701     * tooltips with higher precedence than object tooltips). It can
8702     * have only one tooltip at a time, so any previous tooltip data
8703     * will get removed.
8704     *
8705     * @ingroup Gengrid
8706     */
8707    EAPI void               elm_gengrid_item_tooltip_text_set(Elm_Gengrid_Item *item, const char *text) EINA_ARG_NONNULL(1);
8708
8709    /**
8710     * Set the content to be shown in a given gengrid item's tooltips
8711     *
8712     * @param item The gengrid item.
8713     * @param func The function returning the tooltip contents.
8714     * @param data What to provide to @a func as callback data/context.
8715     * @param del_cb Called when data is not needed anymore, either when
8716     *        another callback replaces @p func, the tooltip is unset with
8717     *        elm_gengrid_item_tooltip_unset() or the owner @p item
8718     *        dies. This callback receives as its first parameter the
8719     *        given @p data, being @c event_info the item handle.
8720     *
8721     * This call will setup the tooltip's contents to @p item
8722     * (analogous to elm_object_tooltip_content_cb_set(), but being
8723     * item tooltips with higher precedence than object tooltips). It
8724     * can have only one tooltip at a time, so any previous tooltip
8725     * content will get removed. @p func (with @p data) will be called
8726     * every time Elementary needs to show the tooltip and it should
8727     * return a valid Evas object, which will be fully managed by the
8728     * tooltip system, getting deleted when the tooltip is gone.
8729     *
8730     * @ingroup Gengrid
8731     */
8732    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);
8733
8734    /**
8735     * Unset a tooltip from a given gengrid item
8736     *
8737     * @param item gengrid item to remove a previously set tooltip from.
8738     *
8739     * This call removes any tooltip set on @p item. The callback
8740     * provided as @c del_cb to
8741     * elm_gengrid_item_tooltip_content_cb_set() will be called to
8742     * notify it is not used anymore (and have resources cleaned, if
8743     * need be).
8744     *
8745     * @see elm_gengrid_item_tooltip_content_cb_set()
8746     *
8747     * @ingroup Gengrid
8748     */
8749    EAPI void               elm_gengrid_item_tooltip_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8750
8751    /**
8752     * Set a different @b style for a given gengrid item's tooltip.
8753     *
8754     * @param item gengrid item with tooltip set
8755     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
8756     * "default", @c "transparent", etc)
8757     *
8758     * Tooltips can have <b>alternate styles</b> to be displayed on,
8759     * which are defined by the theme set on Elementary. This function
8760     * works analogously as elm_object_tooltip_style_set(), but here
8761     * applied only to gengrid item objects. The default style for
8762     * tooltips is @c "default".
8763     *
8764     * @note before you set a style you should define a tooltip with
8765     *       elm_gengrid_item_tooltip_content_cb_set() or
8766     *       elm_gengrid_item_tooltip_text_set()
8767     *
8768     * @see elm_gengrid_item_tooltip_style_get()
8769     *
8770     * @ingroup Gengrid
8771     */
8772    EAPI void               elm_gengrid_item_tooltip_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
8773
8774    /**
8775     * Get the style set a given gengrid item's tooltip.
8776     *
8777     * @param item gengrid item with tooltip already set on.
8778     * @return style the theme style in use, which defaults to
8779     *         "default". If the object does not have a tooltip set,
8780     *         then @c NULL is returned.
8781     *
8782     * @see elm_gengrid_item_tooltip_style_set() for more details
8783     *
8784     * @ingroup Gengrid
8785     */
8786    EAPI const char        *elm_gengrid_item_tooltip_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8787    /**
8788     * @brief Disable size restrictions on an object's tooltip
8789     * @param item The tooltip's anchor object
8790     * @param disable If EINA_TRUE, size restrictions are disabled
8791     * @return EINA_FALSE on failure, EINA_TRUE on success
8792     *
8793     * This function allows a tooltip to expand beyond its parant window's canvas.
8794     * It will instead be limited only by the size of the display.
8795     */
8796    EAPI Eina_Bool          elm_gengrid_item_tooltip_size_restrict_disable(Elm_Gengrid_Item *item, Eina_Bool disable);
8797    /**
8798     * @brief Retrieve size restriction state of an object's tooltip
8799     * @param item The tooltip's anchor object
8800     * @return If EINA_TRUE, size restrictions are disabled
8801     *
8802     * This function returns whether a tooltip is allowed to expand beyond
8803     * its parant window's canvas.
8804     * It will instead be limited only by the size of the display.
8805     */
8806    EAPI Eina_Bool          elm_gengrid_item_tooltip_size_restrict_disabled_get(const Elm_Gengrid_Item *item);
8807    /**
8808     * Set the type of mouse pointer/cursor decoration to be shown,
8809     * when the mouse pointer is over the given gengrid widget item
8810     *
8811     * @param item gengrid item to customize cursor on
8812     * @param cursor the cursor type's name
8813     *
8814     * This function works analogously as elm_object_cursor_set(), but
8815     * here the cursor's changing area is restricted to the item's
8816     * area, and not the whole widget's. Note that that item cursors
8817     * have precedence over widget cursors, so that a mouse over @p
8818     * item will always show cursor @p type.
8819     *
8820     * If this function is called twice for an object, a previously set
8821     * cursor will be unset on the second call.
8822     *
8823     * @see elm_object_cursor_set()
8824     * @see elm_gengrid_item_cursor_get()
8825     * @see elm_gengrid_item_cursor_unset()
8826     *
8827     * @ingroup Gengrid
8828     */
8829    EAPI void               elm_gengrid_item_cursor_set(Elm_Gengrid_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
8830
8831    /**
8832     * Get the type of mouse pointer/cursor decoration set to be shown,
8833     * when the mouse pointer is over the given gengrid widget item
8834     *
8835     * @param item gengrid item with custom cursor set
8836     * @return the cursor type's name or @c NULL, if no custom cursors
8837     * were set to @p item (and on errors)
8838     *
8839     * @see elm_object_cursor_get()
8840     * @see elm_gengrid_item_cursor_set() for more details
8841     * @see elm_gengrid_item_cursor_unset()
8842     *
8843     * @ingroup Gengrid
8844     */
8845    EAPI const char        *elm_gengrid_item_cursor_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8846
8847    /**
8848     * Unset any custom mouse pointer/cursor decoration set to be
8849     * shown, when the mouse pointer is over the given gengrid widget
8850     * item, thus making it show the @b default cursor again.
8851     *
8852     * @param item a gengrid item
8853     *
8854     * Use this call to undo any custom settings on this item's cursor
8855     * decoration, bringing it back to defaults (no custom style set).
8856     *
8857     * @see elm_object_cursor_unset()
8858     * @see elm_gengrid_item_cursor_set() for more details
8859     *
8860     * @ingroup Gengrid
8861     */
8862    EAPI void               elm_gengrid_item_cursor_unset(Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8863
8864    /**
8865     * Set a different @b style for a given custom cursor set for a
8866     * gengrid item.
8867     *
8868     * @param item gengrid item with custom cursor set
8869     * @param style the <b>theme style</b> to use (e.g. @c "default",
8870     * @c "transparent", etc)
8871     *
8872     * This function only makes sense when one is using custom mouse
8873     * cursor decorations <b>defined in a theme file</b> , which can
8874     * have, given a cursor name/type, <b>alternate styles</b> on
8875     * it. It works analogously as elm_object_cursor_style_set(), but
8876     * here applied only to gengrid item objects.
8877     *
8878     * @warning Before you set a cursor style you should have defined a
8879     *       custom cursor previously on the item, with
8880     *       elm_gengrid_item_cursor_set()
8881     *
8882     * @see elm_gengrid_item_cursor_engine_only_set()
8883     * @see elm_gengrid_item_cursor_style_get()
8884     *
8885     * @ingroup Gengrid
8886     */
8887    EAPI void               elm_gengrid_item_cursor_style_set(Elm_Gengrid_Item *item, const char *style) EINA_ARG_NONNULL(1);
8888
8889    /**
8890     * Get the current @b style set for a given gengrid item's custom
8891     * cursor
8892     *
8893     * @param item gengrid item with custom cursor set.
8894     * @return style the cursor style in use. If the object does not
8895     *         have a cursor set, then @c NULL is returned.
8896     *
8897     * @see elm_gengrid_item_cursor_style_set() for more details
8898     *
8899     * @ingroup Gengrid
8900     */
8901    EAPI const char        *elm_gengrid_item_cursor_style_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8902
8903    /**
8904     * Set if the (custom) cursor for a given gengrid item should be
8905     * searched in its theme, also, or should only rely on the
8906     * rendering engine.
8907     *
8908     * @param item item with custom (custom) cursor already set on
8909     * @param engine_only Use @c EINA_TRUE to have cursors looked for
8910     * only on those provided by the rendering engine, @c EINA_FALSE to
8911     * have them searched on the widget's theme, as well.
8912     *
8913     * @note This call is of use only if you've set a custom cursor
8914     * for gengrid items, with elm_gengrid_item_cursor_set().
8915     *
8916     * @note By default, cursors will only be looked for between those
8917     * provided by the rendering engine.
8918     *
8919     * @ingroup Gengrid
8920     */
8921    EAPI void               elm_gengrid_item_cursor_engine_only_set(Elm_Gengrid_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
8922
8923    /**
8924     * Get if the (custom) cursor for a given gengrid item is being
8925     * searched in its theme, also, or is only relying on the rendering
8926     * engine.
8927     *
8928     * @param item a gengrid item
8929     * @return @c EINA_TRUE, if cursors are being looked for only on
8930     * those provided by the rendering engine, @c EINA_FALSE if they
8931     * are being searched on the widget's theme, as well.
8932     *
8933     * @see elm_gengrid_item_cursor_engine_only_set(), for more details
8934     *
8935     * @ingroup Gengrid
8936     */
8937    EAPI Eina_Bool          elm_gengrid_item_cursor_engine_only_get(const Elm_Gengrid_Item *item) EINA_ARG_NONNULL(1);
8938
8939    /**
8940     * Remove all items from a given gengrid widget
8941     *
8942     * @param obj The gengrid object.
8943     *
8944     * This removes (and deletes) all items in @p obj, leaving it
8945     * empty.
8946     *
8947     * @see elm_gengrid_item_del(), to remove just one item.
8948     *
8949     * @ingroup Gengrid
8950     */
8951    EAPI void               elm_gengrid_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
8952
8953    /**
8954     * Get the selected item in a given gengrid widget
8955     *
8956     * @param obj The gengrid object.
8957     * @return The selected item's handleor @c NULL, if none is
8958     * selected at the moment (and on errors)
8959     *
8960     * This returns the selected item in @p obj. If multi selection is
8961     * enabled on @p obj (@see elm_gengrid_multi_select_set()), only
8962     * the first item in the list is selected, which might not be very
8963     * useful. For that case, see elm_gengrid_selected_items_get().
8964     *
8965     * @ingroup Gengrid
8966     */
8967    EAPI Elm_Gengrid_Item  *elm_gengrid_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8968
8969    /**
8970     * Get <b>a list</b> of selected items in a given gengrid
8971     *
8972     * @param obj The gengrid object.
8973     * @return The list of selected items or @c NULL, if none is
8974     * selected at the moment (and on errors)
8975     *
8976     * This returns a list of the selected items, in the order that
8977     * they appear in the grid. This list is only valid as long as no
8978     * more items are selected or unselected (or unselected implictly
8979     * by deletion). The list contains #Elm_Gengrid_Item pointers as
8980     * data, naturally.
8981     *
8982     * @see elm_gengrid_selected_item_get()
8983     *
8984     * @ingroup Gengrid
8985     */
8986    EAPI const Eina_List   *elm_gengrid_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
8987
8988    /**
8989     * @}
8990     */
8991
8992    /**
8993     * @defgroup Clock Clock
8994     *
8995     * @image html img/widget/clock/preview-00.png
8996     * @image latex img/widget/clock/preview-00.eps
8997     *
8998     * This is a @b digital clock widget. In its default theme, it has a
8999     * vintage "flipping numbers clock" appearance, which will animate
9000     * sheets of individual algarisms individually as time goes by.
9001     *
9002     * A newly created clock will fetch system's time (already
9003     * considering local time adjustments) to start with, and will tick
9004     * accondingly. It may or may not show seconds.
9005     *
9006     * Clocks have an @b edition mode. When in it, the sheets will
9007     * display extra arrow indications on the top and bottom and the
9008     * user may click on them to raise or lower the time values. After
9009     * it's told to exit edition mode, it will keep ticking with that
9010     * new time set (it keeps the difference from local time).
9011     *
9012     * Also, when under edition mode, user clicks on the cited arrows
9013     * which are @b held for some time will make the clock to flip the
9014     * sheet, thus editing the time, continuosly and automatically for
9015     * the user. The interval between sheet flips will keep growing in
9016     * time, so that it helps the user to reach a time which is distant
9017     * from the one set.
9018     *
9019     * The time display is, by default, in military mode (24h), but an
9020     * am/pm indicator may be optionally shown, too, when it will
9021     * switch to 12h.
9022     *
9023     * Smart callbacks one can register to:
9024     * - "changed" - the clock's user changed the time
9025     *
9026     * Here is an example on its usage:
9027     * @li @ref clock_example
9028     */
9029
9030    /**
9031     * @addtogroup Clock
9032     * @{
9033     */
9034
9035    /**
9036     * Identifiers for which clock digits should be editable, when a
9037     * clock widget is in edition mode. Values may be ORed together to
9038     * make a mask, naturally.
9039     *
9040     * @see elm_clock_edit_set()
9041     * @see elm_clock_digit_edit_set()
9042     */
9043    typedef enum _Elm_Clock_Digedit
9044      {
9045         ELM_CLOCK_NONE         = 0, /**< Default value. Means that all digits are editable, when in edition mode. */
9046         ELM_CLOCK_HOUR_DECIMAL = 1 << 0, /**< Decimal algarism of hours value should be editable */
9047         ELM_CLOCK_HOUR_UNIT    = 1 << 1, /**< Unit algarism of hours value should be editable */
9048         ELM_CLOCK_MIN_DECIMAL  = 1 << 2, /**< Decimal algarism of minutes value should be editable */
9049         ELM_CLOCK_MIN_UNIT     = 1 << 3, /**< Unit algarism of minutes value should be editable */
9050         ELM_CLOCK_SEC_DECIMAL  = 1 << 4, /**< Decimal algarism of seconds value should be editable */
9051         ELM_CLOCK_SEC_UNIT     = 1 << 5, /**< Unit algarism of seconds value should be editable */
9052         ELM_CLOCK_ALL          = (1 << 6) - 1 /**< All digits should be editable */
9053      } Elm_Clock_Digedit;
9054
9055    /**
9056     * Add a new clock widget to the given parent Elementary
9057     * (container) object
9058     *
9059     * @param parent The parent object
9060     * @return a new clock widget handle or @c NULL, on errors
9061     *
9062     * This function inserts a new clock widget on the canvas.
9063     *
9064     * @ingroup Clock
9065     */
9066    EAPI Evas_Object      *elm_clock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9067
9068    /**
9069     * Set a clock widget's time, programmatically
9070     *
9071     * @param obj The clock widget object
9072     * @param hrs The hours to set
9073     * @param min The minutes to set
9074     * @param sec The secondes to set
9075     *
9076     * This function updates the time that is showed by the clock
9077     * widget.
9078     *
9079     *  Values @b must be set within the following ranges:
9080     * - 0 - 23, for hours
9081     * - 0 - 59, for minutes
9082     * - 0 - 59, for seconds,
9083     *
9084     * even if the clock is not in "military" mode.
9085     *
9086     * @warning The behavior for values set out of those ranges is @b
9087     * indefined.
9088     *
9089     * @ingroup Clock
9090     */
9091    EAPI void              elm_clock_time_set(Evas_Object *obj, int hrs, int min, int sec) EINA_ARG_NONNULL(1);
9092
9093    /**
9094     * Get a clock widget's time values
9095     *
9096     * @param obj The clock object
9097     * @param[out] hrs Pointer to the variable to get the hours value
9098     * @param[out] min Pointer to the variable to get the minutes value
9099     * @param[out] sec Pointer to the variable to get the seconds value
9100     *
9101     * This function gets the time set for @p obj, returning
9102     * it on the variables passed as the arguments to function
9103     *
9104     * @note Use @c NULL pointers on the time values you're not
9105     * interested in: they'll be ignored by the function.
9106     *
9107     * @ingroup Clock
9108     */
9109    EAPI void              elm_clock_time_get(const Evas_Object *obj, int *hrs, int *min, int *sec) EINA_ARG_NONNULL(1);
9110
9111    /**
9112     * Set whether a given clock widget is under <b>edition mode</b> or
9113     * under (default) displaying-only mode.
9114     *
9115     * @param obj The clock object
9116     * @param edit @c EINA_TRUE to put it in edition, @c EINA_FALSE to
9117     * put it back to "displaying only" mode
9118     *
9119     * This function makes a clock's time to be editable or not <b>by
9120     * user interaction</b>. When in edition mode, clocks @b stop
9121     * ticking, until one brings them back to canonical mode. The
9122     * elm_clock_digit_edit_set() function will influence which digits
9123     * of the clock will be editable. By default, all of them will be
9124     * (#ELM_CLOCK_NONE).
9125     *
9126     * @note am/pm sheets, if being shown, will @b always be editable
9127     * under edition mode.
9128     *
9129     * @see elm_clock_edit_get()
9130     *
9131     * @ingroup Clock
9132     */
9133    EAPI void              elm_clock_edit_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
9134
9135    /**
9136     * Retrieve whether a given clock widget is under <b>edition
9137     * mode</b> or under (default) displaying-only mode.
9138     *
9139     * @param obj The clock object
9140     * @param edit @c EINA_TRUE, if it's in edition mode, @c EINA_FALSE
9141     * otherwise
9142     *
9143     * This function retrieves whether the clock's time can be edited
9144     * or not by user interaction.
9145     *
9146     * @see elm_clock_edit_set() for more details
9147     *
9148     * @ingroup Clock
9149     */
9150    EAPI Eina_Bool         elm_clock_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9151
9152    /**
9153     * Set what digits of the given clock widget should be editable
9154     * when in edition mode.
9155     *
9156     * @param obj The clock object
9157     * @param digedit Bit mask indicating the digits to be editable
9158     * (values in #Elm_Clock_Digedit).
9159     *
9160     * If the @p digedit param is #ELM_CLOCK_NONE, editing will be
9161     * disabled on @p obj (same effect as elm_clock_edit_set(), with @c
9162     * EINA_FALSE).
9163     *
9164     * @see elm_clock_digit_edit_get()
9165     *
9166     * @ingroup Clock
9167     */
9168    EAPI void              elm_clock_digit_edit_set(Evas_Object *obj, Elm_Clock_Digedit digedit) EINA_ARG_NONNULL(1);
9169
9170    /**
9171     * Retrieve what digits of the given clock widget should be
9172     * editable when in edition mode.
9173     *
9174     * @param obj The clock object
9175     * @return Bit mask indicating the digits to be editable
9176     * (values in #Elm_Clock_Digedit).
9177     *
9178     * @see elm_clock_digit_edit_set() for more details
9179     *
9180     * @ingroup Clock
9181     */
9182    EAPI Elm_Clock_Digedit elm_clock_digit_edit_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9183
9184    /**
9185     * Set if the given clock widget must show hours in military or
9186     * am/pm mode
9187     *
9188     * @param obj The clock object
9189     * @param am_pm @c EINA_TRUE to put it in am/pm mode, @c EINA_FALSE
9190     * to military mode
9191     *
9192     * This function sets if the clock must show hours in military or
9193     * am/pm mode. In some countries like Brazil the military mode
9194     * (00-24h-format) is used, in opposition to the USA, where the
9195     * am/pm mode is more commonly used.
9196     *
9197     * @see elm_clock_show_am_pm_get()
9198     *
9199     * @ingroup Clock
9200     */
9201    EAPI void              elm_clock_show_am_pm_set(Evas_Object *obj, Eina_Bool am_pm) EINA_ARG_NONNULL(1);
9202
9203    /**
9204     * Get if the given clock widget shows hours in military or am/pm
9205     * mode
9206     *
9207     * @param obj The clock object
9208     * @return @c EINA_TRUE, if in am/pm mode, @c EINA_FALSE if in
9209     * military
9210     *
9211     * This function gets if the clock shows hours in military or am/pm
9212     * mode.
9213     *
9214     * @see elm_clock_show_am_pm_set() for more details
9215     *
9216     * @ingroup Clock
9217     */
9218    EAPI Eina_Bool         elm_clock_show_am_pm_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9219
9220    /**
9221     * Set if the given clock widget must show time with seconds or not
9222     *
9223     * @param obj The clock object
9224     * @param seconds @c EINA_TRUE to show seconds, @c EINA_FALSE otherwise
9225     *
9226     * This function sets if the given clock must show or not elapsed
9227     * seconds. By default, they are @b not shown.
9228     *
9229     * @see elm_clock_show_seconds_get()
9230     *
9231     * @ingroup Clock
9232     */
9233    EAPI void              elm_clock_show_seconds_set(Evas_Object *obj, Eina_Bool seconds) EINA_ARG_NONNULL(1);
9234
9235    /**
9236     * Get whether the given clock widget is showing time with seconds
9237     * or not
9238     *
9239     * @param obj The clock object
9240     * @return @c EINA_TRUE if it's showing seconds, @c EINA_FALSE otherwise
9241     *
9242     * This function gets whether @p obj is showing or not the elapsed
9243     * seconds.
9244     *
9245     * @see elm_clock_show_seconds_set()
9246     *
9247     * @ingroup Clock
9248     */
9249    EAPI Eina_Bool         elm_clock_show_seconds_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9250
9251    /**
9252     * Set the interval on time updates for an user mouse button hold
9253     * on clock widgets' time edition.
9254     *
9255     * @param obj The clock object
9256     * @param interval The (first) interval value in seconds
9257     *
9258     * This interval value is @b decreased while the user holds the
9259     * mouse pointer either incrementing or decrementing a given the
9260     * clock digit's value.
9261     *
9262     * This helps the user to get to a given time distant from the
9263     * current one easier/faster, as it will start to flip quicker and
9264     * quicker on mouse button holds.
9265     *
9266     * The calculation for the next flip interval value, starting from
9267     * the one set with this call, is the previous interval divided by
9268     * 1.05, so it decreases a little bit.
9269     *
9270     * The default starting interval value for automatic flips is
9271     * @b 0.85 seconds.
9272     *
9273     * @see elm_clock_interval_get()
9274     *
9275     * @ingroup Clock
9276     */
9277    EAPI void              elm_clock_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
9278
9279    /**
9280     * Get the interval on time updates for an user mouse button hold
9281     * on clock widgets' time edition.
9282     *
9283     * @param obj The clock object
9284     * @return The (first) interval value, in seconds, set on it
9285     *
9286     * @see elm_clock_interval_set() for more details
9287     *
9288     * @ingroup Clock
9289     */
9290    EAPI double            elm_clock_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9291
9292    /**
9293     * @}
9294     */
9295
9296    /**
9297     * @defgroup Layout Layout
9298     *
9299     * @image html img/widget/layout/preview-00.png
9300     * @image latex img/widget/layout/preview-00.eps width=\textwidth
9301     *
9302     * @image html img/layout-predefined.png
9303     * @image latex img/layout-predefined.eps width=\textwidth
9304     *
9305     * This is a container widget that takes a standard Edje design file and
9306     * wraps it very thinly in a widget.
9307     *
9308     * An Edje design (theme) file has a very wide range of possibilities to
9309     * describe the behavior of elements added to the Layout. Check out the Edje
9310     * documentation and the EDC reference to get more information about what can
9311     * be done with Edje.
9312     *
9313     * Just like @ref List, @ref Box, and other container widgets, any
9314     * object added to the Layout will become its child, meaning that it will be
9315     * deleted if the Layout is deleted, move if the Layout is moved, and so on.
9316     *
9317     * The Layout widget can contain as many Contents, Boxes or Tables as
9318     * described in its theme file. For instance, objects can be added to
9319     * different Tables by specifying the respective Table part names. The same
9320     * is valid for Content and Box.
9321     *
9322     * The objects added as child of the Layout will behave as described in the
9323     * part description where they were added. There are 3 possible types of
9324     * parts where a child can be added:
9325     *
9326     * @section secContent Content (SWALLOW part)
9327     *
9328     * Only one object can be added to the @c SWALLOW part (but you still can
9329     * have many @c SWALLOW parts and one object on each of them). Use the @c
9330     * elm_layout_content_* set of functions to set, retrieve and unset objects
9331     * as content of the @c SWALLOW. After being set to this part, the object
9332     * size, position, visibility, clipping and other description properties
9333     * will be totally controled by the description of the given part (inside
9334     * the Edje theme file).
9335     *
9336     * One can use @c evas_object_size_hint_* functions on the child to have some
9337     * kind of control over its behavior, but the resulting behavior will still
9338     * depend heavily on the @c SWALLOW part description.
9339     *
9340     * The Edje theme also can change the part description, based on signals or
9341     * scripts running inside the theme. This change can also be animated. All of
9342     * this will affect the child object set as content accordingly. The object
9343     * size will be changed if the part size is changed, it will animate move if
9344     * the part is moving, and so on.
9345     *
9346     * The following picture demonstrates a Layout widget with a child object
9347     * added to its @c SWALLOW:
9348     *
9349     * @image html layout_swallow.png
9350     * @image latex layout_swallow.eps width=\textwidth
9351     *
9352     * @section secBox Box (BOX part)
9353     *
9354     * An Edje @c BOX part is very similar to the Elementary @ref Box widget. It
9355     * allows one to add objects to the box and have them distributed along its
9356     * area, accordingly to the specified @a layout property (now by @a layout we
9357     * mean the chosen layouting design of the Box, not the Layout widget
9358     * itself).
9359     *
9360     * A similar effect for having a box with its position, size and other things
9361     * controled by the Layout theme would be to create an Elementary @ref Box
9362     * widget and add it as a Content in the @c SWALLOW part.
9363     *
9364     * The main difference of using the Layout Box is that its behavior, the box
9365     * properties like layouting format, padding, align, etc. will be all
9366     * controled by the theme. This means, for example, that a signal could be
9367     * sent to the Layout theme (with elm_object_signal_emit()) and the theme
9368     * handled the signal by changing the box padding, or align, or both. Using
9369     * the Elementary @ref Box widget is not necessarily harder or easier, it
9370     * just depends on the circunstances and requirements.
9371     *
9372     * The Layout Box can be used through the @c elm_layout_box_* set of
9373     * functions.
9374     *
9375     * The following picture demonstrates a Layout widget with many child objects
9376     * added to its @c BOX part:
9377     *
9378     * @image html layout_box.png
9379     * @image latex layout_box.eps width=\textwidth
9380     *
9381     * @section secTable Table (TABLE part)
9382     *
9383     * Just like the @ref secBox, the Layout Table is very similar to the
9384     * Elementary @ref Table widget. It allows one to add objects to the Table
9385     * specifying the row and column where the object should be added, and any
9386     * column or row span if necessary.
9387     *
9388     * Again, we could have this design by adding a @ref Table widget to the @c
9389     * SWALLOW part using elm_layout_content_set(). The same difference happens
9390     * here when choosing to use the Layout Table (a @c TABLE part) instead of
9391     * the @ref Table plus @c SWALLOW part. It's just a matter of convenience.
9392     *
9393     * The Layout Table can be used through the @c elm_layout_table_* set of
9394     * functions.
9395     *
9396     * The following picture demonstrates a Layout widget with many child objects
9397     * added to its @c TABLE part:
9398     *
9399     * @image html layout_table.png
9400     * @image latex layout_table.eps width=\textwidth
9401     *
9402     * @section secPredef Predefined Layouts
9403     *
9404     * Another interesting thing about the Layout widget is that it offers some
9405     * predefined themes that come with the default Elementary theme. These
9406     * themes can be set by the call elm_layout_theme_set(), and provide some
9407     * basic functionality depending on the theme used.
9408     *
9409     * Most of them already send some signals, some already provide a toolbar or
9410     * back and next buttons.
9411     *
9412     * These are available predefined theme layouts. All of them have class = @c
9413     * layout, group = @c application, and style = one of the following options:
9414     *
9415     * @li @c toolbar-content - application with toolbar and main content area
9416     * @li @c toolbar-content-back - application with toolbar and main content
9417     * area with a back button and title area
9418     * @li @c toolbar-content-back-next - application with toolbar and main
9419     * content area with a back and next buttons and title area
9420     * @li @c content-back - application with a main content area with a back
9421     * button and title area
9422     * @li @c content-back-next - application with a main content area with a
9423     * back and next buttons and title area
9424     * @li @c toolbar-vbox - application with toolbar and main content area as a
9425     * vertical box
9426     * @li @c toolbar-table - application with toolbar and main content area as a
9427     * table
9428     *
9429     * @section secExamples Examples
9430     *
9431     * Some examples of the Layout widget can be found here:
9432     * @li @ref layout_example_01
9433     * @li @ref layout_example_02
9434     * @li @ref layout_example_03
9435     * @li @ref layout_example_edc
9436     *
9437     */
9438
9439    /**
9440     * Add a new layout to the parent
9441     *
9442     * @param parent The parent object
9443     * @return The new object or NULL if it cannot be created
9444     *
9445     * @see elm_layout_file_set()
9446     * @see elm_layout_theme_set()
9447     *
9448     * @ingroup Layout
9449     */
9450    EAPI Evas_Object       *elm_layout_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
9451    /**
9452     * Set the file that will be used as layout
9453     *
9454     * @param obj The layout object
9455     * @param file The path to file (edj) that will be used as layout
9456     * @param group The group that the layout belongs in edje file
9457     *
9458     * @return (1 = success, 0 = error)
9459     *
9460     * @ingroup Layout
9461     */
9462    EAPI Eina_Bool          elm_layout_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1);
9463    /**
9464     * Set the edje group from the elementary theme that will be used as layout
9465     *
9466     * @param obj The layout object
9467     * @param clas the clas of the group
9468     * @param group the group
9469     * @param style the style to used
9470     *
9471     * @return (1 = success, 0 = error)
9472     *
9473     * @ingroup Layout
9474     */
9475    EAPI Eina_Bool          elm_layout_theme_set(Evas_Object *obj, const char *clas, const char *group, const char *style) EINA_ARG_NONNULL(1);
9476    /**
9477     * Set the layout content.
9478     *
9479     * @param obj The layout object
9480     * @param swallow The swallow part name in the edje file
9481     * @param content The child that will be added in this layout object
9482     *
9483     * Once the content object is set, a previously set one will be deleted.
9484     * If you want to keep that old content object, use the
9485     * elm_layout_content_unset() function.
9486     *
9487     * @note In an Edje theme, the part used as a content container is called @c
9488     * SWALLOW. This is why the parameter name is called @p swallow, but it is
9489     * expected to be a part name just like the second parameter of
9490     * elm_layout_box_append().
9491     *
9492     * @see elm_layout_box_append()
9493     * @see elm_layout_content_get()
9494     * @see elm_layout_content_unset()
9495     * @see @ref secBox
9496     *
9497     * @ingroup Layout
9498     */
9499    EAPI void               elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
9500    /**
9501     * Get the child object in the given content part.
9502     *
9503     * @param obj The layout object
9504     * @param swallow The SWALLOW part to get its content
9505     *
9506     * @return The swallowed object or NULL if none or an error occurred
9507     *
9508     * @see elm_layout_content_set()
9509     *
9510     * @ingroup Layout
9511     */
9512    EAPI Evas_Object       *elm_layout_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
9513    /**
9514     * Unset the layout content.
9515     *
9516     * @param obj The layout object
9517     * @param swallow The swallow part name in the edje file
9518     * @return The content that was being used
9519     *
9520     * Unparent and return the content object which was set for this part.
9521     *
9522     * @see elm_layout_content_set()
9523     *
9524     * @ingroup Layout
9525     */
9526     EAPI Evas_Object       *elm_layout_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
9527    /**
9528     * Set the text of the given part
9529     *
9530     * @param obj The layout object
9531     * @param part The TEXT part where to set the text
9532     * @param text The text to set
9533     *
9534     * @ingroup Layout
9535     * @deprecated use elm_object_text_* instead.
9536     */
9537    EINA_DEPRECATED EAPI void               elm_layout_text_set(Evas_Object *obj, const char *part, const char *text) EINA_ARG_NONNULL(1);
9538    /**
9539     * Get the text set in the given part
9540     *
9541     * @param obj The layout object
9542     * @param part The TEXT part to retrieve the text off
9543     *
9544     * @return The text set in @p part
9545     *
9546     * @ingroup Layout
9547     * @deprecated use elm_object_text_* instead.
9548     */
9549    EINA_DEPRECATED EAPI const char        *elm_layout_text_get(const Evas_Object *obj, const char *part) EINA_ARG_NONNULL(1);
9550    /**
9551     * Append child to layout box part.
9552     *
9553     * @param obj the layout object
9554     * @param part the box part to which the object will be appended.
9555     * @param child the child object to append to box.
9556     *
9557     * Once the object is appended, it will become child of the layout. Its
9558     * lifetime will be bound to the layout, whenever the layout dies the child
9559     * will be deleted automatically. One should use elm_layout_box_remove() to
9560     * make this layout forget about the object.
9561     *
9562     * @see elm_layout_box_prepend()
9563     * @see elm_layout_box_insert_before()
9564     * @see elm_layout_box_insert_at()
9565     * @see elm_layout_box_remove()
9566     *
9567     * @ingroup Layout
9568     */
9569    EAPI void               elm_layout_box_append(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
9570    /**
9571     * Prepend child to layout box part.
9572     *
9573     * @param obj the layout object
9574     * @param part the box part to prepend.
9575     * @param child the child object to prepend to box.
9576     *
9577     * Once the object is prepended, it will become child of the layout. Its
9578     * lifetime will be bound to the layout, whenever the layout dies the child
9579     * will be deleted automatically. One should use elm_layout_box_remove() to
9580     * make this layout forget about the object.
9581     *
9582     * @see elm_layout_box_append()
9583     * @see elm_layout_box_insert_before()
9584     * @see elm_layout_box_insert_at()
9585     * @see elm_layout_box_remove()
9586     *
9587     * @ingroup Layout
9588     */
9589    EAPI void               elm_layout_box_prepend(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1);
9590    /**
9591     * Insert child to layout box part before a reference object.
9592     *
9593     * @param obj the layout object
9594     * @param part the box part to insert.
9595     * @param child the child object to insert into box.
9596     * @param reference another reference object to insert before in box.
9597     *
9598     * Once the object is inserted, it will become child of the layout. Its
9599     * lifetime will be bound to the layout, whenever the layout dies the child
9600     * will be deleted automatically. One should use elm_layout_box_remove() to
9601     * make this layout forget about the object.
9602     *
9603     * @see elm_layout_box_append()
9604     * @see elm_layout_box_prepend()
9605     * @see elm_layout_box_insert_before()
9606     * @see elm_layout_box_remove()
9607     *
9608     * @ingroup Layout
9609     */
9610    EAPI void               elm_layout_box_insert_before(Evas_Object *obj, const char *part, Evas_Object *child, const Evas_Object *reference) EINA_ARG_NONNULL(1);
9611    /**
9612     * Insert child to layout box part at a given position.
9613     *
9614     * @param obj the layout object
9615     * @param part the box part to insert.
9616     * @param child the child object to insert into box.
9617     * @param pos the numeric position >=0 to insert the child.
9618     *
9619     * Once the object is inserted, it will become child of the layout. Its
9620     * lifetime will be bound to the layout, whenever the layout dies the child
9621     * will be deleted automatically. One should use elm_layout_box_remove() to
9622     * make this layout forget about the object.
9623     *
9624     * @see elm_layout_box_append()
9625     * @see elm_layout_box_prepend()
9626     * @see elm_layout_box_insert_before()
9627     * @see elm_layout_box_remove()
9628     *
9629     * @ingroup Layout
9630     */
9631    EAPI void               elm_layout_box_insert_at(Evas_Object *obj, const char *part, Evas_Object *child, unsigned int pos) EINA_ARG_NONNULL(1);
9632    /**
9633     * Remove a child of the given part box.
9634     *
9635     * @param obj The layout object
9636     * @param part The box part name to remove child.
9637     * @param child The object to remove from box.
9638     * @return The object that was being used, or NULL if not found.
9639     *
9640     * The object will be removed from the box part and its lifetime will
9641     * not be handled by the layout anymore. This is equivalent to
9642     * elm_layout_content_unset() for box.
9643     *
9644     * @see elm_layout_box_append()
9645     * @see elm_layout_box_remove_all()
9646     *
9647     * @ingroup Layout
9648     */
9649    EAPI Evas_Object       *elm_layout_box_remove(Evas_Object *obj, const char *part, Evas_Object *child) EINA_ARG_NONNULL(1, 2, 3);
9650    /**
9651     * Remove all child of the given part box.
9652     *
9653     * @param obj The layout object
9654     * @param part The box part name to remove child.
9655     * @param clear If EINA_TRUE, then all objects will be deleted as
9656     *        well, otherwise they will just be removed and will be
9657     *        dangling on the canvas.
9658     *
9659     * The objects will be removed from the box part and their lifetime will
9660     * not be handled by the layout anymore. This is equivalent to
9661     * elm_layout_box_remove() for all box children.
9662     *
9663     * @see elm_layout_box_append()
9664     * @see elm_layout_box_remove()
9665     *
9666     * @ingroup Layout
9667     */
9668    EAPI void               elm_layout_box_remove_all(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
9669    /**
9670     * Insert child to layout table part.
9671     *
9672     * @param obj the layout object
9673     * @param part the box part to pack child.
9674     * @param child_obj the child object to pack into table.
9675     * @param col the column to which the child should be added. (>= 0)
9676     * @param row the row to which the child should be added. (>= 0)
9677     * @param colspan how many columns should be used to store this object. (>=
9678     *        1)
9679     * @param rowspan how many rows should be used to store this object. (>= 1)
9680     *
9681     * Once the object is inserted, it will become child of the table. Its
9682     * lifetime will be bound to the layout, and whenever the layout dies the
9683     * child will be deleted automatically. One should use
9684     * elm_layout_table_remove() to make this layout forget about the object.
9685     *
9686     * If @p colspan or @p rowspan are bigger than 1, that object will occupy
9687     * more space than a single cell. For instance, the following code:
9688     * @code
9689     * elm_layout_table_pack(layout, "table_part", child, 0, 1, 3, 1);
9690     * @endcode
9691     *
9692     * Would result in an object being added like the following picture:
9693     *
9694     * @image html layout_colspan.png
9695     * @image latex layout_colspan.eps width=\textwidth
9696     *
9697     * @see elm_layout_table_unpack()
9698     * @see elm_layout_table_clear()
9699     *
9700     * @ingroup Layout
9701     */
9702    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);
9703    /**
9704     * Unpack (remove) a child of the given part table.
9705     *
9706     * @param obj The layout object
9707     * @param part The table part name to remove child.
9708     * @param child_obj The object to remove from table.
9709     * @return The object that was being used, or NULL if not found.
9710     *
9711     * The object will be unpacked from the table part and its lifetime
9712     * will not be handled by the layout anymore. This is equivalent to
9713     * elm_layout_content_unset() for table.
9714     *
9715     * @see elm_layout_table_pack()
9716     * @see elm_layout_table_clear()
9717     *
9718     * @ingroup Layout
9719     */
9720    EAPI Evas_Object       *elm_layout_table_unpack(Evas_Object *obj, const char *part, Evas_Object *child_obj) EINA_ARG_NONNULL(1, 2, 3);
9721    /**
9722     * Remove all child of the given part table.
9723     *
9724     * @param obj The layout object
9725     * @param part The table part name to remove child.
9726     * @param clear If EINA_TRUE, then all objects will be deleted as
9727     *        well, otherwise they will just be removed and will be
9728     *        dangling on the canvas.
9729     *
9730     * The objects will be removed from the table part and their lifetime will
9731     * not be handled by the layout anymore. This is equivalent to
9732     * elm_layout_table_unpack() for all table children.
9733     *
9734     * @see elm_layout_table_pack()
9735     * @see elm_layout_table_unpack()
9736     *
9737     * @ingroup Layout
9738     */
9739    EAPI void               elm_layout_table_clear(Evas_Object *obj, const char *part, Eina_Bool clear) EINA_ARG_NONNULL(1, 2);
9740    /**
9741     * Get the edje layout
9742     *
9743     * @param obj The layout object
9744     *
9745     * @return A Evas_Object with the edje layout settings loaded
9746     * with function elm_layout_file_set
9747     *
9748     * This returns the edje object. It is not expected to be used to then
9749     * swallow objects via edje_object_part_swallow() for example. Use
9750     * elm_layout_content_set() instead so child object handling and sizing is
9751     * done properly.
9752     *
9753     * @note This function should only be used if you really need to call some
9754     * low level Edje function on this edje object. All the common stuff (setting
9755     * text, emitting signals, hooking callbacks to signals, etc.) can be done
9756     * with proper elementary functions.
9757     *
9758     * @see elm_object_signal_callback_add()
9759     * @see elm_object_signal_emit()
9760     * @see elm_object_text_part_set()
9761     * @see elm_layout_content_set()
9762     * @see elm_layout_box_append()
9763     * @see elm_layout_table_pack()
9764     * @see elm_layout_data_get()
9765     *
9766     * @ingroup Layout
9767     */
9768    EAPI Evas_Object       *elm_layout_edje_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
9769    /**
9770     * Get the edje data from the given layout
9771     *
9772     * @param obj The layout object
9773     * @param key The data key
9774     *
9775     * @return The edje data string
9776     *
9777     * This function fetches data specified inside the edje theme of this layout.
9778     * This function return NULL if data is not found.
9779     *
9780     * In EDC this comes from a data block within the group block that @p
9781     * obj was loaded from. E.g.
9782     *
9783     * @code
9784     * collections {
9785     *   group {
9786     *     name: "a_group";
9787     *     data {
9788     *       item: "key1" "value1";
9789     *       item: "key2" "value2";
9790     *     }
9791     *   }
9792     * }
9793     * @endcode
9794     *
9795     * @ingroup Layout
9796     */
9797    EAPI const char        *elm_layout_data_get(const Evas_Object *obj, const char *key) EINA_ARG_NONNULL(1, 2);
9798    /**
9799     * Eval sizing
9800     *
9801     * @param obj The layout object
9802     *
9803     * Manually forces a sizing re-evaluation. This is useful when the minimum
9804     * size required by the edje theme of this layout has changed. The change on
9805     * the minimum size required by the edje theme is not immediately reported to
9806     * the elementary layout, so one needs to call this function in order to tell
9807     * the widget (layout) that it needs to reevaluate its own size.
9808     *
9809     * The minimum size of the theme is calculated based on minimum size of
9810     * parts, the size of elements inside containers like box and table, etc. All
9811     * of this can change due to state changes, and that's when this function
9812     * should be called.
9813     *
9814     * Also note that a standard signal of "size,eval" "elm" emitted from the
9815     * edje object will cause this to happen too.
9816     *
9817     * @ingroup Layout
9818     */
9819    EAPI void               elm_layout_sizing_eval(Evas_Object *obj) EINA_ARG_NONNULL(1);
9820
9821    /**
9822     * Sets a specific cursor for an edje part.
9823     *
9824     * @param obj The layout object.
9825     * @param part_name a part from loaded edje group.
9826     * @param cursor cursor name to use, see Elementary_Cursor.h
9827     *
9828     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
9829     *         part not exists or it has "mouse_events: 0".
9830     *
9831     * @ingroup Layout
9832     */
9833    EAPI Eina_Bool          elm_layout_part_cursor_set(Evas_Object *obj, const char *part_name, const char *cursor) EINA_ARG_NONNULL(1, 2);
9834
9835    /**
9836     * Get the cursor to be shown when mouse is over an edje part
9837     *
9838     * @param obj The layout object.
9839     * @param part_name a part from loaded edje group.
9840     * @return the cursor name.
9841     *
9842     * @ingroup Layout
9843     */
9844    EAPI const char        *elm_layout_part_cursor_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
9845
9846    /**
9847     * Unsets a cursor previously set with elm_layout_part_cursor_set().
9848     *
9849     * @param obj The layout object.
9850     * @param part_name a part from loaded edje group, that had a cursor set
9851     *        with elm_layout_part_cursor_set().
9852     *
9853     * @ingroup Layout
9854     */
9855    EAPI void               elm_layout_part_cursor_unset(Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
9856
9857    /**
9858     * Sets a specific cursor style for an edje part.
9859     *
9860     * @param obj The layout object.
9861     * @param part_name a part from loaded edje group.
9862     * @param style the theme style to use (default, transparent, ...)
9863     *
9864     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
9865     *         part not exists or it did not had a cursor set.
9866     *
9867     * @ingroup Layout
9868     */
9869    EAPI Eina_Bool          elm_layout_part_cursor_style_set(Evas_Object *obj, const char *part_name, const char *style) EINA_ARG_NONNULL(1, 2);
9870
9871    /**
9872     * Gets a specific cursor style for an edje part.
9873     *
9874     * @param obj The layout object.
9875     * @param part_name a part from loaded edje group.
9876     *
9877     * @return the theme style in use, defaults to "default". If the
9878     *         object does not have a cursor set, then NULL is returned.
9879     *
9880     * @ingroup Layout
9881     */
9882    EAPI const char        *elm_layout_part_cursor_style_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
9883
9884    /**
9885     * Sets if the cursor set should be searched on the theme or should use
9886     * the provided by the engine, only.
9887     *
9888     * @note before you set if should look on theme you should define a
9889     * cursor with elm_layout_part_cursor_set(). By default it will only
9890     * look for cursors provided by the engine.
9891     *
9892     * @param obj The layout object.
9893     * @param part_name a part from loaded edje group.
9894     * @param engine_only if cursors should be just provided by the engine
9895     *        or should also search on widget's theme as well
9896     *
9897     * @return EINA_TRUE on success or EINA_FALSE on failure, that may be
9898     *         part not exists or it did not had a cursor set.
9899     *
9900     * @ingroup Layout
9901     */
9902    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);
9903
9904    /**
9905     * Gets a specific cursor engine_only for an edje part.
9906     *
9907     * @param obj The layout object.
9908     * @param part_name a part from loaded edje group.
9909     *
9910     * @return whenever the cursor is just provided by engine or also from theme.
9911     *
9912     * @ingroup Layout
9913     */
9914    EAPI Eina_Bool          elm_layout_part_cursor_engine_only_get(const Evas_Object *obj, const char *part_name) EINA_ARG_NONNULL(1, 2);
9915
9916 /**
9917  * @def elm_layout_icon_set
9918  * Convienience macro to set the icon object in a layout that follows the
9919  * Elementary naming convention for its parts.
9920  *
9921  * @ingroup Layout
9922  */
9923 #define elm_layout_icon_set(_ly, _obj) \
9924   do { \
9925     const char *sig; \
9926     elm_layout_content_set((_ly), "elm.swallow.icon", (_obj)); \
9927     if ((_obj)) sig = "elm,state,icon,visible"; \
9928     else sig = "elm,state,icon,hidden"; \
9929     elm_object_signal_emit((_ly), sig, "elm"); \
9930   } while (0)
9931
9932 /**
9933  * @def elm_layout_icon_get
9934  * Convienience macro to get the icon object from a layout that follows the
9935  * Elementary naming convention for its parts.
9936  *
9937  * @ingroup Layout
9938  */
9939 #define elm_layout_icon_get(_ly) \
9940   elm_layout_content_get((_ly), "elm.swallow.icon")
9941
9942 /**
9943  * @def elm_layout_end_set
9944  * Convienience macro to set the end object in a layout that follows the
9945  * Elementary naming convention for its parts.
9946  *
9947  * @ingroup Layout
9948  */
9949 #define elm_layout_end_set(_ly, _obj) \
9950   do { \
9951     const char *sig; \
9952     elm_layout_content_set((_ly), "elm.swallow.end", (_obj)); \
9953     if ((_obj)) sig = "elm,state,end,visible"; \
9954     else sig = "elm,state,end,hidden"; \
9955     elm_object_signal_emit((_ly), sig, "elm"); \
9956   } while (0)
9957
9958 /**
9959  * @def elm_layout_end_get
9960  * Convienience macro to get the end object in a layout that follows the
9961  * Elementary naming convention for its parts.
9962  *
9963  * @ingroup Layout
9964  */
9965 #define elm_layout_end_get(_ly) \
9966   elm_layout_content_get((_ly), "elm.swallow.end")
9967
9968 /**
9969  * @def elm_layout_label_set
9970  * Convienience macro to set the label in a layout that follows the
9971  * Elementary naming convention for its parts.
9972  *
9973  * @ingroup Layout
9974  * @deprecated use elm_object_text_* instead.
9975  */
9976 #define elm_layout_label_set(_ly, _txt) \
9977   elm_layout_text_set((_ly), "elm.text", (_txt))
9978
9979 /**
9980  * @def elm_layout_label_get
9981  * Convienience macro to get the label in a layout that follows the
9982  * Elementary naming convention for its parts.
9983  *
9984  * @ingroup Layout
9985  * @deprecated use elm_object_text_* instead.
9986  */
9987 #define elm_layout_label_get(_ly) \
9988   elm_layout_text_get((_ly), "elm.text")
9989
9990    /* smart callbacks called:
9991     * "theme,changed" - when elm theme is changed.
9992     */
9993
9994    /**
9995     * @defgroup Notify Notify
9996     *
9997     * @image html img/widget/notify/preview-00.png
9998     * @image latex img/widget/notify/preview-00.eps
9999     *
10000     * Display a container in a particular region of the parent(top, bottom,
10001     * etc.  A timeout can be set to automatically hide the notify. This is so
10002     * that, after an evas_object_show() on a notify object, if a timeout was set
10003     * on it, it will @b automatically get hidden after that time.
10004     *
10005     * Signals that you can add callbacks for are:
10006     * @li "timeout" - when timeout happens on notify and it's hidden
10007     * @li "block,clicked" - when a click outside of the notify happens
10008     *
10009     * @ref tutorial_notify show usage of the API.
10010     *
10011     * @{
10012     */
10013    /**
10014     * @brief Possible orient values for notify.
10015     *
10016     * This values should be used in conjunction to elm_notify_orient_set() to
10017     * set the position in which the notify should appear(relative to its parent)
10018     * and in conjunction with elm_notify_orient_get() to know where the notify
10019     * is appearing.
10020     */
10021    typedef enum _Elm_Notify_Orient
10022      {
10023         ELM_NOTIFY_ORIENT_TOP, /**< Notify should appear in the top of parent, default */
10024         ELM_NOTIFY_ORIENT_CENTER, /**< Notify should appear in the center of parent */
10025         ELM_NOTIFY_ORIENT_BOTTOM, /**< Notify should appear in the bottom of parent */
10026         ELM_NOTIFY_ORIENT_LEFT, /**< Notify should appear in the left of parent */
10027         ELM_NOTIFY_ORIENT_RIGHT, /**< Notify should appear in the right of parent */
10028         ELM_NOTIFY_ORIENT_TOP_LEFT, /**< Notify should appear in the top left of parent */
10029         ELM_NOTIFY_ORIENT_TOP_RIGHT, /**< Notify should appear in the top right of parent */
10030         ELM_NOTIFY_ORIENT_BOTTOM_LEFT, /**< Notify should appear in the bottom left of parent */
10031         ELM_NOTIFY_ORIENT_BOTTOM_RIGHT, /**< Notify should appear in the bottom right of parent */
10032         ELM_NOTIFY_ORIENT_LAST /**< Sentinel value, @b don't use */
10033      } Elm_Notify_Orient;
10034    /**
10035     * @brief Add a new notify to the parent
10036     *
10037     * @param parent The parent object
10038     * @return The new object or NULL if it cannot be created
10039     */
10040    EAPI Evas_Object      *elm_notify_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10041    /**
10042     * @brief Set the content of the notify widget
10043     *
10044     * @param obj The notify object
10045     * @param content The content will be filled in this notify object
10046     *
10047     * Once the content object is set, a previously set one will be deleted. If
10048     * you want to keep that old content object, use the
10049     * elm_notify_content_unset() function.
10050     */
10051    EAPI void              elm_notify_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
10052    /**
10053     * @brief Unset the content of the notify widget
10054     *
10055     * @param obj The notify object
10056     * @return The content that was being used
10057     *
10058     * Unparent and return the content object which was set for this widget
10059     *
10060     * @see elm_notify_content_set()
10061     */
10062    EAPI Evas_Object      *elm_notify_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
10063    /**
10064     * @brief Return the content of the notify widget
10065     *
10066     * @param obj The notify object
10067     * @return The content that is being used
10068     *
10069     * @see elm_notify_content_set()
10070     */
10071    EAPI Evas_Object      *elm_notify_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10072    /**
10073     * @brief Set the notify parent
10074     *
10075     * @param obj The notify object
10076     * @param content The new parent
10077     *
10078     * Once the parent object is set, a previously set one will be disconnected
10079     * and replaced.
10080     */
10081    EAPI void              elm_notify_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
10082    /**
10083     * @brief Get the notify parent
10084     *
10085     * @param obj The notify object
10086     * @return The parent
10087     *
10088     * @see elm_notify_parent_set()
10089     */
10090    EAPI Evas_Object      *elm_notify_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10091    /**
10092     * @brief Set the orientation
10093     *
10094     * @param obj The notify object
10095     * @param orient The new orientation
10096     *
10097     * Sets the position in which the notify will appear in its parent.
10098     *
10099     * @see @ref Elm_Notify_Orient for possible values.
10100     */
10101    EAPI void              elm_notify_orient_set(Evas_Object *obj, Elm_Notify_Orient orient) EINA_ARG_NONNULL(1);
10102    /**
10103     * @brief Return the orientation
10104     * @param obj The notify object
10105     * @return The orientation of the notification
10106     *
10107     * @see elm_notify_orient_set()
10108     * @see Elm_Notify_Orient
10109     */
10110    EAPI Elm_Notify_Orient elm_notify_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10111    /**
10112     * @brief Set the time interval after which the notify window is going to be
10113     * hidden.
10114     *
10115     * @param obj The notify object
10116     * @param time The timeout in seconds
10117     *
10118     * This function sets a timeout and starts the timer controlling when the
10119     * notify is hidden. Since calling evas_object_show() on a notify restarts
10120     * the timer controlling when the notify is hidden, setting this before the
10121     * notify is shown will in effect mean starting the timer when the notify is
10122     * shown.
10123     *
10124     * @note Set a value <= 0.0 to disable a running timer.
10125     *
10126     * @note If the value > 0.0 and the notify is previously visible, the
10127     * timer will be started with this value, canceling any running timer.
10128     */
10129    EAPI void              elm_notify_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
10130    /**
10131     * @brief Return the timeout value (in seconds)
10132     * @param obj the notify object
10133     *
10134     * @see elm_notify_timeout_set()
10135     */
10136    EAPI double            elm_notify_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10137    /**
10138     * @brief Sets whether events should be passed to by a click outside
10139     * its area.
10140     *
10141     * @param obj The notify object
10142     * @param repeats EINA_TRUE Events are repeats, else no
10143     *
10144     * When true if the user clicks outside the window the events will be caught
10145     * by the others widgets, else the events are blocked.
10146     *
10147     * @note The default value is EINA_TRUE.
10148     */
10149    EAPI void              elm_notify_repeat_events_set(Evas_Object *obj, Eina_Bool repeat) EINA_ARG_NONNULL(1);
10150    /**
10151     * @brief Return true if events are repeat below the notify object
10152     * @param obj the notify object
10153     *
10154     * @see elm_notify_repeat_events_set()
10155     */
10156    EAPI Eina_Bool         elm_notify_repeat_events_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10157    /**
10158     * @}
10159     */
10160
10161    /**
10162     * @defgroup Hover Hover
10163     *
10164     * @image html img/widget/hover/preview-00.png
10165     * @image latex img/widget/hover/preview-00.eps
10166     *
10167     * A Hover object will hover over its @p parent object at the @p target
10168     * location. Anything in the background will be given a darker coloring to
10169     * indicate that the hover object is on top (at the default theme). When the
10170     * hover is clicked it is dismissed(hidden), if the contents of the hover are
10171     * clicked that @b doesn't cause the hover to be dismissed.
10172     *
10173     * @note The hover object will take up the entire space of @p target
10174     * object.
10175     *
10176     * Elementary has the following styles for the hover widget:
10177     * @li default
10178     * @li popout
10179     * @li menu
10180     * @li hoversel_vertical
10181     *
10182     * The following are the available position for content:
10183     * @li left
10184     * @li top-left
10185     * @li top
10186     * @li top-right
10187     * @li right
10188     * @li bottom-right
10189     * @li bottom
10190     * @li bottom-left
10191     * @li middle
10192     * @li smart
10193     *
10194     * Signals that you can add callbacks for are:
10195     * @li "clicked" - the user clicked the empty space in the hover to dismiss
10196     * @li "smart,changed" - a content object placed under the "smart"
10197     *                   policy was replaced to a new slot direction.
10198     *
10199     * See @ref tutorial_hover for more information.
10200     *
10201     * @{
10202     */
10203    typedef enum _Elm_Hover_Axis
10204      {
10205         ELM_HOVER_AXIS_NONE, /**< ELM_HOVER_AXIS_NONE -- no prefered orientation */
10206         ELM_HOVER_AXIS_HORIZONTAL, /**< ELM_HOVER_AXIS_HORIZONTAL -- horizontal */
10207         ELM_HOVER_AXIS_VERTICAL, /**< ELM_HOVER_AXIS_VERTICAL -- vertical */
10208         ELM_HOVER_AXIS_BOTH /**< ELM_HOVER_AXIS_BOTH -- both */
10209      } Elm_Hover_Axis;
10210    /**
10211     * @brief Adds a hover object to @p parent
10212     *
10213     * @param parent The parent object
10214     * @return The hover object or NULL if one could not be created
10215     */
10216    EAPI Evas_Object *elm_hover_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10217    /**
10218     * @brief Sets the target object for the hover.
10219     *
10220     * @param obj The hover object
10221     * @param target The object to center the hover onto. The hover
10222     *
10223     * This function will cause the hover to be centered on the target object.
10224     */
10225    EAPI void         elm_hover_target_set(Evas_Object *obj, Evas_Object *target) EINA_ARG_NONNULL(1);
10226    /**
10227     * @brief Gets the target object for the hover.
10228     *
10229     * @param obj The hover object
10230     * @param parent The object to locate the hover over.
10231     *
10232     * @see elm_hover_target_set()
10233     */
10234    EAPI Evas_Object *elm_hover_target_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10235    /**
10236     * @brief Sets the parent object for the hover.
10237     *
10238     * @param obj The hover object
10239     * @param parent The object to locate the hover over.
10240     *
10241     * This function will cause the hover to take up the entire space that the
10242     * parent object fills.
10243     */
10244    EAPI void         elm_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
10245    /**
10246     * @brief Gets the parent object for the hover.
10247     *
10248     * @param obj The hover object
10249     * @return The parent object to locate the hover over.
10250     *
10251     * @see elm_hover_parent_set()
10252     */
10253    EAPI Evas_Object *elm_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10254    /**
10255     * @brief Sets the content of the hover object and the direction in which it
10256     * will pop out.
10257     *
10258     * @param obj The hover object
10259     * @param swallow The direction that the object will be displayed
10260     * at. Accepted values are "left", "top-left", "top", "top-right",
10261     * "right", "bottom-right", "bottom", "bottom-left", "middle" and
10262     * "smart".
10263     * @param content The content to place at @p swallow
10264     *
10265     * Once the content object is set for a given direction, a previously
10266     * set one (on the same direction) will be deleted. If you want to
10267     * keep that old content object, use the elm_hover_content_unset()
10268     * function.
10269     *
10270     * All directions may have contents at the same time, except for
10271     * "smart". This is a special placement hint and its use case
10272     * independs of the calculations coming from
10273     * elm_hover_best_content_location_get(). Its use is for cases when
10274     * one desires only one hover content, but with a dinamic special
10275     * placement within the hover area. The content's geometry, whenever
10276     * it changes, will be used to decide on a best location not
10277     * extrapolating the hover's parent object view to show it in (still
10278     * being the hover's target determinant of its medium part -- move and
10279     * resize it to simulate finger sizes, for example). If one of the
10280     * directions other than "smart" are used, a previously content set
10281     * using it will be deleted, and vice-versa.
10282     */
10283    EAPI void         elm_hover_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1);
10284    /**
10285     * @brief Get the content of the hover object, in a given direction.
10286     *
10287     * Return the content object which was set for this widget in the
10288     * @p swallow direction.
10289     *
10290     * @param obj The hover object
10291     * @param swallow The direction that the object was display at.
10292     * @return The content that was being used
10293     *
10294     * @see elm_hover_content_set()
10295     */
10296    EAPI Evas_Object *elm_hover_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10297    /**
10298     * @brief Unset the content of the hover object, in a given direction.
10299     *
10300     * Unparent and return the content object set at @p swallow direction.
10301     *
10302     * @param obj The hover object
10303     * @param swallow The direction that the object was display at.
10304     * @return The content that was being used.
10305     *
10306     * @see elm_hover_content_set()
10307     */
10308    EAPI Evas_Object *elm_hover_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1);
10309    /**
10310     * @brief Returns the best swallow location for content in the hover.
10311     *
10312     * @param obj The hover object
10313     * @param pref_axis The preferred orientation axis for the hover object to use
10314     * @return The edje location to place content into the hover or @c
10315     *         NULL, on errors.
10316     *
10317     * Best is defined here as the location at which there is the most available
10318     * space.
10319     *
10320     * @p pref_axis may be one of
10321     * - @c ELM_HOVER_AXIS_NONE -- no prefered orientation
10322     * - @c ELM_HOVER_AXIS_HORIZONTAL -- horizontal
10323     * - @c ELM_HOVER_AXIS_VERTICAL -- vertical
10324     * - @c ELM_HOVER_AXIS_BOTH -- both
10325     *
10326     * If ELM_HOVER_AXIS_HORIZONTAL is choosen the returned position will
10327     * nescessarily be along the horizontal axis("left" or "right"). If
10328     * ELM_HOVER_AXIS_VERTICAL is choosen the returned position will nescessarily
10329     * be along the vertical axis("top" or "bottom"). Chossing
10330     * ELM_HOVER_AXIS_BOTH or ELM_HOVER_AXIS_NONE has the same effect and the
10331     * returned position may be in either axis.
10332     *
10333     * @see elm_hover_content_set()
10334     */
10335    EAPI const char  *elm_hover_best_content_location_get(const Evas_Object *obj, Elm_Hover_Axis pref_axis) EINA_ARG_NONNULL(1);
10336    /**
10337     * @}
10338     */
10339
10340    /* entry */
10341    /**
10342     * @defgroup Entry Entry
10343     *
10344     * @image html img/widget/entry/preview-00.png
10345     * @image latex img/widget/entry/preview-00.eps width=\textwidth
10346     * @image html img/widget/entry/preview-01.png
10347     * @image latex img/widget/entry/preview-01.eps width=\textwidth
10348     * @image html img/widget/entry/preview-02.png
10349     * @image latex img/widget/entry/preview-02.eps width=\textwidth
10350     * @image html img/widget/entry/preview-03.png
10351     * @image latex img/widget/entry/preview-03.eps width=\textwidth
10352     *
10353     * An entry is a convenience widget which shows a box that the user can
10354     * enter text into. Entries by default don't scroll, so they grow to
10355     * accomodate the entire text, resizing the parent window as needed. This
10356     * can be changed with the elm_entry_scrollable_set() function.
10357     *
10358     * They can also be single line or multi line (the default) and when set
10359     * to multi line mode they support text wrapping in any of the modes
10360     * indicated by #Elm_Wrap_Type.
10361     *
10362     * Other features include password mode, filtering of inserted text with
10363     * elm_entry_text_filter_append() and related functions, inline "items" and
10364     * formatted markup text.
10365     *
10366     * @section entry-markup Formatted text
10367     *
10368     * The markup tags supported by the Entry are defined by the theme, but
10369     * even when writing new themes or extensions it's a good idea to stick to
10370     * a sane default, to maintain coherency and avoid application breakages.
10371     * Currently defined by the default theme are the following tags:
10372     * @li \<br\>: Inserts a line break.
10373     * @li \<ps\>: Inserts a paragraph separator. This is preferred over line
10374     * breaks.
10375     * @li \<tab\>: Inserts a tab.
10376     * @li \<em\>...\</em\>: Emphasis. Sets the @em oblique style for the
10377     * enclosed text.
10378     * @li \<b\>...\</b\>: Sets the @b bold style for the enclosed text.
10379     * @li \<link\>...\</link\>: Underlines the enclosed text.
10380     * @li \<hilight\>...\</hilight\>: Hilights the enclosed text.
10381     *
10382     * @section entry-special Special markups
10383     *
10384     * Besides those used to format text, entries support two special markup
10385     * tags used to insert clickable portions of text or items inlined within
10386     * the text.
10387     *
10388     * @subsection entry-anchors Anchors
10389     *
10390     * Anchors are similar to HTML anchors. Text can be surrounded by \<a\> and
10391     * \</a\> tags and an event will be generated when this text is clicked,
10392     * like this:
10393     *
10394     * @code
10395     * This text is outside <a href=anc-01>but this one is an anchor</a>
10396     * @endcode
10397     *
10398     * The @c href attribute in the opening tag gives the name that will be
10399     * used to identify the anchor and it can be any valid utf8 string.
10400     *
10401     * When an anchor is clicked, an @c "anchor,clicked" signal is emitted with
10402     * an #Elm_Entry_Anchor_Info in the @c event_info parameter for the
10403     * callback function. The same applies for "anchor,in" (mouse in), "anchor,out"
10404     * (mouse out), "anchor,down" (mouse down), and "anchor,up" (mouse up) events on
10405     * an anchor.
10406     *
10407     * @subsection entry-items Items
10408     *
10409     * Inlined in the text, any other @c Evas_Object can be inserted by using
10410     * \<item\> tags this way:
10411     *
10412     * @code
10413     * <item size=16x16 vsize=full href=emoticon/haha></item>
10414     * @endcode
10415     *
10416     * Just like with anchors, the @c href identifies each item, but these need,
10417     * in addition, to indicate their size, which is done using any one of
10418     * @c size, @c absize or @c relsize attributes. These attributes take their
10419     * value in the WxH format, where W is the width and H the height of the
10420     * item.
10421     *
10422     * @li absize: Absolute pixel size for the item. Whatever value is set will
10423     * be the item's size regardless of any scale value the object may have
10424     * been set to. The final line height will be adjusted to fit larger items.
10425     * @li size: Similar to @c absize, but it's adjusted to the scale value set
10426     * for the object.
10427     * @li relsize: Size is adjusted for the item to fit within the current
10428     * line height.
10429     *
10430     * Besides their size, items are specificed a @c vsize value that affects
10431     * how their final size and position are calculated. The possible values
10432     * are:
10433     * @li ascent: Item will be placed within the line's baseline and its
10434     * ascent. That is, the height between the line where all characters are
10435     * positioned and the highest point in the line. For @c size and @c absize
10436     * items, the descent value will be added to the total line height to make
10437     * them fit. @c relsize items will be adjusted to fit within this space.
10438     * @li full: Items will be placed between the descent and ascent, or the
10439     * lowest point in the line and its highest.
10440     *
10441     * The next image shows different configurations of items and how they
10442     * are the previously mentioned options affect their sizes. In all cases,
10443     * the green line indicates the ascent, blue for the baseline and red for
10444     * the descent.
10445     *
10446     * @image html entry_item.png
10447     * @image latex entry_item.eps width=\textwidth
10448     *
10449     * And another one to show how size differs from absize. In the first one,
10450     * the scale value is set to 1.0, while the second one is using one of 2.0.
10451     *
10452     * @image html entry_item_scale.png
10453     * @image latex entry_item_scale.eps width=\textwidth
10454     *
10455     * After the size for an item is calculated, the entry will request an
10456     * object to place in its space. For this, the functions set with
10457     * elm_entry_item_provider_append() and related functions will be called
10458     * in order until one of them returns a @c non-NULL value. If no providers
10459     * are available, or all of them return @c NULL, then the entry falls back
10460     * to one of the internal defaults, provided the name matches with one of
10461     * them.
10462     *
10463     * All of the following are currently supported:
10464     *
10465     * - emoticon/angry
10466     * - emoticon/angry-shout
10467     * - emoticon/crazy-laugh
10468     * - emoticon/evil-laugh
10469     * - emoticon/evil
10470     * - emoticon/goggle-smile
10471     * - emoticon/grumpy
10472     * - emoticon/grumpy-smile
10473     * - emoticon/guilty
10474     * - emoticon/guilty-smile
10475     * - emoticon/haha
10476     * - emoticon/half-smile
10477     * - emoticon/happy-panting
10478     * - emoticon/happy
10479     * - emoticon/indifferent
10480     * - emoticon/kiss
10481     * - emoticon/knowing-grin
10482     * - emoticon/laugh
10483     * - emoticon/little-bit-sorry
10484     * - emoticon/love-lots
10485     * - emoticon/love
10486     * - emoticon/minimal-smile
10487     * - emoticon/not-happy
10488     * - emoticon/not-impressed
10489     * - emoticon/omg
10490     * - emoticon/opensmile
10491     * - emoticon/smile
10492     * - emoticon/sorry
10493     * - emoticon/squint-laugh
10494     * - emoticon/surprised
10495     * - emoticon/suspicious
10496     * - emoticon/tongue-dangling
10497     * - emoticon/tongue-poke
10498     * - emoticon/uh
10499     * - emoticon/unhappy
10500     * - emoticon/very-sorry
10501     * - emoticon/what
10502     * - emoticon/wink
10503     * - emoticon/worried
10504     * - emoticon/wtf
10505     *
10506     * Alternatively, an item may reference an image by its path, using
10507     * the URI form @c file:///path/to/an/image.png and the entry will then
10508     * use that image for the item.
10509     *
10510     * @section entry-files Loading and saving files
10511     *
10512     * Entries have convinience functions to load text from a file and save
10513     * changes back to it after a short delay. The automatic saving is enabled
10514     * by default, but can be disabled with elm_entry_autosave_set() and files
10515     * can be loaded directly as plain text or have any markup in them
10516     * recognized. See elm_entry_file_set() for more details.
10517     *
10518     * @section entry-signals Emitted signals
10519     *
10520     * This widget emits the following signals:
10521     *
10522     * @li "changed": The text within the entry was changed.
10523     * @li "changed,user": The text within the entry was changed because of user interaction.
10524     * @li "activated": The enter key was pressed on a single line entry.
10525     * @li "press": A mouse button has been pressed on the entry.
10526     * @li "longpressed": A mouse button has been pressed and held for a couple
10527     * seconds.
10528     * @li "clicked": The entry has been clicked (mouse press and release).
10529     * @li "clicked,double": The entry has been double clicked.
10530     * @li "clicked,triple": The entry has been triple clicked.
10531     * @li "focused": The entry has received focus.
10532     * @li "unfocused": The entry has lost focus.
10533     * @li "selection,paste": A paste of the clipboard contents was requested.
10534     * @li "selection,copy": A copy of the selected text into the clipboard was
10535     * requested.
10536     * @li "selection,cut": A cut of the selected text into the clipboard was
10537     * requested.
10538     * @li "selection,start": A selection has begun and no previous selection
10539     * existed.
10540     * @li "selection,changed": The current selection has changed.
10541     * @li "selection,cleared": The current selection has been cleared.
10542     * @li "cursor,changed": The cursor has changed position.
10543     * @li "anchor,clicked": An anchor has been clicked. The event_info
10544     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10545     * @li "anchor,in": Mouse cursor has moved into an anchor. The event_info
10546     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10547     * @li "anchor,out": Mouse cursor has moved out of an anchor. The event_info
10548     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10549     * @li "anchor,up": Mouse button has been unpressed on an anchor. The event_info
10550     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10551     * @li "anchor,down": Mouse button has been pressed on an anchor. The event_info
10552     * parameter for the callback will be an #Elm_Entry_Anchor_Info.
10553     * @li "preedit,changed": The preedit string has changed.
10554     *
10555     * @section entry-examples
10556     *
10557     * An overview of the Entry API can be seen in @ref entry_example_01
10558     *
10559     * @{
10560     */
10561    /**
10562     * @typedef Elm_Entry_Anchor_Info
10563     *
10564     * The info sent in the callback for the "anchor,clicked" signals emitted
10565     * by entries.
10566     */
10567    typedef struct _Elm_Entry_Anchor_Info Elm_Entry_Anchor_Info;
10568    /**
10569     * @struct _Elm_Entry_Anchor_Info
10570     *
10571     * The info sent in the callback for the "anchor,clicked" signals emitted
10572     * by entries.
10573     */
10574    struct _Elm_Entry_Anchor_Info
10575      {
10576         const char *name; /**< The name of the anchor, as stated in its href */
10577         int         button; /**< The mouse button used to click on it */
10578         Evas_Coord  x, /**< Anchor geometry, relative to canvas */
10579                     y, /**< Anchor geometry, relative to canvas */
10580                     w, /**< Anchor geometry, relative to canvas */
10581                     h; /**< Anchor geometry, relative to canvas */
10582      };
10583    /**
10584     * @typedef Elm_Entry_Filter_Cb
10585     * This callback type is used by entry filters to modify text.
10586     * @param data The data specified as the last param when adding the filter
10587     * @param entry The entry object
10588     * @param text A pointer to the location of the text being filtered. This data can be modified,
10589     * but any additional allocations must be managed by the user.
10590     * @see elm_entry_text_filter_append
10591     * @see elm_entry_text_filter_prepend
10592     */
10593    typedef void (*Elm_Entry_Filter_Cb)(void *data, Evas_Object *entry, char **text);
10594
10595    /**
10596     * This adds an entry to @p parent object.
10597     *
10598     * By default, entries are:
10599     * @li not scrolled
10600     * @li multi-line
10601     * @li word wrapped
10602     * @li autosave is enabled
10603     *
10604     * @param parent The parent object
10605     * @return The new object or NULL if it cannot be created
10606     */
10607    EAPI Evas_Object *elm_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
10608    /**
10609     * Sets the entry to single line mode.
10610     *
10611     * In single line mode, entries don't ever wrap when the text reaches the
10612     * edge, and instead they keep growing horizontally. Pressing the @c Enter
10613     * key will generate an @c "activate" event instead of adding a new line.
10614     *
10615     * When @p single_line is @c EINA_FALSE, line wrapping takes effect again
10616     * and pressing enter will break the text into a different line
10617     * without generating any events.
10618     *
10619     * @param obj The entry object
10620     * @param single_line If true, the text in the entry
10621     * will be on a single line.
10622     */
10623    EAPI void         elm_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
10624    /**
10625     * Gets whether the entry is set to be single line.
10626     *
10627     * @param obj The entry object
10628     * @return single_line If true, the text in the entry is set to display
10629     * on a single line.
10630     *
10631     * @see elm_entry_single_line_set()
10632     */
10633    EAPI Eina_Bool    elm_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10634    /**
10635     * Sets the entry to password mode.
10636     *
10637     * In password mode, entries are implicitly single line and the display of
10638     * any text in them is replaced with asterisks (*).
10639     *
10640     * @param obj The entry object
10641     * @param password If true, password mode is enabled.
10642     */
10643    EAPI void         elm_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
10644    /**
10645     * Gets whether the entry is set to password mode.
10646     *
10647     * @param obj The entry object
10648     * @return If true, the entry is set to display all characters
10649     * as asterisks (*).
10650     *
10651     * @see elm_entry_password_set()
10652     */
10653    EAPI Eina_Bool    elm_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10654    /**
10655     * This sets the text displayed within the entry to @p entry.
10656     *
10657     * @param obj The entry object
10658     * @param entry The text to be displayed
10659     *
10660     * @deprecated Use elm_object_text_set() instead.
10661     */
10662    EAPI void         elm_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
10663    /**
10664     * This returns the text currently shown in object @p entry.
10665     * See also elm_entry_entry_set().
10666     *
10667     * @param obj The entry object
10668     * @return The currently displayed text or NULL on failure
10669     *
10670     * @deprecated Use elm_object_text_get() instead.
10671     */
10672    EAPI const char  *elm_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10673    /**
10674     * Appends @p entry to the text of the entry.
10675     *
10676     * Adds the text in @p entry to the end of any text already present in the
10677     * widget.
10678     *
10679     * The appended text is subject to any filters set for the widget.
10680     *
10681     * @param obj The entry object
10682     * @param entry The text to be displayed
10683     *
10684     * @see elm_entry_text_filter_append()
10685     */
10686    EAPI void         elm_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
10687    /**
10688     * Gets whether the entry is empty.
10689     *
10690     * Empty means no text at all. If there are any markup tags, like an item
10691     * tag for which no provider finds anything, and no text is displayed, this
10692     * function still returns EINA_FALSE.
10693     *
10694     * @param obj The entry object
10695     * @return EINA_TRUE if the entry is empty, EINA_FALSE otherwise.
10696     */
10697    EAPI Eina_Bool    elm_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10698    /**
10699     * Gets any selected text within the entry.
10700     *
10701     * If there's any selected text in the entry, this function returns it as
10702     * a string in markup format. NULL is returned if no selection exists or
10703     * if an error occurred.
10704     *
10705     * The returned value points to an internal string and should not be freed
10706     * or modified in any way. If the @p entry object is deleted or its
10707     * contents are changed, the returned pointer should be considered invalid.
10708     *
10709     * @param obj The entry object
10710     * @return The selected text within the entry or NULL on failure
10711     */
10712    EAPI const char  *elm_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10713    /**
10714     * Inserts the given text into the entry at the current cursor position.
10715     *
10716     * This inserts text at the cursor position as if it was typed
10717     * by the user (note that this also allows markup which a user
10718     * can't just "type" as it would be converted to escaped text, so this
10719     * call can be used to insert things like emoticon items or bold push/pop
10720     * tags, other font and color change tags etc.)
10721     *
10722     * If any selection exists, it will be replaced by the inserted text.
10723     *
10724     * The inserted text is subject to any filters set for the widget.
10725     *
10726     * @param obj The entry object
10727     * @param entry The text to insert
10728     *
10729     * @see elm_entry_text_filter_append()
10730     */
10731    EAPI void         elm_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
10732    /**
10733     * Set the line wrap type to use on multi-line entries.
10734     *
10735     * Sets the wrap type used by the entry to any of the specified in
10736     * #Elm_Wrap_Type. This tells how the text will be implicitly cut into a new
10737     * line (without inserting a line break or paragraph separator) when it
10738     * reaches the far edge of the widget.
10739     *
10740     * Note that this only makes sense for multi-line entries. A widget set
10741     * to be single line will never wrap.
10742     *
10743     * @param obj The entry object
10744     * @param wrap The wrap mode to use. See #Elm_Wrap_Type for details on them
10745     */
10746    EAPI void         elm_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
10747    /**
10748     * Gets the wrap mode the entry was set to use.
10749     *
10750     * @param obj The entry object
10751     * @return Wrap type
10752     *
10753     * @see also elm_entry_line_wrap_set()
10754     */
10755    EAPI Elm_Wrap_Type elm_entry_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10756    /**
10757     * Sets if the entry is to be editable or not.
10758     *
10759     * By default, entries are editable and when focused, any text input by the
10760     * user will be inserted at the current cursor position. But calling this
10761     * function with @p editable as EINA_FALSE will prevent the user from
10762     * inputting text into the entry.
10763     *
10764     * The only way to change the text of a non-editable entry is to use
10765     * elm_object_text_set(), elm_entry_entry_insert() and other related
10766     * functions.
10767     *
10768     * @param obj The entry object
10769     * @param editable If EINA_TRUE, user input will be inserted in the entry,
10770     * if not, the entry is read-only and no user input is allowed.
10771     */
10772    EAPI void         elm_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
10773    /**
10774     * Gets whether the entry is editable or not.
10775     *
10776     * @param obj The entry object
10777     * @return If true, the entry is editable by the user.
10778     * If false, it is not editable by the user
10779     *
10780     * @see elm_entry_editable_set()
10781     */
10782    EAPI Eina_Bool    elm_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10783    /**
10784     * This drops any existing text selection within the entry.
10785     *
10786     * @param obj The entry object
10787     */
10788    EAPI void         elm_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
10789    /**
10790     * This selects all text within the entry.
10791     *
10792     * @param obj The entry object
10793     */
10794    EAPI void         elm_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
10795    /**
10796     * This moves the cursor one place to the right within the entry.
10797     *
10798     * @param obj The entry object
10799     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10800     */
10801    EAPI Eina_Bool    elm_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
10802    /**
10803     * This moves the cursor one place to the left within the entry.
10804     *
10805     * @param obj The entry object
10806     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10807     */
10808    EAPI Eina_Bool    elm_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
10809    /**
10810     * This moves the cursor one line up within the entry.
10811     *
10812     * @param obj The entry object
10813     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10814     */
10815    EAPI Eina_Bool    elm_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
10816    /**
10817     * This moves the cursor one line down within the entry.
10818     *
10819     * @param obj The entry object
10820     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10821     */
10822    EAPI Eina_Bool    elm_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
10823    /**
10824     * This moves the cursor to the beginning of the entry.
10825     *
10826     * @param obj The entry object
10827     */
10828    EAPI void         elm_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10829    /**
10830     * This moves the cursor to the end of the entry.
10831     *
10832     * @param obj The entry object
10833     */
10834    EAPI void         elm_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10835    /**
10836     * This moves the cursor to the beginning of the current line.
10837     *
10838     * @param obj The entry object
10839     */
10840    EAPI void         elm_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10841    /**
10842     * This moves the cursor to the end of the current line.
10843     *
10844     * @param obj The entry object
10845     */
10846    EAPI void         elm_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
10847    /**
10848     * This begins a selection within the entry as though
10849     * the user were holding down the mouse button to make a selection.
10850     *
10851     * @param obj The entry object
10852     */
10853    EAPI void         elm_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
10854    /**
10855     * This ends a selection within the entry as though
10856     * the user had just released the mouse button while making a selection.
10857     *
10858     * @param obj The entry object
10859     */
10860    EAPI void         elm_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
10861    /**
10862     * Gets whether a format node exists at the current cursor position.
10863     *
10864     * A format node is anything that defines how the text is rendered. It can
10865     * be a visible format node, such as a line break or a paragraph separator,
10866     * or an invisible one, such as bold begin or end tag.
10867     * This function returns whether any format node exists at the current
10868     * cursor position.
10869     *
10870     * @param obj The entry object
10871     * @return EINA_TRUE if the current cursor position contains a format node,
10872     * EINA_FALSE otherwise.
10873     *
10874     * @see elm_entry_cursor_is_visible_format_get()
10875     */
10876    EAPI Eina_Bool    elm_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10877    /**
10878     * Gets if the current cursor position holds a visible format node.
10879     *
10880     * @param obj The entry object
10881     * @return EINA_TRUE if the current cursor is a visible format, EINA_FALSE
10882     * if it's an invisible one or no format exists.
10883     *
10884     * @see elm_entry_cursor_is_format_get()
10885     */
10886    EAPI Eina_Bool    elm_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10887    /**
10888     * Gets the character pointed by the cursor at its current position.
10889     *
10890     * This function returns a string with the utf8 character stored at the
10891     * current cursor position.
10892     * Only the text is returned, any format that may exist will not be part
10893     * of the return value.
10894     *
10895     * @param obj The entry object
10896     * @return The text pointed by the cursors.
10897     */
10898    EAPI const char  *elm_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10899    /**
10900     * This function returns the geometry of the cursor.
10901     *
10902     * It's useful if you want to draw something on the cursor (or where it is),
10903     * or for example in the case of scrolled entry where you want to show the
10904     * cursor.
10905     *
10906     * @param obj The entry object
10907     * @param x returned geometry
10908     * @param y returned geometry
10909     * @param w returned geometry
10910     * @param h returned geometry
10911     * @return EINA_TRUE upon success, EINA_FALSE upon failure
10912     */
10913    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);
10914    /**
10915     * Sets the cursor position in the entry to the given value
10916     *
10917     * The value in @p pos is the index of the character position within the
10918     * contents of the string as returned by elm_entry_cursor_pos_get().
10919     *
10920     * @param obj The entry object
10921     * @param pos The position of the cursor
10922     */
10923    EAPI void         elm_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
10924    /**
10925     * Retrieves the current position of the cursor in the entry
10926     *
10927     * @param obj The entry object
10928     * @return The cursor position
10929     */
10930    EAPI int          elm_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10931    /**
10932     * This executes a "cut" action on the selected text in the entry.
10933     *
10934     * @param obj The entry object
10935     */
10936    EAPI void         elm_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
10937    /**
10938     * This executes a "copy" action on the selected text in the entry.
10939     *
10940     * @param obj The entry object
10941     */
10942    EAPI void         elm_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
10943    /**
10944     * This executes a "paste" action in the entry.
10945     *
10946     * @param obj The entry object
10947     */
10948    EAPI void         elm_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
10949    /**
10950     * This clears and frees the items in a entry's contextual (longpress)
10951     * menu.
10952     *
10953     * @param obj The entry object
10954     *
10955     * @see elm_entry_context_menu_item_add()
10956     */
10957    EAPI void         elm_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
10958    /**
10959     * This adds an item to the entry's contextual menu.
10960     *
10961     * A longpress on an entry will make the contextual menu show up, if this
10962     * hasn't been disabled with elm_entry_context_menu_disabled_set().
10963     * By default, this menu provides a few options like enabling selection mode,
10964     * which is useful on embedded devices that need to be explicit about it,
10965     * and when a selection exists it also shows the copy and cut actions.
10966     *
10967     * With this function, developers can add other options to this menu to
10968     * perform any action they deem necessary.
10969     *
10970     * @param obj The entry object
10971     * @param label The item's text label
10972     * @param icon_file The item's icon file
10973     * @param icon_type The item's icon type
10974     * @param func The callback to execute when the item is clicked
10975     * @param data The data to associate with the item for related functions
10976     */
10977    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);
10978    /**
10979     * This disables the entry's contextual (longpress) menu.
10980     *
10981     * @param obj The entry object
10982     * @param disabled If true, the menu is disabled
10983     */
10984    EAPI void         elm_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
10985    /**
10986     * This returns whether the entry's contextual (longpress) menu is
10987     * disabled.
10988     *
10989     * @param obj The entry object
10990     * @return If true, the menu is disabled
10991     */
10992    EAPI Eina_Bool    elm_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
10993    /**
10994     * This appends a custom item provider to the list for that entry
10995     *
10996     * This appends the given callback. The list is walked from beginning to end
10997     * with each function called given the item href string in the text. If the
10998     * function returns an object handle other than NULL (it should create an
10999     * object to do this), then this object is used to replace that item. If
11000     * not the next provider is called until one provides an item object, or the
11001     * default provider in entry does.
11002     *
11003     * @param obj The entry object
11004     * @param func The function called to provide the item object
11005     * @param data The data passed to @p func
11006     *
11007     * @see @ref entry-items
11008     */
11009    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);
11010    /**
11011     * This prepends a custom item provider to the list for that entry
11012     *
11013     * This prepends the given callback. See elm_entry_item_provider_append() for
11014     * more information
11015     *
11016     * @param obj The entry object
11017     * @param func The function called to provide the item object
11018     * @param data The data passed to @p func
11019     */
11020    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);
11021    /**
11022     * This removes a custom item provider to the list for that entry
11023     *
11024     * This removes the given callback. See elm_entry_item_provider_append() for
11025     * more information
11026     *
11027     * @param obj The entry object
11028     * @param func The function called to provide the item object
11029     * @param data The data passed to @p func
11030     */
11031    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);
11032    /**
11033     * Append a filter function for text inserted in the entry
11034     *
11035     * Append the given callback to the list. This functions will be called
11036     * whenever any text is inserted into the entry, with the text to be inserted
11037     * as a parameter. The callback function is free to alter the text in any way
11038     * it wants, but it must remember to free the given pointer and update it.
11039     * If the new text is to be discarded, the function can free it and set its
11040     * text parameter to NULL. This will also prevent any following filters from
11041     * being called.
11042     *
11043     * @param obj The entry object
11044     * @param func The function to use as text filter
11045     * @param data User data to pass to @p func
11046     */
11047    EAPI void         elm_entry_text_filter_append(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11048    /**
11049     * Prepend a filter function for text insdrted in the entry
11050     *
11051     * Prepend the given callback to the list. See elm_entry_text_filter_append()
11052     * for more information
11053     *
11054     * @param obj The entry object
11055     * @param func The function to use as text filter
11056     * @param data User data to pass to @p func
11057     */
11058    EAPI void         elm_entry_text_filter_prepend(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11059    /**
11060     * Remove a filter from the list
11061     *
11062     * Removes the given callback from the filter list. See
11063     * elm_entry_text_filter_append() for more information.
11064     *
11065     * @param obj The entry object
11066     * @param func The filter function to remove
11067     * @param data The user data passed when adding the function
11068     */
11069    EAPI void         elm_entry_text_filter_remove(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data) EINA_ARG_NONNULL(1, 2);
11070    /**
11071     * This converts a markup (HTML-like) string into UTF-8.
11072     *
11073     * The returned string is a malloc'ed buffer and it should be freed when
11074     * not needed anymore.
11075     *
11076     * @param s The string (in markup) to be converted
11077     * @return The converted string (in UTF-8). It should be freed.
11078     */
11079    EAPI char        *elm_entry_markup_to_utf8(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
11080    /**
11081     * This converts a UTF-8 string into markup (HTML-like).
11082     *
11083     * The returned string is a malloc'ed buffer and it should be freed when
11084     * not needed anymore.
11085     *
11086     * @param s The string (in UTF-8) to be converted
11087     * @return The converted string (in markup). It should be freed.
11088     */
11089    EAPI char        *elm_entry_utf8_to_markup(const char *s) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
11090    /**
11091     * This sets the file (and implicitly loads it) for the text to display and
11092     * then edit. All changes are written back to the file after a short delay if
11093     * the entry object is set to autosave (which is the default).
11094     *
11095     * If the entry had any other file set previously, any changes made to it
11096     * will be saved if the autosave feature is enabled, otherwise, the file
11097     * will be silently discarded and any non-saved changes will be lost.
11098     *
11099     * @param obj The entry object
11100     * @param file The path to the file to load and save
11101     * @param format The file format
11102     */
11103    EAPI void         elm_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
11104    /**
11105     * Gets the file being edited by the entry.
11106     *
11107     * This function can be used to retrieve any file set on the entry for
11108     * edition, along with the format used to load and save it.
11109     *
11110     * @param obj The entry object
11111     * @param file The path to the file to load and save
11112     * @param format The file format
11113     */
11114    EAPI void         elm_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
11115    /**
11116     * This function writes any changes made to the file set with
11117     * elm_entry_file_set()
11118     *
11119     * @param obj The entry object
11120     */
11121    EAPI void         elm_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
11122    /**
11123     * This sets the entry object to 'autosave' the loaded text file or not.
11124     *
11125     * @param obj The entry object
11126     * @param autosave Autosave the loaded file or not
11127     *
11128     * @see elm_entry_file_set()
11129     */
11130    EAPI void         elm_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
11131    /**
11132     * This gets the entry object's 'autosave' status.
11133     *
11134     * @param obj The entry object
11135     * @return Autosave the loaded file or not
11136     *
11137     * @see elm_entry_file_set()
11138     */
11139    EAPI Eina_Bool    elm_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11140    /**
11141     * Control pasting of text and images for the widget.
11142     *
11143     * Normally the entry allows both text and images to be pasted.  By setting
11144     * textonly to be true, this prevents images from being pasted.
11145     *
11146     * Note this only changes the behaviour of text.
11147     *
11148     * @param obj The entry object
11149     * @param textonly paste mode - EINA_TRUE is text only, EINA_FALSE is
11150     * text+image+other.
11151     */
11152    EAPI void         elm_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
11153    /**
11154     * Getting elm_entry text paste/drop mode.
11155     *
11156     * In textonly mode, only text may be pasted or dropped into the widget.
11157     *
11158     * @param obj The entry object
11159     * @return If the widget only accepts text from pastes.
11160     */
11161    EAPI Eina_Bool    elm_entry_cnp_textonly_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11162    /**
11163     * Enable or disable scrolling in entry
11164     *
11165     * Normally the entry is not scrollable unless you enable it with this call.
11166     *
11167     * @param obj The entry object
11168     * @param scroll EINA_TRUE if it is to be scrollable, EINA_FALSE otherwise
11169     */
11170    EAPI void         elm_entry_scrollable_set(Evas_Object *obj, Eina_Bool scroll);
11171    /**
11172     * Get the scrollable state of the entry
11173     *
11174     * Normally the entry is not scrollable. This gets the scrollable state
11175     * of the entry. See elm_entry_scrollable_set() for more information.
11176     *
11177     * @param obj The entry object
11178     * @return The scrollable state
11179     */
11180    EAPI Eina_Bool    elm_entry_scrollable_get(const Evas_Object *obj);
11181    /**
11182     * This sets a widget to be displayed to the left of a scrolled entry.
11183     *
11184     * @param obj The scrolled entry object
11185     * @param icon The widget to display on the left side of the scrolled
11186     * entry.
11187     *
11188     * @note A previously set widget will be destroyed.
11189     * @note If the object being set does not have minimum size hints set,
11190     * it won't get properly displayed.
11191     *
11192     * @see elm_entry_end_set()
11193     */
11194    EAPI void         elm_entry_icon_set(Evas_Object *obj, Evas_Object *icon);
11195    /**
11196     * Gets the leftmost widget of the scrolled entry. This object is
11197     * owned by the scrolled entry and should not be modified.
11198     *
11199     * @param obj The scrolled entry object
11200     * @return the left widget inside the scroller
11201     */
11202    EAPI Evas_Object *elm_entry_icon_get(const Evas_Object *obj);
11203    /**
11204     * Unset the leftmost widget of the scrolled entry, unparenting and
11205     * returning it.
11206     *
11207     * @param obj The scrolled entry object
11208     * @return the previously set icon sub-object of this entry, on
11209     * success.
11210     *
11211     * @see elm_entry_icon_set()
11212     */
11213    EAPI Evas_Object *elm_entry_icon_unset(Evas_Object *obj);
11214    /**
11215     * Sets the visibility of the left-side widget of the scrolled entry,
11216     * set by elm_entry_icon_set().
11217     *
11218     * @param obj The scrolled entry object
11219     * @param setting EINA_TRUE if the object should be displayed,
11220     * EINA_FALSE if not.
11221     */
11222    EAPI void         elm_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting);
11223    /**
11224     * This sets a widget to be displayed to the end of a scrolled entry.
11225     *
11226     * @param obj The scrolled entry object
11227     * @param end The widget to display on the right side of the scrolled
11228     * entry.
11229     *
11230     * @note A previously set widget will be destroyed.
11231     * @note If the object being set does not have minimum size hints set,
11232     * it won't get properly displayed.
11233     *
11234     * @see elm_entry_icon_set
11235     */
11236    EAPI void         elm_entry_end_set(Evas_Object *obj, Evas_Object *end);
11237    /**
11238     * Gets the endmost widget of the scrolled entry. This object is owned
11239     * by the scrolled entry and should not be modified.
11240     *
11241     * @param obj The scrolled entry object
11242     * @return the right widget inside the scroller
11243     */
11244    EAPI Evas_Object *elm_entry_end_get(const Evas_Object *obj);
11245    /**
11246     * Unset the endmost widget of the scrolled entry, unparenting and
11247     * returning it.
11248     *
11249     * @param obj The scrolled entry object
11250     * @return the previously set icon sub-object of this entry, on
11251     * success.
11252     *
11253     * @see elm_entry_icon_set()
11254     */
11255    EAPI Evas_Object *elm_entry_end_unset(Evas_Object *obj);
11256    /**
11257     * Sets the visibility of the end widget of the scrolled entry, set by
11258     * elm_entry_end_set().
11259     *
11260     * @param obj The scrolled entry object
11261     * @param setting EINA_TRUE if the object should be displayed,
11262     * EINA_FALSE if not.
11263     */
11264    EAPI void         elm_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting);
11265    /**
11266     * This sets the scrolled entry's scrollbar policy (ie. enabling/disabling
11267     * them).
11268     *
11269     * Setting an entry to single-line mode with elm_entry_single_line_set()
11270     * will automatically disable the display of scrollbars when the entry
11271     * moves inside its scroller.
11272     *
11273     * @param obj The scrolled entry object
11274     * @param h The horizontal scrollbar policy to apply
11275     * @param v The vertical scrollbar policy to apply
11276     */
11277    EAPI void         elm_entry_scrollbar_policy_set(Evas_Object *obj, Elm_Scroller_Policy h, Elm_Scroller_Policy v);
11278    /**
11279     * This enables/disables bouncing within the entry.
11280     *
11281     * This function sets whether the entry will bounce when scrolling reaches
11282     * the end of the contained entry.
11283     *
11284     * @param obj The scrolled entry object
11285     * @param h The horizontal bounce state
11286     * @param v The vertical bounce state
11287     */
11288    EAPI void         elm_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
11289    /**
11290     * Get the bounce mode
11291     *
11292     * @param obj The Entry object
11293     * @param h_bounce Allow bounce horizontally
11294     * @param v_bounce Allow bounce vertically
11295     */
11296    EAPI void         elm_entry_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
11297
11298    /* pre-made filters for entries */
11299    /**
11300     * @typedef Elm_Entry_Filter_Limit_Size
11301     *
11302     * Data for the elm_entry_filter_limit_size() entry filter.
11303     */
11304    typedef struct _Elm_Entry_Filter_Limit_Size Elm_Entry_Filter_Limit_Size;
11305    /**
11306     * @struct _Elm_Entry_Filter_Limit_Size
11307     *
11308     * Data for the elm_entry_filter_limit_size() entry filter.
11309     */
11310    struct _Elm_Entry_Filter_Limit_Size
11311      {
11312         int max_char_count; /**< The maximum number of characters allowed. */
11313         int max_byte_count; /**< The maximum number of bytes allowed*/
11314      };
11315    /**
11316     * Filter inserted text based on user defined character and byte limits
11317     *
11318     * Add this filter to an entry to limit the characters that it will accept
11319     * based the the contents of the provided #Elm_Entry_Filter_Limit_Size.
11320     * The funtion works on the UTF-8 representation of the string, converting
11321     * it from the set markup, thus not accounting for any format in it.
11322     *
11323     * The user must create an #Elm_Entry_Filter_Limit_Size structure and pass
11324     * it as data when setting the filter. In it, it's possible to set limits
11325     * by character count or bytes (any of them is disabled if 0), and both can
11326     * be set at the same time. In that case, it first checks for characters,
11327     * then bytes.
11328     *
11329     * The function will cut the inserted text in order to allow only the first
11330     * number of characters that are still allowed. The cut is made in
11331     * characters, even when limiting by bytes, in order to always contain
11332     * valid ones and avoid half unicode characters making it in.
11333     *
11334     * This filter, like any others, does not apply when setting the entry text
11335     * directly with elm_object_text_set() (or the deprecated
11336     * elm_entry_entry_set()).
11337     */
11338    EAPI void         elm_entry_filter_limit_size(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 2, 3);
11339    /**
11340     * @typedef Elm_Entry_Filter_Accept_Set
11341     *
11342     * Data for the elm_entry_filter_accept_set() entry filter.
11343     */
11344    typedef struct _Elm_Entry_Filter_Accept_Set Elm_Entry_Filter_Accept_Set;
11345    /**
11346     * @struct _Elm_Entry_Filter_Accept_Set
11347     *
11348     * Data for the elm_entry_filter_accept_set() entry filter.
11349     */
11350    struct _Elm_Entry_Filter_Accept_Set
11351      {
11352         const char *accepted; /**< Set of characters accepted in the entry. */
11353         const char *rejected; /**< Set of characters rejected from the entry. */
11354      };
11355    /**
11356     * Filter inserted text based on accepted or rejected sets of characters
11357     *
11358     * Add this filter to an entry to restrict the set of accepted characters
11359     * based on the sets in the provided #Elm_Entry_Filter_Accept_Set.
11360     * This structure contains both accepted and rejected sets, but they are
11361     * mutually exclusive.
11362     *
11363     * The @c accepted set takes preference, so if it is set, the filter will
11364     * only work based on the accepted characters, ignoring anything in the
11365     * @c rejected value. If @c accepted is @c NULL, then @c rejected is used.
11366     *
11367     * In both cases, the function filters by matching utf8 characters to the
11368     * raw markup text, so it can be used to remove formatting tags.
11369     *
11370     * This filter, like any others, does not apply when setting the entry text
11371     * directly with elm_object_text_set() (or the deprecated
11372     * elm_entry_entry_set()).
11373     */
11374    EAPI void         elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text) EINA_ARG_NONNULL(1, 3);
11375    /**
11376     * Set the input panel layout of the entry
11377     *
11378     * @param obj The entry object
11379     * @param layout layout type
11380     */
11381    EAPI void elm_entry_input_panel_layout_set(Evas_Object *obj, Elm_Input_Panel_Layout layout) EINA_ARG_NONNULL(1);
11382    /**
11383     * Get the input panel layout of the entry
11384     *
11385     * @param obj The entry object
11386     * @return layout type
11387     *
11388     * @see elm_entry_input_panel_layout_set
11389     */
11390    EAPI Elm_Input_Panel_Layout elm_entry_input_panel_layout_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
11391    /**
11392     * @}
11393     */
11394
11395    /* composite widgets - these basically put together basic widgets above
11396     * in convenient packages that do more than basic stuff */
11397
11398    /* anchorview */
11399    /**
11400     * @defgroup Anchorview Anchorview
11401     *
11402     * @image html img/widget/anchorview/preview-00.png
11403     * @image latex img/widget/anchorview/preview-00.eps
11404     *
11405     * Anchorview is for displaying text that contains markup with anchors
11406     * like <c>\<a href=1234\>something\</\></c> in it.
11407     *
11408     * Besides being styled differently, the anchorview widget provides the
11409     * necessary functionality so that clicking on these anchors brings up a
11410     * popup with user defined content such as "call", "add to contacts" or
11411     * "open web page". This popup is provided using the @ref Hover widget.
11412     *
11413     * This widget is very similar to @ref Anchorblock, so refer to that
11414     * widget for an example. The only difference Anchorview has is that the
11415     * widget is already provided with scrolling functionality, so if the
11416     * text set to it is too large to fit in the given space, it will scroll,
11417     * whereas the @ref Anchorblock widget will keep growing to ensure all the
11418     * text can be displayed.
11419     *
11420     * This widget emits the following signals:
11421     * @li "anchor,clicked": will be called when an anchor is clicked. The
11422     * @p event_info parameter on the callback will be a pointer of type
11423     * ::Elm_Entry_Anchorview_Info.
11424     *
11425     * See @ref Anchorblock for an example on how to use both of them.
11426     *
11427     * @see Anchorblock
11428     * @see Entry
11429     * @see Hover
11430     *
11431     * @{
11432     */
11433    /**
11434     * @typedef Elm_Entry_Anchorview_Info
11435     *
11436     * The info sent in the callback for "anchor,clicked" signals emitted by
11437     * the Anchorview widget.
11438     */
11439    typedef struct _Elm_Entry_Anchorview_Info Elm_Entry_Anchorview_Info;
11440    /**
11441     * @struct _Elm_Entry_Anchorview_Info
11442     *
11443     * The info sent in the callback for "anchor,clicked" signals emitted by
11444     * the Anchorview widget.
11445     */
11446    struct _Elm_Entry_Anchorview_Info
11447      {
11448         const char     *name; /**< Name of the anchor, as indicated in its href
11449                                    attribute */
11450         int             button; /**< The mouse button used to click on it */
11451         Evas_Object    *hover; /**< The hover object to use for the popup */
11452         struct {
11453              Evas_Coord    x, y, w, h;
11454         } anchor, /**< Geometry selection of text used as anchor */
11455           hover_parent; /**< Geometry of the object used as parent by the
11456                              hover */
11457         Eina_Bool       hover_left : 1; /**< Hint indicating if there's space
11458                                              for content on the left side of
11459                                              the hover. Before calling the
11460                                              callback, the widget will make the
11461                                              necessary calculations to check
11462                                              which sides are fit to be set with
11463                                              content, based on the position the
11464                                              hover is activated and its distance
11465                                              to the edges of its parent object
11466                                              */
11467         Eina_Bool       hover_right : 1; /**< Hint indicating content fits on
11468                                               the right side of the hover.
11469                                               See @ref hover_left */
11470         Eina_Bool       hover_top : 1; /**< Hint indicating content fits on top
11471                                             of the hover. See @ref hover_left */
11472         Eina_Bool       hover_bottom : 1; /**< Hint indicating content fits
11473                                                below the hover. See @ref
11474                                                hover_left */
11475      };
11476    /**
11477     * Add a new Anchorview object
11478     *
11479     * @param parent The parent object
11480     * @return The new object or NULL if it cannot be created
11481     */
11482    EAPI Evas_Object *elm_anchorview_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11483    /**
11484     * Set the text to show in the anchorview
11485     *
11486     * Sets the text of the anchorview to @p text. This text can include markup
11487     * format tags, including <c>\<a href=anchorname\></c> to begin a segment of
11488     * text that will be specially styled and react to click events, ended with
11489     * either of \</a\> or \</\>. When clicked, the anchor will emit an
11490     * "anchor,clicked" signal that you can attach a callback to with
11491     * evas_object_smart_callback_add(). The name of the anchor given in the
11492     * event info struct will be the one set in the href attribute, in this
11493     * case, anchorname.
11494     *
11495     * Other markup can be used to style the text in different ways, but it's
11496     * up to the style defined in the theme which tags do what.
11497     * @deprecated use elm_object_text_set() instead.
11498     */
11499    EINA_DEPRECATED EAPI void         elm_anchorview_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
11500    /**
11501     * Get the markup text set for the anchorview
11502     *
11503     * Retrieves the text set on the anchorview, with markup tags included.
11504     *
11505     * @param obj The anchorview object
11506     * @return The markup text set or @c NULL if nothing was set or an error
11507     * occurred
11508     * @deprecated use elm_object_text_set() instead.
11509     */
11510    EINA_DEPRECATED EAPI const char  *elm_anchorview_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11511    /**
11512     * Set the parent of the hover popup
11513     *
11514     * Sets the parent object to use by the hover created by the anchorview
11515     * when an anchor is clicked. See @ref Hover for more details on this.
11516     * If no parent is set, the same anchorview object will be used.
11517     *
11518     * @param obj The anchorview object
11519     * @param parent The object to use as parent for the hover
11520     */
11521    EAPI void         elm_anchorview_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
11522    /**
11523     * Get the parent of the hover popup
11524     *
11525     * Get the object used as parent for the hover created by the anchorview
11526     * widget. See @ref Hover for more details on this.
11527     *
11528     * @param obj The anchorview object
11529     * @return The object used as parent for the hover, NULL if none is set.
11530     */
11531    EAPI Evas_Object *elm_anchorview_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11532    /**
11533     * Set the style that the hover should use
11534     *
11535     * When creating the popup hover, anchorview will request that it's
11536     * themed according to @p style.
11537     *
11538     * @param obj The anchorview object
11539     * @param style The style to use for the underlying hover
11540     *
11541     * @see elm_object_style_set()
11542     */
11543    EAPI void         elm_anchorview_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
11544    /**
11545     * Get the style that the hover should use
11546     *
11547     * Get the style the hover created by anchorview will use.
11548     *
11549     * @param obj The anchorview object
11550     * @return The style to use by the hover. NULL means the default is used.
11551     *
11552     * @see elm_object_style_set()
11553     */
11554    EAPI const char  *elm_anchorview_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11555    /**
11556     * Ends the hover popup in the anchorview
11557     *
11558     * When an anchor is clicked, the anchorview widget will create a hover
11559     * object to use as a popup with user provided content. This function
11560     * terminates this popup, returning the anchorview to its normal state.
11561     *
11562     * @param obj The anchorview object
11563     */
11564    EAPI void         elm_anchorview_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
11565    /**
11566     * Set bouncing behaviour when the scrolled content reaches an edge
11567     *
11568     * Tell the internal scroller object whether it should bounce or not
11569     * when it reaches the respective edges for each axis.
11570     *
11571     * @param obj The anchorview object
11572     * @param h_bounce Whether to bounce or not in the horizontal axis
11573     * @param v_bounce Whether to bounce or not in the vertical axis
11574     *
11575     * @see elm_scroller_bounce_set()
11576     */
11577    EAPI void         elm_anchorview_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
11578    /**
11579     * Get the set bouncing behaviour of the internal scroller
11580     *
11581     * Get whether the internal scroller should bounce when the edge of each
11582     * axis is reached scrolling.
11583     *
11584     * @param obj The anchorview object
11585     * @param h_bounce Pointer where to store the bounce state of the horizontal
11586     *                 axis
11587     * @param v_bounce Pointer where to store the bounce state of the vertical
11588     *                 axis
11589     *
11590     * @see elm_scroller_bounce_get()
11591     */
11592    EAPI void         elm_anchorview_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
11593    /**
11594     * Appends a custom item provider to the given anchorview
11595     *
11596     * Appends the given function to the list of items providers. This list is
11597     * called, one function at a time, with the given @p data pointer, the
11598     * anchorview object and, in the @p item parameter, the item name as
11599     * referenced in its href string. Following functions in the list will be
11600     * called in order until one of them returns something different to NULL,
11601     * which should be an Evas_Object which will be used in place of the item
11602     * element.
11603     *
11604     * Items in the markup text take the form \<item relsize=16x16 vsize=full
11605     * href=item/name\>\</item\>
11606     *
11607     * @param obj The anchorview object
11608     * @param func The function to add to the list of providers
11609     * @param data User data that will be passed to the callback function
11610     *
11611     * @see elm_entry_item_provider_append()
11612     */
11613    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);
11614    /**
11615     * Prepend a custom item provider to the given anchorview
11616     *
11617     * Like elm_anchorview_item_provider_append(), but it adds the function
11618     * @p func to the beginning of the list, instead of the end.
11619     *
11620     * @param obj The anchorview object
11621     * @param func The function to add to the list of providers
11622     * @param data User data that will be passed to the callback function
11623     */
11624    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);
11625    /**
11626     * Remove a custom item provider from the list of the given anchorview
11627     *
11628     * Removes the function and data pairing that matches @p func and @p data.
11629     * That is, unless the same function and same user data are given, the
11630     * function will not be removed from the list. This allows us to add the
11631     * same callback several times, with different @p data pointers and be
11632     * able to remove them later without conflicts.
11633     *
11634     * @param obj The anchorview object
11635     * @param func The function to remove from the list
11636     * @param data The data matching the function to remove from the list
11637     */
11638    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);
11639    /**
11640     * @}
11641     */
11642
11643    /* anchorblock */
11644    /**
11645     * @defgroup Anchorblock Anchorblock
11646     *
11647     * @image html img/widget/anchorblock/preview-00.png
11648     * @image latex img/widget/anchorblock/preview-00.eps
11649     *
11650     * Anchorblock is for displaying text that contains markup with anchors
11651     * like <c>\<a href=1234\>something\</\></c> in it.
11652     *
11653     * Besides being styled differently, the anchorblock widget provides the
11654     * necessary functionality so that clicking on these anchors brings up a
11655     * popup with user defined content such as "call", "add to contacts" or
11656     * "open web page". This popup is provided using the @ref Hover widget.
11657     *
11658     * This widget emits the following signals:
11659     * @li "anchor,clicked": will be called when an anchor is clicked. The
11660     * @p event_info parameter on the callback will be a pointer of type
11661     * ::Elm_Entry_Anchorblock_Info.
11662     *
11663     * @see Anchorview
11664     * @see Entry
11665     * @see Hover
11666     *
11667     * Since examples are usually better than plain words, we might as well
11668     * try @ref tutorial_anchorblock_example "one".
11669     */
11670    /**
11671     * @addtogroup Anchorblock
11672     * @{
11673     */
11674    /**
11675     * @typedef Elm_Entry_Anchorblock_Info
11676     *
11677     * The info sent in the callback for "anchor,clicked" signals emitted by
11678     * the Anchorblock widget.
11679     */
11680    typedef struct _Elm_Entry_Anchorblock_Info Elm_Entry_Anchorblock_Info;
11681    /**
11682     * @struct _Elm_Entry_Anchorblock_Info
11683     *
11684     * The info sent in the callback for "anchor,clicked" signals emitted by
11685     * the Anchorblock widget.
11686     */
11687    struct _Elm_Entry_Anchorblock_Info
11688      {
11689         const char     *name; /**< Name of the anchor, as indicated in its href
11690                                    attribute */
11691         int             button; /**< The mouse button used to click on it */
11692         Evas_Object    *hover; /**< The hover object to use for the popup */
11693         struct {
11694              Evas_Coord    x, y, w, h;
11695         } anchor, /**< Geometry selection of text used as anchor */
11696           hover_parent; /**< Geometry of the object used as parent by the
11697                              hover */
11698         Eina_Bool       hover_left : 1; /**< Hint indicating if there's space
11699                                              for content on the left side of
11700                                              the hover. Before calling the
11701                                              callback, the widget will make the
11702                                              necessary calculations to check
11703                                              which sides are fit to be set with
11704                                              content, based on the position the
11705                                              hover is activated and its distance
11706                                              to the edges of its parent object
11707                                              */
11708         Eina_Bool       hover_right : 1; /**< Hint indicating content fits on
11709                                               the right side of the hover.
11710                                               See @ref hover_left */
11711         Eina_Bool       hover_top : 1; /**< Hint indicating content fits on top
11712                                             of the hover. See @ref hover_left */
11713         Eina_Bool       hover_bottom : 1; /**< Hint indicating content fits
11714                                                below the hover. See @ref
11715                                                hover_left */
11716      };
11717    /**
11718     * Add a new Anchorblock object
11719     *
11720     * @param parent The parent object
11721     * @return The new object or NULL if it cannot be created
11722     */
11723    EAPI Evas_Object *elm_anchorblock_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11724    /**
11725     * Set the text to show in the anchorblock
11726     *
11727     * Sets the text of the anchorblock to @p text. This text can include markup
11728     * format tags, including <c>\<a href=anchorname\></a></c> to begin a segment
11729     * of text that will be specially styled and react to click events, ended
11730     * with either of \</a\> or \</\>. When clicked, the anchor will emit an
11731     * "anchor,clicked" signal that you can attach a callback to with
11732     * evas_object_smart_callback_add(). The name of the anchor given in the
11733     * event info struct will be the one set in the href attribute, in this
11734     * case, anchorname.
11735     *
11736     * Other markup can be used to style the text in different ways, but it's
11737     * up to the style defined in the theme which tags do what.
11738     * @deprecated use elm_object_text_set() instead.
11739     */
11740    EINA_DEPRECATED EAPI void         elm_anchorblock_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1);
11741    /**
11742     * Get the markup text set for the anchorblock
11743     *
11744     * Retrieves the text set on the anchorblock, with markup tags included.
11745     *
11746     * @param obj The anchorblock object
11747     * @return The markup text set or @c NULL if nothing was set or an error
11748     * occurred
11749     * @deprecated use elm_object_text_set() instead.
11750     */
11751    EINA_DEPRECATED EAPI const char  *elm_anchorblock_text_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11752    /**
11753     * Set the parent of the hover popup
11754     *
11755     * Sets the parent object to use by the hover created by the anchorblock
11756     * when an anchor is clicked. See @ref Hover for more details on this.
11757     *
11758     * @param obj The anchorblock object
11759     * @param parent The object to use as parent for the hover
11760     */
11761    EAPI void         elm_anchorblock_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
11762    /**
11763     * Get the parent of the hover popup
11764     *
11765     * Get the object used as parent for the hover created by the anchorblock
11766     * widget. See @ref Hover for more details on this.
11767     * If no parent is set, the same anchorblock object will be used.
11768     *
11769     * @param obj The anchorblock object
11770     * @return The object used as parent for the hover, NULL if none is set.
11771     */
11772    EAPI Evas_Object *elm_anchorblock_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11773    /**
11774     * Set the style that the hover should use
11775     *
11776     * When creating the popup hover, anchorblock will request that it's
11777     * themed according to @p style.
11778     *
11779     * @param obj The anchorblock object
11780     * @param style The style to use for the underlying hover
11781     *
11782     * @see elm_object_style_set()
11783     */
11784    EAPI void         elm_anchorblock_hover_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
11785    /**
11786     * Get the style that the hover should use
11787     *
11788     * Get the style the hover created by anchorblock will use.
11789     *
11790     * @param obj The anchorblock object
11791     * @return The style to use by the hover. NULL means the default is used.
11792     *
11793     * @see elm_object_style_set()
11794     */
11795    EAPI const char  *elm_anchorblock_hover_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11796    /**
11797     * Ends the hover popup in the anchorblock
11798     *
11799     * When an anchor is clicked, the anchorblock widget will create a hover
11800     * object to use as a popup with user provided content. This function
11801     * terminates this popup, returning the anchorblock to its normal state.
11802     *
11803     * @param obj The anchorblock object
11804     */
11805    EAPI void         elm_anchorblock_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
11806    /**
11807     * Appends a custom item provider to the given anchorblock
11808     *
11809     * Appends the given function to the list of items providers. This list is
11810     * called, one function at a time, with the given @p data pointer, the
11811     * anchorblock object and, in the @p item parameter, the item name as
11812     * referenced in its href string. Following functions in the list will be
11813     * called in order until one of them returns something different to NULL,
11814     * which should be an Evas_Object which will be used in place of the item
11815     * element.
11816     *
11817     * Items in the markup text take the form \<item relsize=16x16 vsize=full
11818     * href=item/name\>\</item\>
11819     *
11820     * @param obj The anchorblock object
11821     * @param func The function to add to the list of providers
11822     * @param data User data that will be passed to the callback function
11823     *
11824     * @see elm_entry_item_provider_append()
11825     */
11826    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);
11827    /**
11828     * Prepend a custom item provider to the given anchorblock
11829     *
11830     * Like elm_anchorblock_item_provider_append(), but it adds the function
11831     * @p func to the beginning of the list, instead of the end.
11832     *
11833     * @param obj The anchorblock object
11834     * @param func The function to add to the list of providers
11835     * @param data User data that will be passed to the callback function
11836     */
11837    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);
11838    /**
11839     * Remove a custom item provider from the list of the given anchorblock
11840     *
11841     * Removes the function and data pairing that matches @p func and @p data.
11842     * That is, unless the same function and same user data are given, the
11843     * function will not be removed from the list. This allows us to add the
11844     * same callback several times, with different @p data pointers and be
11845     * able to remove them later without conflicts.
11846     *
11847     * @param obj The anchorblock object
11848     * @param func The function to remove from the list
11849     * @param data The data matching the function to remove from the list
11850     */
11851    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);
11852    /**
11853     * @}
11854     */
11855
11856    /**
11857     * @defgroup Bubble Bubble
11858     *
11859     * @image html img/widget/bubble/preview-00.png
11860     * @image latex img/widget/bubble/preview-00.eps
11861     * @image html img/widget/bubble/preview-01.png
11862     * @image latex img/widget/bubble/preview-01.eps
11863     * @image html img/widget/bubble/preview-02.png
11864     * @image latex img/widget/bubble/preview-02.eps
11865     *
11866     * @brief The Bubble is a widget to show text similarly to how speech is
11867     * represented in comics.
11868     *
11869     * The bubble widget contains 5 important visual elements:
11870     * @li The frame is a rectangle with rounded rectangles and an "arrow".
11871     * @li The @p icon is an image to which the frame's arrow points to.
11872     * @li The @p label is a text which appears to the right of the icon if the
11873     * corner is "top_left" or "bottom_left" and is right aligned to the frame
11874     * otherwise.
11875     * @li The @p info is a text which appears to the right of the label. Info's
11876     * font is of a ligther color than label.
11877     * @li The @p content is an evas object that is shown inside the frame.
11878     *
11879     * The position of the arrow, icon, label and info depends on which corner is
11880     * selected. The four available corners are:
11881     * @li "top_left" - Default
11882     * @li "top_right"
11883     * @li "bottom_left"
11884     * @li "bottom_right"
11885     *
11886     * Signals that you can add callbacks for are:
11887     * @li "clicked" - This is called when a user has clicked the bubble.
11888     *
11889     * For an example of using a buble see @ref bubble_01_example_page "this".
11890     *
11891     * @{
11892     */
11893    /**
11894     * Add a new bubble to the parent
11895     *
11896     * @param parent The parent object
11897     * @return The new object or NULL if it cannot be created
11898     *
11899     * This function adds a text bubble to the given parent evas object.
11900     */
11901    EAPI Evas_Object *elm_bubble_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
11902    /**
11903     * Set the label of the bubble
11904     *
11905     * @param obj The bubble object
11906     * @param label The string to set in the label
11907     *
11908     * This function sets the title of the bubble. Where this appears depends on
11909     * the selected corner.
11910     * @deprecated use elm_object_text_set() instead.
11911     */
11912    EINA_DEPRECATED EAPI void         elm_bubble_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
11913    /**
11914     * Get the label of the bubble
11915     *
11916     * @param obj The bubble object
11917     * @return The string of set in the label
11918     *
11919     * This function gets the title of the bubble.
11920     * @deprecated use elm_object_text_get() instead.
11921     */
11922    EINA_DEPRECATED EAPI const char  *elm_bubble_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11923    /**
11924     * Set the info of the bubble
11925     *
11926     * @param obj The bubble object
11927     * @param info The given info about the bubble
11928     *
11929     * This function sets the info of the bubble. Where this appears depends on
11930     * the selected corner.
11931     * @deprecated use elm_object_text_part_set() instead. (with "info" as the parameter).
11932     */
11933    EINA_DEPRECATED EAPI void         elm_bubble_info_set(Evas_Object *obj, const char *info) EINA_ARG_NONNULL(1);
11934    /**
11935     * Get the info of the bubble
11936     *
11937     * @param obj The bubble object
11938     *
11939     * @return The "info" string of the bubble
11940     *
11941     * This function gets the info text.
11942     * @deprecated use elm_object_text_part_get() instead. (with "info" as the parameter).
11943     */
11944    EINA_DEPRECATED EAPI const char  *elm_bubble_info_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11945    /**
11946     * Set the content to be shown in the bubble
11947     *
11948     * Once the content object is set, a previously set one will be deleted.
11949     * If you want to keep the old content object, use the
11950     * elm_bubble_content_unset() function.
11951     *
11952     * @param obj The bubble object
11953     * @param content The given content of the bubble
11954     *
11955     * This function sets the content shown on the middle of the bubble.
11956     */
11957    EAPI void         elm_bubble_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
11958    /**
11959     * Get the content shown in the bubble
11960     *
11961     * Return the content object which is set for this widget.
11962     *
11963     * @param obj The bubble object
11964     * @return The content that is being used
11965     */
11966    EAPI Evas_Object *elm_bubble_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11967    /**
11968     * Unset the content shown in the bubble
11969     *
11970     * Unparent and return the content object which was set for this widget.
11971     *
11972     * @param obj The bubble object
11973     * @return The content that was being used
11974     */
11975    EAPI Evas_Object *elm_bubble_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
11976    /**
11977     * Set the icon of the bubble
11978     *
11979     * Once the icon object is set, a previously set one will be deleted.
11980     * If you want to keep the old content object, use the
11981     * elm_icon_content_unset() function.
11982     *
11983     * @param obj The bubble object
11984     * @param icon The given icon for the bubble
11985     */
11986    EAPI void         elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
11987    /**
11988     * Get the icon of the bubble
11989     *
11990     * @param obj The bubble object
11991     * @return The icon for the bubble
11992     *
11993     * This function gets the icon shown on the top left of bubble.
11994     */
11995    EAPI Evas_Object *elm_bubble_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
11996    /**
11997     * Unset the icon of the bubble
11998     *
11999     * Unparent and return the icon object which was set for this widget.
12000     *
12001     * @param obj The bubble object
12002     * @return The icon that was being used
12003     */
12004    EAPI Evas_Object *elm_bubble_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12005    /**
12006     * Set the corner of the bubble
12007     *
12008     * @param obj The bubble object.
12009     * @param corner The given corner for the bubble.
12010     *
12011     * This function sets the corner of the bubble. The corner will be used to
12012     * determine where the arrow in the frame points to and where label, icon and
12013     * info arre shown.
12014     *
12015     * Possible values for corner are:
12016     * @li "top_left" - Default
12017     * @li "top_right"
12018     * @li "bottom_left"
12019     * @li "bottom_right"
12020     */
12021    EAPI void         elm_bubble_corner_set(Evas_Object *obj, const char *corner) EINA_ARG_NONNULL(1, 2);
12022    /**
12023     * Get the corner of the bubble
12024     *
12025     * @param obj The bubble object.
12026     * @return The given corner for the bubble.
12027     *
12028     * This function gets the selected corner of the bubble.
12029     */
12030    EAPI const char  *elm_bubble_corner_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12031    /**
12032     * @}
12033     */
12034
12035    /**
12036     * @defgroup Photo Photo
12037     *
12038     * For displaying the photo of a person (contact). Simple yet
12039     * with a very specific purpose.
12040     *
12041     * Signals that you can add callbacks for are:
12042     *
12043     * "clicked" - This is called when a user has clicked the photo
12044     * "drag,start" - Someone started dragging the image out of the object
12045     * "drag,end" - Dragged item was dropped (somewhere)
12046     *
12047     * @{
12048     */
12049
12050    /**
12051     * Add a new photo to the parent
12052     *
12053     * @param parent The parent object
12054     * @return The new object or NULL if it cannot be created
12055     *
12056     * @ingroup Photo
12057     */
12058    EAPI Evas_Object *elm_photo_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12059
12060    /**
12061     * Set the file that will be used as photo
12062     *
12063     * @param obj The photo object
12064     * @param file The path to file that will be used as photo
12065     *
12066     * @return (1 = success, 0 = error)
12067     *
12068     * @ingroup Photo
12069     */
12070    EAPI Eina_Bool    elm_photo_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
12071
12072     /**
12073     * Set the file that will be used as thumbnail in the photo.
12074     *
12075     * @param obj The photo object.
12076     * @param file The path to file that will be used as thumb.
12077     * @param group The key used in case of an EET file.
12078     *
12079     * @ingroup Photo
12080     */
12081    EAPI void         elm_photo_thumb_set(const Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1, 2);
12082
12083    /**
12084     * Set the size that will be used on the photo
12085     *
12086     * @param obj The photo object
12087     * @param size The size that the photo will be
12088     *
12089     * @ingroup Photo
12090     */
12091    EAPI void         elm_photo_size_set(Evas_Object *obj, int size) EINA_ARG_NONNULL(1);
12092
12093    /**
12094     * Set if the photo should be completely visible or not.
12095     *
12096     * @param obj The photo object
12097     * @param fill if true the photo will be completely visible
12098     *
12099     * @ingroup Photo
12100     */
12101    EAPI void         elm_photo_fill_inside_set(Evas_Object *obj, Eina_Bool fill) EINA_ARG_NONNULL(1);
12102
12103    /**
12104     * Set editability of the photo.
12105     *
12106     * An editable photo can be dragged to or from, and can be cut or
12107     * pasted too.  Note that pasting an image or dropping an item on
12108     * the image will delete the existing content.
12109     *
12110     * @param obj The photo object.
12111     * @param set To set of clear editablity.
12112     */
12113    EAPI void         elm_photo_editable_set(Evas_Object *obj, Eina_Bool set) EINA_ARG_NONNULL(1);
12114
12115    /**
12116     * @}
12117     */
12118
12119    /* gesture layer */
12120    /**
12121     * @defgroup Elm_Gesture_Layer Gesture Layer
12122     * Gesture Layer Usage:
12123     *
12124     * Use Gesture Layer to detect gestures.
12125     * The advantage is that you don't have to implement
12126     * gesture detection, just set callbacks of gesture state.
12127     * By using gesture layer we make standard interface.
12128     *
12129     * In order to use Gesture Layer you start with @ref elm_gesture_layer_add
12130     * with a parent object parameter.
12131     * Next 'activate' gesture layer with a @ref elm_gesture_layer_attach
12132     * call. Usually with same object as target (2nd parameter).
12133     *
12134     * Now you need to tell gesture layer what gestures you follow.
12135     * This is done with @ref elm_gesture_layer_cb_set call.
12136     * By setting the callback you actually saying to gesture layer:
12137     * I would like to know when the gesture @ref Elm_Gesture_Types
12138     * switches to state @ref Elm_Gesture_State.
12139     *
12140     * Next, you need to implement the actual action that follows the input
12141     * in your callback.
12142     *
12143     * Note that if you like to stop being reported about a gesture, just set
12144     * all callbacks referring this gesture to NULL.
12145     * (again with @ref elm_gesture_layer_cb_set)
12146     *
12147     * The information reported by gesture layer to your callback is depending
12148     * on @ref Elm_Gesture_Types:
12149     * @ref Elm_Gesture_Taps_Info is the info reported for tap gestures:
12150     * @ref ELM_GESTURE_N_TAPS, @ref ELM_GESTURE_N_LONG_TAPS,
12151     * @ref ELM_GESTURE_N_DOUBLE_TAPS, @ref ELM_GESTURE_N_TRIPLE_TAPS.
12152     *
12153     * @ref Elm_Gesture_Momentum_Info is info reported for momentum gestures:
12154     * @ref ELM_GESTURE_MOMENTUM.
12155     *
12156     * @ref Elm_Gesture_Line_Info is the info reported for line gestures:
12157     * (this also contains @ref Elm_Gesture_Momentum_Info internal structure)
12158     * @ref ELM_GESTURE_N_LINES, @ref ELM_GESTURE_N_FLICKS.
12159     * Note that we consider a flick as a line-gesture that should be completed
12160     * in flick-time-limit as defined in @ref Config.
12161     *
12162     * @ref Elm_Gesture_Zoom_Info is the info reported for @ref ELM_GESTURE_ZOOM gesture.
12163     *
12164     * @ref Elm_Gesture_Rotate_Info is the info reported for @ref ELM_GESTURE_ROTATE gesture.
12165     *
12166     *
12167     * Gesture Layer Tweaks:
12168     *
12169     * Note that line, flick, gestures can start without the need to remove fingers from surface.
12170     * When user fingers rests on same-spot gesture is ended and starts again when fingers moved.
12171     *
12172     * Setting glayer_continues_enable to false in @ref Config will change this behavior
12173     * so gesture starts when user touches (a *DOWN event) touch-surface
12174     * and ends when no fingers touches surface (a *UP event).
12175     */
12176
12177    /**
12178     * @enum _Elm_Gesture_Types
12179     * Enum of supported gesture types.
12180     * @ingroup Elm_Gesture_Layer
12181     */
12182    enum _Elm_Gesture_Types
12183      {
12184         ELM_GESTURE_FIRST = 0,
12185
12186         ELM_GESTURE_N_TAPS, /**< N fingers single taps */
12187         ELM_GESTURE_N_LONG_TAPS, /**< N fingers single long-taps */
12188         ELM_GESTURE_N_DOUBLE_TAPS, /**< N fingers double-single taps */
12189         ELM_GESTURE_N_TRIPLE_TAPS, /**< N fingers triple-single taps */
12190
12191         ELM_GESTURE_MOMENTUM, /**< Reports momentum in the dircetion of move */
12192
12193         ELM_GESTURE_N_LINES, /**< N fingers line gesture */
12194         ELM_GESTURE_N_FLICKS, /**< N fingers flick gesture */
12195
12196         ELM_GESTURE_ZOOM, /**< Zoom */
12197         ELM_GESTURE_ROTATE, /**< Rotate */
12198
12199         ELM_GESTURE_LAST
12200      };
12201
12202    /**
12203     * @typedef Elm_Gesture_Types
12204     * gesture types enum
12205     * @ingroup Elm_Gesture_Layer
12206     */
12207    typedef enum _Elm_Gesture_Types Elm_Gesture_Types;
12208
12209    /**
12210     * @enum _Elm_Gesture_State
12211     * Enum of gesture states.
12212     * @ingroup Elm_Gesture_Layer
12213     */
12214    enum _Elm_Gesture_State
12215      {
12216         ELM_GESTURE_STATE_UNDEFINED = -1, /**< Gesture not STARTed */
12217         ELM_GESTURE_STATE_START,          /**< Gesture STARTed     */
12218         ELM_GESTURE_STATE_MOVE,           /**< Gesture is ongoing  */
12219         ELM_GESTURE_STATE_END,            /**< Gesture completed   */
12220         ELM_GESTURE_STATE_ABORT    /**< Onging gesture was ABORTed */
12221      };
12222
12223    /**
12224     * @typedef Elm_Gesture_State
12225     * gesture states enum
12226     * @ingroup Elm_Gesture_Layer
12227     */
12228    typedef enum _Elm_Gesture_State Elm_Gesture_State;
12229
12230    /**
12231     * @struct _Elm_Gesture_Taps_Info
12232     * Struct holds taps info for user
12233     * @ingroup Elm_Gesture_Layer
12234     */
12235    struct _Elm_Gesture_Taps_Info
12236      {
12237         Evas_Coord x, y;         /**< Holds center point between fingers */
12238         unsigned int n;          /**< Number of fingers tapped           */
12239         unsigned int timestamp;  /**< event timestamp       */
12240      };
12241
12242    /**
12243     * @typedef Elm_Gesture_Taps_Info
12244     * holds taps info for user
12245     * @ingroup Elm_Gesture_Layer
12246     */
12247    typedef struct _Elm_Gesture_Taps_Info Elm_Gesture_Taps_Info;
12248
12249    /**
12250     * @struct _Elm_Gesture_Momentum_Info
12251     * Struct holds momentum info for user
12252     * x1 and y1 are not necessarily in sync
12253     * x1 holds x value of x direction starting point
12254     * and same holds for y1.
12255     * This is noticeable when doing V-shape movement
12256     * @ingroup Elm_Gesture_Layer
12257     */
12258    struct _Elm_Gesture_Momentum_Info
12259      {  /* Report line ends, timestamps, and momentum computed        */
12260         Evas_Coord x1; /**< Final-swipe direction starting point on X */
12261         Evas_Coord y1; /**< Final-swipe direction starting point on Y */
12262         Evas_Coord x2; /**< Final-swipe direction ending point on X   */
12263         Evas_Coord y2; /**< Final-swipe direction ending point on Y   */
12264
12265         unsigned int tx; /**< Timestamp of start of final x-swipe */
12266         unsigned int ty; /**< Timestamp of start of final y-swipe */
12267
12268         Evas_Coord mx; /**< Momentum on X */
12269         Evas_Coord my; /**< Momentum on Y */
12270      };
12271
12272    /**
12273     * @typedef Elm_Gesture_Momentum_Info
12274     * holds momentum info for user
12275     * @ingroup Elm_Gesture_Layer
12276     */
12277     typedef struct _Elm_Gesture_Momentum_Info Elm_Gesture_Momentum_Info;
12278
12279    /**
12280     * @struct _Elm_Gesture_Line_Info
12281     * Struct holds line info for user
12282     * @ingroup Elm_Gesture_Layer
12283     */
12284    struct _Elm_Gesture_Line_Info
12285      {  /* Report line ends, timestamps, and momentum computed      */
12286         Elm_Gesture_Momentum_Info momentum; /**< Line momentum info */
12287         unsigned int n;            /**< Number of fingers (lines)   */
12288         /* FIXME should be radians, bot degrees */
12289         double angle;              /**< Angle (direction) of lines  */
12290      };
12291
12292    /**
12293     * @typedef Elm_Gesture_Line_Info
12294     * Holds line info for user
12295     * @ingroup Elm_Gesture_Layer
12296     */
12297     typedef struct  _Elm_Gesture_Line_Info Elm_Gesture_Line_Info;
12298
12299    /**
12300     * @struct _Elm_Gesture_Zoom_Info
12301     * Struct holds zoom info for user
12302     * @ingroup Elm_Gesture_Layer
12303     */
12304    struct _Elm_Gesture_Zoom_Info
12305      {
12306         Evas_Coord x, y;       /**< Holds zoom center point reported to user  */
12307         Evas_Coord radius; /**< Holds radius between fingers reported to user */
12308         double zoom;            /**< Zoom value: 1.0 means no zoom             */
12309         double momentum;        /**< Zoom momentum: zoom growth per second (NOT YET SUPPORTED) */
12310      };
12311
12312    /**
12313     * @typedef Elm_Gesture_Zoom_Info
12314     * Holds zoom info for user
12315     * @ingroup Elm_Gesture_Layer
12316     */
12317    typedef struct _Elm_Gesture_Zoom_Info Elm_Gesture_Zoom_Info;
12318
12319    /**
12320     * @struct _Elm_Gesture_Rotate_Info
12321     * Struct holds rotation info for user
12322     * @ingroup Elm_Gesture_Layer
12323     */
12324    struct _Elm_Gesture_Rotate_Info
12325      {
12326         Evas_Coord x, y;   /**< Holds zoom center point reported to user      */
12327         Evas_Coord radius; /**< Holds radius between fingers reported to user */
12328         double base_angle; /**< Holds start-angle */
12329         double angle;      /**< Rotation value: 0.0 means no rotation         */
12330         double momentum;   /**< Rotation momentum: rotation done per second (NOT YET SUPPORTED) */
12331      };
12332
12333    /**
12334     * @typedef Elm_Gesture_Rotate_Info
12335     * Holds rotation info for user
12336     * @ingroup Elm_Gesture_Layer
12337     */
12338    typedef struct _Elm_Gesture_Rotate_Info Elm_Gesture_Rotate_Info;
12339
12340    /**
12341     * @typedef Elm_Gesture_Event_Cb
12342     * User callback used to stream gesture info from gesture layer
12343     * @param data user data
12344     * @param event_info gesture report info
12345     * Returns a flag field to be applied on the causing event.
12346     * You should probably return EVAS_EVENT_FLAG_ON_HOLD if your widget acted
12347     * upon the event, in an irreversible way.
12348     *
12349     * @ingroup Elm_Gesture_Layer
12350     */
12351    typedef Evas_Event_Flags (*Elm_Gesture_Event_Cb) (void *data, void *event_info);
12352
12353    /**
12354     * Use function to set callbacks to be notified about
12355     * change of state of gesture.
12356     * When a user registers a callback with this function
12357     * this means this gesture has to be tested.
12358     *
12359     * When ALL callbacks for a gesture are set to NULL
12360     * it means user isn't interested in gesture-state
12361     * and it will not be tested.
12362     *
12363     * @param obj Pointer to gesture-layer.
12364     * @param idx The gesture you would like to track its state.
12365     * @param cb callback function pointer.
12366     * @param cb_type what event this callback tracks: START, MOVE, END, ABORT.
12367     * @param data user info to be sent to callback (usually, Smart Data)
12368     *
12369     * @ingroup Elm_Gesture_Layer
12370     */
12371    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);
12372
12373    /**
12374     * Call this function to get repeat-events settings.
12375     *
12376     * @param obj Pointer to gesture-layer.
12377     *
12378     * @return repeat events settings.
12379     * @see elm_gesture_layer_hold_events_set()
12380     * @ingroup Elm_Gesture_Layer
12381     */
12382    EAPI Eina_Bool elm_gesture_layer_hold_events_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
12383
12384    /**
12385     * This function called in order to make gesture-layer repeat events.
12386     * Set this of you like to get the raw events only if gestures were not detected.
12387     * Clear this if you like gesture layer to fwd events as testing gestures.
12388     *
12389     * @param obj Pointer to gesture-layer.
12390     * @param r Repeat: TRUE/FALSE
12391     *
12392     * @ingroup Elm_Gesture_Layer
12393     */
12394    EAPI void elm_gesture_layer_hold_events_set(Evas_Object *obj, Eina_Bool r) EINA_ARG_NONNULL(1);
12395
12396    /**
12397     * This function sets step-value for zoom action.
12398     * Set step to any positive value.
12399     * Cancel step setting by setting to 0.0
12400     *
12401     * @param obj Pointer to gesture-layer.
12402     * @param s new zoom step value.
12403     *
12404     * @ingroup Elm_Gesture_Layer
12405     */
12406    EAPI void elm_gesture_layer_zoom_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
12407
12408    /**
12409     * This function sets step-value for rotate action.
12410     * Set step to any positive value.
12411     * Cancel step setting by setting to 0.0
12412     *
12413     * @param obj Pointer to gesture-layer.
12414     * @param s new roatate step value.
12415     *
12416     * @ingroup Elm_Gesture_Layer
12417     */
12418    EAPI void elm_gesture_layer_rotate_step_set(Evas_Object *obj, double s) EINA_ARG_NONNULL(1);
12419
12420    /**
12421     * This function called to attach gesture-layer to an Evas_Object.
12422     * @param obj Pointer to gesture-layer.
12423     * @param t Pointer to underlying object (AKA Target)
12424     *
12425     * @return TRUE, FALSE on success, failure.
12426     *
12427     * @ingroup Elm_Gesture_Layer
12428     */
12429    EAPI Eina_Bool elm_gesture_layer_attach(Evas_Object *obj, Evas_Object *t) EINA_ARG_NONNULL(1, 2);
12430
12431    /**
12432     * Call this function to construct a new gesture-layer object.
12433     * This does not activate the gesture layer. You have to
12434     * call elm_gesture_layer_attach in order to 'activate' gesture-layer.
12435     *
12436     * @param parent the parent object.
12437     *
12438     * @return Pointer to new gesture-layer object.
12439     *
12440     * @ingroup Elm_Gesture_Layer
12441     */
12442    EAPI Evas_Object *elm_gesture_layer_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12443
12444    /**
12445     * @defgroup Thumb Thumb
12446     *
12447     * @image html img/widget/thumb/preview-00.png
12448     * @image latex img/widget/thumb/preview-00.eps
12449     *
12450     * A thumb object is used for displaying the thumbnail of an image or video.
12451     * You must have compiled Elementary with Ethumb_Client support and the DBus
12452     * service must be present and auto-activated in order to have thumbnails to
12453     * be generated.
12454     *
12455     * Once the thumbnail object becomes visible, it will check if there is a
12456     * previously generated thumbnail image for the file set on it. If not, it
12457     * will start generating this thumbnail.
12458     *
12459     * Different config settings will cause different thumbnails to be generated
12460     * even on the same file.
12461     *
12462     * Generated thumbnails are stored under @c $HOME/.thumbnails/. Check the
12463     * Ethumb documentation to change this path, and to see other configuration
12464     * options.
12465     *
12466     * Signals that you can add callbacks for are:
12467     *
12468     * - "clicked" - This is called when a user has clicked the thumb without dragging
12469     *             around.
12470     * - "clicked,double" - This is called when a user has double-clicked the thumb.
12471     * - "press" - This is called when a user has pressed down the thumb.
12472     * - "generate,start" - The thumbnail generation started.
12473     * - "generate,stop" - The generation process stopped.
12474     * - "generate,error" - The generation failed.
12475     * - "load,error" - The thumbnail image loading failed.
12476     *
12477     * available styles:
12478     * - default
12479     * - noframe
12480     *
12481     * An example of use of thumbnail:
12482     *
12483     * - @ref thumb_example_01
12484     */
12485
12486    /**
12487     * @addtogroup Thumb
12488     * @{
12489     */
12490
12491    /**
12492     * @enum _Elm_Thumb_Animation_Setting
12493     * @typedef Elm_Thumb_Animation_Setting
12494     *
12495     * Used to set if a video thumbnail is animating or not.
12496     *
12497     * @ingroup Thumb
12498     */
12499    typedef enum _Elm_Thumb_Animation_Setting
12500      {
12501         ELM_THUMB_ANIMATION_START = 0, /**< Play animation once */
12502         ELM_THUMB_ANIMATION_LOOP,      /**< Keep playing animation until stop is requested */
12503         ELM_THUMB_ANIMATION_STOP,      /**< Stop playing the animation */
12504         ELM_THUMB_ANIMATION_LAST
12505      } Elm_Thumb_Animation_Setting;
12506
12507    /**
12508     * Add a new thumb object to the parent.
12509     *
12510     * @param parent The parent object.
12511     * @return The new object or NULL if it cannot be created.
12512     *
12513     * @see elm_thumb_file_set()
12514     * @see elm_thumb_ethumb_client_get()
12515     *
12516     * @ingroup Thumb
12517     */
12518    EAPI Evas_Object                 *elm_thumb_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12519    /**
12520     * Reload thumbnail if it was generated before.
12521     *
12522     * @param obj The thumb object to reload
12523     *
12524     * This is useful if the ethumb client configuration changed, like its
12525     * size, aspect or any other property one set in the handle returned
12526     * by elm_thumb_ethumb_client_get().
12527     *
12528     * If the options didn't change, the thumbnail won't be generated again, but
12529     * the old one will still be used.
12530     *
12531     * @see elm_thumb_file_set()
12532     *
12533     * @ingroup Thumb
12534     */
12535    EAPI void                         elm_thumb_reload(Evas_Object *obj) EINA_ARG_NONNULL(1);
12536    /**
12537     * Set the file that will be used as thumbnail.
12538     *
12539     * @param obj The thumb object.
12540     * @param file The path to file that will be used as thumb.
12541     * @param key The key used in case of an EET file.
12542     *
12543     * The file can be an image or a video (in that case, acceptable extensions are:
12544     * avi, mp4, ogv, mov, mpg and wmv). To start the video animation, use the
12545     * function elm_thumb_animate().
12546     *
12547     * @see elm_thumb_file_get()
12548     * @see elm_thumb_reload()
12549     * @see elm_thumb_animate()
12550     *
12551     * @ingroup Thumb
12552     */
12553    EAPI void                         elm_thumb_file_set(Evas_Object *obj, const char *file, const char *key) EINA_ARG_NONNULL(1);
12554    /**
12555     * Get the image or video path and key used to generate the thumbnail.
12556     *
12557     * @param obj The thumb object.
12558     * @param file Pointer to filename.
12559     * @param key Pointer to key.
12560     *
12561     * @see elm_thumb_file_set()
12562     * @see elm_thumb_path_get()
12563     *
12564     * @ingroup Thumb
12565     */
12566    EAPI void                         elm_thumb_file_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
12567    /**
12568     * Get the path and key to the image or video generated by ethumb.
12569     *
12570     * One just need to make sure that the thumbnail was generated before getting
12571     * its path; otherwise, the path will be NULL. One way to do that is by asking
12572     * for the path when/after the "generate,stop" smart callback is called.
12573     *
12574     * @param obj The thumb object.
12575     * @param file Pointer to thumb path.
12576     * @param key Pointer to thumb key.
12577     *
12578     * @see elm_thumb_file_get()
12579     *
12580     * @ingroup Thumb
12581     */
12582    EAPI void                         elm_thumb_path_get(const Evas_Object *obj, const char **file, const char **key) EINA_ARG_NONNULL(1);
12583    /**
12584     * Set the animation state for the thumb object. If its content is an animated
12585     * video, you may start/stop the animation or tell it to play continuously and
12586     * looping.
12587     *
12588     * @param obj The thumb object.
12589     * @param setting The animation setting.
12590     *
12591     * @see elm_thumb_file_set()
12592     *
12593     * @ingroup Thumb
12594     */
12595    EAPI void                         elm_thumb_animate_set(Evas_Object *obj, Elm_Thumb_Animation_Setting s) EINA_ARG_NONNULL(1);
12596    /**
12597     * Get the animation state for the thumb object.
12598     *
12599     * @param obj The thumb object.
12600     * @return getting The animation setting or @c ELM_THUMB_ANIMATION_LAST,
12601     * on errors.
12602     *
12603     * @see elm_thumb_animate_set()
12604     *
12605     * @ingroup Thumb
12606     */
12607    EAPI Elm_Thumb_Animation_Setting  elm_thumb_animate_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12608    /**
12609     * Get the ethumb_client handle so custom configuration can be made.
12610     *
12611     * @return Ethumb_Client instance or NULL.
12612     *
12613     * This must be called before the objects are created to be sure no object is
12614     * visible and no generation started.
12615     *
12616     * Example of usage:
12617     *
12618     * @code
12619     * #include <Elementary.h>
12620     * #ifndef ELM_LIB_QUICKLAUNCH
12621     * EAPI_MAIN int
12622     * elm_main(int argc, char **argv)
12623     * {
12624     *    Ethumb_Client *client;
12625     *
12626     *    elm_need_ethumb();
12627     *
12628     *    // ... your code
12629     *
12630     *    client = elm_thumb_ethumb_client_get();
12631     *    if (!client)
12632     *      {
12633     *         ERR("could not get ethumb_client");
12634     *         return 1;
12635     *      }
12636     *    ethumb_client_size_set(client, 100, 100);
12637     *    ethumb_client_crop_align_set(client, 0.5, 0.5);
12638     *    // ... your code
12639     *
12640     *    // Create elm_thumb objects here
12641     *
12642     *    elm_run();
12643     *    elm_shutdown();
12644     *    return 0;
12645     * }
12646     * #endif
12647     * ELM_MAIN()
12648     * @endcode
12649     *
12650     * @note There's only one client handle for Ethumb, so once a configuration
12651     * change is done to it, any other request for thumbnails (for any thumbnail
12652     * object) will use that configuration. Thus, this configuration is global.
12653     *
12654     * @ingroup Thumb
12655     */
12656    EAPI void                        *elm_thumb_ethumb_client_get(void);
12657    /**
12658     * Get the ethumb_client connection state.
12659     *
12660     * @return EINA_TRUE if the client is connected to the server or EINA_FALSE
12661     * otherwise.
12662     */
12663    EAPI Eina_Bool                    elm_thumb_ethumb_client_connected(void);
12664    /**
12665     * Make the thumbnail 'editable'.
12666     *
12667     * @param obj Thumb object.
12668     * @param set Turn on or off editability. Default is @c EINA_FALSE.
12669     *
12670     * This means the thumbnail is a valid drag target for drag and drop, and can be
12671     * cut or pasted too.
12672     *
12673     * @see elm_thumb_editable_get()
12674     *
12675     * @ingroup Thumb
12676     */
12677    EAPI Eina_Bool                    elm_thumb_editable_set(Evas_Object *obj, Eina_Bool edit) EINA_ARG_NONNULL(1);
12678    /**
12679     * Make the thumbnail 'editable'.
12680     *
12681     * @param obj Thumb object.
12682     * @return Editability.
12683     *
12684     * This means the thumbnail is a valid drag target for drag and drop, and can be
12685     * cut or pasted too.
12686     *
12687     * @see elm_thumb_editable_set()
12688     *
12689     * @ingroup Thumb
12690     */
12691    EAPI Eina_Bool                    elm_thumb_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12692
12693    /**
12694     * @}
12695     */
12696
12697    /**
12698     * @defgroup Hoversel Hoversel
12699     *
12700     * @image html img/widget/hoversel/preview-00.png
12701     * @image latex img/widget/hoversel/preview-00.eps
12702     *
12703     * A hoversel is a button that pops up a list of items (automatically
12704     * choosing the direction to display) that have a label and, optionally, an
12705     * icon to select from. It is a convenience widget to avoid the need to do
12706     * all the piecing together yourself. It is intended for a small number of
12707     * items in the hoversel menu (no more than 8), though is capable of many
12708     * more.
12709     *
12710     * Signals that you can add callbacks for are:
12711     * "clicked" - the user clicked the hoversel button and popped up the sel
12712     * "selected" - an item in the hoversel list is selected. event_info is the item
12713     * "dismissed" - the hover is dismissed
12714     *
12715     * See @ref tutorial_hoversel for an example.
12716     * @{
12717     */
12718    typedef struct _Elm_Hoversel_Item Elm_Hoversel_Item; /**< Item of Elm_Hoversel. Sub-type of Elm_Widget_Item */
12719    /**
12720     * @brief Add a new Hoversel object
12721     *
12722     * @param parent The parent object
12723     * @return The new object or NULL if it cannot be created
12724     */
12725    EAPI Evas_Object       *elm_hoversel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
12726    /**
12727     * @brief This sets the hoversel to expand horizontally.
12728     *
12729     * @param obj The hoversel object
12730     * @param horizontal If true, the hover will expand horizontally to the
12731     * right.
12732     *
12733     * @note The initial button will display horizontally regardless of this
12734     * setting.
12735     */
12736    EAPI void               elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
12737    /**
12738     * @brief This returns whether the hoversel is set to expand horizontally.
12739     *
12740     * @param obj The hoversel object
12741     * @return If true, the hover will expand horizontally to the right.
12742     *
12743     * @see elm_hoversel_horizontal_set()
12744     */
12745    EAPI Eina_Bool          elm_hoversel_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12746    /**
12747     * @brief Set the Hover parent
12748     *
12749     * @param obj The hoversel object
12750     * @param parent The parent to use
12751     *
12752     * Sets the hover parent object, the area that will be darkened when the
12753     * hoversel is clicked. Should probably be the window that the hoversel is
12754     * in. See @ref Hover objects for more information.
12755     */
12756    EAPI void               elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
12757    /**
12758     * @brief Get the Hover parent
12759     *
12760     * @param obj The hoversel object
12761     * @return The used parent
12762     *
12763     * Gets the hover parent object.
12764     *
12765     * @see elm_hoversel_hover_parent_set()
12766     */
12767    EAPI Evas_Object       *elm_hoversel_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12768    /**
12769     * @brief Set the hoversel button label
12770     *
12771     * @param obj The hoversel object
12772     * @param label The label text.
12773     *
12774     * This sets the label of the button that is always visible (before it is
12775     * clicked and expanded).
12776     *
12777     * @deprecated elm_object_text_set()
12778     */
12779    EINA_DEPRECATED EAPI void               elm_hoversel_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
12780    /**
12781     * @brief Get the hoversel button label
12782     *
12783     * @param obj The hoversel object
12784     * @return The label text.
12785     *
12786     * @deprecated elm_object_text_get()
12787     */
12788    EINA_DEPRECATED EAPI const char        *elm_hoversel_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12789    /**
12790     * @brief Set the icon of the hoversel button
12791     *
12792     * @param obj The hoversel object
12793     * @param icon The icon object
12794     *
12795     * Sets the icon of the button that is always visible (before it is clicked
12796     * and expanded).  Once the icon object is set, a previously set one will be
12797     * deleted, if you want to keep that old content object, use the
12798     * elm_hoversel_icon_unset() function.
12799     *
12800     * @see elm_button_icon_set()
12801     */
12802    EAPI void               elm_hoversel_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
12803    /**
12804     * @brief Get the icon of the hoversel button
12805     *
12806     * @param obj The hoversel object
12807     * @return The icon object
12808     *
12809     * Get the icon of the button that is always visible (before it is clicked
12810     * and expanded). Also see elm_button_icon_get().
12811     *
12812     * @see elm_hoversel_icon_set()
12813     */
12814    EAPI Evas_Object       *elm_hoversel_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12815    /**
12816     * @brief Get and unparent the icon of the hoversel button
12817     *
12818     * @param obj The hoversel object
12819     * @return The icon object that was being used
12820     *
12821     * Unparent and return the icon of the button that is always visible
12822     * (before it is clicked and expanded).
12823     *
12824     * @see elm_hoversel_icon_set()
12825     * @see elm_button_icon_unset()
12826     */
12827    EAPI Evas_Object       *elm_hoversel_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
12828    /**
12829     * @brief This triggers the hoversel popup from code, the same as if the user
12830     * had clicked the button.
12831     *
12832     * @param obj The hoversel object
12833     */
12834    EAPI void               elm_hoversel_hover_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
12835    /**
12836     * @brief This dismisses the hoversel popup as if the user had clicked
12837     * outside the hover.
12838     *
12839     * @param obj The hoversel object
12840     */
12841    EAPI void               elm_hoversel_hover_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
12842    /**
12843     * @brief Returns whether the hoversel is expanded.
12844     *
12845     * @param obj The hoversel object
12846     * @return  This will return EINA_TRUE if the hoversel is expanded or
12847     * EINA_FALSE if it is not expanded.
12848     */
12849    EAPI Eina_Bool          elm_hoversel_expanded_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12850    /**
12851     * @brief This will remove all the children items from the hoversel.
12852     *
12853     * @param obj The hoversel object
12854     *
12855     * @warning Should @b not be called while the hoversel is active; use
12856     * elm_hoversel_expanded_get() to check first.
12857     *
12858     * @see elm_hoversel_item_del_cb_set()
12859     * @see elm_hoversel_item_del()
12860     */
12861    EAPI void               elm_hoversel_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
12862    /**
12863     * @brief Get the list of items within the given hoversel.
12864     *
12865     * @param obj The hoversel object
12866     * @return Returns a list of Elm_Hoversel_Item*
12867     *
12868     * @see elm_hoversel_item_add()
12869     */
12870    EAPI const Eina_List   *elm_hoversel_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
12871    /**
12872     * @brief Add an item to the hoversel button
12873     *
12874     * @param obj The hoversel object
12875     * @param label The text label to use for the item (NULL if not desired)
12876     * @param icon_file An image file path on disk to use for the icon or standard
12877     * icon name (NULL if not desired)
12878     * @param icon_type The icon type if relevant
12879     * @param func Convenience function to call when this item is selected
12880     * @param data Data to pass to item-related functions
12881     * @return A handle to the item added.
12882     *
12883     * This adds an item to the hoversel to show when it is clicked. Note: if you
12884     * need to use an icon from an edje file then use
12885     * elm_hoversel_item_icon_set() right after the this function, and set
12886     * icon_file to NULL here.
12887     *
12888     * For more information on what @p icon_file and @p icon_type are see the
12889     * @ref Icon "icon documentation".
12890     */
12891    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);
12892    /**
12893     * @brief Delete an item from the hoversel
12894     *
12895     * @param item The item to delete
12896     *
12897     * This deletes the item from the hoversel (should not be called while the
12898     * hoversel is active; use elm_hoversel_expanded_get() to check first).
12899     *
12900     * @see elm_hoversel_item_add()
12901     * @see elm_hoversel_item_del_cb_set()
12902     */
12903    EAPI void               elm_hoversel_item_del(Elm_Hoversel_Item *item) EINA_ARG_NONNULL(1);
12904    /**
12905     * @brief Set the function to be called when an item from the hoversel is
12906     * freed.
12907     *
12908     * @param item The item to set the callback on
12909     * @param func The function called
12910     *
12911     * That function will receive these parameters:
12912     * @li void *item_data
12913     * @li Evas_Object *the_item_object
12914     * @li Elm_Hoversel_Item *the_object_struct
12915     *
12916     * @see elm_hoversel_item_add()
12917     */
12918    EAPI void               elm_hoversel_item_del_cb_set(Elm_Hoversel_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
12919    /**
12920     * @brief This returns the data pointer supplied with elm_hoversel_item_add()
12921     * that will be passed to associated function callbacks.
12922     *
12923     * @param item The item to get the data from
12924     * @return The data pointer set with elm_hoversel_item_add()
12925     *
12926     * @see elm_hoversel_item_add()
12927     */
12928    EAPI void              *elm_hoversel_item_data_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
12929    /**
12930     * @brief This returns the label text of the given hoversel item.
12931     *
12932     * @param item The item to get the label
12933     * @return The label text of the hoversel item
12934     *
12935     * @see elm_hoversel_item_add()
12936     */
12937    EAPI const char        *elm_hoversel_item_label_get(const Elm_Hoversel_Item *it) EINA_ARG_NONNULL(1);
12938    /**
12939     * @brief This sets the icon for the given hoversel item.
12940     *
12941     * @param item The item to set the icon
12942     * @param icon_file An image file path on disk to use for the icon or standard
12943     * icon name
12944     * @param icon_group The edje group to use if @p icon_file is an edje file. Set this
12945     * to NULL if the icon is not an edje file
12946     * @param icon_type The icon type
12947     *
12948     * The icon can be loaded from the standard set, from an image file, or from
12949     * an edje file.
12950     *
12951     * @see elm_hoversel_item_add()
12952     */
12953    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);
12954    /**
12955     * @brief Get the icon object of the hoversel item
12956     *
12957     * @param item The item to get the icon from
12958     * @param icon_file The image file path on disk used for the icon or standard
12959     * icon name
12960     * @param icon_group The edje group used if @p icon_file is an edje file. NULL
12961     * if the icon is not an edje file
12962     * @param icon_type The icon type
12963     *
12964     * @see elm_hoversel_item_icon_set()
12965     * @see elm_hoversel_item_add()
12966     */
12967    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);
12968    /**
12969     * @}
12970     */
12971
12972    /**
12973     * @defgroup Toolbar Toolbar
12974     * @ingroup Elementary
12975     *
12976     * @image html img/widget/toolbar/preview-00.png
12977     * @image latex img/widget/toolbar/preview-00.eps width=\textwidth
12978     *
12979     * @image html img/toolbar.png
12980     * @image latex img/toolbar.eps width=\textwidth
12981     *
12982     * A toolbar is a widget that displays a list of items inside
12983     * a box. It can be scrollable, show a menu with items that don't fit
12984     * to toolbar size or even crop them.
12985     *
12986     * Only one item can be selected at a time.
12987     *
12988     * Items can have multiple states, or show menus when selected by the user.
12989     *
12990     * Smart callbacks one can listen to:
12991     * - "clicked" - when the user clicks on a toolbar item and becomes selected.
12992     *
12993     * Available styles for it:
12994     * - @c "default"
12995     * - @c "transparent" - no background or shadow, just show the content
12996     *
12997     * List of examples:
12998     * @li @ref toolbar_example_01
12999     * @li @ref toolbar_example_02
13000     * @li @ref toolbar_example_03
13001     */
13002
13003    /**
13004     * @addtogroup Toolbar
13005     * @{
13006     */
13007
13008    /**
13009     * @enum _Elm_Toolbar_Shrink_Mode
13010     * @typedef Elm_Toolbar_Shrink_Mode
13011     *
13012     * Set toolbar's items display behavior, it can be scrollabel,
13013     * show a menu with exceeding items, or simply hide them.
13014     *
13015     * @note Default value is #ELM_TOOLBAR_SHRINK_MENU. It reads value
13016     * from elm config.
13017     *
13018     * Values <b> don't </b> work as bitmask, only one can be choosen.
13019     *
13020     * @see elm_toolbar_mode_shrink_set()
13021     * @see elm_toolbar_mode_shrink_get()
13022     *
13023     * @ingroup Toolbar
13024     */
13025    typedef enum _Elm_Toolbar_Shrink_Mode
13026      {
13027         ELM_TOOLBAR_SHRINK_NONE,   /**< Set toolbar minimun size to fit all the items. */
13028         ELM_TOOLBAR_SHRINK_HIDE,   /**< Hide exceeding items. */
13029         ELM_TOOLBAR_SHRINK_SCROLL, /**< Allow accessing exceeding items through a scroller. */
13030         ELM_TOOLBAR_SHRINK_MENU    /**< Inserts a button to pop up a menu with exceeding items. */
13031      } Elm_Toolbar_Shrink_Mode;
13032
13033    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(). */
13034
13035    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(). */
13036
13037    /**
13038     * Add a new toolbar widget to the given parent Elementary
13039     * (container) object.
13040     *
13041     * @param parent The parent object.
13042     * @return a new toolbar widget handle or @c NULL, on errors.
13043     *
13044     * This function inserts a new toolbar widget on the canvas.
13045     *
13046     * @ingroup Toolbar
13047     */
13048    EAPI Evas_Object            *elm_toolbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
13049
13050    /**
13051     * Set the icon size, in pixels, to be used by toolbar items.
13052     *
13053     * @param obj The toolbar object
13054     * @param icon_size The icon size in pixels
13055     *
13056     * @note Default value is @c 32. It reads value from elm config.
13057     *
13058     * @see elm_toolbar_icon_size_get()
13059     *
13060     * @ingroup Toolbar
13061     */
13062    EAPI void                    elm_toolbar_icon_size_set(Evas_Object *obj, int icon_size) EINA_ARG_NONNULL(1);
13063
13064    /**
13065     * Get the icon size, in pixels, to be used by toolbar items.
13066     *
13067     * @param obj The toolbar object.
13068     * @return The icon size in pixels.
13069     *
13070     * @see elm_toolbar_icon_size_set() for details.
13071     *
13072     * @ingroup Toolbar
13073     */
13074    EAPI int                     elm_toolbar_icon_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13075
13076    /**
13077     * Sets icon lookup order, for toolbar items' icons.
13078     *
13079     * @param obj The toolbar object.
13080     * @param order The icon lookup order.
13081     *
13082     * Icons added before calling this function will not be affected.
13083     * The default lookup order is #ELM_ICON_LOOKUP_THEME_FDO.
13084     *
13085     * @see elm_toolbar_icon_order_lookup_get()
13086     *
13087     * @ingroup Toolbar
13088     */
13089    EAPI void                    elm_toolbar_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order) EINA_ARG_NONNULL(1);
13090
13091    /**
13092     * Gets the icon lookup order.
13093     *
13094     * @param obj The toolbar object.
13095     * @return The icon lookup order.
13096     *
13097     * @see elm_toolbar_icon_order_lookup_set() for details.
13098     *
13099     * @ingroup Toolbar
13100     */
13101    EAPI Elm_Icon_Lookup_Order   elm_toolbar_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13102
13103    /**
13104     * Set whether the toolbar items' should be selected by the user or not.
13105     *
13106     * @param obj The toolbar object.
13107     * @param wrap @c EINA_TRUE to disable selection or @c EINA_FALSE to
13108     * enable it.
13109     *
13110     * This will turn off the ability to select items entirely and they will
13111     * neither appear selected nor emit selected signals. The clicked
13112     * callback function will still be called.
13113     *
13114     * Selection is enabled by default.
13115     *
13116     * @see elm_toolbar_no_select_mode_get().
13117     *
13118     * @ingroup Toolbar
13119     */
13120    EAPI void                    elm_toolbar_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
13121
13122    /**
13123     * Set whether the toolbar items' should be selected by the user or not.
13124     *
13125     * @param obj The toolbar object.
13126     * @return @c EINA_TRUE means items can be selected. @c EINA_FALSE indicates
13127     * they can't. If @p obj is @c NULL, @c EINA_FALSE is returned.
13128     *
13129     * @see elm_toolbar_no_select_mode_set() for details.
13130     *
13131     * @ingroup Toolbar
13132     */
13133    EAPI Eina_Bool               elm_toolbar_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13134
13135    /**
13136     * Append item to the toolbar.
13137     *
13138     * @param obj The toolbar object.
13139     * @param icon A string with icon name or the absolute path of an image file.
13140     * @param label The label of the item.
13141     * @param func The function to call when the item is clicked.
13142     * @param data The data to associate with the item for related callbacks.
13143     * @return The created item or @c NULL upon failure.
13144     *
13145     * A new item will be created and appended to the toolbar, i.e., will
13146     * be set as @b last item.
13147     *
13148     * Items created with this method can be deleted with
13149     * elm_toolbar_item_del().
13150     *
13151     * Associated @p data can be properly freed when item is deleted if a
13152     * callback function is set with elm_toolbar_item_del_cb_set().
13153     *
13154     * If a function is passed as argument, it will be called everytime this item
13155     * is selected, i.e., the user clicks over an unselected item.
13156     * If such function isn't needed, just passing
13157     * @c NULL as @p func is enough. The same should be done for @p data.
13158     *
13159     * Toolbar will load icon image from fdo or current theme.
13160     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13161     * If an absolute path is provided it will load it direct from a file.
13162     *
13163     * @see elm_toolbar_item_icon_set()
13164     * @see elm_toolbar_item_del()
13165     * @see elm_toolbar_item_del_cb_set()
13166     *
13167     * @ingroup Toolbar
13168     */
13169    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);
13170
13171    /**
13172     * Prepend item to the toolbar.
13173     *
13174     * @param obj The toolbar object.
13175     * @param icon A string with icon name or the absolute path of an image file.
13176     * @param label The label of the item.
13177     * @param func The function to call when the item is clicked.
13178     * @param data The data to associate with the item for related callbacks.
13179     * @return The created item or @c NULL upon failure.
13180     *
13181     * A new item will be created and prepended to the toolbar, i.e., will
13182     * be set as @b first item.
13183     *
13184     * Items created with this method can be deleted with
13185     * elm_toolbar_item_del().
13186     *
13187     * Associated @p data can be properly freed when item is deleted if a
13188     * callback function is set with elm_toolbar_item_del_cb_set().
13189     *
13190     * If a function is passed as argument, it will be called everytime this item
13191     * is selected, i.e., the user clicks over an unselected item.
13192     * If such function isn't needed, just passing
13193     * @c NULL as @p func is enough. The same should be done for @p data.
13194     *
13195     * Toolbar will load icon image from fdo or current theme.
13196     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13197     * If an absolute path is provided it will load it direct from a file.
13198     *
13199     * @see elm_toolbar_item_icon_set()
13200     * @see elm_toolbar_item_del()
13201     * @see elm_toolbar_item_del_cb_set()
13202     *
13203     * @ingroup Toolbar
13204     */
13205    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);
13206
13207    /**
13208     * Insert a new item into the toolbar object before item @p before.
13209     *
13210     * @param obj The toolbar object.
13211     * @param before The toolbar item to insert before.
13212     * @param icon A string with icon name or the absolute path of an image file.
13213     * @param label The label of the item.
13214     * @param func The function to call when the item is clicked.
13215     * @param data The data to associate with the item for related callbacks.
13216     * @return The created item or @c NULL upon failure.
13217     *
13218     * A new item will be created and added to the toolbar. Its position in
13219     * this toolbar will be just before item @p before.
13220     *
13221     * Items created with this method can be deleted with
13222     * elm_toolbar_item_del().
13223     *
13224     * Associated @p data can be properly freed when item is deleted if a
13225     * callback function is set with elm_toolbar_item_del_cb_set().
13226     *
13227     * If a function is passed as argument, it will be called everytime this item
13228     * is selected, i.e., the user clicks over an unselected item.
13229     * If such function isn't needed, just passing
13230     * @c NULL as @p func is enough. The same should be done for @p data.
13231     *
13232     * Toolbar will load icon image from fdo or current theme.
13233     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13234     * If an absolute path is provided it will load it direct from a file.
13235     *
13236     * @see elm_toolbar_item_icon_set()
13237     * @see elm_toolbar_item_del()
13238     * @see elm_toolbar_item_del_cb_set()
13239     *
13240     * @ingroup Toolbar
13241     */
13242    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);
13243
13244    /**
13245     * Insert a new item into the toolbar object after item @p after.
13246     *
13247     * @param obj The toolbar object.
13248     * @param before The toolbar item to insert before.
13249     * @param icon A string with icon name or the absolute path of an image file.
13250     * @param label The label of the item.
13251     * @param func The function to call when the item is clicked.
13252     * @param data The data to associate with the item for related callbacks.
13253     * @return The created item or @c NULL upon failure.
13254     *
13255     * A new item will be created and added to the toolbar. Its position in
13256     * this toolbar will be just after item @p after.
13257     *
13258     * Items created with this method can be deleted with
13259     * elm_toolbar_item_del().
13260     *
13261     * Associated @p data can be properly freed when item is deleted if a
13262     * callback function is set with elm_toolbar_item_del_cb_set().
13263     *
13264     * If a function is passed as argument, it will be called everytime this item
13265     * is selected, i.e., the user clicks over an unselected item.
13266     * If such function isn't needed, just passing
13267     * @c NULL as @p func is enough. The same should be done for @p data.
13268     *
13269     * Toolbar will load icon image from fdo or current theme.
13270     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13271     * If an absolute path is provided it will load it direct from a file.
13272     *
13273     * @see elm_toolbar_item_icon_set()
13274     * @see elm_toolbar_item_del()
13275     * @see elm_toolbar_item_del_cb_set()
13276     *
13277     * @ingroup Toolbar
13278     */
13279    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);
13280
13281    /**
13282     * Get the first item in the given toolbar widget's list of
13283     * items.
13284     *
13285     * @param obj The toolbar object
13286     * @return The first item or @c NULL, if it has no items (and on
13287     * errors)
13288     *
13289     * @see elm_toolbar_item_append()
13290     * @see elm_toolbar_last_item_get()
13291     *
13292     * @ingroup Toolbar
13293     */
13294    EAPI Elm_Toolbar_Item       *elm_toolbar_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13295
13296    /**
13297     * Get the last item in the given toolbar widget's list of
13298     * items.
13299     *
13300     * @param obj The toolbar object
13301     * @return The last item or @c NULL, if it has no items (and on
13302     * errors)
13303     *
13304     * @see elm_toolbar_item_prepend()
13305     * @see elm_toolbar_first_item_get()
13306     *
13307     * @ingroup Toolbar
13308     */
13309    EAPI Elm_Toolbar_Item       *elm_toolbar_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13310
13311    /**
13312     * Get the item after @p item in toolbar.
13313     *
13314     * @param item The toolbar item.
13315     * @return The item after @p item, or @c NULL if none or on failure.
13316     *
13317     * @note If it is the last item, @c NULL will be returned.
13318     *
13319     * @see elm_toolbar_item_append()
13320     *
13321     * @ingroup Toolbar
13322     */
13323    EAPI Elm_Toolbar_Item       *elm_toolbar_item_next_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13324
13325    /**
13326     * Get the item before @p item in toolbar.
13327     *
13328     * @param item The toolbar item.
13329     * @return The item before @p item, or @c NULL if none or on failure.
13330     *
13331     * @note If it is the first item, @c NULL will be returned.
13332     *
13333     * @see elm_toolbar_item_prepend()
13334     *
13335     * @ingroup Toolbar
13336     */
13337    EAPI Elm_Toolbar_Item       *elm_toolbar_item_prev_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13338
13339    /**
13340     * Get the toolbar object from an item.
13341     *
13342     * @param item The item.
13343     * @return The toolbar object.
13344     *
13345     * This returns the toolbar object itself that an item belongs to.
13346     *
13347     * @ingroup Toolbar
13348     */
13349    EAPI Evas_Object            *elm_toolbar_item_toolbar_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13350
13351    /**
13352     * Set the priority of a toolbar item.
13353     *
13354     * @param item The toolbar item.
13355     * @param priority The item priority. The default is zero.
13356     *
13357     * This is used only when the toolbar shrink mode is set to
13358     * #ELM_TOOLBAR_SHRINK_MENU or #ELM_TOOLBAR_SHRINK_HIDE.
13359     * When space is less than required, items with low priority
13360     * will be removed from the toolbar and added to a dynamically-created menu,
13361     * while items with higher priority will remain on the toolbar,
13362     * with the same order they were added.
13363     *
13364     * @see elm_toolbar_item_priority_get()
13365     *
13366     * @ingroup Toolbar
13367     */
13368    EAPI void                    elm_toolbar_item_priority_set(Elm_Toolbar_Item *item, int priority) EINA_ARG_NONNULL(1);
13369
13370    /**
13371     * Get the priority of a toolbar item.
13372     *
13373     * @param item The toolbar item.
13374     * @return The @p item priority, or @c 0 on failure.
13375     *
13376     * @see elm_toolbar_item_priority_set() for details.
13377     *
13378     * @ingroup Toolbar
13379     */
13380    EAPI int                     elm_toolbar_item_priority_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13381
13382    /**
13383     * Get the label of item.
13384     *
13385     * @param item The item of toolbar.
13386     * @return The label of item.
13387     *
13388     * The return value is a pointer to the label associated to @p item when
13389     * it was created, with function elm_toolbar_item_append() or similar,
13390     * or later,
13391     * with function elm_toolbar_item_label_set. If no label
13392     * was passed as argument, it will return @c NULL.
13393     *
13394     * @see elm_toolbar_item_label_set() for more details.
13395     * @see elm_toolbar_item_append()
13396     *
13397     * @ingroup Toolbar
13398     */
13399    EAPI const char             *elm_toolbar_item_label_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13400
13401    /**
13402     * Set the label of item.
13403     *
13404     * @param item The item of toolbar.
13405     * @param text The label of item.
13406     *
13407     * The label to be displayed by the item.
13408     * Label will be placed at icons bottom (if set).
13409     *
13410     * If a label was passed as argument on item creation, with function
13411     * elm_toolbar_item_append() or similar, it will be already
13412     * displayed by the item.
13413     *
13414     * @see elm_toolbar_item_label_get()
13415     * @see elm_toolbar_item_append()
13416     *
13417     * @ingroup Toolbar
13418     */
13419    EAPI void                    elm_toolbar_item_label_set(Elm_Toolbar_Item *item, const char *label) EINA_ARG_NONNULL(1);
13420
13421    /**
13422     * Return the data associated with a given toolbar widget item.
13423     *
13424     * @param item The toolbar widget item handle.
13425     * @return The data associated with @p item.
13426     *
13427     * @see elm_toolbar_item_data_set()
13428     *
13429     * @ingroup Toolbar
13430     */
13431    EAPI void                   *elm_toolbar_item_data_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13432
13433    /**
13434     * Set the data associated with a given toolbar widget item.
13435     *
13436     * @param item The toolbar widget item handle.
13437     * @param data The new data pointer to set to @p item.
13438     *
13439     * This sets new item data on @p item.
13440     *
13441     * @warning The old data pointer won't be touched by this function, so
13442     * the user had better to free that old data himself/herself.
13443     *
13444     * @ingroup Toolbar
13445     */
13446    EAPI void                    elm_toolbar_item_data_set(Elm_Toolbar_Item *item, const void *data) EINA_ARG_NONNULL(1);
13447
13448    /**
13449     * Returns a pointer to a toolbar item by its label.
13450     *
13451     * @param obj The toolbar object.
13452     * @param label The label of the item to find.
13453     *
13454     * @return The pointer to the toolbar item matching @p label or @c NULL
13455     * on failure.
13456     *
13457     * @ingroup Toolbar
13458     */
13459    EAPI Elm_Toolbar_Item       *elm_toolbar_item_find_by_label(const Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
13460
13461    /*
13462     * Get whether the @p item is selected or not.
13463     *
13464     * @param item The toolbar item.
13465     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
13466     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
13467     *
13468     * @see elm_toolbar_selected_item_set() for details.
13469     * @see elm_toolbar_item_selected_get()
13470     *
13471     * @ingroup Toolbar
13472     */
13473    EAPI Eina_Bool               elm_toolbar_item_selected_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13474
13475    /**
13476     * Set the selected state of an item.
13477     *
13478     * @param item The toolbar item
13479     * @param selected The selected state
13480     *
13481     * This sets the selected state of the given item @p it.
13482     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
13483     *
13484     * If a new item is selected the previosly selected will be unselected.
13485     * Previoulsy selected item can be get with function
13486     * elm_toolbar_selected_item_get().
13487     *
13488     * Selected items will be highlighted.
13489     *
13490     * @see elm_toolbar_item_selected_get()
13491     * @see elm_toolbar_selected_item_get()
13492     *
13493     * @ingroup Toolbar
13494     */
13495    EAPI void                    elm_toolbar_item_selected_set(Elm_Toolbar_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
13496
13497    /**
13498     * Get the selected item.
13499     *
13500     * @param obj The toolbar object.
13501     * @return The selected toolbar item.
13502     *
13503     * The selected item can be unselected with function
13504     * elm_toolbar_item_selected_set().
13505     *
13506     * The selected item always will be highlighted on toolbar.
13507     *
13508     * @see elm_toolbar_selected_items_get()
13509     *
13510     * @ingroup Toolbar
13511     */
13512    EAPI Elm_Toolbar_Item       *elm_toolbar_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13513
13514    /**
13515     * Set the icon associated with @p item.
13516     *
13517     * @param obj The parent of this item.
13518     * @param item The toolbar item.
13519     * @param icon A string with icon name or the absolute path of an image file.
13520     *
13521     * Toolbar will load icon image from fdo or current theme.
13522     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13523     * If an absolute path is provided it will load it direct from a file.
13524     *
13525     * @see elm_toolbar_icon_order_lookup_set()
13526     * @see elm_toolbar_icon_order_lookup_get()
13527     *
13528     * @ingroup Toolbar
13529     */
13530    EAPI void                    elm_toolbar_item_icon_set(Elm_Toolbar_Item *item, const char *icon) EINA_ARG_NONNULL(1);
13531
13532    /**
13533     * Get the string used to set the icon of @p item.
13534     *
13535     * @param item The toolbar item.
13536     * @return The string associated with the icon object.
13537     *
13538     * @see elm_toolbar_item_icon_set() for details.
13539     *
13540     * @ingroup Toolbar
13541     */
13542    EAPI const char             *elm_toolbar_item_icon_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13543
13544    /**
13545     * Delete them item from the toolbar.
13546     *
13547     * @param item The item of toolbar to be deleted.
13548     *
13549     * @see elm_toolbar_item_append()
13550     * @see elm_toolbar_item_del_cb_set()
13551     *
13552     * @ingroup Toolbar
13553     */
13554    EAPI void                    elm_toolbar_item_del(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13555
13556    /**
13557     * Set the function called when a toolbar item is freed.
13558     *
13559     * @param item The item to set the callback on.
13560     * @param func The function called.
13561     *
13562     * If there is a @p func, then it will be called prior item's memory release.
13563     * That will be called with the following arguments:
13564     * @li item's data;
13565     * @li item's Evas object;
13566     * @li item itself;
13567     *
13568     * This way, a data associated to a toolbar item could be properly freed.
13569     *
13570     * @ingroup Toolbar
13571     */
13572    EAPI void                    elm_toolbar_item_del_cb_set(Elm_Toolbar_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
13573
13574    /**
13575     * Get a value whether toolbar item is disabled or not.
13576     *
13577     * @param item The item.
13578     * @return The disabled state.
13579     *
13580     * @see elm_toolbar_item_disabled_set() for more details.
13581     *
13582     * @ingroup Toolbar
13583     */
13584    EAPI Eina_Bool               elm_toolbar_item_disabled_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13585
13586    /**
13587     * Sets the disabled/enabled state of a toolbar item.
13588     *
13589     * @param item The item.
13590     * @param disabled The disabled state.
13591     *
13592     * A disabled item cannot be selected or unselected. It will also
13593     * change its appearance (generally greyed out). This sets the
13594     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
13595     * enabled).
13596     *
13597     * @ingroup Toolbar
13598     */
13599    EAPI void                    elm_toolbar_item_disabled_set(Elm_Toolbar_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
13600
13601    /**
13602     * Set or unset item as a separator.
13603     *
13604     * @param item The toolbar item.
13605     * @param setting @c EINA_TRUE to set item @p item as separator or
13606     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
13607     *
13608     * Items aren't set as separator by default.
13609     *
13610     * If set as separator it will display separator theme, so won't display
13611     * icons or label.
13612     *
13613     * @see elm_toolbar_item_separator_get()
13614     *
13615     * @ingroup Toolbar
13616     */
13617    EAPI void                    elm_toolbar_item_separator_set(Elm_Toolbar_Item *item, Eina_Bool separator) EINA_ARG_NONNULL(1);
13618
13619    /**
13620     * Get a value whether item is a separator or not.
13621     *
13622     * @param item The toolbar item.
13623     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
13624     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
13625     *
13626     * @see elm_toolbar_item_separator_set() for details.
13627     *
13628     * @ingroup Toolbar
13629     */
13630    EAPI Eina_Bool               elm_toolbar_item_separator_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13631
13632    /**
13633     * Set the shrink state of toolbar @p obj.
13634     *
13635     * @param obj The toolbar object.
13636     * @param shrink_mode Toolbar's items display behavior.
13637     *
13638     * The toolbar won't scroll if #ELM_TOOLBAR_SHRINK_NONE,
13639     * but will enforce a minimun size so all the items will fit, won't scroll
13640     * and won't show the items that don't fit if #ELM_TOOLBAR_SHRINK_HIDE,
13641     * will scroll if #ELM_TOOLBAR_SHRINK_SCROLL, and will create a button to
13642     * pop up excess elements with #ELM_TOOLBAR_SHRINK_MENU.
13643     *
13644     * @ingroup Toolbar
13645     */
13646    EAPI void                    elm_toolbar_mode_shrink_set(Evas_Object *obj, Elm_Toolbar_Shrink_Mode shrink_mode) EINA_ARG_NONNULL(1);
13647
13648    /**
13649     * Get the shrink mode of toolbar @p obj.
13650     *
13651     * @param obj The toolbar object.
13652     * @return Toolbar's items display behavior.
13653     *
13654     * @see elm_toolbar_mode_shrink_set() for details.
13655     *
13656     * @ingroup Toolbar
13657     */
13658    EAPI Elm_Toolbar_Shrink_Mode elm_toolbar_mode_shrink_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13659
13660    /**
13661     * Enable/disable homogenous mode.
13662     *
13663     * @param obj The toolbar object
13664     * @param homogeneous Assume the items within the toolbar are of the
13665     * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
13666     *
13667     * This will enable the homogeneous mode where items are of the same size.
13668     * @see elm_toolbar_homogeneous_get()
13669     *
13670     * @ingroup Toolbar
13671     */
13672    EAPI void                    elm_toolbar_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
13673
13674    /**
13675     * Get whether the homogenous mode is enabled.
13676     *
13677     * @param obj The toolbar object.
13678     * @return Assume the items within the toolbar are of the same height
13679     * and width (EINA_TRUE = on, EINA_FALSE = off).
13680     *
13681     * @see elm_toolbar_homogeneous_set()
13682     *
13683     * @ingroup Toolbar
13684     */
13685    EAPI Eina_Bool               elm_toolbar_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13686
13687    /**
13688     * Enable/disable homogenous mode.
13689     *
13690     * @param obj The toolbar object
13691     * @param homogeneous Assume the items within the toolbar are of the
13692     * same size (EINA_TRUE = on, EINA_FALSE = off). Default is @c EINA_FALSE.
13693     *
13694     * This will enable the homogeneous mode where items are of the same size.
13695     * @see elm_toolbar_homogeneous_get()
13696     *
13697     * @deprecated use elm_toolbar_homogeneous_set() instead.
13698     *
13699     * @ingroup Toolbar
13700     */
13701    EINA_DEPRECATED EAPI void    elm_toolbar_homogenous_set(Evas_Object *obj, Eina_Bool homogenous) EINA_ARG_NONNULL(1);
13702
13703    /**
13704     * Get whether the homogenous mode is enabled.
13705     *
13706     * @param obj The toolbar object.
13707     * @return Assume the items within the toolbar are of the same height
13708     * and width (EINA_TRUE = on, EINA_FALSE = off).
13709     *
13710     * @see elm_toolbar_homogeneous_set()
13711     * @deprecated use elm_toolbar_homogeneous_get() instead.
13712     *
13713     * @ingroup Toolbar
13714     */
13715    EINA_DEPRECATED EAPI Eina_Bool elm_toolbar_homogenous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13716
13717    /**
13718     * Set the parent object of the toolbar items' menus.
13719     *
13720     * @param obj The toolbar object.
13721     * @param parent The parent of the menu objects.
13722     *
13723     * Each item can be set as item menu, with elm_toolbar_item_menu_set().
13724     *
13725     * For more details about setting the parent for toolbar menus, see
13726     * elm_menu_parent_set().
13727     *
13728     * @see elm_menu_parent_set() for details.
13729     * @see elm_toolbar_item_menu_set() for details.
13730     *
13731     * @ingroup Toolbar
13732     */
13733    EAPI void                    elm_toolbar_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
13734
13735    /**
13736     * Get the parent object of the toolbar items' menus.
13737     *
13738     * @param obj The toolbar object.
13739     * @return The parent of the menu objects.
13740     *
13741     * @see elm_toolbar_menu_parent_set() for details.
13742     *
13743     * @ingroup Toolbar
13744     */
13745    EAPI Evas_Object            *elm_toolbar_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13746
13747    /**
13748     * Set the alignment of the items.
13749     *
13750     * @param obj The toolbar object.
13751     * @param align The new alignment, a float between <tt> 0.0 </tt>
13752     * and <tt> 1.0 </tt>.
13753     *
13754     * Alignment of toolbar items, from <tt> 0.0 </tt> to indicates to align
13755     * left, to <tt> 1.0 </tt>, to align to right. <tt> 0.5 </tt> centralize
13756     * items.
13757     *
13758     * Centered items by default.
13759     *
13760     * @see elm_toolbar_align_get()
13761     *
13762     * @ingroup Toolbar
13763     */
13764    EAPI void                    elm_toolbar_align_set(Evas_Object *obj, double align) EINA_ARG_NONNULL(1);
13765
13766    /**
13767     * Get the alignment of the items.
13768     *
13769     * @param obj The toolbar object.
13770     * @return toolbar items alignment, a float between <tt> 0.0 </tt> and
13771     * <tt> 1.0 </tt>.
13772     *
13773     * @see elm_toolbar_align_set() for details.
13774     *
13775     * @ingroup Toolbar
13776     */
13777    EAPI double                  elm_toolbar_align_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
13778
13779    /**
13780     * Set whether the toolbar item opens a menu.
13781     *
13782     * @param item The toolbar item.
13783     * @param menu If @c EINA_TRUE, @p item will opens a menu when selected.
13784     *
13785     * A toolbar item can be set to be a menu, using this function.
13786     *
13787     * Once it is set to be a menu, it can be manipulated through the
13788     * menu-like function elm_toolbar_menu_parent_set() and the other
13789     * elm_menu functions, using the Evas_Object @c menu returned by
13790     * elm_toolbar_item_menu_get().
13791     *
13792     * So, items to be displayed in this item's menu should be added with
13793     * elm_menu_item_add().
13794     *
13795     * The following code exemplifies the most basic usage:
13796     * @code
13797     * tb = elm_toolbar_add(win)
13798     * item = elm_toolbar_item_append(tb, "refresh", "Menu", NULL, NULL);
13799     * elm_toolbar_item_menu_set(item, EINA_TRUE);
13800     * elm_toolbar_menu_parent_set(tb, win);
13801     * menu = elm_toolbar_item_menu_get(item);
13802     * elm_menu_item_add(menu, NULL, "edit-cut", "Cut", NULL, NULL);
13803     * menu_item = elm_menu_item_add(menu, NULL, "edit-copy", "Copy", NULL,
13804     * NULL);
13805     * @endcode
13806     *
13807     * @see elm_toolbar_item_menu_get()
13808     *
13809     * @ingroup Toolbar
13810     */
13811    EAPI void                    elm_toolbar_item_menu_set(Elm_Toolbar_Item *item, Eina_Bool menu) EINA_ARG_NONNULL(1);
13812
13813    /**
13814     * Get toolbar item's menu.
13815     *
13816     * @param item The toolbar item.
13817     * @return Item's menu object or @c NULL on failure.
13818     *
13819     * If @p item wasn't set as menu item with elm_toolbar_item_menu_set(),
13820     * this function will set it.
13821     *
13822     * @see elm_toolbar_item_menu_set() for details.
13823     *
13824     * @ingroup Toolbar
13825     */
13826    EAPI Evas_Object            *elm_toolbar_item_menu_get(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13827
13828    /**
13829     * Add a new state to @p item.
13830     *
13831     * @param item The item.
13832     * @param icon A string with icon name or the absolute path of an image file.
13833     * @param label The label of the new state.
13834     * @param func The function to call when the item is clicked when this
13835     * state is selected.
13836     * @param data The data to associate with the state.
13837     * @return The toolbar item state, or @c NULL upon failure.
13838     *
13839     * Toolbar will load icon image from fdo or current theme.
13840     * This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
13841     * If an absolute path is provided it will load it direct from a file.
13842     *
13843     * States created with this function can be removed with
13844     * elm_toolbar_item_state_del().
13845     *
13846     * @see elm_toolbar_item_state_del()
13847     * @see elm_toolbar_item_state_sel()
13848     * @see elm_toolbar_item_state_get()
13849     *
13850     * @ingroup Toolbar
13851     */
13852    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);
13853
13854    /**
13855     * Delete a previoulsy added state to @p item.
13856     *
13857     * @param item The toolbar item.
13858     * @param state The state to be deleted.
13859     * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
13860     *
13861     * @see elm_toolbar_item_state_add()
13862     */
13863    EAPI Eina_Bool               elm_toolbar_item_state_del(Elm_Toolbar_Item *item, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
13864
13865    /**
13866     * Set @p state as the current state of @p it.
13867     *
13868     * @param it The item.
13869     * @param state The state to use.
13870     * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
13871     *
13872     * If @p state is @c NULL, it won't select any state and the default item's
13873     * icon and label will be used. It's the same behaviour than
13874     * elm_toolbar_item_state_unser().
13875     *
13876     * @see elm_toolbar_item_state_unset()
13877     *
13878     * @ingroup Toolbar
13879     */
13880    EAPI Eina_Bool               elm_toolbar_item_state_set(Elm_Toolbar_Item *it, Elm_Toolbar_Item_State *state) EINA_ARG_NONNULL(1);
13881
13882    /**
13883     * Unset the state of @p it.
13884     *
13885     * @param it The item.
13886     *
13887     * The default icon and label from this item will be displayed.
13888     *
13889     * @see elm_toolbar_item_state_set() for more details.
13890     *
13891     * @ingroup Toolbar
13892     */
13893    EAPI void                    elm_toolbar_item_state_unset(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
13894
13895    /**
13896     * Get the current state of @p it.
13897     *
13898     * @param item The item.
13899     * @return The selected state or @c NULL if none is selected or on failure.
13900     *
13901     * @see elm_toolbar_item_state_set() for details.
13902     * @see elm_toolbar_item_state_unset()
13903     * @see elm_toolbar_item_state_add()
13904     *
13905     * @ingroup Toolbar
13906     */
13907    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_get(const Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
13908
13909    /**
13910     * Get the state after selected state in toolbar's @p item.
13911     *
13912     * @param it The toolbar item to change state.
13913     * @return The state after current state, or @c NULL on failure.
13914     *
13915     * If last state is selected, this function will return first state.
13916     *
13917     * @see elm_toolbar_item_state_set()
13918     * @see elm_toolbar_item_state_add()
13919     *
13920     * @ingroup Toolbar
13921     */
13922    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_next(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
13923
13924    /**
13925     * Get the state before selected state in toolbar's @p item.
13926     *
13927     * @param it The toolbar item to change state.
13928     * @return The state before current state, or @c NULL on failure.
13929     *
13930     * If first state is selected, this function will return last state.
13931     *
13932     * @see elm_toolbar_item_state_set()
13933     * @see elm_toolbar_item_state_add()
13934     *
13935     * @ingroup Toolbar
13936     */
13937    EAPI Elm_Toolbar_Item_State *elm_toolbar_item_state_prev(Elm_Toolbar_Item *it) EINA_ARG_NONNULL(1);
13938
13939    /**
13940     * Set the text to be shown in a given toolbar item's tooltips.
13941     *
13942     * @param item Target item.
13943     * @param text The text to set in the content.
13944     *
13945     * Setup the text as tooltip to object. The item can have only one tooltip,
13946     * so any previous tooltip data - set with this function or
13947     * elm_toolbar_item_tooltip_content_cb_set() - is removed.
13948     *
13949     * @see elm_object_tooltip_text_set() for more details.
13950     *
13951     * @ingroup Toolbar
13952     */
13953    EAPI void             elm_toolbar_item_tooltip_text_set(Elm_Toolbar_Item *item, const char *text) EINA_ARG_NONNULL(1);
13954
13955    /**
13956     * Set the content to be shown in the tooltip item.
13957     *
13958     * Setup the tooltip to item. The item can have only one tooltip,
13959     * so any previous tooltip data is removed. @p func(with @p data) will
13960     * be called every time that need show the tooltip and it should
13961     * return a valid Evas_Object. This object is then managed fully by
13962     * tooltip system and is deleted when the tooltip is gone.
13963     *
13964     * @param item the toolbar item being attached a tooltip.
13965     * @param func the function used to create the tooltip contents.
13966     * @param data what to provide to @a func as callback data/context.
13967     * @param del_cb called when data is not needed anymore, either when
13968     *        another callback replaces @a func, the tooltip is unset with
13969     *        elm_toolbar_item_tooltip_unset() or the owner @a item
13970     *        dies. This callback receives as the first parameter the
13971     *        given @a data, and @c event_info is the item.
13972     *
13973     * @see elm_object_tooltip_content_cb_set() for more details.
13974     *
13975     * @ingroup Toolbar
13976     */
13977    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);
13978
13979    /**
13980     * Unset tooltip from item.
13981     *
13982     * @param item toolbar item to remove previously set tooltip.
13983     *
13984     * Remove tooltip from item. The callback provided as del_cb to
13985     * elm_toolbar_item_tooltip_content_cb_set() will be called to notify
13986     * it is not used anymore.
13987     *
13988     * @see elm_object_tooltip_unset() for more details.
13989     * @see elm_toolbar_item_tooltip_content_cb_set()
13990     *
13991     * @ingroup Toolbar
13992     */
13993    EAPI void             elm_toolbar_item_tooltip_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
13994
13995    /**
13996     * Sets a different style for this item tooltip.
13997     *
13998     * @note before you set a style you should define a tooltip with
13999     *       elm_toolbar_item_tooltip_content_cb_set() or
14000     *       elm_toolbar_item_tooltip_text_set()
14001     *
14002     * @param item toolbar item with tooltip already set.
14003     * @param style the theme style to use (default, transparent, ...)
14004     *
14005     * @see elm_object_tooltip_style_set() for more details.
14006     *
14007     * @ingroup Toolbar
14008     */
14009    EAPI void             elm_toolbar_item_tooltip_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
14010
14011    /**
14012     * Get the style for this item tooltip.
14013     *
14014     * @param item toolbar item with tooltip already set.
14015     * @return style the theme style in use, defaults to "default". If the
14016     *         object does not have a tooltip set, then NULL is returned.
14017     *
14018     * @see elm_object_tooltip_style_get() for more details.
14019     * @see elm_toolbar_item_tooltip_style_set()
14020     *
14021     * @ingroup Toolbar
14022     */
14023    EAPI const char      *elm_toolbar_item_tooltip_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14024
14025    /**
14026     * Set the type of mouse pointer/cursor decoration to be shown,
14027     * when the mouse pointer is over the given toolbar widget item
14028     *
14029     * @param item toolbar item to customize cursor on
14030     * @param cursor the cursor type's name
14031     *
14032     * This function works analogously as elm_object_cursor_set(), but
14033     * here the cursor's changing area is restricted to the item's
14034     * area, and not the whole widget's. Note that that item cursors
14035     * have precedence over widget cursors, so that a mouse over an
14036     * item with custom cursor set will always show @b that cursor.
14037     *
14038     * If this function is called twice for an object, a previously set
14039     * cursor will be unset on the second call.
14040     *
14041     * @see elm_object_cursor_set()
14042     * @see elm_toolbar_item_cursor_get()
14043     * @see elm_toolbar_item_cursor_unset()
14044     *
14045     * @ingroup Toolbar
14046     */
14047    EAPI void             elm_toolbar_item_cursor_set(Elm_Toolbar_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
14048
14049    /*
14050     * Get the type of mouse pointer/cursor decoration set to be shown,
14051     * when the mouse pointer is over the given toolbar widget item
14052     *
14053     * @param item toolbar item with custom cursor set
14054     * @return the cursor type's name or @c NULL, if no custom cursors
14055     * were set to @p item (and on errors)
14056     *
14057     * @see elm_object_cursor_get()
14058     * @see elm_toolbar_item_cursor_set()
14059     * @see elm_toolbar_item_cursor_unset()
14060     *
14061     * @ingroup Toolbar
14062     */
14063    EAPI const char      *elm_toolbar_item_cursor_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14064
14065    /**
14066     * Unset any custom mouse pointer/cursor decoration set to be
14067     * shown, when the mouse pointer is over the given toolbar widget
14068     * item, thus making it show the @b default cursor again.
14069     *
14070     * @param item a toolbar item
14071     *
14072     * Use this call to undo any custom settings on this item's cursor
14073     * decoration, bringing it back to defaults (no custom style set).
14074     *
14075     * @see elm_object_cursor_unset()
14076     * @see elm_toolbar_item_cursor_set()
14077     *
14078     * @ingroup Toolbar
14079     */
14080    EAPI void             elm_toolbar_item_cursor_unset(Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14081
14082    /**
14083     * Set a different @b style for a given custom cursor set for a
14084     * toolbar item.
14085     *
14086     * @param item toolbar item with custom cursor set
14087     * @param style the <b>theme style</b> to use (e.g. @c "default",
14088     * @c "transparent", etc)
14089     *
14090     * This function only makes sense when one is using custom mouse
14091     * cursor decorations <b>defined in a theme file</b>, which can have,
14092     * given a cursor name/type, <b>alternate styles</b> on it. It
14093     * works analogously as elm_object_cursor_style_set(), but here
14094     * applyed only to toolbar item objects.
14095     *
14096     * @warning Before you set a cursor style you should have definen a
14097     *       custom cursor previously on the item, with
14098     *       elm_toolbar_item_cursor_set()
14099     *
14100     * @see elm_toolbar_item_cursor_engine_only_set()
14101     * @see elm_toolbar_item_cursor_style_get()
14102     *
14103     * @ingroup Toolbar
14104     */
14105    EAPI void             elm_toolbar_item_cursor_style_set(Elm_Toolbar_Item *item, const char *style) EINA_ARG_NONNULL(1);
14106
14107    /**
14108     * Get the current @b style set for a given toolbar item's custom
14109     * cursor
14110     *
14111     * @param item toolbar item with custom cursor set.
14112     * @return style the cursor style in use. If the object does not
14113     *         have a cursor set, then @c NULL is returned.
14114     *
14115     * @see elm_toolbar_item_cursor_style_set() for more details
14116     *
14117     * @ingroup Toolbar
14118     */
14119    EAPI const char      *elm_toolbar_item_cursor_style_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14120
14121    /**
14122     * Set if the (custom)cursor for a given toolbar item should be
14123     * searched in its theme, also, or should only rely on the
14124     * rendering engine.
14125     *
14126     * @param item item with custom (custom) cursor already set on
14127     * @param engine_only Use @c EINA_TRUE to have cursors looked for
14128     * only on those provided by the rendering engine, @c EINA_FALSE to
14129     * have them searched on the widget's theme, as well.
14130     *
14131     * @note This call is of use only if you've set a custom cursor
14132     * for toolbar items, with elm_toolbar_item_cursor_set().
14133     *
14134     * @note By default, cursors will only be looked for between those
14135     * provided by the rendering engine.
14136     *
14137     * @ingroup Toolbar
14138     */
14139    EAPI void             elm_toolbar_item_cursor_engine_only_set(Elm_Toolbar_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
14140
14141    /**
14142     * Get if the (custom) cursor for a given toolbar item is being
14143     * searched in its theme, also, or is only relying on the rendering
14144     * engine.
14145     *
14146     * @param item a toolbar item
14147     * @return @c EINA_TRUE, if cursors are being looked for only on
14148     * those provided by the rendering engine, @c EINA_FALSE if they
14149     * are being searched on the widget's theme, as well.
14150     *
14151     * @see elm_toolbar_item_cursor_engine_only_set(), for more details
14152     *
14153     * @ingroup Toolbar
14154     */
14155    EAPI Eina_Bool        elm_toolbar_item_cursor_engine_only_get(const Elm_Toolbar_Item *item) EINA_ARG_NONNULL(1);
14156
14157    /**
14158     * Change a toolbar's orientation
14159     * @param obj The toolbar object
14160     * @param vertical If @c EINA_TRUE, the toolbar is vertical
14161     * By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.
14162     * @ingroup Toolbar
14163     */
14164    EAPI void             elm_toolbar_orientation_set(Evas_Object *obj, Eina_Bool vertical) EINA_ARG_NONNULL(1);
14165
14166    /**
14167     * Get a toolbar's orientation
14168     * @param obj The toolbar object
14169     * @return If @c EINA_TRUE, the toolbar is vertical
14170     * By default, a toolbar will be horizontal. Use this function to determine whether a toolbar is vertical.
14171     * @ingroup Toolbar
14172     */
14173    EAPI Eina_Bool        elm_toolbar_orientation_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
14174
14175    /**
14176     * @}
14177     */
14178
14179    /**
14180     * @defgroup Tooltips Tooltips
14181     *
14182     * The Tooltip is an (internal, for now) smart object used to show a
14183     * content in a frame on mouse hover of objects(or widgets), with
14184     * tips/information about them.
14185     *
14186     * @{
14187     */
14188
14189    EAPI double       elm_tooltip_delay_get(void);
14190    EAPI Eina_Bool    elm_tooltip_delay_set(double delay);
14191    EAPI void         elm_object_tooltip_show(Evas_Object *obj) EINA_ARG_NONNULL(1);
14192    EAPI void         elm_object_tooltip_hide(Evas_Object *obj) EINA_ARG_NONNULL(1);
14193    EAPI void         elm_object_tooltip_text_set(Evas_Object *obj, const char *text) EINA_ARG_NONNULL(1, 2);
14194    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);
14195    EAPI void         elm_object_tooltip_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
14196    EAPI void         elm_object_tooltip_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
14197    EAPI const char  *elm_object_tooltip_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14198    EAPI Eina_Bool    elm_tooltip_size_restrict_disable(Evas_Object *obj, Eina_Bool disable); EINA_ARG_NONNULL(1);
14199    EAPI Eina_Bool    elm_tooltip_size_restrict_disabled_get(const Evas_Object *obj); EINA_ARG_NONNULL(1);
14200
14201    /**
14202     * @}
14203     */
14204
14205    /**
14206     * @defgroup Cursors Cursors
14207     *
14208     * The Elementary cursor is an internal smart object used to
14209     * customize the mouse cursor displayed over objects (or
14210     * widgets). In the most common scenario, the cursor decoration
14211     * comes from the graphical @b engine Elementary is running
14212     * on. Those engines may provide different decorations for cursors,
14213     * and Elementary provides functions to choose them (think of X11
14214     * cursors, as an example).
14215     *
14216     * There's also the possibility of, besides using engine provided
14217     * cursors, also use ones coming from Edje theming files. Both
14218     * globally and per widget, Elementary makes it possible for one to
14219     * make the cursors lookup to be held on engines only or on
14220     * Elementary's theme file, too.
14221     *
14222     * @{
14223     */
14224
14225    /**
14226     * Set the cursor to be shown when mouse is over the object
14227     *
14228     * Set the cursor that will be displayed when mouse is over the
14229     * object. The object can have only one cursor set to it, so if
14230     * this function is called twice for an object, the previous set
14231     * will be unset.
14232     * If using X cursors, a definition of all the valid cursor names
14233     * is listed on Elementary_Cursors.h. If an invalid name is set
14234     * the default cursor will be used.
14235     *
14236     * @param obj the object being set a cursor.
14237     * @param cursor the cursor name to be used.
14238     *
14239     * @ingroup Cursors
14240     */
14241    EAPI void         elm_object_cursor_set(Evas_Object *obj, const char *cursor) EINA_ARG_NONNULL(1);
14242
14243    /**
14244     * Get the cursor to be shown when mouse is over the object
14245     *
14246     * @param obj an object with cursor already set.
14247     * @return the cursor name.
14248     *
14249     * @ingroup Cursors
14250     */
14251    EAPI const char  *elm_object_cursor_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14252
14253    /**
14254     * Unset cursor for object
14255     *
14256     * Unset cursor for object, and set the cursor to default if the mouse
14257     * was over this object.
14258     *
14259     * @param obj Target object
14260     * @see elm_object_cursor_set()
14261     *
14262     * @ingroup Cursors
14263     */
14264    EAPI void         elm_object_cursor_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
14265
14266    /**
14267     * Sets a different style for this object cursor.
14268     *
14269     * @note before you set a style you should define a cursor with
14270     *       elm_object_cursor_set()
14271     *
14272     * @param obj an object with cursor already set.
14273     * @param style the theme style to use (default, transparent, ...)
14274     *
14275     * @ingroup Cursors
14276     */
14277    EAPI void         elm_object_cursor_style_set(Evas_Object *obj, const char *style) EINA_ARG_NONNULL(1);
14278
14279    /**
14280     * Get the style for this object cursor.
14281     *
14282     * @param obj an object with cursor already set.
14283     * @return style the theme style in use, defaults to "default". If the
14284     *         object does not have a cursor set, then NULL is returned.
14285     *
14286     * @ingroup Cursors
14287     */
14288    EAPI const char  *elm_object_cursor_style_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14289
14290    /**
14291     * Set if the cursor set should be searched on the theme or should use
14292     * the provided by the engine, only.
14293     *
14294     * @note before you set if should look on theme you should define a cursor
14295     * with elm_object_cursor_set(). By default it will only look for cursors
14296     * provided by the engine.
14297     *
14298     * @param obj an object with cursor already set.
14299     * @param engine_only boolean to define it cursors should be looked only
14300     * between the provided by the engine or searched on widget's theme as well.
14301     *
14302     * @ingroup Cursors
14303     */
14304    EAPI void         elm_object_cursor_engine_only_set(Evas_Object *obj, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
14305
14306    /**
14307     * Get the cursor engine only usage for this object cursor.
14308     *
14309     * @param obj an object with cursor already set.
14310     * @return engine_only boolean to define it cursors should be
14311     * looked only between the provided by the engine or searched on
14312     * widget's theme as well. If the object does not have a cursor
14313     * set, then EINA_FALSE is returned.
14314     *
14315     * @ingroup Cursors
14316     */
14317    EAPI Eina_Bool    elm_object_cursor_engine_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14318
14319    /**
14320     * Get the configured cursor engine only usage
14321     *
14322     * This gets the globally configured exclusive usage of engine cursors.
14323     *
14324     * @return 1 if only engine cursors should be used
14325     * @ingroup Cursors
14326     */
14327    EAPI int          elm_cursor_engine_only_get(void);
14328
14329    /**
14330     * Set the configured cursor engine only usage
14331     *
14332     * This sets the globally configured exclusive usage of engine cursors.
14333     * It won't affect cursors set before changing this value.
14334     *
14335     * @param engine_only If 1 only engine cursors will be enabled, if 0 will
14336     * look for them on theme before.
14337     * @return EINA_TRUE if value is valid and setted (0 or 1)
14338     * @ingroup Cursors
14339     */
14340    EAPI Eina_Bool    elm_cursor_engine_only_set(int engine_only);
14341
14342    /**
14343     * @}
14344     */
14345
14346    /**
14347     * @defgroup Menu Menu
14348     *
14349     * @image html img/widget/menu/preview-00.png
14350     * @image latex img/widget/menu/preview-00.eps
14351     *
14352     * A menu is a list of items displayed above its parent. When the menu is
14353     * showing its parent is darkened. Each item can have a sub-menu. The menu
14354     * object can be used to display a menu on a right click event, in a toolbar,
14355     * anywhere.
14356     *
14357     * Signals that you can add callbacks for are:
14358     * @li "clicked" - the user clicked the empty space in the menu to dismiss.
14359     *             event_info is NULL.
14360     *
14361     * @see @ref tutorial_menu
14362     * @{
14363     */
14364    typedef struct _Elm_Menu_Item Elm_Menu_Item; /**< Item of Elm_Menu. Sub-type of Elm_Widget_Item */
14365    /**
14366     * @brief Add a new menu to the parent
14367     *
14368     * @param parent The parent object.
14369     * @return The new object or NULL if it cannot be created.
14370     */
14371    EAPI Evas_Object       *elm_menu_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14372    /**
14373     * @brief Set the parent for the given menu widget
14374     *
14375     * @param obj The menu object.
14376     * @param parent The new parent.
14377     */
14378    EAPI void               elm_menu_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1);
14379    /**
14380     * @brief Get the parent for the given menu widget
14381     *
14382     * @param obj The menu object.
14383     * @return The parent.
14384     *
14385     * @see elm_menu_parent_set()
14386     */
14387    EAPI Evas_Object       *elm_menu_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14388    /**
14389     * @brief Move the menu to a new position
14390     *
14391     * @param obj The menu object.
14392     * @param x The new position.
14393     * @param y The new position.
14394     *
14395     * Sets the top-left position of the menu to (@p x,@p y).
14396     *
14397     * @note @p x and @p y coordinates are relative to parent.
14398     */
14399    EAPI void               elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
14400    /**
14401     * @brief Close a opened menu
14402     *
14403     * @param obj the menu object
14404     * @return void
14405     *
14406     * Hides the menu and all it's sub-menus.
14407     */
14408    EAPI void               elm_menu_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
14409    /**
14410     * @brief Returns a list of @p item's items.
14411     *
14412     * @param obj The menu object
14413     * @return An Eina_List* of @p item's items
14414     */
14415    EAPI const Eina_List   *elm_menu_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14416    /**
14417     * @brief Get the Evas_Object of an Elm_Menu_Item
14418     *
14419     * @param item The menu item object.
14420     * @return The edje object containing the swallowed content
14421     *
14422     * @warning Don't manipulate this object!
14423     */
14424    EAPI Evas_Object       *elm_menu_item_object_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14425    /**
14426     * @brief Add an item at the end of the given menu widget
14427     *
14428     * @param obj The menu object.
14429     * @param parent The parent menu item (optional)
14430     * @param icon A icon display on the item. The icon will be destryed by the menu.
14431     * @param label The label of the item.
14432     * @param func Function called when the user select the item.
14433     * @param data Data sent by the callback.
14434     * @return Returns the new item.
14435     */
14436    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);
14437    /**
14438     * @brief Add an object swallowed in an item at the end of the given menu
14439     * widget
14440     *
14441     * @param obj The menu object.
14442     * @param parent The parent menu item (optional)
14443     * @param subobj The object to swallow
14444     * @param func Function called when the user select the item.
14445     * @param data Data sent by the callback.
14446     * @return Returns the new item.
14447     *
14448     * Add an evas object as an item to the menu.
14449     */
14450    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);
14451    /**
14452     * @brief Set the label of a menu item
14453     *
14454     * @param item The menu item object.
14455     * @param label The label to set for @p item
14456     *
14457     * @warning Don't use this funcion on items created with
14458     * elm_menu_item_add_object() or elm_menu_item_separator_add().
14459     */
14460    EAPI void               elm_menu_item_label_set(Elm_Menu_Item *item, const char *label) EINA_ARG_NONNULL(1);
14461    /**
14462     * @brief Get the label of a menu item
14463     *
14464     * @param item The menu item object.
14465     * @return The label of @p item
14466     */
14467    EAPI const char        *elm_menu_item_label_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14468    /**
14469     * @brief Set the icon of a menu item to the standard icon with name @p icon
14470     *
14471     * @param item The menu item object.
14472     * @param icon The icon object to set for the content of @p item
14473     *
14474     * Once this icon is set, any previously set icon will be deleted.
14475     */
14476    EAPI void               elm_menu_item_object_icon_name_set(Elm_Menu_Item *item, const char *icon) EINA_ARG_NONNULL(1, 2);
14477    /**
14478     * @brief Get the string representation from the icon of a menu item
14479     *
14480     * @param item The menu item object.
14481     * @return The string representation of @p item's icon or NULL
14482     *
14483     * @see elm_menu_item_object_icon_name_set()
14484     */
14485    EAPI const char        *elm_menu_item_object_icon_name_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14486    /**
14487     * @brief Set the content object of a menu item
14488     *
14489     * @param item The menu item object
14490     * @param The content object or NULL
14491     * @return EINA_TRUE on success, else EINA_FALSE
14492     *
14493     * Use this function to change the object swallowed by a menu item, deleting
14494     * any previously swallowed object.
14495     */
14496    EAPI Eina_Bool          elm_menu_item_object_content_set(Elm_Menu_Item *item, Evas_Object *obj) EINA_ARG_NONNULL(1);
14497    /**
14498     * @brief Get the content object of a menu item
14499     *
14500     * @param item The menu item object
14501     * @return The content object or NULL
14502     * @note If @p item was added with elm_menu_item_add_object, this
14503     * function will return the object passed, else it will return the
14504     * icon object.
14505     *
14506     * @see elm_menu_item_object_content_set()
14507     */
14508    EAPI Evas_Object *elm_menu_item_object_content_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14509    /**
14510     * @brief Set the selected state of @p item.
14511     *
14512     * @param item The menu item object.
14513     * @param selected The selected/unselected state of the item
14514     */
14515    EAPI void               elm_menu_item_selected_set(Elm_Menu_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
14516    /**
14517     * @brief Get the selected state of @p item.
14518     *
14519     * @param item The menu item object.
14520     * @return The selected/unselected state of the item
14521     *
14522     * @see elm_menu_item_selected_set()
14523     */
14524    EAPI Eina_Bool          elm_menu_item_selected_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14525    /**
14526     * @brief Set the disabled state of @p item.
14527     *
14528     * @param item The menu item object.
14529     * @param disabled The enabled/disabled state of the item
14530     */
14531    EAPI void               elm_menu_item_disabled_set(Elm_Menu_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
14532    /**
14533     * @brief Get the disabled state of @p item.
14534     *
14535     * @param item The menu item object.
14536     * @return The enabled/disabled state of the item
14537     *
14538     * @see elm_menu_item_disabled_set()
14539     */
14540    EAPI Eina_Bool          elm_menu_item_disabled_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14541    /**
14542     * @brief Add a separator item to menu @p obj under @p parent.
14543     *
14544     * @param obj The menu object
14545     * @param parent The item to add the separator under
14546     * @return The created item or NULL on failure
14547     *
14548     * This is item is a @ref Separator.
14549     */
14550    EAPI Elm_Menu_Item     *elm_menu_item_separator_add(Evas_Object *obj, Elm_Menu_Item *parent) EINA_ARG_NONNULL(1);
14551    /**
14552     * @brief Returns whether @p item is a separator.
14553     *
14554     * @param item The item to check
14555     * @return If true, @p item is a separator
14556     *
14557     * @see elm_menu_item_separator_add()
14558     */
14559    EAPI Eina_Bool          elm_menu_item_is_separator(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14560    /**
14561     * @brief Deletes an item from the menu.
14562     *
14563     * @param item The item to delete.
14564     *
14565     * @see elm_menu_item_add()
14566     */
14567    EAPI void               elm_menu_item_del(Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14568    /**
14569     * @brief Set the function called when a menu item is deleted.
14570     *
14571     * @param item The item to set the callback on
14572     * @param func The function called
14573     *
14574     * @see elm_menu_item_add()
14575     * @see elm_menu_item_del()
14576     */
14577    EAPI void               elm_menu_item_del_cb_set(Elm_Menu_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
14578    /**
14579     * @brief Returns the data associated with menu item @p item.
14580     *
14581     * @param item The item
14582     * @return The data associated with @p item or NULL if none was set.
14583     *
14584     * This is the data set with elm_menu_add() or elm_menu_item_data_set().
14585     */
14586    EAPI void              *elm_menu_item_data_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14587    /**
14588     * @brief Sets the data to be associated with menu item @p item.
14589     *
14590     * @param item The item
14591     * @param data The data to be associated with @p item
14592     */
14593    EAPI void               elm_menu_item_data_set(Elm_Menu_Item *item, const void *data) EINA_ARG_NONNULL(1);
14594    /**
14595     * @brief Returns a list of @p item's subitems.
14596     *
14597     * @param item The item
14598     * @return An Eina_List* of @p item's subitems
14599     *
14600     * @see elm_menu_add()
14601     */
14602    EAPI const Eina_List   *elm_menu_item_subitems_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1);
14603    /**
14604     * @brief Get the position of a menu item
14605     *
14606     * @param item The menu item
14607     * @return The item's index
14608     *
14609     * This function returns the index position of a menu item in a menu.
14610     * For a sub-menu, this number is relative to the first item in the sub-menu.
14611     *
14612     * @note Index values begin with 0
14613     */
14614    EAPI unsigned int       elm_menu_item_index_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
14615    /**
14616     * @brief @brief Return a menu item's owner menu
14617     *
14618     * @param item The menu item
14619     * @return The menu object owning @p item, or NULL on failure
14620     *
14621     * Use this function to get the menu object owning an item.
14622     */
14623    EAPI Evas_Object       *elm_menu_item_menu_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_PURE;
14624    /**
14625     * @brief Get the selected item in the menu
14626     *
14627     * @param obj The menu object
14628     * @return The selected item, or NULL if none
14629     *
14630     * @see elm_menu_item_selected_get()
14631     * @see elm_menu_item_selected_set()
14632     */
14633    EAPI Elm_Menu_Item *elm_menu_selected_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
14634    /**
14635     * @brief Get the last item in the menu
14636     *
14637     * @param obj The menu object
14638     * @return The last item, or NULL if none
14639     */
14640    EAPI Elm_Menu_Item *elm_menu_last_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
14641    /**
14642     * @brief Get the first item in the menu
14643     *
14644     * @param obj The menu object
14645     * @return The first item, or NULL if none
14646     */
14647    EAPI Elm_Menu_Item *elm_menu_first_item_get(const Evas_Object * obj) EINA_ARG_NONNULL(1);
14648    /**
14649     * @brief Get the next item in the menu.
14650     *
14651     * @param item The menu item object.
14652     * @return The item after it, or NULL if none
14653     */
14654    EAPI Elm_Menu_Item *elm_menu_item_next_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14655    /**
14656     * @brief Get the previous item in the menu.
14657     *
14658     * @param item The menu item object.
14659     * @return The item before it, or NULL if none
14660     */
14661    EAPI Elm_Menu_Item *elm_menu_item_prev_get(const Elm_Menu_Item *it) EINA_ARG_NONNULL(1);
14662    /**
14663     * @}
14664     */
14665
14666    /**
14667     * @defgroup List List
14668     * @ingroup Elementary
14669     *
14670     * @image html img/widget/list/preview-00.png
14671     * @image latex img/widget/list/preview-00.eps width=\textwidth
14672     *
14673     * @image html img/list.png
14674     * @image latex img/list.eps width=\textwidth
14675     *
14676     * A list widget is a container whose children are displayed vertically or
14677     * horizontally, in order, and can be selected.
14678     * The list can accept only one or multiple items selection. Also has many
14679     * modes of items displaying.
14680     *
14681     * A list is a very simple type of list widget.  For more robust
14682     * lists, @ref Genlist should probably be used.
14683     *
14684     * Smart callbacks one can listen to:
14685     * - @c "activated" - The user has double-clicked or pressed
14686     *   (enter|return|spacebar) on an item. The @c event_info parameter
14687     *   is the item that was activated.
14688     * - @c "clicked,double" - The user has double-clicked an item.
14689     *   The @c event_info parameter is the item that was double-clicked.
14690     * - "selected" - when the user selected an item
14691     * - "unselected" - when the user unselected an item
14692     * - "longpressed" - an item in the list is long-pressed
14693     * - "scroll,edge,top" - the list is scrolled until the top edge
14694     * - "scroll,edge,bottom" - the list is scrolled until the bottom edge
14695     * - "scroll,edge,left" - the list is scrolled until the left edge
14696     * - "scroll,edge,right" - the list is scrolled until the right edge
14697     *
14698     * Available styles for it:
14699     * - @c "default"
14700     *
14701     * List of examples:
14702     * @li @ref list_example_01
14703     * @li @ref list_example_02
14704     * @li @ref list_example_03
14705     */
14706
14707    /**
14708     * @addtogroup List
14709     * @{
14710     */
14711
14712    /**
14713     * @enum _Elm_List_Mode
14714     * @typedef Elm_List_Mode
14715     *
14716     * Set list's resize behavior, transverse axis scroll and
14717     * items cropping. See each mode's description for more details.
14718     *
14719     * @note Default value is #ELM_LIST_SCROLL.
14720     *
14721     * Values <b> don't </b> work as bitmask, only one can be choosen.
14722     *
14723     * @see elm_list_mode_set()
14724     * @see elm_list_mode_get()
14725     *
14726     * @ingroup List
14727     */
14728    typedef enum _Elm_List_Mode
14729      {
14730         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. */
14731         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). */
14732         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. */
14733         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. */
14734         ELM_LIST_LAST /**< Indicates error if returned by elm_list_mode_get() */
14735      } Elm_List_Mode;
14736
14737    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().  */
14738
14739    /**
14740     * Add a new list widget to the given parent Elementary
14741     * (container) object.
14742     *
14743     * @param parent The parent object.
14744     * @return a new list widget handle or @c NULL, on errors.
14745     *
14746     * This function inserts a new list widget on the canvas.
14747     *
14748     * @ingroup List
14749     */
14750    EAPI Evas_Object     *elm_list_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
14751
14752    /**
14753     * Starts the list.
14754     *
14755     * @param obj The list object
14756     *
14757     * @note Call before running show() on the list object.
14758     * @warning If not called, it won't display the list properly.
14759     *
14760     * @code
14761     * li = elm_list_add(win);
14762     * elm_list_item_append(li, "First", NULL, NULL, NULL, NULL);
14763     * elm_list_item_append(li, "Second", NULL, NULL, NULL, NULL);
14764     * elm_list_go(li);
14765     * evas_object_show(li);
14766     * @endcode
14767     *
14768     * @ingroup List
14769     */
14770    EAPI void             elm_list_go(Evas_Object *obj) EINA_ARG_NONNULL(1);
14771
14772    /**
14773     * Enable or disable multiple items selection on the list object.
14774     *
14775     * @param obj The list object
14776     * @param multi @c EINA_TRUE to enable multi selection or @c EINA_FALSE to
14777     * disable it.
14778     *
14779     * Disabled by default. If disabled, the user can select a single item of
14780     * the list each time. Selected items are highlighted on list.
14781     * If enabled, many items can be selected.
14782     *
14783     * If a selected item is selected again, it will be unselected.
14784     *
14785     * @see elm_list_multi_select_get()
14786     *
14787     * @ingroup List
14788     */
14789    EAPI void             elm_list_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
14790
14791    /**
14792     * Get a value whether multiple items selection is enabled or not.
14793     *
14794     * @see elm_list_multi_select_set() for details.
14795     *
14796     * @param obj The list object.
14797     * @return @c EINA_TRUE means multiple items selection is enabled.
14798     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
14799     * @c EINA_FALSE is returned.
14800     *
14801     * @ingroup List
14802     */
14803    EAPI Eina_Bool        elm_list_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14804
14805    /**
14806     * Set which mode to use for the list object.
14807     *
14808     * @param obj The list object
14809     * @param mode One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
14810     * #ELM_LIST_LIMIT or #ELM_LIST_EXPAND.
14811     *
14812     * Set list's resize behavior, transverse axis scroll and
14813     * items cropping. See each mode's description for more details.
14814     *
14815     * @note Default value is #ELM_LIST_SCROLL.
14816     *
14817     * Only one can be set, if a previous one was set, it will be changed
14818     * by the new mode set. Bitmask won't work as well.
14819     *
14820     * @see elm_list_mode_get()
14821     *
14822     * @ingroup List
14823     */
14824    EAPI void             elm_list_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
14825
14826    /**
14827     * Get the mode the list is at.
14828     *
14829     * @param obj The list object
14830     * @return One of #Elm_List_Mode: #ELM_LIST_COMPRESS, #ELM_LIST_SCROLL,
14831     * #ELM_LIST_LIMIT, #ELM_LIST_EXPAND or #ELM_LIST_LAST on errors.
14832     *
14833     * @note see elm_list_mode_set() for more information.
14834     *
14835     * @ingroup List
14836     */
14837    EAPI Elm_List_Mode    elm_list_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14838
14839    /**
14840     * Enable or disable horizontal mode on the list object.
14841     *
14842     * @param obj The list object.
14843     * @param horizontal @c EINA_TRUE to enable horizontal or @c EINA_FALSE to
14844     * disable it, i.e., to enable vertical mode.
14845     *
14846     * @note Vertical mode is set by default.
14847     *
14848     * On horizontal mode items are displayed on list from left to right,
14849     * instead of from top to bottom. Also, the list will scroll horizontally.
14850     * Each item will presents left icon on top and right icon, or end, at
14851     * the bottom.
14852     *
14853     * @see elm_list_horizontal_get()
14854     *
14855     * @ingroup List
14856     */
14857    EAPI void             elm_list_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
14858
14859    /**
14860     * Get a value whether horizontal mode is enabled or not.
14861     *
14862     * @param obj The list object.
14863     * @return @c EINA_TRUE means horizontal mode selection is enabled.
14864     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
14865     * @c EINA_FALSE is returned.
14866     *
14867     * @see elm_list_horizontal_set() for details.
14868     *
14869     * @ingroup List
14870     */
14871    EAPI Eina_Bool        elm_list_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14872
14873    /**
14874     * Enable or disable always select mode on the list object.
14875     *
14876     * @param obj The list object
14877     * @param always_select @c EINA_TRUE to enable always select mode or
14878     * @c EINA_FALSE to disable it.
14879     *
14880     * @note Always select mode is disabled by default.
14881     *
14882     * Default behavior of list items is to only call its callback function
14883     * the first time it's pressed, i.e., when it is selected. If a selected
14884     * item is pressed again, and multi-select is disabled, it won't call
14885     * this function (if multi-select is enabled it will unselect the item).
14886     *
14887     * If always select is enabled, it will call the callback function
14888     * everytime a item is pressed, so it will call when the item is selected,
14889     * and again when a selected item is pressed.
14890     *
14891     * @see elm_list_always_select_mode_get()
14892     * @see elm_list_multi_select_set()
14893     *
14894     * @ingroup List
14895     */
14896    EAPI void             elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
14897
14898    /**
14899     * Get a value whether always select mode is enabled or not, meaning that
14900     * an item will always call its callback function, even if already selected.
14901     *
14902     * @param obj The list object
14903     * @return @c EINA_TRUE means horizontal mode selection is enabled.
14904     * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
14905     * @c EINA_FALSE is returned.
14906     *
14907     * @see elm_list_always_select_mode_set() for details.
14908     *
14909     * @ingroup List
14910     */
14911    EAPI Eina_Bool        elm_list_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
14912
14913    /**
14914     * Set bouncing behaviour when the scrolled content reaches an edge.
14915     *
14916     * Tell the internal scroller object whether it should bounce or not
14917     * when it reaches the respective edges for each axis.
14918     *
14919     * @param obj The list object
14920     * @param h_bounce Whether to bounce or not in the horizontal axis.
14921     * @param v_bounce Whether to bounce or not in the vertical axis.
14922     *
14923     * @see elm_scroller_bounce_set()
14924     *
14925     * @ingroup List
14926     */
14927    EAPI void             elm_list_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
14928
14929    /**
14930     * Get the bouncing behaviour of the internal scroller.
14931     *
14932     * Get whether the internal scroller should bounce when the edge of each
14933     * axis is reached scrolling.
14934     *
14935     * @param obj The list object.
14936     * @param h_bounce Pointer where to store the bounce state of the horizontal
14937     * axis.
14938     * @param v_bounce Pointer where to store the bounce state of the vertical
14939     * axis.
14940     *
14941     * @see elm_scroller_bounce_get()
14942     * @see elm_list_bounce_set()
14943     *
14944     * @ingroup List
14945     */
14946    EAPI void             elm_list_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
14947
14948    /**
14949     * Set the scrollbar policy.
14950     *
14951     * @param obj The list object
14952     * @param policy_h Horizontal scrollbar policy.
14953     * @param policy_v Vertical scrollbar policy.
14954     *
14955     * This sets the scrollbar visibility policy for the given scroller.
14956     * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
14957     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
14958     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
14959     * This applies respectively for the horizontal and vertical scrollbars.
14960     *
14961     * The both are disabled by default, i.e., are set to
14962     * #ELM_SCROLLER_POLICY_OFF.
14963     *
14964     * @ingroup List
14965     */
14966    EAPI void             elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
14967
14968    /**
14969     * Get the scrollbar policy.
14970     *
14971     * @see elm_list_scroller_policy_get() for details.
14972     *
14973     * @param obj The list object.
14974     * @param policy_h Pointer where to store horizontal scrollbar policy.
14975     * @param policy_v Pointer where to store vertical scrollbar policy.
14976     *
14977     * @ingroup List
14978     */
14979    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);
14980
14981    /**
14982     * Append a new item to the list object.
14983     *
14984     * @param obj The list object.
14985     * @param label The label of the list item.
14986     * @param icon The icon object to use for the left side of the item. An
14987     * icon can be any Evas object, but usually it is an icon created
14988     * with elm_icon_add().
14989     * @param end The icon object to use for the right side of the item. An
14990     * icon can be any Evas object.
14991     * @param func The function to call when the item is clicked.
14992     * @param data The data to associate with the item for related callbacks.
14993     *
14994     * @return The created item or @c NULL upon failure.
14995     *
14996     * A new item will be created and appended to the list, i.e., will
14997     * be set as @b last item.
14998     *
14999     * Items created with this method can be deleted with
15000     * elm_list_item_del().
15001     *
15002     * Associated @p data can be properly freed when item is deleted if a
15003     * callback function is set with elm_list_item_del_cb_set().
15004     *
15005     * If a function is passed as argument, it will be called everytime this item
15006     * is selected, i.e., the user clicks over an unselected item.
15007     * If always select is enabled it will call this function every time
15008     * user clicks over an item (already selected or not).
15009     * If such function isn't needed, just passing
15010     * @c NULL as @p func is enough. The same should be done for @p data.
15011     *
15012     * Simple example (with no function callback or data associated):
15013     * @code
15014     * li = elm_list_add(win);
15015     * ic = elm_icon_add(win);
15016     * elm_icon_file_set(ic, "path/to/image", NULL);
15017     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
15018     * elm_list_item_append(li, "label", ic, NULL, NULL, NULL);
15019     * elm_list_go(li);
15020     * evas_object_show(li);
15021     * @endcode
15022     *
15023     * @see elm_list_always_select_mode_set()
15024     * @see elm_list_item_del()
15025     * @see elm_list_item_del_cb_set()
15026     * @see elm_list_clear()
15027     * @see elm_icon_add()
15028     *
15029     * @ingroup List
15030     */
15031    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);
15032
15033    /**
15034     * Prepend a new item to the list object.
15035     *
15036     * @param obj The list object.
15037     * @param label The label of the list item.
15038     * @param icon The icon object to use for the left side of the item. An
15039     * icon can be any Evas object, but usually it is an icon created
15040     * with elm_icon_add().
15041     * @param end The icon object to use for the right side of the item. An
15042     * icon can be any Evas object.
15043     * @param func The function to call when the item is clicked.
15044     * @param data The data to associate with the item for related callbacks.
15045     *
15046     * @return The created item or @c NULL upon failure.
15047     *
15048     * A new item will be created and prepended to the list, i.e., will
15049     * be set as @b first item.
15050     *
15051     * Items created with this method can be deleted with
15052     * elm_list_item_del().
15053     *
15054     * Associated @p data can be properly freed when item is deleted if a
15055     * callback function is set with elm_list_item_del_cb_set().
15056     *
15057     * If a function is passed as argument, it will be called everytime this item
15058     * is selected, i.e., the user clicks over an unselected item.
15059     * If always select is enabled it will call this function every time
15060     * user clicks over an item (already selected or not).
15061     * If such function isn't needed, just passing
15062     * @c NULL as @p func is enough. The same should be done for @p data.
15063     *
15064     * @see elm_list_item_append() for a simple code example.
15065     * @see elm_list_always_select_mode_set()
15066     * @see elm_list_item_del()
15067     * @see elm_list_item_del_cb_set()
15068     * @see elm_list_clear()
15069     * @see elm_icon_add()
15070     *
15071     * @ingroup List
15072     */
15073    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);
15074
15075    /**
15076     * Insert a new item into the list object before item @p before.
15077     *
15078     * @param obj The list object.
15079     * @param before The list item to insert before.
15080     * @param label The label of the list item.
15081     * @param icon The icon object to use for the left side of the item. An
15082     * icon can be any Evas object, but usually it is an icon created
15083     * with elm_icon_add().
15084     * @param end The icon object to use for the right side of the item. An
15085     * icon can be any Evas object.
15086     * @param func The function to call when the item is clicked.
15087     * @param data The data to associate with the item for related callbacks.
15088     *
15089     * @return The created item or @c NULL upon failure.
15090     *
15091     * A new item will be created and added to the list. Its position in
15092     * this list will be just before item @p before.
15093     *
15094     * Items created with this method can be deleted with
15095     * elm_list_item_del().
15096     *
15097     * Associated @p data can be properly freed when item is deleted if a
15098     * callback function is set with elm_list_item_del_cb_set().
15099     *
15100     * If a function is passed as argument, it will be called everytime this item
15101     * is selected, i.e., the user clicks over an unselected item.
15102     * If always select is enabled it will call this function every time
15103     * user clicks over an item (already selected or not).
15104     * If such function isn't needed, just passing
15105     * @c NULL as @p func is enough. The same should be done for @p data.
15106     *
15107     * @see elm_list_item_append() for a simple code example.
15108     * @see elm_list_always_select_mode_set()
15109     * @see elm_list_item_del()
15110     * @see elm_list_item_del_cb_set()
15111     * @see elm_list_clear()
15112     * @see elm_icon_add()
15113     *
15114     * @ingroup List
15115     */
15116    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);
15117
15118    /**
15119     * Insert a new item into the list object after item @p after.
15120     *
15121     * @param obj The list object.
15122     * @param after The list item to insert after.
15123     * @param label The label of the list item.
15124     * @param icon The icon object to use for the left side of the item. An
15125     * icon can be any Evas object, but usually it is an icon created
15126     * with elm_icon_add().
15127     * @param end The icon object to use for the right side of the item. An
15128     * icon can be any Evas object.
15129     * @param func The function to call when the item is clicked.
15130     * @param data The data to associate with the item for related callbacks.
15131     *
15132     * @return The created item or @c NULL upon failure.
15133     *
15134     * A new item will be created and added to the list. Its position in
15135     * this list will be just after item @p after.
15136     *
15137     * Items created with this method can be deleted with
15138     * elm_list_item_del().
15139     *
15140     * Associated @p data can be properly freed when item is deleted if a
15141     * callback function is set with elm_list_item_del_cb_set().
15142     *
15143     * If a function is passed as argument, it will be called everytime this item
15144     * is selected, i.e., the user clicks over an unselected item.
15145     * If always select is enabled it will call this function every time
15146     * user clicks over an item (already selected or not).
15147     * If such function isn't needed, just passing
15148     * @c NULL as @p func is enough. The same should be done for @p data.
15149     *
15150     * @see elm_list_item_append() for a simple code example.
15151     * @see elm_list_always_select_mode_set()
15152     * @see elm_list_item_del()
15153     * @see elm_list_item_del_cb_set()
15154     * @see elm_list_clear()
15155     * @see elm_icon_add()
15156     *
15157     * @ingroup List
15158     */
15159    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);
15160
15161    /**
15162     * Insert a new item into the sorted list object.
15163     *
15164     * @param obj The list object.
15165     * @param label The label of the list item.
15166     * @param icon The icon object to use for the left side of the item. An
15167     * icon can be any Evas object, but usually it is an icon created
15168     * with elm_icon_add().
15169     * @param end The icon object to use for the right side of the item. An
15170     * icon can be any Evas object.
15171     * @param func The function to call when the item is clicked.
15172     * @param data The data to associate with the item for related callbacks.
15173     * @param cmp_func The comparing function to be used to sort list
15174     * items <b>by #Elm_List_Item item handles</b>. This function will
15175     * receive two items and compare them, returning a non-negative integer
15176     * if the second item should be place after the first, or negative value
15177     * if should be placed before.
15178     *
15179     * @return The created item or @c NULL upon failure.
15180     *
15181     * @note This function inserts values into a list object assuming it was
15182     * sorted and the result will be sorted.
15183     *
15184     * A new item will be created and added to the list. Its position in
15185     * this list will be found comparing the new item with previously inserted
15186     * items using function @p cmp_func.
15187     *
15188     * Items created with this method can be deleted with
15189     * elm_list_item_del().
15190     *
15191     * Associated @p data can be properly freed when item is deleted if a
15192     * callback function is set with elm_list_item_del_cb_set().
15193     *
15194     * If a function is passed as argument, it will be called everytime this item
15195     * is selected, i.e., the user clicks over an unselected item.
15196     * If always select is enabled it will call this function every time
15197     * user clicks over an item (already selected or not).
15198     * If such function isn't needed, just passing
15199     * @c NULL as @p func is enough. The same should be done for @p data.
15200     *
15201     * @see elm_list_item_append() for a simple code example.
15202     * @see elm_list_always_select_mode_set()
15203     * @see elm_list_item_del()
15204     * @see elm_list_item_del_cb_set()
15205     * @see elm_list_clear()
15206     * @see elm_icon_add()
15207     *
15208     * @ingroup List
15209     */
15210    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);
15211
15212    /**
15213     * Remove all list's items.
15214     *
15215     * @param obj The list object
15216     *
15217     * @see elm_list_item_del()
15218     * @see elm_list_item_append()
15219     *
15220     * @ingroup List
15221     */
15222    EAPI void             elm_list_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
15223
15224    /**
15225     * Get a list of all the list items.
15226     *
15227     * @param obj The list object
15228     * @return An @c Eina_List of list items, #Elm_List_Item,
15229     * or @c NULL on failure.
15230     *
15231     * @see elm_list_item_append()
15232     * @see elm_list_item_del()
15233     * @see elm_list_clear()
15234     *
15235     * @ingroup List
15236     */
15237    EAPI const Eina_List *elm_list_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15238
15239    /**
15240     * Get the selected item.
15241     *
15242     * @param obj The list object.
15243     * @return The selected list item.
15244     *
15245     * The selected item can be unselected with function
15246     * elm_list_item_selected_set().
15247     *
15248     * The selected item always will be highlighted on list.
15249     *
15250     * @see elm_list_selected_items_get()
15251     *
15252     * @ingroup List
15253     */
15254    EAPI Elm_List_Item   *elm_list_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15255
15256    /**
15257     * Return a list of the currently selected list items.
15258     *
15259     * @param obj The list object.
15260     * @return An @c Eina_List of list items, #Elm_List_Item,
15261     * or @c NULL on failure.
15262     *
15263     * Multiple items can be selected if multi select is enabled. It can be
15264     * done with elm_list_multi_select_set().
15265     *
15266     * @see elm_list_selected_item_get()
15267     * @see elm_list_multi_select_set()
15268     *
15269     * @ingroup List
15270     */
15271    EAPI const Eina_List *elm_list_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15272
15273    /**
15274     * Set the selected state of an item.
15275     *
15276     * @param item The list item
15277     * @param selected The selected state
15278     *
15279     * This sets the selected state of the given item @p it.
15280     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
15281     *
15282     * If a new item is selected the previosly selected will be unselected,
15283     * unless multiple selection is enabled with elm_list_multi_select_set().
15284     * Previoulsy selected item can be get with function
15285     * elm_list_selected_item_get().
15286     *
15287     * Selected items will be highlighted.
15288     *
15289     * @see elm_list_item_selected_get()
15290     * @see elm_list_selected_item_get()
15291     * @see elm_list_multi_select_set()
15292     *
15293     * @ingroup List
15294     */
15295    EAPI void             elm_list_item_selected_set(Elm_List_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
15296
15297    /*
15298     * Get whether the @p item is selected or not.
15299     *
15300     * @param item The list item.
15301     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
15302     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
15303     *
15304     * @see elm_list_selected_item_set() for details.
15305     * @see elm_list_item_selected_get()
15306     *
15307     * @ingroup List
15308     */
15309    EAPI Eina_Bool        elm_list_item_selected_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15310
15311    /**
15312     * Set or unset item as a separator.
15313     *
15314     * @param it The list item.
15315     * @param setting @c EINA_TRUE to set item @p it as separator or
15316     * @c EINA_FALSE to unset, i.e., item will be used as a regular item.
15317     *
15318     * Items aren't set as separator by default.
15319     *
15320     * If set as separator it will display separator theme, so won't display
15321     * icons or label.
15322     *
15323     * @see elm_list_item_separator_get()
15324     *
15325     * @ingroup List
15326     */
15327    EAPI void             elm_list_item_separator_set(Elm_List_Item *it, Eina_Bool setting) EINA_ARG_NONNULL(1);
15328
15329    /**
15330     * Get a value whether item is a separator or not.
15331     *
15332     * @see elm_list_item_separator_set() for details.
15333     *
15334     * @param it The list item.
15335     * @return @c EINA_TRUE means item @p it is a separator. @c EINA_FALSE
15336     * indicates it's not. If @p it is @c NULL, @c EINA_FALSE is returned.
15337     *
15338     * @ingroup List
15339     */
15340    EAPI Eina_Bool        elm_list_item_separator_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15341
15342    /**
15343     * Show @p item in the list view.
15344     *
15345     * @param item The list item to be shown.
15346     *
15347     * It won't animate list until item is visible. If such behavior is wanted,
15348     * use elm_list_bring_in() intead.
15349     *
15350     * @ingroup List
15351     */
15352    EAPI void             elm_list_item_show(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15353
15354    /**
15355     * Bring in the given item to list view.
15356     *
15357     * @param item The item.
15358     *
15359     * This causes list to jump to the given item @p item and show it
15360     * (by scrolling), if it is not fully visible.
15361     *
15362     * This may use animation to do so and take a period of time.
15363     *
15364     * If animation isn't wanted, elm_list_item_show() can be used.
15365     *
15366     * @ingroup List
15367     */
15368    EAPI void             elm_list_item_bring_in(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15369
15370    /**
15371     * Delete them item from the list.
15372     *
15373     * @param item The item of list to be deleted.
15374     *
15375     * If deleting all list items is required, elm_list_clear()
15376     * should be used instead of getting items list and deleting each one.
15377     *
15378     * @see elm_list_clear()
15379     * @see elm_list_item_append()
15380     * @see elm_list_item_del_cb_set()
15381     *
15382     * @ingroup List
15383     */
15384    EAPI void             elm_list_item_del(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15385
15386    /**
15387     * Set the function called when a list item is freed.
15388     *
15389     * @param item The item to set the callback on
15390     * @param func The function called
15391     *
15392     * If there is a @p func, then it will be called prior item's memory release.
15393     * That will be called with the following arguments:
15394     * @li item's data;
15395     * @li item's Evas object;
15396     * @li item itself;
15397     *
15398     * This way, a data associated to a list item could be properly freed.
15399     *
15400     * @ingroup List
15401     */
15402    EAPI void             elm_list_item_del_cb_set(Elm_List_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
15403
15404    /**
15405     * Get the data associated to the item.
15406     *
15407     * @param item The list item
15408     * @return The data associated to @p item
15409     *
15410     * The return value is a pointer to data associated to @p item when it was
15411     * created, with function elm_list_item_append() or similar. If no data
15412     * was passed as argument, it will return @c NULL.
15413     *
15414     * @see elm_list_item_append()
15415     *
15416     * @ingroup List
15417     */
15418    EAPI void            *elm_list_item_data_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15419
15420    /**
15421     * Get the left side icon associated to the item.
15422     *
15423     * @param item The list item
15424     * @return The left side icon associated to @p item
15425     *
15426     * The return value is a pointer to the icon associated to @p item when
15427     * it was
15428     * created, with function elm_list_item_append() or similar, or later
15429     * with function elm_list_item_icon_set(). If no icon
15430     * was passed as argument, it will return @c NULL.
15431     *
15432     * @see elm_list_item_append()
15433     * @see elm_list_item_icon_set()
15434     *
15435     * @ingroup List
15436     */
15437    EAPI Evas_Object     *elm_list_item_icon_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15438
15439    /**
15440     * Set the left side icon associated to the item.
15441     *
15442     * @param item The list item
15443     * @param icon The left side icon object to associate with @p item
15444     *
15445     * The icon object to use at left side of the item. An
15446     * icon can be any Evas object, but usually it is an icon created
15447     * with elm_icon_add().
15448     *
15449     * Once the icon object is set, a previously set one will be deleted.
15450     * @warning Setting the same icon for two items will cause the icon to
15451     * dissapear from the first item.
15452     *
15453     * If an icon was passed as argument on item creation, with function
15454     * elm_list_item_append() or similar, it will be already
15455     * associated to the item.
15456     *
15457     * @see elm_list_item_append()
15458     * @see elm_list_item_icon_get()
15459     *
15460     * @ingroup List
15461     */
15462    EAPI void             elm_list_item_icon_set(Elm_List_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
15463
15464    /**
15465     * Get the right side icon associated to the item.
15466     *
15467     * @param item The list item
15468     * @return The right side icon associated to @p item
15469     *
15470     * The return value is a pointer to the icon associated to @p item when
15471     * it was
15472     * created, with function elm_list_item_append() or similar, or later
15473     * with function elm_list_item_icon_set(). If no icon
15474     * was passed as argument, it will return @c NULL.
15475     *
15476     * @see elm_list_item_append()
15477     * @see elm_list_item_icon_set()
15478     *
15479     * @ingroup List
15480     */
15481    EAPI Evas_Object     *elm_list_item_end_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15482
15483    /**
15484     * Set the right side icon associated to the item.
15485     *
15486     * @param item The list item
15487     * @param end The right side icon object to associate with @p item
15488     *
15489     * The icon object to use at right side of the item. An
15490     * icon can be any Evas object, but usually it is an icon created
15491     * with elm_icon_add().
15492     *
15493     * Once the icon object is set, a previously set one will be deleted.
15494     * @warning Setting the same icon for two items will cause the icon to
15495     * dissapear from the first item.
15496     *
15497     * If an icon was passed as argument on item creation, with function
15498     * elm_list_item_append() or similar, it will be already
15499     * associated to the item.
15500     *
15501     * @see elm_list_item_append()
15502     * @see elm_list_item_end_get()
15503     *
15504     * @ingroup List
15505     */
15506    EAPI void             elm_list_item_end_set(Elm_List_Item *item, Evas_Object *end) EINA_ARG_NONNULL(1);
15507
15508    /**
15509     * Gets the base object of the item.
15510     *
15511     * @param item The list item
15512     * @return The base object associated with @p item
15513     *
15514     * Base object is the @c Evas_Object that represents that item.
15515     *
15516     * @ingroup List
15517     */
15518    EAPI Evas_Object     *elm_list_item_object_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15519    EINA_DEPRECATED EAPI Evas_Object     *elm_list_item_base_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15520
15521    /**
15522     * Get the label of item.
15523     *
15524     * @param item The item of list.
15525     * @return The label of item.
15526     *
15527     * The return value is a pointer to the label associated to @p item when
15528     * it was created, with function elm_list_item_append(), or later
15529     * with function elm_list_item_label_set. If no label
15530     * was passed as argument, it will return @c NULL.
15531     *
15532     * @see elm_list_item_label_set() for more details.
15533     * @see elm_list_item_append()
15534     *
15535     * @ingroup List
15536     */
15537    EAPI const char      *elm_list_item_label_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15538
15539    /**
15540     * Set the label of item.
15541     *
15542     * @param item The item of list.
15543     * @param text The label of item.
15544     *
15545     * The label to be displayed by the item.
15546     * Label will be placed between left and right side icons (if set).
15547     *
15548     * If a label was passed as argument on item creation, with function
15549     * elm_list_item_append() or similar, it will be already
15550     * displayed by the item.
15551     *
15552     * @see elm_list_item_label_get()
15553     * @see elm_list_item_append()
15554     *
15555     * @ingroup List
15556     */
15557    EAPI void             elm_list_item_label_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
15558
15559
15560    /**
15561     * Get the item before @p it in list.
15562     *
15563     * @param it The list item.
15564     * @return The item before @p it, or @c NULL if none or on failure.
15565     *
15566     * @note If it is the first item, @c NULL will be returned.
15567     *
15568     * @see elm_list_item_append()
15569     * @see elm_list_items_get()
15570     *
15571     * @ingroup List
15572     */
15573    EAPI Elm_List_Item   *elm_list_item_prev(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15574
15575    /**
15576     * Get the item after @p it in list.
15577     *
15578     * @param it The list item.
15579     * @return The item after @p it, or @c NULL if none or on failure.
15580     *
15581     * @note If it is the last item, @c NULL will be returned.
15582     *
15583     * @see elm_list_item_append()
15584     * @see elm_list_items_get()
15585     *
15586     * @ingroup List
15587     */
15588    EAPI Elm_List_Item   *elm_list_item_next(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15589
15590    /**
15591     * Sets the disabled/enabled state of a list item.
15592     *
15593     * @param it The item.
15594     * @param disabled The disabled state.
15595     *
15596     * A disabled item cannot be selected or unselected. It will also
15597     * change its appearance (generally greyed out). This sets the
15598     * disabled state (@c EINA_TRUE for disabled, @c EINA_FALSE for
15599     * enabled).
15600     *
15601     * @ingroup List
15602     */
15603    EAPI void             elm_list_item_disabled_set(Elm_List_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
15604
15605    /**
15606     * Get a value whether list item is disabled or not.
15607     *
15608     * @param it The item.
15609     * @return The disabled state.
15610     *
15611     * @see elm_list_item_disabled_set() for more details.
15612     *
15613     * @ingroup List
15614     */
15615    EAPI Eina_Bool        elm_list_item_disabled_get(const Elm_List_Item *it) EINA_ARG_NONNULL(1);
15616
15617    /**
15618     * Set the text to be shown in a given list item's tooltips.
15619     *
15620     * @param item Target item.
15621     * @param text The text to set in the content.
15622     *
15623     * Setup the text as tooltip to object. The item can have only one tooltip,
15624     * so any previous tooltip data - set with this function or
15625     * elm_list_item_tooltip_content_cb_set() - is removed.
15626     *
15627     * @see elm_object_tooltip_text_set() for more details.
15628     *
15629     * @ingroup List
15630     */
15631    EAPI void             elm_list_item_tooltip_text_set(Elm_List_Item *item, const char *text) EINA_ARG_NONNULL(1);
15632
15633
15634    /**
15635     * @brief Disable size restrictions on an object's tooltip
15636     * @param item The tooltip's anchor object
15637     * @param disable If EINA_TRUE, size restrictions are disabled
15638     * @return EINA_FALSE on failure, EINA_TRUE on success
15639     *
15640     * This function allows a tooltip to expand beyond its parant window's canvas.
15641     * It will instead be limited only by the size of the display.
15642     */
15643    EAPI Eina_Bool        elm_list_item_tooltip_size_restrict_disable(Elm_List_Item *item, Eina_Bool disable) EINA_ARG_NONNULL(1);
15644    /**
15645     * @brief Retrieve size restriction state of an object's tooltip
15646     * @param obj The tooltip's anchor object
15647     * @return If EINA_TRUE, size restrictions are disabled
15648     *
15649     * This function returns whether a tooltip is allowed to expand beyond
15650     * its parant window's canvas.
15651     * It will instead be limited only by the size of the display.
15652     */
15653    EAPI Eina_Bool        elm_list_item_tooltip_size_restrict_disabled_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15654
15655    /**
15656     * Set the content to be shown in the tooltip item.
15657     *
15658     * Setup the tooltip to item. The item can have only one tooltip,
15659     * so any previous tooltip data is removed. @p func(with @p data) will
15660     * be called every time that need show the tooltip and it should
15661     * return a valid Evas_Object. This object is then managed fully by
15662     * tooltip system and is deleted when the tooltip is gone.
15663     *
15664     * @param item the list item being attached a tooltip.
15665     * @param func the function used to create the tooltip contents.
15666     * @param data what to provide to @a func as callback data/context.
15667     * @param del_cb called when data is not needed anymore, either when
15668     *        another callback replaces @a func, the tooltip is unset with
15669     *        elm_list_item_tooltip_unset() or the owner @a item
15670     *        dies. This callback receives as the first parameter the
15671     *        given @a data, and @c event_info is the item.
15672     *
15673     * @see elm_object_tooltip_content_cb_set() for more details.
15674     *
15675     * @ingroup List
15676     */
15677    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);
15678
15679    /**
15680     * Unset tooltip from item.
15681     *
15682     * @param item list item to remove previously set tooltip.
15683     *
15684     * Remove tooltip from item. The callback provided as del_cb to
15685     * elm_list_item_tooltip_content_cb_set() will be called to notify
15686     * it is not used anymore.
15687     *
15688     * @see elm_object_tooltip_unset() for more details.
15689     * @see elm_list_item_tooltip_content_cb_set()
15690     *
15691     * @ingroup List
15692     */
15693    EAPI void             elm_list_item_tooltip_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15694
15695    /**
15696     * Sets a different style for this item tooltip.
15697     *
15698     * @note before you set a style you should define a tooltip with
15699     *       elm_list_item_tooltip_content_cb_set() or
15700     *       elm_list_item_tooltip_text_set()
15701     *
15702     * @param item list item with tooltip already set.
15703     * @param style the theme style to use (default, transparent, ...)
15704     *
15705     * @see elm_object_tooltip_style_set() for more details.
15706     *
15707     * @ingroup List
15708     */
15709    EAPI void             elm_list_item_tooltip_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
15710
15711    /**
15712     * Get the style for this item tooltip.
15713     *
15714     * @param item list item with tooltip already set.
15715     * @return style the theme style in use, defaults to "default". If the
15716     *         object does not have a tooltip set, then NULL is returned.
15717     *
15718     * @see elm_object_tooltip_style_get() for more details.
15719     * @see elm_list_item_tooltip_style_set()
15720     *
15721     * @ingroup List
15722     */
15723    EAPI const char      *elm_list_item_tooltip_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15724
15725    /**
15726     * Set the type of mouse pointer/cursor decoration to be shown,
15727     * when the mouse pointer is over the given list widget item
15728     *
15729     * @param item list item to customize cursor on
15730     * @param cursor the cursor type's name
15731     *
15732     * This function works analogously as elm_object_cursor_set(), but
15733     * here the cursor's changing area is restricted to the item's
15734     * area, and not the whole widget's. Note that that item cursors
15735     * have precedence over widget cursors, so that a mouse over an
15736     * item with custom cursor set will always show @b that cursor.
15737     *
15738     * If this function is called twice for an object, a previously set
15739     * cursor will be unset on the second call.
15740     *
15741     * @see elm_object_cursor_set()
15742     * @see elm_list_item_cursor_get()
15743     * @see elm_list_item_cursor_unset()
15744     *
15745     * @ingroup List
15746     */
15747    EAPI void             elm_list_item_cursor_set(Elm_List_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
15748
15749    /*
15750     * Get the type of mouse pointer/cursor decoration set to be shown,
15751     * when the mouse pointer is over the given list widget item
15752     *
15753     * @param item list item with custom cursor set
15754     * @return the cursor type's name or @c NULL, if no custom cursors
15755     * were set to @p item (and on errors)
15756     *
15757     * @see elm_object_cursor_get()
15758     * @see elm_list_item_cursor_set()
15759     * @see elm_list_item_cursor_unset()
15760     *
15761     * @ingroup List
15762     */
15763    EAPI const char      *elm_list_item_cursor_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15764
15765    /**
15766     * Unset any custom mouse pointer/cursor decoration set to be
15767     * shown, when the mouse pointer is over the given list widget
15768     * item, thus making it show the @b default cursor again.
15769     *
15770     * @param item a list item
15771     *
15772     * Use this call to undo any custom settings on this item's cursor
15773     * decoration, bringing it back to defaults (no custom style set).
15774     *
15775     * @see elm_object_cursor_unset()
15776     * @see elm_list_item_cursor_set()
15777     *
15778     * @ingroup List
15779     */
15780    EAPI void             elm_list_item_cursor_unset(Elm_List_Item *item) EINA_ARG_NONNULL(1);
15781
15782    /**
15783     * Set a different @b style for a given custom cursor set for a
15784     * list item.
15785     *
15786     * @param item list item with custom cursor set
15787     * @param style the <b>theme style</b> to use (e.g. @c "default",
15788     * @c "transparent", etc)
15789     *
15790     * This function only makes sense when one is using custom mouse
15791     * cursor decorations <b>defined in a theme file</b>, which can have,
15792     * given a cursor name/type, <b>alternate styles</b> on it. It
15793     * works analogously as elm_object_cursor_style_set(), but here
15794     * applyed only to list item objects.
15795     *
15796     * @warning Before you set a cursor style you should have definen a
15797     *       custom cursor previously on the item, with
15798     *       elm_list_item_cursor_set()
15799     *
15800     * @see elm_list_item_cursor_engine_only_set()
15801     * @see elm_list_item_cursor_style_get()
15802     *
15803     * @ingroup List
15804     */
15805    EAPI void             elm_list_item_cursor_style_set(Elm_List_Item *item, const char *style) EINA_ARG_NONNULL(1);
15806
15807    /**
15808     * Get the current @b style set for a given list item's custom
15809     * cursor
15810     *
15811     * @param item list item with custom cursor set.
15812     * @return style the cursor style in use. If the object does not
15813     *         have a cursor set, then @c NULL is returned.
15814     *
15815     * @see elm_list_item_cursor_style_set() for more details
15816     *
15817     * @ingroup List
15818     */
15819    EAPI const char      *elm_list_item_cursor_style_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15820
15821    /**
15822     * Set if the (custom)cursor for a given list item should be
15823     * searched in its theme, also, or should only rely on the
15824     * rendering engine.
15825     *
15826     * @param item item with custom (custom) cursor already set on
15827     * @param engine_only Use @c EINA_TRUE to have cursors looked for
15828     * only on those provided by the rendering engine, @c EINA_FALSE to
15829     * have them searched on the widget's theme, as well.
15830     *
15831     * @note This call is of use only if you've set a custom cursor
15832     * for list items, with elm_list_item_cursor_set().
15833     *
15834     * @note By default, cursors will only be looked for between those
15835     * provided by the rendering engine.
15836     *
15837     * @ingroup List
15838     */
15839    EAPI void             elm_list_item_cursor_engine_only_set(Elm_List_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
15840
15841    /**
15842     * Get if the (custom) cursor for a given list item is being
15843     * searched in its theme, also, or is only relying on the rendering
15844     * engine.
15845     *
15846     * @param item a list item
15847     * @return @c EINA_TRUE, if cursors are being looked for only on
15848     * those provided by the rendering engine, @c EINA_FALSE if they
15849     * are being searched on the widget's theme, as well.
15850     *
15851     * @see elm_list_item_cursor_engine_only_set(), for more details
15852     *
15853     * @ingroup List
15854     */
15855    EAPI Eina_Bool        elm_list_item_cursor_engine_only_get(const Elm_List_Item *item) EINA_ARG_NONNULL(1);
15856
15857    /**
15858     * @}
15859     */
15860
15861    /**
15862     * @defgroup Slider Slider
15863     * @ingroup Elementary
15864     *
15865     * @image html img/widget/slider/preview-00.png
15866     * @image latex img/widget/slider/preview-00.eps width=\textwidth
15867     *
15868     * The slider adds a dragable “slider” widget for selecting the value of
15869     * something within a range.
15870     *
15871     * A slider can be horizontal or vertical. It can contain an Icon and has a
15872     * primary label as well as a units label (that is formatted with floating
15873     * point values and thus accepts a printf-style format string, like
15874     * “%1.2f units”. There is also an indicator string that may be somewhere
15875     * else (like on the slider itself) that also accepts a format string like
15876     * units. Label, Icon Unit and Indicator strings/objects are optional.
15877     *
15878     * A slider may be inverted which means values invert, with high vales being
15879     * on the left or top and low values on the right or bottom (as opposed to
15880     * normally being low on the left or top and high on the bottom and right).
15881     *
15882     * The slider should have its minimum and maximum values set by the
15883     * application with  elm_slider_min_max_set() and value should also be set by
15884     * the application before use with  elm_slider_value_set(). The span of the
15885     * slider is its length (horizontally or vertically). This will be scaled by
15886     * the object or applications scaling factor. At any point code can query the
15887     * slider for its value with elm_slider_value_get().
15888     *
15889     * Smart callbacks one can listen to:
15890     * - "changed" - Whenever the slider value is changed by the user.
15891     * - "slider,drag,start" - dragging the slider indicator around has started.
15892     * - "slider,drag,stop" - dragging the slider indicator around has stopped.
15893     * - "delay,changed" - A short time after the value is changed by the user.
15894     * This will be called only when the user stops dragging for
15895     * a very short period or when they release their
15896     * finger/mouse, so it avoids possibly expensive reactions to
15897     * the value change.
15898     *
15899     * Available styles for it:
15900     * - @c "default"
15901     *
15902     * Here is an example on its usage:
15903     * @li @ref slider_example
15904     */
15905
15906    /**
15907     * @addtogroup Slider
15908     * @{
15909     */
15910
15911    /**
15912     * Add a new slider widget to the given parent Elementary
15913     * (container) object.
15914     *
15915     * @param parent The parent object.
15916     * @return a new slider widget handle or @c NULL, on errors.
15917     *
15918     * This function inserts a new slider widget on the canvas.
15919     *
15920     * @ingroup Slider
15921     */
15922    EAPI Evas_Object       *elm_slider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
15923
15924    /**
15925     * Set the label of a given slider widget
15926     *
15927     * @param obj The progress bar object
15928     * @param label The text label string, in UTF-8
15929     *
15930     * @ingroup Slider
15931     * @deprecated use elm_object_text_set() instead.
15932     */
15933    EINA_DEPRECATED EAPI void               elm_slider_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
15934
15935    /**
15936     * Get the label of a given slider widget
15937     *
15938     * @param obj The progressbar object
15939     * @return The text label string, in UTF-8
15940     *
15941     * @ingroup Slider
15942     * @deprecated use elm_object_text_get() instead.
15943     */
15944    EINA_DEPRECATED EAPI const char        *elm_slider_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
15945
15946    /**
15947     * Set the icon object of the slider object.
15948     *
15949     * @param obj The slider object.
15950     * @param icon The icon object.
15951     *
15952     * On horizontal mode, icon is placed at left, and on vertical mode,
15953     * placed at top.
15954     *
15955     * @note Once the icon object is set, a previously set one will be deleted.
15956     * If you want to keep that old content object, use the
15957     * elm_slider_icon_unset() function.
15958     *
15959     * @warning If the object being set does not have minimum size hints set,
15960     * it won't get properly displayed.
15961     *
15962     * @ingroup Slider
15963     */
15964    EAPI void               elm_slider_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
15965
15966    /**
15967     * Unset an icon set on a given slider widget.
15968     *
15969     * @param obj The slider object.
15970     * @return The icon object that was being used, if any was set, or
15971     * @c NULL, otherwise (and on errors).
15972     *
15973     * On horizontal mode, icon is placed at left, and on vertical mode,
15974     * placed at top.
15975     *
15976     * This call will unparent and return the icon object which was set
15977     * for this widget, previously, on success.
15978     *
15979     * @see elm_slider_icon_set() for more details
15980     * @see elm_slider_icon_get()
15981     *
15982     * @ingroup Slider
15983     */
15984    EAPI Evas_Object       *elm_slider_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
15985
15986    /**
15987     * Retrieve the icon object set for a given slider widget.
15988     *
15989     * @param obj The slider object.
15990     * @return The icon object's handle, if @p obj had one set, or @c NULL,
15991     * otherwise (and on errors).
15992     *
15993     * On horizontal mode, icon is placed at left, and on vertical mode,
15994     * placed at top.
15995     *
15996     * @see elm_slider_icon_set() for more details
15997     * @see elm_slider_icon_unset()
15998     *
15999     * @ingroup Slider
16000     */
16001    EAPI Evas_Object       *elm_slider_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16002
16003    /**
16004     * Set the end object of the slider object.
16005     *
16006     * @param obj The slider object.
16007     * @param end The end object.
16008     *
16009     * On horizontal mode, end is placed at left, and on vertical mode,
16010     * placed at bottom.
16011     *
16012     * @note Once the icon object is set, a previously set one will be deleted.
16013     * If you want to keep that old content object, use the
16014     * elm_slider_end_unset() function.
16015     *
16016     * @warning If the object being set does not have minimum size hints set,
16017     * it won't get properly displayed.
16018     *
16019     * @ingroup Slider
16020     */
16021    EAPI void               elm_slider_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1);
16022
16023    /**
16024     * Unset an end object set on a given slider widget.
16025     *
16026     * @param obj The slider object.
16027     * @return The end object that was being used, if any was set, or
16028     * @c NULL, otherwise (and on errors).
16029     *
16030     * On horizontal mode, end is placed at left, and on vertical mode,
16031     * placed at bottom.
16032     *
16033     * This call will unparent and return the icon object which was set
16034     * for this widget, previously, on success.
16035     *
16036     * @see elm_slider_end_set() for more details.
16037     * @see elm_slider_end_get()
16038     *
16039     * @ingroup Slider
16040     */
16041    EAPI Evas_Object       *elm_slider_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
16042
16043    /**
16044     * Retrieve the end object set for a given slider widget.
16045     *
16046     * @param obj The slider object.
16047     * @return The end object's handle, if @p obj had one set, or @c NULL,
16048     * otherwise (and on errors).
16049     *
16050     * On horizontal mode, icon is placed at right, and on vertical mode,
16051     * placed at bottom.
16052     *
16053     * @see elm_slider_end_set() for more details.
16054     * @see elm_slider_end_unset()
16055     *
16056     * @ingroup Slider
16057     */
16058    EAPI Evas_Object       *elm_slider_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16059
16060    /**
16061     * Set the (exact) length of the bar region of a given slider widget.
16062     *
16063     * @param obj The slider object.
16064     * @param size The length of the slider's bar region.
16065     *
16066     * This sets the minimum width (when in horizontal mode) or height
16067     * (when in vertical mode) of the actual bar area of the slider
16068     * @p obj. This in turn affects the object's minimum size. Use
16069     * this when you're not setting other size hints expanding on the
16070     * given direction (like weight and alignment hints) and you would
16071     * like it to have a specific size.
16072     *
16073     * @note Icon, end, label, indicator and unit text around @p obj
16074     * will require their
16075     * own space, which will make @p obj to require more the @p size,
16076     * actually.
16077     *
16078     * @see elm_slider_span_size_get()
16079     *
16080     * @ingroup Slider
16081     */
16082    EAPI void               elm_slider_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
16083
16084    /**
16085     * Get the length set for the bar region of a given slider widget
16086     *
16087     * @param obj The slider object.
16088     * @return The length of the slider's bar region.
16089     *
16090     * If that size was not set previously, with
16091     * elm_slider_span_size_set(), this call will return @c 0.
16092     *
16093     * @ingroup Slider
16094     */
16095    EAPI Evas_Coord         elm_slider_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16096
16097    /**
16098     * Set the format string for the unit label.
16099     *
16100     * @param obj The slider object.
16101     * @param format The format string for the unit display.
16102     *
16103     * Unit label is displayed all the time, if set, after slider's bar.
16104     * In horizontal mode, at right and in vertical mode, at bottom.
16105     *
16106     * If @c NULL, unit label won't be visible. If not it sets the format
16107     * string for the label text. To the label text is provided a floating point
16108     * value, so the label text can display up to 1 floating point value.
16109     * Note that this is optional.
16110     *
16111     * Use a format string such as "%1.2f meters" for example, and it will
16112     * display values like: "3.14 meters" for a value equal to 3.14159.
16113     *
16114     * Default is unit label disabled.
16115     *
16116     * @see elm_slider_indicator_format_get()
16117     *
16118     * @ingroup Slider
16119     */
16120    EAPI void               elm_slider_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
16121
16122    /**
16123     * Get the unit label format of the slider.
16124     *
16125     * @param obj The slider object.
16126     * @return The unit label format string in UTF-8.
16127     *
16128     * Unit label is displayed all the time, if set, after slider's bar.
16129     * In horizontal mode, at right and in vertical mode, at bottom.
16130     *
16131     * @see elm_slider_unit_format_set() for more
16132     * information on how this works.
16133     *
16134     * @ingroup Slider
16135     */
16136    EAPI const char        *elm_slider_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16137
16138    /**
16139     * Set the format string for the indicator label.
16140     *
16141     * @param obj The slider object.
16142     * @param indicator The format string for the indicator display.
16143     *
16144     * The slider may display its value somewhere else then unit label,
16145     * for example, above the slider knob that is dragged around. This function
16146     * sets the format string used for this.
16147     *
16148     * If @c NULL, indicator label won't be visible. If not it sets the format
16149     * string for the label text. To the label text is provided a floating point
16150     * value, so the label text can display up to 1 floating point value.
16151     * Note that this is optional.
16152     *
16153     * Use a format string such as "%1.2f meters" for example, and it will
16154     * display values like: "3.14 meters" for a value equal to 3.14159.
16155     *
16156     * Default is indicator label disabled.
16157     *
16158     * @see elm_slider_indicator_format_get()
16159     *
16160     * @ingroup Slider
16161     */
16162    EAPI void               elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator) EINA_ARG_NONNULL(1);
16163
16164    /**
16165     * Get the indicator label format of the slider.
16166     *
16167     * @param obj The slider object.
16168     * @return The indicator label format string in UTF-8.
16169     *
16170     * The slider may display its value somewhere else then unit label,
16171     * for example, above the slider knob that is dragged around. This function
16172     * gets the format string used for this.
16173     *
16174     * @see elm_slider_indicator_format_set() for more
16175     * information on how this works.
16176     *
16177     * @ingroup Slider
16178     */
16179    EAPI const char        *elm_slider_indicator_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16180
16181    /**
16182     * Set the format function pointer for the indicator label
16183     *
16184     * @param obj The slider object.
16185     * @param func The indicator format function.
16186     * @param free_func The freeing function for the format string.
16187     *
16188     * Set the callback function to format the indicator string.
16189     *
16190     * @see elm_slider_indicator_format_set() for more info on how this works.
16191     *
16192     * @ingroup Slider
16193     */
16194   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);
16195
16196   /**
16197    * Set the format function pointer for the units label
16198    *
16199    * @param obj The slider object.
16200    * @param func The units format function.
16201    * @param free_func The freeing function for the format string.
16202    *
16203    * Set the callback function to format the indicator string.
16204    *
16205    * @see elm_slider_units_format_set() for more info on how this works.
16206    *
16207    * @ingroup Slider
16208    */
16209   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);
16210
16211   /**
16212    * Set the orientation of a given slider widget.
16213    *
16214    * @param obj The slider object.
16215    * @param horizontal Use @c EINA_TRUE to make @p obj to be
16216    * @b horizontal, @c EINA_FALSE to make it @b vertical.
16217    *
16218    * Use this function to change how your slider is to be
16219    * disposed: vertically or horizontally.
16220    *
16221    * By default it's displayed horizontally.
16222    *
16223    * @see elm_slider_horizontal_get()
16224    *
16225    * @ingroup Slider
16226    */
16227    EAPI void               elm_slider_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
16228
16229    /**
16230     * Retrieve the orientation of a given slider widget
16231     *
16232     * @param obj The slider object.
16233     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
16234     * @c EINA_FALSE if it's @b vertical (and on errors).
16235     *
16236     * @see elm_slider_horizontal_set() for more details.
16237     *
16238     * @ingroup Slider
16239     */
16240    EAPI Eina_Bool          elm_slider_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16241
16242    /**
16243     * Set the minimum and maximum values for the slider.
16244     *
16245     * @param obj The slider object.
16246     * @param min The minimum value.
16247     * @param max The maximum value.
16248     *
16249     * Define the allowed range of values to be selected by the user.
16250     *
16251     * If actual value is less than @p min, it will be updated to @p min. If it
16252     * is bigger then @p max, will be updated to @p max. Actual value can be
16253     * get with elm_slider_value_get().
16254     *
16255     * By default, min is equal to 0.0, and max is equal to 1.0.
16256     *
16257     * @warning Maximum must be greater than minimum, otherwise behavior
16258     * is undefined.
16259     *
16260     * @see elm_slider_min_max_get()
16261     *
16262     * @ingroup Slider
16263     */
16264    EAPI void               elm_slider_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
16265
16266    /**
16267     * Get the minimum and maximum values of the slider.
16268     *
16269     * @param obj The slider object.
16270     * @param min Pointer where to store the minimum value.
16271     * @param max Pointer where to store the maximum value.
16272     *
16273     * @note If only one value is needed, the other pointer can be passed
16274     * as @c NULL.
16275     *
16276     * @see elm_slider_min_max_set() for details.
16277     *
16278     * @ingroup Slider
16279     */
16280    EAPI void               elm_slider_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
16281
16282    /**
16283     * Set the value the slider displays.
16284     *
16285     * @param obj The slider object.
16286     * @param val The value to be displayed.
16287     *
16288     * Value will be presented on the unit label following format specified with
16289     * elm_slider_unit_format_set() and on indicator with
16290     * elm_slider_indicator_format_set().
16291     *
16292     * @warning The value must to be between min and max values. This values
16293     * are set by elm_slider_min_max_set().
16294     *
16295     * @see elm_slider_value_get()
16296     * @see elm_slider_unit_format_set()
16297     * @see elm_slider_indicator_format_set()
16298     * @see elm_slider_min_max_set()
16299     *
16300     * @ingroup Slider
16301     */
16302    EAPI void               elm_slider_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
16303
16304    /**
16305     * Get the value displayed by the spinner.
16306     *
16307     * @param obj The spinner object.
16308     * @return The value displayed.
16309     *
16310     * @see elm_spinner_value_set() for details.
16311     *
16312     * @ingroup Slider
16313     */
16314    EAPI double             elm_slider_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16315
16316    /**
16317     * Invert a given slider widget's displaying values order
16318     *
16319     * @param obj The slider object.
16320     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
16321     * @c EINA_FALSE to bring it back to default, non-inverted values.
16322     *
16323     * A slider may be @b inverted, in which state it gets its
16324     * values inverted, with high vales being on the left or top and
16325     * low values on the right or bottom, as opposed to normally have
16326     * the low values on the former and high values on the latter,
16327     * respectively, for horizontal and vertical modes.
16328     *
16329     * @see elm_slider_inverted_get()
16330     *
16331     * @ingroup Slider
16332     */
16333    EAPI void               elm_slider_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
16334
16335    /**
16336     * Get whether a given slider widget's displaying values are
16337     * inverted or not.
16338     *
16339     * @param obj The slider object.
16340     * @return @c EINA_TRUE, if @p obj has inverted values,
16341     * @c EINA_FALSE otherwise (and on errors).
16342     *
16343     * @see elm_slider_inverted_set() for more details.
16344     *
16345     * @ingroup Slider
16346     */
16347    EAPI Eina_Bool          elm_slider_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16348
16349    /**
16350     * Set whether to enlarge slider indicator (augmented knob) or not.
16351     *
16352     * @param obj The slider object.
16353     * @param show @c EINA_TRUE will make it enlarge, @c EINA_FALSE will
16354     * let the knob always at default size.
16355     *
16356     * By default, indicator will be bigger while dragged by the user.
16357     *
16358     * @warning It won't display values set with
16359     * elm_slider_indicator_format_set() if you disable indicator.
16360     *
16361     * @ingroup Slider
16362     */
16363    EAPI void               elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show) EINA_ARG_NONNULL(1);
16364
16365    /**
16366     * Get whether a given slider widget's enlarging indicator or not.
16367     *
16368     * @param obj The slider object.
16369     * @return @c EINA_TRUE, if @p obj is enlarging indicator, or
16370     * @c EINA_FALSE otherwise (and on errors).
16371     *
16372     * @see elm_slider_indicator_show_set() for details.
16373     *
16374     * @ingroup Slider
16375     */
16376    EAPI Eina_Bool          elm_slider_indicator_show_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16377
16378    /**
16379     * @}
16380     */
16381
16382    /**
16383     * @addtogroup Actionslider Actionslider
16384     *
16385     * @image html img/widget/actionslider/preview-00.png
16386     * @image latex img/widget/actionslider/preview-00.eps
16387     *
16388     * A actionslider is a switcher for 2 or 3 labels with customizable magnet
16389     * properties. The indicator is the element the user drags to choose a label.
16390     * When the position is set with magnet, when released the indicator will be
16391     * moved to it if it's nearest the magnetized position.
16392     *
16393     * @note By default all positions are set as enabled.
16394     *
16395     * Signals that you can add callbacks for are:
16396     *
16397     * "selected" - when user selects an enabled position (the label is passed
16398     *              as event info)".
16399     * @n
16400     * "pos_changed" - when the indicator reaches any of the positions("left",
16401     *                 "right" or "center").
16402     *
16403     * See an example of actionslider usage @ref actionslider_example_page "here"
16404     * @{
16405     */
16406    typedef enum _Elm_Actionslider_Pos
16407      {
16408         ELM_ACTIONSLIDER_NONE = 0,
16409         ELM_ACTIONSLIDER_LEFT = 1 << 0,
16410         ELM_ACTIONSLIDER_CENTER = 1 << 1,
16411         ELM_ACTIONSLIDER_RIGHT = 1 << 2,
16412         ELM_ACTIONSLIDER_ALL = (1 << 3) -1
16413      } Elm_Actionslider_Pos;
16414
16415    /**
16416     * Add a new actionslider to the parent.
16417     *
16418     * @param parent The parent object
16419     * @return The new actionslider object or NULL if it cannot be created
16420     */
16421    EAPI Evas_Object          *elm_actionslider_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16422    /**
16423     * Set actionslider labels.
16424     *
16425     * @param obj The actionslider object
16426     * @param left_label The label to be set on the left.
16427     * @param center_label The label to be set on the center.
16428     * @param right_label The label to be set on the right.
16429     * @deprecated use elm_object_text_set() instead.
16430     */
16431    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);
16432    /**
16433     * Get actionslider labels.
16434     *
16435     * @param obj The actionslider object
16436     * @param left_label A char** to place the left_label of @p obj into.
16437     * @param center_label A char** to place the center_label of @p obj into.
16438     * @param right_label A char** to place the right_label of @p obj into.
16439     * @deprecated use elm_object_text_set() instead.
16440     */
16441    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);
16442    /**
16443     * Get actionslider selected label.
16444     *
16445     * @param obj The actionslider object
16446     * @return The selected label
16447     */
16448    EAPI const char           *elm_actionslider_selected_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16449    /**
16450     * Set actionslider indicator position.
16451     *
16452     * @param obj The actionslider object.
16453     * @param pos The position of the indicator.
16454     */
16455    EAPI void                  elm_actionslider_indicator_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
16456    /**
16457     * Get actionslider indicator position.
16458     *
16459     * @param obj The actionslider object.
16460     * @return The position of the indicator.
16461     */
16462    EAPI Elm_Actionslider_Pos  elm_actionslider_indicator_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16463    /**
16464     * Set actionslider magnet position. To make multiple positions magnets @c or
16465     * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT)
16466     *
16467     * @param obj The actionslider object.
16468     * @param pos Bit mask indicating the magnet positions.
16469     */
16470    EAPI void                  elm_actionslider_magnet_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
16471    /**
16472     * Get actionslider magnet position.
16473     *
16474     * @param obj The actionslider object.
16475     * @return The positions with magnet property.
16476     */
16477    EAPI Elm_Actionslider_Pos  elm_actionslider_magnet_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16478    /**
16479     * Set actionslider enabled position. To set multiple positions as enabled @c or
16480     * them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT).
16481     *
16482     * @note All the positions are enabled by default.
16483     *
16484     * @param obj The actionslider object.
16485     * @param pos Bit mask indicating the enabled positions.
16486     */
16487    EAPI void                  elm_actionslider_enabled_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos) EINA_ARG_NONNULL(1);
16488    /**
16489     * Get actionslider enabled position.
16490     *
16491     * @param obj The actionslider object.
16492     * @return The enabled positions.
16493     */
16494    EAPI Elm_Actionslider_Pos  elm_actionslider_enabled_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16495    /**
16496     * Set the label used on the indicator.
16497     *
16498     * @param obj The actionslider object
16499     * @param label The label to be set on the indicator.
16500     * @deprecated use elm_object_text_set() instead.
16501     */
16502    EINA_DEPRECATED EAPI void                  elm_actionslider_indicator_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
16503    /**
16504     * Get the label used on the indicator object.
16505     *
16506     * @param obj The actionslider object
16507     * @return The indicator label
16508     * @deprecated use elm_object_text_get() instead.
16509     */
16510    EINA_DEPRECATED EAPI const char           *elm_actionslider_indicator_label_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
16511    /**
16512     * @}
16513     */
16514
16515    /**
16516     * @defgroup Genlist Genlist
16517     *
16518     * @image html img/widget/genlist/preview-00.png
16519     * @image latex img/widget/genlist/preview-00.eps
16520     * @image html img/genlist.png
16521     * @image latex img/genlist.eps
16522     *
16523     * This widget aims to have more expansive list than the simple list in
16524     * Elementary that could have more flexible items and allow many more entries
16525     * while still being fast and low on memory usage. At the same time it was
16526     * also made to be able to do tree structures. But the price to pay is more
16527     * complexity when it comes to usage. If all you want is a simple list with
16528     * icons and a single label, use the normal @ref List object.
16529     *
16530     * Genlist has a fairly large API, mostly because it's relatively complex,
16531     * trying to be both expansive, powerful and efficient. First we will begin
16532     * an overview on the theory behind genlist.
16533     *
16534     * @section Genlist_Item_Class Genlist item classes - creating items
16535     *
16536     * In order to have the ability to add and delete items on the fly, genlist
16537     * implements a class (callback) system where the application provides a
16538     * structure with information about that type of item (genlist may contain
16539     * multiple different items with different classes, states and styles).
16540     * Genlist will call the functions in this struct (methods) when an item is
16541     * "realized" (i.e., created dynamically, while the user is scrolling the
16542     * grid). All objects will simply be deleted when no longer needed with
16543     * evas_object_del(). The #Elm_Genlist_Item_Class structure contains the
16544     * following members:
16545     * - @c item_style - This is a constant string and simply defines the name
16546     *   of the item style. It @b must be specified and the default should be @c
16547     *   "default".
16548     * - @c mode_item_style - This is a constant string and simply defines the
16549     *   name of the style that will be used for mode animations. It can be left
16550     *   as @c NULL if you don't plan to use Genlist mode. See
16551     *   elm_genlist_item_mode_set() for more info.
16552     *
16553     * - @c func - A struct with pointers to functions that will be called when
16554     *   an item is going to be actually created. All of them receive a @c data
16555     *   parameter that will point to the same data passed to
16556     *   elm_genlist_item_append() and related item creation functions, and a @c
16557     *   obj parameter that points to the genlist object itself.
16558     *
16559     * The function pointers inside @c func are @c label_get, @c icon_get, @c
16560     * state_get and @c del. The 3 first functions also receive a @c part
16561     * parameter described below. A brief description of these functions follows:
16562     *
16563     * - @c label_get - The @c part parameter is the name string of one of the
16564     *   existing text parts in the Edje group implementing the item's theme.
16565     *   This function @b must return a strdup'()ed string, as the caller will
16566     *   free() it when done. See #Elm_Genlist_Item_Label_Get_Cb.
16567     * - @c icon_get - The @c part parameter is the name string of one of the
16568     *   existing (icon) swallow parts in the Edje group implementing the item's
16569     *   theme. It must return @c NULL, when no icon is desired, or a valid
16570     *   object handle, otherwise.  The object will be deleted by the genlist on
16571     *   its deletion or when the item is "unrealized".  See
16572     *   #Elm_Genlist_Item_Icon_Get_Cb.
16573     * - @c func.state_get - The @c part parameter is the name string of one of
16574     *   the state parts in the Edje group implementing the item's theme. Return
16575     *   @c EINA_FALSE for false/off or @c EINA_TRUE for true/on. Genlists will
16576     *   emit a signal to its theming Edje object with @c "elm,state,XXX,active"
16577     *   and @c "elm" as "emission" and "source" arguments, respectively, when
16578     *   the state is true (the default is false), where @c XXX is the name of
16579     *   the (state) part.  See #Elm_Genlist_Item_State_Get_Cb.
16580     * - @c func.del - This is intended for use when genlist items are deleted,
16581     *   so any data attached to the item (e.g. its data parameter on creation)
16582     *   can be deleted. See #Elm_Genlist_Item_Del_Cb.
16583     *
16584     * available item styles:
16585     * - default
16586     * - default_style - The text part is a textblock
16587     *
16588     * @image html img/widget/genlist/preview-04.png
16589     * @image latex img/widget/genlist/preview-04.eps
16590     *
16591     * - double_label
16592     *
16593     * @image html img/widget/genlist/preview-01.png
16594     * @image latex img/widget/genlist/preview-01.eps
16595     *
16596     * - icon_top_text_bottom
16597     *
16598     * @image html img/widget/genlist/preview-02.png
16599     * @image latex img/widget/genlist/preview-02.eps
16600     *
16601     * - group_index
16602     *
16603     * @image html img/widget/genlist/preview-03.png
16604     * @image latex img/widget/genlist/preview-03.eps
16605     *
16606     * @section Genlist_Items Structure of items
16607     *
16608     * An item in a genlist can have 0 or more text labels (they can be regular
16609     * text or textblock Evas objects - that's up to the style to determine), 0
16610     * or more icons (which are simply objects swallowed into the genlist item's
16611     * theming Edje object) and 0 or more <b>boolean states</b>, which have the
16612     * behavior left to the user to define. The Edje part names for each of
16613     * these properties will be looked up, in the theme file for the genlist,
16614     * under the Edje (string) data items named @c "labels", @c "icons" and @c
16615     * "states", respectively. For each of those properties, if more than one
16616     * part is provided, they must have names listed separated by spaces in the
16617     * data fields. For the default genlist item theme, we have @b one label
16618     * part (@c "elm.text"), @b two icon parts (@c "elm.swalllow.icon" and @c
16619     * "elm.swallow.end") and @b no state parts.
16620     *
16621     * A genlist item may be at one of several styles. Elementary provides one
16622     * by default - "default", but this can be extended by system or application
16623     * custom themes/overlays/extensions (see @ref Theme "themes" for more
16624     * details).
16625     *
16626     * @section Genlist_Manipulation Editing and Navigating
16627     *
16628     * Items can be added by several calls. All of them return a @ref
16629     * Elm_Genlist_Item handle that is an internal member inside the genlist.
16630     * They all take a data parameter that is meant to be used for a handle to
16631     * the applications internal data (eg the struct with the original item
16632     * data). The parent parameter is the parent genlist item this belongs to if
16633     * it is a tree or an indexed group, and NULL if there is no parent. The
16634     * flags can be a bitmask of #ELM_GENLIST_ITEM_NONE,
16635     * #ELM_GENLIST_ITEM_SUBITEMS and #ELM_GENLIST_ITEM_GROUP. If
16636     * #ELM_GENLIST_ITEM_SUBITEMS is set then this item is displayed as an item
16637     * that is able to expand and have child items.  If ELM_GENLIST_ITEM_GROUP
16638     * is set then this item is group index item that is displayed at the top
16639     * until the next group comes. The func parameter is a convenience callback
16640     * that is called when the item is selected and the data parameter will be
16641     * the func_data parameter, obj be the genlist object and event_info will be
16642     * the genlist item.
16643     *
16644     * elm_genlist_item_append() adds an item to the end of the list, or if
16645     * there is a parent, to the end of all the child items of the parent.
16646     * elm_genlist_item_prepend() is the same but adds to the beginning of
16647     * the list or children list. elm_genlist_item_insert_before() inserts at
16648     * item before another item and elm_genlist_item_insert_after() inserts after
16649     * the indicated item.
16650     *
16651     * The application can clear the list with elm_genlist_clear() which deletes
16652     * all the items in the list and elm_genlist_item_del() will delete a specific
16653     * item. elm_genlist_item_subitems_clear() will clear all items that are
16654     * children of the indicated parent item.
16655     *
16656     * To help inspect list items you can jump to the item at the top of the list
16657     * with elm_genlist_first_item_get() which will return the item pointer, and
16658     * similarly elm_genlist_last_item_get() gets the item at the end of the list.
16659     * elm_genlist_item_next_get() and elm_genlist_item_prev_get() get the next
16660     * and previous items respectively relative to the indicated item. Using
16661     * these calls you can walk the entire item list/tree. Note that as a tree
16662     * the items are flattened in the list, so elm_genlist_item_parent_get() will
16663     * let you know which item is the parent (and thus know how to skip them if
16664     * wanted).
16665     *
16666     * @section Genlist_Muti_Selection Multi-selection
16667     *
16668     * If the application wants multiple items to be able to be selected,
16669     * elm_genlist_multi_select_set() can enable this. If the list is
16670     * single-selection only (the default), then elm_genlist_selected_item_get()
16671     * will return the selected item, if any, or NULL I none is selected. If the
16672     * list is multi-select then elm_genlist_selected_items_get() will return a
16673     * list (that is only valid as long as no items are modified (added, deleted,
16674     * selected or unselected)).
16675     *
16676     * @section Genlist_Usage_Hints Usage hints
16677     *
16678     * There are also convenience functions. elm_genlist_item_genlist_get() will
16679     * return the genlist object the item belongs to. elm_genlist_item_show()
16680     * will make the scroller scroll to show that specific item so its visible.
16681     * elm_genlist_item_data_get() returns the data pointer set by the item
16682     * creation functions.
16683     *
16684     * If an item changes (state of boolean changes, label or icons change),
16685     * then use elm_genlist_item_update() to have genlist update the item with
16686     * the new state. Genlist will re-realize the item thus call the functions
16687     * in the _Elm_Genlist_Item_Class for that item.
16688     *
16689     * To programmatically (un)select an item use elm_genlist_item_selected_set().
16690     * To get its selected state use elm_genlist_item_selected_get(). Similarly
16691     * to expand/contract an item and get its expanded state, use
16692     * elm_genlist_item_expanded_set() and elm_genlist_item_expanded_get(). And
16693     * again to make an item disabled (unable to be selected and appear
16694     * differently) use elm_genlist_item_disabled_set() to set this and
16695     * elm_genlist_item_disabled_get() to get the disabled state.
16696     *
16697     * In general to indicate how the genlist should expand items horizontally to
16698     * fill the list area, use elm_genlist_horizontal_set(). Valid modes are
16699     * ELM_LIST_LIMIT and ELM_LIST_SCROLL. The default is ELM_LIST_SCROLL. This
16700     * mode means that if items are too wide to fit, the scroller will scroll
16701     * horizontally. Otherwise items are expanded to fill the width of the
16702     * viewport of the scroller. If it is ELM_LIST_LIMIT, items will be expanded
16703     * to the viewport width and limited to that size. This can be combined with
16704     * a different style that uses edjes' ellipsis feature (cutting text off like
16705     * this: "tex...").
16706     *
16707     * Items will only call their selection func and callback when first becoming
16708     * selected. Any further clicks will do nothing, unless you enable always
16709     * select with elm_genlist_always_select_mode_set(). This means even if
16710     * selected, every click will make the selected callbacks be called.
16711     * elm_genlist_no_select_mode_set() will turn off the ability to select
16712     * items entirely and they will neither appear selected nor call selected
16713     * callback functions.
16714     *
16715     * Remember that you can create new styles and add your own theme augmentation
16716     * per application with elm_theme_extension_add(). If you absolutely must
16717     * have a specific style that overrides any theme the user or system sets up
16718     * you can use elm_theme_overlay_add() to add such a file.
16719     *
16720     * @section Genlist_Implementation Implementation
16721     *
16722     * Evas tracks every object you create. Every time it processes an event
16723     * (mouse move, down, up etc.) it needs to walk through objects and find out
16724     * what event that affects. Even worse every time it renders display updates,
16725     * in order to just calculate what to re-draw, it needs to walk through many
16726     * many many objects. Thus, the more objects you keep active, the more
16727     * overhead Evas has in just doing its work. It is advisable to keep your
16728     * active objects to the minimum working set you need. Also remember that
16729     * object creation and deletion carries an overhead, so there is a
16730     * middle-ground, which is not easily determined. But don't keep massive lists
16731     * of objects you can't see or use. Genlist does this with list objects. It
16732     * creates and destroys them dynamically as you scroll around. It groups them
16733     * into blocks so it can determine the visibility etc. of a whole block at
16734     * once as opposed to having to walk the whole list. This 2-level list allows
16735     * for very large numbers of items to be in the list (tests have used up to
16736     * 2,000,000 items). Also genlist employs a queue for adding items. As items
16737     * may be different sizes, every item added needs to be calculated as to its
16738     * size and thus this presents a lot of overhead on populating the list, this
16739     * genlist employs a queue. Any item added is queued and spooled off over
16740     * time, actually appearing some time later, so if your list has many members
16741     * you may find it takes a while for them to all appear, with your process
16742     * consuming a lot of CPU while it is busy spooling.
16743     *
16744     * Genlist also implements a tree structure, but it does so with callbacks to
16745     * the application, with the application filling in tree structures when
16746     * requested (allowing for efficient building of a very deep tree that could
16747     * even be used for file-management). See the above smart signal callbacks for
16748     * details.
16749     *
16750     * @section Genlist_Smart_Events Genlist smart events
16751     *
16752     * Signals that you can add callbacks for are:
16753     * - @c "activated" - The user has double-clicked or pressed
16754     *   (enter|return|spacebar) on an item. The @c event_info parameter is the
16755     *   item that was activated.
16756     * - @c "clicked,double" - The user has double-clicked an item.  The @c
16757     *   event_info parameter is the item that was double-clicked.
16758     * - @c "selected" - This is called when a user has made an item selected.
16759     *   The event_info parameter is the genlist item that was selected.
16760     * - @c "unselected" - This is called when a user has made an item
16761     *   unselected. The event_info parameter is the genlist item that was
16762     *   unselected.
16763     * - @c "expanded" - This is called when elm_genlist_item_expanded_set() is
16764     *   called and the item is now meant to be expanded. The event_info
16765     *   parameter is the genlist item that was indicated to expand.  It is the
16766     *   job of this callback to then fill in the child items.
16767     * - @c "contracted" - This is called when elm_genlist_item_expanded_set() is
16768     *   called and the item is now meant to be contracted. The event_info
16769     *   parameter is the genlist item that was indicated to contract. It is the
16770     *   job of this callback to then delete the child items.
16771     * - @c "expand,request" - This is called when a user has indicated they want
16772     *   to expand a tree branch item. The callback should decide if the item can
16773     *   expand (has any children) and then call elm_genlist_item_expanded_set()
16774     *   appropriately to set the state. The event_info parameter is the genlist
16775     *   item that was indicated to expand.
16776     * - @c "contract,request" - This is called when a user has indicated they
16777     *   want to contract a tree branch item. The callback should decide if the
16778     *   item can contract (has any children) and then call
16779     *   elm_genlist_item_expanded_set() appropriately to set the state. The
16780     *   event_info parameter is the genlist item that was indicated to contract.
16781     * - @c "realized" - This is called when the item in the list is created as a
16782     *   real evas object. event_info parameter is the genlist item that was
16783     *   created. The object may be deleted at any time, so it is up to the
16784     *   caller to not use the object pointer from elm_genlist_item_object_get()
16785     *   in a way where it may point to freed objects.
16786     * - @c "unrealized" - This is called just before an item is unrealized.
16787     *   After this call icon objects provided will be deleted and the item
16788     *   object itself delete or be put into a floating cache.
16789     * - @c "drag,start,up" - This is called when the item in the list has been
16790     *   dragged (not scrolled) up.
16791     * - @c "drag,start,down" - This is called when the item in the list has been
16792     *   dragged (not scrolled) down.
16793     * - @c "drag,start,left" - This is called when the item in the list has been
16794     *   dragged (not scrolled) left.
16795     * - @c "drag,start,right" - This is called when the item in the list has
16796     *   been dragged (not scrolled) right.
16797     * - @c "drag,stop" - This is called when the item in the list has stopped
16798     *   being dragged.
16799     * - @c "drag" - This is called when the item in the list is being dragged.
16800     * - @c "longpressed" - This is called when the item is pressed for a certain
16801     *   amount of time. By default it's 1 second.
16802     * - @c "scroll,anim,start" - This is called when scrolling animation has
16803     *   started.
16804     * - @c "scroll,anim,stop" - This is called when scrolling animation has
16805     *   stopped.
16806     * - @c "scroll,drag,start" - This is called when dragging the content has
16807     *   started.
16808     * - @c "scroll,drag,stop" - This is called when dragging the content has
16809     *   stopped.
16810     * - @c "scroll,edge,top" - This is called when the genlist is scrolled until
16811     *   the top edge.
16812     * - @c "scroll,edge,bottom" - This is called when the genlist is scrolled
16813     *   until the bottom edge.
16814     * - @c "scroll,edge,left" - This is called when the genlist is scrolled
16815     *   until the left edge.
16816     * - @c "scroll,edge,right" - This is called when the genlist is scrolled
16817     *   until the right edge.
16818     * - @c "multi,swipe,left" - This is called when the genlist is multi-touch
16819     *   swiped left.
16820     * - @c "multi,swipe,right" - This is called when the genlist is multi-touch
16821     *   swiped right.
16822     * - @c "multi,swipe,up" - This is called when the genlist is multi-touch
16823     *   swiped up.
16824     * - @c "multi,swipe,down" - This is called when the genlist is multi-touch
16825     *   swiped down.
16826     * - @c "multi,pinch,out" - This is called when the genlist is multi-touch
16827     *   pinched out.  "- @c multi,pinch,in" - This is called when the genlist is
16828     *   multi-touch pinched in.
16829     * - @c "swipe" - This is called when the genlist is swiped.
16830     *
16831     * @section Genlist_Examples Examples
16832     *
16833     * Here is a list of examples that use the genlist, trying to show some of
16834     * its capabilities:
16835     * - @ref genlist_example_01
16836     * - @ref genlist_example_02
16837     * - @ref genlist_example_03
16838     * - @ref genlist_example_04
16839     * - @ref genlist_example_05
16840     */
16841
16842    /**
16843     * @addtogroup Genlist
16844     * @{
16845     */
16846
16847    /**
16848     * @enum _Elm_Genlist_Item_Flags
16849     * @typedef Elm_Genlist_Item_Flags
16850     *
16851     * Defines if the item is of any special type (has subitems or it's the
16852     * index of a group), or is just a simple item.
16853     *
16854     * @ingroup Genlist
16855     */
16856    typedef enum _Elm_Genlist_Item_Flags
16857      {
16858         ELM_GENLIST_ITEM_NONE = 0, /**< simple item */
16859         ELM_GENLIST_ITEM_SUBITEMS = (1 << 0), /**< may expand and have child items */
16860         ELM_GENLIST_ITEM_GROUP = (1 << 1) /**< index of a group of items */
16861      } Elm_Genlist_Item_Flags;
16862    typedef struct _Elm_Genlist_Item_Class Elm_Genlist_Item_Class;  /**< Genlist item class definition structs */
16863    typedef struct _Elm_Genlist_Item       Elm_Genlist_Item; /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
16864    typedef struct _Elm_Genlist_Item_Class_Func Elm_Genlist_Item_Class_Func; /**< Class functions for genlist item class */
16865    typedef char        *(*Elm_Genlist_Item_Label_Get_Cb) (void *data, Evas_Object *obj, const char *part); /**< Label fetching class function for genlist item classes. */
16866    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. */
16867    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. */
16868    typedef void         (*Elm_Genlist_Item_Del_Cb)      (void *data, Evas_Object *obj); /**< Deletion class function for genlist item classes. */
16869    typedef void         (*GenlistItemMovedFunc)    (Evas_Object *obj, Elm_Genlist_Item *item, Elm_Genlist_Item *rel_item, Eina_Bool move_after); /** TODO: remove this by SeoZ **/
16870
16871    typedef char        *(*GenlistItemLabelGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_Label_Get_Cb instead. */
16872    typedef Evas_Object *(*GenlistItemIconGetFunc)  (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_Icon_Get_Cb instead. */
16873    typedef Eina_Bool    (*GenlistItemStateGetFunc) (void *data, Evas_Object *obj, const char *part) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_State_Get_Cb instead. */
16874    typedef void         (*GenlistItemDelFunc)      (void *data, Evas_Object *obj) EINA_DEPRECATED; /** DEPRECATED. Use Elm_Genlist_Item_Del_Cb instead. */
16875
16876    /**
16877     * @struct _Elm_Genlist_Item_Class
16878     *
16879     * Genlist item class definition structs.
16880     *
16881     * This struct contains the style and fetching functions that will define the
16882     * contents of each item.
16883     *
16884     * @see @ref Genlist_Item_Class
16885     */
16886    struct _Elm_Genlist_Item_Class
16887      {
16888         const char                *item_style; /**< style of this class. */
16889         struct
16890           {
16891              Elm_Genlist_Item_Label_Get_Cb  label_get; /**< Label fetching class function for genlist item classes.*/
16892              Elm_Genlist_Item_Icon_Get_Cb   icon_get; /**< Icon fetching class function for genlist item classes. */
16893              Elm_Genlist_Item_State_Get_Cb  state_get; /**< State fetching class function for genlist item classes. */
16894              Elm_Genlist_Item_Del_Cb        del; /**< Deletion class function for genlist item classes. */
16895              GenlistItemMovedFunc     moved; // TODO: do not use this. change this to smart callback.
16896           } func;
16897         const char                *mode_item_style;
16898      };
16899
16900    /**
16901     * Add a new genlist widget to the given parent Elementary
16902     * (container) object
16903     *
16904     * @param parent The parent object
16905     * @return a new genlist widget handle or @c NULL, on errors
16906     *
16907     * This function inserts a new genlist widget on the canvas.
16908     *
16909     * @see elm_genlist_item_append()
16910     * @see elm_genlist_item_del()
16911     * @see elm_genlist_clear()
16912     *
16913     * @ingroup Genlist
16914     */
16915    EAPI Evas_Object      *elm_genlist_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
16916    /**
16917     * Remove all items from a given genlist widget.
16918     *
16919     * @param obj The genlist object
16920     *
16921     * This removes (and deletes) all items in @p obj, leaving it empty.
16922     *
16923     * @see elm_genlist_item_del(), to remove just one item.
16924     *
16925     * @ingroup Genlist
16926     */
16927    EAPI void              elm_genlist_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
16928    /**
16929     * Enable or disable multi-selection in the genlist
16930     *
16931     * @param obj The genlist object
16932     * @param multi Multi-select enable/disable. Default is disabled.
16933     *
16934     * This enables (@c EINA_TRUE) or disables (@c EINA_FALSE) multi-selection in
16935     * the list. This allows more than 1 item to be selected. To retrieve the list
16936     * of selected items, use elm_genlist_selected_items_get().
16937     *
16938     * @see elm_genlist_selected_items_get()
16939     * @see elm_genlist_multi_select_get()
16940     *
16941     * @ingroup Genlist
16942     */
16943    EAPI void              elm_genlist_multi_select_set(Evas_Object *obj, Eina_Bool multi) EINA_ARG_NONNULL(1);
16944    /**
16945     * Gets if multi-selection in genlist is enabled or disabled.
16946     *
16947     * @param obj The genlist object
16948     * @return Multi-select enabled/disabled
16949     * (@c EINA_TRUE = enabled/@c EINA_FALSE = disabled). Default is @c EINA_FALSE.
16950     *
16951     * @see elm_genlist_multi_select_set()
16952     *
16953     * @ingroup Genlist
16954     */
16955    EAPI Eina_Bool         elm_genlist_multi_select_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16956    /**
16957     * This sets the horizontal stretching mode.
16958     *
16959     * @param obj The genlist object
16960     * @param mode The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).
16961     *
16962     * This sets the mode used for sizing items horizontally. Valid modes
16963     * are #ELM_LIST_LIMIT and #ELM_LIST_SCROLL. The default is
16964     * ELM_LIST_SCROLL. This mode means that if items are too wide to fit,
16965     * the scroller will scroll horizontally. Otherwise items are expanded
16966     * to fill the width of the viewport of the scroller. If it is
16967     * ELM_LIST_LIMIT, items will be expanded to the viewport width and
16968     * limited to that size.
16969     *
16970     * @see elm_genlist_horizontal_get()
16971     *
16972     * @ingroup Genlist
16973     */
16974    EAPI void              elm_genlist_horizontal_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
16975    EINA_DEPRECATED EAPI void              elm_genlist_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode) EINA_ARG_NONNULL(1);
16976    /**
16977     * Gets the horizontal stretching mode.
16978     *
16979     * @param obj The genlist object
16980     * @return The mode to use
16981     * (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
16982     *
16983     * @see elm_genlist_horizontal_set()
16984     *
16985     * @ingroup Genlist
16986     */
16987    EAPI Elm_List_Mode     elm_genlist_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16988    EINA_DEPRECATED EAPI Elm_List_Mode     elm_genlist_horizontal_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
16989    /**
16990     * Set the always select mode.
16991     *
16992     * @param obj The genlist object
16993     * @param always_select The always select mode (@c EINA_TRUE = on, @c
16994     * EINA_FALSE = off). Default is @c EINA_FALSE.
16995     *
16996     * Items will only call their selection func and callback when first
16997     * becoming selected. Any further clicks will do nothing, unless you
16998     * enable always select with elm_genlist_always_select_mode_set().
16999     * This means that, even if selected, every click will make the selected
17000     * callbacks be called.
17001     *
17002     * @see elm_genlist_always_select_mode_get()
17003     *
17004     * @ingroup Genlist
17005     */
17006    EAPI void              elm_genlist_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select) EINA_ARG_NONNULL(1);
17007    /**
17008     * Get the always select mode.
17009     *
17010     * @param obj The genlist object
17011     * @return The always select mode
17012     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
17013     *
17014     * @see elm_genlist_always_select_mode_set()
17015     *
17016     * @ingroup Genlist
17017     */
17018    EAPI Eina_Bool         elm_genlist_always_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17019    /**
17020     * Enable/disable the no select mode.
17021     *
17022     * @param obj The genlist object
17023     * @param no_select The no select mode
17024     * (EINA_TRUE = on, EINA_FALSE = off)
17025     *
17026     * This will turn off the ability to select items entirely and they
17027     * will neither appear selected nor call selected callback functions.
17028     *
17029     * @see elm_genlist_no_select_mode_get()
17030     *
17031     * @ingroup Genlist
17032     */
17033    EAPI void              elm_genlist_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select) EINA_ARG_NONNULL(1);
17034    /**
17035     * Gets whether the no select mode is enabled.
17036     *
17037     * @param obj The genlist object
17038     * @return The no select mode
17039     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
17040     *
17041     * @see elm_genlist_no_select_mode_set()
17042     *
17043     * @ingroup Genlist
17044     */
17045    EAPI Eina_Bool         elm_genlist_no_select_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17046    /**
17047     * Enable/disable compress mode.
17048     *
17049     * @param obj The genlist object
17050     * @param compress The compress mode
17051     * (@c EINA_TRUE = on, @c EINA_FALSE = off). Default is @c EINA_FALSE.
17052     *
17053     * This will enable the compress mode where items are "compressed"
17054     * horizontally to fit the genlist scrollable viewport width. This is
17055     * special for genlist.  Do not rely on
17056     * elm_genlist_horizontal_set() being set to @c ELM_LIST_COMPRESS to
17057     * work as genlist needs to handle it specially.
17058     *
17059     * @see elm_genlist_compress_mode_get()
17060     *
17061     * @ingroup Genlist
17062     */
17063    EAPI void              elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress) EINA_ARG_NONNULL(1);
17064    /**
17065     * Get whether the compress mode is enabled.
17066     *
17067     * @param obj The genlist object
17068     * @return The compress mode
17069     * (@c EINA_TRUE = on, @c EINA_FALSE = off)
17070     *
17071     * @see elm_genlist_compress_mode_set()
17072     *
17073     * @ingroup Genlist
17074     */
17075    EAPI Eina_Bool         elm_genlist_compress_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17076    /**
17077     * Enable/disable height-for-width mode.
17078     *
17079     * @param obj The genlist object
17080     * @param setting The height-for-width mode (@c EINA_TRUE = on,
17081     * @c EINA_FALSE = off). Default is @c EINA_FALSE.
17082     *
17083     * With height-for-width mode the item width will be fixed (restricted
17084     * to a minimum of) to the list width when calculating its size in
17085     * order to allow the height to be calculated based on it. This allows,
17086     * for instance, text block to wrap lines if the Edje part is
17087     * configured with "text.min: 0 1".
17088     *
17089     * @note This mode will make list resize slower as it will have to
17090     *       recalculate every item height again whenever the list width
17091     *       changes!
17092     *
17093     * @note When height-for-width mode is enabled, it also enables
17094     *       compress mode (see elm_genlist_compress_mode_set()) and
17095     *       disables homogeneous (see elm_genlist_homogeneous_set()).
17096     *
17097     * @ingroup Genlist
17098     */
17099    EAPI void              elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width) EINA_ARG_NONNULL(1);
17100    /**
17101     * Get whether the height-for-width mode is enabled.
17102     *
17103     * @param obj The genlist object
17104     * @return The height-for-width mode (@c EINA_TRUE = on, @c EINA_FALSE =
17105     * off)
17106     *
17107     * @ingroup Genlist
17108     */
17109    EAPI Eina_Bool         elm_genlist_height_for_width_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17110    /**
17111     * Enable/disable horizontal and vertical bouncing effect.
17112     *
17113     * @param obj The genlist object
17114     * @param h_bounce Allow bounce horizontally (@c EINA_TRUE = on, @c
17115     * EINA_FALSE = off). Default is @c EINA_FALSE.
17116     * @param v_bounce Allow bounce vertically (@c EINA_TRUE = on, @c
17117     * EINA_FALSE = off). Default is @c EINA_TRUE.
17118     *
17119     * This will enable or disable the scroller bouncing effect for the
17120     * genlist. See elm_scroller_bounce_set() for details.
17121     *
17122     * @see elm_scroller_bounce_set()
17123     * @see elm_genlist_bounce_get()
17124     *
17125     * @ingroup Genlist
17126     */
17127    EAPI void              elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
17128    /**
17129     * Get whether the horizontal and vertical bouncing effect is enabled.
17130     *
17131     * @param obj The genlist object
17132     * @param h_bounce Pointer to a bool to receive if the bounce horizontally
17133     * option is set.
17134     * @param v_bounce Pointer to a bool to receive if the bounce vertically
17135     * option is set.
17136     *
17137     * @see elm_genlist_bounce_set()
17138     *
17139     * @ingroup Genlist
17140     */
17141    EAPI void              elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
17142    /**
17143     * Enable/disable homogenous mode.
17144     *
17145     * @param obj The genlist object
17146     * @param homogeneous Assume the items within the genlist are of the
17147     * same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is @c
17148     * EINA_FALSE.
17149     *
17150     * This will enable the homogeneous mode where items are of the same
17151     * height and width so that genlist may do the lazy-loading at its
17152     * maximum (which increases the performance for scrolling the list). This
17153     * implies 'compressed' mode.
17154     *
17155     * @see elm_genlist_compress_mode_set()
17156     * @see elm_genlist_homogeneous_get()
17157     *
17158     * @ingroup Genlist
17159     */
17160    EAPI void              elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous) EINA_ARG_NONNULL(1);
17161    /**
17162     * Get whether the homogenous mode is enabled.
17163     *
17164     * @param obj The genlist object
17165     * @return Assume the items within the genlist are of the same height
17166     * and width (EINA_TRUE = on, EINA_FALSE = off)
17167     *
17168     * @see elm_genlist_homogeneous_set()
17169     *
17170     * @ingroup Genlist
17171     */
17172    EAPI Eina_Bool         elm_genlist_homogeneous_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17173    /**
17174     * Set the maximum number of items within an item block
17175     *
17176     * @param obj The genlist object
17177     * @param n   Maximum number of items within an item block. Default is 32.
17178     *
17179     * This will configure the block count to tune to the target with
17180     * particular performance matrix.
17181     *
17182     * A block of objects will be used to reduce the number of operations due to
17183     * many objects in the screen. It can determine the visibility, or if the
17184     * object has changed, it theme needs to be updated, etc. doing this kind of
17185     * calculation to the entire block, instead of per object.
17186     *
17187     * The default value for the block count is enough for most lists, so unless
17188     * you know you will have a lot of objects visible in the screen at the same
17189     * time, don't try to change this.
17190     *
17191     * @see elm_genlist_block_count_get()
17192     * @see @ref Genlist_Implementation
17193     *
17194     * @ingroup Genlist
17195     */
17196    EAPI void              elm_genlist_block_count_set(Evas_Object *obj, int n) EINA_ARG_NONNULL(1);
17197    /**
17198     * Get the maximum number of items within an item block
17199     *
17200     * @param obj The genlist object
17201     * @return Maximum number of items within an item block
17202     *
17203     * @see elm_genlist_block_count_set()
17204     *
17205     * @ingroup Genlist
17206     */
17207    EAPI int               elm_genlist_block_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17208    /**
17209     * Set the timeout in seconds for the longpress event.
17210     *
17211     * @param obj The genlist object
17212     * @param timeout timeout in seconds. Default is 1.
17213     *
17214     * This option will change how long it takes to send an event "longpressed"
17215     * after the mouse down signal is sent to the list. If this event occurs, no
17216     * "clicked" event will be sent.
17217     *
17218     * @see elm_genlist_longpress_timeout_set()
17219     *
17220     * @ingroup Genlist
17221     */
17222    EAPI void              elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
17223    /**
17224     * Get the timeout in seconds for the longpress event.
17225     *
17226     * @param obj The genlist object
17227     * @return timeout in seconds
17228     *
17229     * @see elm_genlist_longpress_timeout_get()
17230     *
17231     * @ingroup Genlist
17232     */
17233    EAPI double            elm_genlist_longpress_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17234    /**
17235     * Append a new item in a given genlist widget.
17236     *
17237     * @param obj The genlist object
17238     * @param itc The item class for the item
17239     * @param data The item data
17240     * @param parent The parent item, or NULL if none
17241     * @param flags Item flags
17242     * @param func Convenience function called when the item is selected
17243     * @param func_data Data passed to @p func above.
17244     * @return A handle to the item added or @c NULL if not possible
17245     *
17246     * This adds the given item to the end of the list or the end of
17247     * the children list if the @p parent is given.
17248     *
17249     * @see elm_genlist_item_prepend()
17250     * @see elm_genlist_item_insert_before()
17251     * @see elm_genlist_item_insert_after()
17252     * @see elm_genlist_item_del()
17253     *
17254     * @ingroup Genlist
17255     */
17256    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);
17257    /**
17258     * Prepend a new item in a given genlist widget.
17259     *
17260     * @param obj The genlist object
17261     * @param itc The item class for the item
17262     * @param data The item data
17263     * @param parent The parent item, or NULL if none
17264     * @param flags Item flags
17265     * @param func Convenience function called when the item is selected
17266     * @param func_data Data passed to @p func above.
17267     * @return A handle to the item added or NULL if not possible
17268     *
17269     * This adds an item to the beginning of the list or beginning of the
17270     * children of the parent if given.
17271     *
17272     * @see elm_genlist_item_append()
17273     * @see elm_genlist_item_insert_before()
17274     * @see elm_genlist_item_insert_after()
17275     * @see elm_genlist_item_del()
17276     *
17277     * @ingroup Genlist
17278     */
17279    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);
17280    /**
17281     * Insert an item before another in a genlist widget
17282     *
17283     * @param obj The genlist object
17284     * @param itc The item class for the item
17285     * @param data The item data
17286     * @param before The item to place this new one before.
17287     * @param flags Item flags
17288     * @param func Convenience function called when the item is selected
17289     * @param func_data Data passed to @p func above.
17290     * @return A handle to the item added or @c NULL if not possible
17291     *
17292     * This inserts an item before another in the list. It will be in the
17293     * same tree level or group as the item it is inserted before.
17294     *
17295     * @see elm_genlist_item_append()
17296     * @see elm_genlist_item_prepend()
17297     * @see elm_genlist_item_insert_after()
17298     * @see elm_genlist_item_del()
17299     *
17300     * @ingroup Genlist
17301     */
17302    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);
17303    /**
17304     * Insert an item after another in a genlist widget
17305     *
17306     * @param obj The genlist object
17307     * @param itc The item class for the item
17308     * @param data The item data
17309     * @param after The item to place this new one after.
17310     * @param flags Item flags
17311     * @param func Convenience function called when the item is selected
17312     * @param func_data Data passed to @p func above.
17313     * @return A handle to the item added or @c NULL if not possible
17314     *
17315     * This inserts an item after another in the list. It will be in the
17316     * same tree level or group as the item it is inserted after.
17317     *
17318     * @see elm_genlist_item_append()
17319     * @see elm_genlist_item_prepend()
17320     * @see elm_genlist_item_insert_before()
17321     * @see elm_genlist_item_del()
17322     *
17323     * @ingroup Genlist
17324     */
17325    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);
17326    /**
17327     * Insert a new item into the sorted genlist object
17328     *
17329     * @param obj The genlist object
17330     * @param itc The item class for the item
17331     * @param data The item data
17332     * @param parent The parent item, or NULL if none
17333     * @param flags Item flags
17334     * @param comp The function called for the sort
17335     * @param func Convenience function called when item selected
17336     * @param func_data Data passed to @p func above.
17337     * @return A handle to the item added or NULL if not possible
17338     *
17339     * @ingroup Genlist
17340     */
17341    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);
17342    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);
17343    /* operations to retrieve existing items */
17344    /**
17345     * Get the selectd item in the genlist.
17346     *
17347     * @param obj The genlist object
17348     * @return The selected item, or NULL if none is selected.
17349     *
17350     * This gets the selected item in the list (if multi-selection is enabled, only
17351     * the item that was first selected in the list is returned - which is not very
17352     * useful, so see elm_genlist_selected_items_get() for when multi-selection is
17353     * used).
17354     *
17355     * If no item is selected, NULL is returned.
17356     *
17357     * @see elm_genlist_selected_items_get()
17358     *
17359     * @ingroup Genlist
17360     */
17361    EAPI Elm_Genlist_Item *elm_genlist_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17362    /**
17363     * Get a list of selected items in the genlist.
17364     *
17365     * @param obj The genlist object
17366     * @return The list of selected items, or NULL if none are selected.
17367     *
17368     * It returns a list of the selected items. This list pointer is only valid so
17369     * long as the selection doesn't change (no items are selected or unselected, or
17370     * unselected implicitly by deletion). The list contains Elm_Genlist_Item
17371     * pointers. The order of the items in this list is the order which they were
17372     * selected, i.e. the first item in this list is the first item that was
17373     * selected, and so on.
17374     *
17375     * @note If not in multi-select mode, consider using function
17376     * elm_genlist_selected_item_get() instead.
17377     *
17378     * @see elm_genlist_multi_select_set()
17379     * @see elm_genlist_selected_item_get()
17380     *
17381     * @ingroup Genlist
17382     */
17383    EAPI const Eina_List  *elm_genlist_selected_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17384    /**
17385     * Get a list of realized items in genlist
17386     *
17387     * @param obj The genlist object
17388     * @return The list of realized items, nor NULL if none are realized.
17389     *
17390     * This returns a list of the realized items in the genlist. The list
17391     * contains Elm_Genlist_Item pointers. The list must be freed by the
17392     * caller when done with eina_list_free(). The item pointers in the
17393     * list are only valid so long as those items are not deleted or the
17394     * genlist is not deleted.
17395     *
17396     * @see elm_genlist_realized_items_update()
17397     *
17398     * @ingroup Genlist
17399     */
17400    EAPI Eina_List        *elm_genlist_realized_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17401    /**
17402     * Get the item that is at the x, y canvas coords.
17403     *
17404     * @param obj The gelinst object.
17405     * @param x The input x coordinate
17406     * @param y The input y coordinate
17407     * @param posret The position relative to the item returned here
17408     * @return The item at the coordinates or NULL if none
17409     *
17410     * This returns the item at the given coordinates (which are canvas
17411     * relative, not object-relative). If an item is at that coordinate,
17412     * that item handle is returned, and if @p posret is not NULL, the
17413     * integer pointed to is set to a value of -1, 0 or 1, depending if
17414     * the coordinate is on the upper portion of that item (-1), on the
17415     * middle section (0) or on the lower part (1). If NULL is returned as
17416     * an item (no item found there), then posret may indicate -1 or 1
17417     * based if the coordinate is above or below all items respectively in
17418     * the genlist.
17419     *
17420     * @ingroup Genlist
17421     */
17422    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);
17423    /**
17424     * Get the first item in the genlist
17425     *
17426     * This returns the first item in the list.
17427     *
17428     * @param obj The genlist object
17429     * @return The first item, or NULL if none
17430     *
17431     * @ingroup Genlist
17432     */
17433    EAPI Elm_Genlist_Item *elm_genlist_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17434    /**
17435     * Get the last item in the genlist
17436     *
17437     * This returns the last item in the list.
17438     *
17439     * @return The last item, or NULL if none
17440     *
17441     * @ingroup Genlist
17442     */
17443    EAPI Elm_Genlist_Item *elm_genlist_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
17444    /**
17445     * Set the scrollbar policy
17446     *
17447     * @param obj The genlist object
17448     * @param policy_h Horizontal scrollbar policy.
17449     * @param policy_v Vertical scrollbar policy.
17450     *
17451     * This sets the scrollbar visibility policy for the given genlist
17452     * scroller. #ELM_SMART_SCROLLER_POLICY_AUTO means the scrollbar is
17453     * made visible if it is needed, and otherwise kept hidden.
17454     * #ELM_SMART_SCROLLER_POLICY_ON turns it on all the time, and
17455     * #ELM_SMART_SCROLLER_POLICY_OFF always keeps it off. This applies
17456     * respectively for the horizontal and vertical scrollbars. Default is
17457     * #ELM_SMART_SCROLLER_POLICY_AUTO
17458     *
17459     * @see elm_genlist_scroller_policy_get()
17460     *
17461     * @ingroup Genlist
17462     */
17463    EAPI void              elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
17464    /**
17465     * Get the scrollbar policy
17466     *
17467     * @param obj The genlist object
17468     * @param policy_h Pointer to store the horizontal scrollbar policy.
17469     * @param policy_v Pointer to store the vertical scrollbar policy.
17470     *
17471     * @see elm_genlist_scroller_policy_set()
17472     *
17473     * @ingroup Genlist
17474     */
17475    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);
17476    /**
17477     * Get the @b next item in a genlist widget's internal list of items,
17478     * given a handle to one of those items.
17479     *
17480     * @param item The genlist item to fetch next from
17481     * @return The item after @p item, or @c NULL if there's none (and
17482     * on errors)
17483     *
17484     * This returns the item placed after the @p item, on the container
17485     * genlist.
17486     *
17487     * @see elm_genlist_item_prev_get()
17488     *
17489     * @ingroup Genlist
17490     */
17491    EAPI Elm_Genlist_Item  *elm_genlist_item_next_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17492    /**
17493     * Get the @b previous item in a genlist widget's internal list of items,
17494     * given a handle to one of those items.
17495     *
17496     * @param item The genlist item to fetch previous from
17497     * @return The item before @p item, or @c NULL if there's none (and
17498     * on errors)
17499     *
17500     * This returns the item placed before the @p item, on the container
17501     * genlist.
17502     *
17503     * @see elm_genlist_item_next_get()
17504     *
17505     * @ingroup Genlist
17506     */
17507    EAPI Elm_Genlist_Item  *elm_genlist_item_prev_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17508    /**
17509     * Get the genlist object's handle which contains a given genlist
17510     * item
17511     *
17512     * @param item The item to fetch the container from
17513     * @return The genlist (parent) object
17514     *
17515     * This returns the genlist object itself that an item belongs to.
17516     *
17517     * @ingroup Genlist
17518     */
17519    EAPI Evas_Object       *elm_genlist_item_genlist_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17520    /**
17521     * Get the parent item of the given item
17522     *
17523     * @param it The item
17524     * @return The parent of the item or @c NULL if it has no parent.
17525     *
17526     * This returns the item that was specified as parent of the item @p it on
17527     * elm_genlist_item_append() and insertion related functions.
17528     *
17529     * @ingroup Genlist
17530     */
17531    EAPI Elm_Genlist_Item  *elm_genlist_item_parent_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17532    /**
17533     * Remove all sub-items (children) of the given item
17534     *
17535     * @param it The item
17536     *
17537     * This removes all items that are children (and their descendants) of the
17538     * given item @p it.
17539     *
17540     * @see elm_genlist_clear()
17541     * @see elm_genlist_item_del()
17542     *
17543     * @ingroup Genlist
17544     */
17545    EAPI void               elm_genlist_item_subitems_clear(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17546    /**
17547     * Set whether a given genlist item is selected or not
17548     *
17549     * @param it The item
17550     * @param selected Use @c EINA_TRUE, to make it selected, @c
17551     * EINA_FALSE to make it unselected
17552     *
17553     * This sets the selected state of an item. If multi selection is
17554     * not enabled on the containing genlist and @p selected is @c
17555     * EINA_TRUE, any other previously selected items will get
17556     * unselected in favor of this new one.
17557     *
17558     * @see elm_genlist_item_selected_get()
17559     *
17560     * @ingroup Genlist
17561     */
17562    EAPI void               elm_genlist_item_selected_set(Elm_Genlist_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
17563    /**
17564     * Get whether a given genlist item is selected or not
17565     *
17566     * @param it The item
17567     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
17568     *
17569     * @see elm_genlist_item_selected_set() for more details
17570     *
17571     * @ingroup Genlist
17572     */
17573    EAPI Eina_Bool          elm_genlist_item_selected_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17574    /**
17575     * Sets the expanded state of an item.
17576     *
17577     * @param it The item
17578     * @param expanded The expanded state (@c EINA_TRUE expanded, @c EINA_FALSE not expanded).
17579     *
17580     * This function flags the item of type #ELM_GENLIST_ITEM_SUBITEMS as
17581     * expanded or not.
17582     *
17583     * The theme will respond to this change visually, and a signal "expanded" or
17584     * "contracted" will be sent from the genlist with a pointer to the item that
17585     * has been expanded/contracted.
17586     *
17587     * Calling this function won't show or hide any child of this item (if it is
17588     * a parent). You must manually delete and create them on the callbacks fo
17589     * the "expanded" or "contracted" signals.
17590     *
17591     * @see elm_genlist_item_expanded_get()
17592     *
17593     * @ingroup Genlist
17594     */
17595    EAPI void               elm_genlist_item_expanded_set(Elm_Genlist_Item *item, Eina_Bool expanded) EINA_ARG_NONNULL(1);
17596    /**
17597     * Get the expanded state of an item
17598     *
17599     * @param it The item
17600     * @return The expanded state
17601     *
17602     * This gets the expanded state of an item.
17603     *
17604     * @see elm_genlist_item_expanded_set()
17605     *
17606     * @ingroup Genlist
17607     */
17608    EAPI Eina_Bool          elm_genlist_item_expanded_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17609    /**
17610     * Get the depth of expanded item
17611     *
17612     * @param it The genlist item object
17613     * @return The depth of expanded item
17614     *
17615     * @ingroup Genlist
17616     */
17617    EAPI int                elm_genlist_item_expanded_depth_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17618    /**
17619     * Set whether a given genlist item is disabled or not.
17620     *
17621     * @param it The item
17622     * @param disabled Use @c EINA_TRUE, true disable it, @c EINA_FALSE
17623     * to enable it back.
17624     *
17625     * A disabled item cannot be selected or unselected. It will also
17626     * change its appearance, to signal the user it's disabled.
17627     *
17628     * @see elm_genlist_item_disabled_get()
17629     *
17630     * @ingroup Genlist
17631     */
17632    EAPI void               elm_genlist_item_disabled_set(Elm_Genlist_Item *item, Eina_Bool disabled) EINA_ARG_NONNULL(1);
17633    /**
17634     * Get whether a given genlist item is disabled or not.
17635     *
17636     * @param it The item
17637     * @return @c EINA_TRUE, if it's disabled, @c EINA_FALSE otherwise
17638     * (and on errors).
17639     *
17640     * @see elm_genlist_item_disabled_set() for more details
17641     *
17642     * @ingroup Genlist
17643     */
17644    EAPI Eina_Bool          elm_genlist_item_disabled_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17645    /**
17646     * Sets the display only state of an item.
17647     *
17648     * @param it The item
17649     * @param display_only @c EINA_TRUE if the item is display only, @c
17650     * EINA_FALSE otherwise.
17651     *
17652     * A display only item cannot be selected or unselected. It is for
17653     * display only and not selecting or otherwise clicking, dragging
17654     * etc. by the user, thus finger size rules will not be applied to
17655     * this item.
17656     *
17657     * It's good to set group index items to display only state.
17658     *
17659     * @see elm_genlist_item_display_only_get()
17660     *
17661     * @ingroup Genlist
17662     */
17663    EAPI void               elm_genlist_item_display_only_set(Elm_Genlist_Item *it, Eina_Bool display_only) EINA_ARG_NONNULL(1);
17664    /**
17665     * Get the display only state of an item
17666     *
17667     * @param it The item
17668     * @return @c EINA_TRUE if the item is display only, @c
17669     * EINA_FALSE otherwise.
17670     *
17671     * @see elm_genlist_item_display_only_set()
17672     *
17673     * @ingroup Genlist
17674     */
17675    EAPI Eina_Bool          elm_genlist_item_display_only_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17676    /**
17677     * Show the portion of a genlist's internal list containing a given
17678     * item, immediately.
17679     *
17680     * @param it The item to display
17681     *
17682     * This causes genlist to jump to the given item @p it and show it (by
17683     * immediately scrolling to that position), if it is not fully visible.
17684     *
17685     * @see elm_genlist_item_bring_in()
17686     * @see elm_genlist_item_top_show()
17687     * @see elm_genlist_item_middle_show()
17688     *
17689     * @ingroup Genlist
17690     */
17691    EAPI void               elm_genlist_item_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17692    /**
17693     * Animatedly bring in, to the visible are of a genlist, a given
17694     * item on it.
17695     *
17696     * @param it The item to display
17697     *
17698     * This causes genlist to jump to the given item @p it and show it (by
17699     * animatedly scrolling), if it is not fully visible. This may use animation
17700     * to do so and take a period of time
17701     *
17702     * @see elm_genlist_item_show()
17703     * @see elm_genlist_item_top_bring_in()
17704     * @see elm_genlist_item_middle_bring_in()
17705     *
17706     * @ingroup Genlist
17707     */
17708    EAPI void               elm_genlist_item_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17709    /**
17710     * Show the portion of a genlist's internal list containing a given
17711     * item, immediately.
17712     *
17713     * @param it The item to display
17714     *
17715     * This causes genlist to jump to the given item @p it and show it (by
17716     * immediately scrolling to that position), if it is not fully visible.
17717     *
17718     * The item will be positioned at the top of the genlist viewport.
17719     *
17720     * @see elm_genlist_item_show()
17721     * @see elm_genlist_item_top_bring_in()
17722     *
17723     * @ingroup Genlist
17724     */
17725    EAPI void               elm_genlist_item_top_show(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17726    /**
17727     * Animatedly bring in, to the visible are of a genlist, a given
17728     * item on it.
17729     *
17730     * @param it The item
17731     *
17732     * This causes genlist to jump to the given item @p it and show it (by
17733     * animatedly scrolling), if it is not fully visible. This may use animation
17734     * to do so and take a period of time
17735     *
17736     * The item will be positioned at the top of the genlist viewport.
17737     *
17738     * @see elm_genlist_item_bring_in()
17739     * @see elm_genlist_item_top_show()
17740     *
17741     * @ingroup Genlist
17742     */
17743    EAPI void               elm_genlist_item_top_bring_in(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17744    /**
17745     * Show the portion of a genlist's internal list containing a given
17746     * item, immediately.
17747     *
17748     * @param it The item to display
17749     *
17750     * This causes genlist to jump to the given item @p it and show it (by
17751     * immediately scrolling to that position), if it is not fully visible.
17752     *
17753     * The item will be positioned at the middle of the genlist viewport.
17754     *
17755     * @see elm_genlist_item_show()
17756     * @see elm_genlist_item_middle_bring_in()
17757     *
17758     * @ingroup Genlist
17759     */
17760    EAPI void               elm_genlist_item_middle_show(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17761    /**
17762     * Animatedly bring in, to the visible are of a genlist, a given
17763     * item on it.
17764     *
17765     * @param it The item
17766     *
17767     * This causes genlist to jump to the given item @p it and show it (by
17768     * animatedly scrolling), if it is not fully visible. This may use animation
17769     * to do so and take a period of time
17770     *
17771     * The item will be positioned at the middle of the genlist viewport.
17772     *
17773     * @see elm_genlist_item_bring_in()
17774     * @see elm_genlist_item_middle_show()
17775     *
17776     * @ingroup Genlist
17777     */
17778    EAPI void               elm_genlist_item_middle_bring_in(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17779    /**
17780     * Remove a genlist item from the its parent, deleting it.
17781     *
17782     * @param item The item to be removed.
17783     * @return @c EINA_TRUE on success or @c EINA_FALSE, otherwise.
17784     *
17785     * @see elm_genlist_clear(), to remove all items in a genlist at
17786     * once.
17787     *
17788     * @ingroup Genlist
17789     */
17790    EAPI void               elm_genlist_item_del(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17791    /**
17792     * Return the data associated to a given genlist item
17793     *
17794     * @param item The genlist item.
17795     * @return the data associated to this item.
17796     *
17797     * This returns the @c data value passed on the
17798     * elm_genlist_item_append() and related item addition calls.
17799     *
17800     * @see elm_genlist_item_append()
17801     * @see elm_genlist_item_data_set()
17802     *
17803     * @ingroup Genlist
17804     */
17805    EAPI void              *elm_genlist_item_data_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17806    /**
17807     * Set the data associated to a given genlist item
17808     *
17809     * @param item The genlist item
17810     * @param data The new data pointer to set on it
17811     *
17812     * This @b overrides the @c data value passed on the
17813     * elm_genlist_item_append() and related item addition calls. This
17814     * function @b won't call elm_genlist_item_update() automatically,
17815     * so you'd issue it afterwards if you want to hove the item
17816     * updated to reflect the that new data.
17817     *
17818     * @see elm_genlist_item_data_get()
17819     *
17820     * @ingroup Genlist
17821     */
17822    EAPI void               elm_genlist_item_data_set(Elm_Genlist_Item *it, const void *data) EINA_ARG_NONNULL(1);
17823    /**
17824     * Tells genlist to "orphan" icons fetchs by the item class
17825     *
17826     * @param it The item
17827     *
17828     * This instructs genlist to release references to icons in the item,
17829     * meaning that they will no longer be managed by genlist and are
17830     * floating "orphans" that can be re-used elsewhere if the user wants
17831     * to.
17832     *
17833     * @ingroup Genlist
17834     */
17835    EAPI void               elm_genlist_item_icons_orphan(Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17836    /**
17837     * Get the real Evas object created to implement the view of a
17838     * given genlist item
17839     *
17840     * @param item The genlist item.
17841     * @return the Evas object implementing this item's view.
17842     *
17843     * This returns the actual Evas object used to implement the
17844     * specified genlist item's view. This may be @c NULL, as it may
17845     * not have been created or may have been deleted, at any time, by
17846     * the genlist. <b>Do not modify this object</b> (move, resize,
17847     * show, hide, etc.), as the genlist is controlling it. This
17848     * function is for querying, emitting custom signals or hooking
17849     * lower level callbacks for events on that object. Do not delete
17850     * this object under any circumstances.
17851     *
17852     * @see elm_genlist_item_data_get()
17853     *
17854     * @ingroup Genlist
17855     */
17856    EAPI const Evas_Object *elm_genlist_item_object_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17857    /**
17858     * Update the contents of an item
17859     *
17860     * @param it The item
17861     *
17862     * This updates an item by calling all the item class functions again
17863     * to get the icons, labels and states. Use this when the original
17864     * item data has changed and the changes are desired to be reflected.
17865     *
17866     * Use elm_genlist_realized_items_update() to update all already realized
17867     * items.
17868     *
17869     * @see elm_genlist_realized_items_update()
17870     *
17871     * @ingroup Genlist
17872     */
17873    EAPI void               elm_genlist_item_update(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17874    /**
17875     * Update the item class of an item
17876     *
17877     * @param it The item
17878     * @param itc The item class for the item
17879     *
17880     * This sets another class fo the item, changing the way that it is
17881     * displayed. After changing the item class, elm_genlist_item_update() is
17882     * called on the item @p it.
17883     *
17884     * @ingroup Genlist
17885     */
17886    EAPI void               elm_genlist_item_item_class_update(Elm_Genlist_Item *it, const Elm_Genlist_Item_Class *itc) EINA_ARG_NONNULL(1, 2);
17887    EAPI const Elm_Genlist_Item_Class *elm_genlist_item_item_class_get(const Elm_Genlist_Item *it) EINA_ARG_NONNULL(1);
17888    /**
17889     * Set the text to be shown in a given genlist item's tooltips.
17890     *
17891     * @param item The genlist item
17892     * @param text The text to set in the content
17893     *
17894     * This call will setup the text to be used as tooltip to that item
17895     * (analogous to elm_object_tooltip_text_set(), but being item
17896     * tooltips with higher precedence than object tooltips). It can
17897     * have only one tooltip at a time, so any previous tooltip data
17898     * will get removed.
17899     *
17900     * In order to set an icon or something else as a tooltip, look at
17901     * elm_genlist_item_tooltip_content_cb_set().
17902     *
17903     * @ingroup Genlist
17904     */
17905    EAPI void               elm_genlist_item_tooltip_text_set(Elm_Genlist_Item *item, const char *text) EINA_ARG_NONNULL(1);
17906    /**
17907     * Set the content to be shown in a given genlist item's tooltips
17908     *
17909     * @param item The genlist item.
17910     * @param func The function returning the tooltip contents.
17911     * @param data What to provide to @a func as callback data/context.
17912     * @param del_cb Called when data is not needed anymore, either when
17913     *        another callback replaces @p func, the tooltip is unset with
17914     *        elm_genlist_item_tooltip_unset() or the owner @p item
17915     *        dies. This callback receives as its first parameter the
17916     *        given @p data, being @c event_info the item handle.
17917     *
17918     * This call will setup the tooltip's contents to @p item
17919     * (analogous to elm_object_tooltip_content_cb_set(), but being
17920     * item tooltips with higher precedence than object tooltips). It
17921     * can have only one tooltip at a time, so any previous tooltip
17922     * content will get removed. @p func (with @p data) will be called
17923     * every time Elementary needs to show the tooltip and it should
17924     * return a valid Evas object, which will be fully managed by the
17925     * tooltip system, getting deleted when the tooltip is gone.
17926     *
17927     * In order to set just a text as a tooltip, look at
17928     * elm_genlist_item_tooltip_text_set().
17929     *
17930     * @ingroup Genlist
17931     */
17932    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);
17933    /**
17934     * Unset a tooltip from a given genlist item
17935     *
17936     * @param item genlist item to remove a previously set tooltip from.
17937     *
17938     * This call removes any tooltip set on @p item. The callback
17939     * provided as @c del_cb to
17940     * elm_genlist_item_tooltip_content_cb_set() will be called to
17941     * notify it is not used anymore (and have resources cleaned, if
17942     * need be).
17943     *
17944     * @see elm_genlist_item_tooltip_content_cb_set()
17945     *
17946     * @ingroup Genlist
17947     */
17948    EAPI void               elm_genlist_item_tooltip_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17949    /**
17950     * Set a different @b style for a given genlist item's tooltip.
17951     *
17952     * @param item genlist item with tooltip set
17953     * @param style the <b>theme style</b> to use on tooltips (e.g. @c
17954     * "default", @c "transparent", etc)
17955     *
17956     * Tooltips can have <b>alternate styles</b> to be displayed on,
17957     * which are defined by the theme set on Elementary. This function
17958     * works analogously as elm_object_tooltip_style_set(), but here
17959     * applied only to genlist item objects. The default style for
17960     * tooltips is @c "default".
17961     *
17962     * @note before you set a style you should define a tooltip with
17963     *       elm_genlist_item_tooltip_content_cb_set() or
17964     *       elm_genlist_item_tooltip_text_set()
17965     *
17966     * @see elm_genlist_item_tooltip_style_get()
17967     *
17968     * @ingroup Genlist
17969     */
17970    EAPI void               elm_genlist_item_tooltip_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
17971    /**
17972     * Get the style set a given genlist item's tooltip.
17973     *
17974     * @param item genlist item with tooltip already set on.
17975     * @return style the theme style in use, which defaults to
17976     *         "default". If the object does not have a tooltip set,
17977     *         then @c NULL is returned.
17978     *
17979     * @see elm_genlist_item_tooltip_style_set() for more details
17980     *
17981     * @ingroup Genlist
17982     */
17983    EAPI const char        *elm_genlist_item_tooltip_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
17984    /**
17985     * @brief Disable size restrictions on an object's tooltip
17986     * @param item The tooltip's anchor object
17987     * @param disable If EINA_TRUE, size restrictions are disabled
17988     * @return EINA_FALSE on failure, EINA_TRUE on success
17989     *
17990     * This function allows a tooltip to expand beyond its parant window's canvas.
17991     * It will instead be limited only by the size of the display.
17992     */
17993    EAPI Eina_Bool          elm_genlist_item_tooltip_size_restrict_disable(Elm_Genlist_Item *item, Eina_Bool disable);
17994    /**
17995     * @brief Retrieve size restriction state of an object's tooltip
17996     * @param item The tooltip's anchor object
17997     * @return If EINA_TRUE, size restrictions are disabled
17998     *
17999     * This function returns whether a tooltip is allowed to expand beyond
18000     * its parant window's canvas.
18001     * It will instead be limited only by the size of the display.
18002     */
18003    EAPI Eina_Bool          elm_genlist_item_tooltip_size_restrict_disabled_get(const Elm_Genlist_Item *item);
18004    /**
18005     * Set the type of mouse pointer/cursor decoration to be shown,
18006     * when the mouse pointer is over the given genlist widget item
18007     *
18008     * @param item genlist item to customize cursor on
18009     * @param cursor the cursor type's name
18010     *
18011     * This function works analogously as elm_object_cursor_set(), but
18012     * here the cursor's changing area is restricted to the item's
18013     * area, and not the whole widget's. Note that that item cursors
18014     * have precedence over widget cursors, so that a mouse over @p
18015     * item will always show cursor @p type.
18016     *
18017     * If this function is called twice for an object, a previously set
18018     * cursor will be unset on the second call.
18019     *
18020     * @see elm_object_cursor_set()
18021     * @see elm_genlist_item_cursor_get()
18022     * @see elm_genlist_item_cursor_unset()
18023     *
18024     * @ingroup Genlist
18025     */
18026    EAPI void               elm_genlist_item_cursor_set(Elm_Genlist_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
18027    /**
18028     * Get the type of mouse pointer/cursor decoration set to be shown,
18029     * when the mouse pointer is over the given genlist widget item
18030     *
18031     * @param item genlist item with custom cursor set
18032     * @return the cursor type's name or @c NULL, if no custom cursors
18033     * were set to @p item (and on errors)
18034     *
18035     * @see elm_object_cursor_get()
18036     * @see elm_genlist_item_cursor_set() for more details
18037     * @see elm_genlist_item_cursor_unset()
18038     *
18039     * @ingroup Genlist
18040     */
18041    EAPI const char        *elm_genlist_item_cursor_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18042    /**
18043     * Unset any custom mouse pointer/cursor decoration set to be
18044     * shown, when the mouse pointer is over the given genlist widget
18045     * item, thus making it show the @b default cursor again.
18046     *
18047     * @param item a genlist item
18048     *
18049     * Use this call to undo any custom settings on this item's cursor
18050     * decoration, bringing it back to defaults (no custom style set).
18051     *
18052     * @see elm_object_cursor_unset()
18053     * @see elm_genlist_item_cursor_set() for more details
18054     *
18055     * @ingroup Genlist
18056     */
18057    EAPI void               elm_genlist_item_cursor_unset(Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18058    /**
18059     * Set a different @b style for a given custom cursor set for a
18060     * genlist item.
18061     *
18062     * @param item genlist item with custom cursor set
18063     * @param style the <b>theme style</b> to use (e.g. @c "default",
18064     * @c "transparent", etc)
18065     *
18066     * This function only makes sense when one is using custom mouse
18067     * cursor decorations <b>defined in a theme file</b> , which can
18068     * have, given a cursor name/type, <b>alternate styles</b> on
18069     * it. It works analogously as elm_object_cursor_style_set(), but
18070     * here applied only to genlist item objects.
18071     *
18072     * @warning Before you set a cursor style you should have defined a
18073     *       custom cursor previously on the item, with
18074     *       elm_genlist_item_cursor_set()
18075     *
18076     * @see elm_genlist_item_cursor_engine_only_set()
18077     * @see elm_genlist_item_cursor_style_get()
18078     *
18079     * @ingroup Genlist
18080     */
18081    EAPI void               elm_genlist_item_cursor_style_set(Elm_Genlist_Item *item, const char *style) EINA_ARG_NONNULL(1);
18082    /**
18083     * Get the current @b style set for a given genlist item's custom
18084     * cursor
18085     *
18086     * @param item genlist item with custom cursor set.
18087     * @return style the cursor style in use. If the object does not
18088     *         have a cursor set, then @c NULL is returned.
18089     *
18090     * @see elm_genlist_item_cursor_style_set() for more details
18091     *
18092     * @ingroup Genlist
18093     */
18094    EAPI const char        *elm_genlist_item_cursor_style_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18095    /**
18096     * Set if the (custom) cursor for a given genlist item should be
18097     * searched in its theme, also, or should only rely on the
18098     * rendering engine.
18099     *
18100     * @param item item with custom (custom) cursor already set on
18101     * @param engine_only Use @c EINA_TRUE to have cursors looked for
18102     * only on those provided by the rendering engine, @c EINA_FALSE to
18103     * have them searched on the widget's theme, as well.
18104     *
18105     * @note This call is of use only if you've set a custom cursor
18106     * for genlist items, with elm_genlist_item_cursor_set().
18107     *
18108     * @note By default, cursors will only be looked for between those
18109     * provided by the rendering engine.
18110     *
18111     * @ingroup Genlist
18112     */
18113    EAPI void               elm_genlist_item_cursor_engine_only_set(Elm_Genlist_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
18114    /**
18115     * Get if the (custom) cursor for a given genlist item is being
18116     * searched in its theme, also, or is only relying on the rendering
18117     * engine.
18118     *
18119     * @param item a genlist item
18120     * @return @c EINA_TRUE, if cursors are being looked for only on
18121     * those provided by the rendering engine, @c EINA_FALSE if they
18122     * are being searched on the widget's theme, as well.
18123     *
18124     * @see elm_genlist_item_cursor_engine_only_set(), for more details
18125     *
18126     * @ingroup Genlist
18127     */
18128    EAPI Eina_Bool          elm_genlist_item_cursor_engine_only_get(const Elm_Genlist_Item *item) EINA_ARG_NONNULL(1);
18129    /**
18130     * Update the contents of all realized items.
18131     *
18132     * @param obj The genlist object.
18133     *
18134     * This updates all realized items by calling all the item class functions again
18135     * to get the icons, labels and states. Use this when the original
18136     * item data has changed and the changes are desired to be reflected.
18137     *
18138     * To update just one item, use elm_genlist_item_update().
18139     *
18140     * @see elm_genlist_realized_items_get()
18141     * @see elm_genlist_item_update()
18142     *
18143     * @ingroup Genlist
18144     */
18145    EAPI void               elm_genlist_realized_items_update(Evas_Object *obj) EINA_ARG_NONNULL(1);
18146    /**
18147     * Activate a genlist mode on an item
18148     *
18149     * @param item The genlist item
18150     * @param mode Mode name
18151     * @param mode_set Boolean to define set or unset mode.
18152     *
18153     * A genlist mode is a different way of selecting an item. Once a mode is
18154     * activated on an item, any other selected item is immediately unselected.
18155     * This feature provides an easy way of implementing a new kind of animation
18156     * for selecting an item, without having to entirely rewrite the item style
18157     * theme. However, the elm_genlist_selected_* API can't be used to get what
18158     * item is activate for a mode.
18159     *
18160     * The current item style will still be used, but applying a genlist mode to
18161     * an item will select it using a different kind of animation.
18162     *
18163     * The current active item for a mode can be found by
18164     * elm_genlist_mode_item_get().
18165     *
18166     * The characteristics of genlist mode are:
18167     * - Only one mode can be active at any time, and for only one item.
18168     * - Genlist handles deactivating other items when one item is activated.
18169     * - A mode is defined in the genlist theme (edc), and more modes can easily
18170     *   be added.
18171     * - A mode style and the genlist item style are different things. They
18172     *   can be combined to provide a default style to the item, with some kind
18173     *   of animation for that item when the mode is activated.
18174     *
18175     * When a mode is activated on an item, a new view for that item is created.
18176     * The theme of this mode defines the animation that will be used to transit
18177     * the item from the old view to the new view. This second (new) view will be
18178     * active for that item while the mode is active on the item, and will be
18179     * destroyed after the mode is totally deactivated from that item.
18180     *
18181     * @see elm_genlist_mode_get()
18182     * @see elm_genlist_mode_item_get()
18183     *
18184     * @ingroup Genlist
18185     */
18186    EAPI void               elm_genlist_item_mode_set(Elm_Genlist_Item *it, const char *mode_type, Eina_Bool mode_set) EINA_ARG_NONNULL(1, 2);
18187    /**
18188     * Get the last (or current) genlist mode used.
18189     *
18190     * @param obj The genlist object
18191     *
18192     * This function just returns the name of the last used genlist mode. It will
18193     * be the current mode if it's still active.
18194     *
18195     * @see elm_genlist_item_mode_set()
18196     * @see elm_genlist_mode_item_get()
18197     *
18198     * @ingroup Genlist
18199     */
18200    EAPI const char        *elm_genlist_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18201    /**
18202     * Get active genlist mode item
18203     *
18204     * @param obj The genlist object
18205     * @return The active item for that current mode. Or @c NULL if no item is
18206     * activated with any mode.
18207     *
18208     * This function returns the item that was activated with a mode, by the
18209     * function elm_genlist_item_mode_set().
18210     *
18211     * @see elm_genlist_item_mode_set()
18212     * @see elm_genlist_mode_get()
18213     *
18214     * @ingroup Genlist
18215     */
18216    EAPI const Elm_Genlist_Item *elm_genlist_mode_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18217
18218    /**
18219     * Set reorder mode
18220     *
18221     * @param obj The genlist object
18222     * @param reorder_mode The reorder mode
18223     * (EINA_TRUE = on, EINA_FALSE = off)
18224     *
18225     * @ingroup Genlist
18226     */
18227    EAPI void               elm_genlist_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode) EINA_ARG_NONNULL(1);
18228
18229    /**
18230     * Get the reorder mode
18231     *
18232     * @param obj The genlist object
18233     * @return The reorder mode
18234     * (EINA_TRUE = on, EINA_FALSE = off)
18235     *
18236     * @ingroup Genlist
18237     */
18238    EAPI Eina_Bool          elm_genlist_reorder_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18239
18240    /**
18241     * @}
18242     */
18243
18244    /**
18245     * @defgroup Check Check
18246     *
18247     * @image html img/widget/check/preview-00.png
18248     * @image latex img/widget/check/preview-00.eps
18249     * @image html img/widget/check/preview-01.png
18250     * @image latex img/widget/check/preview-01.eps
18251     * @image html img/widget/check/preview-02.png
18252     * @image latex img/widget/check/preview-02.eps
18253     *
18254     * @brief The check widget allows for toggling a value between true and
18255     * false.
18256     *
18257     * Check objects are a lot like radio objects in layout and functionality
18258     * except they do not work as a group, but independently and only toggle the
18259     * value of a boolean from false to true (0 or 1). elm_check_state_set() sets
18260     * the boolean state (1 for true, 0 for false), and elm_check_state_get()
18261     * returns the current state. For convenience, like the radio objects, you
18262     * can set a pointer to a boolean directly with elm_check_state_pointer_set()
18263     * for it to modify.
18264     *
18265     * Signals that you can add callbacks for are:
18266     * "changed" - This is called whenever the user changes the state of one of
18267     *             the check object(event_info is NULL).
18268     *
18269     * @ref tutorial_check should give you a firm grasp of how to use this widget.
18270     * @{
18271     */
18272    /**
18273     * @brief Add a new Check object
18274     *
18275     * @param parent The parent object
18276     * @return The new object or NULL if it cannot be created
18277     */
18278    EAPI Evas_Object *elm_check_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18279    /**
18280     * @brief Set the text label of the check object
18281     *
18282     * @param obj The check object
18283     * @param label The text label string in UTF-8
18284     *
18285     * @deprecated use elm_object_text_set() instead.
18286     */
18287    EINA_DEPRECATED EAPI void         elm_check_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
18288    /**
18289     * @brief Get the text label of the check object
18290     *
18291     * @param obj The check object
18292     * @return The text label string in UTF-8
18293     *
18294     * @deprecated use elm_object_text_get() instead.
18295     */
18296    EINA_DEPRECATED EAPI const char  *elm_check_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18297    /**
18298     * @brief Set the icon object of the check object
18299     *
18300     * @param obj The check object
18301     * @param icon The icon object
18302     *
18303     * Once the icon object is set, a previously set one will be deleted.
18304     * If you want to keep that old content object, use the
18305     * elm_check_icon_unset() function.
18306     */
18307    EAPI void         elm_check_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
18308    /**
18309     * @brief Get the icon object of the check object
18310     *
18311     * @param obj The check object
18312     * @return The icon object
18313     */
18314    EAPI Evas_Object *elm_check_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18315    /**
18316     * @brief Unset the icon used for the check object
18317     *
18318     * @param obj The check object
18319     * @return The icon object that was being used
18320     *
18321     * Unparent and return the icon object which was set for this widget.
18322     */
18323    EAPI Evas_Object *elm_check_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
18324    /**
18325     * @brief Set the on/off state of the check object
18326     *
18327     * @param obj The check object
18328     * @param state The state to use (1 == on, 0 == off)
18329     *
18330     * This sets the state of the check. If set
18331     * with elm_check_state_pointer_set() the state of that variable is also
18332     * changed. Calling this @b doesn't cause the "changed" signal to be emited.
18333     */
18334    EAPI void         elm_check_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
18335    /**
18336     * @brief Get the state of the check object
18337     *
18338     * @param obj The check object
18339     * @return The boolean state
18340     */
18341    EAPI Eina_Bool    elm_check_state_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18342    /**
18343     * @brief Set a convenience pointer to a boolean to change
18344     *
18345     * @param obj The check object
18346     * @param statep Pointer to the boolean to modify
18347     *
18348     * This sets a pointer to a boolean, that, in addition to the check objects
18349     * state will also be modified directly. To stop setting the object pointed
18350     * to simply use NULL as the @p statep parameter. If @p statep is not NULL,
18351     * then when this is called, the check objects state will also be modified to
18352     * reflect the value of the boolean @p statep points to, just like calling
18353     * elm_check_state_set().
18354     */
18355    EAPI void         elm_check_state_pointer_set(Evas_Object *obj, Eina_Bool *statep) EINA_ARG_NONNULL(1);
18356    /**
18357     * @}
18358     */
18359
18360    /**
18361     * @defgroup Radio Radio
18362     *
18363     * @image html img/widget/radio/preview-00.png
18364     * @image latex img/widget/radio/preview-00.eps
18365     *
18366     * @brief Radio is a widget that allows for 1 or more options to be displayed
18367     * and have the user choose only 1 of them.
18368     *
18369     * A radio object contains an indicator, an optional Label and an optional
18370     * icon object. While it's possible to have a group of only one radio they,
18371     * are normally used in groups of 2 or more. To add a radio to a group use
18372     * elm_radio_group_add(). The radio object(s) will select from one of a set
18373     * of integer values, so any value they are configuring needs to be mapped to
18374     * a set of integers. To configure what value that radio object represents,
18375     * use  elm_radio_state_value_set() to set the integer it represents. To set
18376     * the value the whole group(which one is currently selected) is to indicate
18377     * use elm_radio_value_set() on any group member, and to get the groups value
18378     * use elm_radio_value_get(). For convenience the radio objects are also able
18379     * to directly set an integer(int) to the value that is selected. To specify
18380     * the pointer to this integer to modify, use elm_radio_value_pointer_set().
18381     * The radio objects will modify this directly. That implies the pointer must
18382     * point to valid memory for as long as the radio objects exist.
18383     *
18384     * Signals that you can add callbacks for are:
18385     * @li changed - This is called whenever the user changes the state of one of
18386     * the radio objects within the group of radio objects that work together.
18387     *
18388     * @ref tutorial_radio show most of this API in action.
18389     * @{
18390     */
18391    /**
18392     * @brief Add a new radio to the parent
18393     *
18394     * @param parent The parent object
18395     * @return The new object or NULL if it cannot be created
18396     */
18397    EAPI Evas_Object *elm_radio_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18398    /**
18399     * @brief Set the text label of the radio object
18400     *
18401     * @param obj The radio object
18402     * @param label The text label string in UTF-8
18403     *
18404     * @deprecated use elm_object_text_set() instead.
18405     */
18406    EINA_DEPRECATED EAPI void         elm_radio_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
18407    /**
18408     * @brief Get the text label of the radio object
18409     *
18410     * @param obj The radio object
18411     * @return The text label string in UTF-8
18412     *
18413     * @deprecated use elm_object_text_set() instead.
18414     */
18415    EINA_DEPRECATED EAPI const char  *elm_radio_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18416    /**
18417     * @brief Set the icon object of the radio object
18418     *
18419     * @param obj The radio object
18420     * @param icon The icon object
18421     *
18422     * Once the icon object is set, a previously set one will be deleted. If you
18423     * want to keep that old content object, use the elm_radio_icon_unset()
18424     * function.
18425     */
18426    EAPI void         elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
18427    /**
18428     * @brief Get the icon object of the radio object
18429     *
18430     * @param obj The radio object
18431     * @return The icon object
18432     *
18433     * @see elm_radio_icon_set()
18434     */
18435    EAPI Evas_Object *elm_radio_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18436    /**
18437     * @brief Unset the icon used for the radio object
18438     *
18439     * @param obj The radio object
18440     * @return The icon object that was being used
18441     *
18442     * Unparent and return the icon object which was set for this widget.
18443     *
18444     * @see elm_radio_icon_set()
18445     */
18446    EAPI Evas_Object *elm_radio_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
18447    /**
18448     * @brief Add this radio to a group of other radio objects
18449     *
18450     * @param obj The radio object
18451     * @param group Any object whose group the @p obj is to join.
18452     *
18453     * Radio objects work in groups. Each member should have a different integer
18454     * value assigned. In order to have them work as a group, they need to know
18455     * about each other. This adds the given radio object to the group of which
18456     * the group object indicated is a member.
18457     */
18458    EAPI void         elm_radio_group_add(Evas_Object *obj, Evas_Object *group) EINA_ARG_NONNULL(1);
18459    /**
18460     * @brief Set the integer value that this radio object represents
18461     *
18462     * @param obj The radio object
18463     * @param value The value to use if this radio object is selected
18464     *
18465     * This sets the value of the radio.
18466     */
18467    EAPI void         elm_radio_state_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
18468    /**
18469     * @brief Get the integer value that this radio object represents
18470     *
18471     * @param obj The radio object
18472     * @return The value used if this radio object is selected
18473     *
18474     * This gets the value of the radio.
18475     *
18476     * @see elm_radio_value_set()
18477     */
18478    EAPI int          elm_radio_state_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18479    /**
18480     * @brief Set the value of the radio.
18481     *
18482     * @param obj The radio object
18483     * @param value The value to use for the group
18484     *
18485     * This sets the value of the radio group and will also set the value if
18486     * pointed to, to the value supplied, but will not call any callbacks.
18487     */
18488    EAPI void         elm_radio_value_set(Evas_Object *obj, int value) EINA_ARG_NONNULL(1);
18489    /**
18490     * @brief Get the state of the radio object
18491     *
18492     * @param obj The radio object
18493     * @return The integer state
18494     */
18495    EAPI int          elm_radio_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18496    /**
18497     * @brief Set a convenience pointer to a integer to change
18498     *
18499     * @param obj The radio object
18500     * @param valuep Pointer to the integer to modify
18501     *
18502     * This sets a pointer to a integer, that, in addition to the radio objects
18503     * state will also be modified directly. To stop setting the object pointed
18504     * to simply use NULL as the @p valuep argument. If valuep is not NULL, then
18505     * when this is called, the radio objects state will also be modified to
18506     * reflect the value of the integer valuep points to, just like calling
18507     * elm_radio_value_set().
18508     */
18509    EAPI void         elm_radio_value_pointer_set(Evas_Object *obj, int *valuep) EINA_ARG_NONNULL(1);
18510    /**
18511     * @}
18512     */
18513
18514    /**
18515     * @defgroup Pager Pager
18516     *
18517     * @image html img/widget/pager/preview-00.png
18518     * @image latex img/widget/pager/preview-00.eps
18519     *
18520     * @brief Widget that allows flipping between 1 or more “pages” of objects.
18521     *
18522     * The flipping between “pages” of objects is animated. All content in pager
18523     * is kept in a stack, the last content to be added will be on the top of the
18524     * stack(be visible).
18525     *
18526     * Objects can be pushed or popped from the stack or deleted as normal.
18527     * Pushes and pops will animate (and a pop will delete the object once the
18528     * animation is finished). Any object already in the pager can be promoted to
18529     * the top(from its current stacking position) through the use of
18530     * elm_pager_content_promote(). Objects are pushed to the top with
18531     * elm_pager_content_push() and when the top item is no longer wanted, simply
18532     * pop it with elm_pager_content_pop() and it will also be deleted. If an
18533     * object is no longer needed and is not the top item, just delete it as
18534     * normal. You can query which objects are the top and bottom with
18535     * elm_pager_content_bottom_get() and elm_pager_content_top_get().
18536     *
18537     * Signals that you can add callbacks for are:
18538     * "hide,finished" - when the previous page is hided
18539     *
18540     * This widget has the following styles available:
18541     * @li default
18542     * @li fade
18543     * @li fade_translucide
18544     * @li fade_invisible
18545     * @note This styles affect only the flipping animations, the appearance when
18546     * not animating is unaffected by styles.
18547     *
18548     * @ref tutorial_pager gives a good overview of the usage of the API.
18549     * @{
18550     */
18551    /**
18552     * Add a new pager to the parent
18553     *
18554     * @param parent The parent object
18555     * @return The new object or NULL if it cannot be created
18556     *
18557     * @ingroup Pager
18558     */
18559    EAPI Evas_Object *elm_pager_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18560    /**
18561     * @brief Push an object to the top of the pager stack (and show it).
18562     *
18563     * @param obj The pager object
18564     * @param content The object to push
18565     *
18566     * The object pushed becomes a child of the pager, it will be controlled and
18567     * deleted when the pager is deleted.
18568     *
18569     * @note If the content is already in the stack use
18570     * elm_pager_content_promote().
18571     * @warning Using this function on @p content already in the stack results in
18572     * undefined behavior.
18573     */
18574    EAPI void         elm_pager_content_push(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
18575    /**
18576     * @brief Pop the object that is on top of the stack
18577     *
18578     * @param obj The pager object
18579     *
18580     * This pops the object that is on the top(visible) of the pager, makes it
18581     * disappear, then deletes the object. The object that was underneath it on
18582     * the stack will become visible.
18583     */
18584    EAPI void         elm_pager_content_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
18585    /**
18586     * @brief Moves an object already in the pager stack to the top of the stack.
18587     *
18588     * @param obj The pager object
18589     * @param content The object to promote
18590     *
18591     * This will take the @p content and move it to the top of the stack as
18592     * if it had been pushed there.
18593     *
18594     * @note If the content isn't already in the stack use
18595     * elm_pager_content_push().
18596     * @warning Using this function on @p content not already in the stack
18597     * results in undefined behavior.
18598     */
18599    EAPI void         elm_pager_content_promote(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
18600    /**
18601     * @brief Return the object at the bottom of the pager stack
18602     *
18603     * @param obj The pager object
18604     * @return The bottom object or NULL if none
18605     */
18606    EAPI Evas_Object *elm_pager_content_bottom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18607    /**
18608     * @brief  Return the object at the top of the pager stack
18609     *
18610     * @param obj The pager object
18611     * @return The top object or NULL if none
18612     */
18613    EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18614    /**
18615     * @}
18616     */
18617
18618    /**
18619     * @defgroup Slideshow Slideshow
18620     *
18621     * @image html img/widget/slideshow/preview-00.png
18622     * @image latex img/widget/slideshow/preview-00.eps
18623     *
18624     * This widget, as the name indicates, is a pre-made image
18625     * slideshow panel, with API functions acting on (child) image
18626     * items presentation. Between those actions, are:
18627     * - advance to next/previous image
18628     * - select the style of image transition animation
18629     * - set the exhibition time for each image
18630     * - start/stop the slideshow
18631     *
18632     * The transition animations are defined in the widget's theme,
18633     * consequently new animations can be added without having to
18634     * update the widget's code.
18635     *
18636     * @section Slideshow_Items Slideshow items
18637     *
18638     * For slideshow items, just like for @ref Genlist "genlist" ones,
18639     * the user defines a @b classes, specifying functions that will be
18640     * called on the item's creation and deletion times.
18641     *
18642     * The #Elm_Slideshow_Item_Class structure contains the following
18643     * members:
18644     *
18645     * - @c func.get - When an item is displayed, this function is
18646     *   called, and it's where one should create the item object, de
18647     *   facto. For example, the object can be a pure Evas image object
18648     *   or an Elementary @ref Photocam "photocam" widget. See
18649     *   #SlideshowItemGetFunc.
18650     * - @c func.del - When an item is no more displayed, this function
18651     *   is called, where the user must delete any data associated to
18652     *   the item. See #SlideshowItemDelFunc.
18653     *
18654     * @section Slideshow_Caching Slideshow caching
18655     *
18656     * The slideshow provides facilities to have items adjacent to the
18657     * one being displayed <b>already "realized"</b> (i.e. loaded) for
18658     * you, so that the system does not have to decode image data
18659     * anymore at the time it has to actually switch images on its
18660     * viewport. The user is able to set the numbers of items to be
18661     * cached @b before and @b after the current item, in the widget's
18662     * item list.
18663     *
18664     * Smart events one can add callbacks for are:
18665     *
18666     * - @c "changed" - when the slideshow switches its view to a new
18667     *   item
18668     *
18669     * List of examples for the slideshow widget:
18670     * @li @ref slideshow_example
18671     */
18672
18673    /**
18674     * @addtogroup Slideshow
18675     * @{
18676     */
18677
18678    typedef struct _Elm_Slideshow_Item_Class Elm_Slideshow_Item_Class; /**< Slideshow item class definition struct */
18679    typedef struct _Elm_Slideshow_Item_Class_Func Elm_Slideshow_Item_Class_Func; /**< Class functions for slideshow item classes. */
18680    typedef struct _Elm_Slideshow_Item       Elm_Slideshow_Item; /**< Slideshow item handle */
18681    typedef Evas_Object *(*SlideshowItemGetFunc) (void *data, Evas_Object *obj); /**< Image fetching class function for slideshow item classes. */
18682    typedef void         (*SlideshowItemDelFunc) (void *data, Evas_Object *obj); /**< Deletion class function for slideshow item classes. */
18683
18684    /**
18685     * @struct _Elm_Slideshow_Item_Class
18686     *
18687     * Slideshow item class definition. See @ref Slideshow_Items for
18688     * field details.
18689     */
18690    struct _Elm_Slideshow_Item_Class
18691      {
18692         struct _Elm_Slideshow_Item_Class_Func
18693           {
18694              SlideshowItemGetFunc get;
18695              SlideshowItemDelFunc del;
18696           } func;
18697      }; /**< #Elm_Slideshow_Item_Class member definitions */
18698
18699    /**
18700     * Add a new slideshow widget to the given parent Elementary
18701     * (container) object
18702     *
18703     * @param parent The parent object
18704     * @return A new slideshow widget handle or @c NULL, on errors
18705     *
18706     * This function inserts a new slideshow widget on the canvas.
18707     *
18708     * @ingroup Slideshow
18709     */
18710    EAPI Evas_Object        *elm_slideshow_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
18711
18712    /**
18713     * Add (append) a new item in a given slideshow widget.
18714     *
18715     * @param obj The slideshow object
18716     * @param itc The item class for the item
18717     * @param data The item's data
18718     * @return A handle to the item added or @c NULL, on errors
18719     *
18720     * Add a new item to @p obj's internal list of items, appending it.
18721     * The item's class must contain the function really fetching the
18722     * image object to show for this item, which could be an Evas image
18723     * object or an Elementary photo, for example. The @p data
18724     * parameter is going to be passed to both class functions of the
18725     * item.
18726     *
18727     * @see #Elm_Slideshow_Item_Class
18728     * @see elm_slideshow_item_sorted_insert()
18729     *
18730     * @ingroup Slideshow
18731     */
18732    EAPI Elm_Slideshow_Item *elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data) EINA_ARG_NONNULL(1);
18733
18734    /**
18735     * Insert a new item into the given slideshow widget, using the @p func
18736     * function to sort items (by item handles).
18737     *
18738     * @param obj The slideshow object
18739     * @param itc The item class for the item
18740     * @param data The item's data
18741     * @param func The comparing function to be used to sort slideshow
18742     * items <b>by #Elm_Slideshow_Item item handles</b>
18743     * @return Returns The slideshow item handle, on success, or
18744     * @c NULL, on errors
18745     *
18746     * Add a new item to @p obj's internal list of items, in a position
18747     * determined by the @p func comparing function. The item's class
18748     * must contain the function really fetching the image object to
18749     * show for this item, which could be an Evas image object or an
18750     * Elementary photo, for example. The @p data parameter is going to
18751     * be passed to both class functions of the item.
18752     *
18753     * @see #Elm_Slideshow_Item_Class
18754     * @see elm_slideshow_item_add()
18755     *
18756     * @ingroup Slideshow
18757     */
18758    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);
18759
18760    /**
18761     * Display a given slideshow widget's item, programmatically.
18762     *
18763     * @param obj The slideshow object
18764     * @param item The item to display on @p obj's viewport
18765     *
18766     * The change between the current item and @p item will use the
18767     * transition @p obj is set to use (@see
18768     * elm_slideshow_transition_set()).
18769     *
18770     * @ingroup Slideshow
18771     */
18772    EAPI void                elm_slideshow_show(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
18773
18774    /**
18775     * Slide to the @b next item, in a given slideshow widget
18776     *
18777     * @param obj The slideshow object
18778     *
18779     * The sliding animation @p obj is set to use will be the
18780     * transition effect used, after this call is issued.
18781     *
18782     * @note If the end of the slideshow's internal list of items is
18783     * reached, it'll wrap around to the list's beginning, again.
18784     *
18785     * @ingroup Slideshow
18786     */
18787    EAPI void                elm_slideshow_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
18788
18789    /**
18790     * Slide to the @b previous item, in a given slideshow widget
18791     *
18792     * @param obj The slideshow object
18793     *
18794     * The sliding animation @p obj is set to use will be the
18795     * transition effect used, after this call is issued.
18796     *
18797     * @note If the beginning of the slideshow's internal list of items
18798     * is reached, it'll wrap around to the list's end, again.
18799     *
18800     * @ingroup Slideshow
18801     */
18802    EAPI void                elm_slideshow_previous(Evas_Object *obj) EINA_ARG_NONNULL(1);
18803
18804    /**
18805     * Returns the list of sliding transition/effect names available, for a
18806     * given slideshow widget.
18807     *
18808     * @param obj The slideshow object
18809     * @return The list of transitions (list of @b stringshared strings
18810     * as data)
18811     *
18812     * The transitions, which come from @p obj's theme, must be an EDC
18813     * data item named @c "transitions" on the theme file, with (prefix)
18814     * names of EDC programs actually implementing them.
18815     *
18816     * The available transitions for slideshows on the default theme are:
18817     * - @c "fade" - the current item fades out, while the new one
18818     *   fades in to the slideshow's viewport.
18819     * - @c "black_fade" - the current item fades to black, and just
18820     *   then, the new item will fade in.
18821     * - @c "horizontal" - the current item slides horizontally, until
18822     *   it gets out of the slideshow's viewport, while the new item
18823     *   comes from the left to take its place.
18824     * - @c "vertical" - the current item slides vertically, until it
18825     *   gets out of the slideshow's viewport, while the new item comes
18826     *   from the bottom to take its place.
18827     * - @c "square" - the new item starts to appear from the middle of
18828     *   the current one, but with a tiny size, growing until its
18829     *   target (full) size and covering the old one.
18830     *
18831     * @warning The stringshared strings get no new references
18832     * exclusive to the user grabbing the list, here, so if you'd like
18833     * to use them out of this call's context, you'd better @c
18834     * eina_stringshare_ref() them.
18835     *
18836     * @see elm_slideshow_transition_set()
18837     *
18838     * @ingroup Slideshow
18839     */
18840    EAPI const Eina_List    *elm_slideshow_transitions_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18841
18842    /**
18843     * Set the current slide transition/effect in use for a given
18844     * slideshow widget
18845     *
18846     * @param obj The slideshow object
18847     * @param transition The new transition's name string
18848     *
18849     * If @p transition is implemented in @p obj's theme (i.e., is
18850     * contained in the list returned by
18851     * elm_slideshow_transitions_get()), this new sliding effect will
18852     * be used on the widget.
18853     *
18854     * @see elm_slideshow_transitions_get() for more details
18855     *
18856     * @ingroup Slideshow
18857     */
18858    EAPI void                elm_slideshow_transition_set(Evas_Object *obj, const char *transition) EINA_ARG_NONNULL(1);
18859
18860    /**
18861     * Get the current slide transition/effect in use for a given
18862     * slideshow widget
18863     *
18864     * @param obj The slideshow object
18865     * @return The current transition's name
18866     *
18867     * @see elm_slideshow_transition_set() for more details
18868     *
18869     * @ingroup Slideshow
18870     */
18871    EAPI const char         *elm_slideshow_transition_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18872
18873    /**
18874     * Set the interval between each image transition on a given
18875     * slideshow widget, <b>and start the slideshow, itself</b>
18876     *
18877     * @param obj The slideshow object
18878     * @param timeout The new displaying timeout for images
18879     *
18880     * After this call, the slideshow widget will start cycling its
18881     * view, sequentially and automatically, with the images of the
18882     * items it has. The time between each new image displayed is going
18883     * to be @p timeout, in @b seconds. If a different timeout was set
18884     * previously and an slideshow was in progress, it will continue
18885     * with the new time between transitions, after this call.
18886     *
18887     * @note A value less than or equal to 0 on @p timeout will disable
18888     * the widget's internal timer, thus halting any slideshow which
18889     * could be happening on @p obj.
18890     *
18891     * @see elm_slideshow_timeout_get()
18892     *
18893     * @ingroup Slideshow
18894     */
18895    EAPI void                elm_slideshow_timeout_set(Evas_Object *obj, double timeout) EINA_ARG_NONNULL(1);
18896
18897    /**
18898     * Get the interval set for image transitions on a given slideshow
18899     * widget.
18900     *
18901     * @param obj The slideshow object
18902     * @return Returns the timeout set on it
18903     *
18904     * @see elm_slideshow_timeout_set() for more details
18905     *
18906     * @ingroup Slideshow
18907     */
18908    EAPI double              elm_slideshow_timeout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18909
18910    /**
18911     * Set if, after a slideshow is started, for a given slideshow
18912     * widget, its items should be displayed cyclically or not.
18913     *
18914     * @param obj The slideshow object
18915     * @param loop Use @c EINA_TRUE to make it cycle through items or
18916     * @c EINA_FALSE for it to stop at the end of @p obj's internal
18917     * list of items
18918     *
18919     * @note elm_slideshow_next() and elm_slideshow_previous() will @b
18920     * ignore what is set by this functions, i.e., they'll @b always
18921     * cycle through items. This affects only the "automatic"
18922     * slideshow, as set by elm_slideshow_timeout_set().
18923     *
18924     * @see elm_slideshow_loop_get()
18925     *
18926     * @ingroup Slideshow
18927     */
18928    EAPI void                elm_slideshow_loop_set(Evas_Object *obj, Eina_Bool loop) EINA_ARG_NONNULL(1);
18929
18930    /**
18931     * Get if, after a slideshow is started, for a given slideshow
18932     * widget, its items are to be displayed cyclically or not.
18933     *
18934     * @param obj The slideshow object
18935     * @return @c EINA_TRUE, if the items in @p obj will be cycled
18936     * through or @c EINA_FALSE, otherwise
18937     *
18938     * @see elm_slideshow_loop_set() for more details
18939     *
18940     * @ingroup Slideshow
18941     */
18942    EAPI Eina_Bool           elm_slideshow_loop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18943
18944    /**
18945     * Remove all items from a given slideshow widget
18946     *
18947     * @param obj The slideshow object
18948     *
18949     * This removes (and deletes) all items in @p obj, leaving it
18950     * empty.
18951     *
18952     * @see elm_slideshow_item_del(), to remove just one item.
18953     *
18954     * @ingroup Slideshow
18955     */
18956    EAPI void                elm_slideshow_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
18957
18958    /**
18959     * Get the internal list of items in a given slideshow widget.
18960     *
18961     * @param obj The slideshow object
18962     * @return The list of items (#Elm_Slideshow_Item as data) or
18963     * @c NULL on errors.
18964     *
18965     * This list is @b not to be modified in any way and must not be
18966     * freed. Use the list members with functions like
18967     * elm_slideshow_item_del(), elm_slideshow_item_data_get().
18968     *
18969     * @warning This list is only valid until @p obj object's internal
18970     * items list is changed. It should be fetched again with another
18971     * call to this function when changes happen.
18972     *
18973     * @ingroup Slideshow
18974     */
18975    EAPI const Eina_List    *elm_slideshow_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
18976
18977    /**
18978     * Delete a given item from a slideshow widget.
18979     *
18980     * @param item The slideshow item
18981     *
18982     * @ingroup Slideshow
18983     */
18984    EAPI void                elm_slideshow_item_del(Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
18985
18986    /**
18987     * Return the data associated with a given slideshow item
18988     *
18989     * @param item The slideshow item
18990     * @return Returns the data associated to this item
18991     *
18992     * @ingroup Slideshow
18993     */
18994    EAPI void               *elm_slideshow_item_data_get(const Elm_Slideshow_Item *item) EINA_ARG_NONNULL(1);
18995
18996    /**
18997     * Returns the currently displayed item, in a given slideshow widget
18998     *
18999     * @param obj The slideshow object
19000     * @return A handle to the item being displayed in @p obj or
19001     * @c NULL, if none is (and on errors)
19002     *
19003     * @ingroup Slideshow
19004     */
19005    EAPI Elm_Slideshow_Item *elm_slideshow_item_current_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19006
19007    /**
19008     * Get the real Evas object created to implement the view of a
19009     * given slideshow item
19010     *
19011     * @param item The slideshow item.
19012     * @return the Evas object implementing this item's view.
19013     *
19014     * This returns the actual Evas object used to implement the
19015     * specified slideshow item's view. This may be @c NULL, as it may
19016     * not have been created or may have been deleted, at any time, by
19017     * the slideshow. <b>Do not modify this object</b> (move, resize,
19018     * show, hide, etc.), as the slideshow is controlling it. This
19019     * function is for querying, emitting custom signals or hooking
19020     * lower level callbacks for events on that object. Do not delete
19021     * this object under any circumstances.
19022     *
19023     * @see elm_slideshow_item_data_get()
19024     *
19025     * @ingroup Slideshow
19026     */
19027    EAPI Evas_Object*        elm_slideshow_item_object_get(const Elm_Slideshow_Item* item) EINA_ARG_NONNULL(1);
19028
19029    /**
19030     * Get the the item, in a given slideshow widget, placed at
19031     * position @p nth, in its internal items list
19032     *
19033     * @param obj The slideshow object
19034     * @param nth The number of the item to grab a handle to (0 being
19035     * the first)
19036     * @return The item stored in @p obj at position @p nth or @c NULL,
19037     * if there's no item with that index (and on errors)
19038     *
19039     * @ingroup Slideshow
19040     */
19041    EAPI Elm_Slideshow_Item *elm_slideshow_item_nth_get(const Evas_Object *obj, unsigned int nth) EINA_ARG_NONNULL(1);
19042
19043    /**
19044     * Set the current slide layout in use for a given slideshow widget
19045     *
19046     * @param obj The slideshow object
19047     * @param layout The new layout's name string
19048     *
19049     * If @p layout is implemented in @p obj's theme (i.e., is contained
19050     * in the list returned by elm_slideshow_layouts_get()), this new
19051     * images layout will be used on the widget.
19052     *
19053     * @see elm_slideshow_layouts_get() for more details
19054     *
19055     * @ingroup Slideshow
19056     */
19057    EAPI void                elm_slideshow_layout_set(Evas_Object *obj, const char *layout) EINA_ARG_NONNULL(1);
19058
19059    /**
19060     * Get the current slide layout in use for a given slideshow widget
19061     *
19062     * @param obj The slideshow object
19063     * @return The current layout's name
19064     *
19065     * @see elm_slideshow_layout_set() for more details
19066     *
19067     * @ingroup Slideshow
19068     */
19069    EAPI const char         *elm_slideshow_layout_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19070
19071    /**
19072     * Returns the list of @b layout names available, for a given
19073     * slideshow widget.
19074     *
19075     * @param obj The slideshow object
19076     * @return The list of layouts (list of @b stringshared strings
19077     * as data)
19078     *
19079     * Slideshow layouts will change how the widget is to dispose each
19080     * image item in its viewport, with regard to cropping, scaling,
19081     * etc.
19082     *
19083     * The layouts, which come from @p obj's theme, must be an EDC
19084     * data item name @c "layouts" on the theme file, with (prefix)
19085     * names of EDC programs actually implementing them.
19086     *
19087     * The available layouts for slideshows on the default theme are:
19088     * - @c "fullscreen" - item images with original aspect, scaled to
19089     *   touch top and down slideshow borders or, if the image's heigh
19090     *   is not enough, left and right slideshow borders.
19091     * - @c "not_fullscreen" - the same behavior as the @c "fullscreen"
19092     *   one, but always leaving 10% of the slideshow's dimensions of
19093     *   distance between the item image's borders and the slideshow
19094     *   borders, for each axis.
19095     *
19096     * @warning The stringshared strings get no new references
19097     * exclusive to the user grabbing the list, here, so if you'd like
19098     * to use them out of this call's context, you'd better @c
19099     * eina_stringshare_ref() them.
19100     *
19101     * @see elm_slideshow_layout_set()
19102     *
19103     * @ingroup Slideshow
19104     */
19105    EAPI const Eina_List    *elm_slideshow_layouts_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19106
19107    /**
19108     * Set the number of items to cache, on a given slideshow widget,
19109     * <b>before the current item</b>
19110     *
19111     * @param obj The slideshow object
19112     * @param count Number of items to cache before the current one
19113     *
19114     * The default value for this property is @c 2. See
19115     * @ref Slideshow_Caching "slideshow caching" for more details.
19116     *
19117     * @see elm_slideshow_cache_before_get()
19118     *
19119     * @ingroup Slideshow
19120     */
19121    EAPI void                elm_slideshow_cache_before_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
19122
19123    /**
19124     * Retrieve the number of items to cache, on a given slideshow widget,
19125     * <b>before the current item</b>
19126     *
19127     * @param obj The slideshow object
19128     * @return The number of items set to be cached before the current one
19129     *
19130     * @see elm_slideshow_cache_before_set() for more details
19131     *
19132     * @ingroup Slideshow
19133     */
19134    EAPI int                 elm_slideshow_cache_before_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19135
19136    /**
19137     * Set the number of items to cache, on a given slideshow widget,
19138     * <b>after the current item</b>
19139     *
19140     * @param obj The slideshow object
19141     * @param count Number of items to cache after the current one
19142     *
19143     * The default value for this property is @c 2. See
19144     * @ref Slideshow_Caching "slideshow caching" for more details.
19145     *
19146     * @see elm_slideshow_cache_after_get()
19147     *
19148     * @ingroup Slideshow
19149     */
19150    EAPI void                elm_slideshow_cache_after_set(Evas_Object *obj, int count) EINA_ARG_NONNULL(1);
19151
19152    /**
19153     * Retrieve the number of items to cache, on a given slideshow widget,
19154     * <b>after the current item</b>
19155     *
19156     * @param obj The slideshow object
19157     * @return The number of items set to be cached after the current one
19158     *
19159     * @see elm_slideshow_cache_after_set() for more details
19160     *
19161     * @ingroup Slideshow
19162     */
19163    EAPI int                 elm_slideshow_cache_after_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19164
19165    /**
19166     * Get the number of items stored in a given slideshow widget
19167     *
19168     * @param obj The slideshow object
19169     * @return The number of items on @p obj, at the moment of this call
19170     *
19171     * @ingroup Slideshow
19172     */
19173    EAPI unsigned int        elm_slideshow_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19174
19175    /**
19176     * @}
19177     */
19178
19179    /**
19180     * @defgroup Fileselector File Selector
19181     *
19182     * @image html img/widget/fileselector/preview-00.png
19183     * @image latex img/widget/fileselector/preview-00.eps
19184     *
19185     * A file selector is a widget that allows a user to navigate
19186     * through a file system, reporting file selections back via its
19187     * API.
19188     *
19189     * It contains shortcut buttons for home directory (@c ~) and to
19190     * jump one directory upwards (..), as well as cancel/ok buttons to
19191     * confirm/cancel a given selection. After either one of those two
19192     * former actions, the file selector will issue its @c "done" smart
19193     * callback.
19194     *
19195     * There's a text entry on it, too, showing the name of the current
19196     * selection. There's the possibility of making it editable, so it
19197     * is useful on file saving dialogs on applications, where one
19198     * gives a file name to save contents to, in a given directory in
19199     * the system. This custom file name will be reported on the @c
19200     * "done" smart callback (explained in sequence).
19201     *
19202     * Finally, it has a view to display file system items into in two
19203     * possible forms:
19204     * - list
19205     * - grid
19206     *
19207     * If Elementary is built with support of the Ethumb thumbnailing
19208     * library, the second form of view will display preview thumbnails
19209     * of files which it supports.
19210     *
19211     * Smart callbacks one can register to:
19212     *
19213     * - @c "selected" - the user has clicked on a file (when not in
19214     *      folders-only mode) or directory (when in folders-only mode)
19215     * - @c "directory,open" - the list has been populated with new
19216     *      content (@c event_info is a pointer to the directory's
19217     *      path, a @b stringshared string)
19218     * - @c "done" - the user has clicked on the "ok" or "cancel"
19219     *      buttons (@c event_info is a pointer to the selection's
19220     *      path, a @b stringshared string)
19221     *
19222     * Here is an example on its usage:
19223     * @li @ref fileselector_example
19224     */
19225
19226    /**
19227     * @addtogroup Fileselector
19228     * @{
19229     */
19230
19231    /**
19232     * Defines how a file selector widget is to layout its contents
19233     * (file system entries).
19234     */
19235    typedef enum _Elm_Fileselector_Mode
19236      {
19237         ELM_FILESELECTOR_LIST = 0, /**< layout as a list */
19238         ELM_FILESELECTOR_GRID, /**< layout as a grid */
19239         ELM_FILESELECTOR_LAST /**< sentinel (helper) value, not used */
19240      } Elm_Fileselector_Mode;
19241
19242    /**
19243     * Add a new file selector widget to the given parent Elementary
19244     * (container) object
19245     *
19246     * @param parent The parent object
19247     * @return a new file selector widget handle or @c NULL, on errors
19248     *
19249     * This function inserts a new file selector widget on the canvas.
19250     *
19251     * @ingroup Fileselector
19252     */
19253    EAPI Evas_Object          *elm_fileselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19254
19255    /**
19256     * Enable/disable the file name entry box where the user can type
19257     * in a name for a file, in a given file selector widget
19258     *
19259     * @param obj The file selector object
19260     * @param is_save @c EINA_TRUE to make the file selector a "saving
19261     * dialog", @c EINA_FALSE otherwise
19262     *
19263     * Having the entry editable is useful on file saving dialogs on
19264     * applications, where one gives a file name to save contents to,
19265     * in a given directory in the system. This custom file name will
19266     * be reported on the @c "done" smart callback.
19267     *
19268     * @see elm_fileselector_is_save_get()
19269     *
19270     * @ingroup Fileselector
19271     */
19272    EAPI void                  elm_fileselector_is_save_set(Evas_Object *obj, Eina_Bool is_save) EINA_ARG_NONNULL(1);
19273
19274    /**
19275     * Get whether the given file selector is in "saving dialog" mode
19276     *
19277     * @param obj The file selector object
19278     * @return @c EINA_TRUE, if the file selector is in "saving dialog"
19279     * mode, @c EINA_FALSE otherwise (and on errors)
19280     *
19281     * @see elm_fileselector_is_save_set() for more details
19282     *
19283     * @ingroup Fileselector
19284     */
19285    EAPI Eina_Bool             elm_fileselector_is_save_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19286
19287    /**
19288     * Enable/disable folder-only view for a given file selector widget
19289     *
19290     * @param obj The file selector object
19291     * @param only @c EINA_TRUE to make @p obj only display
19292     * directories, @c EINA_FALSE to make files to be displayed in it
19293     * too
19294     *
19295     * If enabled, the widget's view will only display folder items,
19296     * naturally.
19297     *
19298     * @see elm_fileselector_folder_only_get()
19299     *
19300     * @ingroup Fileselector
19301     */
19302    EAPI void                  elm_fileselector_folder_only_set(Evas_Object *obj, Eina_Bool only) EINA_ARG_NONNULL(1);
19303
19304    /**
19305     * Get whether folder-only view is set for a given file selector
19306     * widget
19307     *
19308     * @param obj The file selector object
19309     * @return only @c EINA_TRUE if @p obj is only displaying
19310     * directories, @c EINA_FALSE if files are being displayed in it
19311     * too (and on errors)
19312     *
19313     * @see elm_fileselector_folder_only_get()
19314     *
19315     * @ingroup Fileselector
19316     */
19317    EAPI Eina_Bool             elm_fileselector_folder_only_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19318
19319    /**
19320     * Enable/disable the "ok" and "cancel" buttons on a given file
19321     * selector widget
19322     *
19323     * @param obj The file selector object
19324     * @param only @c EINA_TRUE to show them, @c EINA_FALSE to hide.
19325     *
19326     * @note A file selector without those buttons will never emit the
19327     * @c "done" smart event, and is only usable if one is just hooking
19328     * to the other two events.
19329     *
19330     * @see elm_fileselector_buttons_ok_cancel_get()
19331     *
19332     * @ingroup Fileselector
19333     */
19334    EAPI void                  elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool buttons) EINA_ARG_NONNULL(1);
19335
19336    /**
19337     * Get whether the "ok" and "cancel" buttons on a given file
19338     * selector widget are being shown.
19339     *
19340     * @param obj The file selector object
19341     * @return @c EINA_TRUE if they are being shown, @c EINA_FALSE
19342     * otherwise (and on errors)
19343     *
19344     * @see elm_fileselector_buttons_ok_cancel_set() for more details
19345     *
19346     * @ingroup Fileselector
19347     */
19348    EAPI Eina_Bool             elm_fileselector_buttons_ok_cancel_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19349
19350    /**
19351     * Enable/disable a tree view in the given file selector widget,
19352     * <b>if it's in @c #ELM_FILESELECTOR_LIST mode</b>
19353     *
19354     * @param obj The file selector object
19355     * @param expand @c EINA_TRUE to enable tree view, @c EINA_FALSE to
19356     * disable
19357     *
19358     * In a tree view, arrows are created on the sides of directories,
19359     * allowing them to expand in place.
19360     *
19361     * @note If it's in other mode, the changes made by this function
19362     * will only be visible when one switches back to "list" mode.
19363     *
19364     * @see elm_fileselector_expandable_get()
19365     *
19366     * @ingroup Fileselector
19367     */
19368    EAPI void                  elm_fileselector_expandable_set(Evas_Object *obj, Eina_Bool expand) EINA_ARG_NONNULL(1);
19369
19370    /**
19371     * Get whether tree view is enabled for the given file selector
19372     * widget
19373     *
19374     * @param obj The file selector object
19375     * @return @c EINA_TRUE if @p obj is in tree view, @c EINA_FALSE
19376     * otherwise (and or errors)
19377     *
19378     * @see elm_fileselector_expandable_set() for more details
19379     *
19380     * @ingroup Fileselector
19381     */
19382    EAPI Eina_Bool             elm_fileselector_expandable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19383
19384    /**
19385     * Set, programmatically, the @b directory that a given file
19386     * selector widget will display contents from
19387     *
19388     * @param obj The file selector object
19389     * @param path The path to display in @p obj
19390     *
19391     * This will change the @b directory that @p obj is displaying. It
19392     * will also clear the text entry area on the @p obj object, which
19393     * displays select files' names.
19394     *
19395     * @see elm_fileselector_path_get()
19396     *
19397     * @ingroup Fileselector
19398     */
19399    EAPI void                  elm_fileselector_path_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
19400
19401    /**
19402     * Get the parent directory's path that a given file selector
19403     * widget is displaying
19404     *
19405     * @param obj The file selector object
19406     * @return The (full) path of the directory the file selector is
19407     * displaying, a @b stringshared string
19408     *
19409     * @see elm_fileselector_path_set()
19410     *
19411     * @ingroup Fileselector
19412     */
19413    EAPI const char           *elm_fileselector_path_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19414
19415    /**
19416     * Set, programmatically, the currently selected file/directory in
19417     * the given file selector widget
19418     *
19419     * @param obj The file selector object
19420     * @param path The (full) path to a file or directory
19421     * @return @c EINA_TRUE on success, @c EINA_FALSE on failure. The
19422     * latter case occurs if the directory or file pointed to do not
19423     * exist.
19424     *
19425     * @see elm_fileselector_selected_get()
19426     *
19427     * @ingroup Fileselector
19428     */
19429    EAPI Eina_Bool             elm_fileselector_selected_set(Evas_Object *obj, const char *path) EINA_ARG_NONNULL(1);
19430
19431    /**
19432     * Get the currently selected item's (full) path, in the given file
19433     * selector widget
19434     *
19435     * @param obj The file selector object
19436     * @return The absolute path of the selected item, a @b
19437     * stringshared string
19438     *
19439     * @note Custom editions on @p obj object's text entry, if made,
19440     * will appear on the return string of this function, naturally.
19441     *
19442     * @see elm_fileselector_selected_set() for more details
19443     *
19444     * @ingroup Fileselector
19445     */
19446    EAPI const char           *elm_fileselector_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19447
19448    /**
19449     * Set the mode in which a given file selector widget will display
19450     * (layout) file system entries in its view
19451     *
19452     * @param obj The file selector object
19453     * @param mode The mode of the fileselector, being it one of
19454     * #ELM_FILESELECTOR_LIST (default) or #ELM_FILESELECTOR_GRID. The
19455     * first one, naturally, will display the files in a list. The
19456     * latter will make the widget to display its entries in a grid
19457     * form.
19458     *
19459     * @note By using elm_fileselector_expandable_set(), the user may
19460     * trigger a tree view for that list.
19461     *
19462     * @note If Elementary is built with support of the Ethumb
19463     * thumbnailing library, the second form of view will display
19464     * preview thumbnails of files which it supports. You must have
19465     * elm_need_ethumb() called in your Elementary for thumbnailing to
19466     * work, though.
19467     *
19468     * @see elm_fileselector_expandable_set().
19469     * @see elm_fileselector_mode_get().
19470     *
19471     * @ingroup Fileselector
19472     */
19473    EAPI void                  elm_fileselector_mode_set(Evas_Object *obj, Elm_Fileselector_Mode mode) EINA_ARG_NONNULL(1);
19474
19475    /**
19476     * Get the mode in which a given file selector widget is displaying
19477     * (layouting) file system entries in its view
19478     *
19479     * @param obj The fileselector object
19480     * @return The mode in which the fileselector is at
19481     *
19482     * @see elm_fileselector_mode_set() for more details
19483     *
19484     * @ingroup Fileselector
19485     */
19486    EAPI Elm_Fileselector_Mode elm_fileselector_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19487
19488    /**
19489     * @}
19490     */
19491
19492    /**
19493     * @defgroup Progressbar Progress bar
19494     *
19495     * The progress bar is a widget for visually representing the
19496     * progress status of a given job/task.
19497     *
19498     * A progress bar may be horizontal or vertical. It may display an
19499     * icon besides it, as well as primary and @b units labels. The
19500     * former is meant to label the widget as a whole, while the
19501     * latter, which is formatted with floating point values (and thus
19502     * accepts a <c>printf</c>-style format string, like <c>"%1.2f
19503     * units"</c>), is meant to label the widget's <b>progress
19504     * value</b>. Label, icon and unit strings/objects are @b optional
19505     * for progress bars.
19506     *
19507     * A progress bar may be @b inverted, in which state it gets its
19508     * values inverted, with high values being on the left or top and
19509     * low values on the right or bottom, as opposed to normally have
19510     * the low values on the former and high values on the latter,
19511     * respectively, for horizontal and vertical modes.
19512     *
19513     * The @b span of the progress, as set by
19514     * elm_progressbar_span_size_set(), is its length (horizontally or
19515     * vertically), unless one puts size hints on the widget to expand
19516     * on desired directions, by any container. That length will be
19517     * scaled by the object or applications scaling factor. At any
19518     * point code can query the progress bar for its value with
19519     * elm_progressbar_value_get().
19520     *
19521     * Available widget styles for progress bars:
19522     * - @c "default"
19523     * - @c "wheel" (simple style, no text, no progression, only
19524     *      "pulse" effect is available)
19525     *
19526     * Here is an example on its usage:
19527     * @li @ref progressbar_example
19528     */
19529
19530    /**
19531     * Add a new progress bar widget to the given parent Elementary
19532     * (container) object
19533     *
19534     * @param parent The parent object
19535     * @return a new progress bar widget handle or @c NULL, on errors
19536     *
19537     * This function inserts a new progress bar widget on the canvas.
19538     *
19539     * @ingroup Progressbar
19540     */
19541    EAPI Evas_Object *elm_progressbar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19542
19543    /**
19544     * Set whether a given progress bar widget is at "pulsing mode" or
19545     * not.
19546     *
19547     * @param obj The progress bar object
19548     * @param pulse @c EINA_TRUE to put @p obj in pulsing mode,
19549     * @c EINA_FALSE to put it back to its default one
19550     *
19551     * By default, progress bars will display values from the low to
19552     * high value boundaries. There are, though, contexts in which the
19553     * state of progression of a given task is @b unknown.  For those,
19554     * one can set a progress bar widget to a "pulsing state", to give
19555     * the user an idea that some computation is being held, but
19556     * without exact progress values. In the default theme it will
19557     * animate its bar with the contents filling in constantly and back
19558     * to non-filled, in a loop. To start and stop this pulsing
19559     * animation, one has to explicitly call elm_progressbar_pulse().
19560     *
19561     * @see elm_progressbar_pulse_get()
19562     * @see elm_progressbar_pulse()
19563     *
19564     * @ingroup Progressbar
19565     */
19566    EAPI void         elm_progressbar_pulse_set(Evas_Object *obj, Eina_Bool pulse) EINA_ARG_NONNULL(1);
19567
19568    /**
19569     * Get whether a given progress bar widget is at "pulsing mode" or
19570     * not.
19571     *
19572     * @param obj The progress bar object
19573     * @return @c EINA_TRUE, if @p obj is in pulsing mode, @c EINA_FALSE
19574     * if it's in the default one (and on errors)
19575     *
19576     * @ingroup Progressbar
19577     */
19578    EAPI Eina_Bool    elm_progressbar_pulse_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19579
19580    /**
19581     * Start/stop a given progress bar "pulsing" animation, if its
19582     * under that mode
19583     *
19584     * @param obj The progress bar object
19585     * @param state @c EINA_TRUE, to @b start the pulsing animation,
19586     * @c EINA_FALSE to @b stop it
19587     *
19588     * @note This call won't do anything if @p obj is not under "pulsing mode".
19589     *
19590     * @see elm_progressbar_pulse_set() for more details.
19591     *
19592     * @ingroup Progressbar
19593     */
19594    EAPI void         elm_progressbar_pulse(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1);
19595
19596    /**
19597     * Set the progress value (in percentage) on a given progress bar
19598     * widget
19599     *
19600     * @param obj The progress bar object
19601     * @param val The progress value (@b must be between @c 0.0 and @c
19602     * 1.0)
19603     *
19604     * Use this call to set progress bar levels.
19605     *
19606     * @note If you passes a value out of the specified range for @p
19607     * val, it will be interpreted as the @b closest of the @b boundary
19608     * values in the range.
19609     *
19610     * @ingroup Progressbar
19611     */
19612    EAPI void         elm_progressbar_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
19613
19614    /**
19615     * Get the progress value (in percentage) on a given progress bar
19616     * widget
19617     *
19618     * @param obj The progress bar object
19619     * @return The value of the progressbar
19620     *
19621     * @see elm_progressbar_value_set() for more details
19622     *
19623     * @ingroup Progressbar
19624     */
19625    EAPI double       elm_progressbar_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19626
19627    /**
19628     * Set the label of a given progress bar widget
19629     *
19630     * @param obj The progress bar object
19631     * @param label The text label string, in UTF-8
19632     *
19633     * @ingroup Progressbar
19634     * @deprecated use elm_object_text_set() instead.
19635     */
19636    EINA_DEPRECATED EAPI void         elm_progressbar_label_set(Evas_Object *obj, const char *label) EINA_ARG_NONNULL(1);
19637
19638    /**
19639     * Get the label of a given progress bar widget
19640     *
19641     * @param obj The progressbar object
19642     * @return The text label string, in UTF-8
19643     *
19644     * @ingroup Progressbar
19645     * @deprecated use elm_object_text_set() instead.
19646     */
19647    EINA_DEPRECATED EAPI const char  *elm_progressbar_label_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19648
19649    /**
19650     * Set the icon object of a given progress bar widget
19651     *
19652     * @param obj The progress bar object
19653     * @param icon The icon object
19654     *
19655     * Use this call to decorate @p obj with an icon next to it.
19656     *
19657     * @note Once the icon object is set, a previously set one will be
19658     * deleted. If you want to keep that old content object, use the
19659     * elm_progressbar_icon_unset() function.
19660     *
19661     * @see elm_progressbar_icon_get()
19662     *
19663     * @ingroup Progressbar
19664     */
19665    EAPI void         elm_progressbar_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
19666
19667    /**
19668     * Retrieve the icon object set for a given progress bar widget
19669     *
19670     * @param obj The progress bar object
19671     * @return The icon object's handle, if @p obj had one set, or @c NULL,
19672     * otherwise (and on errors)
19673     *
19674     * @see elm_progressbar_icon_set() for more details
19675     *
19676     * @ingroup Progressbar
19677     */
19678    EAPI Evas_Object *elm_progressbar_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19679
19680    /**
19681     * Unset an icon set on a given progress bar widget
19682     *
19683     * @param obj The progress bar object
19684     * @return The icon object that was being used, if any was set, or
19685     * @c NULL, otherwise (and on errors)
19686     *
19687     * This call will unparent and return the icon object which was set
19688     * for this widget, previously, on success.
19689     *
19690     * @see elm_progressbar_icon_set() for more details
19691     *
19692     * @ingroup Progressbar
19693     */
19694    EAPI Evas_Object *elm_progressbar_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
19695
19696    /**
19697     * Set the (exact) length of the bar region of a given progress bar
19698     * widget
19699     *
19700     * @param obj The progress bar object
19701     * @param size The length of the progress bar's bar region
19702     *
19703     * This sets the minimum width (when in horizontal mode) or height
19704     * (when in vertical mode) of the actual bar area of the progress
19705     * bar @p obj. This in turn affects the object's minimum size. Use
19706     * this when you're not setting other size hints expanding on the
19707     * given direction (like weight and alignment hints) and you would
19708     * like it to have a specific size.
19709     *
19710     * @note Icon, label and unit text around @p obj will require their
19711     * own space, which will make @p obj to require more the @p size,
19712     * actually.
19713     *
19714     * @see elm_progressbar_span_size_get()
19715     *
19716     * @ingroup Progressbar
19717     */
19718    EAPI void         elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size) EINA_ARG_NONNULL(1);
19719
19720    /**
19721     * Get the length set for the bar region of a given progress bar
19722     * widget
19723     *
19724     * @param obj The progress bar object
19725     * @return The length of the progress bar's bar region
19726     *
19727     * If that size was not set previously, with
19728     * elm_progressbar_span_size_set(), this call will return @c 0.
19729     *
19730     * @ingroup Progressbar
19731     */
19732    EAPI Evas_Coord   elm_progressbar_span_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19733
19734    /**
19735     * Set the format string for a given progress bar widget's units
19736     * label
19737     *
19738     * @param obj The progress bar object
19739     * @param format The format string for @p obj's units label
19740     *
19741     * If @c NULL is passed on @p format, it will make @p obj's units
19742     * area to be hidden completely. If not, it'll set the <b>format
19743     * string</b> for the units label's @b text. The units label is
19744     * provided a floating point value, so the units text is up display
19745     * at most one floating point falue. Note that the units label is
19746     * optional. Use a format string such as "%1.2f meters" for
19747     * example.
19748     *
19749     * @note The default format string for a progress bar is an integer
19750     * percentage, as in @c "%.0f %%".
19751     *
19752     * @see elm_progressbar_unit_format_get()
19753     *
19754     * @ingroup Progressbar
19755     */
19756    EAPI void         elm_progressbar_unit_format_set(Evas_Object *obj, const char *format) EINA_ARG_NONNULL(1);
19757
19758    /**
19759     * Retrieve the format string set for a given progress bar widget's
19760     * units label
19761     *
19762     * @param obj The progress bar object
19763     * @return The format set string for @p obj's units label or
19764     * @c NULL, if none was set (and on errors)
19765     *
19766     * @see elm_progressbar_unit_format_set() for more details
19767     *
19768     * @ingroup Progressbar
19769     */
19770    EAPI const char  *elm_progressbar_unit_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19771
19772    /**
19773     * Set the orientation of a given progress bar widget
19774     *
19775     * @param obj The progress bar object
19776     * @param horizontal Use @c EINA_TRUE to make @p obj to be
19777     * @b horizontal, @c EINA_FALSE to make it @b vertical
19778     *
19779     * Use this function to change how your progress bar is to be
19780     * disposed: vertically or horizontally.
19781     *
19782     * @see elm_progressbar_horizontal_get()
19783     *
19784     * @ingroup Progressbar
19785     */
19786    EAPI void         elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
19787
19788    /**
19789     * Retrieve the orientation of a given progress bar widget
19790     *
19791     * @param obj The progress bar object
19792     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
19793     * @c EINA_FALSE if it's @b vertical (and on errors)
19794     *
19795     * @see elm_progressbar_horizontal_set() for more details
19796     *
19797     * @ingroup Progressbar
19798     */
19799    EAPI Eina_Bool    elm_progressbar_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19800
19801    /**
19802     * Invert a given progress bar widget's displaying values order
19803     *
19804     * @param obj The progress bar object
19805     * @param inverted Use @c EINA_TRUE to make @p obj inverted,
19806     * @c EINA_FALSE to bring it back to default, non-inverted values.
19807     *
19808     * A progress bar may be @b inverted, in which state it gets its
19809     * values inverted, with high values being on the left or top and
19810     * low values on the right or bottom, as opposed to normally have
19811     * the low values on the former and high values on the latter,
19812     * respectively, for horizontal and vertical modes.
19813     *
19814     * @see elm_progressbar_inverted_get()
19815     *
19816     * @ingroup Progressbar
19817     */
19818    EAPI void         elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted) EINA_ARG_NONNULL(1);
19819
19820    /**
19821     * Get whether a given progress bar widget's displaying values are
19822     * inverted or not
19823     *
19824     * @param obj The progress bar object
19825     * @return @c EINA_TRUE, if @p obj has inverted values,
19826     * @c EINA_FALSE otherwise (and on errors)
19827     *
19828     * @see elm_progressbar_inverted_set() for more details
19829     *
19830     * @ingroup Progressbar
19831     */
19832    EAPI Eina_Bool    elm_progressbar_inverted_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19833
19834    /**
19835     * @defgroup Separator Separator
19836     *
19837     * @brief Separator is a very thin object used to separate other objects.
19838     *
19839     * A separator can be vertical or horizontal.
19840     *
19841     * @ref tutorial_separator is a good example of how to use a separator.
19842     * @{
19843     */
19844    /**
19845     * @brief Add a separator object to @p parent
19846     *
19847     * @param parent The parent object
19848     *
19849     * @return The separator object, or NULL upon failure
19850     */
19851    EAPI Evas_Object *elm_separator_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19852    /**
19853     * @brief Set the horizontal mode of a separator object
19854     *
19855     * @param obj The separator object
19856     * @param horizontal If true, the separator is horizontal
19857     */
19858    EAPI void         elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
19859    /**
19860     * @brief Get the horizontal mode of a separator object
19861     *
19862     * @param obj The separator object
19863     * @return If true, the separator is horizontal
19864     *
19865     * @see elm_separator_horizontal_set()
19866     */
19867    EAPI Eina_Bool    elm_separator_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19868    /**
19869     * @}
19870     */
19871
19872    /**
19873     * @defgroup Spinner Spinner
19874     * @ingroup Elementary
19875     *
19876     * @image html img/widget/spinner/preview-00.png
19877     * @image latex img/widget/spinner/preview-00.eps
19878     *
19879     * A spinner is a widget which allows the user to increase or decrease
19880     * numeric values using arrow buttons, or edit values directly, clicking
19881     * over it and typing the new value.
19882     *
19883     * By default the spinner will not wrap and has a label
19884     * of "%.0f" (just showing the integer value of the double).
19885     *
19886     * A spinner has a label that is formatted with floating
19887     * point values and thus accepts a printf-style format string, like
19888     * “%1.2f units”.
19889     *
19890     * It also allows specific values to be replaced by pre-defined labels.
19891     *
19892     * Smart callbacks one can register to:
19893     *
19894     * - "changed" - Whenever the spinner value is changed.
19895     * - "delay,changed" - A short time after the value is changed by the user.
19896     *    This will be called only when the user stops dragging for a very short
19897     *    period or when they release their finger/mouse, so it avoids possibly
19898     *    expensive reactions to the value change.
19899     *
19900     * Available styles for it:
19901     * - @c "default";
19902     * - @c "vertical": up/down buttons at the right side and text left aligned.
19903     *
19904     * Here is an example on its usage:
19905     * @ref spinner_example
19906     */
19907
19908    /**
19909     * @addtogroup Spinner
19910     * @{
19911     */
19912
19913    /**
19914     * Add a new spinner widget to the given parent Elementary
19915     * (container) object.
19916     *
19917     * @param parent The parent object.
19918     * @return a new spinner widget handle or @c NULL, on errors.
19919     *
19920     * This function inserts a new spinner widget on the canvas.
19921     *
19922     * @ingroup Spinner
19923     *
19924     */
19925    EAPI Evas_Object *elm_spinner_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
19926
19927    /**
19928     * Set the format string of the displayed label.
19929     *
19930     * @param obj The spinner object.
19931     * @param fmt The format string for the label display.
19932     *
19933     * If @c NULL, this sets the format to "%.0f". If not it sets the format
19934     * string for the label text. The label text is provided a floating point
19935     * value, so the label text can display up to 1 floating point value.
19936     * Note that this is optional.
19937     *
19938     * Use a format string such as "%1.2f meters" for example, and it will
19939     * display values like: "3.14 meters" for a value equal to 3.14159.
19940     *
19941     * Default is "%0.f".
19942     *
19943     * @see elm_spinner_label_format_get()
19944     *
19945     * @ingroup Spinner
19946     */
19947    EAPI void         elm_spinner_label_format_set(Evas_Object *obj, const char *fmt) EINA_ARG_NONNULL(1);
19948
19949    /**
19950     * Get the label format of the spinner.
19951     *
19952     * @param obj The spinner object.
19953     * @return The text label format string in UTF-8.
19954     *
19955     * @see elm_spinner_label_format_set() for details.
19956     *
19957     * @ingroup Spinner
19958     */
19959    EAPI const char  *elm_spinner_label_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
19960
19961    /**
19962     * Set the minimum and maximum values for the spinner.
19963     *
19964     * @param obj The spinner object.
19965     * @param min The minimum value.
19966     * @param max The maximum value.
19967     *
19968     * Define the allowed range of values to be selected by the user.
19969     *
19970     * If actual value is less than @p min, it will be updated to @p min. If it
19971     * is bigger then @p max, will be updated to @p max. Actual value can be
19972     * get with elm_spinner_value_get().
19973     *
19974     * By default, min is equal to 0, and max is equal to 100.
19975     *
19976     * @warning Maximum must be greater than minimum.
19977     *
19978     * @see elm_spinner_min_max_get()
19979     *
19980     * @ingroup Spinner
19981     */
19982    EAPI void         elm_spinner_min_max_set(Evas_Object *obj, double min, double max) EINA_ARG_NONNULL(1);
19983
19984    /**
19985     * Get the minimum and maximum values of the spinner.
19986     *
19987     * @param obj The spinner object.
19988     * @param min Pointer where to store the minimum value.
19989     * @param max Pointer where to store the maximum value.
19990     *
19991     * @note If only one value is needed, the other pointer can be passed
19992     * as @c NULL.
19993     *
19994     * @see elm_spinner_min_max_set() for details.
19995     *
19996     * @ingroup Spinner
19997     */
19998    EAPI void         elm_spinner_min_max_get(const Evas_Object *obj, double *min, double *max) EINA_ARG_NONNULL(1);
19999
20000    /**
20001     * Set the step used to increment or decrement the spinner value.
20002     *
20003     * @param obj The spinner object.
20004     * @param step The step value.
20005     *
20006     * This value will be incremented or decremented to the displayed value.
20007     * It will be incremented while the user keep right or top arrow pressed,
20008     * and will be decremented while the user keep left or bottom arrow pressed.
20009     *
20010     * The interval to increment / decrement can be set with
20011     * elm_spinner_interval_set().
20012     *
20013     * By default step value is equal to 1.
20014     *
20015     * @see elm_spinner_step_get()
20016     *
20017     * @ingroup Spinner
20018     */
20019    EAPI void         elm_spinner_step_set(Evas_Object *obj, double step) EINA_ARG_NONNULL(1);
20020
20021    /**
20022     * Get the step used to increment or decrement the spinner value.
20023     *
20024     * @param obj The spinner object.
20025     * @return The step value.
20026     *
20027     * @see elm_spinner_step_get() for more details.
20028     *
20029     * @ingroup Spinner
20030     */
20031    EAPI double       elm_spinner_step_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20032
20033    /**
20034     * Set the value the spinner displays.
20035     *
20036     * @param obj The spinner object.
20037     * @param val The value to be displayed.
20038     *
20039     * Value will be presented on the label following format specified with
20040     * elm_spinner_format_set().
20041     *
20042     * @warning The value must to be between min and max values. This values
20043     * are set by elm_spinner_min_max_set().
20044     *
20045     * @see elm_spinner_value_get().
20046     * @see elm_spinner_format_set().
20047     * @see elm_spinner_min_max_set().
20048     *
20049     * @ingroup Spinner
20050     */
20051    EAPI void         elm_spinner_value_set(Evas_Object *obj, double val) EINA_ARG_NONNULL(1);
20052
20053    /**
20054     * Get the value displayed by the spinner.
20055     *
20056     * @param obj The spinner object.
20057     * @return The value displayed.
20058     *
20059     * @see elm_spinner_value_set() for details.
20060     *
20061     * @ingroup Spinner
20062     */
20063    EAPI double       elm_spinner_value_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20064
20065    /**
20066     * Set whether the spinner should wrap when it reaches its
20067     * minimum or maximum value.
20068     *
20069     * @param obj The spinner object.
20070     * @param wrap @c EINA_TRUE to enable wrap or @c EINA_FALSE to
20071     * disable it.
20072     *
20073     * Disabled by default. If disabled, when the user tries to increment the
20074     * value,
20075     * but displayed value plus step value is bigger than maximum value,
20076     * the spinner
20077     * won't allow it. The same happens when the user tries to decrement it,
20078     * but the value less step is less than minimum value.
20079     *
20080     * When wrap is enabled, in such situations it will allow these changes,
20081     * but will get the value that would be less than minimum and subtracts
20082     * from maximum. Or add the value that would be more than maximum to
20083     * the minimum.
20084     *
20085     * E.g.:
20086     * @li min value = 10
20087     * @li max value = 50
20088     * @li step value = 20
20089     * @li displayed value = 20
20090     *
20091     * When the user decrement value (using left or bottom arrow), it will
20092     * displays @c 40, because max - (min - (displayed - step)) is
20093     * @c 50 - (@c 10 - (@c 20 - @c 20)) = @c 40.
20094     *
20095     * @see elm_spinner_wrap_get().
20096     *
20097     * @ingroup Spinner
20098     */
20099    EAPI void         elm_spinner_wrap_set(Evas_Object *obj, Eina_Bool wrap) EINA_ARG_NONNULL(1);
20100
20101    /**
20102     * Get whether the spinner should wrap when it reaches its
20103     * minimum or maximum value.
20104     *
20105     * @param obj The spinner object
20106     * @return @c EINA_TRUE means wrap is enabled. @c EINA_FALSE indicates
20107     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
20108     *
20109     * @see elm_spinner_wrap_set() for details.
20110     *
20111     * @ingroup Spinner
20112     */
20113    EAPI Eina_Bool    elm_spinner_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20114
20115    /**
20116     * Set whether the spinner can be directly edited by the user or not.
20117     *
20118     * @param obj The spinner object.
20119     * @param editable @c EINA_TRUE to allow users to edit it or @c EINA_FALSE to
20120     * don't allow users to edit it directly.
20121     *
20122     * Spinner objects can have edition @b disabled, in which state they will
20123     * be changed only by arrows.
20124     * Useful for contexts
20125     * where you don't want your users to interact with it writting the value.
20126     * Specially
20127     * when using special values, the user can see real value instead
20128     * of special label on edition.
20129     *
20130     * It's enabled by default.
20131     *
20132     * @see elm_spinner_editable_get()
20133     *
20134     * @ingroup Spinner
20135     */
20136    EAPI void         elm_spinner_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
20137
20138    /**
20139     * Get whether the spinner can be directly edited by the user or not.
20140     *
20141     * @param obj The spinner object.
20142     * @return @c EINA_TRUE means edition is enabled. @c EINA_FALSE indicates
20143     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
20144     *
20145     * @see elm_spinner_editable_set() for details.
20146     *
20147     * @ingroup Spinner
20148     */
20149    EAPI Eina_Bool    elm_spinner_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20150
20151    /**
20152     * Set a special string to display in the place of the numerical value.
20153     *
20154     * @param obj The spinner object.
20155     * @param value The value to be replaced.
20156     * @param label The label to be used.
20157     *
20158     * It's useful for cases when a user should select an item that is
20159     * better indicated by a label than a value. For example, weekdays or months.
20160     *
20161     * E.g.:
20162     * @code
20163     * sp = elm_spinner_add(win);
20164     * elm_spinner_min_max_set(sp, 1, 3);
20165     * elm_spinner_special_value_add(sp, 1, "January");
20166     * elm_spinner_special_value_add(sp, 2, "February");
20167     * elm_spinner_special_value_add(sp, 3, "March");
20168     * evas_object_show(sp);
20169     * @endcode
20170     *
20171     * @ingroup Spinner
20172     */
20173    EAPI void         elm_spinner_special_value_add(Evas_Object *obj, double value, const char *label) EINA_ARG_NONNULL(1);
20174
20175    /**
20176     * Set the interval on time updates for an user mouse button hold
20177     * on spinner widgets' arrows.
20178     *
20179     * @param obj The spinner object.
20180     * @param interval The (first) interval value in seconds.
20181     *
20182     * This interval value is @b decreased while the user holds the
20183     * mouse pointer either incrementing or decrementing spinner's value.
20184     *
20185     * This helps the user to get to a given value distant from the
20186     * current one easier/faster, as it will start to change quicker and
20187     * quicker on mouse button holds.
20188     *
20189     * The calculation for the next change interval value, starting from
20190     * the one set with this call, is the previous interval divided by
20191     * @c 1.05, so it decreases a little bit.
20192     *
20193     * The default starting interval value for automatic changes is
20194     * @c 0.85 seconds.
20195     *
20196     * @see elm_spinner_interval_get()
20197     *
20198     * @ingroup Spinner
20199     */
20200    EAPI void         elm_spinner_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
20201
20202    /**
20203     * Get the interval on time updates for an user mouse button hold
20204     * on spinner widgets' arrows.
20205     *
20206     * @param obj The spinner object.
20207     * @return The (first) interval value, in seconds, set on it.
20208     *
20209     * @see elm_spinner_interval_set() for more details.
20210     *
20211     * @ingroup Spinner
20212     */
20213    EAPI double       elm_spinner_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20214
20215    /**
20216     * @}
20217     */
20218
20219    /**
20220     * @defgroup Index Index
20221     *
20222     * @image html img/widget/index/preview-00.png
20223     * @image latex img/widget/index/preview-00.eps
20224     *
20225     * An index widget gives you an index for fast access to whichever
20226     * group of other UI items one might have. It's a list of text
20227     * items (usually letters, for alphabetically ordered access).
20228     *
20229     * Index widgets are by default hidden and just appear when the
20230     * user clicks over it's reserved area in the canvas. In its
20231     * default theme, it's an area one @ref Fingers "finger" wide on
20232     * the right side of the index widget's container.
20233     *
20234     * When items on the index are selected, smart callbacks get
20235     * called, so that its user can make other container objects to
20236     * show a given area or child object depending on the index item
20237     * selected. You'd probably be using an index together with @ref
20238     * List "lists", @ref Genlist "generic lists" or @ref Gengrid
20239     * "general grids".
20240     *
20241     * Smart events one  can add callbacks for are:
20242     * - @c "changed" - When the selected index item changes. @c
20243     *      event_info is the selected item's data pointer.
20244     * - @c "delay,changed" - When the selected index item changes, but
20245     *      after a small idling period. @c event_info is the selected
20246     *      item's data pointer.
20247     * - @c "selected" - When the user releases a mouse button and
20248     *      selects an item. @c event_info is the selected item's data
20249     *      pointer.
20250     * - @c "level,up" - when the user moves a finger from the first
20251     *      level to the second level
20252     * - @c "level,down" - when the user moves a finger from the second
20253     *      level to the first level
20254     *
20255     * The @c "delay,changed" event is so that it'll wait a small time
20256     * before actually reporting those events and, moreover, just the
20257     * last event happening on those time frames will actually be
20258     * reported.
20259     *
20260     * Here are some examples on its usage:
20261     * @li @ref index_example_01
20262     * @li @ref index_example_02
20263     */
20264
20265    /**
20266     * @addtogroup Index
20267     * @{
20268     */
20269
20270    typedef struct _Elm_Index_Item Elm_Index_Item; /**< Opaque handle for items of Elementary index widgets */
20271
20272    /**
20273     * Add a new index widget to the given parent Elementary
20274     * (container) object
20275     *
20276     * @param parent The parent object
20277     * @return a new index widget handle or @c NULL, on errors
20278     *
20279     * This function inserts a new index widget on the canvas.
20280     *
20281     * @ingroup Index
20282     */
20283    EAPI Evas_Object    *elm_index_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20284
20285    /**
20286     * Set whether a given index widget is or not visible,
20287     * programatically.
20288     *
20289     * @param obj The index object
20290     * @param active @c EINA_TRUE to show it, @c EINA_FALSE to hide it
20291     *
20292     * Not to be confused with visible as in @c evas_object_show() --
20293     * visible with regard to the widget's auto hiding feature.
20294     *
20295     * @see elm_index_active_get()
20296     *
20297     * @ingroup Index
20298     */
20299    EAPI void            elm_index_active_set(Evas_Object *obj, Eina_Bool active) EINA_ARG_NONNULL(1);
20300
20301    /**
20302     * Get whether a given index widget is currently visible or not.
20303     *
20304     * @param obj The index object
20305     * @return @c EINA_TRUE, if it's shown, @c EINA_FALSE otherwise
20306     *
20307     * @see elm_index_active_set() for more details
20308     *
20309     * @ingroup Index
20310     */
20311    EAPI Eina_Bool       elm_index_active_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20312
20313    /**
20314     * Set the items level for a given index widget.
20315     *
20316     * @param obj The index object.
20317     * @param level @c 0 or @c 1, the currently implemented levels.
20318     *
20319     * @see elm_index_item_level_get()
20320     *
20321     * @ingroup Index
20322     */
20323    EAPI void            elm_index_item_level_set(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
20324
20325    /**
20326     * Get the items level set for a given index widget.
20327     *
20328     * @param obj The index object.
20329     * @return @c 0 or @c 1, which are the levels @p obj might be at.
20330     *
20331     * @see elm_index_item_level_set() for more information
20332     *
20333     * @ingroup Index
20334     */
20335    EAPI int             elm_index_item_level_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20336
20337    /**
20338     * Returns the last selected item's data, for a given index widget.
20339     *
20340     * @param obj The index object.
20341     * @return The item @b data associated to the last selected item on
20342     * @p obj (or @c NULL, on errors).
20343     *
20344     * @warning The returned value is @b not an #Elm_Index_Item item
20345     * handle, but the data associated to it (see the @c item parameter
20346     * in elm_index_item_append(), as an example).
20347     *
20348     * @ingroup Index
20349     */
20350    EAPI void           *elm_index_item_selected_get(const Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
20351
20352    /**
20353     * Append a new item on a given index widget.
20354     *
20355     * @param obj The index object.
20356     * @param letter Letter under which the item should be indexed
20357     * @param item The item data to set for the index's item
20358     *
20359     * Despite the most common usage of the @p letter argument is for
20360     * single char strings, one could use arbitrary strings as index
20361     * entries.
20362     *
20363     * @c item will be the pointer returned back on @c "changed", @c
20364     * "delay,changed" and @c "selected" smart events.
20365     *
20366     * @ingroup Index
20367     */
20368    EAPI void            elm_index_item_append(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
20369
20370    /**
20371     * Prepend a new item on a given index widget.
20372     *
20373     * @param obj The index object.
20374     * @param letter Letter under which the item should be indexed
20375     * @param item The item data to set for the index's item
20376     *
20377     * Despite the most common usage of the @p letter argument is for
20378     * single char strings, one could use arbitrary strings as index
20379     * entries.
20380     *
20381     * @c item will be the pointer returned back on @c "changed", @c
20382     * "delay,changed" and @c "selected" smart events.
20383     *
20384     * @ingroup Index
20385     */
20386    EAPI void            elm_index_item_prepend(Evas_Object *obj, const char *letter, const void *item) EINA_ARG_NONNULL(1);
20387
20388    /**
20389     * Append a new item, on a given index widget, <b>after the item
20390     * having @p relative as data</b>.
20391     *
20392     * @param obj The index object.
20393     * @param letter Letter under which the item should be indexed
20394     * @param item The item data to set for the index's item
20395     * @param relative The item data of the index item to be the
20396     * predecessor of this new one
20397     *
20398     * Despite the most common usage of the @p letter argument is for
20399     * single char strings, one could use arbitrary strings as index
20400     * entries.
20401     *
20402     * @c item will be the pointer returned back on @c "changed", @c
20403     * "delay,changed" and @c "selected" smart events.
20404     *
20405     * @note If @p relative is @c NULL or if it's not found to be data
20406     * set on any previous item on @p obj, this function will behave as
20407     * elm_index_item_append().
20408     *
20409     * @ingroup Index
20410     */
20411    EAPI void            elm_index_item_append_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
20412
20413    /**
20414     * Prepend a new item, on a given index widget, <b>after the item
20415     * having @p relative as data</b>.
20416     *
20417     * @param obj The index object.
20418     * @param letter Letter under which the item should be indexed
20419     * @param item The item data to set for the index's item
20420     * @param relative The item data of the index item to be the
20421     * successor of this new one
20422     *
20423     * Despite the most common usage of the @p letter argument is for
20424     * single char strings, one could use arbitrary strings as index
20425     * entries.
20426     *
20427     * @c item will be the pointer returned back on @c "changed", @c
20428     * "delay,changed" and @c "selected" smart events.
20429     *
20430     * @note If @p relative is @c NULL or if it's not found to be data
20431     * set on any previous item on @p obj, this function will behave as
20432     * elm_index_item_prepend().
20433     *
20434     * @ingroup Index
20435     */
20436    EAPI void            elm_index_item_prepend_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative) EINA_ARG_NONNULL(1);
20437
20438    /**
20439     * Insert a new item into the given index widget, using @p cmp_func
20440     * function to sort items (by item handles).
20441     *
20442     * @param obj The index object.
20443     * @param letter Letter under which the item should be indexed
20444     * @param item The item data to set for the index's item
20445     * @param cmp_func The comparing function to be used to sort index
20446     * items <b>by #Elm_Index_Item item handles</b>
20447     * @param cmp_data_func A @b fallback function to be called for the
20448     * sorting of index items <b>by item data</b>). It will be used
20449     * when @p cmp_func returns @c 0 (equality), which means an index
20450     * item with provided item data already exists. To decide which
20451     * data item should be pointed to by the index item in question, @p
20452     * cmp_data_func will be used. If @p cmp_data_func returns a
20453     * non-negative value, the previous index item data will be
20454     * replaced by the given @p item pointer. If the previous data need
20455     * to be freed, it should be done by the @p cmp_data_func function,
20456     * because all references to it will be lost. If this function is
20457     * not provided (@c NULL is given), index items will be @b
20458     * duplicated, if @p cmp_func returns @c 0.
20459     *
20460     * Despite the most common usage of the @p letter argument is for
20461     * single char strings, one could use arbitrary strings as index
20462     * entries.
20463     *
20464     * @c item will be the pointer returned back on @c "changed", @c
20465     * "delay,changed" and @c "selected" smart events.
20466     *
20467     * @ingroup Index
20468     */
20469    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);
20470
20471    /**
20472     * Remove an item from a given index widget, <b>to be referenced by
20473     * it's data value</b>.
20474     *
20475     * @param obj The index object
20476     * @param item The item's data pointer for the item to be removed
20477     * from @p obj
20478     *
20479     * If a deletion callback is set, via elm_index_item_del_cb_set(),
20480     * that callback function will be called by this one.
20481     *
20482     * @warning The item to be removed from @p obj will be found via
20483     * its item data pointer, and not by an #Elm_Index_Item handle.
20484     *
20485     * @ingroup Index
20486     */
20487    EAPI void            elm_index_item_del(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
20488
20489    /**
20490     * Find a given index widget's item, <b>using item data</b>.
20491     *
20492     * @param obj The index object
20493     * @param item The item data pointed to by the desired index item
20494     * @return The index item handle, if found, or @c NULL otherwise
20495     *
20496     * @ingroup Index
20497     */
20498    EAPI Elm_Index_Item *elm_index_item_find(Evas_Object *obj, const void *item) EINA_ARG_NONNULL(1);
20499
20500    /**
20501     * Removes @b all items from a given index widget.
20502     *
20503     * @param obj The index object.
20504     *
20505     * If deletion callbacks are set, via elm_index_item_del_cb_set(),
20506     * that callback function will be called for each item in @p obj.
20507     *
20508     * @ingroup Index
20509     */
20510    EAPI void            elm_index_item_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
20511
20512    /**
20513     * Go to a given items level on a index widget
20514     *
20515     * @param obj The index object
20516     * @param level The index level (one of @c 0 or @c 1)
20517     *
20518     * @ingroup Index
20519     */
20520    EAPI void            elm_index_item_go(Evas_Object *obj, int level) EINA_ARG_NONNULL(1);
20521
20522    /**
20523     * Return the data associated with a given index widget item
20524     *
20525     * @param it The index widget item handle
20526     * @return The data associated with @p it
20527     *
20528     * @see elm_index_item_data_set()
20529     *
20530     * @ingroup Index
20531     */
20532    EAPI void           *elm_index_item_data_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
20533
20534    /**
20535     * Set the data associated with a given index widget item
20536     *
20537     * @param it The index widget item handle
20538     * @param data The new data pointer to set to @p it
20539     *
20540     * This sets new item data on @p it.
20541     *
20542     * @warning The old data pointer won't be touched by this function, so
20543     * the user had better to free that old data himself/herself.
20544     *
20545     * @ingroup Index
20546     */
20547    EAPI void            elm_index_item_data_set(Elm_Index_Item *it, const void *data) EINA_ARG_NONNULL(1);
20548
20549    /**
20550     * Set the function to be called when a given index widget item is freed.
20551     *
20552     * @param it The item to set the callback on
20553     * @param func The function to call on the item's deletion
20554     *
20555     * When called, @p func will have both @c data and @c event_info
20556     * arguments with the @p it item's data value and, naturally, the
20557     * @c obj argument with a handle to the parent index widget.
20558     *
20559     * @ingroup Index
20560     */
20561    EAPI void            elm_index_item_del_cb_set(Elm_Index_Item *it, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
20562
20563    /**
20564     * Get the letter (string) set on a given index widget item.
20565     *
20566     * @param it The index item handle
20567     * @return The letter string set on @p it
20568     *
20569     * @ingroup Index
20570     */
20571    EAPI const char     *elm_index_item_letter_get(const Elm_Index_Item *item) EINA_ARG_NONNULL(1);
20572
20573    /**
20574     * @}
20575     */
20576
20577    /**
20578     * @defgroup Photocam Photocam
20579     *
20580     * @image html img/widget/photocam/preview-00.png
20581     * @image latex img/widget/photocam/preview-00.eps
20582     *
20583     * This is a widget specifically for displaying high-resolution digital
20584     * camera photos giving speedy feedback (fast load), low memory footprint
20585     * and zooming and panning as well as fitting logic. It is entirely focused
20586     * on jpeg images, and takes advantage of properties of the jpeg format (via
20587     * evas loader features in the jpeg loader).
20588     *
20589     * Signals that you can add callbacks for are:
20590     * @li "clicked" - This is called when a user has clicked the photo without
20591     *                 dragging around.
20592     * @li "press" - This is called when a user has pressed down on the photo.
20593     * @li "longpressed" - This is called when a user has pressed down on the
20594     *                     photo for a long time without dragging around.
20595     * @li "clicked,double" - This is called when a user has double-clicked the
20596     *                        photo.
20597     * @li "load" - Photo load begins.
20598     * @li "loaded" - This is called when the image file load is complete for the
20599     *                first view (low resolution blurry version).
20600     * @li "load,detail" - Photo detailed data load begins.
20601     * @li "loaded,detail" - This is called when the image file load is complete
20602     *                      for the detailed image data (full resolution needed).
20603     * @li "zoom,start" - Zoom animation started.
20604     * @li "zoom,stop" - Zoom animation stopped.
20605     * @li "zoom,change" - Zoom changed when using an auto zoom mode.
20606     * @li "scroll" - the content has been scrolled (moved)
20607     * @li "scroll,anim,start" - scrolling animation has started
20608     * @li "scroll,anim,stop" - scrolling animation has stopped
20609     * @li "scroll,drag,start" - dragging the contents around has started
20610     * @li "scroll,drag,stop" - dragging the contents around has stopped
20611     *
20612     * @ref tutorial_photocam shows the API in action.
20613     * @{
20614     */
20615    /**
20616     * @brief Types of zoom available.
20617     */
20618    typedef enum _Elm_Photocam_Zoom_Mode
20619      {
20620         ELM_PHOTOCAM_ZOOM_MODE_MANUAL = 0, /**< Zoom controled normally by elm_photocam_zoom_set */
20621         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT, /**< Zoom until photo fits in photocam */
20622         ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL, /**< Zoom until photo fills photocam */
20623         ELM_PHOTOCAM_ZOOM_MODE_LAST
20624      } Elm_Photocam_Zoom_Mode;
20625    /**
20626     * @brief Add a new Photocam object
20627     *
20628     * @param parent The parent object
20629     * @return The new object or NULL if it cannot be created
20630     */
20631    EAPI Evas_Object           *elm_photocam_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
20632    /**
20633     * @brief Set the photo file to be shown
20634     *
20635     * @param obj The photocam object
20636     * @param file The photo file
20637     * @return The return error (see EVAS_LOAD_ERROR_NONE, EVAS_LOAD_ERROR_GENERIC etc.)
20638     *
20639     * This sets (and shows) the specified file (with a relative or absolute
20640     * path) and will return a load error (same error that
20641     * evas_object_image_load_error_get() will return). The image will change and
20642     * adjust its size at this point and begin a background load process for this
20643     * photo that at some time in the future will be displayed at the full
20644     * quality needed.
20645     */
20646    EAPI Evas_Load_Error        elm_photocam_file_set(Evas_Object *obj, const char *file) EINA_ARG_NONNULL(1);
20647    /**
20648     * @brief Returns the path of the current image file
20649     *
20650     * @param obj The photocam object
20651     * @return Returns the path
20652     *
20653     * @see elm_photocam_file_set()
20654     */
20655    EAPI const char            *elm_photocam_file_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20656    /**
20657     * @brief Set the zoom level of the photo
20658     *
20659     * @param obj The photocam object
20660     * @param zoom The zoom level to set
20661     *
20662     * This sets the zoom level. 1 will be 1:1 pixel for pixel. 2 will be 2:1
20663     * (that is 2x2 photo pixels will display as 1 on-screen pixel). 4:1 will be
20664     * 4x4 photo pixels as 1 screen pixel, and so on. The @p zoom parameter must
20665     * be greater than 0. It is usggested to stick to powers of 2. (1, 2, 4, 8,
20666     * 16, 32, etc.).
20667     */
20668    EAPI void                   elm_photocam_zoom_set(Evas_Object *obj, double zoom) EINA_ARG_NONNULL(1);
20669    /**
20670     * @brief Get the zoom level of the photo
20671     *
20672     * @param obj The photocam object
20673     * @return The current zoom level
20674     *
20675     * This returns the current zoom level of the photocam object. Note that if
20676     * you set the fill mode to other than ELM_PHOTOCAM_ZOOM_MODE_MANUAL
20677     * (which is the default), the zoom level may be changed at any time by the
20678     * photocam object itself to account for photo size and photocam viewpoer
20679     * size.
20680     *
20681     * @see elm_photocam_zoom_set()
20682     * @see elm_photocam_zoom_mode_set()
20683     */
20684    EAPI double                 elm_photocam_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20685    /**
20686     * @brief Set the zoom mode
20687     *
20688     * @param obj The photocam object
20689     * @param mode The desired mode
20690     *
20691     * This sets the zoom mode to manual or one of several automatic levels.
20692     * Manual (ELM_PHOTOCAM_ZOOM_MODE_MANUAL) means that zoom is set manually by
20693     * elm_photocam_zoom_set() and will stay at that level until changed by code
20694     * or until zoom mode is changed. This is the default mode. The Automatic
20695     * modes will allow the photocam object to automatically adjust zoom mode
20696     * based on properties. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT) will adjust zoom so
20697     * the photo fits EXACTLY inside the scroll frame with no pixels outside this
20698     * area. ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL will be similar but ensure no
20699     * pixels within the frame are left unfilled.
20700     */
20701    EAPI void                   elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode) EINA_ARG_NONNULL(1);
20702    /**
20703     * @brief Get the zoom mode
20704     *
20705     * @param obj The photocam object
20706     * @return The current zoom mode
20707     *
20708     * This gets the current zoom mode of the photocam object.
20709     *
20710     * @see elm_photocam_zoom_mode_set()
20711     */
20712    EAPI Elm_Photocam_Zoom_Mode elm_photocam_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20713    /**
20714     * @brief Get the current image pixel width and height
20715     *
20716     * @param obj The photocam object
20717     * @param w A pointer to the width return
20718     * @param h A pointer to the height return
20719     *
20720     * This gets the current photo pixel width and height (for the original).
20721     * The size will be returned in the integers @p w and @p h that are pointed
20722     * to.
20723     */
20724    EAPI void                   elm_photocam_image_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
20725    /**
20726     * @brief Get the area of the image that is currently shown
20727     *
20728     * @param obj
20729     * @param x A pointer to the X-coordinate of region
20730     * @param y A pointer to the Y-coordinate of region
20731     * @param w A pointer to the width
20732     * @param h A pointer to the height
20733     *
20734     * @see elm_photocam_image_region_show()
20735     * @see elm_photocam_image_region_bring_in()
20736     */
20737    EAPI void                   elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) EINA_ARG_NONNULL(1);
20738    /**
20739     * @brief Set the viewed portion of the image
20740     *
20741     * @param obj The photocam object
20742     * @param x X-coordinate of region in image original pixels
20743     * @param y Y-coordinate of region in image original pixels
20744     * @param w Width of region in image original pixels
20745     * @param h Height of region in image original pixels
20746     *
20747     * This shows the region of the image without using animation.
20748     */
20749    EAPI void                   elm_photocam_image_region_show(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
20750    /**
20751     * @brief Bring in the viewed portion of the image
20752     *
20753     * @param obj The photocam object
20754     * @param x X-coordinate of region in image original pixels
20755     * @param y Y-coordinate of region in image original pixels
20756     * @param w Width of region in image original pixels
20757     * @param h Height of region in image original pixels
20758     *
20759     * This shows the region of the image using animation.
20760     */
20761    EAPI void                   elm_photocam_image_region_bring_in(Evas_Object *obj, int x, int y, int w, int h) EINA_ARG_NONNULL(1);
20762    /**
20763     * @brief Set the paused state for photocam
20764     *
20765     * @param obj The photocam object
20766     * @param paused The pause state to set
20767     *
20768     * This sets the paused state to on(EINA_TRUE) or off (EINA_FALSE) for
20769     * photocam. The default is off. This will stop zooming using animation on
20770     * zoom levels changes and change instantly. This will stop any existing
20771     * animations that are running.
20772     */
20773    EAPI void                   elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
20774    /**
20775     * @brief Get the paused state for photocam
20776     *
20777     * @param obj The photocam object
20778     * @return The current paused state
20779     *
20780     * This gets the current paused state for the photocam object.
20781     *
20782     * @see elm_photocam_paused_set()
20783     */
20784    EAPI Eina_Bool              elm_photocam_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20785    /**
20786     * @brief Get the internal low-res image used for photocam
20787     *
20788     * @param obj The photocam object
20789     * @return The internal image object handle, or NULL if none exists
20790     *
20791     * This gets the internal image object inside photocam. Do not modify it. It
20792     * is for inspection only, and hooking callbacks to. Nothing else. It may be
20793     * deleted at any time as well.
20794     */
20795    EAPI Evas_Object           *elm_photocam_internal_image_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
20796    /**
20797     * @brief Set the photocam scrolling bouncing.
20798     *
20799     * @param obj The photocam object
20800     * @param h_bounce bouncing for horizontal
20801     * @param v_bounce bouncing for vertical
20802     */
20803    EAPI void                   elm_photocam_bounce_set(Evas_Object *obj,  Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
20804    /**
20805     * @brief Get the photocam scrolling bouncing.
20806     *
20807     * @param obj The photocam object
20808     * @param h_bounce bouncing for horizontal
20809     * @param v_bounce bouncing for vertical
20810     *
20811     * @see elm_photocam_bounce_set()
20812     */
20813    EAPI void                   elm_photocam_bounce_get(const Evas_Object *obj,  Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
20814    /**
20815     * @}
20816     */
20817
20818    /**
20819     * @defgroup Map Map
20820     * @ingroup Elementary
20821     *
20822     * @image html img/widget/map/preview-00.png
20823     * @image latex img/widget/map/preview-00.eps
20824     *
20825     * This is a widget specifically for displaying a map. It uses basically
20826     * OpenStreetMap provider http://www.openstreetmap.org/,
20827     * but custom providers can be added.
20828     *
20829     * It supports some basic but yet nice features:
20830     * @li zoom and scroll
20831     * @li markers with content to be displayed when user clicks over it
20832     * @li group of markers
20833     * @li routes
20834     *
20835     * Smart callbacks one can listen to:
20836     *
20837     * - "clicked" - This is called when a user has clicked the map without
20838     *   dragging around.
20839     * - "press" - This is called when a user has pressed down on the map.
20840     * - "longpressed" - This is called when a user has pressed down on the map
20841     *   for a long time without dragging around.
20842     * - "clicked,double" - This is called when a user has double-clicked
20843     *   the map.
20844     * - "load,detail" - Map detailed data load begins.
20845     * - "loaded,detail" - This is called when all currently visible parts of
20846     *   the map are loaded.
20847     * - "zoom,start" - Zoom animation started.
20848     * - "zoom,stop" - Zoom animation stopped.
20849     * - "zoom,change" - Zoom changed when using an auto zoom mode.
20850     * - "scroll" - the content has been scrolled (moved).
20851     * - "scroll,anim,start" - scrolling animation has started.
20852     * - "scroll,anim,stop" - scrolling animation has stopped.
20853     * - "scroll,drag,start" - dragging the contents around has started.
20854     * - "scroll,drag,stop" - dragging the contents around has stopped.
20855     * - "downloaded" - This is called when all currently required map images
20856     *   are downloaded.
20857     * - "route,load" - This is called when route request begins.
20858     * - "route,loaded" - This is called when route request ends.
20859     * - "name,load" - This is called when name request begins.
20860     * - "name,loaded- This is called when name request ends.
20861     *
20862     * Available style for map widget:
20863     * - @c "default"
20864     *
20865     * Available style for markers:
20866     * - @c "radio"
20867     * - @c "radio2"
20868     * - @c "empty"
20869     *
20870     * Available style for marker bubble:
20871     * - @c "default"
20872     *
20873     * List of examples:
20874     * @li @ref map_example_01
20875     * @li @ref map_example_02
20876     * @li @ref map_example_03
20877     */
20878
20879    /**
20880     * @addtogroup Map
20881     * @{
20882     */
20883
20884    /**
20885     * @enum _Elm_Map_Zoom_Mode
20886     * @typedef Elm_Map_Zoom_Mode
20887     *
20888     * Set map's zoom behavior. It can be set to manual or automatic.
20889     *
20890     * Default value is #ELM_MAP_ZOOM_MODE_MANUAL.
20891     *
20892     * Values <b> don't </b> work as bitmask, only one can be choosen.
20893     *
20894     * @note Valid sizes are 2^zoom, consequently the map may be smaller
20895     * than the scroller view.
20896     *
20897     * @see elm_map_zoom_mode_set()
20898     * @see elm_map_zoom_mode_get()
20899     *
20900     * @ingroup Map
20901     */
20902    typedef enum _Elm_Map_Zoom_Mode
20903      {
20904         ELM_MAP_ZOOM_MODE_MANUAL, /**< Zoom controled manually by elm_map_zoom_set(). It's set by default. */
20905         ELM_MAP_ZOOM_MODE_AUTO_FIT, /**< Zoom until map fits inside the scroll frame with no pixels outside this area. */
20906         ELM_MAP_ZOOM_MODE_AUTO_FILL, /**< Zoom until map fills scroll, ensuring no pixels are left unfilled. */
20907         ELM_MAP_ZOOM_MODE_LAST
20908      } Elm_Map_Zoom_Mode;
20909
20910    /**
20911     * @enum _Elm_Map_Route_Sources
20912     * @typedef Elm_Map_Route_Sources
20913     *
20914     * Set route service to be used. By default used source is
20915     * #ELM_MAP_ROUTE_SOURCE_YOURS.
20916     *
20917     * @see elm_map_route_source_set()
20918     * @see elm_map_route_source_get()
20919     *
20920     * @ingroup Map
20921     */
20922    typedef enum _Elm_Map_Route_Sources
20923      {
20924         ELM_MAP_ROUTE_SOURCE_YOURS, /**< Routing service http://www.yournavigation.org/ . Set by default.*/
20925         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. */
20926         ELM_MAP_ROUTE_SOURCE_ORS, /**< Open Route Service: http://www.openrouteservice.org/ . It's not working with Map yet. */
20927         ELM_MAP_ROUTE_SOURCE_LAST
20928      } Elm_Map_Route_Sources;
20929
20930    typedef enum _Elm_Map_Name_Sources
20931      {
20932         ELM_MAP_NAME_SOURCE_NOMINATIM,
20933         ELM_MAP_NAME_SOURCE_LAST
20934      } Elm_Map_Name_Sources;
20935
20936    /**
20937     * @enum _Elm_Map_Route_Type
20938     * @typedef Elm_Map_Route_Type
20939     *
20940     * Set type of transport used on route.
20941     *
20942     * @see elm_map_route_add()
20943     *
20944     * @ingroup Map
20945     */
20946    typedef enum _Elm_Map_Route_Type
20947      {
20948         ELM_MAP_ROUTE_TYPE_MOTOCAR, /**< Route should consider an automobile will be used. */
20949         ELM_MAP_ROUTE_TYPE_BICYCLE, /**< Route should consider a bicycle will be used by the user. */
20950         ELM_MAP_ROUTE_TYPE_FOOT, /**< Route should consider user will be walking. */
20951         ELM_MAP_ROUTE_TYPE_LAST
20952      } Elm_Map_Route_Type;
20953
20954    /**
20955     * @enum _Elm_Map_Route_Method
20956     * @typedef Elm_Map_Route_Method
20957     *
20958     * Set the routing method, what should be priorized, time or distance.
20959     *
20960     * @see elm_map_route_add()
20961     *
20962     * @ingroup Map
20963     */
20964    typedef enum _Elm_Map_Route_Method
20965      {
20966         ELM_MAP_ROUTE_METHOD_FASTEST, /**< Route should priorize time. */
20967         ELM_MAP_ROUTE_METHOD_SHORTEST, /**< Route should priorize distance. */
20968         ELM_MAP_ROUTE_METHOD_LAST
20969      } Elm_Map_Route_Method;
20970
20971    typedef enum _Elm_Map_Name_Method
20972      {
20973         ELM_MAP_NAME_METHOD_SEARCH,
20974         ELM_MAP_NAME_METHOD_REVERSE,
20975         ELM_MAP_NAME_METHOD_LAST
20976      } Elm_Map_Name_Method;
20977
20978    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(). */
20979    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(). */
20980    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(). */
20981    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(). */
20982    typedef struct _Elm_Map_Name            Elm_Map_Name; /**< A handle for specific coordinates. */
20983    typedef struct _Elm_Map_Track           Elm_Map_Track;
20984
20985    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. */
20986    typedef void         (*ElmMapMarkerDelFunc)      (Evas_Object *obj, Elm_Map_Marker *marker, void *data, Evas_Object *o); /**< Function to delete bubble content for marker classes. */
20987    typedef Evas_Object *(*ElmMapMarkerIconGetFunc)  (Evas_Object *obj, Elm_Map_Marker *marker, void *data); /**< Icon fetching class function for marker classes. */
20988    typedef Evas_Object *(*ElmMapGroupIconGetFunc)   (Evas_Object *obj, void *data); /**< Icon fetching class function for markers group classes. */
20989
20990    typedef char        *(*ElmMapModuleSourceFunc) (void);
20991    typedef int          (*ElmMapModuleZoomMinFunc) (void);
20992    typedef int          (*ElmMapModuleZoomMaxFunc) (void);
20993    typedef char        *(*ElmMapModuleUrlFunc) (Evas_Object *obj, int x, int y, int zoom);
20994    typedef int          (*ElmMapModuleRouteSourceFunc) (void);
20995    typedef char        *(*ElmMapModuleRouteUrlFunc) (Evas_Object *obj, char *type_name, int method, double flon, double flat, double tlon, double tlat);
20996    typedef char        *(*ElmMapModuleNameUrlFunc) (Evas_Object *obj, int method, char *name, double lon, double lat);
20997    typedef Eina_Bool    (*ElmMapModuleGeoIntoCoordFunc) (const Evas_Object *obj, int zoom, double lon, double lat, int size, int *x, int *y);
20998    typedef Eina_Bool    (*ElmMapModuleCoordIntoGeoFunc) (const Evas_Object *obj, int zoom, int x, int y, int size, double *lon, double *lat);
20999
21000    /**
21001     * Add a new map widget to the given parent Elementary (container) object.
21002     *
21003     * @param parent The parent object.
21004     * @return a new map widget handle or @c NULL, on errors.
21005     *
21006     * This function inserts a new map widget on the canvas.
21007     *
21008     * @ingroup Map
21009     */
21010    EAPI Evas_Object          *elm_map_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
21011
21012    /**
21013     * Set the zoom level of the map.
21014     *
21015     * @param obj The map object.
21016     * @param zoom The zoom level to set.
21017     *
21018     * This sets the zoom level.
21019     *
21020     * It will respect limits defined by elm_map_source_zoom_min_set() and
21021     * elm_map_source_zoom_max_set().
21022     *
21023     * By default these values are 0 (world map) and 18 (maximum zoom).
21024     *
21025     * This function should be used when zoom mode is set to
21026     * #ELM_MAP_ZOOM_MODE_MANUAL. This is the default mode, and can be set
21027     * with elm_map_zoom_mode_set().
21028     *
21029     * @see elm_map_zoom_mode_set().
21030     * @see elm_map_zoom_get().
21031     *
21032     * @ingroup Map
21033     */
21034    EAPI void                  elm_map_zoom_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
21035
21036    /**
21037     * Get the zoom level of the map.
21038     *
21039     * @param obj The map object.
21040     * @return The current zoom level.
21041     *
21042     * This returns the current zoom level of the map object.
21043     *
21044     * Note that if you set the fill mode to other than #ELM_MAP_ZOOM_MODE_MANUAL
21045     * (which is the default), the zoom level may be changed at any time by the
21046     * map object itself to account for map size and map viewport size.
21047     *
21048     * @see elm_map_zoom_set() for details.
21049     *
21050     * @ingroup Map
21051     */
21052    EAPI int                   elm_map_zoom_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21053
21054    /**
21055     * Set the zoom mode used by the map object.
21056     *
21057     * @param obj The map object.
21058     * @param mode The zoom mode of the map, being it one of
21059     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
21060     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
21061     *
21062     * This sets the zoom mode to manual or one of the automatic levels.
21063     * Manual (#ELM_MAP_ZOOM_MODE_MANUAL) means that zoom is set manually by
21064     * elm_map_zoom_set() and will stay at that level until changed by code
21065     * or until zoom mode is changed. This is the default mode.
21066     *
21067     * The Automatic modes will allow the map object to automatically
21068     * adjust zoom mode based on properties. #ELM_MAP_ZOOM_MODE_AUTO_FIT will
21069     * adjust zoom so the map fits inside the scroll frame with no pixels
21070     * outside this area. #ELM_MAP_ZOOM_MODE_AUTO_FILL will be similar but
21071     * ensure no pixels within the frame are left unfilled. Do not forget that
21072     * the valid sizes are 2^zoom, consequently the map may be smaller than
21073     * the scroller view.
21074     *
21075     * @see elm_map_zoom_set()
21076     *
21077     * @ingroup Map
21078     */
21079    EAPI void                  elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode) EINA_ARG_NONNULL(1);
21080
21081    /**
21082     * Get the zoom mode used by the map object.
21083     *
21084     * @param obj The map object.
21085     * @return The zoom mode of the map, being it one of
21086     * #ELM_MAP_ZOOM_MODE_MANUAL (default), #ELM_MAP_ZOOM_MODE_AUTO_FIT,
21087     * or #ELM_MAP_ZOOM_MODE_AUTO_FILL.
21088     *
21089     * This function returns the current zoom mode used by the map object.
21090     *
21091     * @see elm_map_zoom_mode_set() for more details.
21092     *
21093     * @ingroup Map
21094     */
21095    EAPI Elm_Map_Zoom_Mode     elm_map_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21096
21097    /**
21098     * Get the current coordinates of the map.
21099     *
21100     * @param obj The map object.
21101     * @param lon Pointer where to store longitude.
21102     * @param lat Pointer where to store latitude.
21103     *
21104     * This gets the current center coordinates of the map object. It can be
21105     * set by elm_map_geo_region_bring_in() and elm_map_geo_region_show().
21106     *
21107     * @see elm_map_geo_region_bring_in()
21108     * @see elm_map_geo_region_show()
21109     *
21110     * @ingroup Map
21111     */
21112    EAPI void                  elm_map_geo_region_get(const Evas_Object *obj, double *lon, double *lat) EINA_ARG_NONNULL(1);
21113
21114    /**
21115     * Animatedly bring in given coordinates to the center of the map.
21116     *
21117     * @param obj The map object.
21118     * @param lon Longitude to center at.
21119     * @param lat Latitude to center at.
21120     *
21121     * This causes map to jump to the given @p lat and @p lon coordinates
21122     * and show it (by scrolling) in the center of the viewport, if it is not
21123     * already centered. This will use animation to do so and take a period
21124     * of time to complete.
21125     *
21126     * @see elm_map_geo_region_show() for a function to avoid animation.
21127     * @see elm_map_geo_region_get()
21128     *
21129     * @ingroup Map
21130     */
21131    EAPI void                  elm_map_geo_region_bring_in(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
21132
21133    /**
21134     * Show the given coordinates at the center of the map, @b immediately.
21135     *
21136     * @param obj The map object.
21137     * @param lon Longitude to center at.
21138     * @param lat Latitude to center at.
21139     *
21140     * This causes map to @b redraw its viewport's contents to the
21141     * region contining the given @p lat and @p lon, that will be moved to the
21142     * center of the map.
21143     *
21144     * @see elm_map_geo_region_bring_in() for a function to move with animation.
21145     * @see elm_map_geo_region_get()
21146     *
21147     * @ingroup Map
21148     */
21149    EAPI void                  elm_map_geo_region_show(Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
21150
21151    /**
21152     * Pause or unpause the map.
21153     *
21154     * @param obj The map object.
21155     * @param paused Use @c EINA_TRUE to pause the map @p obj or @c EINA_FALSE
21156     * to unpause it.
21157     *
21158     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
21159     * for map.
21160     *
21161     * The default is off.
21162     *
21163     * This will stop zooming using animation, changing zoom levels will
21164     * change instantly. This will stop any existing animations that are running.
21165     *
21166     * @see elm_map_paused_get()
21167     *
21168     * @ingroup Map
21169     */
21170    EAPI void                  elm_map_paused_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
21171
21172    /**
21173     * Get a value whether map is paused or not.
21174     *
21175     * @param obj The map object.
21176     * @return @c EINA_TRUE means map is pause. @c EINA_FALSE indicates
21177     * it is not. If @p obj is @c NULL, @c EINA_FALSE is returned.
21178     *
21179     * This gets the current paused state for the map object.
21180     *
21181     * @see elm_map_paused_set() for details.
21182     *
21183     * @ingroup Map
21184     */
21185    EAPI Eina_Bool             elm_map_paused_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21186
21187    /**
21188     * Set to show markers during zoom level changes or not.
21189     *
21190     * @param obj The map object.
21191     * @param paused Use @c EINA_TRUE to @b not show markers or @c EINA_FALSE
21192     * to show them.
21193     *
21194     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
21195     * for map.
21196     *
21197     * The default is off.
21198     *
21199     * This will stop zooming using animation, changing zoom levels will
21200     * change instantly. This will stop any existing animations that are running.
21201     *
21202     * This sets the paused state to on (@c EINA_TRUE) or off (@c EINA_FALSE)
21203     * for the markers.
21204     *
21205     * The default  is off.
21206     *
21207     * Enabling it will force the map to stop displaying the markers during
21208     * zoom level changes. Set to on if you have a large number of markers.
21209     *
21210     * @see elm_map_paused_markers_get()
21211     *
21212     * @ingroup Map
21213     */
21214    EAPI void                  elm_map_paused_markers_set(Evas_Object *obj, Eina_Bool paused) EINA_ARG_NONNULL(1);
21215
21216    /**
21217     * Get a value whether markers will be displayed on zoom level changes or not
21218     *
21219     * @param obj The map object.
21220     * @return @c EINA_TRUE means map @b won't display markers or @c EINA_FALSE
21221     * indicates it will. If @p obj is @c NULL, @c EINA_FALSE is returned.
21222     *
21223     * This gets the current markers paused state for the map object.
21224     *
21225     * @see elm_map_paused_markers_set() for details.
21226     *
21227     * @ingroup Map
21228     */
21229    EAPI Eina_Bool             elm_map_paused_markers_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21230
21231    /**
21232     * Get the information of downloading status.
21233     *
21234     * @param obj The map object.
21235     * @param try_num Pointer where to store number of tiles being downloaded.
21236     * @param finish_num Pointer where to store number of tiles successfully
21237     * downloaded.
21238     *
21239     * This gets the current downloading status for the map object, the number
21240     * of tiles being downloaded and the number of tiles already downloaded.
21241     *
21242     * @ingroup Map
21243     */
21244    EAPI void                  elm_map_utils_downloading_status_get(const Evas_Object *obj, int *try_num, int *finish_num) EINA_ARG_NONNULL(1, 2, 3);
21245
21246    /**
21247     * Convert a pixel coordinate (x,y) into a geographic coordinate
21248     * (longitude, latitude).
21249     *
21250     * @param obj The map object.
21251     * @param x the coordinate.
21252     * @param y the coordinate.
21253     * @param size the size in pixels of the map.
21254     * The map is a square and generally his size is : pow(2.0, zoom)*256.
21255     * @param lon Pointer where to store the longitude that correspond to x.
21256     * @param lat Pointer where to store the latitude that correspond to y.
21257     *
21258     * @note Origin pixel point is the top left corner of the viewport.
21259     * Map zoom and size are taken on account.
21260     *
21261     * @see elm_map_utils_convert_geo_into_coord() if you need the inverse.
21262     *
21263     * @ingroup Map
21264     */
21265    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);
21266
21267    /**
21268     * Convert a geographic coordinate (longitude, latitude) into a pixel
21269     * coordinate (x, y).
21270     *
21271     * @param obj The map object.
21272     * @param lon the longitude.
21273     * @param lat the latitude.
21274     * @param size the size in pixels of the map. The map is a square
21275     * and generally his size is : pow(2.0, zoom)*256.
21276     * @param x Pointer where to store the horizontal pixel coordinate that
21277     * correspond to the longitude.
21278     * @param y Pointer where to store the vertical pixel coordinate that
21279     * correspond to the latitude.
21280     *
21281     * @note Origin pixel point is the top left corner of the viewport.
21282     * Map zoom and size are taken on account.
21283     *
21284     * @see elm_map_utils_convert_coord_into_geo() if you need the inverse.
21285     *
21286     * @ingroup Map
21287     */
21288    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);
21289
21290    /**
21291     * Convert a geographic coordinate (longitude, latitude) into a name
21292     * (address).
21293     *
21294     * @param obj The map object.
21295     * @param lon the longitude.
21296     * @param lat the latitude.
21297     * @return name A #Elm_Map_Name handle for this coordinate.
21298     *
21299     * To get the string for this address, elm_map_name_address_get()
21300     * should be used.
21301     *
21302     * @see elm_map_utils_convert_name_into_coord() if you need the inverse.
21303     *
21304     * @ingroup Map
21305     */
21306    EAPI Elm_Map_Name         *elm_map_utils_convert_coord_into_name(const Evas_Object *obj, double lon, double lat) EINA_ARG_NONNULL(1);
21307
21308    /**
21309     * Convert a name (address) into a geographic coordinate
21310     * (longitude, latitude).
21311     *
21312     * @param obj The map object.
21313     * @param name The address.
21314     * @return name A #Elm_Map_Name handle for this address.
21315     *
21316     * To get the longitude and latitude, elm_map_name_region_get()
21317     * should be used.
21318     *
21319     * @see elm_map_utils_convert_coord_into_name() if you need the inverse.
21320     *
21321     * @ingroup Map
21322     */
21323    EAPI Elm_Map_Name         *elm_map_utils_convert_name_into_coord(const Evas_Object *obj, char *address) EINA_ARG_NONNULL(1, 2);
21324
21325    /**
21326     * Convert a pixel coordinate into a rotated pixel coordinate.
21327     *
21328     * @param obj The map object.
21329     * @param x horizontal coordinate of the point to rotate.
21330     * @param y vertical coordinate of the point to rotate.
21331     * @param cx rotation's center horizontal position.
21332     * @param cy rotation's center vertical position.
21333     * @param degree amount of degrees from 0.0 to 360.0 to rotate arount Z axis.
21334     * @param xx Pointer where to store rotated x.
21335     * @param yy Pointer where to store rotated y.
21336     *
21337     * @ingroup Map
21338     */
21339    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);
21340
21341    /**
21342     * Add a new marker to the map object.
21343     *
21344     * @param obj The map object.
21345     * @param lon The longitude of the marker.
21346     * @param lat The latitude of the marker.
21347     * @param clas The class, to use when marker @b isn't grouped to others.
21348     * @param clas_group The class group, to use when marker is grouped to others
21349     * @param data The data passed to the callbacks.
21350     *
21351     * @return The created marker or @c NULL upon failure.
21352     *
21353     * A marker will be created and shown in a specific point of the map, defined
21354     * by @p lon and @p lat.
21355     *
21356     * It will be displayed using style defined by @p class when this marker
21357     * is displayed alone (not grouped). A new class can be created with
21358     * elm_map_marker_class_new().
21359     *
21360     * If the marker is grouped to other markers, it will be displayed with
21361     * style defined by @p class_group. Markers with the same group are grouped
21362     * if they are close. A new group class can be created with
21363     * elm_map_marker_group_class_new().
21364     *
21365     * Markers created with this method can be deleted with
21366     * elm_map_marker_remove().
21367     *
21368     * A marker can have associated content to be displayed by a bubble,
21369     * when a user click over it, as well as an icon. These objects will
21370     * be fetch using class' callback functions.
21371     *
21372     * @see elm_map_marker_class_new()
21373     * @see elm_map_marker_group_class_new()
21374     * @see elm_map_marker_remove()
21375     *
21376     * @ingroup Map
21377     */
21378    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);
21379
21380    /**
21381     * Set the maximum numbers of markers' content to be displayed in a group.
21382     *
21383     * @param obj The map object.
21384     * @param max The maximum numbers of items displayed in a bubble.
21385     *
21386     * A bubble will be displayed when the user clicks over the group,
21387     * and will place the content of markers that belong to this group
21388     * inside it.
21389     *
21390     * A group can have a long list of markers, consequently the creation
21391     * of the content of the bubble can be very slow.
21392     *
21393     * In order to avoid this, a maximum number of items is displayed
21394     * in a bubble.
21395     *
21396     * By default this number is 30.
21397     *
21398     * Marker with the same group class are grouped if they are close.
21399     *
21400     * @see elm_map_marker_add()
21401     *
21402     * @ingroup Map
21403     */
21404    EAPI void                  elm_map_max_marker_per_group_set(Evas_Object *obj, int max) EINA_ARG_NONNULL(1);
21405
21406    /**
21407     * Remove a marker from the map.
21408     *
21409     * @param marker The marker to remove.
21410     *
21411     * @see elm_map_marker_add()
21412     *
21413     * @ingroup Map
21414     */
21415    EAPI void                  elm_map_marker_remove(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21416
21417    /**
21418     * Get the current coordinates of the marker.
21419     *
21420     * @param marker marker.
21421     * @param lat Pointer where to store the marker's latitude.
21422     * @param lon Pointer where to store the marker's longitude.
21423     *
21424     * These values are set when adding markers, with function
21425     * elm_map_marker_add().
21426     *
21427     * @see elm_map_marker_add()
21428     *
21429     * @ingroup Map
21430     */
21431    EAPI void                  elm_map_marker_region_get(const Elm_Map_Marker *marker, double *lon, double *lat) EINA_ARG_NONNULL(1);
21432
21433    /**
21434     * Animatedly bring in given marker to the center of the map.
21435     *
21436     * @param marker The marker to center at.
21437     *
21438     * This causes map to jump to the given @p marker's coordinates
21439     * and show it (by scrolling) in the center of the viewport, if it is not
21440     * already centered. This will use animation to do so and take a period
21441     * of time to complete.
21442     *
21443     * @see elm_map_marker_show() for a function to avoid animation.
21444     * @see elm_map_marker_region_get()
21445     *
21446     * @ingroup Map
21447     */
21448    EAPI void                  elm_map_marker_bring_in(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21449
21450    /**
21451     * Show the given marker at the center of the map, @b immediately.
21452     *
21453     * @param marker The marker to center at.
21454     *
21455     * This causes map to @b redraw its viewport's contents to the
21456     * region contining the given @p marker's coordinates, that will be
21457     * moved to the center of the map.
21458     *
21459     * @see elm_map_marker_bring_in() for a function to move with animation.
21460     * @see elm_map_markers_list_show() if more than one marker need to be
21461     * displayed.
21462     * @see elm_map_marker_region_get()
21463     *
21464     * @ingroup Map
21465     */
21466    EAPI void                  elm_map_marker_show(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21467
21468    /**
21469     * Move and zoom the map to display a list of markers.
21470     *
21471     * @param markers A list of #Elm_Map_Marker handles.
21472     *
21473     * The map will be centered on the center point of the markers in the list.
21474     * Then the map will be zoomed in order to fit the markers using the maximum
21475     * zoom which allows display of all the markers.
21476     *
21477     * @warning All the markers should belong to the same map object.
21478     *
21479     * @see elm_map_marker_show() to show a single marker.
21480     * @see elm_map_marker_bring_in()
21481     *
21482     * @ingroup Map
21483     */
21484    EAPI void                  elm_map_markers_list_show(Eina_List *markers) EINA_ARG_NONNULL(1);
21485
21486    /**
21487     * Get the Evas object returned by the ElmMapMarkerGetFunc callback
21488     *
21489     * @param marker The marker wich content should be returned.
21490     * @return Return the evas object if it exists, else @c NULL.
21491     *
21492     * To set callback function #ElmMapMarkerGetFunc for the marker class,
21493     * elm_map_marker_class_get_cb_set() should be used.
21494     *
21495     * This content is what will be inside the bubble that will be displayed
21496     * when an user clicks over the marker.
21497     *
21498     * This returns the actual Evas object used to be placed inside
21499     * the bubble. This may be @c NULL, as it may
21500     * not have been created or may have been deleted, at any time, by
21501     * the map. <b>Do not modify this object</b> (move, resize,
21502     * show, hide, etc.), as the map is controlling it. This
21503     * function is for querying, emitting custom signals or hooking
21504     * lower level callbacks for events on that object. Do not delete
21505     * this object under any circumstances.
21506     *
21507     * @ingroup Map
21508     */
21509    EAPI Evas_Object          *elm_map_marker_object_get(const Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21510
21511    /**
21512     * Update the marker
21513     *
21514     * @param marker The marker to be updated.
21515     *
21516     * If a content is set to this marker, it will call function to delete it,
21517     * #ElmMapMarkerDelFunc, and then will fetch the content again with
21518     * #ElmMapMarkerGetFunc.
21519     *
21520     * These functions are set for the marker class with
21521     * elm_map_marker_class_get_cb_set() and elm_map_marker_class_del_cb_set().
21522     *
21523     * @ingroup Map
21524     */
21525    EAPI void                  elm_map_marker_update(Elm_Map_Marker *marker) EINA_ARG_NONNULL(1);
21526
21527    /**
21528     * Close all the bubbles opened by the user.
21529     *
21530     * @param obj The map object.
21531     *
21532     * A bubble is displayed with a content fetched with #ElmMapMarkerGetFunc
21533     * when the user clicks on a marker.
21534     *
21535     * This functions is set for the marker class with
21536     * elm_map_marker_class_get_cb_set().
21537     *
21538     * @ingroup Map
21539     */
21540    EAPI void                  elm_map_bubbles_close(Evas_Object *obj) EINA_ARG_NONNULL(1);
21541
21542    /**
21543     * Create a new group class.
21544     *
21545     * @param obj The map object.
21546     * @return Returns the new group class.
21547     *
21548     * Each marker must be associated to a group class. Markers in the same
21549     * group are grouped if they are close.
21550     *
21551     * The group class defines the style of the marker when a marker is grouped
21552     * to others markers. When it is alone, another class will be used.
21553     *
21554     * A group class will need to be provided when creating a marker with
21555     * elm_map_marker_add().
21556     *
21557     * Some properties and functions can be set by class, as:
21558     * - style, with elm_map_group_class_style_set()
21559     * - data - to be associated to the group class. It can be set using
21560     *   elm_map_group_class_data_set().
21561     * - min zoom to display markers, set with
21562     *   elm_map_group_class_zoom_displayed_set().
21563     * - max zoom to group markers, set using
21564     *   elm_map_group_class_zoom_grouped_set().
21565     * - visibility - set if markers will be visible or not, set with
21566     *   elm_map_group_class_hide_set().
21567     * - #ElmMapGroupIconGetFunc - used to fetch icon for markers group classes.
21568     *   It can be set using elm_map_group_class_icon_cb_set().
21569     *
21570     * @see elm_map_marker_add()
21571     * @see elm_map_group_class_style_set()
21572     * @see elm_map_group_class_data_set()
21573     * @see elm_map_group_class_zoom_displayed_set()
21574     * @see elm_map_group_class_zoom_grouped_set()
21575     * @see elm_map_group_class_hide_set()
21576     * @see elm_map_group_class_icon_cb_set()
21577     *
21578     * @ingroup Map
21579     */
21580    EAPI Elm_Map_Group_Class  *elm_map_group_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
21581
21582    /**
21583     * Set the marker's style of a group class.
21584     *
21585     * @param clas The group class.
21586     * @param style The style to be used by markers.
21587     *
21588     * Each marker must be associated to a group class, and will use the style
21589     * defined by such class when grouped to other markers.
21590     *
21591     * The following styles are provided by default theme:
21592     * @li @c radio - blue circle
21593     * @li @c radio2 - green circle
21594     * @li @c empty
21595     *
21596     * @see elm_map_group_class_new() for more details.
21597     * @see elm_map_marker_add()
21598     *
21599     * @ingroup Map
21600     */
21601    EAPI void                  elm_map_group_class_style_set(Elm_Map_Group_Class *clas, const char *style) EINA_ARG_NONNULL(1);
21602
21603    /**
21604     * Set the icon callback function of a group class.
21605     *
21606     * @param clas The group class.
21607     * @param icon_get The callback function that will return the icon.
21608     *
21609     * Each marker must be associated to a group class, and it can display a
21610     * custom icon. The function @p icon_get must return this icon.
21611     *
21612     * @see elm_map_group_class_new() for more details.
21613     * @see elm_map_marker_add()
21614     *
21615     * @ingroup Map
21616     */
21617    EAPI void                  elm_map_group_class_icon_cb_set(Elm_Map_Group_Class *clas, ElmMapGroupIconGetFunc icon_get) EINA_ARG_NONNULL(1);
21618
21619    /**
21620     * Set the data associated to the group class.
21621     *
21622     * @param clas The group class.
21623     * @param data The new user data.
21624     *
21625     * This data will be passed for callback functions, like icon get callback,
21626     * that can be set with elm_map_group_class_icon_cb_set().
21627     *
21628     * If a data was previously set, the object will lose the pointer for it,
21629     * so if needs to be freed, you must do it yourself.
21630     *
21631     * @see elm_map_group_class_new() for more details.
21632     * @see elm_map_group_class_icon_cb_set()
21633     * @see elm_map_marker_add()
21634     *
21635     * @ingroup Map
21636     */
21637    EAPI void                  elm_map_group_class_data_set(Elm_Map_Group_Class *clas, void *data) EINA_ARG_NONNULL(1);
21638
21639    /**
21640     * Set the minimum zoom from where the markers are displayed.
21641     *
21642     * @param clas The group class.
21643     * @param zoom The minimum zoom.
21644     *
21645     * Markers only will be displayed when the map is displayed at @p zoom
21646     * or bigger.
21647     *
21648     * @see elm_map_group_class_new() for more details.
21649     * @see elm_map_marker_add()
21650     *
21651     * @ingroup Map
21652     */
21653    EAPI void                  elm_map_group_class_zoom_displayed_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
21654
21655    /**
21656     * Set the zoom from where the markers are no more grouped.
21657     *
21658     * @param clas The group class.
21659     * @param zoom The maximum zoom.
21660     *
21661     * Markers only will be grouped when the map is displayed at
21662     * less than @p zoom.
21663     *
21664     * @see elm_map_group_class_new() for more details.
21665     * @see elm_map_marker_add()
21666     *
21667     * @ingroup Map
21668     */
21669    EAPI void                  elm_map_group_class_zoom_grouped_set(Elm_Map_Group_Class *clas, int zoom) EINA_ARG_NONNULL(1);
21670
21671    /**
21672     * Set if the markers associated to the group class @clas are hidden or not.
21673     *
21674     * @param clas The group class.
21675     * @param hide Use @c EINA_TRUE to hide markers or @c EINA_FALSE
21676     * to show them.
21677     *
21678     * If @p hide is @c EINA_TRUE the markers will be hidden, but default
21679     * is to show them.
21680     *
21681     * @ingroup Map
21682     */
21683    EAPI void                  elm_map_group_class_hide_set(Evas_Object *obj, Elm_Map_Group_Class *clas, Eina_Bool hide) EINA_ARG_NONNULL(1, 2);
21684
21685    /**
21686     * Create a new marker class.
21687     *
21688     * @param obj The map object.
21689     * @return Returns the new group class.
21690     *
21691     * Each marker must be associated to a class.
21692     *
21693     * The marker class defines the style of the marker when a marker is
21694     * displayed alone, i.e., not grouped to to others markers. When grouped
21695     * it will use group class style.
21696     *
21697     * A marker class will need to be provided when creating a marker with
21698     * elm_map_marker_add().
21699     *
21700     * Some properties and functions can be set by class, as:
21701     * - style, with elm_map_marker_class_style_set()
21702     * - #ElmMapMarkerIconGetFunc - used to fetch icon for markers classes.
21703     *   It can be set using elm_map_marker_class_icon_cb_set().
21704     * - #ElmMapMarkerGetFunc - used to fetch bubble content for marker classes.
21705     *   Set using elm_map_marker_class_get_cb_set().
21706     * - #ElmMapMarkerDelFunc - used to delete bubble content for marker classes.
21707     *   Set using elm_map_marker_class_del_cb_set().
21708     *
21709     * @see elm_map_marker_add()
21710     * @see elm_map_marker_class_style_set()
21711     * @see elm_map_marker_class_icon_cb_set()
21712     * @see elm_map_marker_class_get_cb_set()
21713     * @see elm_map_marker_class_del_cb_set()
21714     *
21715     * @ingroup Map
21716     */
21717    EAPI Elm_Map_Marker_Class *elm_map_marker_class_new(Evas_Object *obj) EINA_ARG_NONNULL(1);
21718
21719    /**
21720     * Set the marker's style of a marker class.
21721     *
21722     * @param clas The marker class.
21723     * @param style The style to be used by markers.
21724     *
21725     * Each marker must be associated to a marker class, and will use the style
21726     * defined by such class when alone, i.e., @b not grouped to other markers.
21727     *
21728     * The following styles are provided by default theme:
21729     * @li @c radio
21730     * @li @c radio2
21731     * @li @c empty
21732     *
21733     * @see elm_map_marker_class_new() for more details.
21734     * @see elm_map_marker_add()
21735     *
21736     * @ingroup Map
21737     */
21738    EAPI void                  elm_map_marker_class_style_set(Elm_Map_Marker_Class *clas, const char *style) EINA_ARG_NONNULL(1);
21739
21740    /**
21741     * Set the icon callback function of a marker class.
21742     *
21743     * @param clas The marker class.
21744     * @param icon_get The callback function that will return the icon.
21745     *
21746     * Each marker must be associated to a marker class, and it can display a
21747     * custom icon. The function @p icon_get must return this icon.
21748     *
21749     * @see elm_map_marker_class_new() for more details.
21750     * @see elm_map_marker_add()
21751     *
21752     * @ingroup Map
21753     */
21754    EAPI void                  elm_map_marker_class_icon_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerIconGetFunc icon_get) EINA_ARG_NONNULL(1);
21755
21756    /**
21757     * Set the bubble content callback function of a marker class.
21758     *
21759     * @param clas The marker class.
21760     * @param get The callback function that will return the content.
21761     *
21762     * Each marker must be associated to a marker class, and it can display a
21763     * a content on a bubble that opens when the user click over the marker.
21764     * The function @p get must return this content object.
21765     *
21766     * If this content will need to be deleted, elm_map_marker_class_del_cb_set()
21767     * can be used.
21768     *
21769     * @see elm_map_marker_class_new() for more details.
21770     * @see elm_map_marker_class_del_cb_set()
21771     * @see elm_map_marker_add()
21772     *
21773     * @ingroup Map
21774     */
21775    EAPI void                  elm_map_marker_class_get_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerGetFunc get) EINA_ARG_NONNULL(1);
21776
21777    /**
21778     * Set the callback function used to delete bubble content of a marker class.
21779     *
21780     * @param clas The marker class.
21781     * @param del The callback function that will delete the content.
21782     *
21783     * Each marker must be associated to a marker class, and it can display a
21784     * a content on a bubble that opens when the user click over the marker.
21785     * The function to return such content can be set with
21786     * elm_map_marker_class_get_cb_set().
21787     *
21788     * If this content must be freed, a callback function need to be
21789     * set for that task with this function.
21790     *
21791     * If this callback is defined it will have to delete (or not) the
21792     * object inside, but if the callback is not defined the object will be
21793     * destroyed with evas_object_del().
21794     *
21795     * @see elm_map_marker_class_new() for more details.
21796     * @see elm_map_marker_class_get_cb_set()
21797     * @see elm_map_marker_add()
21798     *
21799     * @ingroup Map
21800     */
21801    EAPI void                  elm_map_marker_class_del_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerDelFunc del) EINA_ARG_NONNULL(1);
21802
21803    /**
21804     * Get the list of available sources.
21805     *
21806     * @param obj The map object.
21807     * @return The source names list.
21808     *
21809     * It will provide a list with all available sources, that can be set as
21810     * current source with elm_map_source_name_set(), or get with
21811     * elm_map_source_name_get().
21812     *
21813     * Available sources:
21814     * @li "Mapnik"
21815     * @li "Osmarender"
21816     * @li "CycleMap"
21817     * @li "Maplint"
21818     *
21819     * @see elm_map_source_name_set() for more details.
21820     * @see elm_map_source_name_get()
21821     *
21822     * @ingroup Map
21823     */
21824    EAPI const char          **elm_map_source_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21825
21826    /**
21827     * Set the source of the map.
21828     *
21829     * @param obj The map object.
21830     * @param source The source to be used.
21831     *
21832     * Map widget retrieves images that composes the map from a web service.
21833     * This web service can be set with this method.
21834     *
21835     * A different service can return a different maps with different
21836     * information and it can use different zoom values.
21837     *
21838     * The @p source_name need to match one of the names provided by
21839     * elm_map_source_names_get().
21840     *
21841     * The current source can be get using elm_map_source_name_get().
21842     *
21843     * @see elm_map_source_names_get()
21844     * @see elm_map_source_name_get()
21845     *
21846     *
21847     * @ingroup Map
21848     */
21849    EAPI void                  elm_map_source_name_set(Evas_Object *obj, const char *source_name) EINA_ARG_NONNULL(1);
21850
21851    /**
21852     * Get the name of currently used source.
21853     *
21854     * @param obj The map object.
21855     * @return Returns the name of the source in use.
21856     *
21857     * @see elm_map_source_name_set() for more details.
21858     *
21859     * @ingroup Map
21860     */
21861    EAPI const char           *elm_map_source_name_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21862
21863    /**
21864     * Set the source of the route service to be used by the map.
21865     *
21866     * @param obj The map object.
21867     * @param source The route service to be used, being it one of
21868     * #ELM_MAP_ROUTE_SOURCE_YOURS (default), #ELM_MAP_ROUTE_SOURCE_MONAV,
21869     * and #ELM_MAP_ROUTE_SOURCE_ORS.
21870     *
21871     * Each one has its own algorithm, so the route retrieved may
21872     * differ depending on the source route. Now, only the default is working.
21873     *
21874     * #ELM_MAP_ROUTE_SOURCE_YOURS is the routing service provided at
21875     * http://www.yournavigation.org/.
21876     *
21877     * #ELM_MAP_ROUTE_SOURCE_MONAV, offers exact routing without heuristic
21878     * assumptions. Its routing core is based on Contraction Hierarchies.
21879     *
21880     * #ELM_MAP_ROUTE_SOURCE_ORS, is provided at http://www.openrouteservice.org/
21881     *
21882     * @see elm_map_route_source_get().
21883     *
21884     * @ingroup Map
21885     */
21886    EAPI void                  elm_map_route_source_set(Evas_Object *obj, Elm_Map_Route_Sources source) EINA_ARG_NONNULL(1);
21887
21888    /**
21889     * Get the current route source.
21890     *
21891     * @param obj The map object.
21892     * @return The source of the route service used by the map.
21893     *
21894     * @see elm_map_route_source_set() for details.
21895     *
21896     * @ingroup Map
21897     */
21898    EAPI Elm_Map_Route_Sources elm_map_route_source_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21899
21900    /**
21901     * Set the minimum zoom of the source.
21902     *
21903     * @param obj The map object.
21904     * @param zoom New minimum zoom value to be used.
21905     *
21906     * By default, it's 0.
21907     *
21908     * @ingroup Map
21909     */
21910    EAPI void                  elm_map_source_zoom_min_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
21911
21912    /**
21913     * Get the minimum zoom of the source.
21914     *
21915     * @param obj The map object.
21916     * @return Returns the minimum zoom of the source.
21917     *
21918     * @see elm_map_source_zoom_min_set() for details.
21919     *
21920     * @ingroup Map
21921     */
21922    EAPI int                   elm_map_source_zoom_min_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21923
21924    /**
21925     * Set the maximum zoom of the source.
21926     *
21927     * @param obj The map object.
21928     * @param zoom New maximum zoom value to be used.
21929     *
21930     * By default, it's 18.
21931     *
21932     * @ingroup Map
21933     */
21934    EAPI void                  elm_map_source_zoom_max_set(Evas_Object *obj, int zoom) EINA_ARG_NONNULL(1);
21935
21936    /**
21937     * Get the maximum zoom of the source.
21938     *
21939     * @param obj The map object.
21940     * @return Returns the maximum zoom of the source.
21941     *
21942     * @see elm_map_source_zoom_min_set() for details.
21943     *
21944     * @ingroup Map
21945     */
21946    EAPI int                   elm_map_source_zoom_max_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21947
21948    /**
21949     * Set the user agent used by the map object to access routing services.
21950     *
21951     * @param obj The map object.
21952     * @param user_agent The user agent to be used by the map.
21953     *
21954     * User agent is a client application implementing a network protocol used
21955     * in communications within a client–server distributed computing system
21956     *
21957     * The @p user_agent identification string will transmitted in a header
21958     * field @c User-Agent.
21959     *
21960     * @see elm_map_user_agent_get()
21961     *
21962     * @ingroup Map
21963     */
21964    EAPI void                  elm_map_user_agent_set(Evas_Object *obj, const char *user_agent) EINA_ARG_NONNULL(1, 2);
21965
21966    /**
21967     * Get the user agent used by the map object.
21968     *
21969     * @param obj The map object.
21970     * @return The user agent identification string used by the map.
21971     *
21972     * @see elm_map_user_agent_set() for details.
21973     *
21974     * @ingroup Map
21975     */
21976    EAPI const char           *elm_map_user_agent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
21977
21978    /**
21979     * Add a new route to the map object.
21980     *
21981     * @param obj The map object.
21982     * @param type The type of transport to be considered when tracing a route.
21983     * @param method The routing method, what should be priorized.
21984     * @param flon The start longitude.
21985     * @param flat The start latitude.
21986     * @param tlon The destination longitude.
21987     * @param tlat The destination latitude.
21988     *
21989     * @return The created route or @c NULL upon failure.
21990     *
21991     * A route will be traced by point on coordinates (@p flat, @p flon)
21992     * to point on coordinates (@p tlat, @p tlon), using the route service
21993     * set with elm_map_route_source_set().
21994     *
21995     * It will take @p type on consideration to define the route,
21996     * depending if the user will be walking or driving, the route may vary.
21997     * One of #ELM_MAP_ROUTE_TYPE_MOTOCAR, #ELM_MAP_ROUTE_TYPE_BICYCLE, or
21998     * #ELM_MAP_ROUTE_TYPE_FOOT need to be used.
21999     *
22000     * Another parameter is what the route should priorize, the minor distance
22001     * or the less time to be spend on the route. So @p method should be one
22002     * of #ELM_MAP_ROUTE_METHOD_SHORTEST or #ELM_MAP_ROUTE_METHOD_FASTEST.
22003     *
22004     * Routes created with this method can be deleted with
22005     * elm_map_route_remove(), colored with elm_map_route_color_set(),
22006     * and distance can be get with elm_map_route_distance_get().
22007     *
22008     * @see elm_map_route_remove()
22009     * @see elm_map_route_color_set()
22010     * @see elm_map_route_distance_get()
22011     * @see elm_map_route_source_set()
22012     *
22013     * @ingroup Map
22014     */
22015    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);
22016
22017    /**
22018     * Remove a route from the map.
22019     *
22020     * @param route The route to remove.
22021     *
22022     * @see elm_map_route_add()
22023     *
22024     * @ingroup Map
22025     */
22026    EAPI void                  elm_map_route_remove(Elm_Map_Route *route) EINA_ARG_NONNULL(1);
22027
22028    /**
22029     * Set the route color.
22030     *
22031     * @param route The route object.
22032     * @param r Red channel value, from 0 to 255.
22033     * @param g Green channel value, from 0 to 255.
22034     * @param b Blue channel value, from 0 to 255.
22035     * @param a Alpha channel value, from 0 to 255.
22036     *
22037     * It uses an additive color model, so each color channel represents
22038     * how much of each primary colors must to be used. 0 represents
22039     * ausence of this color, so if all of the three are set to 0,
22040     * the color will be black.
22041     *
22042     * These component values should be integers in the range 0 to 255,
22043     * (single 8-bit byte).
22044     *
22045     * This sets the color used for the route. By default, it is set to
22046     * solid red (r = 255, g = 0, b = 0, a = 255).
22047     *
22048     * For alpha channel, 0 represents completely transparent, and 255, opaque.
22049     *
22050     * @see elm_map_route_color_get()
22051     *
22052     * @ingroup Map
22053     */
22054    EAPI void                  elm_map_route_color_set(Elm_Map_Route *route, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
22055
22056    /**
22057     * Get the route color.
22058     *
22059     * @param route The route object.
22060     * @param r Pointer where to store the red channel value.
22061     * @param g Pointer where to store the green channel value.
22062     * @param b Pointer where to store the blue channel value.
22063     * @param a Pointer where to store the alpha channel value.
22064     *
22065     * @see elm_map_route_color_set() for details.
22066     *
22067     * @ingroup Map
22068     */
22069    EAPI void                  elm_map_route_color_get(const Elm_Map_Route *route, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
22070
22071    /**
22072     * Get the route distance in kilometers.
22073     *
22074     * @param route The route object.
22075     * @return The distance of route (unit : km).
22076     *
22077     * @ingroup Map
22078     */
22079    EAPI double                elm_map_route_distance_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
22080
22081    /**
22082     * Get the information of route nodes.
22083     *
22084     * @param route The route object.
22085     * @return Returns a string with the nodes of route.
22086     *
22087     * @ingroup Map
22088     */
22089    EAPI const char           *elm_map_route_node_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
22090
22091    /**
22092     * Get the information of route waypoint.
22093     *
22094     * @param route the route object.
22095     * @return Returns a string with information about waypoint of route.
22096     *
22097     * @ingroup Map
22098     */
22099    EAPI const char           *elm_map_route_waypoint_get(const Elm_Map_Route *route) EINA_ARG_NONNULL(1);
22100
22101    /**
22102     * Get the address of the name.
22103     *
22104     * @param name The name handle.
22105     * @return Returns the address string of @p name.
22106     *
22107     * This gets the coordinates of the @p name, created with one of the
22108     * conversion functions.
22109     *
22110     * @see elm_map_utils_convert_name_into_coord()
22111     * @see elm_map_utils_convert_coord_into_name()
22112     *
22113     * @ingroup Map
22114     */
22115    EAPI const char           *elm_map_name_address_get(const Elm_Map_Name *name) EINA_ARG_NONNULL(1);
22116
22117    /**
22118     * Get the current coordinates of the name.
22119     *
22120     * @param name The name handle.
22121     * @param lat Pointer where to store the latitude.
22122     * @param lon Pointer where to store The longitude.
22123     *
22124     * This gets the coordinates of the @p name, created with one of the
22125     * conversion functions.
22126     *
22127     * @see elm_map_utils_convert_name_into_coord()
22128     * @see elm_map_utils_convert_coord_into_name()
22129     *
22130     * @ingroup Map
22131     */
22132    EAPI void                  elm_map_name_region_get(const Elm_Map_Name *name, double *lon, double *lat) EINA_ARG_NONNULL(1);
22133
22134    /**
22135     * Remove a name from the map.
22136     *
22137     * @param name The name to remove.
22138     *
22139     * Basically the struct handled by @p name will be freed, so convertions
22140     * between address and coordinates will be lost.
22141     *
22142     * @see elm_map_utils_convert_name_into_coord()
22143     * @see elm_map_utils_convert_coord_into_name()
22144     *
22145     * @ingroup Map
22146     */
22147    EAPI void                  elm_map_name_remove(Elm_Map_Name *name) EINA_ARG_NONNULL(1);
22148
22149    /**
22150     * Rotate the map.
22151     *
22152     * @param obj The map object.
22153     * @param degree Angle from 0.0 to 360.0 to rotate arount Z axis.
22154     * @param cx Rotation's center horizontal position.
22155     * @param cy Rotation's center vertical position.
22156     *
22157     * @see elm_map_rotate_get()
22158     *
22159     * @ingroup Map
22160     */
22161    EAPI void                  elm_map_rotate_set(Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy) EINA_ARG_NONNULL(1);
22162
22163    /**
22164     * Get the rotate degree of the map
22165     *
22166     * @param obj The map object
22167     * @param degree Pointer where to store degrees from 0.0 to 360.0
22168     * to rotate arount Z axis.
22169     * @param cx Pointer where to store rotation's center horizontal position.
22170     * @param cy Pointer where to store rotation's center vertical position.
22171     *
22172     * @see elm_map_rotate_set() to set map rotation.
22173     *
22174     * @ingroup Map
22175     */
22176    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);
22177
22178    /**
22179     * Enable or disable mouse wheel to be used to zoom in / out the map.
22180     *
22181     * @param obj The map object.
22182     * @param disabled Use @c EINA_TRUE to disable mouse wheel or @c EINA_FALSE
22183     * to enable it.
22184     *
22185     * Mouse wheel can be used for the user to zoom in or zoom out the map.
22186     *
22187     * It's disabled by default.
22188     *
22189     * @see elm_map_wheel_disabled_get()
22190     *
22191     * @ingroup Map
22192     */
22193    EAPI void                  elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
22194
22195    /**
22196     * Get a value whether mouse wheel is enabled or not.
22197     *
22198     * @param obj The map object.
22199     * @return @c EINA_TRUE means map is disabled. @c EINA_FALSE indicates
22200     * it is enabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
22201     *
22202     * Mouse wheel can be used for the user to zoom in or zoom out the map.
22203     *
22204     * @see elm_map_wheel_disabled_set() for details.
22205     *
22206     * @ingroup Map
22207     */
22208    EAPI Eina_Bool             elm_map_wheel_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22209
22210 #ifdef ELM_EMAP
22211    /**
22212     * Add a track on the map
22213     *
22214     * @param obj The map object.
22215     * @param emap The emap route object.
22216     * @return The route object. This is an elm object of type Route.
22217     *
22218     * @see elm_route_add() for details.
22219     *
22220     * @ingroup Map
22221     */
22222    EAPI Evas_Object          *elm_map_track_add(Evas_Object *obj, EMap_Route *emap) EINA_ARG_NONNULL(1);
22223 #endif
22224
22225    /**
22226     * Remove a track from the map
22227     *
22228     * @param obj The map object.
22229     * @param route The track to remove.
22230     *
22231     * @ingroup Map
22232     */
22233    EAPI void                  elm_map_track_remove(Evas_Object *obj, Evas_Object *route) EINA_ARG_NONNULL(1);
22234
22235    /**
22236     * @}
22237     */
22238
22239    /* Route */
22240    EAPI Evas_Object *elm_route_add(Evas_Object *parent);
22241 #ifdef ELM_EMAP
22242    EAPI void elm_route_emap_set(Evas_Object *obj, EMap_Route *emap);
22243 #endif
22244    EAPI double elm_route_lon_min_get(Evas_Object *obj);
22245    EAPI double elm_route_lat_min_get(Evas_Object *obj);
22246    EAPI double elm_route_lon_max_get(Evas_Object *obj);
22247    EAPI double elm_route_lat_max_get(Evas_Object *obj);
22248
22249
22250    /**
22251     * @defgroup Panel Panel
22252     *
22253     * @image html img/widget/panel/preview-00.png
22254     * @image latex img/widget/panel/preview-00.eps
22255     *
22256     * @brief A panel is a type of animated container that contains subobjects.
22257     * It can be expanded or contracted by clicking the button on it's edge.
22258     *
22259     * Orientations are as follows:
22260     * @li ELM_PANEL_ORIENT_TOP
22261     * @li ELM_PANEL_ORIENT_LEFT
22262     * @li ELM_PANEL_ORIENT_RIGHT
22263     *
22264     * @ref tutorial_panel shows one way to use this widget.
22265     * @{
22266     */
22267    typedef enum _Elm_Panel_Orient
22268      {
22269         ELM_PANEL_ORIENT_TOP, /**< Panel (dis)appears from the top */
22270         ELM_PANEL_ORIENT_BOTTOM, /**< Not implemented */
22271         ELM_PANEL_ORIENT_LEFT, /**< Panel (dis)appears from the left */
22272         ELM_PANEL_ORIENT_RIGHT, /**< Panel (dis)appears from the right */
22273      } Elm_Panel_Orient;
22274    /**
22275     * @brief Adds a panel object
22276     *
22277     * @param parent The parent object
22278     *
22279     * @return The panel object, or NULL on failure
22280     */
22281    EAPI Evas_Object          *elm_panel_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22282    /**
22283     * @brief Sets the orientation of the panel
22284     *
22285     * @param parent The parent object
22286     * @param orient The panel orientation. Can be one of the following:
22287     * @li ELM_PANEL_ORIENT_TOP
22288     * @li ELM_PANEL_ORIENT_LEFT
22289     * @li ELM_PANEL_ORIENT_RIGHT
22290     *
22291     * Sets from where the panel will (dis)appear.
22292     */
22293    EAPI void                  elm_panel_orient_set(Evas_Object *obj, Elm_Panel_Orient orient) EINA_ARG_NONNULL(1);
22294    /**
22295     * @brief Get the orientation of the panel.
22296     *
22297     * @param obj The panel object
22298     * @return The Elm_Panel_Orient, or ELM_PANEL_ORIENT_LEFT on failure.
22299     */
22300    EAPI Elm_Panel_Orient      elm_panel_orient_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22301    /**
22302     * @brief Set the content of the panel.
22303     *
22304     * @param obj The panel object
22305     * @param content The panel content
22306     *
22307     * Once the content object is set, a previously set one will be deleted.
22308     * If you want to keep that old content object, use the
22309     * elm_panel_content_unset() function.
22310     */
22311    EAPI void                  elm_panel_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22312    /**
22313     * @brief Get the content of the panel.
22314     *
22315     * @param obj The panel object
22316     * @return The content that is being used
22317     *
22318     * Return the content object which is set for this widget.
22319     *
22320     * @see elm_panel_content_set()
22321     */
22322    EAPI Evas_Object          *elm_panel_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22323    /**
22324     * @brief Unset the content of the panel.
22325     *
22326     * @param obj The panel object
22327     * @return The content that was being used
22328     *
22329     * Unparent and return the content object which was set for this widget.
22330     *
22331     * @see elm_panel_content_set()
22332     */
22333    EAPI Evas_Object          *elm_panel_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22334    /**
22335     * @brief Set the state of the panel.
22336     *
22337     * @param obj The panel object
22338     * @param hidden If true, the panel will run the animation to contract
22339     */
22340    EAPI void                  elm_panel_hidden_set(Evas_Object *obj, Eina_Bool hidden) EINA_ARG_NONNULL(1);
22341    /**
22342     * @brief Get the state of the panel.
22343     *
22344     * @param obj The panel object
22345     * @param hidden If true, the panel is in the "hide" state
22346     */
22347    EAPI Eina_Bool             elm_panel_hidden_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22348    /**
22349     * @brief Toggle the hidden state of the panel from code
22350     *
22351     * @param obj The panel object
22352     */
22353    EAPI void                  elm_panel_toggle(Evas_Object *obj) EINA_ARG_NONNULL(1);
22354    /**
22355     * @}
22356     */
22357
22358    /**
22359     * @defgroup Panes Panes
22360     * @ingroup Elementary
22361     *
22362     * @image html img/widget/panes/preview-00.png
22363     * @image latex img/widget/panes/preview-00.eps width=\textwidth
22364     *
22365     * @image html img/panes.png
22366     * @image latex img/panes.eps width=\textwidth
22367     *
22368     * The panes adds a dragable bar between two contents. When dragged
22369     * this bar will resize contents size.
22370     *
22371     * Panes can be displayed vertically or horizontally, and contents
22372     * size proportion can be customized (homogeneous by default).
22373     *
22374     * Smart callbacks one can listen to:
22375     * - "press" - The panes has been pressed (button wasn't released yet).
22376     * - "unpressed" - The panes was released after being pressed.
22377     * - "clicked" - The panes has been clicked>
22378     * - "clicked,double" - The panes has been double clicked
22379     *
22380     * Available styles for it:
22381     * - @c "default"
22382     *
22383     * Here is an example on its usage:
22384     * @li @ref panes_example
22385     */
22386
22387    /**
22388     * @addtogroup Panes
22389     * @{
22390     */
22391
22392    /**
22393     * Add a new panes widget to the given parent Elementary
22394     * (container) object.
22395     *
22396     * @param parent The parent object.
22397     * @return a new panes widget handle or @c NULL, on errors.
22398     *
22399     * This function inserts a new panes widget on the canvas.
22400     *
22401     * @ingroup Panes
22402     */
22403    EAPI Evas_Object          *elm_panes_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22404
22405    /**
22406     * Set the left content of the panes widget.
22407     *
22408     * @param obj The panes object.
22409     * @param content The new left content object.
22410     *
22411     * Once the content object is set, a previously set one will be deleted.
22412     * If you want to keep that old content object, use the
22413     * elm_panes_content_left_unset() function.
22414     *
22415     * If panes is displayed vertically, left content will be displayed at
22416     * top.
22417     *
22418     * @see elm_panes_content_left_get()
22419     * @see elm_panes_content_right_set() to set content on the other side.
22420     *
22421     * @ingroup Panes
22422     */
22423    EAPI void                  elm_panes_content_left_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22424
22425    /**
22426     * Set the right content of the panes widget.
22427     *
22428     * @param obj The panes object.
22429     * @param content The new right content object.
22430     *
22431     * Once the content object is set, a previously set one will be deleted.
22432     * If you want to keep that old content object, use the
22433     * elm_panes_content_right_unset() function.
22434     *
22435     * If panes is displayed vertically, left content will be displayed at
22436     * bottom.
22437     *
22438     * @see elm_panes_content_right_get()
22439     * @see elm_panes_content_left_set() to set content on the other side.
22440     *
22441     * @ingroup Panes
22442     */
22443    EAPI void                  elm_panes_content_right_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22444
22445    /**
22446     * Get the left content of the panes.
22447     *
22448     * @param obj The panes object.
22449     * @return The left content object that is being used.
22450     *
22451     * Return the left content object which is set for this widget.
22452     *
22453     * @see elm_panes_content_left_set() for details.
22454     *
22455     * @ingroup Panes
22456     */
22457    EAPI Evas_Object          *elm_panes_content_left_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22458
22459    /**
22460     * Get the right content of the panes.
22461     *
22462     * @param obj The panes object
22463     * @return The right content object that is being used
22464     *
22465     * Return the right content object which is set for this widget.
22466     *
22467     * @see elm_panes_content_right_set() for details.
22468     *
22469     * @ingroup Panes
22470     */
22471    EAPI Evas_Object          *elm_panes_content_right_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22472
22473    /**
22474     * Unset the left content used for the panes.
22475     *
22476     * @param obj The panes object.
22477     * @return The left content object that was being used.
22478     *
22479     * Unparent and return the left content object which was set for this widget.
22480     *
22481     * @see elm_panes_content_left_set() for details.
22482     * @see elm_panes_content_left_get().
22483     *
22484     * @ingroup Panes
22485     */
22486    EAPI Evas_Object          *elm_panes_content_left_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22487
22488    /**
22489     * Unset the right content used for the panes.
22490     *
22491     * @param obj The panes object.
22492     * @return The right content object that was being used.
22493     *
22494     * Unparent and return the right content object which was set for this
22495     * widget.
22496     *
22497     * @see elm_panes_content_right_set() for details.
22498     * @see elm_panes_content_right_get().
22499     *
22500     * @ingroup Panes
22501     */
22502    EAPI Evas_Object          *elm_panes_content_right_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22503
22504    /**
22505     * Get the size proportion of panes widget's left side.
22506     *
22507     * @param obj The panes object.
22508     * @return float value between 0.0 and 1.0 representing size proportion
22509     * of left side.
22510     *
22511     * @see elm_panes_content_left_size_set() for more details.
22512     *
22513     * @ingroup Panes
22514     */
22515    EAPI double                elm_panes_content_left_size_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22516
22517    /**
22518     * Set the size proportion of panes widget's left side.
22519     *
22520     * @param obj The panes object.
22521     * @param size Value between 0.0 and 1.0 representing size proportion
22522     * of left side.
22523     *
22524     * By default it's homogeneous, i.e., both sides have the same size.
22525     *
22526     * If something different is required, it can be set with this function.
22527     * For example, if the left content should be displayed over
22528     * 75% of the panes size, @p size should be passed as @c 0.75.
22529     * This way, right content will be resized to 25% of panes size.
22530     *
22531     * If displayed vertically, left content is displayed at top, and
22532     * right content at bottom.
22533     *
22534     * @note This proportion will change when user drags the panes bar.
22535     *
22536     * @see elm_panes_content_left_size_get()
22537     *
22538     * @ingroup Panes
22539     */
22540    EAPI void                  elm_panes_content_left_size_set(Evas_Object *obj, double size) EINA_ARG_NONNULL(1);
22541
22542   /**
22543    * Set the orientation of a given panes widget.
22544    *
22545    * @param obj The panes object.
22546    * @param horizontal Use @c EINA_TRUE to make @p obj to be
22547    * @b horizontal, @c EINA_FALSE to make it @b vertical.
22548    *
22549    * Use this function to change how your panes is to be
22550    * disposed: vertically or horizontally.
22551    *
22552    * By default it's displayed horizontally.
22553    *
22554    * @see elm_panes_horizontal_get()
22555    *
22556    * @ingroup Panes
22557    */
22558    EAPI void                  elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
22559
22560    /**
22561     * Retrieve the orientation of a given panes widget.
22562     *
22563     * @param obj The panes object.
22564     * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
22565     * @c EINA_FALSE if it's @b vertical (and on errors).
22566     *
22567     * @see elm_panes_horizontal_set() for more details.
22568     *
22569     * @ingroup Panes
22570     */
22571    EAPI Eina_Bool             elm_panes_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22572
22573    /**
22574     * @}
22575     */
22576
22577    /**
22578     * @defgroup Flip Flip
22579     *
22580     * @image html img/widget/flip/preview-00.png
22581     * @image latex img/widget/flip/preview-00.eps
22582     *
22583     * This widget holds 2 content objects(Evas_Object): one on the front and one
22584     * on the back. It allows you to flip from front to back and vice-versa using
22585     * various animations.
22586     *
22587     * If either the front or back contents are not set the flip will treat that
22588     * as transparent. So if you wore to set the front content but not the back,
22589     * and then call elm_flip_go() you would see whatever is below the flip.
22590     *
22591     * For a list of supported animations see elm_flip_go().
22592     *
22593     * Signals that you can add callbacks for are:
22594     * "animate,begin" - when a flip animation was started
22595     * "animate,done" - when a flip animation is finished
22596     *
22597     * @ref tutorial_flip show how to use most of the API.
22598     *
22599     * @{
22600     */
22601    typedef enum _Elm_Flip_Mode
22602      {
22603         ELM_FLIP_ROTATE_Y_CENTER_AXIS,
22604         ELM_FLIP_ROTATE_X_CENTER_AXIS,
22605         ELM_FLIP_ROTATE_XZ_CENTER_AXIS,
22606         ELM_FLIP_ROTATE_YZ_CENTER_AXIS,
22607         ELM_FLIP_CUBE_LEFT,
22608         ELM_FLIP_CUBE_RIGHT,
22609         ELM_FLIP_CUBE_UP,
22610         ELM_FLIP_CUBE_DOWN,
22611         ELM_FLIP_PAGE_LEFT,
22612         ELM_FLIP_PAGE_RIGHT,
22613         ELM_FLIP_PAGE_UP,
22614         ELM_FLIP_PAGE_DOWN
22615      } Elm_Flip_Mode;
22616    typedef enum _Elm_Flip_Interaction
22617      {
22618         ELM_FLIP_INTERACTION_NONE,
22619         ELM_FLIP_INTERACTION_ROTATE,
22620         ELM_FLIP_INTERACTION_CUBE,
22621         ELM_FLIP_INTERACTION_PAGE
22622      } Elm_Flip_Interaction;
22623    typedef enum _Elm_Flip_Direction
22624      {
22625         ELM_FLIP_DIRECTION_UP, /**< Allows interaction with the top of the widget */
22626         ELM_FLIP_DIRECTION_DOWN, /**< Allows interaction with the bottom of the widget */
22627         ELM_FLIP_DIRECTION_LEFT, /**< Allows interaction with the left portion of the widget */
22628         ELM_FLIP_DIRECTION_RIGHT /**< Allows interaction with the right portion of the widget */
22629      } Elm_Flip_Direction;
22630    /**
22631     * @brief Add a new flip to the parent
22632     *
22633     * @param parent The parent object
22634     * @return The new object or NULL if it cannot be created
22635     */
22636    EAPI Evas_Object *elm_flip_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22637    /**
22638     * @brief Set the front content of the flip widget.
22639     *
22640     * @param obj The flip object
22641     * @param content The new front content object
22642     *
22643     * Once the content object is set, a previously set one will be deleted.
22644     * If you want to keep that old content object, use the
22645     * elm_flip_content_front_unset() function.
22646     */
22647    EAPI void         elm_flip_content_front_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22648    /**
22649     * @brief Set the back content of the flip widget.
22650     *
22651     * @param obj The flip object
22652     * @param content The new back content object
22653     *
22654     * Once the content object is set, a previously set one will be deleted.
22655     * If you want to keep that old content object, use the
22656     * elm_flip_content_back_unset() function.
22657     */
22658    EAPI void         elm_flip_content_back_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22659    /**
22660     * @brief Get the front content used for the flip
22661     *
22662     * @param obj The flip object
22663     * @return The front content object that is being used
22664     *
22665     * Return the front content object which is set for this widget.
22666     */
22667    EAPI Evas_Object *elm_flip_content_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22668    /**
22669     * @brief Get the back content used for the flip
22670     *
22671     * @param obj The flip object
22672     * @return The back content object that is being used
22673     *
22674     * Return the back content object which is set for this widget.
22675     */
22676    EAPI Evas_Object *elm_flip_content_back_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22677    /**
22678     * @brief Unset the front content used for the flip
22679     *
22680     * @param obj The flip object
22681     * @return The front content object that was being used
22682     *
22683     * Unparent and return the front content object which was set for this widget.
22684     */
22685    EAPI Evas_Object *elm_flip_content_front_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22686    /**
22687     * @brief Unset the back content used for the flip
22688     *
22689     * @param obj The flip object
22690     * @return The back content object that was being used
22691     *
22692     * Unparent and return the back content object which was set for this widget.
22693     */
22694    EAPI Evas_Object *elm_flip_content_back_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22695    /**
22696     * @brief Get flip front visibility state
22697     *
22698     * @param obj The flip objct
22699     * @return EINA_TRUE if front front is showing, EINA_FALSE if the back is
22700     * showing.
22701     */
22702    EAPI Eina_Bool    elm_flip_front_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22703    /**
22704     * @brief Set flip perspective
22705     *
22706     * @param obj The flip object
22707     * @param foc The coordinate to set the focus on
22708     * @param x The X coordinate
22709     * @param y The Y coordinate
22710     *
22711     * @warning This function currently does nothing.
22712     */
22713    EAPI void         elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y) EINA_ARG_NONNULL(1);
22714    /**
22715     * @brief Runs the flip animation
22716     *
22717     * @param obj The flip object
22718     * @param mode The mode type
22719     *
22720     * Flips the front and back contents using the @p mode animation. This
22721     * efectively hides the currently visible content and shows the hidden one.
22722     *
22723     * There a number of possible animations to use for the flipping:
22724     * @li ELM_FLIP_ROTATE_X_CENTER_AXIS - Rotate the currently visible content
22725     * around a horizontal axis in the middle of its height, the other content
22726     * is shown as the other side of the flip.
22727     * @li ELM_FLIP_ROTATE_Y_CENTER_AXIS - Rotate the currently visible content
22728     * around a vertical axis in the middle of its width, the other content is
22729     * shown as the other side of the flip.
22730     * @li ELM_FLIP_ROTATE_XZ_CENTER_AXIS - Rotate the currently visible content
22731     * around a diagonal axis in the middle of its width, the other content is
22732     * shown as the other side of the flip.
22733     * @li ELM_FLIP_ROTATE_YZ_CENTER_AXIS - Rotate the currently visible content
22734     * around a diagonal axis in the middle of its height, the other content is
22735     * shown as the other side of the flip.
22736     * @li ELM_FLIP_CUBE_LEFT - Rotate the currently visible content to the left
22737     * as if the flip was a cube, the other content is show as the right face of
22738     * the cube.
22739     * @li ELM_FLIP_CUBE_RIGHT - Rotate the currently visible content to the
22740     * right as if the flip was a cube, the other content is show as the left
22741     * face of the cube.
22742     * @li ELM_FLIP_CUBE_UP - Rotate the currently visible content up as if the
22743     * flip was a cube, the other content is show as the bottom face of the cube.
22744     * @li ELM_FLIP_CUBE_DOWN - Rotate the currently visible content down as if
22745     * the flip was a cube, the other content is show as the upper face of the
22746     * cube.
22747     * @li ELM_FLIP_PAGE_LEFT - Move the currently visible content to the left as
22748     * if the flip was a book, the other content is shown as the page below that.
22749     * @li ELM_FLIP_PAGE_RIGHT - Move the currently visible content to the right
22750     * as if the flip was a book, the other content is shown as the page below
22751     * that.
22752     * @li ELM_FLIP_PAGE_UP - Move the currently visible content up as if the
22753     * flip was a book, the other content is shown as the page below that.
22754     * @li ELM_FLIP_PAGE_DOWN - Move the currently visible content down as if the
22755     * flip was a book, the other content is shown as the page below that.
22756     *
22757     * @image html elm_flip.png
22758     * @image latex elm_flip.eps width=\textwidth
22759     */
22760    EAPI void         elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode) EINA_ARG_NONNULL(1);
22761    /**
22762     * @brief Set the interactive flip mode
22763     *
22764     * @param obj The flip object
22765     * @param mode The interactive flip mode to use
22766     *
22767     * This sets if the flip should be interactive (allow user to click and
22768     * drag a side of the flip to reveal the back page and cause it to flip).
22769     * By default a flip is not interactive. You may also need to set which
22770     * sides of the flip are "active" for flipping and how much space they use
22771     * (a minimum of a finger size) with elm_flip_interacton_direction_enabled_set()
22772     * and elm_flip_interacton_direction_hitsize_set()
22773     *
22774     * The four avilable mode of interaction are:
22775     * @li ELM_FLIP_INTERACTION_NONE - No interaction is allowed
22776     * @li ELM_FLIP_INTERACTION_ROTATE - Interaction will cause rotate animation
22777     * @li ELM_FLIP_INTERACTION_CUBE - Interaction will cause cube animation
22778     * @li ELM_FLIP_INTERACTION_PAGE - Interaction will cause page animation
22779     *
22780     * @note ELM_FLIP_INTERACTION_ROTATE won't cause
22781     * ELM_FLIP_ROTATE_XZ_CENTER_AXIS or ELM_FLIP_ROTATE_YZ_CENTER_AXIS to
22782     * happen, those can only be acheived with elm_flip_go();
22783     */
22784    EAPI void         elm_flip_interaction_set(Evas_Object *obj, Elm_Flip_Interaction mode);
22785    /**
22786     * @brief Get the interactive flip mode
22787     *
22788     * @param obj The flip object
22789     * @return The interactive flip mode
22790     *
22791     * Returns the interactive flip mode set by elm_flip_interaction_set()
22792     */
22793    EAPI Elm_Flip_Interaction elm_flip_interaction_get(const Evas_Object *obj);
22794    /**
22795     * @brief Set which directions of the flip respond to interactive flip
22796     *
22797     * @param obj The flip object
22798     * @param dir The direction to change
22799     * @param enabled If that direction is enabled or not
22800     *
22801     * By default all directions are disabled, so you may want to enable the
22802     * desired directions for flipping if you need interactive flipping. You must
22803     * call this function once for each direction that should be enabled.
22804     *
22805     * @see elm_flip_interaction_set()
22806     */
22807    EAPI void         elm_flip_interacton_direction_enabled_set(Evas_Object *obj, Elm_Flip_Direction dir, Eina_Bool enabled);
22808    /**
22809     * @brief Get the enabled state of that flip direction
22810     *
22811     * @param obj The flip object
22812     * @param dir The direction to check
22813     * @return If that direction is enabled or not
22814     *
22815     * Gets the enabled state set by elm_flip_interacton_direction_enabled_set()
22816     *
22817     * @see elm_flip_interaction_set()
22818     */
22819    EAPI Eina_Bool    elm_flip_interacton_direction_enabled_get(Evas_Object *obj, Elm_Flip_Direction dir);
22820    /**
22821     * @brief Set the amount of the flip that is sensitive to interactive flip
22822     *
22823     * @param obj The flip object
22824     * @param dir The direction to modify
22825     * @param hitsize The amount of that dimension (0.0 to 1.0) to use
22826     *
22827     * Set the amount of the flip that is sensitive to interactive flip, with 0
22828     * representing no area in the flip and 1 representing the entire flip. There
22829     * is however a consideration to be made in that the area will never be
22830     * smaller than the finger size set(as set in your Elementary configuration).
22831     *
22832     * @see elm_flip_interaction_set()
22833     */
22834    EAPI void         elm_flip_interacton_direction_hitsize_set(Evas_Object *obj, Elm_Flip_Direction dir, double hitsize);
22835    /**
22836     * @brief Get the amount of the flip that is sensitive to interactive flip
22837     *
22838     * @param obj The flip object
22839     * @param dir The direction to check
22840     * @return The size set for that direction
22841     *
22842     * Returns the amount os sensitive area set by
22843     * elm_flip_interacton_direction_hitsize_set().
22844     */
22845    EAPI double       elm_flip_interacton_direction_hitsize_get(Evas_Object *obj, Elm_Flip_Direction dir);
22846    /**
22847     * @}
22848     */
22849
22850    /* scrolledentry */
22851    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22852    EINA_DEPRECATED EAPI void         elm_scrolled_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line) EINA_ARG_NONNULL(1);
22853    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_single_line_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22854    EINA_DEPRECATED EAPI void         elm_scrolled_entry_password_set(Evas_Object *obj, Eina_Bool password) EINA_ARG_NONNULL(1);
22855    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_password_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22856    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_set(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
22857    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_entry_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22858    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_append(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
22859    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_is_empty(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22860    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22861    EINA_DEPRECATED EAPI void         elm_scrolled_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
22862    EINA_DEPRECATED EAPI void         elm_scrolled_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
22863    EINA_DEPRECATED EAPI void         elm_scrolled_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
22864    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22865    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
22866    EINA_DEPRECATED EAPI void         elm_scrolled_entry_select_all(Evas_Object *obj) EINA_ARG_NONNULL(1);
22867    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
22868    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
22869    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_up(Evas_Object *obj) EINA_ARG_NONNULL(1);
22870    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_down(Evas_Object *obj) EINA_ARG_NONNULL(1);
22871    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
22872    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
22873    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_begin_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
22874    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_line_end_set(Evas_Object *obj) EINA_ARG_NONNULL(1);
22875    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_begin(Evas_Object *obj) EINA_ARG_NONNULL(1);
22876    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_selection_end(Evas_Object *obj) EINA_ARG_NONNULL(1);
22877    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22878    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cursor_is_visible_format_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22879    EINA_DEPRECATED EAPI const char  *elm_scrolled_entry_cursor_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22880    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cursor_pos_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
22881    EINA_DEPRECATED EAPI int          elm_scrolled_entry_cursor_pos_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22882    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_cut(Evas_Object *obj) EINA_ARG_NONNULL(1);
22883    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_copy(Evas_Object *obj) EINA_ARG_NONNULL(1);
22884    EINA_DEPRECATED EAPI void         elm_scrolled_entry_selection_paste(Evas_Object *obj) EINA_ARG_NONNULL(1);
22885    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
22886    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);
22887    EINA_DEPRECATED EAPI void         elm_scrolled_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
22888    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_context_menu_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22889    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);
22890    EINA_DEPRECATED EAPI void         elm_scrolled_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
22891    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);
22892    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1, 2);
22893    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22894    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22895    EINA_DEPRECATED EAPI void         elm_scrolled_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
22896    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_set(Evas_Object *obj, Evas_Object *end) EINA_ARG_NONNULL(1, 2);
22897    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22898    EINA_DEPRECATED EAPI Evas_Object *elm_scrolled_entry_end_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
22899    EINA_DEPRECATED EAPI void         elm_scrolled_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting) EINA_ARG_NONNULL(1);
22900    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);
22901    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);
22902    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);
22903    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);
22904    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);
22905    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);
22906    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format) EINA_ARG_NONNULL(1);
22907    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format) EINA_ARG_NONNULL(1);
22908    EINA_DEPRECATED EAPI void         elm_scrolled_entry_file_save(Evas_Object *obj) EINA_ARG_NONNULL(1);
22909    EINA_DEPRECATED EAPI void         elm_scrolled_entry_autosave_set(Evas_Object *obj, Eina_Bool autosave) EINA_ARG_NONNULL(1);
22910    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_autosave_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22911    EINA_DEPRECATED EAPI void         elm_scrolled_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly) EINA_ARG_NONNULL(1);
22912    EINA_DEPRECATED EAPI Eina_Bool    elm_scrolled_entry_cnp_textonly_get(Evas_Object *obj) EINA_ARG_NONNULL(1);
22913
22914    /**
22915     * @defgroup Conformant Conformant
22916     * @ingroup Elementary
22917     *
22918     * @image html img/widget/conformant/preview-00.png
22919     * @image latex img/widget/conformant/preview-00.eps width=\textwidth
22920     *
22921     * @image html img/conformant.png
22922     * @image latex img/conformant.eps width=\textwidth
22923     *
22924     * The aim is to provide a widget that can be used in elementary apps to
22925     * account for space taken up by the indicator, virtual keypad & softkey
22926     * windows when running the illume2 module of E17.
22927     *
22928     * So conformant content will be sized and positioned considering the
22929     * space required for such stuff, and when they popup, as a keyboard
22930     * shows when an entry is selected, conformant content won't change.
22931     *
22932     * Available styles for it:
22933     * - @c "default"
22934     *
22935     * See how to use this widget in this example:
22936     * @ref conformant_example
22937     */
22938
22939    /**
22940     * @addtogroup Conformant
22941     * @{
22942     */
22943
22944    /**
22945     * Add a new conformant widget to the given parent Elementary
22946     * (container) object.
22947     *
22948     * @param parent The parent object.
22949     * @return A new conformant widget handle or @c NULL, on errors.
22950     *
22951     * This function inserts a new conformant widget on the canvas.
22952     *
22953     * @ingroup Conformant
22954     */
22955    EAPI Evas_Object *elm_conformant_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
22956
22957    /**
22958     * Set the content of the conformant widget.
22959     *
22960     * @param obj The conformant object.
22961     * @param content The content to be displayed by the conformant.
22962     *
22963     * Content will be sized and positioned considering the space required
22964     * to display a virtual keyboard. So it won't fill all the conformant
22965     * size. This way is possible to be sure that content won't resize
22966     * or be re-positioned after the keyboard is displayed.
22967     *
22968     * Once the content object is set, a previously set one will be deleted.
22969     * If you want to keep that old content object, use the
22970     * elm_conformat_content_unset() function.
22971     *
22972     * @see elm_conformant_content_unset()
22973     * @see elm_conformant_content_get()
22974     *
22975     * @ingroup Conformant
22976     */
22977    EAPI void         elm_conformant_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
22978
22979    /**
22980     * Get the content of the conformant widget.
22981     *
22982     * @param obj The conformant object.
22983     * @return The content that is being used.
22984     *
22985     * Return the content object which is set for this widget.
22986     * It won't be unparent from conformant. For that, use
22987     * elm_conformant_content_unset().
22988     *
22989     * @see elm_conformant_content_set() for more details.
22990     * @see elm_conformant_content_unset()
22991     *
22992     * @ingroup Conformant
22993     */
22994    EAPI Evas_Object *elm_conformant_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
22995
22996    /**
22997     * Unset the content of the conformant widget.
22998     *
22999     * @param obj The conformant object.
23000     * @return The content that was being used.
23001     *
23002     * Unparent and return the content object which was set for this widget.
23003     *
23004     * @see elm_conformant_content_set() for more details.
23005     *
23006     * @ingroup Conformant
23007     */
23008    EAPI Evas_Object *elm_conformant_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
23009
23010    /**
23011     * Returns the Evas_Object that represents the content area.
23012     *
23013     * @param obj The conformant object.
23014     * @return The content area of the widget.
23015     *
23016     * @ingroup Conformant
23017     */
23018    EAPI Evas_Object *elm_conformant_content_area_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23019
23020    /**
23021     * @}
23022     */
23023
23024    /**
23025     * @defgroup Mapbuf Mapbuf
23026     * @ingroup Elementary
23027     *
23028     * @image html img/widget/mapbuf/preview-00.png
23029     * @image latex img/widget/mapbuf/preview-00.eps width=\textwidth
23030     *
23031     * This holds one content object and uses an Evas Map of transformation
23032     * points to be later used with this content. So the content will be
23033     * moved, resized, etc as a single image. So it will improve performance
23034     * when you have a complex interafce, with a lot of elements, and will
23035     * need to resize or move it frequently (the content object and its
23036     * children).
23037     *
23038     * See how to use this widget in this example:
23039     * @ref mapbuf_example
23040     */
23041
23042    /**
23043     * @addtogroup Mapbuf
23044     * @{
23045     */
23046
23047    /**
23048     * Add a new mapbuf widget to the given parent Elementary
23049     * (container) object.
23050     *
23051     * @param parent The parent object.
23052     * @return A new mapbuf widget handle or @c NULL, on errors.
23053     *
23054     * This function inserts a new mapbuf widget on the canvas.
23055     *
23056     * @ingroup Mapbuf
23057     */
23058    EAPI Evas_Object *elm_mapbuf_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23059
23060    /**
23061     * Set the content of the mapbuf.
23062     *
23063     * @param obj The mapbuf object.
23064     * @param content The content that will be filled in this mapbuf object.
23065     *
23066     * Once the content object is set, a previously set one will be deleted.
23067     * If you want to keep that old content object, use the
23068     * elm_mapbuf_content_unset() function.
23069     *
23070     * To enable map, elm_mapbuf_enabled_set() should be used.
23071     *
23072     * @ingroup Mapbuf
23073     */
23074    EAPI void         elm_mapbuf_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
23075
23076    /**
23077     * Get the content of the mapbuf.
23078     *
23079     * @param obj The mapbuf object.
23080     * @return The content that is being used.
23081     *
23082     * Return the content object which is set for this widget.
23083     *
23084     * @see elm_mapbuf_content_set() for details.
23085     *
23086     * @ingroup Mapbuf
23087     */
23088    EAPI Evas_Object *elm_mapbuf_content_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23089
23090    /**
23091     * Unset the content of the mapbuf.
23092     *
23093     * @param obj The mapbuf object.
23094     * @return The content that was being used.
23095     *
23096     * Unparent and return the content object which was set for this widget.
23097     *
23098     * @see elm_mapbuf_content_set() for details.
23099     *
23100     * @ingroup Mapbuf
23101     */
23102    EAPI Evas_Object *elm_mapbuf_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
23103
23104    /**
23105     * Enable or disable the map.
23106     *
23107     * @param obj The mapbuf object.
23108     * @param enabled @c EINA_TRUE to enable map or @c EINA_FALSE to disable it.
23109     *
23110     * This enables the map that is set or disables it. On enable, the object
23111     * geometry will be saved, and the new geometry will change (position and
23112     * size) to reflect the map geometry set.
23113     *
23114     * Also, when enabled, alpha and smooth states will be used, so if the
23115     * content isn't solid, alpha should be enabled, for example, otherwise
23116     * a black retangle will fill the content.
23117     *
23118     * When disabled, the stored map will be freed and geometry prior to
23119     * enabling the map will be restored.
23120     *
23121     * It's disabled by default.
23122     *
23123     * @see elm_mapbuf_alpha_set()
23124     * @see elm_mapbuf_smooth_set()
23125     *
23126     * @ingroup Mapbuf
23127     */
23128    EAPI void         elm_mapbuf_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
23129
23130    /**
23131     * Get a value whether map is enabled or not.
23132     *
23133     * @param obj The mapbuf object.
23134     * @return @c EINA_TRUE means map is enabled. @c EINA_FALSE indicates
23135     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
23136     *
23137     * @see elm_mapbuf_enabled_set() for details.
23138     *
23139     * @ingroup Mapbuf
23140     */
23141    EAPI Eina_Bool    elm_mapbuf_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23142
23143    /**
23144     * Enable or disable smooth map rendering.
23145     *
23146     * @param obj The mapbuf object.
23147     * @param smooth @c EINA_TRUE to enable smooth map rendering or @c EINA_FALSE
23148     * to disable it.
23149     *
23150     * This sets smoothing for map rendering. If the object is a type that has
23151     * its own smoothing settings, then both the smooth settings for this object
23152     * and the map must be turned off.
23153     *
23154     * By default smooth maps are enabled.
23155     *
23156     * @ingroup Mapbuf
23157     */
23158    EAPI void         elm_mapbuf_smooth_set(Evas_Object *obj, Eina_Bool smooth) EINA_ARG_NONNULL(1);
23159
23160    /**
23161     * Get a value whether smooth map rendering is enabled or not.
23162     *
23163     * @param obj The mapbuf object.
23164     * @return @c EINA_TRUE means smooth map rendering is enabled. @c EINA_FALSE
23165     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
23166     *
23167     * @see elm_mapbuf_smooth_set() for details.
23168     *
23169     * @ingroup Mapbuf
23170     */
23171    EAPI Eina_Bool    elm_mapbuf_smooth_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23172
23173    /**
23174     * Set or unset alpha flag for map rendering.
23175     *
23176     * @param obj The mapbuf object.
23177     * @param alpha @c EINA_TRUE to enable alpha blending or @c EINA_FALSE
23178     * to disable it.
23179     *
23180     * This sets alpha flag for map rendering. If the object is a type that has
23181     * its own alpha settings, then this will take precedence. Only image objects
23182     * have this currently. It stops alpha blending of the map area, and is
23183     * useful if you know the object and/or all sub-objects is 100% solid.
23184     *
23185     * Alpha is enabled by default.
23186     *
23187     * @ingroup Mapbuf
23188     */
23189    EAPI void         elm_mapbuf_alpha_set(Evas_Object *obj, Eina_Bool alpha) EINA_ARG_NONNULL(1);
23190
23191    /**
23192     * Get a value whether alpha blending is enabled or not.
23193     *
23194     * @param obj The mapbuf object.
23195     * @return @c EINA_TRUE means alpha blending is enabled. @c EINA_FALSE
23196     * indicates it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
23197     *
23198     * @see elm_mapbuf_alpha_set() for details.
23199     *
23200     * @ingroup Mapbuf
23201     */
23202    EAPI Eina_Bool    elm_mapbuf_alpha_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23203
23204    /**
23205     * @}
23206     */
23207
23208    /**
23209     * @defgroup Flipselector Flip Selector
23210     *
23211     * @image html img/widget/flipselector/preview-00.png
23212     * @image latex img/widget/flipselector/preview-00.eps
23213     *
23214     * A flip selector is a widget to show a set of @b text items, one
23215     * at a time, with the same sheet switching style as the @ref Clock
23216     * "clock" widget, when one changes the current displaying sheet
23217     * (thus, the "flip" in the name).
23218     *
23219     * User clicks to flip sheets which are @b held for some time will
23220     * make the flip selector to flip continuosly and automatically for
23221     * the user. The interval between flips will keep growing in time,
23222     * so that it helps the user to reach an item which is distant from
23223     * the current selection.
23224     *
23225     * Smart callbacks one can register to:
23226     * - @c "selected" - when the widget's selected text item is changed
23227     * - @c "overflowed" - when the widget's current selection is changed
23228     *   from the first item in its list to the last
23229     * - @c "underflowed" - when the widget's current selection is changed
23230     *   from the last item in its list to the first
23231     *
23232     * Available styles for it:
23233     * - @c "default"
23234     *
23235     * Here is an example on its usage:
23236     * @li @ref flipselector_example
23237     */
23238
23239    /**
23240     * @addtogroup Flipselector
23241     * @{
23242     */
23243
23244    typedef struct _Elm_Flipselector_Item Elm_Flipselector_Item; /**< Item handle for a flip selector widget. */
23245
23246    /**
23247     * Add a new flip selector widget to the given parent Elementary
23248     * (container) widget
23249     *
23250     * @param parent The parent object
23251     * @return a new flip selector widget handle or @c NULL, on errors
23252     *
23253     * This function inserts a new flip selector widget on the canvas.
23254     *
23255     * @ingroup Flipselector
23256     */
23257    EAPI Evas_Object               *elm_flipselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23258
23259    /**
23260     * Programmatically select the next item of a flip selector widget
23261     *
23262     * @param obj The flipselector object
23263     *
23264     * @note The selection will be animated. Also, if it reaches the
23265     * end of its list of member items, it will continue with the first
23266     * one onwards.
23267     *
23268     * @ingroup Flipselector
23269     */
23270    EAPI void                       elm_flipselector_flip_next(Evas_Object *obj) EINA_ARG_NONNULL(1);
23271
23272    /**
23273     * Programmatically select the previous item of a flip selector
23274     * widget
23275     *
23276     * @param obj The flipselector object
23277     *
23278     * @note The selection will be animated.  Also, if it reaches the
23279     * beginning of its list of member items, it will continue with the
23280     * last one backwards.
23281     *
23282     * @ingroup Flipselector
23283     */
23284    EAPI void                       elm_flipselector_flip_prev(Evas_Object *obj) EINA_ARG_NONNULL(1);
23285
23286    /**
23287     * Append a (text) item to a flip selector widget
23288     *
23289     * @param obj The flipselector object
23290     * @param label The (text) label of the new item
23291     * @param func Convenience callback function to take place when
23292     * item is selected
23293     * @param data Data passed to @p func, above
23294     * @return A handle to the item added or @c NULL, on errors
23295     *
23296     * The widget's list of labels to show will be appended with the
23297     * given value. If the user wishes so, a callback function pointer
23298     * can be passed, which will get called when this same item is
23299     * selected.
23300     *
23301     * @note The current selection @b won't be modified by appending an
23302     * element to the list.
23303     *
23304     * @note The maximum length of the text label is going to be
23305     * determined <b>by the widget's theme</b>. Strings larger than
23306     * that value are going to be @b truncated.
23307     *
23308     * @ingroup Flipselector
23309     */
23310    EAPI Elm_Flipselector_Item     *elm_flipselector_item_append(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
23311
23312    /**
23313     * Prepend a (text) item to a flip selector widget
23314     *
23315     * @param obj The flipselector object
23316     * @param label The (text) label of the new item
23317     * @param func Convenience callback function to take place when
23318     * item is selected
23319     * @param data Data passed to @p func, above
23320     * @return A handle to the item added or @c NULL, on errors
23321     *
23322     * The widget's list of labels to show will be prepended with the
23323     * given value. If the user wishes so, a callback function pointer
23324     * can be passed, which will get called when this same item is
23325     * selected.
23326     *
23327     * @note The current selection @b won't be modified by prepending
23328     * an element to the list.
23329     *
23330     * @note The maximum length of the text label is going to be
23331     * determined <b>by the widget's theme</b>. Strings larger than
23332     * that value are going to be @b truncated.
23333     *
23334     * @ingroup Flipselector
23335     */
23336    EAPI Elm_Flipselector_Item     *elm_flipselector_item_prepend(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data) EINA_ARG_NONNULL(1);
23337
23338    /**
23339     * Get the internal list of items in a given flip selector widget.
23340     *
23341     * @param obj The flipselector object
23342     * @return The list of items (#Elm_Flipselector_Item as data) or
23343     * @c NULL on errors.
23344     *
23345     * This list is @b not to be modified in any way and must not be
23346     * freed. Use the list members with functions like
23347     * elm_flipselector_item_label_set(),
23348     * elm_flipselector_item_label_get(),
23349     * elm_flipselector_item_del(),
23350     * elm_flipselector_item_selected_get(),
23351     * elm_flipselector_item_selected_set().
23352     *
23353     * @warning This list is only valid until @p obj object's internal
23354     * items list is changed. It should be fetched again with another
23355     * call to this function when changes happen.
23356     *
23357     * @ingroup Flipselector
23358     */
23359    EAPI const Eina_List           *elm_flipselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23360
23361    /**
23362     * Get the first item in the given flip selector widget's list of
23363     * items.
23364     *
23365     * @param obj The flipselector object
23366     * @return The first item or @c NULL, if it has no items (and on
23367     * errors)
23368     *
23369     * @see elm_flipselector_item_append()
23370     * @see elm_flipselector_last_item_get()
23371     *
23372     * @ingroup Flipselector
23373     */
23374    EAPI Elm_Flipselector_Item     *elm_flipselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23375
23376    /**
23377     * Get the last item in the given flip selector widget's list of
23378     * items.
23379     *
23380     * @param obj The flipselector object
23381     * @return The last item or @c NULL, if it has no items (and on
23382     * errors)
23383     *
23384     * @see elm_flipselector_item_prepend()
23385     * @see elm_flipselector_first_item_get()
23386     *
23387     * @ingroup Flipselector
23388     */
23389    EAPI Elm_Flipselector_Item     *elm_flipselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23390
23391    /**
23392     * Get the currently selected item in a flip selector widget.
23393     *
23394     * @param obj The flipselector object
23395     * @return The selected item or @c NULL, if the widget has no items
23396     * (and on erros)
23397     *
23398     * @ingroup Flipselector
23399     */
23400    EAPI Elm_Flipselector_Item     *elm_flipselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23401
23402    /**
23403     * Set whether a given flip selector widget's item should be the
23404     * currently selected one.
23405     *
23406     * @param item The flip selector item
23407     * @param selected @c EINA_TRUE to select it, @c EINA_FALSE to unselect.
23408     *
23409     * This sets whether @p item is or not the selected (thus, under
23410     * display) one. If @p item is different than one under display,
23411     * the latter will be unselected. If the @p item is set to be
23412     * unselected, on the other hand, the @b first item in the widget's
23413     * internal members list will be the new selected one.
23414     *
23415     * @see elm_flipselector_item_selected_get()
23416     *
23417     * @ingroup Flipselector
23418     */
23419    EAPI void                       elm_flipselector_item_selected_set(Elm_Flipselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
23420
23421    /**
23422     * Get whether a given flip selector widget's item is the currently
23423     * selected one.
23424     *
23425     * @param item The flip selector item
23426     * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
23427     * (or on errors).
23428     *
23429     * @see elm_flipselector_item_selected_set()
23430     *
23431     * @ingroup Flipselector
23432     */
23433    EAPI Eina_Bool                  elm_flipselector_item_selected_get(const Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23434
23435    /**
23436     * Delete a given item from a flip selector widget.
23437     *
23438     * @param item The item to delete
23439     *
23440     * @ingroup Flipselector
23441     */
23442    EAPI void                       elm_flipselector_item_del(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23443
23444    /**
23445     * Get the label of a given flip selector widget's item.
23446     *
23447     * @param item The item to get label from
23448     * @return The text label of @p item or @c NULL, on errors
23449     *
23450     * @see elm_flipselector_item_label_set()
23451     *
23452     * @ingroup Flipselector
23453     */
23454    EAPI const char                *elm_flipselector_item_label_get(const Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23455
23456    /**
23457     * Set the label of a given flip selector widget's item.
23458     *
23459     * @param item The item to set label on
23460     * @param label The text label string, in UTF-8 encoding
23461     *
23462     * @see elm_flipselector_item_label_get()
23463     *
23464     * @ingroup Flipselector
23465     */
23466    EAPI void                       elm_flipselector_item_label_set(Elm_Flipselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
23467
23468    /**
23469     * Gets the item before @p item in a flip selector widget's
23470     * internal list of items.
23471     *
23472     * @param item The item to fetch previous from
23473     * @return The item before the @p item, in its parent's list. If
23474     *         there is no previous item for @p item or there's an
23475     *         error, @c NULL is returned.
23476     *
23477     * @see elm_flipselector_item_next_get()
23478     *
23479     * @ingroup Flipselector
23480     */
23481    EAPI Elm_Flipselector_Item     *elm_flipselector_item_prev_get(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23482
23483    /**
23484     * Gets the item after @p item in a flip selector widget's
23485     * internal list of items.
23486     *
23487     * @param item The item to fetch next from
23488     * @return The item after the @p item, in its parent's list. If
23489     *         there is no next item for @p item or there's an
23490     *         error, @c NULL is returned.
23491     *
23492     * @see elm_flipselector_item_next_get()
23493     *
23494     * @ingroup Flipselector
23495     */
23496    EAPI Elm_Flipselector_Item     *elm_flipselector_item_next_get(Elm_Flipselector_Item *item) EINA_ARG_NONNULL(1);
23497
23498    /**
23499     * Set the interval on time updates for an user mouse button hold
23500     * on a flip selector widget.
23501     *
23502     * @param obj The flip selector object
23503     * @param interval The (first) interval value in seconds
23504     *
23505     * This interval value is @b decreased while the user holds the
23506     * mouse pointer either flipping up or flipping doww a given flip
23507     * selector.
23508     *
23509     * This helps the user to get to a given item distant from the
23510     * current one easier/faster, as it will start to flip quicker and
23511     * quicker on mouse button holds.
23512     *
23513     * The calculation for the next flip interval value, starting from
23514     * the one set with this call, is the previous interval divided by
23515     * 1.05, so it decreases a little bit.
23516     *
23517     * The default starting interval value for automatic flips is
23518     * @b 0.85 seconds.
23519     *
23520     * @see elm_flipselector_interval_get()
23521     *
23522     * @ingroup Flipselector
23523     */
23524    EAPI void                       elm_flipselector_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
23525
23526    /**
23527     * Get the interval on time updates for an user mouse button hold
23528     * on a flip selector widget.
23529     *
23530     * @param obj The flip selector object
23531     * @return The (first) interval value, in seconds, set on it
23532     *
23533     * @see elm_flipselector_interval_set() for more details
23534     *
23535     * @ingroup Flipselector
23536     */
23537    EAPI double                     elm_flipselector_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23538    /**
23539     * @}
23540     */
23541
23542    /**
23543     * @addtogroup Calendar
23544     * @{
23545     */
23546
23547    /**
23548     * @enum _Elm_Calendar_Mark_Repeat
23549     * @typedef Elm_Calendar_Mark_Repeat
23550     *
23551     * Event periodicity, used to define if a mark should be repeated
23552     * @b beyond event's day. It's set when a mark is added.
23553     *
23554     * So, for a mark added to 13th May with periodicity set to WEEKLY,
23555     * there will be marks every week after this date. Marks will be displayed
23556     * at 13th, 20th, 27th, 3rd June ...
23557     *
23558     * Values don't work as bitmask, only one can be choosen.
23559     *
23560     * @see elm_calendar_mark_add()
23561     *
23562     * @ingroup Calendar
23563     */
23564    typedef enum _Elm_Calendar_Mark_Repeat
23565      {
23566         ELM_CALENDAR_UNIQUE, /**< Default value. Marks will be displayed only on event day. */
23567         ELM_CALENDAR_DAILY, /**< Marks will be displayed everyday after event day (inclusive). */
23568         ELM_CALENDAR_WEEKLY, /**< Marks will be displayed every week after event day (inclusive) - i.e. each seven days. */
23569         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*/
23570         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. */
23571      } Elm_Calendar_Mark_Repeat;
23572
23573    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(). */
23574
23575    /**
23576     * Add a new calendar widget to the given parent Elementary
23577     * (container) object.
23578     *
23579     * @param parent The parent object.
23580     * @return a new calendar widget handle or @c NULL, on errors.
23581     *
23582     * This function inserts a new calendar widget on the canvas.
23583     *
23584     * @ref calendar_example_01
23585     *
23586     * @ingroup Calendar
23587     */
23588    EAPI Evas_Object       *elm_calendar_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
23589
23590    /**
23591     * Get weekdays names displayed by the calendar.
23592     *
23593     * @param obj The calendar object.
23594     * @return Array of seven strings to be used as weekday names.
23595     *
23596     * By default, weekdays abbreviations get from system are displayed:
23597     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
23598     * The first string is related to Sunday, the second to Monday...
23599     *
23600     * @see elm_calendar_weekdays_name_set()
23601     *
23602     * @ref calendar_example_05
23603     *
23604     * @ingroup Calendar
23605     */
23606    EAPI const char       **elm_calendar_weekdays_names_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23607
23608    /**
23609     * Set weekdays names to be displayed by the calendar.
23610     *
23611     * @param obj The calendar object.
23612     * @param weekdays Array of seven strings to be used as weekday names.
23613     * @warning It must have 7 elements, or it will access invalid memory.
23614     * @warning The strings must be NULL terminated ('@\0').
23615     *
23616     * By default, weekdays abbreviations get from system are displayed:
23617     * E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
23618     *
23619     * The first string should be related to Sunday, the second to Monday...
23620     *
23621     * The usage should be like this:
23622     * @code
23623     *   const char *weekdays[] =
23624     *   {
23625     *      "Sunday", "Monday", "Tuesday", "Wednesday",
23626     *      "Thursday", "Friday", "Saturday"
23627     *   };
23628     *   elm_calendar_weekdays_names_set(calendar, weekdays);
23629     * @endcode
23630     *
23631     * @see elm_calendar_weekdays_name_get()
23632     *
23633     * @ref calendar_example_02
23634     *
23635     * @ingroup Calendar
23636     */
23637    EAPI void               elm_calendar_weekdays_names_set(Evas_Object *obj, const char *weekdays[]) EINA_ARG_NONNULL(1, 2);
23638
23639    /**
23640     * Set the minimum and maximum values for the year
23641     *
23642     * @param obj The calendar object
23643     * @param min The minimum year, greater than 1901;
23644     * @param max The maximum year;
23645     *
23646     * Maximum must be greater than minimum, except if you don't wan't to set
23647     * maximum year.
23648     * Default values are 1902 and -1.
23649     *
23650     * If the maximum year is a negative value, it will be limited depending
23651     * on the platform architecture (year 2037 for 32 bits);
23652     *
23653     * @see elm_calendar_min_max_year_get()
23654     *
23655     * @ref calendar_example_03
23656     *
23657     * @ingroup Calendar
23658     */
23659    EAPI void               elm_calendar_min_max_year_set(Evas_Object *obj, int min, int max) EINA_ARG_NONNULL(1);
23660
23661    /**
23662     * Get the minimum and maximum values for the year
23663     *
23664     * @param obj The calendar object.
23665     * @param min The minimum year.
23666     * @param max The maximum year.
23667     *
23668     * Default values are 1902 and -1.
23669     *
23670     * @see elm_calendar_min_max_year_get() for more details.
23671     *
23672     * @ref calendar_example_05
23673     *
23674     * @ingroup Calendar
23675     */
23676    EAPI void               elm_calendar_min_max_year_get(const Evas_Object *obj, int *min, int *max) EINA_ARG_NONNULL(1);
23677
23678    /**
23679     * Enable or disable day selection
23680     *
23681     * @param obj The calendar object.
23682     * @param enabled @c EINA_TRUE to enable selection or @c EINA_FALSE to
23683     * disable it.
23684     *
23685     * Enabled by default. If disabled, the user still can select months,
23686     * but not days. Selected days are highlighted on calendar.
23687     * It should be used if you won't need such selection for the widget usage.
23688     *
23689     * When a day is selected, or month is changed, smart callbacks for
23690     * signal "changed" will be called.
23691     *
23692     * @see elm_calendar_day_selection_enable_get()
23693     *
23694     * @ref calendar_example_04
23695     *
23696     * @ingroup Calendar
23697     */
23698    EAPI void               elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled) EINA_ARG_NONNULL(1);
23699
23700    /**
23701     * Get a value whether day selection is enabled or not.
23702     *
23703     * @see elm_calendar_day_selection_enable_set() for details.
23704     *
23705     * @param obj The calendar object.
23706     * @return EINA_TRUE means day selection is enabled. EINA_FALSE indicates
23707     * it's disabled. If @p obj is NULL, EINA_FALSE is returned.
23708     *
23709     * @ref calendar_example_05
23710     *
23711     * @ingroup Calendar
23712     */
23713    EAPI Eina_Bool          elm_calendar_day_selection_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23714
23715
23716    /**
23717     * Set selected date to be highlighted on calendar.
23718     *
23719     * @param obj The calendar object.
23720     * @param selected_time A @b tm struct to represent the selected date.
23721     *
23722     * Set the selected date, changing the displayed month if needed.
23723     * Selected date changes when the user goes to next/previous month or
23724     * select a day pressing over it on calendar.
23725     *
23726     * @see elm_calendar_selected_time_get()
23727     *
23728     * @ref calendar_example_04
23729     *
23730     * @ingroup Calendar
23731     */
23732    EAPI void               elm_calendar_selected_time_set(Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1);
23733
23734    /**
23735     * Get selected date.
23736     *
23737     * @param obj The calendar object
23738     * @param selected_time A @b tm struct to point to selected date
23739     * @return EINA_FALSE means an error ocurred and returned time shouldn't
23740     * be considered.
23741     *
23742     * Get date selected by the user or set by function
23743     * elm_calendar_selected_time_set().
23744     * Selected date changes when the user goes to next/previous month or
23745     * select a day pressing over it on calendar.
23746     *
23747     * @see elm_calendar_selected_time_get()
23748     *
23749     * @ref calendar_example_05
23750     *
23751     * @ingroup Calendar
23752     */
23753    EAPI Eina_Bool          elm_calendar_selected_time_get(const Evas_Object *obj, struct tm *selected_time) EINA_ARG_NONNULL(1, 2);
23754
23755    /**
23756     * Set a function to format the string that will be used to display
23757     * month and year;
23758     *
23759     * @param obj The calendar object
23760     * @param format_function Function to set the month-year string given
23761     * the selected date
23762     *
23763     * By default it uses strftime with "%B %Y" format string.
23764     * It should allocate the memory that will be used by the string,
23765     * that will be freed by the widget after usage.
23766     * A pointer to the string and a pointer to the time struct will be provided.
23767     *
23768     * Example:
23769     * @code
23770     * static char *
23771     * _format_month_year(struct tm *selected_time)
23772     * {
23773     *    char buf[32];
23774     *    if (!strftime(buf, sizeof(buf), "%B %Y", selected_time)) return NULL;
23775     *    return strdup(buf);
23776     * }
23777     *
23778     * elm_calendar_format_function_set(calendar, _format_month_year);
23779     * @endcode
23780     *
23781     * @ref calendar_example_02
23782     *
23783     * @ingroup Calendar
23784     */
23785    EAPI void               elm_calendar_format_function_set(Evas_Object *obj, char * (*format_function) (struct tm *stime)) EINA_ARG_NONNULL(1);
23786
23787    /**
23788     * Add a new mark to the calendar
23789     *
23790     * @param obj The calendar object
23791     * @param mark_type A string used to define the type of mark. It will be
23792     * emitted to the theme, that should display a related modification on these
23793     * days representation.
23794     * @param mark_time A time struct to represent the date of inclusion of the
23795     * mark. For marks that repeats it will just be displayed after the inclusion
23796     * date in the calendar.
23797     * @param repeat Repeat the event following this periodicity. Can be a unique
23798     * mark (that don't repeat), daily, weekly, monthly or annually.
23799     * @return The created mark or @p NULL upon failure.
23800     *
23801     * Add a mark that will be drawn in the calendar respecting the insertion
23802     * time and periodicity. It will emit the type as signal to the widget theme.
23803     * Default theme supports "holiday" and "checked", but it can be extended.
23804     *
23805     * It won't immediately update the calendar, drawing the marks.
23806     * For this, call elm_calendar_marks_draw(). However, when user selects
23807     * next or previous month calendar forces marks drawn.
23808     *
23809     * Marks created with this method can be deleted with
23810     * elm_calendar_mark_del().
23811     *
23812     * Example
23813     * @code
23814     * struct tm selected_time;
23815     * time_t current_time;
23816     *
23817     * current_time = time(NULL) + 5 * 84600;
23818     * localtime_r(&current_time, &selected_time);
23819     * elm_calendar_mark_add(cal, "holiday", selected_time,
23820     *     ELM_CALENDAR_ANNUALLY);
23821     *
23822     * current_time = time(NULL) + 1 * 84600;
23823     * localtime_r(&current_time, &selected_time);
23824     * elm_calendar_mark_add(cal, "checked", selected_time, ELM_CALENDAR_UNIQUE);
23825     *
23826     * elm_calendar_marks_draw(cal);
23827     * @endcode
23828     *
23829     * @see elm_calendar_marks_draw()
23830     * @see elm_calendar_mark_del()
23831     *
23832     * @ref calendar_example_06
23833     *
23834     * @ingroup Calendar
23835     */
23836    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);
23837
23838    /**
23839     * Delete mark from the calendar.
23840     *
23841     * @param mark The mark to be deleted.
23842     *
23843     * If deleting all calendar marks is required, elm_calendar_marks_clear()
23844     * should be used instead of getting marks list and deleting each one.
23845     *
23846     * @see elm_calendar_mark_add()
23847     *
23848     * @ref calendar_example_06
23849     *
23850     * @ingroup Calendar
23851     */
23852    EAPI void               elm_calendar_mark_del(Elm_Calendar_Mark *mark) EINA_ARG_NONNULL(1);
23853
23854    /**
23855     * Remove all calendar's marks
23856     *
23857     * @param obj The calendar object.
23858     *
23859     * @see elm_calendar_mark_add()
23860     * @see elm_calendar_mark_del()
23861     *
23862     * @ingroup Calendar
23863     */
23864    EAPI void               elm_calendar_marks_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
23865
23866
23867    /**
23868     * Get a list of all the calendar marks.
23869     *
23870     * @param obj The calendar object.
23871     * @return An @c Eina_List of calendar marks objects, or @c NULL on failure.
23872     *
23873     * @see elm_calendar_mark_add()
23874     * @see elm_calendar_mark_del()
23875     * @see elm_calendar_marks_clear()
23876     *
23877     * @ingroup Calendar
23878     */
23879    EAPI const Eina_List   *elm_calendar_marks_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
23880
23881    /**
23882     * Draw calendar marks.
23883     *
23884     * @param obj The calendar object.
23885     *
23886     * Should be used after adding, removing or clearing marks.
23887     * It will go through the entire marks list updating the calendar.
23888     * If lots of marks will be added, add all the marks and then call
23889     * this function.
23890     *
23891     * When the month is changed, i.e. user selects next or previous month,
23892     * marks will be drawed.
23893     *
23894     * @see elm_calendar_mark_add()
23895     * @see elm_calendar_mark_del()
23896     * @see elm_calendar_marks_clear()
23897     *
23898     * @ref calendar_example_06
23899     *
23900     * @ingroup Calendar
23901     */
23902    EAPI void               elm_calendar_marks_draw(Evas_Object *obj) EINA_ARG_NONNULL(1);
23903
23904    /**
23905     * Set a day text color to the same that represents Saturdays.
23906     *
23907     * @param obj The calendar object.
23908     * @param pos The text position. Position is the cell counter, from left
23909     * to right, up to down. It starts on 0 and ends on 41.
23910     *
23911     * @deprecated use elm_calendar_mark_add() instead like:
23912     *
23913     * @code
23914     * struct tm t = { 0, 0, 12, 6, 0, 0, 6, 6, -1 };
23915     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
23916     * @endcode
23917     *
23918     * @see elm_calendar_mark_add()
23919     *
23920     * @ingroup Calendar
23921     */
23922    EINA_DEPRECATED EAPI void               elm_calendar_text_saturday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
23923
23924    /**
23925     * Set a day text color to the same that represents Sundays.
23926     *
23927     * @param obj The calendar object.
23928     * @param pos The text position. Position is the cell counter, from left
23929     * to right, up to down. It starts on 0 and ends on 41.
23930
23931     * @deprecated use elm_calendar_mark_add() instead like:
23932     *
23933     * @code
23934     * struct tm t = { 0, 0, 12, 7, 0, 0, 0, 0, -1 };
23935     * elm_calendar_mark_add(obj, "sat", &t, ELM_CALENDAR_WEEKLY);
23936     * @endcode
23937     *
23938     * @see elm_calendar_mark_add()
23939     *
23940     * @ingroup Calendar
23941     */
23942    EINA_DEPRECATED EAPI void               elm_calendar_text_sunday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
23943
23944    /**
23945     * Set a day text color to the same that represents Weekdays.
23946     *
23947     * @param obj The calendar object
23948     * @param pos The text position. Position is the cell counter, from left
23949     * to right, up to down. It starts on 0 and ends on 41.
23950     *
23951     * @deprecated use elm_calendar_mark_add() instead like:
23952     *
23953     * @code
23954     * struct tm t = { 0, 0, 12, 1, 0, 0, 0, 0, -1 };
23955     *
23956     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // monday
23957     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
23958     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // tuesday
23959     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
23960     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // wednesday
23961     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
23962     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // thursday
23963     * t.tm_tm_mday++; t.tm_wday++; t.tm_yday++;
23964     * elm_calendar_mark_add(obj, "week", &t, ELM_CALENDAR_WEEKLY); // friday
23965     * @endcode
23966     *
23967     * @see elm_calendar_mark_add()
23968     *
23969     * @ingroup Calendar
23970     */
23971    EINA_DEPRECATED EAPI void               elm_calendar_text_weekday_color_set(Evas_Object *obj, int pos) EINA_ARG_NONNULL(1);
23972
23973    /**
23974     * Set the interval on time updates for an user mouse button hold
23975     * on calendar widgets' month selection.
23976     *
23977     * @param obj The calendar object
23978     * @param interval The (first) interval value in seconds
23979     *
23980     * This interval value is @b decreased while the user holds the
23981     * mouse pointer either selecting next or previous month.
23982     *
23983     * This helps the user to get to a given month distant from the
23984     * current one easier/faster, as it will start to change quicker and
23985     * quicker on mouse button holds.
23986     *
23987     * The calculation for the next change interval value, starting from
23988     * the one set with this call, is the previous interval divided by
23989     * 1.05, so it decreases a little bit.
23990     *
23991     * The default starting interval value for automatic changes is
23992     * @b 0.85 seconds.
23993     *
23994     * @see elm_calendar_interval_get()
23995     *
23996     * @ingroup Calendar
23997     */
23998    EAPI void               elm_calendar_interval_set(Evas_Object *obj, double interval) EINA_ARG_NONNULL(1);
23999
24000    /**
24001     * Get the interval on time updates for an user mouse button hold
24002     * on calendar widgets' month selection.
24003     *
24004     * @param obj The calendar object
24005     * @return The (first) interval value, in seconds, set on it
24006     *
24007     * @see elm_calendar_interval_set() for more details
24008     *
24009     * @ingroup Calendar
24010     */
24011    EAPI double             elm_calendar_interval_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24012
24013    /**
24014     * @}
24015     */
24016
24017    /**
24018     * @defgroup Diskselector Diskselector
24019     * @ingroup Elementary
24020     *
24021     * @image html img/widget/diskselector/preview-00.png
24022     * @image latex img/widget/diskselector/preview-00.eps
24023     *
24024     * A diskselector is a kind of list widget. It scrolls horizontally,
24025     * and can contain label and icon objects. Three items are displayed
24026     * with the selected one in the middle.
24027     *
24028     * It can act like a circular list with round mode and labels can be
24029     * reduced for a defined length for side items.
24030     *
24031     * Smart callbacks one can listen to:
24032     * - "selected" - when item is selected, i.e. scroller stops.
24033     *
24034     * Available styles for it:
24035     * - @c "default"
24036     *
24037     * List of examples:
24038     * @li @ref diskselector_example_01
24039     * @li @ref diskselector_example_02
24040     */
24041
24042    /**
24043     * @addtogroup Diskselector
24044     * @{
24045     */
24046
24047    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(). */
24048
24049    /**
24050     * Add a new diskselector widget to the given parent Elementary
24051     * (container) object.
24052     *
24053     * @param parent The parent object.
24054     * @return a new diskselector widget handle or @c NULL, on errors.
24055     *
24056     * This function inserts a new diskselector widget on the canvas.
24057     *
24058     * @ingroup Diskselector
24059     */
24060    EAPI Evas_Object           *elm_diskselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24061
24062    /**
24063     * Enable or disable round mode.
24064     *
24065     * @param obj The diskselector object.
24066     * @param round @c EINA_TRUE to enable round mode or @c EINA_FALSE to
24067     * disable it.
24068     *
24069     * Disabled by default. If round mode is enabled the items list will
24070     * work like a circle list, so when the user reaches the last item,
24071     * the first one will popup.
24072     *
24073     * @see elm_diskselector_round_get()
24074     *
24075     * @ingroup Diskselector
24076     */
24077    EAPI void                   elm_diskselector_round_set(Evas_Object *obj, Eina_Bool round) EINA_ARG_NONNULL(1);
24078
24079    /**
24080     * Get a value whether round mode is enabled or not.
24081     *
24082     * @see elm_diskselector_round_set() for details.
24083     *
24084     * @param obj The diskselector object.
24085     * @return @c EINA_TRUE means round mode is enabled. @c EINA_FALSE indicates
24086     * it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
24087     *
24088     * @ingroup Diskselector
24089     */
24090    EAPI Eina_Bool              elm_diskselector_round_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24091
24092    /**
24093     * Get the side labels max length.
24094     *
24095     * @deprecated use elm_diskselector_side_label_length_get() instead:
24096     *
24097     * @param obj The diskselector object.
24098     * @return The max length defined for side labels, or 0 if not a valid
24099     * diskselector.
24100     *
24101     * @ingroup Diskselector
24102     */
24103    EINA_DEPRECATED EAPI int    elm_diskselector_side_label_lenght_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24104
24105    /**
24106     * Set the side labels max length.
24107     *
24108     * @deprecated use elm_diskselector_side_label_length_set() instead:
24109     *
24110     * @param obj The diskselector object.
24111     * @param len The max length defined for side labels.
24112     *
24113     * @ingroup Diskselector
24114     */
24115    EINA_DEPRECATED EAPI void   elm_diskselector_side_label_lenght_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
24116
24117    /**
24118     * Get the side labels max length.
24119     *
24120     * @see elm_diskselector_side_label_length_set() for details.
24121     *
24122     * @param obj The diskselector object.
24123     * @return The max length defined for side labels, or 0 if not a valid
24124     * diskselector.
24125     *
24126     * @ingroup Diskselector
24127     */
24128    EAPI int                    elm_diskselector_side_label_length_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24129
24130    /**
24131     * Set the side labels max length.
24132     *
24133     * @param obj The diskselector object.
24134     * @param len The max length defined for side labels.
24135     *
24136     * Length is the number of characters of items' label that will be
24137     * visible when it's set on side positions. It will just crop
24138     * the string after defined size. E.g.:
24139     *
24140     * An item with label "January" would be displayed on side position as
24141     * "Jan" if max length is set to 3, or "Janu", if this property
24142     * is set to 4.
24143     *
24144     * When it's selected, the entire label will be displayed, except for
24145     * width restrictions. In this case label will be cropped and "..."
24146     * will be concatenated.
24147     *
24148     * Default side label max length is 3.
24149     *
24150     * This property will be applyed over all items, included before or
24151     * later this function call.
24152     *
24153     * @ingroup Diskselector
24154     */
24155    EAPI void                   elm_diskselector_side_label_length_set(Evas_Object *obj, int len) EINA_ARG_NONNULL(1);
24156
24157    /**
24158     * Set the number of items to be displayed.
24159     *
24160     * @param obj The diskselector object.
24161     * @param num The number of items the diskselector will display.
24162     *
24163     * Default value is 3, and also it's the minimun. If @p num is less
24164     * than 3, it will be set to 3.
24165     *
24166     * Also, it can be set on theme, using data item @c display_item_num
24167     * on group "elm/diskselector/item/X", where X is style set.
24168     * E.g.:
24169     *
24170     * group { name: "elm/diskselector/item/X";
24171     * data {
24172     *     item: "display_item_num" "5";
24173     *     }
24174     *
24175     * @ingroup Diskselector
24176     */
24177    EAPI void                   elm_diskselector_display_item_num_set(Evas_Object *obj, int num) EINA_ARG_NONNULL(1);
24178
24179    /**
24180     * Get the number of items in the diskselector object.
24181     *
24182     * @param obj The diskselector object.
24183     *
24184     * @ingroup Diskselector
24185     */
24186    EAPI int                   elm_diskselector_display_item_num_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24187
24188    /**
24189     * Set bouncing behaviour when the scrolled content reaches an edge.
24190     *
24191     * Tell the internal scroller object whether it should bounce or not
24192     * when it reaches the respective edges for each axis.
24193     *
24194     * @param obj The diskselector object.
24195     * @param h_bounce Whether to bounce or not in the horizontal axis.
24196     * @param v_bounce Whether to bounce or not in the vertical axis.
24197     *
24198     * @see elm_scroller_bounce_set()
24199     *
24200     * @ingroup Diskselector
24201     */
24202    EAPI void                   elm_diskselector_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce) EINA_ARG_NONNULL(1);
24203
24204    /**
24205     * Get the bouncing behaviour of the internal scroller.
24206     *
24207     * Get whether the internal scroller should bounce when the edge of each
24208     * axis is reached scrolling.
24209     *
24210     * @param obj The diskselector object.
24211     * @param h_bounce Pointer where to store the bounce state of the horizontal
24212     * axis.
24213     * @param v_bounce Pointer where to store the bounce state of the vertical
24214     * axis.
24215     *
24216     * @see elm_scroller_bounce_get()
24217     * @see elm_diskselector_bounce_set()
24218     *
24219     * @ingroup Diskselector
24220     */
24221    EAPI void                   elm_diskselector_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce) EINA_ARG_NONNULL(1);
24222
24223    /**
24224     * Get the scrollbar policy.
24225     *
24226     * @see elm_diskselector_scroller_policy_get() for details.
24227     *
24228     * @param obj The diskselector object.
24229     * @param policy_h Pointer where to store horizontal scrollbar policy.
24230     * @param policy_v Pointer where to store vertical scrollbar policy.
24231     *
24232     * @ingroup Diskselector
24233     */
24234    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);
24235
24236    /**
24237     * Set the scrollbar policy.
24238     *
24239     * @param obj The diskselector object.
24240     * @param policy_h Horizontal scrollbar policy.
24241     * @param policy_v Vertical scrollbar policy.
24242     *
24243     * This sets the scrollbar visibility policy for the given scroller.
24244     * #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it
24245     * is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns
24246     * it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off.
24247     * This applies respectively for the horizontal and vertical scrollbars.
24248     *
24249     * The both are disabled by default, i.e., are set to
24250     * #ELM_SCROLLER_POLICY_OFF.
24251     *
24252     * @ingroup Diskselector
24253     */
24254    EAPI void                   elm_diskselector_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v) EINA_ARG_NONNULL(1);
24255
24256    /**
24257     * Remove all diskselector's items.
24258     *
24259     * @param obj The diskselector object.
24260     *
24261     * @see elm_diskselector_item_del()
24262     * @see elm_diskselector_item_append()
24263     *
24264     * @ingroup Diskselector
24265     */
24266    EAPI void                   elm_diskselector_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
24267
24268    /**
24269     * Get a list of all the diskselector items.
24270     *
24271     * @param obj The diskselector object.
24272     * @return An @c Eina_List of diskselector items, #Elm_Diskselector_Item,
24273     * or @c NULL on failure.
24274     *
24275     * @see elm_diskselector_item_append()
24276     * @see elm_diskselector_item_del()
24277     * @see elm_diskselector_clear()
24278     *
24279     * @ingroup Diskselector
24280     */
24281    EAPI const Eina_List       *elm_diskselector_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24282
24283    /**
24284     * Appends a new item to the diskselector object.
24285     *
24286     * @param obj The diskselector object.
24287     * @param label The label of the diskselector item.
24288     * @param icon The icon object to use at left side of the item. An
24289     * icon can be any Evas object, but usually it is an icon created
24290     * with elm_icon_add().
24291     * @param func The function to call when the item is selected.
24292     * @param data The data to associate with the item for related callbacks.
24293     *
24294     * @return The created item or @c NULL upon failure.
24295     *
24296     * A new item will be created and appended to the diskselector, i.e., will
24297     * be set as last item. Also, if there is no selected item, it will
24298     * be selected. This will always happens for the first appended item.
24299     *
24300     * If no icon is set, label will be centered on item position, otherwise
24301     * the icon will be placed at left of the label, that will be shifted
24302     * to the right.
24303     *
24304     * Items created with this method can be deleted with
24305     * elm_diskselector_item_del().
24306     *
24307     * Associated @p data can be properly freed when item is deleted if a
24308     * callback function is set with elm_diskselector_item_del_cb_set().
24309     *
24310     * If a function is passed as argument, it will be called everytime this item
24311     * is selected, i.e., the user stops the diskselector with this
24312     * item on center position. If such function isn't needed, just passing
24313     * @c NULL as @p func is enough. The same should be done for @p data.
24314     *
24315     * Simple example (with no function callback or data associated):
24316     * @code
24317     * disk = elm_diskselector_add(win);
24318     * ic = elm_icon_add(win);
24319     * elm_icon_file_set(ic, "path/to/image", NULL);
24320     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
24321     * elm_diskselector_item_append(disk, "label", ic, NULL, NULL);
24322     * @endcode
24323     *
24324     * @see elm_diskselector_item_del()
24325     * @see elm_diskselector_item_del_cb_set()
24326     * @see elm_diskselector_clear()
24327     * @see elm_icon_add()
24328     *
24329     * @ingroup Diskselector
24330     */
24331    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);
24332
24333
24334    /**
24335     * Delete them item from the diskselector.
24336     *
24337     * @param it The item of diskselector to be deleted.
24338     *
24339     * If deleting all diskselector items is required, elm_diskselector_clear()
24340     * should be used instead of getting items list and deleting each one.
24341     *
24342     * @see elm_diskselector_clear()
24343     * @see elm_diskselector_item_append()
24344     * @see elm_diskselector_item_del_cb_set()
24345     *
24346     * @ingroup Diskselector
24347     */
24348    EAPI void                   elm_diskselector_item_del(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24349
24350    /**
24351     * Set the function called when a diskselector item is freed.
24352     *
24353     * @param it The item to set the callback on
24354     * @param func The function called
24355     *
24356     * If there is a @p func, then it will be called prior item's memory release.
24357     * That will be called with the following arguments:
24358     * @li item's data;
24359     * @li item's Evas object;
24360     * @li item itself;
24361     *
24362     * This way, a data associated to a diskselector item could be properly
24363     * freed.
24364     *
24365     * @ingroup Diskselector
24366     */
24367    EAPI void                   elm_diskselector_item_del_cb_set(Elm_Diskselector_Item *item, Evas_Smart_Cb func) EINA_ARG_NONNULL(1);
24368
24369    /**
24370     * Get the data associated to the item.
24371     *
24372     * @param it The diskselector item
24373     * @return The data associated to @p it
24374     *
24375     * The return value is a pointer to data associated to @p item when it was
24376     * created, with function elm_diskselector_item_append(). If no data
24377     * was passed as argument, it will return @c NULL.
24378     *
24379     * @see elm_diskselector_item_append()
24380     *
24381     * @ingroup Diskselector
24382     */
24383    EAPI void                  *elm_diskselector_item_data_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24384
24385    /**
24386     * Set the icon associated to the item.
24387     *
24388     * @param it The diskselector item
24389     * @param icon The icon object to associate with @p it
24390     *
24391     * The icon object to use at left side of the item. An
24392     * icon can be any Evas object, but usually it is an icon created
24393     * with elm_icon_add().
24394     *
24395     * Once the icon object is set, a previously set one will be deleted.
24396     * @warning Setting the same icon for two items will cause the icon to
24397     * dissapear from the first item.
24398     *
24399     * If an icon was passed as argument on item creation, with function
24400     * elm_diskselector_item_append(), it will be already
24401     * associated to the item.
24402     *
24403     * @see elm_diskselector_item_append()
24404     * @see elm_diskselector_item_icon_get()
24405     *
24406     * @ingroup Diskselector
24407     */
24408    EAPI void                   elm_diskselector_item_icon_set(Elm_Diskselector_Item *item, Evas_Object *icon) EINA_ARG_NONNULL(1);
24409
24410    /**
24411     * Get the icon associated to the item.
24412     *
24413     * @param it The diskselector item
24414     * @return The icon associated to @p it
24415     *
24416     * The return value is a pointer to the icon associated to @p item when it was
24417     * created, with function elm_diskselector_item_append(), or later
24418     * with function elm_diskselector_item_icon_set. If no icon
24419     * was passed as argument, it will return @c NULL.
24420     *
24421     * @see elm_diskselector_item_append()
24422     * @see elm_diskselector_item_icon_set()
24423     *
24424     * @ingroup Diskselector
24425     */
24426    EAPI Evas_Object           *elm_diskselector_item_icon_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24427
24428    /**
24429     * Set the label of item.
24430     *
24431     * @param it The item of diskselector.
24432     * @param label The label of item.
24433     *
24434     * The label to be displayed by the item.
24435     *
24436     * If no icon is set, label will be centered on item position, otherwise
24437     * the icon will be placed at left of the label, that will be shifted
24438     * to the right.
24439     *
24440     * An item with label "January" would be displayed on side position as
24441     * "Jan" if max length is set to 3 with function
24442     * elm_diskselector_side_label_lenght_set(), or "Janu", if this property
24443     * is set to 4.
24444     *
24445     * When this @p item is selected, the entire label will be displayed,
24446     * except for width restrictions.
24447     * In this case label will be cropped and "..." will be concatenated,
24448     * but only for display purposes. It will keep the entire string, so
24449     * if diskselector is resized the remaining characters will be displayed.
24450     *
24451     * If a label was passed as argument on item creation, with function
24452     * elm_diskselector_item_append(), it will be already
24453     * displayed by the item.
24454     *
24455     * @see elm_diskselector_side_label_lenght_set()
24456     * @see elm_diskselector_item_label_get()
24457     * @see elm_diskselector_item_append()
24458     *
24459     * @ingroup Diskselector
24460     */
24461    EAPI void                   elm_diskselector_item_label_set(Elm_Diskselector_Item *item, const char *label) EINA_ARG_NONNULL(1);
24462
24463    /**
24464     * Get the label of item.
24465     *
24466     * @param it The item of diskselector.
24467     * @return The label of item.
24468     *
24469     * The return value is a pointer to the label associated to @p item when it was
24470     * created, with function elm_diskselector_item_append(), or later
24471     * with function elm_diskselector_item_label_set. If no label
24472     * was passed as argument, it will return @c NULL.
24473     *
24474     * @see elm_diskselector_item_label_set() for more details.
24475     * @see elm_diskselector_item_append()
24476     *
24477     * @ingroup Diskselector
24478     */
24479    EAPI const char            *elm_diskselector_item_label_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24480
24481    /**
24482     * Get the selected item.
24483     *
24484     * @param obj The diskselector object.
24485     * @return The selected diskselector item.
24486     *
24487     * The selected item can be unselected with function
24488     * elm_diskselector_item_selected_set(), and the first item of
24489     * diskselector will be selected.
24490     *
24491     * The selected item always will be centered on diskselector, with
24492     * full label displayed, i.e., max lenght set to side labels won't
24493     * apply on the selected item. More details on
24494     * elm_diskselector_side_label_length_set().
24495     *
24496     * @ingroup Diskselector
24497     */
24498    EAPI Elm_Diskselector_Item *elm_diskselector_selected_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24499
24500    /**
24501     * Set the selected state of an item.
24502     *
24503     * @param it The diskselector item
24504     * @param selected The selected state
24505     *
24506     * This sets the selected state of the given item @p it.
24507     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
24508     *
24509     * If a new item is selected the previosly selected will be unselected.
24510     * Previoulsy selected item can be get with function
24511     * elm_diskselector_selected_item_get().
24512     *
24513     * If the item @p it is unselected, the first item of diskselector will
24514     * be selected.
24515     *
24516     * Selected items will be visible on center position of diskselector.
24517     * So if it was on another position before selected, or was invisible,
24518     * diskselector will animate items until the selected item reaches center
24519     * position.
24520     *
24521     * @see elm_diskselector_item_selected_get()
24522     * @see elm_diskselector_selected_item_get()
24523     *
24524     * @ingroup Diskselector
24525     */
24526    EAPI void                   elm_diskselector_item_selected_set(Elm_Diskselector_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
24527
24528    /*
24529     * Get whether the @p item is selected or not.
24530     *
24531     * @param it The diskselector item.
24532     * @return @c EINA_TRUE means item is selected. @c EINA_FALSE indicates
24533     * it's not. If @p obj is @c NULL, @c EINA_FALSE is returned.
24534     *
24535     * @see elm_diskselector_selected_item_set() for details.
24536     * @see elm_diskselector_item_selected_get()
24537     *
24538     * @ingroup Diskselector
24539     */
24540    EAPI Eina_Bool              elm_diskselector_item_selected_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24541
24542    /**
24543     * Get the first item of the diskselector.
24544     *
24545     * @param obj The diskselector object.
24546     * @return The first item, or @c NULL if none.
24547     *
24548     * The list of items follows append order. So it will return the first
24549     * item appended to the widget that wasn't deleted.
24550     *
24551     * @see elm_diskselector_item_append()
24552     * @see elm_diskselector_items_get()
24553     *
24554     * @ingroup Diskselector
24555     */
24556    EAPI Elm_Diskselector_Item *elm_diskselector_first_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24557
24558    /**
24559     * Get the last item of the diskselector.
24560     *
24561     * @param obj The diskselector object.
24562     * @return The last item, or @c NULL if none.
24563     *
24564     * The list of items follows append order. So it will return last first
24565     * item appended to the widget that wasn't deleted.
24566     *
24567     * @see elm_diskselector_item_append()
24568     * @see elm_diskselector_items_get()
24569     *
24570     * @ingroup Diskselector
24571     */
24572    EAPI Elm_Diskselector_Item *elm_diskselector_last_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24573
24574    /**
24575     * Get the item before @p item in diskselector.
24576     *
24577     * @param it The diskselector item.
24578     * @return The item before @p item, or @c NULL if none or on failure.
24579     *
24580     * The list of items follows append order. So it will return item appended
24581     * just before @p item and that wasn't deleted.
24582     *
24583     * If it is the first item, @c NULL will be returned.
24584     * First item can be get by elm_diskselector_first_item_get().
24585     *
24586     * @see elm_diskselector_item_append()
24587     * @see elm_diskselector_items_get()
24588     *
24589     * @ingroup Diskselector
24590     */
24591    EAPI Elm_Diskselector_Item *elm_diskselector_item_prev_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24592
24593    /**
24594     * Get the item after @p item in diskselector.
24595     *
24596     * @param it The diskselector item.
24597     * @return The item after @p item, or @c NULL if none or on failure.
24598     *
24599     * The list of items follows append order. So it will return item appended
24600     * just after @p item and that wasn't deleted.
24601     *
24602     * If it is the last item, @c NULL will be returned.
24603     * Last item can be get by elm_diskselector_last_item_get().
24604     *
24605     * @see elm_diskselector_item_append()
24606     * @see elm_diskselector_items_get()
24607     *
24608     * @ingroup Diskselector
24609     */
24610    EAPI Elm_Diskselector_Item *elm_diskselector_item_next_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24611
24612    /**
24613     * Set the text to be shown in the diskselector item.
24614     *
24615     * @param item Target item
24616     * @param text The text to set in the content
24617     *
24618     * Setup the text as tooltip to object. The item can have only one tooltip,
24619     * so any previous tooltip data is removed.
24620     *
24621     * @see elm_object_tooltip_text_set() for more details.
24622     *
24623     * @ingroup Diskselector
24624     */
24625    EAPI void                   elm_diskselector_item_tooltip_text_set(Elm_Diskselector_Item *item, const char *text) EINA_ARG_NONNULL(1);
24626
24627    /**
24628     * Set the content to be shown in the tooltip item.
24629     *
24630     * Setup the tooltip to item. The item can have only one tooltip,
24631     * so any previous tooltip data is removed. @p func(with @p data) will
24632     * be called every time that need show the tooltip and it should
24633     * return a valid Evas_Object. This object is then managed fully by
24634     * tooltip system and is deleted when the tooltip is gone.
24635     *
24636     * @param item the diskselector item being attached a tooltip.
24637     * @param func the function used to create the tooltip contents.
24638     * @param data what to provide to @a func as callback data/context.
24639     * @param del_cb called when data is not needed anymore, either when
24640     *        another callback replaces @p func, the tooltip is unset with
24641     *        elm_diskselector_item_tooltip_unset() or the owner @a item
24642     *        dies. This callback receives as the first parameter the
24643     *        given @a data, and @c event_info is the item.
24644     *
24645     * @see elm_object_tooltip_content_cb_set() for more details.
24646     *
24647     * @ingroup Diskselector
24648     */
24649    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);
24650
24651    /**
24652     * Unset tooltip from item.
24653     *
24654     * @param item diskselector item to remove previously set tooltip.
24655     *
24656     * Remove tooltip from item. The callback provided as del_cb to
24657     * elm_diskselector_item_tooltip_content_cb_set() will be called to notify
24658     * it is not used anymore.
24659     *
24660     * @see elm_object_tooltip_unset() for more details.
24661     * @see elm_diskselector_item_tooltip_content_cb_set()
24662     *
24663     * @ingroup Diskselector
24664     */
24665    EAPI void                   elm_diskselector_item_tooltip_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24666
24667
24668    /**
24669     * Sets a different style for this item tooltip.
24670     *
24671     * @note before you set a style you should define a tooltip with
24672     *       elm_diskselector_item_tooltip_content_cb_set() or
24673     *       elm_diskselector_item_tooltip_text_set()
24674     *
24675     * @param item diskselector item with tooltip already set.
24676     * @param style the theme style to use (default, transparent, ...)
24677     *
24678     * @see elm_object_tooltip_style_set() for more details.
24679     *
24680     * @ingroup Diskselector
24681     */
24682    EAPI void                   elm_diskselector_item_tooltip_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
24683
24684    /**
24685     * Get the style for this item tooltip.
24686     *
24687     * @param item diskselector item with tooltip already set.
24688     * @return style the theme style in use, defaults to "default". If the
24689     *         object does not have a tooltip set, then NULL is returned.
24690     *
24691     * @see elm_object_tooltip_style_get() for more details.
24692     * @see elm_diskselector_item_tooltip_style_set()
24693     *
24694     * @ingroup Diskselector
24695     */
24696    EAPI const char            *elm_diskselector_item_tooltip_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24697
24698    /**
24699     * Set the cursor to be shown when mouse is over the diskselector item
24700     *
24701     * @param item Target item
24702     * @param cursor the cursor name to be used.
24703     *
24704     * @see elm_object_cursor_set() for more details.
24705     *
24706     * @ingroup Diskselector
24707     */
24708    EAPI void                   elm_diskselector_item_cursor_set(Elm_Diskselector_Item *item, const char *cursor) EINA_ARG_NONNULL(1);
24709
24710    /**
24711     * Get the cursor to be shown when mouse is over the diskselector item
24712     *
24713     * @param item diskselector item with cursor already set.
24714     * @return the cursor name.
24715     *
24716     * @see elm_object_cursor_get() for more details.
24717     * @see elm_diskselector_cursor_set()
24718     *
24719     * @ingroup Diskselector
24720     */
24721    EAPI const char            *elm_diskselector_item_cursor_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24722
24723
24724    /**
24725     * Unset the cursor to be shown when mouse is over the diskselector item
24726     *
24727     * @param item Target item
24728     *
24729     * @see elm_object_cursor_unset() for more details.
24730     * @see elm_diskselector_cursor_set()
24731     *
24732     * @ingroup Diskselector
24733     */
24734    EAPI void                   elm_diskselector_item_cursor_unset(Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24735
24736    /**
24737     * Sets a different style for this item cursor.
24738     *
24739     * @note before you set a style you should define a cursor with
24740     *       elm_diskselector_item_cursor_set()
24741     *
24742     * @param item diskselector item with cursor already set.
24743     * @param style the theme style to use (default, transparent, ...)
24744     *
24745     * @see elm_object_cursor_style_set() for more details.
24746     *
24747     * @ingroup Diskselector
24748     */
24749    EAPI void                   elm_diskselector_item_cursor_style_set(Elm_Diskselector_Item *item, const char *style) EINA_ARG_NONNULL(1);
24750
24751
24752    /**
24753     * Get the style for this item cursor.
24754     *
24755     * @param item diskselector item with cursor already set.
24756     * @return style the theme style in use, defaults to "default". If the
24757     *         object does not have a cursor set, then @c NULL is returned.
24758     *
24759     * @see elm_object_cursor_style_get() for more details.
24760     * @see elm_diskselector_item_cursor_style_set()
24761     *
24762     * @ingroup Diskselector
24763     */
24764    EAPI const char            *elm_diskselector_item_cursor_style_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24765
24766
24767    /**
24768     * Set if the cursor set should be searched on the theme or should use
24769     * the provided by the engine, only.
24770     *
24771     * @note before you set if should look on theme you should define a cursor
24772     * with elm_diskselector_item_cursor_set().
24773     * By default it will only look for cursors provided by the engine.
24774     *
24775     * @param item widget item with cursor already set.
24776     * @param engine_only boolean to define if cursors set with
24777     * elm_diskselector_item_cursor_set() should be searched only
24778     * between cursors provided by the engine or searched on widget's
24779     * theme as well.
24780     *
24781     * @see elm_object_cursor_engine_only_set() for more details.
24782     *
24783     * @ingroup Diskselector
24784     */
24785    EAPI void                   elm_diskselector_item_cursor_engine_only_set(Elm_Diskselector_Item *item, Eina_Bool engine_only) EINA_ARG_NONNULL(1);
24786
24787    /**
24788     * Get the cursor engine only usage for this item cursor.
24789     *
24790     * @param item widget item with cursor already set.
24791     * @return engine_only boolean to define it cursors should be looked only
24792     * between the provided by the engine or searched on widget's theme as well.
24793     * If the item does not have a cursor set, then @c EINA_FALSE is returned.
24794     *
24795     * @see elm_object_cursor_engine_only_get() for more details.
24796     * @see elm_diskselector_item_cursor_engine_only_set()
24797     *
24798     * @ingroup Diskselector
24799     */
24800    EAPI Eina_Bool              elm_diskselector_item_cursor_engine_only_get(const Elm_Diskselector_Item *item) EINA_ARG_NONNULL(1);
24801
24802    /**
24803     * @}
24804     */
24805
24806    /**
24807     * @defgroup Colorselector Colorselector
24808     *
24809     * @{
24810     *
24811     * @image html img/widget/colorselector/preview-00.png
24812     * @image latex img/widget/colorselector/preview-00.eps
24813     *
24814     * @brief Widget for user to select a color.
24815     *
24816     * Signals that you can add callbacks for are:
24817     * "changed" - When the color value changes(event_info is NULL).
24818     *
24819     * See @ref tutorial_colorselector.
24820     */
24821    /**
24822     * @brief Add a new colorselector to the parent
24823     *
24824     * @param parent The parent object
24825     * @return The new object or NULL if it cannot be created
24826     *
24827     * @ingroup Colorselector
24828     */
24829    EAPI Evas_Object *elm_colorselector_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24830    /**
24831     * Set a color for the colorselector
24832     *
24833     * @param obj   Colorselector object
24834     * @param r     r-value of color
24835     * @param g     g-value of color
24836     * @param b     b-value of color
24837     * @param a     a-value of color
24838     *
24839     * @ingroup Colorselector
24840     */
24841    EAPI void         elm_colorselector_color_set(Evas_Object *obj, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
24842    /**
24843     * Get a color from the colorselector
24844     *
24845     * @param obj   Colorselector object
24846     * @param r     integer pointer for r-value of color
24847     * @param g     integer pointer for g-value of color
24848     * @param b     integer pointer for b-value of color
24849     * @param a     integer pointer for a-value of color
24850     *
24851     * @ingroup Colorselector
24852     */
24853    EAPI void         elm_colorselector_color_get(const Evas_Object *obj, int *r, int *g , int *b, int *a) EINA_ARG_NONNULL(1);
24854    /**
24855     * @}
24856     */
24857
24858    /**
24859     * @defgroup Ctxpopup Ctxpopup
24860     *
24861     * @image html img/widget/ctxpopup/preview-00.png
24862     * @image latex img/widget/ctxpopup/preview-00.eps
24863     *
24864     * @brief Context popup widet.
24865     *
24866     * A ctxpopup is a widget that, when shown, pops up a list of items.
24867     * It automatically chooses an area inside its parent object's view
24868     * (set via elm_ctxpopup_add() and elm_ctxpopup_hover_parent_set()) to
24869     * optimally fit into it. In the default theme, it will also point an
24870     * arrow to it's top left position at the time one shows it. Ctxpopup
24871     * items have a label and/or an icon. It is intended for a small
24872     * number of items (hence the use of list, not genlist).
24873     *
24874     * @note Ctxpopup is a especialization of @ref Hover.
24875     *
24876     * Signals that you can add callbacks for are:
24877     * "dismissed" - the ctxpopup was dismissed
24878     *
24879     * @ref tutorial_ctxpopup shows the usage of a good deal of the API.
24880     * @{
24881     */
24882    typedef enum _Elm_Ctxpopup_Direction
24883      {
24884         ELM_CTXPOPUP_DIRECTION_DOWN, /**< ctxpopup show appear below clicked
24885                                           area */
24886         ELM_CTXPOPUP_DIRECTION_RIGHT, /**< ctxpopup show appear to the right of
24887                                            the clicked area */
24888         ELM_CTXPOPUP_DIRECTION_LEFT, /**< ctxpopup show appear to the left of
24889                                           the clicked area */
24890         ELM_CTXPOPUP_DIRECTION_UP, /**< ctxpopup show appear above the clicked
24891                                         area */
24892         ELM_CTXPOPUP_DIRECTION_DONT_KNOW, /**< ctxpopup does not determine it's direction yet*/
24893      } Elm_Ctxpopup_Direction;
24894
24895    /**
24896     * @brief Add a new Ctxpopup object to the parent.
24897     *
24898     * @param parent Parent object
24899     * @return New object or @c NULL, if it cannot be created
24900     */
24901    EAPI Evas_Object  *elm_ctxpopup_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
24902    /**
24903     * @brief Set the Ctxpopup's parent
24904     *
24905     * @param obj The ctxpopup object
24906     * @param area The parent to use
24907     *
24908     * Set the parent object.
24909     *
24910     * @note elm_ctxpopup_add() will automatically call this function
24911     * with its @c parent argument.
24912     *
24913     * @see elm_ctxpopup_add()
24914     * @see elm_hover_parent_set()
24915     */
24916    EAPI void          elm_ctxpopup_hover_parent_set(Evas_Object *obj, Evas_Object *parent) EINA_ARG_NONNULL(1, 2);
24917    /**
24918     * @brief Get the Ctxpopup's parent
24919     *
24920     * @param obj The ctxpopup object
24921     *
24922     * @see elm_ctxpopup_hover_parent_set() for more information
24923     */
24924    EAPI Evas_Object  *elm_ctxpopup_hover_parent_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24925    /**
24926     * @brief Clear all items in the given ctxpopup object.
24927     *
24928     * @param obj Ctxpopup object
24929     */
24930    EAPI void          elm_ctxpopup_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
24931    /**
24932     * @brief Change the ctxpopup's orientation to horizontal or vertical.
24933     *
24934     * @param obj Ctxpopup object
24935     * @param horizontal @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical
24936     */
24937    EAPI void          elm_ctxpopup_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) EINA_ARG_NONNULL(1);
24938    /**
24939     * @brief Get the value of current ctxpopup object's orientation.
24940     *
24941     * @param obj Ctxpopup object
24942     * @return @c EINA_TRUE for horizontal mode, @c EINA_FALSE for vertical mode (or errors)
24943     *
24944     * @see elm_ctxpopup_horizontal_set()
24945     */
24946    EAPI Eina_Bool     elm_ctxpopup_horizontal_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
24947    /**
24948     * @brief Add a new item to a ctxpopup object.
24949     *
24950     * @param obj Ctxpopup object
24951     * @param icon Icon to be set on new item
24952     * @param label The Label of the new item
24953     * @param func Convenience function called when item selected
24954     * @param data Data passed to @p func
24955     * @return A handle to the item added or @c NULL, on errors
24956     *
24957     * @warning Ctxpopup can't hold both an item list and a content at the same
24958     * time. When an item is added, any previous content will be removed.
24959     *
24960     * @see elm_ctxpopup_content_set()
24961     */
24962    Elm_Object_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);
24963    /**
24964     * @brief Delete the given item in a ctxpopup object.
24965     *
24966     * @param it Ctxpopup item to be deleted
24967     *
24968     * @see elm_ctxpopup_item_append()
24969     */
24970    EAPI void          elm_ctxpopup_item_del(Elm_Object_Item *it) EINA_ARG_NONNULL(1);
24971    /**
24972     * @brief Set the ctxpopup item's state as disabled or enabled.
24973     *
24974     * @param it Ctxpopup item to be enabled/disabled
24975     * @param disabled @c EINA_TRUE to disable it, @c EINA_FALSE to enable it
24976     *
24977     * When disabled the item is greyed out to indicate it's state.
24978     */
24979    EAPI void          elm_ctxpopup_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) EINA_ARG_NONNULL(1);
24980    /**
24981     * @brief Get the ctxpopup item's disabled/enabled state.
24982     *
24983     * @param it Ctxpopup item to be enabled/disabled
24984     * @return disabled @c EINA_TRUE, if disabled, @c EINA_FALSE otherwise
24985     *
24986     * @see elm_ctxpopup_item_disabled_set()
24987     */
24988    EAPI Eina_Bool     elm_ctxpopup_item_disabled_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
24989    /**
24990     * @brief Get the icon object for the given ctxpopup item.
24991     *
24992     * @param it Ctxpopup item
24993     * @return icon object or @c NULL, if the item does not have icon or an error
24994     * occurred
24995     *
24996     * @see elm_ctxpopup_item_append()
24997     * @see elm_ctxpopup_item_icon_set()
24998     */
24999    EAPI Evas_Object  *elm_ctxpopup_item_icon_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25000    /**
25001     * @brief Sets the side icon associated with the ctxpopup item
25002     *
25003     * @param it Ctxpopup item
25004     * @param icon Icon object to be set
25005     *
25006     * Once the icon object is set, a previously set one will be deleted.
25007     * @warning Setting the same icon for two items will cause the icon to
25008     * dissapear from the first item.
25009     *
25010     * @see elm_ctxpopup_item_append()
25011     */
25012    EAPI void          elm_ctxpopup_item_icon_set(Elm_Object_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
25013    /**
25014     * @brief Get the label for the given ctxpopup item.
25015     *
25016     * @param it Ctxpopup item
25017     * @return label string or @c NULL, if the item does not have label or an
25018     * error occured
25019     *
25020     * @see elm_ctxpopup_item_append()
25021     * @see elm_ctxpopup_item_label_set()
25022     */
25023    EAPI const char   *elm_ctxpopup_item_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
25024    /**
25025     * @brief (Re)set the label on the given ctxpopup item.
25026     *
25027     * @param it Ctxpopup item
25028     * @param label String to set as label
25029     */
25030    EAPI void          elm_ctxpopup_item_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
25031    /**
25032     * @brief Set an elm widget as the content of the ctxpopup.
25033     *
25034     * @param obj Ctxpopup object
25035     * @param content Content to be swallowed
25036     *
25037     * If the content object is already set, a previous one will bedeleted. If
25038     * you want to keep that old content object, use the
25039     * elm_ctxpopup_content_unset() function.
25040     *
25041     * @deprecated use elm_object_content_set()
25042     *
25043     * @warning Ctxpopup can't hold both a item list and a content at the same
25044     * time. When a content is set, any previous items will be removed.
25045     */
25046    EINA_DEPRECATED EAPI void          elm_ctxpopup_content_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1, 2);
25047    /**
25048     * @brief Unset the ctxpopup content
25049     *
25050     * @param obj Ctxpopup object
25051     * @return The content that was being used
25052     *
25053     * Unparent and return the content object which was set for this widget.
25054     *
25055     * @deprecated use elm_object_content_unset()
25056     *
25057     * @see elm_ctxpopup_content_set()
25058     */
25059    EINA_DEPRECATED EAPI Evas_Object  *elm_ctxpopup_content_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
25060    /**
25061     * @brief Set the direction priority of a ctxpopup.
25062     *
25063     * @param obj Ctxpopup object
25064     * @param first 1st priority of direction
25065     * @param second 2nd priority of direction
25066     * @param third 3th priority of direction
25067     * @param fourth 4th priority of direction
25068     *
25069     * This functions gives a chance to user to set the priority of ctxpopup
25070     * showing direction. This doesn't guarantee the ctxpopup will appear in the
25071     * requested direction.
25072     *
25073     * @see Elm_Ctxpopup_Direction
25074     */
25075    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);
25076    /**
25077     * @brief Get the direction priority of a ctxpopup.
25078     *
25079     * @param obj Ctxpopup object
25080     * @param first 1st priority of direction to be returned
25081     * @param second 2nd priority of direction to be returned
25082     * @param third 3th priority of direction to be returned
25083     * @param fourth 4th priority of direction to be returned
25084     *
25085     * @see elm_ctxpopup_direction_priority_set() for more information.
25086     */
25087    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);
25088
25089    /**
25090     * @brief Get the current direction of a ctxpopup.
25091     *
25092     * @param obj Ctxpopup object
25093     * @return current direction of a ctxpopup
25094     *
25095     * @warning Once the ctxpopup showed up, the direction would be determined
25096     */
25097    EAPI Elm_Ctxpopup_Direction elm_ctxpopup_direction_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
25098
25099    /**
25100     * @}
25101     */
25102
25103    /* transit */
25104    /**
25105     *
25106     * @defgroup Transit Transit
25107     * @ingroup Elementary
25108     *
25109     * Transit is designed to apply various animated transition effects to @c
25110     * Evas_Object, such like translation, rotation, etc. For using these
25111     * effects, create an @ref Elm_Transit and add the desired transition effects.
25112     *
25113     * Once the effects are added into transit, they will be automatically
25114     * managed (their callback will be called until the duration is ended, and
25115     * they will be deleted on completion).
25116     *
25117     * Example:
25118     * @code
25119     * Elm_Transit *trans = elm_transit_add();
25120     * elm_transit_object_add(trans, obj);
25121     * elm_transit_effect_translation_add(trans, 0, 0, 280, 280
25122     * elm_transit_duration_set(transit, 1);
25123     * elm_transit_auto_reverse_set(transit, EINA_TRUE);
25124     * elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
25125     * elm_transit_repeat_times_set(transit, 3);
25126     * @endcode
25127     *
25128     * Some transition effects are used to change the properties of objects. They
25129     * are:
25130     * @li @ref elm_transit_effect_translation_add
25131     * @li @ref elm_transit_effect_color_add
25132     * @li @ref elm_transit_effect_rotation_add
25133     * @li @ref elm_transit_effect_wipe_add
25134     * @li @ref elm_transit_effect_zoom_add
25135     * @li @ref elm_transit_effect_resizing_add
25136     *
25137     * Other transition effects are used to make one object disappear and another
25138     * object appear on its old place. These effects are:
25139     *
25140     * @li @ref elm_transit_effect_flip_add
25141     * @li @ref elm_transit_effect_resizable_flip_add
25142     * @li @ref elm_transit_effect_fade_add
25143     * @li @ref elm_transit_effect_blend_add
25144     *
25145     * It's also possible to make a transition chain with @ref
25146     * elm_transit_chain_transit_add.
25147     *
25148     * @warning We strongly recommend to use elm_transit just when edje can not do
25149     * the trick. Edje has more advantage than Elm_Transit, it has more flexibility and
25150     * animations can be manipulated inside the theme.
25151     *
25152     * List of examples:
25153     * @li @ref transit_example_01_explained
25154     * @li @ref transit_example_02_explained
25155     * @li @ref transit_example_03_c
25156     * @li @ref transit_example_04_c
25157     *
25158     * @{
25159     */
25160
25161    /**
25162     * @enum Elm_Transit_Tween_Mode
25163     *
25164     * The type of acceleration used in the transition.
25165     */
25166    typedef enum
25167      {
25168         ELM_TRANSIT_TWEEN_MODE_LINEAR, /**< Constant speed */
25169         ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL, /**< Starts slow, increase speed
25170                                              over time, then decrease again
25171                                              and stop slowly */
25172         ELM_TRANSIT_TWEEN_MODE_DECELERATE, /**< Starts fast and decrease
25173                                              speed over time */
25174         ELM_TRANSIT_TWEEN_MODE_ACCELERATE /**< Starts slow and increase speed
25175                                             over time */
25176      } Elm_Transit_Tween_Mode;
25177
25178    /**
25179     * @enum Elm_Transit_Effect_Flip_Axis
25180     *
25181     * The axis where flip effect should be applied.
25182     */
25183    typedef enum
25184      {
25185         ELM_TRANSIT_EFFECT_FLIP_AXIS_X, /**< Flip on X axis */
25186         ELM_TRANSIT_EFFECT_FLIP_AXIS_Y /**< Flip on Y axis */
25187      } Elm_Transit_Effect_Flip_Axis;
25188    /**
25189     * @enum Elm_Transit_Effect_Wipe_Dir
25190     *
25191     * The direction where the wipe effect should occur.
25192     */
25193    typedef enum
25194      {
25195         ELM_TRANSIT_EFFECT_WIPE_DIR_LEFT, /**< Wipe to the left */
25196         ELM_TRANSIT_EFFECT_WIPE_DIR_RIGHT, /**< Wipe to the right */
25197         ELM_TRANSIT_EFFECT_WIPE_DIR_UP, /**< Wipe up */
25198         ELM_TRANSIT_EFFECT_WIPE_DIR_DOWN /**< Wipe down */
25199      } Elm_Transit_Effect_Wipe_Dir;
25200    /** @enum Elm_Transit_Effect_Wipe_Type
25201     *
25202     * Whether the wipe effect should show or hide the object.
25203     */
25204    typedef enum
25205      {
25206         ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE, /**< Hide the object during the
25207                                              animation */
25208         ELM_TRANSIT_EFFECT_WIPE_TYPE_SHOW /**< Show the object during the
25209                                             animation */
25210      } Elm_Transit_Effect_Wipe_Type;
25211
25212    /**
25213     * @typedef Elm_Transit
25214     *
25215     * The Transit created with elm_transit_add(). This type has the information
25216     * about the objects which the transition will be applied, and the
25217     * transition effects that will be used. It also contains info about
25218     * duration, number of repetitions, auto-reverse, etc.
25219     */
25220    typedef struct _Elm_Transit Elm_Transit;
25221    typedef void Elm_Transit_Effect;
25222    /**
25223     * @typedef Elm_Transit_Effect_Transition_Cb
25224     *
25225     * Transition callback called for this effect on each transition iteration.
25226     */
25227    typedef void (*Elm_Transit_Effect_Transition_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit, double progress);
25228    /**
25229     * Elm_Transit_Effect_End_Cb
25230     *
25231     * Transition callback called for this effect when the transition is over.
25232     */
25233    typedef void (*Elm_Transit_Effect_End_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit);
25234
25235    /**
25236     * Elm_Transit_Del_Cb
25237     *
25238     * A callback called when the transit is deleted.
25239     */
25240    typedef void (*Elm_Transit_Del_Cb) (void *data, Elm_Transit *transit);
25241
25242    /**
25243     * Add new transit.
25244     *
25245     * @note Is not necessary to delete the transit object, it will be deleted at
25246     * the end of its operation.
25247     * @note The transit will start playing when the program enter in the main loop, is not
25248     * necessary to give a start to the transit.
25249     *
25250     * @return The transit object.
25251     *
25252     * @ingroup Transit
25253     */
25254    EAPI Elm_Transit                *elm_transit_add(void);
25255
25256    /**
25257     * Stops the animation and delete the @p transit object.
25258     *
25259     * Call this function if you wants to stop the animation before the duration
25260     * time. Make sure the @p transit object is still alive with
25261     * elm_transit_del_cb_set() function.
25262     * All added effects will be deleted, calling its repective data_free_cb
25263     * functions. The function setted by elm_transit_del_cb_set() will be called.
25264     *
25265     * @see elm_transit_del_cb_set()
25266     *
25267     * @param transit The transit object to be deleted.
25268     *
25269     * @ingroup Transit
25270     * @warning Just call this function if you are sure the transit is alive.
25271     */
25272    EAPI void                        elm_transit_del(Elm_Transit *transit) EINA_ARG_NONNULL(1);
25273
25274    /**
25275     * Add a new effect to the transit.
25276     *
25277     * @note The cb function and the data are the key to the effect. If you try to
25278     * add an already added effect, nothing is done.
25279     * @note After the first addition of an effect in @p transit, if its
25280     * effect list become empty again, the @p transit will be killed by
25281     * elm_transit_del(transit) function.
25282     *
25283     * Exemple:
25284     * @code
25285     * Elm_Transit *transit = elm_transit_add();
25286     * elm_transit_effect_add(transit,
25287     *                        elm_transit_effect_blend_op,
25288     *                        elm_transit_effect_blend_context_new(),
25289     *                        elm_transit_effect_blend_context_free);
25290     * @endcode
25291     *
25292     * @param transit The transit object.
25293     * @param transition_cb The operation function. It is called when the
25294     * animation begins, it is the function that actually performs the animation.
25295     * It is called with the @p data, @p transit and the time progression of the
25296     * animation (a double value between 0.0 and 1.0).
25297     * @param effect The context data of the effect.
25298     * @param end_cb The function to free the context data, it will be called
25299     * at the end of the effect, it must finalize the animation and free the
25300     * @p data.
25301     *
25302     * @ingroup Transit
25303     * @warning The transit free the context data at the and of the transition with
25304     * the data_free_cb function, do not use the context data in another transit.
25305     */
25306    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);
25307
25308    /**
25309     * Delete an added effect.
25310     *
25311     * This function will remove the effect from the @p transit, calling the
25312     * data_free_cb to free the @p data.
25313     *
25314     * @see elm_transit_effect_add()
25315     *
25316     * @note If the effect is not found, nothing is done.
25317     * @note If the effect list become empty, this function will call
25318     * elm_transit_del(transit), that is, it will kill the @p transit.
25319     *
25320     * @param transit The transit object.
25321     * @param transition_cb The operation function.
25322     * @param effect The context data of the effect.
25323     *
25324     * @ingroup Transit
25325     */
25326    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);
25327
25328    /**
25329     * Add new object to apply the effects.
25330     *
25331     * @note After the first addition of an object in @p transit, if its
25332     * object list become empty again, the @p transit will be killed by
25333     * elm_transit_del(transit) function.
25334     * @note If the @p obj belongs to another transit, the @p obj will be
25335     * removed from it and it will only belong to the @p transit. If the old
25336     * transit stays without objects, it will die.
25337     * @note When you add an object into the @p transit, its state from
25338     * evas_object_pass_events_get(obj) is saved, and it is applied when the
25339     * transit ends, if you change this state whith evas_object_pass_events_set()
25340     * after add the object, this state will change again when @p transit stops to
25341     * run.
25342     *
25343     * @param transit The transit object.
25344     * @param obj Object to be animated.
25345     *
25346     * @ingroup Transit
25347     * @warning It is not allowed to add a new object after transit begins to go.
25348     */
25349    EAPI void                        elm_transit_object_add(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
25350
25351    /**
25352     * Removes an added object from the transit.
25353     *
25354     * @note If the @p obj is not in the @p transit, nothing is done.
25355     * @note If the list become empty, this function will call
25356     * elm_transit_del(transit), that is, it will kill the @p transit.
25357     *
25358     * @param transit The transit object.
25359     * @param obj Object to be removed from @p transit.
25360     *
25361     * @ingroup Transit
25362     * @warning It is not allowed to remove objects after transit begins to go.
25363     */
25364    EAPI void                        elm_transit_object_remove(Elm_Transit *transit, Evas_Object *obj) EINA_ARG_NONNULL(1, 2);
25365
25366    /**
25367     * Get the objects of the transit.
25368     *
25369     * @param transit The transit object.
25370     * @return a Eina_List with the objects from the transit.
25371     *
25372     * @ingroup Transit
25373     */
25374    EAPI const Eina_List            *elm_transit_objects_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25375
25376    /**
25377     * Enable/disable keeping up the objects states.
25378     * If it is not kept, the objects states will be reset when transition ends.
25379     *
25380     * @note @p transit can not be NULL.
25381     * @note One state includes geometry, color, map data.
25382     *
25383     * @param transit The transit object.
25384     * @param state_keep Keeping or Non Keeping.
25385     *
25386     * @ingroup Transit
25387     */
25388    EAPI void                        elm_transit_objects_final_state_keep_set(Elm_Transit *transit, Eina_Bool state_keep) EINA_ARG_NONNULL(1);
25389
25390    /**
25391     * Get a value whether the objects states will be reset or not.
25392     *
25393     * @note @p transit can not be NULL
25394     *
25395     * @see elm_transit_objects_final_state_keep_set()
25396     *
25397     * @param transit The transit object.
25398     * @return EINA_TRUE means the states of the objects will be reset.
25399     * If @p transit is NULL, EINA_FALSE is returned
25400     *
25401     * @ingroup Transit
25402     */
25403    EAPI Eina_Bool                   elm_transit_objects_final_state_keep_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25404
25405    /**
25406     * Set the event enabled when transit is operating.
25407     *
25408     * If @p enabled is EINA_TRUE, the objects of the transit will receives
25409     * events from mouse and keyboard during the animation.
25410     * @note When you add an object with elm_transit_object_add(), its state from
25411     * evas_object_pass_events_get(obj) is saved, and it is applied when the
25412     * transit ends, if you change this state with evas_object_pass_events_set()
25413     * after adding the object, this state will change again when @p transit stops
25414     * to run.
25415     *
25416     * @param transit The transit object.
25417     * @param enabled Events are received when enabled is @c EINA_TRUE, and
25418     * ignored otherwise.
25419     *
25420     * @ingroup Transit
25421     */
25422    EAPI void                        elm_transit_event_enabled_set(Elm_Transit *transit, Eina_Bool enabled) EINA_ARG_NONNULL(1);
25423
25424    /**
25425     * Get the value of event enabled status.
25426     *
25427     * @see elm_transit_event_enabled_set()
25428     *
25429     * @param transit The Transit object
25430     * @return EINA_TRUE, when event is enabled. If @p transit is NULL
25431     * EINA_FALSE is returned
25432     *
25433     * @ingroup Transit
25434     */
25435    EAPI Eina_Bool                   elm_transit_event_enabled_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25436
25437    /**
25438     * Set the user-callback function when the transit is deleted.
25439     *
25440     * @note Using this function twice will overwrite the first function setted.
25441     * @note the @p transit object will be deleted after call @p cb function.
25442     *
25443     * @param transit The transit object.
25444     * @param cb Callback function pointer. This function will be called before
25445     * the deletion of the transit.
25446     * @param data Callback funtion user data. It is the @p op parameter.
25447     *
25448     * @ingroup Transit
25449     */
25450    EAPI void                        elm_transit_del_cb_set(Elm_Transit *transit, Elm_Transit_Del_Cb cb, void *data) EINA_ARG_NONNULL(1);
25451
25452    /**
25453     * Set reverse effect automatically.
25454     *
25455     * If auto reverse is setted, after running the effects with the progress
25456     * parameter from 0 to 1, it will call the effecs again with the progress
25457     * from 1 to 0. The transit will last for a time iqual to (2 * duration * repeat),
25458     * where the duration was setted with the function elm_transit_add and
25459     * the repeat with the function elm_transit_repeat_times_set().
25460     *
25461     * @param transit The transit object.
25462     * @param reverse EINA_TRUE means the auto_reverse is on.
25463     *
25464     * @ingroup Transit
25465     */
25466    EAPI void                        elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse) EINA_ARG_NONNULL(1);
25467
25468    /**
25469     * Get if the auto reverse is on.
25470     *
25471     * @see elm_transit_auto_reverse_set()
25472     *
25473     * @param transit The transit object.
25474     * @return EINA_TRUE means auto reverse is on. If @p transit is NULL
25475     * EINA_FALSE is returned
25476     *
25477     * @ingroup Transit
25478     */
25479    EAPI Eina_Bool                   elm_transit_auto_reverse_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25480
25481    /**
25482     * Set the transit repeat count. Effect will be repeated by repeat count.
25483     *
25484     * This function sets the number of repetition the transit will run after
25485     * the first one, that is, if @p repeat is 1, the transit will run 2 times.
25486     * If the @p repeat is a negative number, it will repeat infinite times.
25487     *
25488     * @note If this function is called during the transit execution, the transit
25489     * will run @p repeat times, ignoring the times it already performed.
25490     *
25491     * @param transit The transit object
25492     * @param repeat Repeat count
25493     *
25494     * @ingroup Transit
25495     */
25496    EAPI void                        elm_transit_repeat_times_set(Elm_Transit *transit, int repeat) EINA_ARG_NONNULL(1);
25497
25498    /**
25499     * Get the transit repeat count.
25500     *
25501     * @see elm_transit_repeat_times_set()
25502     *
25503     * @param transit The Transit object.
25504     * @return The repeat count. If @p transit is NULL
25505     * 0 is returned
25506     *
25507     * @ingroup Transit
25508     */
25509    EAPI int                         elm_transit_repeat_times_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25510
25511    /**
25512     * Set the transit animation acceleration type.
25513     *
25514     * This function sets the tween mode of the transit that can be:
25515     * ELM_TRANSIT_TWEEN_MODE_LINEAR - The default mode.
25516     * ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL - Starts in accelerate mode and ends decelerating.
25517     * ELM_TRANSIT_TWEEN_MODE_DECELERATE - The animation will be slowed over time.
25518     * ELM_TRANSIT_TWEEN_MODE_ACCELERATE - The animation will accelerate over time.
25519     *
25520     * @param transit The transit object.
25521     * @param tween_mode The tween type.
25522     *
25523     * @ingroup Transit
25524     */
25525    EAPI void                        elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mode) EINA_ARG_NONNULL(1);
25526
25527    /**
25528     * Get the transit animation acceleration type.
25529     *
25530     * @note @p transit can not be NULL
25531     *
25532     * @param transit The transit object.
25533     * @return The tween type. If @p transit is NULL
25534     * ELM_TRANSIT_TWEEN_MODE_LINEAR is returned.
25535     *
25536     * @ingroup Transit
25537     */
25538    EAPI Elm_Transit_Tween_Mode      elm_transit_tween_mode_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25539
25540    /**
25541     * Set the transit animation time
25542     *
25543     * @note @p transit can not be NULL
25544     *
25545     * @param transit The transit object.
25546     * @param duration The animation time.
25547     *
25548     * @ingroup Transit
25549     */
25550    EAPI void                        elm_transit_duration_set(Elm_Transit *transit, double duration) EINA_ARG_NONNULL(1);
25551
25552    /**
25553     * Get the transit animation time
25554     *
25555     * @note @p transit can not be NULL
25556     *
25557     * @param transit The transit object.
25558     *
25559     * @return The transit animation time.
25560     *
25561     * @ingroup Transit
25562     */
25563    EAPI double                      elm_transit_duration_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25564
25565    /**
25566     * Starts the transition.
25567     * Once this API is called, the transit begins to measure the time.
25568     *
25569     * @note @p transit can not be NULL
25570     *
25571     * @param transit The transit object.
25572     *
25573     * @ingroup Transit
25574     */
25575    EAPI void                        elm_transit_go(Elm_Transit *transit) EINA_ARG_NONNULL(1);
25576
25577    /**
25578     * Pause/Resume the transition.
25579     *
25580     * If you call elm_transit_go again, the transit will be started from the
25581     * beginning, and will be unpaused.
25582     *
25583     * @note @p transit can not be NULL
25584     *
25585     * @param transit The transit object.
25586     * @param paused Whether the transition should be paused or not.
25587     *
25588     * @ingroup Transit
25589     */
25590    EAPI void                        elm_transit_paused_set(Elm_Transit *transit, Eina_Bool paused) EINA_ARG_NONNULL(1);
25591
25592    /**
25593     * Get the value of paused status.
25594     *
25595     * @see elm_transit_paused_set()
25596     *
25597     * @note @p transit can not be NULL
25598     *
25599     * @param transit The transit object.
25600     * @return EINA_TRUE means transition is paused. If @p transit is NULL
25601     * EINA_FALSE is returned
25602     *
25603     * @ingroup Transit
25604     */
25605    EAPI Eina_Bool                   elm_transit_paused_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25606
25607    /**
25608     * Get the time progression of the animation (a double value between 0.0 and 1.0).
25609     *
25610     * The value returned is a fraction (current time / total time). It
25611     * represents the progression position relative to the total.
25612     *
25613     * @note @p transit can not be NULL
25614     *
25615     * @param transit The transit object.
25616     *
25617     * @return The time progression value. If @p transit is NULL
25618     * 0 is returned
25619     *
25620     * @ingroup Transit
25621     */
25622    EAPI double                      elm_transit_progress_value_get(const Elm_Transit *transit) EINA_ARG_NONNULL(1);
25623
25624    /**
25625     * Makes the chain relationship between two transits.
25626     *
25627     * @note @p transit can not be NULL. Transit would have multiple chain transits.
25628     * @note @p chain_transit can not be NULL. Chain transits could be chained to the only one transit.
25629     *
25630     * @param transit The transit object.
25631     * @param chain_transit The chain transit object. This transit will be operated
25632     *        after transit is done.
25633     *
25634     * This function adds @p chain_transit transition to a chain after the @p
25635     * transit, and will be started as soon as @p transit ends. See @ref
25636     * transit_example_02_explained for a full example.
25637     *
25638     * @ingroup Transit
25639     */
25640    EAPI void                        elm_transit_chain_transit_add(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1, 2);
25641
25642    /**
25643     * Cut off the chain relationship between two transits.
25644     *
25645     * @note @p transit can not be NULL. Transit would have the chain relationship with @p chain transit.
25646     * @note @p chain_transit can not be NULL. Chain transits should be chained to the @p transit.
25647     *
25648     * @param transit The transit object.
25649     * @param chain_transit The chain transit object.
25650     *
25651     * This function remove the @p chain_transit transition from the @p transit.
25652     *
25653     * @ingroup Transit
25654     */
25655    EAPI void                        elm_transit_chain_transit_del(Elm_Transit *transit, Elm_Transit *chain_transit) EINA_ARG_NONNULL(1,2);
25656
25657    /**
25658     * Get the current chain transit list.
25659     *
25660     * @note @p transit can not be NULL.
25661     *
25662     * @param transit The transit object.
25663     * @return chain transit list.
25664     *
25665     * @ingroup Transit
25666     */
25667    EAPI Eina_List                  *elm_transit_chain_transits_get(const Elm_Transit *transit);
25668
25669    /**
25670     * Add the Resizing Effect to Elm_Transit.
25671     *
25672     * @note This API is one of the facades. It creates resizing effect context
25673     * and add it's required APIs to elm_transit_effect_add.
25674     *
25675     * @see elm_transit_effect_add()
25676     *
25677     * @param transit Transit object.
25678     * @param from_w Object width size when effect begins.
25679     * @param from_h Object height size when effect begins.
25680     * @param to_w Object width size when effect ends.
25681     * @param to_h Object height size when effect ends.
25682     * @return Resizing effect context data.
25683     *
25684     * @ingroup Transit
25685     */
25686    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);
25687
25688    /**
25689     * Add the Translation Effect to Elm_Transit.
25690     *
25691     * @note This API is one of the facades. It creates translation effect context
25692     * and add it's required APIs to elm_transit_effect_add.
25693     *
25694     * @see elm_transit_effect_add()
25695     *
25696     * @param transit Transit object.
25697     * @param from_dx X Position variation when effect begins.
25698     * @param from_dy Y Position variation when effect begins.
25699     * @param to_dx X Position variation when effect ends.
25700     * @param to_dy Y Position variation when effect ends.
25701     * @return Translation effect context data.
25702     *
25703     * @ingroup Transit
25704     * @warning It is highly recommended just create a transit with this effect when
25705     * the window that the objects of the transit belongs has already been created.
25706     * This is because this effect needs the geometry information about the objects,
25707     * and if the window was not created yet, it can get a wrong information.
25708     */
25709    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);
25710
25711    /**
25712     * Add the Zoom Effect to Elm_Transit.
25713     *
25714     * @note This API is one of the facades. It creates zoom effect context
25715     * and add it's required APIs to elm_transit_effect_add.
25716     *
25717     * @see elm_transit_effect_add()
25718     *
25719     * @param transit Transit object.
25720     * @param from_rate Scale rate when effect begins (1 is current rate).
25721     * @param to_rate Scale rate when effect ends.
25722     * @return Zoom effect context data.
25723     *
25724     * @ingroup Transit
25725     * @warning It is highly recommended just create a transit with this effect when
25726     * the window that the objects of the transit belongs has already been created.
25727     * This is because this effect needs the geometry information about the objects,
25728     * and if the window was not created yet, it can get a wrong information.
25729     */
25730    EAPI Elm_Transit_Effect *elm_transit_effect_zoom_add(Elm_Transit *transit, float from_rate, float to_rate);
25731
25732    /**
25733     * Add the Flip Effect to Elm_Transit.
25734     *
25735     * @note This API is one of the facades. It creates flip effect context
25736     * and add it's required APIs to elm_transit_effect_add.
25737     * @note This effect is applied to each pair of objects in the order they are listed
25738     * in the transit list of objects. The first object in the pair will be the
25739     * "front" object and the second will be the "back" object.
25740     *
25741     * @see elm_transit_effect_add()
25742     *
25743     * @param transit Transit object.
25744     * @param axis Flipping Axis(X or Y).
25745     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
25746     * @return Flip effect context data.
25747     *
25748     * @ingroup Transit
25749     * @warning It is highly recommended just create a transit with this effect when
25750     * the window that the objects of the transit belongs has already been created.
25751     * This is because this effect needs the geometry information about the objects,
25752     * and if the window was not created yet, it can get a wrong information.
25753     */
25754    EAPI Elm_Transit_Effect *elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
25755
25756    /**
25757     * Add the Resizable Flip Effect to Elm_Transit.
25758     *
25759     * @note This API is one of the facades. It creates resizable flip effect context
25760     * and add it's required APIs to elm_transit_effect_add.
25761     * @note This effect is applied to each pair of objects in the order they are listed
25762     * in the transit list of objects. The first object in the pair will be the
25763     * "front" object and the second will be the "back" object.
25764     *
25765     * @see elm_transit_effect_add()
25766     *
25767     * @param transit Transit object.
25768     * @param axis Flipping Axis(X or Y).
25769     * @param cw Flipping Direction. EINA_TRUE is clock-wise.
25770     * @return Resizable flip effect context data.
25771     *
25772     * @ingroup Transit
25773     * @warning It is highly recommended just create a transit with this effect when
25774     * the window that the objects of the transit belongs has already been created.
25775     * This is because this effect needs the geometry information about the objects,
25776     * and if the window was not created yet, it can get a wrong information.
25777     */
25778    EAPI Elm_Transit_Effect *elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
25779
25780    /**
25781     * Add the Wipe Effect to Elm_Transit.
25782     *
25783     * @note This API is one of the facades. It creates wipe effect context
25784     * and add it's required APIs to elm_transit_effect_add.
25785     *
25786     * @see elm_transit_effect_add()
25787     *
25788     * @param transit Transit object.
25789     * @param type Wipe type. Hide or show.
25790     * @param dir Wipe Direction.
25791     * @return Wipe effect context data.
25792     *
25793     * @ingroup Transit
25794     * @warning It is highly recommended just create a transit with this effect when
25795     * the window that the objects of the transit belongs has already been created.
25796     * This is because this effect needs the geometry information about the objects,
25797     * and if the window was not created yet, it can get a wrong information.
25798     */
25799    EAPI Elm_Transit_Effect *elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Transit_Effect_Wipe_Type type, Elm_Transit_Effect_Wipe_Dir dir);
25800
25801    /**
25802     * Add the Color Effect to Elm_Transit.
25803     *
25804     * @note This API is one of the facades. It creates color effect context
25805     * and add it's required APIs to elm_transit_effect_add.
25806     *
25807     * @see elm_transit_effect_add()
25808     *
25809     * @param transit        Transit object.
25810     * @param  from_r        RGB R when effect begins.
25811     * @param  from_g        RGB G when effect begins.
25812     * @param  from_b        RGB B when effect begins.
25813     * @param  from_a        RGB A when effect begins.
25814     * @param  to_r          RGB R when effect ends.
25815     * @param  to_g          RGB G when effect ends.
25816     * @param  to_b          RGB B when effect ends.
25817     * @param  to_a          RGB A when effect ends.
25818     * @return               Color effect context data.
25819     *
25820     * @ingroup Transit
25821     */
25822    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);
25823
25824    /**
25825     * Add the Fade Effect to Elm_Transit.
25826     *
25827     * @note This API is one of the facades. It creates fade effect context
25828     * and add it's required APIs to elm_transit_effect_add.
25829     * @note This effect is applied to each pair of objects in the order they are listed
25830     * in the transit list of objects. The first object in the pair will be the
25831     * "before" object and the second will be the "after" object.
25832     *
25833     * @see elm_transit_effect_add()
25834     *
25835     * @param transit Transit object.
25836     * @return Fade effect context data.
25837     *
25838     * @ingroup Transit
25839     * @warning It is highly recommended just create a transit with this effect when
25840     * the window that the objects of the transit belongs has already been created.
25841     * This is because this effect needs the color information about the objects,
25842     * and if the window was not created yet, it can get a wrong information.
25843     */
25844    EAPI Elm_Transit_Effect *elm_transit_effect_fade_add(Elm_Transit *transit);
25845
25846    /**
25847     * Add the Blend Effect to Elm_Transit.
25848     *
25849     * @note This API is one of the facades. It creates blend effect context
25850     * and add it's required APIs to elm_transit_effect_add.
25851     * @note This effect is applied to each pair of objects in the order they are listed
25852     * in the transit list of objects. The first object in the pair will be the
25853     * "before" object and the second will be the "after" object.
25854     *
25855     * @see elm_transit_effect_add()
25856     *
25857     * @param transit Transit object.
25858     * @return Blend effect context data.
25859     *
25860     * @ingroup Transit
25861     * @warning It is highly recommended just create a transit with this effect when
25862     * the window that the objects of the transit belongs has already been created.
25863     * This is because this effect needs the color information about the objects,
25864     * and if the window was not created yet, it can get a wrong information.
25865     */
25866    EAPI Elm_Transit_Effect *elm_transit_effect_blend_add(Elm_Transit *transit);
25867
25868    /**
25869     * Add the Rotation Effect to Elm_Transit.
25870     *
25871     * @note This API is one of the facades. It creates rotation effect context
25872     * and add it's required APIs to elm_transit_effect_add.
25873     *
25874     * @see elm_transit_effect_add()
25875     *
25876     * @param transit Transit object.
25877     * @param from_degree Degree when effect begins.
25878     * @param to_degree Degree when effect is ends.
25879     * @return Rotation effect context data.
25880     *
25881     * @ingroup Transit
25882     * @warning It is highly recommended just create a transit with this effect when
25883     * the window that the objects of the transit belongs has already been created.
25884     * This is because this effect needs the geometry information about the objects,
25885     * and if the window was not created yet, it can get a wrong information.
25886     */
25887    EAPI Elm_Transit_Effect *elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float to_degree);
25888
25889    /**
25890     * Add the ImageAnimation Effect to Elm_Transit.
25891     *
25892     * @note This API is one of the facades. It creates image animation effect context
25893     * and add it's required APIs to elm_transit_effect_add.
25894     * The @p images parameter is a list images paths. This list and
25895     * its contents will be deleted at the end of the effect by
25896     * elm_transit_effect_image_animation_context_free() function.
25897     *
25898     * Example:
25899     * @code
25900     * char buf[PATH_MAX];
25901     * Eina_List *images = NULL;
25902     * Elm_Transit *transi = elm_transit_add();
25903     *
25904     * snprintf(buf, sizeof(buf), "%s/images/icon_11.png", PACKAGE_DATA_DIR);
25905     * images = eina_list_append(images, eina_stringshare_add(buf));
25906     *
25907     * snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
25908     * images = eina_list_append(images, eina_stringshare_add(buf));
25909     * elm_transit_effect_image_animation_add(transi, images);
25910     *
25911     * @endcode
25912     *
25913     * @see elm_transit_effect_add()
25914     *
25915     * @param transit Transit object.
25916     * @param images Eina_List of images file paths. This list and
25917     * its contents will be deleted at the end of the effect by
25918     * elm_transit_effect_image_animation_context_free() function.
25919     * @return Image Animation effect context data.
25920     *
25921     * @ingroup Transit
25922     */
25923    EAPI Elm_Transit_Effect *elm_transit_effect_image_animation_add(Elm_Transit *transit, Eina_List *images);
25924    /**
25925     * @}
25926     */
25927
25928   typedef struct _Elm_Store                      Elm_Store;
25929   typedef struct _Elm_Store_Filesystem           Elm_Store_Filesystem;
25930   typedef struct _Elm_Store_Item                 Elm_Store_Item;
25931   typedef struct _Elm_Store_Item_Filesystem      Elm_Store_Item_Filesystem;
25932   typedef struct _Elm_Store_Item_Info            Elm_Store_Item_Info;
25933   typedef struct _Elm_Store_Item_Info_Filesystem Elm_Store_Item_Info_Filesystem;
25934   typedef struct _Elm_Store_Item_Mapping         Elm_Store_Item_Mapping;
25935   typedef struct _Elm_Store_Item_Mapping_Empty   Elm_Store_Item_Mapping_Empty;
25936   typedef struct _Elm_Store_Item_Mapping_Icon    Elm_Store_Item_Mapping_Icon;
25937   typedef struct _Elm_Store_Item_Mapping_Photo   Elm_Store_Item_Mapping_Photo;
25938   typedef struct _Elm_Store_Item_Mapping_Custom  Elm_Store_Item_Mapping_Custom;
25939
25940   typedef Eina_Bool (*Elm_Store_Item_List_Cb) (void *data, Elm_Store_Item_Info *info);
25941   typedef void      (*Elm_Store_Item_Fetch_Cb) (void *data, Elm_Store_Item *sti);
25942   typedef void      (*Elm_Store_Item_Unfetch_Cb) (void *data, Elm_Store_Item *sti);
25943   typedef void     *(*Elm_Store_Item_Mapping_Cb) (void *data, Elm_Store_Item *sti, const char *part);
25944
25945   typedef enum
25946     {
25947        ELM_STORE_ITEM_MAPPING_NONE = 0,
25948        ELM_STORE_ITEM_MAPPING_LABEL, // const char * -> label
25949        ELM_STORE_ITEM_MAPPING_STATE, // Eina_Bool -> state
25950        ELM_STORE_ITEM_MAPPING_ICON, // char * -> icon path
25951        ELM_STORE_ITEM_MAPPING_PHOTO, // char * -> photo path
25952        ELM_STORE_ITEM_MAPPING_CUSTOM, // item->custom(it->data, it, part) -> void * (-> any)
25953        // can add more here as needed by common apps
25954        ELM_STORE_ITEM_MAPPING_LAST
25955     } Elm_Store_Item_Mapping_Type;
25956
25957   struct _Elm_Store_Item_Mapping_Icon
25958     {
25959        // FIXME: allow edje file icons
25960        int                   w, h;
25961        Elm_Icon_Lookup_Order lookup_order;
25962        Eina_Bool             standard_name : 1;
25963        Eina_Bool             no_scale : 1;
25964        Eina_Bool             smooth : 1;
25965        Eina_Bool             scale_up : 1;
25966        Eina_Bool             scale_down : 1;
25967     };
25968
25969   struct _Elm_Store_Item_Mapping_Empty
25970     {
25971        Eina_Bool             dummy;
25972     };
25973
25974   struct _Elm_Store_Item_Mapping_Photo
25975     {
25976        int                   size;
25977     };
25978
25979   struct _Elm_Store_Item_Mapping_Custom
25980     {
25981        Elm_Store_Item_Mapping_Cb func;
25982     };
25983
25984   struct _Elm_Store_Item_Mapping
25985     {
25986        Elm_Store_Item_Mapping_Type     type;
25987        const char                     *part;
25988        int                             offset;
25989        union
25990          {
25991             Elm_Store_Item_Mapping_Empty  empty;
25992             Elm_Store_Item_Mapping_Icon   icon;
25993             Elm_Store_Item_Mapping_Photo  photo;
25994             Elm_Store_Item_Mapping_Custom custom;
25995             // add more types here
25996          } details;
25997     };
25998
25999   struct _Elm_Store_Item_Info
26000     {
26001       Elm_Genlist_Item_Class       *item_class;
26002       const Elm_Store_Item_Mapping *mapping;
26003       void                         *data;
26004       char                         *sort_id;
26005     };
26006
26007   struct _Elm_Store_Item_Info_Filesystem
26008     {
26009       Elm_Store_Item_Info  base;
26010       char                *path;
26011     };
26012
26013 #define ELM_STORE_ITEM_MAPPING_END { ELM_STORE_ITEM_MAPPING_NONE, NULL, 0, { .empty = { EINA_TRUE } } }
26014 #define ELM_STORE_ITEM_MAPPING_OFFSET(st, it) offsetof(st, it)
26015
26016   EAPI void                    elm_store_free(Elm_Store *st);
26017
26018   EAPI Elm_Store              *elm_store_filesystem_new(void);
26019   EAPI void                    elm_store_filesystem_directory_set(Elm_Store *st, const char *dir) EINA_ARG_NONNULL(1);
26020   EAPI const char             *elm_store_filesystem_directory_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
26021   EAPI const char             *elm_store_item_filesystem_path_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
26022
26023   EAPI void                    elm_store_target_genlist_set(Elm_Store *st, Evas_Object *obj) EINA_ARG_NONNULL(1);
26024
26025   EAPI void                    elm_store_cache_set(Elm_Store *st, int max) EINA_ARG_NONNULL(1);
26026   EAPI int                     elm_store_cache_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
26027   EAPI void                    elm_store_list_func_set(Elm_Store *st, Elm_Store_Item_List_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
26028   EAPI void                    elm_store_fetch_func_set(Elm_Store *st, Elm_Store_Item_Fetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
26029   EAPI void                    elm_store_fetch_thread_set(Elm_Store *st, Eina_Bool use_thread) EINA_ARG_NONNULL(1);
26030   EAPI Eina_Bool               elm_store_fetch_thread_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
26031
26032   EAPI void                    elm_store_unfetch_func_set(Elm_Store *st, Elm_Store_Item_Unfetch_Cb func, const void *data) EINA_ARG_NONNULL(1, 2);
26033   EAPI void                    elm_store_sorted_set(Elm_Store *st, Eina_Bool sorted) EINA_ARG_NONNULL(1);
26034   EAPI Eina_Bool               elm_store_sorted_get(const Elm_Store *st) EINA_ARG_NONNULL(1);
26035   EAPI void                    elm_store_item_data_set(Elm_Store_Item *sti, void *data) EINA_ARG_NONNULL(1);
26036   EAPI void                   *elm_store_item_data_get(Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
26037   EAPI const Elm_Store        *elm_store_item_store_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
26038   EAPI const Elm_Genlist_Item *elm_store_item_genlist_item_get(const Elm_Store_Item *sti) EINA_ARG_NONNULL(1);
26039
26040    /**
26041     * @defgroup SegmentControl SegmentControl
26042     * @ingroup Elementary
26043     *
26044     * @image html img/widget/segment_control/preview-00.png
26045     * @image latex img/widget/segment_control/preview-00.eps width=\textwidth
26046     *
26047     * @image html img/segment_control.png
26048     * @image latex img/segment_control.eps width=\textwidth
26049     *
26050     * Segment control widget is a horizontal control made of multiple segment
26051     * items, each segment item functioning similar to discrete two state button.
26052     * A segment control groups the items together and provides compact
26053     * single button with multiple equal size segments.
26054     *
26055     * Segment item size is determined by base widget
26056     * size and the number of items added.
26057     * Only one segment item can be at selected state. A segment item can display
26058     * combination of Text and any Evas_Object like Images or other widget.
26059     *
26060     * Smart callbacks one can listen to:
26061     * - "changed" - When the user clicks on a segment item which is not
26062     *   previously selected and get selected. The event_info parameter is the
26063     *   segment item index.
26064     *
26065     * Available styles for it:
26066     * - @c "default"
26067     *
26068     * Here is an example on its usage:
26069     * @li @ref segment_control_example
26070     */
26071
26072    /**
26073     * @addtogroup SegmentControl
26074     * @{
26075     */
26076
26077    typedef struct _Elm_Segment_Item Elm_Segment_Item; /**< Item handle for a segment control widget. */
26078
26079    /**
26080     * Add a new segment control widget to the given parent Elementary
26081     * (container) object.
26082     *
26083     * @param parent The parent object.
26084     * @return a new segment control widget handle or @c NULL, on errors.
26085     *
26086     * This function inserts a new segment control widget on the canvas.
26087     *
26088     * @ingroup SegmentControl
26089     */
26090    EAPI Evas_Object      *elm_segment_control_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26091
26092    /**
26093     * Append a new item to the segment control object.
26094     *
26095     * @param obj The segment control object.
26096     * @param icon The icon object to use for the left side of the item. An
26097     * icon can be any Evas object, but usually it is an icon created
26098     * with elm_icon_add().
26099     * @param label The label of the item.
26100     *        Note that, NULL is different from empty string "".
26101     * @return The created item or @c NULL upon failure.
26102     *
26103     * A new item will be created and appended to the segment control, i.e., will
26104     * be set as @b last item.
26105     *
26106     * If it should be inserted at another position,
26107     * elm_segment_control_item_insert_at() should be used instead.
26108     *
26109     * Items created with this function can be deleted with function
26110     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
26111     *
26112     * @note @p label set to @c NULL is different from empty string "".
26113     * If an item
26114     * only has icon, it will be displayed bigger and centered. If it has
26115     * icon and label, even that an empty string, icon will be smaller and
26116     * positioned at left.
26117     *
26118     * Simple example:
26119     * @code
26120     * sc = elm_segment_control_add(win);
26121     * ic = elm_icon_add(win);
26122     * elm_icon_file_set(ic, "path/to/image", NULL);
26123     * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
26124     * elm_segment_control_item_add(sc, ic, "label");
26125     * evas_object_show(sc);
26126     * @endcode
26127     *
26128     * @see elm_segment_control_item_insert_at()
26129     * @see elm_segment_control_item_del()
26130     *
26131     * @ingroup SegmentControl
26132     */
26133    EAPI Elm_Segment_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label) EINA_ARG_NONNULL(1);
26134
26135    /**
26136     * Insert a new item to the segment control object at specified position.
26137     *
26138     * @param obj The segment control object.
26139     * @param icon The icon object to use for the left side of the item. An
26140     * icon can be any Evas object, but usually it is an icon created
26141     * with elm_icon_add().
26142     * @param label The label of the item.
26143     * @param index Item position. Value should be between 0 and items count.
26144     * @return The created item or @c NULL upon failure.
26145
26146     * Index values must be between @c 0, when item will be prepended to
26147     * segment control, and items count, that can be get with
26148     * elm_segment_control_item_count_get(), case when item will be appended
26149     * to segment control, just like elm_segment_control_item_add().
26150     *
26151     * Items created with this function can be deleted with function
26152     * elm_segment_control_item_del() or elm_segment_control_item_del_at().
26153     *
26154     * @note @p label set to @c NULL is different from empty string "".
26155     * If an item
26156     * only has icon, it will be displayed bigger and centered. If it has
26157     * icon and label, even that an empty string, icon will be smaller and
26158     * positioned at left.
26159     *
26160     * @see elm_segment_control_item_add()
26161     * @see elm_segment_control_item_count_get()
26162     * @see elm_segment_control_item_del()
26163     *
26164     * @ingroup SegmentControl
26165     */
26166    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);
26167
26168    /**
26169     * Remove a segment control item from its parent, deleting it.
26170     *
26171     * @param it The item to be removed.
26172     *
26173     * Items can be added with elm_segment_control_item_add() or
26174     * elm_segment_control_item_insert_at().
26175     *
26176     * @ingroup SegmentControl
26177     */
26178    EAPI void              elm_segment_control_item_del(Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
26179
26180    /**
26181     * Remove a segment control item at given index from its parent,
26182     * deleting it.
26183     *
26184     * @param obj The segment control object.
26185     * @param index The position of the segment control item to be deleted.
26186     *
26187     * Items can be added with elm_segment_control_item_add() or
26188     * elm_segment_control_item_insert_at().
26189     *
26190     * @ingroup SegmentControl
26191     */
26192    EAPI void              elm_segment_control_item_del_at(Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
26193
26194    /**
26195     * Get the Segment items count from segment control.
26196     *
26197     * @param obj The segment control object.
26198     * @return Segment items count.
26199     *
26200     * It will just return the number of items added to segment control @p obj.
26201     *
26202     * @ingroup SegmentControl
26203     */
26204    EAPI int               elm_segment_control_item_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26205
26206    /**
26207     * Get the item placed at specified index.
26208     *
26209     * @param obj The segment control object.
26210     * @param index The index of the segment item.
26211     * @return The segment control item or @c NULL on failure.
26212     *
26213     * Index is the position of an item in segment control widget. Its
26214     * range is from @c 0 to <tt> count - 1 </tt>.
26215     * Count is the number of items, that can be get with
26216     * elm_segment_control_item_count_get().
26217     *
26218     * @ingroup SegmentControl
26219     */
26220    EAPI Elm_Segment_Item *elm_segment_control_item_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
26221
26222    /**
26223     * Get the label of item.
26224     *
26225     * @param obj The segment control object.
26226     * @param index The index of the segment item.
26227     * @return The label of the item at @p index.
26228     *
26229     * The return value is a pointer to the label associated to the item when
26230     * it was created, with function elm_segment_control_item_add(), or later
26231     * with function elm_segment_control_item_label_set. If no label
26232     * was passed as argument, it will return @c NULL.
26233     *
26234     * @see elm_segment_control_item_label_set() for more details.
26235     * @see elm_segment_control_item_add()
26236     *
26237     * @ingroup SegmentControl
26238     */
26239    EAPI const char       *elm_segment_control_item_label_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
26240
26241    /**
26242     * Set the label of item.
26243     *
26244     * @param it The item of segment control.
26245     * @param text The label of item.
26246     *
26247     * The label to be displayed by the item.
26248     * Label will be at right of the icon (if set).
26249     *
26250     * If a label was passed as argument on item creation, with function
26251     * elm_control_segment_item_add(), it will be already
26252     * displayed by the item.
26253     *
26254     * @see elm_segment_control_item_label_get()
26255     * @see elm_segment_control_item_add()
26256     *
26257     * @ingroup SegmentControl
26258     */
26259    EAPI void              elm_segment_control_item_label_set(Elm_Segment_Item* it, const char* label) EINA_ARG_NONNULL(1);
26260
26261    /**
26262     * Get the icon associated to the item.
26263     *
26264     * @param obj The segment control object.
26265     * @param index The index of the segment item.
26266     * @return The left side icon associated to the item at @p index.
26267     *
26268     * The return value is a pointer to the icon associated to the item when
26269     * it was created, with function elm_segment_control_item_add(), or later
26270     * with function elm_segment_control_item_icon_set(). If no icon
26271     * was passed as argument, it will return @c NULL.
26272     *
26273     * @see elm_segment_control_item_add()
26274     * @see elm_segment_control_item_icon_set()
26275     *
26276     * @ingroup SegmentControl
26277     */
26278    EAPI Evas_Object      *elm_segment_control_item_icon_get(const Evas_Object *obj, int index) EINA_ARG_NONNULL(1);
26279
26280    /**
26281     * Set the icon associated to the item.
26282     *
26283     * @param it The segment control item.
26284     * @param icon The icon object to associate with @p it.
26285     *
26286     * The icon object to use at left side of the item. An
26287     * icon can be any Evas object, but usually it is an icon created
26288     * with elm_icon_add().
26289     *
26290     * Once the icon object is set, a previously set one will be deleted.
26291     * @warning Setting the same icon for two items will cause the icon to
26292     * dissapear from the first item.
26293     *
26294     * If an icon was passed as argument on item creation, with function
26295     * elm_segment_control_item_add(), it will be already
26296     * associated to the item.
26297     *
26298     * @see elm_segment_control_item_add()
26299     * @see elm_segment_control_item_icon_get()
26300     *
26301     * @ingroup SegmentControl
26302     */
26303    EAPI void              elm_segment_control_item_icon_set(Elm_Segment_Item *it, Evas_Object *icon) EINA_ARG_NONNULL(1);
26304
26305    /**
26306     * Get the index of an item.
26307     *
26308     * @param it The segment control item.
26309     * @return The position of item in segment control widget.
26310     *
26311     * Index is the position of an item in segment control widget. Its
26312     * range is from @c 0 to <tt> count - 1 </tt>.
26313     * Count is the number of items, that can be get with
26314     * elm_segment_control_item_count_get().
26315     *
26316     * @ingroup SegmentControl
26317     */
26318    EAPI int               elm_segment_control_item_index_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
26319
26320    /**
26321     * Get the base object of the item.
26322     *
26323     * @param it The segment control item.
26324     * @return The base object associated with @p it.
26325     *
26326     * Base object is the @c Evas_Object that represents that item.
26327     *
26328     * @ingroup SegmentControl
26329     */
26330    EAPI Evas_Object      *elm_segment_control_item_object_get(const Elm_Segment_Item *it) EINA_ARG_NONNULL(1);
26331
26332    /**
26333     * Get the selected item.
26334     *
26335     * @param obj The segment control object.
26336     * @return The selected item or @c NULL if none of segment items is
26337     * selected.
26338     *
26339     * The selected item can be unselected with function
26340     * elm_segment_control_item_selected_set().
26341     *
26342     * The selected item always will be highlighted on segment control.
26343     *
26344     * @ingroup SegmentControl
26345     */
26346    EAPI Elm_Segment_Item *elm_segment_control_item_selected_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26347
26348    /**
26349     * Set the selected state of an item.
26350     *
26351     * @param it The segment control item
26352     * @param select The selected state
26353     *
26354     * This sets the selected state of the given item @p it.
26355     * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
26356     *
26357     * If a new item is selected the previosly selected will be unselected.
26358     * Previoulsy selected item can be get with function
26359     * elm_segment_control_item_selected_get().
26360     *
26361     * The selected item always will be highlighted on segment control.
26362     *
26363     * @see elm_segment_control_item_selected_get()
26364     *
26365     * @ingroup SegmentControl
26366     */
26367    EAPI void              elm_segment_control_item_selected_set(Elm_Segment_Item *it, Eina_Bool select) EINA_ARG_NONNULL(1);
26368
26369    /**
26370     * @}
26371     */
26372
26373    /**
26374     * @defgroup Grid Grid
26375     *
26376     * The grid is a grid layout widget that lays out a series of children as a
26377     * fixed "grid" of widgets using a given percentage of the grid width and
26378     * height each using the child object.
26379     *
26380     * The Grid uses a "Virtual resolution" that is stretched to fill the grid
26381     * widgets size itself. The default is 100 x 100, so that means the
26382     * position and sizes of children will effectively be percentages (0 to 100)
26383     * of the width or height of the grid widget
26384     *
26385     * @{
26386     */
26387
26388    /**
26389     * Add a new grid to the parent
26390     *
26391     * @param parent The parent object
26392     * @return The new object or NULL if it cannot be created
26393     *
26394     * @ingroup Grid
26395     */
26396    EAPI Evas_Object *elm_grid_add(Evas_Object *parent);
26397
26398    /**
26399     * Set the virtual size of the grid
26400     *
26401     * @param obj The grid object
26402     * @param w The virtual width of the grid
26403     * @param h The virtual height of the grid
26404     *
26405     * @ingroup Grid
26406     */
26407    EAPI void         elm_grid_size_set(Evas_Object *obj, int w, int h);
26408
26409    /**
26410     * Get the virtual size of the grid
26411     *
26412     * @param obj The grid object
26413     * @param w Pointer to integer to store the virtual width of the grid
26414     * @param h Pointer to integer to store the virtual height of the grid
26415     *
26416     * @ingroup Grid
26417     */
26418    EAPI void         elm_grid_size_get(Evas_Object *obj, int *w, int *h);
26419
26420    /**
26421     * Pack child at given position and size
26422     *
26423     * @param obj The grid object
26424     * @param subobj The child to pack
26425     * @param x The virtual x coord at which to pack it
26426     * @param y The virtual y coord at which to pack it
26427     * @param w The virtual width at which to pack it
26428     * @param h The virtual height at which to pack it
26429     *
26430     * @ingroup Grid
26431     */
26432    EAPI void         elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h);
26433
26434    /**
26435     * Unpack a child from a grid object
26436     *
26437     * @param obj The grid object
26438     * @param subobj The child to unpack
26439     *
26440     * @ingroup Grid
26441     */
26442    EAPI void         elm_grid_unpack(Evas_Object *obj, Evas_Object *subobj);
26443
26444    /**
26445     * Faster way to remove all child objects from a grid object.
26446     *
26447     * @param obj The grid object
26448     * @param clear If true, it will delete just removed children
26449     *
26450     * @ingroup Grid
26451     */
26452    EAPI void         elm_grid_clear(Evas_Object *obj, Eina_Bool clear);
26453
26454    /**
26455     * Set packing of an existing child at to position and size
26456     *
26457     * @param subobj The child to set packing of
26458     * @param x The virtual x coord at which to pack it
26459     * @param y The virtual y coord at which to pack it
26460     * @param w The virtual width at which to pack it
26461     * @param h The virtual height at which to pack it
26462     *
26463     * @ingroup Grid
26464     */
26465    EAPI void         elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h);
26466
26467    /**
26468     * get packing of a child
26469     *
26470     * @param subobj The child to query
26471     * @param x Pointer to integer to store the virtual x coord
26472     * @param y Pointer to integer to store the virtual y coord
26473     * @param w Pointer to integer to store the virtual width
26474     * @param h Pointer to integer to store the virtual height
26475     *
26476     * @ingroup Grid
26477     */
26478    EAPI void         elm_grid_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h);
26479
26480    /**
26481     * @}
26482     */
26483
26484    EAPI Evas_Object *elm_factory_add(Evas_Object *parent);
26485    EAPI void         elm_factory_content_set(Evas_Object *obj, Evas_Object *content);
26486    EAPI Evas_Object *elm_factory_content_get(const Evas_Object *obj);
26487    EAPI void         elm_factory_maxmin_mode_set(Evas_Object *obj, Eina_Bool enabled);
26488    EAPI Eina_Bool    elm_factory_maxmin_mode_get(const Evas_Object *obj);
26489    EAPI void         elm_factory_maxmin_reset_set(Evas_Object *obj);
26490
26491    /**
26492     * @defgroup Video Video
26493     *
26494     * This object display an player that let you control an Elm_Video
26495     * object. It take care of updating it's content according to what is
26496     * going on inside the Emotion object. It does activate the remember
26497     * function on the linked Elm_Video object.
26498     *
26499     * Signals that you cann add callback for are :
26500     *
26501     * "forward,clicked" - the user clicked the forward button.
26502     * "info,clicked" - the user clicked the info button.
26503     * "next,clicked" - the user clicked the next button.
26504     * "pause,clicked" - the user clicked the pause button.
26505     * "play,clicked" - the user clicked the play button.
26506     * "prev,clicked" - the user clicked the prev button.
26507     * "rewind,clicked" - the user clicked the rewind button.
26508     * "stop,clicked" - the user clicked the stop button.
26509     */
26510    EAPI Evas_Object *elm_video_add(Evas_Object *parent);
26511    EAPI void elm_video_file_set(Evas_Object *video, const char *filename);
26512    EAPI void elm_video_uri_set(Evas_Object *video, const char *uri);
26513    EAPI Evas_Object *elm_video_emotion_get(Evas_Object *video);
26514    EAPI void elm_video_play(Evas_Object *video);
26515    EAPI void elm_video_pause(Evas_Object *video);
26516    EAPI void elm_video_stop(Evas_Object *video);
26517    EAPI Eina_Bool elm_video_is_playing(Evas_Object *video);
26518    EAPI Eina_Bool elm_video_is_seekable(Evas_Object *video);
26519    EAPI Eina_Bool elm_video_audio_mute_get(Evas_Object *video);
26520    EAPI void elm_video_audio_mute_set(Evas_Object *video, Eina_Bool mute);
26521    EAPI double elm_video_audio_level_get(Evas_Object *video);
26522    EAPI void elm_video_audio_level_set(Evas_Object *video, double volume);
26523    EAPI double elm_video_play_position_get(Evas_Object *video);
26524    EAPI void elm_video_play_position_set(Evas_Object *video, double position);
26525    EAPI double elm_video_play_length_get(Evas_Object *video);
26526    EAPI void elm_video_remember_position_set(Evas_Object *video, Eina_Bool remember);
26527    EAPI Eina_Bool elm_video_remember_position_get(Evas_Object *video);
26528    EAPI const char *elm_video_title_get(Evas_Object *video);
26529
26530    EAPI Evas_Object *elm_player_add(Evas_Object *parent);
26531    EAPI void elm_player_video_set(Evas_Object *player, Evas_Object *video);
26532
26533   /* naviframe */
26534    EAPI Evas_Object        *elm_naviframe_add(Evas_Object *parent) EINA_ARG_NONNULL(1);
26535    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);
26536    EAPI Evas_Object        *elm_naviframe_item_pop(Evas_Object *obj) EINA_ARG_NONNULL(1);
26537    EAPI void                elm_naviframe_content_preserve_on_pop_set(Evas_Object *obj, Eina_Bool preserve) EINA_ARG_NONNULL(1);
26538    EAPI Eina_Bool           elm_naviframe_content_preserve_on_pop_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26539    EAPI void                elm_naviframe_item_title_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
26540    EAPI const char         *elm_naviframe_item_title_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26541    EAPI void                elm_naviframe_item_subtitle_label_set(Elm_Object_Item *it, const char *label) EINA_ARG_NONNULL(1);
26542    EAPI const char         *elm_naviframe_item_subtitle_label_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26543    EAPI Elm_Object_Item    *elm_naviframe_top_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26544    EAPI Elm_Object_Item    *elm_naviframe_bottom_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
26545    EAPI void                elm_naviframe_item_style_set(Elm_Object_Item *it, const char *item_style) EINA_ARG_NONNULL(1);
26546    EAPI const char         *elm_naviframe_item_style_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26547    EAPI void                elm_naviframe_item_title_visible_set(Elm_Object_Item *it, Eina_Bool visible) EINA_ARG_NONNULL(1);
26548    EAPI Eina_Bool           elm_naviframe_item_title_visible_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
26549
26550 #ifdef __cplusplus
26551 }
26552 #endif
26553
26554 #endif